@@ -44,7 +44,7 @@ function unsafe_pop(q) {
44
44
}
45
45
46
46
function rotl32 ( x , n ) {
47
- return ( x << n ) | ( x >>> ( 32 - n | 0 ) ) | 0 ;
47
+ return x << n | x >>> ( 32 - n | 0 ) | 0 ;
48
48
}
49
49
50
50
function hash_mix_int ( h , d ) {
@@ -58,26 +58,26 @@ function hash_mix_int(h, d) {
58
58
}
59
59
60
60
function hash_final_mix ( h ) {
61
- let h$1 = h ^ ( h >>> 16 ) ;
61
+ let h$1 = h ^ h >>> 16 ;
62
62
h$1 = Math . imul ( h$1 , - 2048144789 ) ;
63
- h$1 = h$1 ^ ( h$1 >>> 13 ) ;
63
+ h$1 = h$1 ^ h$1 >>> 13 ;
64
64
h$1 = Math . imul ( h$1 , - 1028477387 ) ;
65
- return h$1 ^ ( h$1 >>> 16 ) ;
65
+ return h$1 ^ h$1 >>> 16 ;
66
66
}
67
67
68
68
function hash_mix_string ( h , s ) {
69
69
let len = s . length ;
70
70
let block = ( len / 4 | 0 ) - 1 | 0 ;
71
71
let hash = h ;
72
72
for ( let i = 0 ; i <= block ; ++ i ) {
73
- let j = ( i << 2 ) ;
74
- let w = s . charCodeAt ( j ) | ( s . charCodeAt ( j + 1 | 0 ) << 8 ) | ( s . charCodeAt ( j + 2 | 0 ) << 16 ) | ( s . charCodeAt ( j + 3 | 0 ) << 24 ) ;
73
+ let j = i << 2 ;
74
+ let w = s . charCodeAt ( j ) | s . charCodeAt ( j + 1 | 0 ) << 8 | s . charCodeAt ( j + 2 | 0 ) << 16 | s . charCodeAt ( j + 3 | 0 ) << 24 ;
75
75
hash = hash_mix_int ( hash , w ) ;
76
76
}
77
77
let modulo = len & 3 ;
78
78
if ( modulo !== 0 ) {
79
- let w$1 = modulo === 3 ? ( s . charCodeAt ( len - 1 | 0 ) << 16 ) | ( s . charCodeAt ( len - 2 | 0 ) << 8 ) | s . charCodeAt ( len - 3 | 0 ) : (
80
- modulo === 2 ? ( s . charCodeAt ( len - 1 | 0 ) << 8 ) | s . charCodeAt ( len - 2 | 0 ) : s . charCodeAt ( len - 1 | 0 )
79
+ let w$1 = modulo === 3 ? s . charCodeAt ( len - 1 | 0 ) << 16 | s . charCodeAt ( len - 2 | 0 ) << 8 | s . charCodeAt ( len - 3 | 0 ) : (
80
+ modulo === 2 ? s . charCodeAt ( len - 1 | 0 ) << 8 | s . charCodeAt ( len - 2 | 0 ) : s . charCodeAt ( len - 1 | 0 )
81
81
) ;
82
82
hash = hash_mix_int ( hash , w$1 ) ;
83
83
}
@@ -117,7 +117,7 @@ function hash(count, _limit, seed, obj) {
117
117
let size = obj$1 . length | 0 ;
118
118
if ( size !== 0 ) {
119
119
let obj_tag = obj$1 . TAG ;
120
- let tag = ( size << 10 ) | obj_tag ;
120
+ let tag = size << 10 | obj_tag ;
121
121
s = hash_mix_int ( s , tag ) ;
122
122
let v = size - 1 | 0 ;
123
123
let block = v < num ? v : num ;
@@ -133,7 +133,7 @@ function hash(count, _limit, seed, obj) {
133
133
}
134
134
return size
135
135
} ) ( obj$1 , v => push_back ( queue , v ) ) ;
136
- s = hash_mix_int ( s , ( size$1 << 10 ) | 0 ) ;
136
+ s = hash_mix_int ( s , size$1 << 10 | 0 ) ;
137
137
}
138
138
}
139
139
0 commit comments