Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VPP-1032: fix coverity warnings
[vpp.git]
/
src
/
vppinfra
/
bihash_24_8.h
diff --git
a/src/vppinfra/bihash_24_8.h
b/src/vppinfra/bihash_24_8.h
index
655dab8
..
173168f
100644
(file)
--- a/
src/vppinfra/bihash_24_8.h
+++ b/
src/vppinfra/bihash_24_8.h
@@
-13,18
+13,21
@@
* limitations under the License.
*/
#undef BIHASH_TYPE
* limitations under the License.
*/
#undef BIHASH_TYPE
+#undef BIHASH_KVP_CACHE_SIZE
+#undef BIHASH_KVP_PER_PAGE
#define BIHASH_TYPE _24_8
#define BIHASH_KVP_PER_PAGE 4
#define BIHASH_TYPE _24_8
#define BIHASH_KVP_PER_PAGE 4
+#define BIHASH_KVP_CACHE_SIZE 0
#ifndef __included_bihash_24_8_h__
#define __included_bihash_24_8_h__
#ifndef __included_bihash_24_8_h__
#define __included_bihash_24_8_h__
+#include <vppinfra/crc32.h>
#include <vppinfra/heap.h>
#include <vppinfra/format.h>
#include <vppinfra/pool.h>
#include <vppinfra/xxhash.h>
#include <vppinfra/heap.h>
#include <vppinfra/format.h>
#include <vppinfra/pool.h>
#include <vppinfra/xxhash.h>
-#include <vppinfra/crc32.h>
typedef struct
{
typedef struct
{
@@
-44,7
+47,7
@@
clib_bihash_is_free_24_8 (const clib_bihash_kv_24_8_t * v)
static inline u64
clib_bihash_hash_24_8 (const clib_bihash_kv_24_8_t * v)
{
static inline u64
clib_bihash_hash_24_8 (const clib_bihash_kv_24_8_t * v)
{
-#if
__SSE4_2__
+#if
def clib_crc32c_uses_intrinsics
return clib_crc32c ((u8 *) v->key, 24);
#else
u64 tmp = v->key[0] ^ v->key[1] ^ v->key[2];
return clib_crc32c ((u8 *) v->key, 24);
#else
u64 tmp = v->key[0] ^ v->key[1] ^ v->key[2];