Blender  V3.3
Functions
math_float8.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device_inline float8_t operator+ (const float8_t a, const float8_t b)
 
ccl_device_inline float8_t operator+ (const float8_t a, const float f)
 
ccl_device_inline float8_t operator+ (const float f, const float8_t a)
 
ccl_device_inline float8_t operator- (const float8_t a)
 
ccl_device_inline float8_t operator- (const float8_t a, const float8_t b)
 
ccl_device_inline float8_t operator- (const float8_t a, const float f)
 
ccl_device_inline float8_t operator- (const float f, const float8_t a)
 
ccl_device_inline float8_t operator* (const float8_t a, const float8_t b)
 
ccl_device_inline float8_t operator* (const float8_t a, const float f)
 
ccl_device_inline float8_t operator* (const float f, const float8_t a)
 
ccl_device_inline float8_t operator/ (const float8_t a, const float8_t b)
 
ccl_device_inline float8_t operator/ (const float8_t a, float f)
 
ccl_device_inline float8_t operator/ (const float f, const float8_t a)
 
ccl_device_inline float8_t operator+= (float8_t a, const float8_t b)
 
ccl_device_inline float8_t operator*= (float8_t a, const float8_t b)
 
ccl_device_inline float8_t operator*= (float8_t a, float f)
 
ccl_device_inline float8_t operator/= (float8_t a, float f)
 
ccl_device_inline bool operator== (const float8_t a, const float8_t b)
 
ccl_device_inline float8_t rcp (const float8_t a)
 
ccl_device_inline float8_t sqrt (const float8_t a)
 
ccl_device_inline float8_t sqr (const float8_t a)
 
ccl_device_inline bool is_zero (const float8_t a)
 
ccl_device_inline float average (const float8_t a)
 
ccl_device_inline float8_t min (const float8_t a, const float8_t b)
 
ccl_device_inline float8_t max (const float8_t a, const float8_t b)
 
ccl_device_inline float8_t clamp (const float8_t a, const float8_t mn, const float8_t mx)
 
ccl_device_inline float8_t fabs (const float8_t a)
 
ccl_device_inline float8_t mix (const float8_t a, const float8_t b, float t)
 
ccl_device_inline float8_t saturate (const float8_t a)
 
ccl_device_inline float8_t safe_divide (const float8_t a, const float b)
 
ccl_device_inline float8_t safe_divide (const float8_t a, const float8_t b)
 
ccl_device_inline float reduce_min (const float8_t a)
 
ccl_device_inline float reduce_max (const float8_t a)
 
ccl_device_inline float reduce_add (const float8_t a)
 
ccl_device_inline bool isequal (const float8_t a, const float8_t b)
 
ccl_device_inline float8_t zero_float8_t ()
 
ccl_device_inline float8_t one_float8_t ()
 
ccl_device_inline float8_t operator-= (float8_t a, const float8_t b)
 
ccl_device_inline float8_t exp (float8_t v)
 
ccl_device_inline float8_t log (float8_t v)
 
ccl_device_inline float dot (const float8_t a, const float8_t b)
 
ccl_device_inline float8_t pow (float8_t v, float e)
 
ccl_device_inline float8_t ensure_finite (float8_t v)
 
ccl_device_inline bool isfinite_safe (float8_t v)
 

Function Documentation

◆ average()

ccl_device_inline float average ( const float8_t  a)

Definition at line 251 of file math_float8.h.

References Freestyle::a, and reduce_add().

◆ clamp()

ccl_device_inline float8_t clamp ( const float8_t  a,
const float8_t  mn,
const float8_t  mx 
)

Definition at line 288 of file math_float8.h.

References Freestyle::a, max(), and min().

Referenced by saturate().

◆ dot()

ccl_device_inline float dot ( const float8_t  a,
const float8_t  b 
)

Definition at line 331 of file math_float8.h.

References Freestyle::a, usdtokens::b(), and t.

◆ ensure_finite()

ccl_device_inline float8_t ensure_finite ( float8_t  v)

Definition at line 397 of file math_float8.h.

References BMVert::e, and v.

◆ exp()

ccl_device_inline float8_t exp ( float8_t  v)

Definition at line 319 of file math_float8.h.

References BMVert::e, expf, make_float8_t(), and v.

◆ fabs()

ccl_device_inline float8_t fabs ( const float8_t  a)

Definition at line 293 of file math_float8.h.

References Freestyle::a, fabsf, and make_float8_t().

◆ is_zero()

ccl_device_inline bool is_zero ( const float8_t  a)

Definition at line 246 of file math_float8.h.

References Freestyle::a, and make_float8_t().

◆ isequal()

ccl_device_inline bool isequal ( const float8_t  a,
const float8_t  b 
)

Definition at line 375 of file math_float8.h.

References Freestyle::a, and usdtokens::b().

◆ isfinite_safe()

ccl_device_inline bool isfinite_safe ( float8_t  v)

Definition at line 411 of file math_float8.h.

References BMVert::e, and v.

◆ log()

ccl_device_inline float8_t log ( float8_t  v)

Definition at line 325 of file math_float8.h.

References BMVert::e, logf, make_float8_t(), and v.

◆ max()

ccl_device_inline float8_t max ( const float8_t  a,
const float8_t  b 
)

Definition at line 272 of file math_float8.h.

References Freestyle::a, usdtokens::b(), and make_float8_t().

Referenced by clamp(), and reduce_max().

◆ min()

ccl_device_inline float8_t min ( const float8_t  a,
const float8_t  b 
)

Definition at line 256 of file math_float8.h.

References Freestyle::a, usdtokens::b(), and make_float8_t().

Referenced by clamp(), and reduce_min().

◆ mix()

ccl_device_inline float8_t mix ( const float8_t  a,
const float8_t  b,
float  t 
)

Definition at line 309 of file math_float8.h.

References Freestyle::a, usdtokens::b(), and t.

◆ one_float8_t()

ccl_device_inline float8_t one_float8_t ( )

Definition at line 77 of file math_float8.h.

References make_float8_t().

◆ operator*() [1/3]

ccl_device_inline float8_t operator* ( const float  f,
const float8_t  a 
)

Definition at line 147 of file math_float8.h.

References Freestyle::a, and make_float8_t().

◆ operator*() [2/3]

ccl_device_inline float8_t operator* ( const float8_t  a,
const float  f 
)

Definition at line 142 of file math_float8.h.

References Freestyle::a, and make_float8_t().

◆ operator*() [3/3]

ccl_device_inline float8_t operator* ( const float8_t  a,
const float8_t  b 
)

Definition at line 132 of file math_float8.h.

References Freestyle::a, usdtokens::b(), and make_float8_t().

◆ operator*=() [1/2]

ccl_device_inline float8_t operator*= ( float8_t  a,
const float8_t  b 
)

Definition at line 182 of file math_float8.h.

References Freestyle::a, and usdtokens::b().

◆ operator*=() [2/2]

ccl_device_inline float8_t operator*= ( float8_t  a,
float  f 
)

Definition at line 187 of file math_float8.h.

References Freestyle::a.

◆ operator+() [1/3]

ccl_device_inline float8_t operator+ ( const float  f,
const float8_t  a 
)

Definition at line 97 of file math_float8.h.

References Freestyle::a, and make_float8_t().

◆ operator+() [2/3]

ccl_device_inline float8_t operator+ ( const float8_t  a,
const float  f 
)

Definition at line 92 of file math_float8.h.

References Freestyle::a, and make_float8_t().

◆ operator+() [3/3]

ccl_device_inline float8_t operator+ ( const float8_t  a,
const float8_t  b 
)

Definition at line 82 of file math_float8.h.

References Freestyle::a, usdtokens::b(), and make_float8_t().

◆ operator+=()

ccl_device_inline float8_t operator+= ( float8_t  a,
const float8_t  b 
)

Definition at line 172 of file math_float8.h.

References Freestyle::a, and usdtokens::b().

◆ operator-() [1/4]

ccl_device_inline float8_t operator- ( const float  f,
const float8_t  a 
)

Definition at line 127 of file math_float8.h.

References Freestyle::a, and make_float8_t().

◆ operator-() [2/4]

ccl_device_inline float8_t operator- ( const float8_t  a)

Definition at line 102 of file math_float8.h.

References Freestyle::a, make_float8_t(), and mask().

◆ operator-() [3/4]

ccl_device_inline float8_t operator- ( const float8_t  a,
const float  f 
)

Definition at line 122 of file math_float8.h.

References Freestyle::a, and make_float8_t().

◆ operator-() [4/4]

ccl_device_inline float8_t operator- ( const float8_t  a,
const float8_t  b 
)

Definition at line 112 of file math_float8.h.

References Freestyle::a, usdtokens::b(), and make_float8_t().

◆ operator-=()

ccl_device_inline float8_t operator-= ( float8_t  a,
const float8_t  b 
)

Definition at line 177 of file math_float8.h.

References Freestyle::a, and usdtokens::b().

◆ operator/() [1/3]

ccl_device_inline float8_t operator/ ( const float  f,
const float8_t  a 
)

Definition at line 167 of file math_float8.h.

References Freestyle::a, and make_float8_t().

◆ operator/() [2/3]

ccl_device_inline float8_t operator/ ( const float8_t  a,
const float8_t  b 
)

Definition at line 152 of file math_float8.h.

References Freestyle::a, usdtokens::b(), and make_float8_t().

◆ operator/() [3/3]

ccl_device_inline float8_t operator/ ( const float8_t  a,
float  f 
)

Definition at line 162 of file math_float8.h.

References Freestyle::a, and make_float8_t().

◆ operator/=()

ccl_device_inline float8_t operator/= ( float8_t  a,
float  f 
)

Definition at line 192 of file math_float8.h.

References Freestyle::a.

◆ operator==()

ccl_device_inline bool operator== ( const float8_t  a,
const float8_t  b 
)

Definition at line 197 of file math_float8.h.

References Freestyle::a, and usdtokens::b().

◆ pow()

ccl_device_inline float8_t pow ( float8_t  v,
float  e 
)

Definition at line 342 of file math_float8.h.

References BMVert::e, e, make_float8_t(), powf, and v.

◆ rcp()

ccl_device_inline float8_t rcp ( const float8_t  a)

Definition at line 209 of file math_float8.h.

References Freestyle::a, and make_float8_t().

◆ reduce_add()

ccl_device_inline float reduce_add ( const float8_t  a)

Definition at line 364 of file math_float8.h.

References Freestyle::a, and usdtokens::b().

Referenced by average().

◆ reduce_max()

ccl_device_inline float reduce_max ( const float8_t  a)

Definition at line 359 of file math_float8.h.

References Freestyle::a, and max().

◆ reduce_min()

ccl_device_inline float reduce_min ( const float8_t  a)

Definition at line 354 of file math_float8.h.

References Freestyle::a, and min().

◆ safe_divide() [1/2]

ccl_device_inline float8_t safe_divide ( const float8_t  a,
const float  b 
)

Definition at line 380 of file math_float8.h.

References Freestyle::a, usdtokens::b(), and make_float8_t().

◆ safe_divide() [2/2]

ccl_device_inline float8_t safe_divide ( const float8_t  a,
const float8_t  b 
)

Definition at line 385 of file math_float8.h.

References Freestyle::a, usdtokens::b(), and make_float8_t().

◆ saturate()

ccl_device_inline float8_t saturate ( const float8_t  a)

Definition at line 314 of file math_float8.h.

References Freestyle::a, clamp(), and make_float8_t().

◆ sqr()

ccl_device_inline float8_t sqr ( const float8_t  a)

Definition at line 241 of file math_float8.h.

References Freestyle::a.

◆ sqrt()

ccl_device_inline float8_t sqrt ( const float8_t  a)

Definition at line 225 of file math_float8.h.

References Freestyle::a, make_float8_t(), and sqrtf.

◆ zero_float8_t()

ccl_device_inline float8_t zero_float8_t ( )

Definition at line 68 of file math_float8.h.

References make_float8_t().