diff --git a/src/plc_codec.rs b/src/plc_codec.rs index b653180..b5dcc94 100644 --- a/src/plc_codec.rs +++ b/src/plc_codec.rs @@ -587,7 +587,7 @@ fn decode_plc_non_avx(plc_str: &[u8; 32]) -> OptionDidPlc { // SAFETY: bmi2 is active unsafe { x86_64::_pext_u64(values, 0x1f1f1f1f1f1f1f1f) } } else { - let [a, b, c, d, e, f, g, h] = values.to_le_bytes(); + let [h, g, f, e, d, c, b, a] = values.to_le_bytes(); ((a as u64) << 35) | ((b as u64) << 30) @@ -693,6 +693,7 @@ mod tests { #[test] fn individual_bytes_encode_ok_non_avx() { + // TODO: test both the BMI and non-BMI impls test_individual_bytes_decode(decode_plc_non_avx); }