2016-09-05 12:12:31 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-05 12:12:31 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2023-01-17 19:25:40 +00:00
|
|
|
#ifndef BITOPS_H
|
|
|
|
#define BITOPS_H
|
2016-09-05 12:12:31 +00:00
|
|
|
|
2019-03-23 21:13:59 +00:00
|
|
|
u32 rotl32 (const u32 a, const int n);
|
|
|
|
u32 rotr32 (const u32 a, const int n);
|
|
|
|
u64 rotl64 (const u64 a, const int n);
|
|
|
|
u64 rotr64 (const u64 a, const int n);
|
2016-09-05 12:12:31 +00:00
|
|
|
|
2019-03-23 21:13:59 +00:00
|
|
|
u16 byte_swap_16 (const u16 n);
|
|
|
|
u32 byte_swap_32 (const u32 n);
|
|
|
|
u64 byte_swap_64 (const u64 n);
|
2016-09-06 16:44:05 +00:00
|
|
|
|
2023-01-17 19:25:40 +00:00
|
|
|
#endif // BITOPS_H
|