utils.h File Reference

#include <cmath>
#include <boost/thread.hpp>
#include <malloc.h>
#include <sstream>

Go to the source code of this file.

Classes

class  luxrays::AlignedAllocator< T, N >
struct  luxrays::AlignedAllocator< T, N >::rebind< T2 >
class  luxrays::Aligned16

Namespaces

namespace  luxrays
 

The LuxRays core classes are defined within this namespace.


Defines

#define INFINITY   (std::numeric_limits<float>::infinity())
#define INV_PI   0.31830988618379067154f
#define INV_TWOPI   0.15915494309189533577f
#define L1_CACHE_LINE_SIZE   64
#define P_CLASS_ATTR   __attribute__
#define P_CLASS_ATTR   __attribute__

Functions

double luxrays::WallClockTime ()
template<class T >
luxrays::Clamp (T val, T low, T high)
template<class T >
luxrays::Max (T a, T b)
template<class T >
luxrays::Min (T a, T b)
template<class T >
void luxrays::Swap (T &a, T &b)
template<class T >
luxrays::Mod (T a, T b)
float luxrays::Radians (float deg)
float luxrays::Degrees (float rad)
float luxrays::Sgn (float a)
int luxrays::Sgn (int a)
template<class T >
int luxrays::Float2Int (T val)
template<class T >
unsigned int luxrays::Float2UInt (T val)
int luxrays::Floor2Int (double val)
int luxrays::Floor2Int (float val)
unsigned int luxrays::Floor2UInt (double val)
unsigned int luxrays::Floor2UInt (float val)
int luxrays::Ceil2Int (double val)
int luxrays::Ceil2Int (float val)
unsigned int luxrays::Ceil2UInt (double val)
unsigned int luxrays::Ceil2UInt (float val)
template<class T >
std::string luxrays::ToString (const T &t)
template<class T >
luxrays::RoundUp (const T a, const T b)
template<class T >
luxrays::RoundUpPow2 (T v)
unsigned int luxrays::UIntLog2 (unsigned int value)
void luxrays::StringTrim (std::string &str)
bool luxrays::SetThreadRRPriority (boost::thread *thread, int pri=0)
template<class T >
T * luxrays::AllocAligned (size_t size, std::size_t N=L1_CACHE_LINE_SIZE)
template<class T >
void luxrays::FreeAligned (T *ptr)

Define Documentation

#define INFINITY   (std::numeric_limits<float>::infinity())
#define INV_PI   0.31830988618379067154f
#define INV_TWOPI   0.15915494309189533577f
#define L1_CACHE_LINE_SIZE   64

Definition at line 261 of file utils.h.

#define P_CLASS_ATTR   __attribute__

Definition at line 337 of file utils.h.

#define P_CLASS_ATTR   __attribute__

Definition at line 337 of file utils.h.

Generated on Sat Aug 21 14:06:20 2010 for LuxRays by  doxygen 1.6.3