From baa309ea7a0b8e7c2b7d6ab3829713ae179ec790 Mon Sep 17 00:00:00 2001 From: "John M. Schanck" Date: Thu, 15 Oct 2020 20:45:21 -0400 Subject: [PATCH] *saber/avx2: declare mul_add static --- crypto_kem/firesaber/avx2/polymul/scm_avx.c | 2 +- crypto_kem/lightsaber/avx2/polymul/scm_avx.c | 2 +- crypto_kem/saber/avx2/polymul/scm_avx.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto_kem/firesaber/avx2/polymul/scm_avx.c b/crypto_kem/firesaber/avx2/polymul/scm_avx.c index 4e4f11f8..48870f51 100644 --- a/crypto_kem/firesaber/avx2/polymul/scm_avx.c +++ b/crypto_kem/firesaber/avx2/polymul/scm_avx.c @@ -4,7 +4,7 @@ #include -inline __m256i mul_add(__m256i a, __m256i b, __m256i c) { +static inline __m256i mul_add(__m256i a, __m256i b, __m256i c) { return _mm256_add_epi16(_mm256_mullo_epi16(a, b), c); } diff --git a/crypto_kem/lightsaber/avx2/polymul/scm_avx.c b/crypto_kem/lightsaber/avx2/polymul/scm_avx.c index 4e4f11f8..48870f51 100644 --- a/crypto_kem/lightsaber/avx2/polymul/scm_avx.c +++ b/crypto_kem/lightsaber/avx2/polymul/scm_avx.c @@ -4,7 +4,7 @@ #include -inline __m256i mul_add(__m256i a, __m256i b, __m256i c) { +static inline __m256i mul_add(__m256i a, __m256i b, __m256i c) { return _mm256_add_epi16(_mm256_mullo_epi16(a, b), c); } diff --git a/crypto_kem/saber/avx2/polymul/scm_avx.c b/crypto_kem/saber/avx2/polymul/scm_avx.c index 4e4f11f8..48870f51 100644 --- a/crypto_kem/saber/avx2/polymul/scm_avx.c +++ b/crypto_kem/saber/avx2/polymul/scm_avx.c @@ -4,7 +4,7 @@ #include -inline __m256i mul_add(__m256i a, __m256i b, __m256i c) { +static inline __m256i mul_add(__m256i a, __m256i b, __m256i c) { return _mm256_add_epi16(_mm256_mullo_epi16(a, b), c); }