Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/BLAKE2/BLAKE2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sse
diff options
context:
space:
mode:
authorSamuel Neves <sneves@dei.uc.pt>2015-06-11 23:58:15 +0300
committerSamuel Neves <sneves@dei.uc.pt>2015-06-11 23:58:15 +0300
commitb6525c7fa15dbf6713e0597727827d191a31a26a (patch)
treed191406d2f5e4e0d354aa82025b5d1bc7023078c /sse
parent105d4e49c62847ae033757e953572471bbfdb8c6 (diff)
Remove unnecessary alignment directives
Diffstat (limited to 'sse')
-rw-r--r--sse/blake2.h14
-rw-r--r--sse/blake2b-round.h3
-rw-r--r--sse/blake2b.c2
-rw-r--r--sse/blake2s-round.h3
-rw-r--r--sse/blake2s.c2
5 files changed, 6 insertions, 18 deletions
diff --git a/sse/blake2.h b/sse/blake2.h
index 4f2b196..20bc22d 100644
--- a/sse/blake2.h
+++ b/sse/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];
@@ -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];
@@ -96,7 +90,7 @@ extern "C" {
uint8_t last_node;
} blake2b_state;
- ALIGN( 64 ) typedef struct __blake2sp_state
+ typedef struct __blake2sp_state
{
blake2s_state S[8][1];
blake2s_state R[1];
@@ -104,7 +98,7 @@ extern "C" {
size_t buflen;
} blake2sp_state;
- ALIGN( 64 ) typedef struct __blake2bp_state
+ typedef struct __blake2bp_state
{
blake2b_state S[4][1];
blake2b_state R[1];
diff --git a/sse/blake2b-round.h b/sse/blake2b-round.h
index b0dc4bc..5c49351 100644
--- a/sse/blake2b-round.h
+++ b/sse/blake2b-round.h
@@ -14,9 +14,6 @@
#ifndef __BLAKE2B_ROUND_H__
#define __BLAKE2B_ROUND_H__
-#define LOAD(p) _mm_load_si128( (const __m128i *)(p) )
-#define STORE(p,r) _mm_store_si128((__m128i *)(p), r)
-
#define LOADU(p) _mm_loadu_si128( (const __m128i *)(p) )
#define STOREU(p,r) _mm_storeu_si128((__m128i *)(p), r)
diff --git a/sse/blake2b.c b/sse/blake2b.c
index 041c2d2..423bd39 100644
--- a/sse/blake2b.c
+++ b/sse/blake2b.c
@@ -37,7 +37,7 @@
#include "blake2b-round.h"
-ALIGN( 64 ) static const uint64_t blake2b_IV[8] =
+static const uint64_t blake2b_IV[8] =
{
0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL,
0x3c6ef372fe94f82bULL, 0xa54ff53a5f1d36f1ULL,
diff --git a/sse/blake2s-round.h b/sse/blake2s-round.h
index 804a3e0..57bbc50 100644
--- a/sse/blake2s-round.h
+++ b/sse/blake2s-round.h
@@ -14,9 +14,6 @@
#ifndef __BLAKE2S_ROUND_H__
#define __BLAKE2S_ROUND_H__
-#define LOAD(p) _mm_load_si128( (const __m128i *)(p) )
-#define STORE(p,r) _mm_store_si128((__m128i *)(p), r)
-
#define LOADU(p) _mm_loadu_si128( (const __m128i *)(p) )
#define STOREU(p,r) _mm_storeu_si128((__m128i *)(p), r)
diff --git a/sse/blake2s.c b/sse/blake2s.c
index 8c32bc9..1731b7d 100644
--- a/sse/blake2s.c
+++ b/sse/blake2s.c
@@ -37,7 +37,7 @@
#include "blake2s-round.h"
-ALIGN( 64 ) static const uint32_t blake2s_IV[8] =
+static const uint32_t blake2s_IV[8] =
{
0x6A09E667UL, 0xBB67AE85UL, 0x3C6EF372UL, 0xA54FF53AUL,
0x510E527FUL, 0x9B05688CUL, 0x1F83D9ABUL, 0x5BE0CD19UL