|
@@ -16,4 +16,12 @@ static inline uint32_t ror32 ( uint32_t data, unsigned int rotation ) {
|
16
|
16
|
return ( ( data >> rotation ) | ( data << ( 32 - rotation ) ) );
|
17
|
17
|
}
|
18
|
18
|
|
|
19
|
+static inline uint64_t rol64 ( uint64_t data, unsigned int rotation ) {
|
|
20
|
+ return ( ( data << rotation ) | ( data >> ( 64 - rotation ) ) );
|
|
21
|
+}
|
|
22
|
+
|
|
23
|
+static inline uint64_t ror64 ( uint64_t data, unsigned int rotation ) {
|
|
24
|
+ return ( ( data >> rotation ) | ( data << ( 64 - rotation ) ) );
|
|
25
|
+}
|
|
26
|
+
|
19
|
27
|
#endif /* _GPXE_BITOPS_H */
|