aarch64 CPU arch / ThunderX platform initial support
[vpp.git] / vnet / vnet / map / map.c
index a63122b..b55c4c2 100644 (file)
 
 #include "map.h"
 
+#if defined(__powerpc64__) || defined(__aarch64__)
+#include <vppinfra/xxhash.h>
+
+static inline u32
+crc_u32(u32 data, u32 value)
+{
+  u64 tmp = ((u64)data<<32) | (u64) value;
+  return (u32) clib_xxhash(tmp);
+}
+#endif
+
 /*
  * This code supports the following MAP modes:
  *