MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <cstring>
#include <cmath>
#include "moab/gs.hpp"
Go to the source code of this file.
Namespaces | |
namespace | moab |
Class representing axis-aligned bounding box. | |
Defines | |
#define | DO_SET(a, b) b = a |
#define | DO_ADD(a, b) a += b |
#define | DO_MUL(a, b) a *= b |
#define | DO_MIN(a, b) if( ( b ) < ( a ) ) ( a ) = b |
#define | DO_MAX(a, b) if( ( b ) > ( a ) ) ( a ) = b |
#define | DO_BPR(a, b) |
#define | LOOP(op) |
#define | LOOP(op) |
Functions | |
static void | moab::local_condense (realType *u, int op, const sint *cm) |
static void | moab::local_uncondense (realType *u, const sint *cm) |
static void | moab::local_condense_vec (realType *u, uint n, int op, const sint *cm) |
static void | moab::local_uncondense_vec (realType *u, uint n, const sint *cm) |
#define DO_ADD | ( | a, | |
b | |||
) | a += b |
Definition at line 96 of file gs.cpp.
Referenced by moab::local_condense(), and moab::local_condense_vec().
#define DO_BPR | ( | a, | |
b | |||
) |
do \ { \ uint a_ = a; \ uint b_ = b; \ for( ;; ) \ { \ if( a_ < b_ ) \ b_ >>= 1; \ else if( b_ < a_ ) \ a_ >>= 1; \ else \ break; \ } \ ( a ) = a_; \ } while( 0 )
Definition at line 102 of file gs.cpp.
Referenced by moab::local_condense(), and moab::local_condense_vec().
#define DO_MAX | ( | a, | |
b | |||
) | if( ( b ) > ( a ) ) ( a ) = b |
Definition at line 100 of file gs.cpp.
Referenced by moab::local_condense(), and moab::local_condense_vec().
#define DO_MIN | ( | a, | |
b | |||
) | if( ( b ) < ( a ) ) ( a ) = b |
Definition at line 98 of file gs.cpp.
Referenced by moab::local_condense(), and moab::local_condense_vec().
#define DO_MUL | ( | a, | |
b | |||
) | a *= b |
Definition at line 97 of file gs.cpp.
Referenced by moab::local_condense(), and moab::local_condense_vec().
#define DO_SET | ( | a, | |
b | |||
) | b = a |
Definition at line 95 of file gs.cpp.
Referenced by moab::local_uncondense(), and moab::local_uncondense_vec().
#define LOOP | ( | op | ) |
do \ { \ sint i, j; \ while( ( i = *cm++ ) != -1 ) \ while( ( j = *cm++ ) != -1 ) \ op( u[i], u[j] ); \ } while( 0 )
Definition at line 157 of file gs.cpp.
Referenced by moab::local_condense(), moab::local_condense_vec(), moab::local_uncondense(), and moab::local_uncondense_vec().
#define LOOP | ( | op | ) |