@@ -208,7 +208,7 @@ pub fn StoreLookaheadThenStore<T: AnyHasher>(hasher: &mut T, size: usize, dict:
208
208
pub trait BasicHashComputer {
209
209
fn HashBytes ( & self , data : & [ u8 ] ) -> u32 ;
210
210
fn BUCKET_BITS ( & self ) -> i32 ;
211
- fn USE_DICTIONARY ( & self ) -> i32 ;
211
+ fn use_dictionary ( & self ) -> bool ;
212
212
fn BUCKET_SWEEP ( & self ) -> i32 ;
213
213
}
214
214
pub struct BasicHasher < Buckets : SliceWrapperMut < u32 > + SliceWrapper < u32 > + BasicHashComputer > {
@@ -432,7 +432,7 @@ impl<T: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> AnyHasher
432
432
}
433
433
}
434
434
}
435
- if dictionary. is_some ( ) && self . buckets_ . USE_DICTIONARY ( ) != 0 && !is_match_found {
435
+ if dictionary. is_some ( ) && self . buckets_ . use_dictionary ( ) && !is_match_found {
436
436
is_match_found = SearchInStaticDictionary (
437
437
dictionary. unwrap ( ) ,
438
438
dictionary_hash,
@@ -463,8 +463,8 @@ impl<AllocU32: alloc::Allocator<u32>> BasicHashComputer for H2Sub<AllocU32> {
463
463
fn BUCKET_SWEEP ( & self ) -> i32 {
464
464
1
465
465
}
466
- fn USE_DICTIONARY ( & self ) -> i32 {
467
- 1
466
+ fn use_dictionary ( & self ) -> bool {
467
+ true
468
468
}
469
469
}
470
470
impl < AllocU32 : alloc:: Allocator < u32 > > SliceWrapperMut < u32 > for H2Sub < AllocU32 > {
@@ -497,8 +497,8 @@ impl<AllocU32: alloc::Allocator<u32>> BasicHashComputer for H3Sub<AllocU32> {
497
497
fn BUCKET_SWEEP ( & self ) -> i32 {
498
498
2
499
499
}
500
- fn USE_DICTIONARY ( & self ) -> i32 {
501
- 0
500
+ fn use_dictionary ( & self ) -> bool {
501
+ false
502
502
}
503
503
fn HashBytes ( & self , data : & [ u8 ] ) -> u32 {
504
504
let h: u64 =
@@ -516,8 +516,8 @@ impl<AllocU32: alloc::Allocator<u32>> BasicHashComputer for H4Sub<AllocU32> {
516
516
fn BUCKET_SWEEP ( & self ) -> i32 {
517
517
4
518
518
}
519
- fn USE_DICTIONARY ( & self ) -> i32 {
520
- 1
519
+ fn use_dictionary ( & self ) -> bool {
520
+ true
521
521
}
522
522
fn HashBytes ( & self , data : & [ u8 ] ) -> u32 {
523
523
let h: u64 =
@@ -545,8 +545,8 @@ impl<AllocU32: alloc::Allocator<u32>> BasicHashComputer for H54Sub<AllocU32> {
545
545
fn BUCKET_SWEEP ( & self ) -> i32 {
546
546
4
547
547
}
548
- fn USE_DICTIONARY ( & self ) -> i32 {
549
- 0
548
+ fn use_dictionary ( & self ) -> bool {
549
+ false
550
550
}
551
551
fn HashBytes ( & self , data : & [ u8 ] ) -> u32 {
552
552
let h: u64 =
0 commit comments