Blender V4.3
math_float8.h File Reference

Go to the source code of this file.

Functions

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

Function Documentation

◆ average()

ccl_device_inline float average ( const vfloat8 a)

Definition at line 225 of file math_float8.h.

References reduce_add().

◆ cast()

ccl_device_inline vint8 cast ( const vfloat8 a)

Definition at line 401 of file math_float8.h.

References __float_as_int, and make_vint8().

◆ clamp()

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

Definition at line 262 of file math_float8.h.

References max, and min.

Referenced by saturate().

◆ dot()

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

Definition at line 326 of file math_float8.h.

References b.

◆ ensure_finite()

ccl_device_inline vfloat8 ensure_finite ( vfloat8 v)

Definition at line 381 of file math_float8.h.

References BMVert::e, ensure_finite(), and v.

Referenced by ensure_finite().

◆ exp()

ccl_device_inline vfloat8 exp ( vfloat8 v)

Definition at line 314 of file math_float8.h.

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

◆ fabs()

ccl_device_inline vfloat8 fabs ( const vfloat8 a)

Definition at line 283 of file math_float8.h.

References fabsf, and make_vfloat8().

◆ is_zero()

ccl_device_inline bool is_zero ( const vfloat8 a)

Definition at line 209 of file math_float8.h.

References make_vfloat8().

◆ isequal()

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

Definition at line 359 of file math_float8.h.

References b.

◆ isfinite_safe()

ccl_device_inline bool isfinite_safe ( vfloat8 v)

Definition at line 395 of file math_float8.h.

References BMVert::e, isfinite_safe(), and v.

Referenced by isfinite_safe().

◆ log()

ccl_device_inline vfloat8 log ( vfloat8 v)

Definition at line 320 of file math_float8.h.

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

◆ max()

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

Definition at line 246 of file math_float8.h.

References b, make_vfloat8(), and max.

◆ min()

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

Definition at line 230 of file math_float8.h.

References b, make_vfloat8(), and min.

◆ mix() [1/2]

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

Definition at line 299 of file math_float8.h.

References b.

◆ mix() [2/2]

ccl_device_inline vfloat8 mix ( const vfloat8 a,
const vfloat8 b,
vfloat8 t )

Definition at line 304 of file math_float8.h.

References b.

◆ one_vfloat8()

ccl_device_inline vfloat8 one_vfloat8 ( )

Definition at line 24 of file math_float8.h.

References make_vfloat8().

◆ operator*() [1/3]

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

Definition at line 94 of file math_float8.h.

References make_vfloat8().

◆ operator*() [2/3]

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

Definition at line 89 of file math_float8.h.

References make_vfloat8().

◆ operator*() [3/3]

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

Definition at line 79 of file math_float8.h.

References b, and make_vfloat8().

◆ operator*=() [1/2]

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

Definition at line 129 of file math_float8.h.

References b.

◆ operator*=() [2/2]

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

Definition at line 134 of file math_float8.h.

◆ operator+() [1/3]

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

Definition at line 44 of file math_float8.h.

References make_vfloat8().

◆ operator+() [2/3]

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

Definition at line 39 of file math_float8.h.

References make_vfloat8().

◆ operator+() [3/3]

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

Definition at line 29 of file math_float8.h.

References b, and make_vfloat8().

◆ operator+=()

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

Definition at line 119 of file math_float8.h.

References b.

◆ operator-() [1/4]

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

Definition at line 74 of file math_float8.h.

References make_vfloat8().

◆ operator-() [2/4]

ccl_device_inline vfloat8 operator- ( const vfloat8 a)

Definition at line 49 of file math_float8.h.

References make_vfloat8().

◆ operator-() [3/4]

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

Definition at line 69 of file math_float8.h.

References make_vfloat8().

◆ operator-() [4/4]

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

Definition at line 59 of file math_float8.h.

References b, and make_vfloat8().

◆ operator-=()

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

Definition at line 124 of file math_float8.h.

References b.

◆ operator/() [1/3]

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

Definition at line 114 of file math_float8.h.

References make_vfloat8().

◆ operator/() [2/3]

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

Definition at line 109 of file math_float8.h.

References make_vfloat8().

◆ operator/() [3/3]

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

Definition at line 99 of file math_float8.h.

References b, and make_vfloat8().

◆ operator/=()

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

Definition at line 139 of file math_float8.h.

◆ operator==()

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

Definition at line 144 of file math_float8.h.

References b.

◆ operator^()

ccl_device_inline const vfloat8 operator^ ( const vfloat8 a,
const vfloat8 b )

Definition at line 156 of file math_float8.h.

References __float_as_uint, __uint_as_float, b, and make_vfloat8().

◆ pow()

ccl_device_inline vfloat8 pow ( vfloat8 v,
float e )

Definition at line 337 of file math_float8.h.

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

◆ rcp()

ccl_device_inline vfloat8 rcp ( const vfloat8 a)

Definition at line 172 of file math_float8.h.

References make_vfloat8().

◆ reduce_add()

ccl_device_inline float reduce_add ( const vfloat8 a)

Definition at line 214 of file math_float8.h.

References b.

Referenced by average().

◆ reduce_max()

ccl_device_inline float reduce_max ( const vfloat8 a)

Definition at line 354 of file math_float8.h.

References max.

◆ reduce_min()

ccl_device_inline float reduce_min ( const vfloat8 a)

Definition at line 349 of file math_float8.h.

References min.

◆ safe_divide() [1/2]

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

Definition at line 364 of file math_float8.h.

References b, and make_vfloat8().

◆ safe_divide() [2/2]

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

Definition at line 369 of file math_float8.h.

References b, and make_vfloat8().

◆ saturate()

ccl_device_inline vfloat8 saturate ( const vfloat8 a)

Definition at line 309 of file math_float8.h.

References clamp(), and make_vfloat8().

◆ select()

ccl_device_inline vfloat8 select ( const vint8 mask,
const vfloat8 a,
const vfloat8 b )

Definition at line 267 of file math_float8.h.

References b, and make_vfloat8().

◆ sqr()

ccl_device_inline vfloat8 sqr ( const vfloat8 a)

Definition at line 204 of file math_float8.h.

◆ sqrt()

ccl_device_inline vfloat8 sqrt ( const vfloat8 a)

Definition at line 188 of file math_float8.h.

References make_vfloat8(), and sqrtf.

◆ zero_vfloat8()

CCL_NAMESPACE_BEGIN ccl_device_inline vfloat8 zero_vfloat8 ( )

Definition at line 15 of file math_float8.h.

References make_vfloat8().