Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
TupleList.cpp File Reference
#include <cstring>
#include <climits>
#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <iostream>
#include <fstream>
#include "moab/TupleList.hpp"
+ Include dependency graph for TupleList.cpp:

Go to the source code of this file.

Namespaces

 moab
 Class representing axis-aligned bounding box.
 

Macros

#define umax_2(a, b)   ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
 
#define DIGIT_BITS   8
 
#define DIGIT_VALUES   ( 1 << DIGIT_BITS )
 
#define DIGIT_MASK   ( (Value)( DIGIT_VALUES - 1 ) )
 
#define CEILDIV(a, b)   ( ( ( a ) + (b)-1 ) / ( b ) )
 
#define DIGITS   CEILDIV( CHAR_BIT * sizeof( Value ), DIGIT_BITS )
 
#define VALUE_BITS   ( DIGIT_BITS * DIGITS )
 
#define COUNT_SIZE   ( DIGITS * DIGIT_VALUES )
 
#define COUNT_DIGIT_01(n, i)    if( ( n ) > ( i ) ) count[i][val & DIGIT_MASK]++, val >>= DIGIT_BITS
 
#define COUNT_DIGIT_02(n, i)
 
#define COUNT_DIGIT_04(n, i)
 
#define COUNT_DIGIT_08(n, i)
 
#define COUNT_DIGIT_16(n, i)
 
#define COUNT_DIGIT_32(n, i)
 
#define COUNT_DIGIT_64(n, i)
 

Functions

void moab::fail (const char *fmt,...)
 

Macro Definition Documentation

◆ CEILDIV

#define CEILDIV (   a,
 
)    ( ( ( a ) + (b)-1 ) / ( b ) )

Definition at line 586 of file TupleList.cpp.

◆ COUNT_DIGIT_01

#define COUNT_DIGIT_01 (   n,
 
)     if( ( n ) > ( i ) ) count[i][val & DIGIT_MASK]++, val >>= DIGIT_BITS

Definition at line 592 of file TupleList.cpp.

◆ COUNT_DIGIT_02

#define COUNT_DIGIT_02 (   n,
 
)
Value:
COUNT_DIGIT_01( n, i ); \
COUNT_DIGIT_01( n, ( i ) + 1 )

Definition at line 594 of file TupleList.cpp.

◆ COUNT_DIGIT_04

#define COUNT_DIGIT_04 (   n,
 
)
Value:
COUNT_DIGIT_02( n, i ); \
COUNT_DIGIT_02( n, ( i ) + 2 )

Definition at line 597 of file TupleList.cpp.

◆ COUNT_DIGIT_08

#define COUNT_DIGIT_08 (   n,
 
)
Value:
COUNT_DIGIT_04( n, i ); \
COUNT_DIGIT_04( n, ( i ) + 4 )

Definition at line 600 of file TupleList.cpp.

◆ COUNT_DIGIT_16

#define COUNT_DIGIT_16 (   n,
 
)
Value:
COUNT_DIGIT_08( n, i ); \
COUNT_DIGIT_08( n, ( i ) + 8 )

Definition at line 603 of file TupleList.cpp.

◆ COUNT_DIGIT_32

#define COUNT_DIGIT_32 (   n,
 
)
Value:
COUNT_DIGIT_16( n, i ); \
COUNT_DIGIT_16( n, ( i ) + 16 )

Definition at line 606 of file TupleList.cpp.

◆ COUNT_DIGIT_64

#define COUNT_DIGIT_64 (   n,
 
)
Value:
COUNT_DIGIT_32( n, i ); \
COUNT_DIGIT_32( n, ( i ) + 32 )

Definition at line 609 of file TupleList.cpp.

◆ COUNT_SIZE

#define COUNT_SIZE   ( DIGITS * DIGIT_VALUES )

Definition at line 589 of file TupleList.cpp.

◆ DIGIT_BITS

#define DIGIT_BITS   8

Definition at line 583 of file TupleList.cpp.

◆ DIGIT_MASK

#define DIGIT_MASK   ( (Value)( DIGIT_VALUES - 1 ) )

Definition at line 585 of file TupleList.cpp.

◆ DIGIT_VALUES

#define DIGIT_VALUES   ( 1 << DIGIT_BITS )

Definition at line 584 of file TupleList.cpp.

◆ DIGITS

#define DIGITS   CEILDIV( CHAR_BIT * sizeof( Value ), DIGIT_BITS )

Definition at line 587 of file TupleList.cpp.

◆ umax_2

#define umax_2 (   a,
 
)    ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )

Definition at line 548 of file TupleList.cpp.

◆ VALUE_BITS

#define VALUE_BITS   ( DIGIT_BITS * DIGITS )

Definition at line 588 of file TupleList.cpp.