File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
lib/src/space/grounding/index Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -485,14 +485,16 @@ enum AtomMatchMode {
485
485
Unification ,
486
486
}
487
487
488
- const TK_STORE_MASK : usize = 0b1 << 63 ;
489
- const TK_MATCH_MASK : usize = 0b1 << 62 ;
490
- const TK_VALUE_MASK : usize = !( 0b11 << 62 ) ;
491
-
492
- const TK_STORE_HASH : usize = 0b0 << 63 ;
493
- const TK_STORE_INDEX : usize = 0b1 << 63 ;
494
- const TK_MATCH_EXACT : usize = 0b0 << 62 ;
495
- const TK_MATCH_CUSTOM : usize = 0b1 << 62 ;
488
+ const BITS_PER_ID : u32 = usize:: BITS - 2 ;
489
+
490
+ const TK_STORE_MASK : usize = 0b10 << BITS_PER_ID ;
491
+ const TK_MATCH_MASK : usize = 0b01 << BITS_PER_ID ;
492
+ const TK_VALUE_MASK : usize = !( 0b11 << BITS_PER_ID ) ;
493
+
494
+ const TK_STORE_HASH : usize = 0b00 << BITS_PER_ID ;
495
+ const TK_STORE_INDEX : usize = 0b10 << BITS_PER_ID ;
496
+ const TK_MATCH_EXACT : usize = 0b00 << BITS_PER_ID ;
497
+ const TK_MATCH_CUSTOM : usize = 0b01 << BITS_PER_ID ;
496
498
497
499
/// Compact representation of the atom from the trie. It represents each
498
500
/// atom using single [usize] value. It keeps value of the key, key matching
You can’t perform that action at this time.
0 commit comments