#include <limits.h>
#include <stdint.h>
#include "int-util.h"
Go to the source code of this file.
|
| #define | RETURN_VALUES |
| |
| #define | VOID_RETURN void |
| |
| #define | INT_RETURN int |
| |
| #define | ui_type(size) uint##size##_t |
| |
| #define | dec_unit_type(size, x) typedef ui_type(size) x |
| |
| #define | dec_bufr_type(size, bsize, x) typedef ui_type(size) x[bsize / (size >> 3)] |
| |
| #define | ptr_cast(x, size) ((ui_type(size)*)(x)) |
| |
| #define | RotL_64(x, N) (((x) << (N)) | ((x) >> (64-(N)))) |
| |
| #define | IS_BIG_ENDIAN 4321 /* byte 0 is most significant (mc68k) */ |
| |
| #define | IS_LITTLE_ENDIAN 1234 /* byte 0 is least significant (i386) */ |
| |
| #define | PLATFORM_BYTE_ORDER IS_LITTLE_ENDIAN |
| |
| #define | PLATFORM_BYTE_ORDER IS_BIG_ENDIAN |
| |
| #define | PLATFORM_MUST_ALIGN (0) |
| |
| #define | SKEIN_NEED_SWAP (0) |
| |
| #define | Skein_Put64_LSB_First(dst08, src64, bCnt) memcpy(dst08,src64,bCnt) |
| |
| #define | Skein_Get64_LSB_First(dst64, src08, wCnt) memcpy(dst64,src08,8*(wCnt)) |
| |
| #define | Skein_Swap64(w64) (w64) |
| |
◆ dec_bufr_type
| #define dec_bufr_type |
( |
|
size, |
|
|
|
bsize, |
|
|
|
x |
|
) |
| typedef ui_type(size) x[bsize / (size >> 3)] |
◆ dec_unit_type
| #define dec_unit_type |
( |
|
size, |
|
|
|
x |
|
) |
| typedef ui_type(size) x |
◆ INT_RETURN
◆ IS_BIG_ENDIAN
| #define IS_BIG_ENDIAN 4321 /* byte 0 is most significant (mc68k) */ |
◆ IS_LITTLE_ENDIAN
| #define IS_LITTLE_ENDIAN 1234 /* byte 0 is least significant (i386) */ |
◆ PLATFORM_BYTE_ORDER [1/2]
◆ PLATFORM_BYTE_ORDER [2/2]
◆ PLATFORM_MUST_ALIGN
| #define PLATFORM_MUST_ALIGN (0) |
◆ ptr_cast
| #define ptr_cast |
( |
|
x, |
|
|
|
size |
|
) |
| ((ui_type(size)*)(x)) |
◆ RETURN_VALUES
◆ RotL_64
| #define RotL_64 |
( |
|
x, |
|
|
|
N |
|
) |
| (((x) << (N)) | ((x) >> (64-(N)))) |
◆ Skein_Get64_LSB_First
| #define Skein_Get64_LSB_First |
( |
|
dst64, |
|
|
|
src08, |
|
|
|
wCnt |
|
) |
| memcpy(dst64,src08,8*(wCnt)) |
◆ SKEIN_NEED_SWAP
| #define SKEIN_NEED_SWAP (0) |
◆ Skein_Put64_LSB_First
| #define Skein_Put64_LSB_First |
( |
|
dst08, |
|
|
|
src64, |
|
|
|
bCnt |
|
) |
| memcpy(dst08,src64,bCnt) |
◆ Skein_Swap64
| #define Skein_Swap64 |
( |
|
w64 | ) |
(w64) |
◆ ui_type
| #define ui_type |
( |
|
size | ) |
uint##size##_t |
◆ VOID_RETURN
◆ u08b_t
◆ u64b_t
◆ uint_t