blob: b99612bab885d2e77a37b129096446189eb37359 [file] [log] [blame]
Matteo Scandolod525ae32020-04-02 17:27:29 -07001// +build go1.9
2
3package xxhash
4
5import "math/bits"
6
7func rol1(x uint64) uint64 { return bits.RotateLeft64(x, 1) }
8func rol7(x uint64) uint64 { return bits.RotateLeft64(x, 7) }
9func rol11(x uint64) uint64 { return bits.RotateLeft64(x, 11) }
10func rol12(x uint64) uint64 { return bits.RotateLeft64(x, 12) }
11func rol18(x uint64) uint64 { return bits.RotateLeft64(x, 18) }
12func rol23(x uint64) uint64 { return bits.RotateLeft64(x, 23) }
13func rol27(x uint64) uint64 { return bits.RotateLeft64(x, 27) }
14func rol31(x uint64) uint64 { return bits.RotateLeft64(x, 31) }