Home | History | Annotate | Download | only in hash

Lines Matching defs:Rotate

356 #undef Rotate
357 #define Rotate Rotate64
385 uint64_t c = Rotate(b, 37) * mul + a;
386 uint64_t d = (Rotate(a, 25) + b) * mul;
413 return HashLen16(Rotate(a + b, 43) + Rotate(c, 30) + d,
414 a + Rotate(b + k2, 18) + c, mul);
422 b = Rotate(b + a + z, 21);
426 b += Rotate(a, 44);
448 uint64_t y = Rotate(a + b, 43) + Rotate(c, 30) + d;
449 uint64_t z = HashLen16(y, a + Rotate(b + k2, 18) + c, mul);
454 return HashLen16(Rotate(e + f, 43) + Rotate(g, 30) + h,
455 e + Rotate(f + a, 18) + g, mul);
484 x = Rotate(x + y + v.first + Fetch(s + 8), 37) * k1;
485 y = Rotate(y + v.second + Fetch(s + 48), 42) * k1;
488 z = Rotate(z + w.first, 33) * k1;
500 x = Rotate(x + y + v.first + Fetch(s + 8), 37) * mul;
501 y = Rotate(y + v.second + Fetch(s + 48), 42) * mul;
504 z = Rotate(z + w.first, 33) * mul;
527 #undef Rotate
528 #define Rotate Rotate32
541 a = Rotate(a, 12) + f;
543 a = Rotate(a, 3) + c;
545 a = Rotate(a + f, 12) + d;
578 uint32_t a0 = Rotate(Fetch(s + len - 4) * c1, 17) * c2;
579 uint32_t a1 = Rotate(Fetch(s + len - 8) * c1, 17) * c2;
580 uint32_t a2 = Rotate(Fetch(s + len - 16) * c1, 17) * c2;
581 uint32_t a3 = Rotate(Fetch(s + len - 12) * c1, 17) * c2;
582 uint32_t a4 = Rotate(Fetch(s + len - 20) * c1, 17) * c2;
584 h = Rotate(h, 19);
587 h = Rotate(h, 19);
590 g = Rotate(g, 19);
593 g = Rotate(g, 19);
596 f = Rotate(f, 19) + 113;
614 g = Rotate
615 g = Rotate(g, 17) * c1;
616 f = Rotate(f, 11) * c1;
617 f = Rotate(f, 17) * c1;
618 h = Rotate(h + g, 19);
620 h = Rotate(h, 17) * c1;
621 h = Rotate(h + f, 19);
623 h = Rotate(h, 17) * c1;
655 #undef Rotate
656 #define Rotate Rotate32
667 STATIC_INLINE __m128i Rotate(__m128i x, int c) {
671 STATIC_INLINE __m128i Rot17(__m128i x) { return Rotate(x, 17); }
672 STATIC_INLINE __m128i Rot19(__m128i x) { return Rotate(x, 19); }
907 #undef Rotate
908 #define Rotate Rotate32
919 STATIC_INLINE __m128i Rotate(__m128i x, int c) {
923 STATIC_INLINE __m128i Rot17(__m128i x) { return Rotate(x, 17); }
924 STATIC_INLINE __m128i Rot19(__m128i x) { return Rotate(x, 19); }
1107 #undef Rotate
1108 #define Rotate Rotate32
1153 uint32_t a0 = Rotate(Fetch(s + len - 4) * c1, 17) * c2;
1154 uint32_t a1 = Rotate(Fetch(s + len - 8) * c1, 17) * c2;
1155 uint32_t a2 = Rotate(Fetch(s + len - 16) * c1, 17) * c2;
1156 uint32_t a3 = Rotate(Fetch(s + len - 12) * c1, 17) * c2;
1157 uint32_t a4 = Rotate(Fetch(s + len - 20) * c1, 17) * c2;
1159 h = Rotate(h, 19);
1162 h = Rotate(h, 19);
1165 g = Rotate(g, 19);
1168 g = Rotate(g, 19);
1171 f = Rotate(f, 19);
1175 uint32_t a0 = Rotate(Fetch(s) * c1, 17) * c2;
1177 uint32_t a2 = Rotate(Fetch(s + 8) * c1, 17) * c2;
1178 uint32_t a3 = Rotate(Fetch(s + 12) * c1, 17) * c2;
1181 h = Rotate(h, 18);
1184 f = Rotate(f, 19);
1187 g = Rotate(g, 18);
1190 h = Rotate(h, 19);
1200 g = Rotate(g, 11) * c1;
1201 g = Rotate(g, 17) * c1;
1202 f = Rotate(f, 11) * c1;
1203 f = Rotate(f, 17) * c1;
1204 h = Rotate(h + g, 19);
1206 h = Rotate(h, 17) * c1;
1207 h = Rotate(h + f, 19);
1209 h = Rotate(h, 17) * c1;
1226 #undef Rotate
1227 #define Rotate Rotate64
1255 uint64_t c = Rotate(b, 37) * mul + a;
1256 uint64_t d = (Rotate(a, 25) + b) * mul;
1280 b = Rotate(b + a + z, 21);
1284 b += Rotate(a, 44);
1344 v.first = Rotate(y ^ k1, 49) * k1 + Fetch(s);
1345 v.second = Rotate(v.first, 42) * k1 + Fetch(s + 8);
1346 w.first = Rotate(y + z, 35) * k1 + x;
1347 w.second = Rotate(x + Fetch(s + 88), 53) * k1;
1351 x = Rotate(x + y + v.first + Fetch(s + 8), 37) * k1;
1352 y = Rotate(y + v.second + Fetch(s + 48), 42) * k1;
1355 z = Rotate(z + w.first, 33) * k1;
1360 x = Rotate(x + y + v.first + Fetch(s + 8), 37) * k1;
1361 y = Rotate(y + v.second + Fetch(s + 48), 42) * k1;
1364 z = Rotate(z + w.first, 33) * k1;
1371 x += Rotate(v.first + z, 49) * k0;
1372 y = y * k0 + Rotate(w.second, 37);
1373 z = z * k0 + Rotate(w.first, 27);
1379 y = Rotate(x + y, 42) * k0 + v.second;