From 42d906d3e95ddc33c6ae1773df32ba3090e0c8d1 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 17 Mar 2016 09:27:39 +0100 Subject: [PATCH] Cacheline alignment --- .../crypto_generichash/blake2/ref/blake2b-compress-ref.c | 2 +- .../crypto_generichash/blake2/ref/blake2b-compress-sse41.c | 2 +- .../crypto_generichash/blake2/ref/blake2b-compress-ssse3.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ref.c b/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ref.c index 6666b59b..b35b5bf9 100644 --- a/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ref.c +++ b/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ref.c @@ -6,7 +6,7 @@ #include "blake2-impl.h" #include "../../sodium/common.h" -static const uint64_t blake2b_IV[8] = +CRYPTO_ALIGN(64) static const uint64_t blake2b_IV[8] = { 0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL, 0x3c6ef372fe94f82bULL, 0xa54ff53a5f1d36f1ULL, diff --git a/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-sse41.c b/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-sse41.c index 48424e6b..b542849c 100644 --- a/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-sse41.c +++ b/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-sse41.c @@ -20,7 +20,7 @@ #include "blake2-impl.h" #include "blake2b-round.h" -static const uint64_t blake2b_IV[8] = +CRYPTO_ALIGN(64) static const uint64_t blake2b_IV[8] = { 0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL, 0x3c6ef372fe94f82bULL, 0xa54ff53a5f1d36f1ULL, diff --git a/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ssse3.c b/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ssse3.c index 775cac11..3058e44c 100644 --- a/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ssse3.c +++ b/src/libsodium/crypto_generichash/blake2/ref/blake2b-compress-ssse3.c @@ -20,7 +20,7 @@ #include "blake2-impl.h" #include "blake2b-round.h" -static const uint64_t blake2b_IV[8] = +CRYPTO_ALIGN(64) static const uint64_t blake2b_IV[8] = { 0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL, 0x3c6ef372fe94f82bULL, 0xa54ff53a5f1d36f1ULL,