Skip to main content

Module arithmetic

Module arithmetic 

Source
Expand description

Arithmetic test vectors: add, sub, mul, div, rem, wide multiply.

Each operation has two faces:

  • <name>(input: &[u8], output: &mut [u8]) -> usize: a byte-level helper, the legacy unit-test entry point.
  • <name>_suite() -> u64: runs the helper over a baked corpus of (a, b) pairs and XOR-folds the u64 results into a single fingerprint. Used by the three-way conformance harness.

Functionsยง

add_u64
add_u64_suite
div_s64
div_s64_suite
div_u64
div_u64_suite
mul_u64
mul_u64_suite
mul_upper_ss
mul_upper_ss_suite
mul_upper_uu
mul_upper_uu_suite
rem_s64
rem_s64_suite
rem_u64
rem_u64_suite
sub_u64
sub_u64_suite