summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-08-17 15:27:41 -0400
committerNick Mathewson <nickm@torproject.org>2015-08-17 15:27:41 -0400
commit7b8526d64c64f71b4d9a58dc3c48cd694b91079e (patch)
tree8390d0270c38a17b00d6971942a4c40a4fe8b35e
parent7efdf5cb4939246fe03dd43b140f61cf3ed0f7e9 (diff)
parent971eba0fcd48a9a2dbe980b05a31797faf273076 (diff)
downloadtor-7b8526d64c64f71b4d9a58dc3c48cd694b91079e.tar.gz
tor-7b8526d64c64f71b4d9a58dc3c48cd694b91079e.zip
Merge remote-tracking branch 'yawning/feature16535'
-rw-r--r--src/ext/ed25519/donna/ed25519-donna-portable.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ext/ed25519/donna/ed25519-donna-portable.h b/src/ext/ed25519/donna/ed25519-donna-portable.h
index 1cd644c003..9c9c55577c 100644
--- a/src/ext/ed25519/donna/ed25519-donna-portable.h
+++ b/src/ext/ed25519/donna/ed25519-donna-portable.h
@@ -144,6 +144,16 @@ static inline void U64TO8_LE(unsigned char *p, const uint64_t v) {
#endif
#endif
+/* Tor: Force enable SSE2 on 32 bit x86 systems if the compile target
+ * architecture supports it. This is not done on x86-64 as the non-SSE2
+ * code benchmarks better, at least on Haswell.
+ */
+#if defined(__SSE2__) /* && !defined(CPU_X86_64) */
+ /* undef in case it's manually specified... */
+ #undef ED25519_SSE2
+ #define ED25519_SSE2
+#endif
+
/* Tor: GCC's Stack Protector freaks out and produces variable length
* buffer warnings when alignment is requested that is greater than
* STACK_BOUNDARY (x86 has special code to deal with this for SSE2).
@@ -158,16 +168,6 @@ static inline void U64TO8_LE(unsigned char *p, const uint64_t v) {
#define ALIGN(x)
#endif
-/* Tor: Force enable SSE2 on 32 bit x86 systems if the compile target
- * architecture supports it. This is not done on x86-64 as the non-SSE2
- * code benchmarks better, at least on Haswell.
- */
-#if defined(__SSE2__) && !defined(CPU_X86_64)
- /* undef in case it's manually specified... */
- #undef ED25519_SSE2
- #define ED25519_SSE2
-#endif
-
#include <stdlib.h>
#include <string.h>