summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Dachary <loic@dachary.org>2014-03-30 00:06:48 +0100
committerLoic Dachary <loic@dachary.org>2014-04-10 10:11:00 +0200
commitec90d25979f99d58c8ad76c410fdff3f5073f0dc (patch)
tree718ac818420ac20aa9ad5a840763370b73c933f9
parent522670550c3bafb622e0ea54817de45468e2ab8d (diff)
downloadgf-complete-ec90d25979f99d58c8ad76c410fdff3f5073f0dc.tar.gz
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 <loic@dachary.org> (cherry picked from commit d569220629d476d687859968fc4bee3194eca16f)
-rw-r--r--src/gf_w128.c4
1 files 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)