Cortex  10.0.0-a4
Namespaces | Functions
FastFloat.h File Reference
#include "IECore/Export.h"
#include "IECore/FastFloat.inl"

Go to the source code of this file.

Namespaces

 IECore
 This namespace contains all components of the core library.
 

Functions

IECORE_API int IECore::fastFloat2Int (double v)
 
IECORE_API int IECore::fastFloatRound (double v)
 
IECORE_API int IECore::fastFloatFloor (double v)
 
IECORE_API int IECore::fastFloatCeil (double v)
 

Detailed Description

Defines functions for fast conversion of floats to ints in various ways, because apparently a simple (int)myFloat is actually fairly slow. See Physically Based Rendering p.856 for more detail.