diff options
author | Samuel Neves <sneves@dei.uc.pt> | 2015-06-11 23:58:15 +0300 |
---|---|---|
committer | Samuel Neves <sneves@dei.uc.pt> | 2015-06-11 23:58:15 +0300 |
commit | b6525c7fa15dbf6713e0597727827d191a31a26a (patch) | |
tree | d191406d2f5e4e0d354aa82025b5d1bc7023078c /ref | |
parent | 105d4e49c62847ae033757e953572471bbfdb8c6 (diff) |
Remove unnecessary alignment directives
Diffstat (limited to 'ref')
-rw-r--r-- | ref/blake2.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ref/blake2.h b/ref/blake2.h index f8aba83..cc625cb 100644 --- a/ref/blake2.h +++ b/ref/blake2.h @@ -17,12 +17,6 @@ #include <stddef.h> #include <stdint.h> -#if defined(_MSC_VER) -#define ALIGN(x) __declspec(align(x)) -#else -#define ALIGN(x) __attribute__((aligned(x))) -#endif - #if defined(__cplusplus) extern "C" { #endif @@ -61,7 +55,7 @@ extern "C" { uint8_t personal[BLAKE2S_PERSONALBYTES]; // 32 } blake2s_param; - ALIGN( 64 ) typedef struct __blake2s_state + typedef struct __blake2s_state { uint32_t h[8]; uint32_t t[2]; @@ -69,7 +63,7 @@ extern "C" { uint8_t buf[2 * BLAKE2S_BLOCKBYTES]; size_t buflen; uint8_t last_node; - } blake2s_state ; + } blake2s_state; typedef struct __blake2b_param { @@ -86,7 +80,7 @@ extern "C" { uint8_t personal[BLAKE2B_PERSONALBYTES]; // 64 } blake2b_param; - ALIGN( 64 ) typedef struct __blake2b_state + typedef struct __blake2b_state { uint64_t h[8]; uint64_t t[2]; |