File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/swisstable_group_query Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ impl GroupQuery {
29
29
// has pretty much the same effect as a hash collision, something
30
30
// that we need to deal with in any case anyway.
31
31
32
- let group = GroupWord :: from_ne_bytes ( * group) ;
32
+ let group = GroupWord :: from_le_bytes ( * group) ;
33
33
let cmp = group ^ repeat ( h2) ;
34
34
let high_bit_greater_than_128 = ( !cmp) & repeat ( 0x80 ) ;
35
35
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;
37
37
38
- let empty_mask = ( group & repeat ( 0x80 ) ) . to_le ( ) ;
38
+ let empty_mask = group & repeat ( 0x80 ) ;
39
39
40
40
GroupQuery {
41
41
eq_mask,
You can’t perform that action at this time.
0 commit comments