Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
siphash.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  siphash
 
struct  sipkey
 

Macros

#define _SIP_ULL(high, low)
 
#define SIP_ROTL(x, 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)
 
#define sip_endof(a)
 

Macro Definition Documentation

◆ _SIP_ULL

#define _SIP_ULL ( high,
low )
Value:
((((uint64_t)high) << 32) | (low))

Definition at line 109 of file siphash.h.

◆ sip_endof

#define sip_endof ( a)
Value:
(&(a)[sizeof(a) / sizeof *(a)])

Definition at line 204 of file siphash.h.

◆ SIP_KEYLEN

#define SIP_KEYLEN   16

Definition at line 139 of file siphash.h.

◆ sip_keyof

#define sip_keyof ( k)
Value:
sip_tokey(&(struct sipkey){{0}}, (k))

Definition at line 145 of file siphash.h.

◆ SIP_ROTL

#define SIP_ROTL ( x,
b )
Value:
(uint64_t)(((x) << (b)) | ((x) >> (64 - (b))))

Definition at line 111 of file siphash.h.

◆ 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.

113#define SIP_U32TO8_LE(p, v) \
114 (p)[0] = (uint8_t)((v) >> 0); \
115 (p)[1] = (uint8_t)((v) >> 8); \
116 (p)[2] = (uint8_t)((v) >> 16); \
117 (p)[3] = (uint8_t)((v) >> 24);

◆ SIP_U64TO8_LE

#define SIP_U64TO8_LE ( p,
v )
Value:
SIP_U32TO8_LE((p) + 0, (uint32_t)((v) >> 0)); \
SIP_U32TO8_LE((p) + 4, (uint32_t)((v) >> 32));
#define SIP_U32TO8_LE(p, v)
Definition siphash.h:113

Definition at line 119 of file siphash.h.

119#define SIP_U64TO8_LE(p, v) \
120 SIP_U32TO8_LE((p) + 0, (uint32_t)((v) >> 0)); \
121 SIP_U32TO8_LE((p) + 4, (uint32_t)((v) >> 32));

◆ 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.

123#define SIP_U8TO64_LE(p) \
124 (((uint64_t)((p)[0]) << 0) | ((uint64_t)((p)[1]) << 8) \
125 | ((uint64_t)((p)[2]) << 16) | ((uint64_t)((p)[3]) << 24) \
126 | ((uint64_t)((p)[4]) << 32) | ((uint64_t)((p)[5]) << 40) \
127 | ((uint64_t)((p)[6]) << 48) | ((uint64_t)((p)[7]) << 56))

◆ SIPHASH_INITIALIZER

#define SIPHASH_INITIALIZER    { 0, 0, 0, 0, {0}, 0, 0 }

Definition at line 129 of file siphash.h.

129#define SIPHASH_INITIALIZER \
130 { 0, 0, 0, 0, {0}, 0, 0 }