Closed EbbDrop closed 4 months ago
Fixed in 0.2.2
Yeah seems like if the a and b don't have the same alignment we get different splits. Stupid oversight from me when porting from exact_chunks to the "as_simd".
I find it odd that the test didn't catch it :thinking: maybe the test data is generated in a way that the alignment is always the same :thinking:
Nice quick fix! I think the problem with the tests is that both arrays are independently randomly generated, so they are almost never equal, and this bug could only generate false negatives.
It is possible for
eq_simd
to returnfalse
for two slices with the same values and same length.I made some repo code:
but its very fragile, just removing the
assert!(expected);
stops it from panicking for me. I think the problem is thatslice::as_simd()
is allowed to split the two slices with the same values differently.