15 #ifndef TUPLE_LIST_HPP
16 #define TUPLE_LIST_HPP
26 #if defined( USE_LONG )
28 #elif defined( USE_LONG_LONG )
29 #define INTEGER long long
30 #elif defined( USE_SHORT )
37 #if defined( USE_GLOBAL_LONG_LONG )
38 #define GLOBAL_INT long long
39 #elif defined( USE_GLOBAL_LONG )
40 #define GLOBAL_INT long
42 #define GLOBAL_INT long
46 #if defined( USE_FLOAT )
48 #elif defined( USE_LONG_DOUBLE )
76 void fail(
const char* fmt, ... );
122 #define buffer_init( sz ) buffer_init_( sz, __FILE__ )
123 #define buffer_reserve( min ) buffer_reserve_( min, __FILE__ )
204 int find(
unsigned int key_num,
sint value );
205 int find(
unsigned int key_num,
slong value );
206 int find(
unsigned int key_num,
Ulong value );
275 void print(
const char* )
const;
316 template <
typename Value >
324 #define DIGIT_VALUES ( 1 << DIGIT_BITS )
325 #define DIGIT_MASK ( (Value)( DIGIT_VALUES - 1 ) )
326 #define CEILDIV( a, b ) ( ( ( a ) + (b)-1 ) / ( b ) )
327 #define DIGITS CEILDIV( CHAR_BIT * sizeof( Value ), DIGIT_BITS )
328 #define VALUE_BITS ( DIGIT_BITS * DIGITS )
329 #define COUNT_SIZE ( DIGITS * DIGIT_VALUES )
331 template <
class Value >
336 template <
class Value >
339 template <
class Value >
345 SortData< Value >* out );
347 template <
class Value >
349 const SortData< Value >* end,
352 SortData< Value >* out );
354 template <
class Value >
356 const SortData< Value >* end,
361 template <
class Value >
372 template <
class Value >
383 template <
class Value >
386 template <
class Value >