• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/shared/

Lines Matching defs:hash16

61 static inline uint32 __wofa_bloom_lkup16(const uint32 * bfilter, const uint16 hash16);
62 static inline void __wofa_bloom_set16(uint32 * bfilter, const uint16 hash16);
63 static inline void __wofa_bloom_clr16(uint32 * bfilter, const uint16 hash16);
133 uint16 hash16;
144 /** WOFA Fast lookup of cached last hit hash16. */
146 uint16 hash16; /* Cached recent hit ix */
188 uint16 hash16;
189 hash16 = (*(key + 0)) ^ (*(key + 1)) ^ (*(key + 2));
190 return hash16;
216 __wofa_bloom_lkup16(const uint32 * bloom_filter, const uint16 hash16)
218 return ((*(bloom_filter + (hash16 >> 5))) & (1U << (hash16 & 31)));
222 __wofa_bloom_set16(uint32 * bloom_filter, const uint16 hash16)
224 *(bloom_filter + (hash16 >> 5)) |= (1U << (hash16 & 31));
228 __wofa_bloom_clr16(uint32 * bloom_filter, const uint16 hash16)
230 *(bloom_filter + (hash16 >> 5)) &= ~(1U << (hash16 & 31));
270 dict->cached[port].hash16 = 0;
306 uint16 hash16;
314 hash16 = __wofa_sym48_hash16(symbol);
323 hash8 = ((uint8)(hash16) ^ (uint8)(hash16 >> 8));
337 FWDER_ASSERT(sym->hash16 == hash16);
344 sym->hash16 = 0; /* 0 may be a valid value */
351 __wofa_bloom_set16(dict->bloomfilter, hash16);
355 sym->hash16 = hash16;
382 uint16 hash16;
390 hash16 = __wofa_sym48_hash16(symbol);
396 if (cached->hash16 == hash16) {
397 cached->hash16 = 0; /* 0 is a valid value */
410 hash8 = ((uint8)(hash16) ^ (uint8)(hash16 >> 8));
417 (sym->hash16 == hash16)) {
425 sym->hash16 = 0; /* 0 is a valid value */
434 * If hash8 was computed from lower 8bits of hash16, then do not need to
445 (sym->hash16 == hash16)) {
453 __wofa_bloom_clr16(dict->bloomfilter, hash16);
477 dict->cached[port].hash16 = 0;
486 uint16 hash16;
491 hash16 = dict->table.bkt[bkt].bin[bin].hash16;
492 __wofa_bloom_set16(dict->bloomfilter, hash16);
508 uint16 hash16;
516 hash16 = __wofa_sym48_hash16(symbol);
519 if (hash16 == dict->cached[port].hash16) {
527 if (__wofa_bloom_lkup16(dict->bloomfilter, hash16) == 0U) {
539 hash8 = ((uint8)(hash16) ^ (uint8)(hash16 >> 8));
547 if (sym->hash16 == hash16) {
552 dict->cached[port].hash16 = hash16;
600 port, dict->cached[port].hash16, dict->cached[port].sym);
627 bkt, bin, sym, sym->hash16, (int)sym->hash16);