Functions | Variables

Vec.cc File Reference

#include <stdint.h>
#include "Vec.h"
Include dependency graph for Vec.cc:

Go to the source code of this file.

Functions

static int i_find (const Intervals *i, int x)

Variables

const uintptr_t prime2 []
const uintptr_t open_hash_primes [256]

Function Documentation

static int i_find ( const Intervals i,
int  x 
) [static]

Definition at line 73 of file Vec.cc.

References ink_assert, Vec< C, A, S >::n, and Vec< C, A, S >::v.

Referenced by Intervals::in(), and Intervals::insert().


Variable Documentation

const uintptr_t open_hash_primes[256]
const uintptr_t prime2[]
Initial value:
 {
  1, 3, 7, 13, 31, 61, 127, 251, 509, 1021, 2039, 4093, 8191,
  16381, 32749, 65521, 131071, 262139, 524287, 1048573, 2097143,
  4194301, 8388593, 16777213, 33554393, 67108859, 134217689,
  268435399, 536870909
}

Definition at line 28 of file Vec.cc.

Referenced by NBlockHash< C, AHashFns, N, A >::size(), and TSHashTable< H >::TSHashTable().