Geant4 11.1.1
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)   ((((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)])
 

Macro Definition Documentation

◆ _SIP_ULL

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

Definition at line 109 of file siphash.h.

◆ sip_endof

#define sip_endof (   a)    (&(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)    sip_tokey(&(struct sipkey){{0}}, (k))

Definition at line 145 of file siphash.h.

◆ SIP_ROTL

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

Definition at line 111 of file siphash.h.

◆ SIP_U32TO8_LE

#define SIP_U32TO8_LE (   p,
 
)
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,
 
)
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.

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

Definition at line 129 of file siphash.h.