@@ -49,7 +49,7 @@ static void build_indices(B_Hashable hashwit, $table oldtable, $table newtable,
4949 if (oldtable -> tb_size > INIT_SIZE )
5050 hash = ep -> hash ;
5151 else {
52- hash = fromB_u64 ( B_hash (hashwit , ep -> key ) );
52+ hash = B_hash (hashwit , ep -> key );
5353 ep -> hash = hash ;
5454 }
5555 unsigned long i = (unsigned long )hash & mask ;
@@ -201,7 +201,7 @@ static void insertdict(B_dict dict, B_Hashable hashwit, uint64_t hash, $WORD key
201201 if (!dict -> table || dict -> table -> tb_usable <= 0 )
202202 dictresize (hashwit ,dict );
203203 if (dict -> table -> tb_size == 2 * INIT_SIZE )
204- hash = fromB_u64 ( B_hash (hashwit , key ) );
204+ hash = B_hash (hashwit , key );
205205 int ix = $lookdict (dict ,hashwit ,hash ,key ,& old_value );
206206 if (ix == DKIX_EMPTY ) {
207207 table = dict -> table ;
@@ -351,7 +351,7 @@ B_bool B_dictrel(bool directfalse,B_OrdD_dict w, B_dict a, B_dict b) {
351351 x = it -> $class -> __next__ (it );
352352 long h = 0 ;
353353 if (a -> table -> tb_size > INIT_SIZE )
354- h = fromB_u64 ( B_hash (wH , x ) );
354+ h = B_hash (wH , x );
355355 int ixa = $lookdict (a , wH , h , x , & resa );
356356 int ixb = $lookdict (b , wH , h , x ,& resb );
357357 if (ixb < 0 || wB -> $class -> __ne__ (wB ,resa ,resb )-> val ) {
@@ -469,8 +469,8 @@ B_dict B_MappingD_dictD___fromiter__ (B_MappingD_dict wit, B_Iterable wit2, $WOR
469469 */
470470}
471471
472- B_int B_MappingD_dictD___len__ (B_MappingD_dict wit , B_dict dict ) {
473- return toB_int ( dict -> numelements ) ;
472+ int64_t B_MappingD_dictD___len__ (B_MappingD_dict wit , B_dict dict ) {
473+ return dict -> numelements ;
474474}
475475
476476B_bool B_MappingD_dictD___contains__ (B_MappingD_dict wit , B_dict dict , $WORD key ) {
@@ -480,7 +480,7 @@ B_bool B_MappingD_dictD___contains__ (B_MappingD_dict wit, B_dict dict, $WORD ke
480480 $WORD res ;
481481 long h = 0 ;
482482 if (dict -> table -> tb_size > INIT_SIZE )
483- h = fromB_u64 ( B_hash (hashwit , key ) );
483+ h = B_hash (hashwit , key );
484484 return toB_bool ($lookdict (dict ,hashwit ,h ,key ,& res ) >= 0 );
485485}
486486
@@ -494,7 +494,7 @@ B_bool B_MappingD_dictD___containsnot__ (B_MappingD_dict wit, B_dict dict, $WORD
494494 uint64_t hash = 0 ;
495495 B_Hashable hashwit = wit -> W_HashableD_AD_MappingD_dict ;
496496 if (dict -> table -> tb_size > INIT_SIZE )
497- hash = fromB_u64 ( B_hash (hashwit , key ) );
497+ hash = B_hash (hashwit , key );
498498 $WORD res ;
499499 int ix = $lookdict (dict ,hashwit ,hash ,key ,& res );
500500 if (ix < 0 )
@@ -509,7 +509,7 @@ B_bool B_MappingD_dictD___containsnot__ (B_MappingD_dict wit, B_dict dict, $WORD
509509 uint64_t hash = 0 ;
510510 B_Hashable hashwit = wit -> W_HashableD_AD_MappingD_dict ;
511511 if (dict -> table -> tb_size > INIT_SIZE )
512- hash = fromB_u64 ( B_hash (hashwit , key ) );
512+ hash = B_hash (hashwit , key );
513513 $WORD res ;
514514 int ix = $lookdict (dict ,hashwit ,hash ,key ,& res );
515515 if (ix < 0 )
@@ -525,7 +525,7 @@ B_bool B_MappingD_dictD___containsnot__ (B_MappingD_dict wit, B_dict dict, $WORD
525525 uint64_t hash = 0 ;
526526 B_Hashable hashwit = wit -> W_HashableD_AD_MappingD_dict ;
527527 if (table -> tb_size > INIT_SIZE ) {
528- hash = fromB_u64 ( B_hash (hashwit , key ) );
528+ hash = B_hash (hashwit , key );
529529 }
530530 $WORD res ;
531531 int ix = $lookdict (dict ,hashwit ,hash ,key ,& res );
@@ -551,7 +551,7 @@ B_bool B_MappingD_dictD___containsnot__ (B_MappingD_dict wit, B_dict dict, $WORD
551551 uint64_t hash = 0 ;
552552 B_Hashable hashwit = wit -> W_HashableD_AD_MappingD_dict ;
553553 if (table -> tb_size > INIT_SIZE ) {
554- hash = fromB_u64 ( B_hash (hashwit , key ) );
554+ hash = B_hash (hashwit , key );
555555 }
556556 $WORD res ;
557557 int ix = $lookdict (dict ,hashwit ,hash ,key ,& res );
@@ -726,7 +726,7 @@ B_tuple B_MappingD_dictD_popitem (B_MappingD_dict wit, B_dict dict) {
726726 $entry_t entry = & TB_ENTRIES (table )[ix ];
727727 if (entry -> value != DELETED ) {
728728 if (table -> tb_size > INIT_SIZE ) {
729- uint64_t hash = fromB_u64 ( B_hash (hashwit , entry -> key ) );
729+ uint64_t hash = B_hash (hashwit , entry -> key );
730730 int i = $lookdict_index (table ,hash ,ix );
731731 table -> tb_indices [i ] = DKIX_DUMMY ;
732732 }
@@ -742,7 +742,7 @@ B_tuple B_MappingD_dictD_popitem (B_MappingD_dict wit, B_dict dict) {
742742$WORD B_MappingD_dictD_setdefault (B_MappingD_dict wit , B_dict dict , $WORD key , $WORD deflt ) {
743743 if (!deflt ) deflt = B_None ;
744744 B_Hashable hashwit = wit -> W_HashableD_AD_MappingD_dict ;
745- uint64_t hash = fromB_u64 ( B_hash (hashwit , key ) );
745+ uint64_t hash = B_hash (hashwit , key );
746746 $WORD value ;
747747 int ix = $lookdict (dict ,hashwit ,hash ,key ,& value );
748748 if (ix >= 0 )
@@ -760,7 +760,7 @@ B_tuple B_MappingD_dictD_popitem (B_MappingD_dict wit, B_dict dict) {
760760 B_Hashable hashwit = ((B_MappingD_dict )wit -> W_Mapping )-> W_HashableD_AD_MappingD_dict ;
761761 uint64_t hash = 0 ;
762762 if (dict -> table -> tb_size > INIT_SIZE ) {
763- hash = fromB_u64 ( B_hash (hashwit , key ) );
763+ hash = B_hash (hashwit , key );
764764 }
765765 $WORD res ;
766766 int ix = $lookdict (dict ,hashwit ,hash ,key ,& res );
@@ -774,7 +774,7 @@ B_NoneType B_IndexedD_MappingD_dictD___setitem__ (B_IndexedD_MappingD_dict wit,
774774 B_Hashable hashwit = ((B_MappingD_dict )wit -> W_Mapping )-> W_HashableD_AD_MappingD_dict ;
775775 uint64_t hash = 0 ;
776776 if (dict -> table && dict -> table -> tb_size > INIT_SIZE ) {
777- hash = fromB_u64 ( B_hash (hashwit , key ) );
777+ hash = B_hash (hashwit , key );
778778 }
779779 insertdict (dict , hashwit , hash , key , value );
780780 return B_None ;
@@ -788,7 +788,7 @@ B_NoneType B_IndexedD_MappingD_dictD___delitem__ (B_IndexedD_MappingD_dict wit,
788788 uint64_t hash = 0 ;
789789 B_Hashable hashwit = ((B_MappingD_dict )wit -> W_Mapping )-> W_HashableD_AD_MappingD_dict ;
790790 if (dict -> table -> tb_size > INIT_SIZE ) {
791- hash = fromB_u64 ( B_hash (hashwit , key ) );
791+ hash = B_hash (hashwit , key );
792792 }
793793 $WORD res ;
794794 int ix = $lookdict (dict ,hashwit ,hash ,key ,& res );
@@ -813,7 +813,7 @@ B_NoneType B_IndexedD_MappingD_dictD___delitem__ (B_IndexedD_MappingD_dict wit,
813813void B_dictD_setitem (B_dict dict , B_Hashable hashwit , $WORD key , $WORD value ) {
814814 uint64_t hash = 0 ;
815815 if (dict -> table && dict -> table -> tb_size > INIT_SIZE ) {
816- hash = fromB_u64 ( B_hash (hashwit , key ) );
816+ hash = B_hash (hashwit , key );
817817 }
818818 insertdict (dict , hashwit , hash , key , value );
819819}
@@ -823,7 +823,7 @@ void B_dictD_setitem(B_dict dict, B_Hashable hashwit, $WORD key, $WORD value) {
823823 return deflt ;
824824 uint64_t hash = 0 ;
825825 if (dict -> table -> tb_size > INIT_SIZE ) {
826- hash = fromB_u64 ( B_hash (hashwit , key ) );
826+ hash = B_hash (hashwit , key );
827827 }
828828 $WORD res ;
829829 int ix = $lookdict (dict ,hashwit ,hash ,key ,& res );
@@ -839,7 +839,7 @@ void B_dictD_setitem(B_dict dict, B_Hashable hashwit, $WORD key, $WORD value) {
839839 $table table = dict -> table ;
840840 uint64_t hash = 0 ;
841841 if (table -> tb_size > INIT_SIZE ) {
842- hash = fromB_u64 ( B_hash (hashwit , key ) );
842+ hash = B_hash (hashwit , key );
843843 }
844844 $WORD res ;
845845 int ix = $lookdict (dict ,hashwit ,hash ,key ,& res );
0 commit comments