#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
|
#define | _SIP_ULL(high, low) ((((uint64_t)high) << 32) | (low)) |
|
#define | SIP_ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) |
|
#define | SIP_U32TO8_LE(p, v) |
|
#define | SIP_U64TO8_LE(p, v) |
|
#define | SIP_U8TO64_LE(p) |
|
#define | SIPHASH_INITIALIZER { 0, 0, 0, 0, {0}, 0, 0 } |
|
#define | SIP_KEYLEN 16 |
|
#define | sip_keyof(k) sip_tokey(&(struct sipkey){{0}}, (k)) |
|
#define | sip_endof(a) (&(a)[sizeof(a) / sizeof *(a)]) |
|
◆ _SIP_ULL
#define _SIP_ULL |
( |
|
high, |
|
|
|
low |
|
) |
| ((((uint64_t)high) << 32) | (low)) |
◆ sip_endof
#define sip_endof |
( |
|
a | ) |
(&(a)[sizeof(a) / sizeof *(a)]) |
◆ SIP_KEYLEN
◆ sip_keyof
#define sip_keyof |
( |
|
k | ) |
sip_tokey(&(struct sipkey){{0}}, (k)) |
◆ SIP_ROTL
#define SIP_ROTL |
( |
|
x, |
|
|
|
b |
|
) |
| (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) |
◆ SIP_U32TO8_LE
#define SIP_U32TO8_LE |
( |
|
p, |
|
|
|
v |
|
) |
| |
Value: (p)[0] = (uint8_t)((v) >> 0); \
(p)[1] = (uint8_t)((v) >> 8); \
(p)[2] = (uint8_t)((v) >> 16); \
(p)[3] = (uint8_t)((v) >> 24);
Definition at line 113 of file siphash.h.
◆ SIP_U64TO8_LE
#define SIP_U64TO8_LE |
( |
|
p, |
|
|
|
v |
|
) |
| |
Value:
SIP_U32TO8_LE((p) + 4, (uint32_t)((v) >> 32));
#define SIP_U32TO8_LE(p, v)
Definition at line 119 of file siphash.h.
◆ SIP_U8TO64_LE
#define SIP_U8TO64_LE |
( |
|
p | ) |
|
Value: (((uint64_t)((p)[0]) << 0) | ((uint64_t)((p)[1]) << 8) \
| ((uint64_t)((p)[2]) << 16) | ((uint64_t)((p)[3]) << 24) \
| ((uint64_t)((p)[4]) << 32) | ((uint64_t)((p)[5]) << 40) \
| ((uint64_t)((p)[6]) << 48) | ((uint64_t)((p)[7]) << 56))
Definition at line 123 of file siphash.h.
◆ SIPHASH_INITIALIZER
#define SIPHASH_INITIALIZER { 0, 0, 0, 0, {0}, 0, 0 } |