@@ -127,25 +127,25 @@ def fmix(k):
127
127
for block_start in xrange (0 , nblocks * 8 , 8 ):
128
128
# ??? big endian?
129
129
k1 = (
130
- key [2 * block_start + 7 ] << 56
131
- | key [2 * block_start + 6 ] << 48
132
- | key [2 * block_start + 5 ] << 40
133
- | key [2 * block_start + 4 ] << 32
134
- | key [2 * block_start + 3 ] << 24
135
- | key [2 * block_start + 2 ] << 16
136
- | key [2 * block_start + 1 ] << 8
137
- | key [2 * block_start + 0 ]
130
+ key [2 * block_start + 7 ] << 56 |
131
+ key [2 * block_start + 6 ] << 48 |
132
+ key [2 * block_start + 5 ] << 40 |
133
+ key [2 * block_start + 4 ] << 32 |
134
+ key [2 * block_start + 3 ] << 24 |
135
+ key [2 * block_start + 2 ] << 16 |
136
+ key [2 * block_start + 1 ] << 8 |
137
+ key [2 * block_start + 0 ]
138
138
)
139
139
140
140
k2 = (
141
- key [2 * block_start + 15 ] << 56
142
- | key [2 * block_start + 14 ] << 48
143
- | key [2 * block_start + 13 ] << 40
144
- | key [2 * block_start + 12 ] << 32
145
- | key [2 * block_start + 11 ] << 24
146
- | key [2 * block_start + 10 ] << 16
147
- | key [2 * block_start + 9 ] << 8
148
- | key [2 * block_start + 8 ]
141
+ key [2 * block_start + 15 ] << 56 |
142
+ key [2 * block_start + 14 ] << 48 |
143
+ key [2 * block_start + 13 ] << 40 |
144
+ key [2 * block_start + 12 ] << 32 |
145
+ key [2 * block_start + 11 ] << 24 |
146
+ key [2 * block_start + 10 ] << 16 |
147
+ key [2 * block_start + 9 ] << 8 |
148
+ key [2 * block_start + 8 ]
149
149
)
150
150
151
151
k1 = (c1 * k1 ) & 0xFFFFFFFFFFFFFFFF
@@ -258,31 +258,31 @@ def fmix(h):
258
258
# body
259
259
for block_start in xrange (0 , nblocks * 16 , 16 ):
260
260
k1 = (
261
- key [block_start + 3 ] << 24
262
- | key [block_start + 2 ] << 16
263
- | key [block_start + 1 ] << 8
264
- | key [block_start + 0 ]
261
+ key [block_start + 3 ] << 24 |
262
+ key [block_start + 2 ] << 16 |
263
+ key [block_start + 1 ] << 8 |
264
+ key [block_start + 0 ]
265
265
)
266
266
267
267
k2 = (
268
- key [block_start + 7 ] << 24
269
- | key [block_start + 6 ] << 16
270
- | key [block_start + 5 ] << 8
271
- | key [block_start + 4 ]
268
+ key [block_start + 7 ] << 24 |
269
+ key [block_start + 6 ] << 16 |
270
+ key [block_start + 5 ] << 8 |
271
+ key [block_start + 4 ]
272
272
)
273
273
274
274
k3 = (
275
- key [block_start + 11 ] << 24
276
- | key [block_start + 10 ] << 16
277
- | key [block_start + 9 ] << 8
278
- | key [block_start + 8 ]
275
+ key [block_start + 11 ] << 24 |
276
+ key [block_start + 10 ] << 16 |
277
+ key [block_start + 9 ] << 8 |
278
+ key [block_start + 8 ]
279
279
)
280
280
281
281
k4 = (
282
- key [block_start + 15 ] << 24
283
- | key [block_start + 14 ] << 16
284
- | key [block_start + 13 ] << 8
285
- | key [block_start + 12 ]
282
+ key [block_start + 15 ] << 24 |
283
+ key [block_start + 14 ] << 16 |
284
+ key [block_start + 13 ] << 8 |
285
+ key [block_start + 12 ]
286
286
)
287
287
288
288
k1 = (c1 * k1 ) & 0xFFFFFFFF
0 commit comments