]> source.dussan.org Git - rspamd.git/commitdiff
Fix build on arm
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 18 Oct 2015 10:17:59 +0000 (11:17 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 18 Oct 2015 10:17:59 +0000 (11:17 +0100)
Issue: #404
Reported by: @Gottox

src/libcryptobox/curve25519/curve25519.c

index 030c8853707f7737cbd7eda2ee865d6eb23479aa..1d04b973baddeb598740fd9717a6453b77d16bc3 100644 (file)
@@ -45,7 +45,6 @@ typedef struct curve25519_impl_s {
     {(cpuflags), desc, scalarmult_##ext}
 
 #if defined(__LP64__)
-
 #if defined(HAVE_AVX)
 CURVE25519_DECLARE(avx);
 #define CURVE25519_AVX CURVE25519_IMPL(CPUID_AVX, "avx", avx)
@@ -56,12 +55,16 @@ CURVE25519_DECLARE(avx);
 CURVE25519_DECLARE(ref);
 #define CURVE25519_REF CURVE25519_IMPL(0, "ref", ref)
 
+#if (ARCH == x86_64) || (ARCH == i386)
 CURVE25519_DECLARE(donna);
-#define CURVE25519_DONNA CURVE25519_IMPL(0, "donna", donna)
+#define CURVE25519_GENERIC CURVE25519_IMPL(0, "donna", donna)
+#else
+#define CURVE25519_GENERIC CURVE25519_REF
+#endif
 
 
 static const curve25519_impl_t curve25519_list[] = {
-               CURVE25519_DONNA,
+               CURVE25519_GENERIC,
 #if defined(CURVE25519_AVX)
                CURVE25519_AVX,
 #endif