#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <cstring>
#include <cmath>
#include "moab/gs.hpp"
Go to the source code of this file.
|
| moab |
| Class representing axis-aligned bounding box.
|
|
|
#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) |
|
◆ DO_ADD
#define DO_ADD |
( |
|
a, |
|
|
|
b |
|
) |
| a += b |
◆ DO_BPR
Value: 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.
◆ DO_MAX
#define DO_MAX |
( |
|
a, |
|
|
|
b |
|
) |
| if( ( b ) > ( a ) ) ( a ) = b |
◆ DO_MIN
#define DO_MIN |
( |
|
a, |
|
|
|
b |
|
) |
| if( ( b ) < ( a ) ) ( a ) = b |
◆ DO_MUL
#define DO_MUL |
( |
|
a, |
|
|
|
b |
|
) |
| a *= b |
◆ DO_SET
#define DO_SET |
( |
|
a, |
|
|
|
b |
|
) |
| b = a |
◆ LOOP [1/2]
Value: 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.
◆ LOOP [2/2]
Value: do \
{ \
sint i, j, k; \
while( ( i = *cm++ ) != -1 ) \
{ \
realType* pi = u + n * i; \
while( ( j = *cm++ ) != -1 ) \
{ \
realType* pj = u + n * j; \
for( k = n; k; --k ) \
{ \
op( *pi, *pj ); \
++pi; \
++pj; \
} \
} \
} \
} while( 0 )
Definition at line 157 of file gs.cpp.