2016-09-05 14:12:31 +02:00
|
|
|
/**
|
2016-09-11 22:20:15 +02:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-05 14:12:31 +02:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-09-06 18:44:05 +02:00
|
|
|
#ifndef _BITOPS_H
|
|
|
|
#define _BITOPS_H
|
2016-09-05 14:12:31 +02:00
|
|
|
|
|
|
|
u32 rotl32 (const u32 a, const u32 n);
|
|
|
|
u32 rotr32 (const u32 a, const u32 n);
|
|
|
|
u64 rotl64 (const u64 a, const u64 n);
|
|
|
|
u64 rotr64 (const u64 a, const u64 n);
|
|
|
|
|
2017-01-21 18:03:47 +01:00
|
|
|
u16 byte_swap_16 (const u16 n);
|
2016-09-05 14:12:31 +02:00
|
|
|
u32 byte_swap_32 (const u32 n);
|
|
|
|
u64 byte_swap_64 (const u64 n);
|
2016-09-06 18:44:05 +02:00
|
|
|
|
|
|
|
#endif // _BITOPS_H
|