| @@ -50,7 +50,7 @@ endif | |||||
| TODAY = $(shell date "+%Y-%m-%d") | TODAY = $(shell date "+%Y-%m-%d") | ||||
| #FIXME ARCHFLAGS | #FIXME ARCHFLAGS | ||||
| ARCHFLAGS ?= -maes -mavx2 -mbmi2 #TODO | |||||
| ARCHFLAGS ?= -mavx2 -mbmi2 #TODO | |||||
| ifeq ($(CC),clang) | ifeq ($(CC),clang) | ||||
| WARNFLAGS_C += -Wgcc-compat | WARNFLAGS_C += -Wgcc-compat | ||||
| @@ -149,9 +149,7 @@ public: | |||||
| inline SecureBuffer sign ( | inline SecureBuffer sign ( | ||||
| const Block &message, | const Block &message, | ||||
| const Block &context = NO_CONTEXT() | const Block &context = NO_CONTEXT() | ||||
| ) const /* TODO: this exn spec tickles a Clang bug? | |||||
| * throw(LengthException, std::bad_alloc) | |||||
| */ { | |||||
| ) const /* throw(LengthException, std::bad_alloc) */ { | |||||
| if (context.size() > 255) { | if (context.size() > 255) { | ||||
| throw LengthException(); | throw LengthException(); | ||||
| } | } | ||||
| @@ -149,9 +149,7 @@ public: | |||||
| inline SecureBuffer sign ( | inline SecureBuffer sign ( | ||||
| const Block &message, | const Block &message, | ||||
| const Block &context = NO_CONTEXT() | const Block &context = NO_CONTEXT() | ||||
| ) const /* TODO: this exn spec tickles a Clang bug? | |||||
| * throw(LengthException, std::bad_alloc) | |||||
| */ { | |||||
| ) const /* throw(LengthException, std::bad_alloc) */ { | |||||
| if (context.size() > 255) { | if (context.size() > 255) { | ||||
| throw LengthException(); | throw LengthException(); | ||||
| } | } | ||||
| @@ -36,7 +36,11 @@ extern int posix_memalign(void **, size_t, size_t); | |||||
| #if defined(__ARM_NEON__) | #if defined(__ARM_NEON__) | ||||
| #include <arm_neon.h> | #include <arm_neon.h> | ||||
| #elif defined(__SSE2__) | #elif defined(__SSE2__) | ||||
| #include <immintrin.h> | |||||
| #if !defined(__GNUC__) || __clang__ || __GNUC__ >= 5 || (__GNUC__==4 && __GNUC_MINOR__ >= 4) | |||||
| #include <immintrin.h> | |||||
| #else | |||||
| #include <emmintrin.h> | |||||
| #endif | |||||
| #endif | #endif | ||||
| #if (ARCH_WORD_BITS == 64) | #if (ARCH_WORD_BITS == 64) | ||||
| @@ -133,9 +133,7 @@ public: | |||||
| inline SecureBuffer sign ( | inline SecureBuffer sign ( | ||||
| const Block &message, | const Block &message, | ||||
| const Block &context = NO_CONTEXT() | const Block &context = NO_CONTEXT() | ||||
| ) const /* TODO: this exn spec tickles a Clang bug? | |||||
| * throw(LengthException, std::bad_alloc) | |||||
| */ { | |||||
| ) const /* throw(LengthException, std::bad_alloc) */ { | |||||
| if (context.size() > 255) { | if (context.size() > 255) { | ||||
| throw LengthException(); | throw LengthException(); | ||||
| } | } | ||||