rustc -C opt-level=3): 2049 (203973 B .text / 53737 insns)22/9 Hz): 248936 B / 5979018 B (ratio 124468/2989509, saved 2865041/2989509, 11693 ″ dittos)| Rank & Crown | Function Name & Domain | Best Use & Snap-Circuit Role | Pin Signature & 64-Vec Hash | Hardware _rdtsc (p/q) | Details & Quick Peek |
|---|---|---|---|---|---|
| #1706 SOLE CROWN #1 | calculate_luhn_check_digit domain: i1-cli-x86_64 | id: b299e87de73aAye: aye::Hue+Gemini(0+1)::x86_64 @ 432Hz | Cryptographic Mixing, Checksums & Wire Integrity High-avalanche 64-bit bijection mixing, deterministic PRNG state stepping, and keyed hash partitioning for hash tables and content addressing. Slice Ingress / Scanner Stage `(&[u8])->u8` — digests raw byte buffers into scalar tokens or checksums. | (&[u8])->u864-vec BLAKE3: 864f250a727dC64 RAM: 405/65536 (405 B src) | 3631721/100000 cyc/op 6918461/400000 ns/op | 400000000/6918461 ops/us 644 B .text (136 insns) | Trit + (1) | Inspect Details & ASM →Quick Peek Rust (405 B)pub fn calculate_luhn_check_digit(digits: &[u8]) -> u8 {
let mut sum: u32 = 0;
let mut double = true;
for &digit in digits.iter().rev() {
let mut d = (digit % 10) as u32;
if double {
d *= 2;
if d > 9 {
d -= 9;
}
}
sum = sum.wrapping_add(d);
double = !double;
}
((10 - (sum % 10)) % 10) as u8
} |