automotive-dlt
city-test.cc File Reference
#include <cstdio>
#include <iostream>
#include <string.h>
#include "city_c.h"
Include dependency graph for city-test.cc:

Go to the source code of this file.

Macros

#define C(y)   0x ## y ## ULL
 

Functions

void setup ()
 
void Check (uint64 expected, uint64 actual)
 
void Test (const uint64 *expected, int offset, int len)
 
int main (int argc, char **argv)
 

Variables

static const uint64 k0 = 0xc3a5c85c97cb3127ULL
 
static const uint64 kSeed0 = 1234567
 
static const uint64 kSeed1 = k0
 
static const uint128 kSeed128 = {kSeed0, kSeed1}
 
static const int kDataSize = 1 << 20
 
static const int kTestSize = 300
 
static char data [kDataSize]
 
static int errors = 0
 
static const uint64 testdata [kTestSize][15]
 

Macro Definition Documentation

#define C (   y)    0x ## y ## ULL

Definition at line 58 of file city-test.cc.

Function Documentation

void Check ( uint64  expected,
uint64  actual 
)

Definition at line 962 of file city-test.cc.

References errors.

Referenced by Test().

int main ( int  argc,
char **  argv 
)

Definition at line 1023 of file city-test.cc.

References errors, kDataSize, kTestSize, setup(), Test(), and testdata.

void setup ( )

Definition at line 45 of file city-test.cc.

References data, k0, and kDataSize.

Referenced by main().

void Test ( const uint64 expected,
int  offset,
int  len 
)

Variable Documentation

int errors = 0
static

Definition at line 42 of file city-test.cc.

Referenced by Check(), and main().

const uint64 k0 = 0xc3a5c85c97cb3127ULL
static

Definition at line 33 of file city-test.cc.

Referenced by setup().

const int kDataSize = 1 << 20
static

Definition at line 37 of file city-test.cc.

Referenced by main(), and setup().

const uint64 kSeed0 = 1234567
static

Definition at line 34 of file city-test.cc.

Referenced by Test().

const uint64 kSeed1 = k0
static

Definition at line 35 of file city-test.cc.

Referenced by Test().

const uint128 kSeed128 = {kSeed0, kSeed1}
static

Definition at line 36 of file city-test.cc.

const int kTestSize = 300
static

Definition at line 38 of file city-test.cc.

Referenced by main().

const uint64 testdata[kTestSize][15]
static

Definition at line 59 of file city-test.cc.

Referenced by main().