Material Definition Language API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Fast Approximations for float Math Functions

Fast approximations for math functions on limited precision floats. More...

Functions

Float32 mi::math::fast_sqrt (Float32 i)
 A fast implementation of sqrt(x) for floats. More...
 
Float32 mi::math::fast_exp (Float32 x)
 A fast implementation of exp for floats. More...
 
Float32 mi::math::fast_pow2 (Float32 x)
 A fast implementation of pow(2,x) for floats. More...
 
Float32 mi::math::fast_log2 (Float32 i)
 A fast implementation of log2(x) for floats. More...
 
Float32 mi::math::fast_pow (Float32 b, Float32 e)
 A fast implementation of pow(x,y) for floats. More...
 

Detailed Description

Fast approximations for math functions on limited precision floats.

Include File:
#include <mi/math/function.h>

Function Documentation

Float32 mi::math::fast_exp ( Float32  x)
inline

A fast implementation of exp for floats.

Float32 mi::math::fast_log2 ( Float32  i)
inline

A fast implementation of log2(x) for floats.

Float32 mi::math::fast_pow ( Float32  b,
Float32 
)
inline

A fast implementation of pow(x,y) for floats.

Parameters
bbase
eexponent
Float32 mi::math::fast_pow2 ( Float32  x)
inline

A fast implementation of pow(2,x) for floats.

Float32 mi::math::fast_sqrt ( Float32  i)
inline

A fast implementation of sqrt(x) for floats.