41#define L1_CACHE_LINE_SIZE 64 
   44#define INTFLOORF(s) (lrintf( (s) - (0.5f - FLT_EPSILON) )) 
   46#define INTFLOORF(s) ((int)( floor(s) )) 
  100    memcpy( &ui, &f, 
sizeof( 
float ) );
 
 
  110    memcpy( &f, &ui, 
sizeof (uint32_t ) );
 
 
  120    memcpy( &ui, &f, 
sizeof( 
double ) );
 
 
  130    memcpy( &f, &ui, 
sizeof( uint64_t ) );
 
 
  139    if( std::isinf( v ) && (v > 0.) )
 
 
  160    if( std::isinf( v ) && (v < 0.) )
 
 
uint32_t FloatToBits(float f)
This part contains some functions from the PBRT 3 source code.
 
float NextFloatDown(float v)
 
float NextFloatUp(float v)
 
float BitsToFloat(uint32_t ui)
 
void Fast_srand(unsigned int seed)