Skip to content

Commit 1ae6bb2

Browse files
Erk-michaelwoerister
authored andcommitted
Use the solution suggested by cuviper
1 parent 0f1e42e commit 1ae6bb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/swisstable_group_query/no_simd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ impl GroupQuery {
2929
// has pretty much the same effect as a hash collision, something
3030
// that we need to deal with in any case anyway.
3131

32-
let group = GroupWord::from_ne_bytes(*group);
32+
let group = GroupWord::from_le_bytes(*group);
3333
let cmp = group ^ repeat(h2);
3434
let high_bit_greater_than_128 = (!cmp) & repeat(0x80);
3535
let high_bit_greater_than_128_or_zero = cmp.wrapping_sub(repeat(0x01));
36-
let eq_mask = (high_bit_greater_than_128_or_zero & high_bit_greater_than_128).to_le();
36+
let eq_mask = high_bit_greater_than_128_or_zero & high_bit_greater_than_128;
3737

38-
let empty_mask = (group & repeat(0x80)).to_le();
38+
let empty_mask = group & repeat(0x80);
3939

4040
GroupQuery {
4141
eq_mask,

0 commit comments

Comments
 (0)