You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hashcat/include/bitops.h

20 lines
396 B

/**
* Authors.....: Jens Steube <jens.steube@gmail.com>
* License.....: MIT
*/
#ifndef _BITOPS_H
#define _BITOPS_H
u32 is_power_of_2 (const u32 v);
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);
u32 byte_swap_32 (const u32 n);
u64 byte_swap_64 (const u64 n);
#endif // _BITOPS_H