File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ fn test_random_then_unicode_9() {
385
385
roundtrip_helper ( RANDOM_THEN_UNICODE , 9 , 22 , false ) ;
386
386
}
387
387
#[ cfg( feature="std" ) ]
388
- const random_then_unicode_compressed_size_9_5 : usize = 136542 ;
388
+ const random_then_unicode_compressed_size_9_5 : usize = 136126 ;
389
389
#[ cfg( feature="std" ) ]
390
390
const random_then_unicode_compressed_size_9_5x : usize = 136045 ;
391
391
@@ -412,7 +412,7 @@ const alice_compressed_size_11 : usize = 46510;
412
412
413
413
414
414
#[ cfg( not( feature="std" ) ) ] // approx log
415
- const random_then_unicode_compressed_size_9_5 : usize = 136719 ;
415
+ const random_then_unicode_compressed_size_9_5 : usize = 136409 ;
416
416
#[ cfg( not( feature="std" ) ) ] // approx log
417
417
const random_then_unicode_compressed_size_9_5x : usize = 136095 ;
418
418
Original file line number Diff line number Diff line change @@ -679,17 +679,17 @@ impl<Alloc: alloc::Allocator<u16> + alloc::Allocator<u32>> AnyHasher for H9<Allo
679
679
}
680
680
#[ inline( always) ]
681
681
fn HashBytes ( & self , data : & [ u8 ] ) -> usize {
682
- let h: u32 = BROTLI_UNALIGNED_LOAD32 ( data) . wrapping_mul ( kHashMul32 ) ;
683
- let thirty_two : usize = 32 ;
682
+ let h: u64 = ( BROTLI_UNALIGNED_LOAD32 ( data) as u64 | ( ( data [ 4 ] as u64 ) << 32 ) ) . wrapping_mul ( kHashMul64Long ) ;
683
+ let thirty_two : usize = 64 ;
684
684
( h >> ( thirty_two. wrapping_sub ( H9_BUCKET_BITS ) ) ) as usize
685
685
}
686
686
#[ inline( always) ]
687
687
fn HashTypeLength ( & self ) -> usize {
688
- 4
688
+ 5
689
689
}
690
690
#[ inline( always) ]
691
691
fn StoreLookahead ( & self ) -> usize {
692
- 4
692
+ 5
693
693
}
694
694
fn PrepareDistanceCache ( & self , distance_cache : & mut [ i32 ] ) {
695
695
let num_distances = H9_NUM_LAST_DISTANCES_TO_CHECK as i32 ;
You can’t perform that action at this time.
0 commit comments