Lumiera  0.pre.03
»edit your freedom«
util::test::anonymous_namespace{util-floordiv-test.cpp} Namespace Reference

Typedefs

typedef std::vector< int > VecI
 

Functions

VecI buildTestNumberz (uint cnt)
 
long floordiv_alternate (long num, long den)
 an alternate formulation, which turned out to perform slightly worse
 
long integerDiv (long num, long den)
 the built-in integer division operator, packaged as inline function for timing comparison
 

Variables

const uint NUM_ELMS_PERFORMANCE_TEST = 50000000
 
const uint NUMBER_LIMIT = 1 << 30