summaryrefslogtreecommitdiffstats
path: root/src/plugins/lb/lbhash.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-04-26 13:05:05 +0200
committerDave Barach <openvpp@barachs.net>2017-05-10 16:47:10 +0000
commit0f68c79a9d8533d492c8221f924b14cf4e222136 (patch)
tree269f45626938f179a20d0519ebd27781d7c51708 /src/plugins/lb/lbhash.h
parent4fb27eed7e1f986394e20035a24476237c7e6f60 (diff)
Add crc32c inline function, allows compilation on 32-bit systems
32-bit code still can use crc32c instructions, but it operates on 32 registers Change-Id: I9bb6b0b59635d6ea6a753584676ebcf59c8f6584 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/lb/lbhash.h')
-rw-r--r--src/plugins/lb/lbhash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lb/lbhash.h b/src/plugins/lb/lbhash.h
index ca3cc143dc2..c514fb57d75 100644
--- a/src/plugins/lb/lbhash.h
+++ b/src/plugins/lb/lbhash.h
@@ -101,7 +101,7 @@ void lb_hash_free(lb_hash_t *h)
vec_free(mem);
}
-#if __SSE4_2__
+#if __SSE4_2__ && !defined (__i386__)
static_always_inline
u32 lb_hash_hash(u64 k0, u64 k1, u64 k2, u64 k3, u64 k4)
{