7 rte_hash_k16_cmp_eq(
const void *key1,
const void *key2,
10 uint64_t x0, x1, y0, y1;
13 "ldp %x[x1], %x[x0], [%x[p1]]"
14 : [x1]
"=r"(x1), [x0]
"=r"(x0)
18 "ldp %x[y1], %x[y0], [%x[p2]]"
19 : [y1]
"=r"(y1), [y0]
"=r"(y0)
24 return !(x0 == 0 && x1 == 0);
28 rte_hash_k32_cmp_eq(
const void *key1,
const void *key2,
size_t key_len)
30 return rte_hash_k16_cmp_eq(key1, key2, key_len) ||
31 rte_hash_k16_cmp_eq((
const char *) key1 + 16,
32 (
const char *) key2 + 16, key_len);
36 rte_hash_k48_cmp_eq(
const void *key1,
const void *key2,
size_t key_len)
38 return rte_hash_k16_cmp_eq(key1, key2, key_len) ||
39 rte_hash_k16_cmp_eq((
const char *) key1 + 16,
40 (
const char *) key2 + 16, key_len) ||
41 rte_hash_k16_cmp_eq((
const char *) key1 + 32,
42 (
const char *) key2 + 32, key_len);
46 rte_hash_k64_cmp_eq(
const void *key1,
const void *key2,
size_t key_len)
48 return rte_hash_k32_cmp_eq(key1, key2, key_len) ||
49 rte_hash_k32_cmp_eq((
const char *) key1 + 32,
50 (
const char *) key2 + 32, key_len);
54 rte_hash_k80_cmp_eq(
const void *key1,
const void *key2,
size_t key_len)
56 return rte_hash_k64_cmp_eq(key1, key2, key_len) ||
57 rte_hash_k16_cmp_eq((
const char *) key1 + 64,
58 (
const char *) key2 + 64, key_len);
62 rte_hash_k96_cmp_eq(
const void *key1,
const void *key2,
size_t key_len)
64 return rte_hash_k64_cmp_eq(key1, key2, key_len) ||
65 rte_hash_k32_cmp_eq((
const char *) key1 + 64,
66 (
const char *) key2 + 64, key_len);
70 rte_hash_k112_cmp_eq(
const void *key1,
const void *key2,
size_t key_len)
72 return rte_hash_k64_cmp_eq(key1, key2, key_len) ||
73 rte_hash_k32_cmp_eq((
const char *) key1 + 64,
74 (
const char *) key2 + 64, key_len) ||
75 rte_hash_k16_cmp_eq((
const char *) key1 + 96,
76 (
const char *) key2 + 96, key_len);
80 rte_hash_k128_cmp_eq(
const void *key1,
const void *key2,
size_t key_len)
82 return rte_hash_k64_cmp_eq(key1, key2, key_len) ||
83 rte_hash_k64_cmp_eq((
const char *) key1 + 64,
84 (
const char *) key2 + 64, key_len);