From ec90d25979f99d58c8ad76c410fdff3f5073f0dc Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sun, 30 Mar 2014 00:06:48 +0100 Subject: do not compile if used in SSE4 code path only Acknowledge that gf_w128_split_4_128_multiply_region and gf_w128_split_4_128_sse_multiply_region are only used when the INTEL_SSE4 flag is present, even though they only need INTEL_SSSE3 It suppresses a compilation warning complaining about them not being used if INTEL_SSE4 is absent and INTEL_SSSE3 is present. Signed-off-by: Loic Dachary (cherry picked from commit d569220629d476d687859968fc4bee3194eca16f) --- src/gf_w128.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gf_w128.c b/src/gf_w128.c index 881df00..6f9b00a 100644 --- a/src/gf_w128.c +++ b/src/gf_w128.c @@ -595,7 +595,7 @@ gf_w128_split_4_128_multiply_region(gf_t *gf, void *src, void *dest, gf_val_128_ } } -#ifdef INTEL_SSSE3 +#if defined(INTEL_SSSE3) && defined(INTEL_SSE4) static void gf_w128_split_4_128_sse_multiply_region(gf_t *gf, void *src, void *dest, gf_val_128_t val, int bytes, int xor) @@ -694,7 +694,7 @@ gf_w128_split_4_128_sse_multiply_region(gf_t *gf, void *src, void *dest, gf_val_ } #endif -#ifdef INTEL_SSSE3 +#if defined(INTEL_SSSE3) && defined(INTEL_SSE4) static void gf_w128_split_4_128_sse_altmap_multiply_region(gf_t *gf, void *src, void *dest, gf_val_128_t val, int bytes, int xor) -- cgit v1.2.1