aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-09-01 19:09:50 -0400
committerJack Lloyd <[email protected]>2016-09-01 19:09:50 -0400
commit3fc924b97934eda75fffff0c561b3d180ae290a6 (patch)
tree5666f69c49f16de63935cd61ea738881074e0a81
parent3a887fa0efc8f9bea968e6e13b753a7531bd6fd5 (diff)
Correct macro check
-rw-r--r--src/lib/stream/chacha/chacha.cpp2
-rw-r--r--src/lib/stream/chacha/chacha.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/stream/chacha/chacha.cpp b/src/lib/stream/chacha/chacha.cpp
index fa8f48142..c35363112 100644
--- a/src/lib/stream/chacha/chacha.cpp
+++ b/src/lib/stream/chacha/chacha.cpp
@@ -22,7 +22,7 @@ void ChaCha::chacha_x4(byte output[64*4], u32bit input[16], size_t rounds)
{
BOTAN_ASSERT(rounds % 2 == 0, "Valid rounds");
-#if defined(BOTAN_TARGET_SUPPORTS_SSE2)
+#if defined(BOTAN_HAS_CHACHA_SSE2)
if(CPUID::has_sse2())
{
return ChaCha::chacha_sse2_x4(output, input, rounds);
diff --git a/src/lib/stream/chacha/chacha.h b/src/lib/stream/chacha/chacha.h
index 34b8bbb87..e4d4ae60e 100644
--- a/src/lib/stream/chacha/chacha.h
+++ b/src/lib/stream/chacha/chacha.h
@@ -51,7 +51,7 @@ class BOTAN_DLL ChaCha final : public StreamCipher
void chacha_x4(byte output[64*4], u32bit state[16], size_t rounds);
-#if defined(BOTAN_TARGET_SUPPORTS_SSE2)
+#if defined(BOTAN_HAS_CHACHA_SSE2)
void chacha_sse2_x4(byte output[64*4], u32bit state[16], size_t rounds);
#endif