Blender V5.0
math_int8.h File Reference
#include "util/math_base.h"
#include "util/types_float8.h"
#include "util/types_int8.h"

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device_inline vint8 operator+ (const vint8 a, const vint8 b)
ccl_device_inline vint8 operator+= (vint8 &a, const vint8 b)
ccl_device_inline vint8 operator- (const vint8 a, const vint8 b)
ccl_device_inline vint8 operator-= (vint8 &a, const vint8 b)
ccl_device_inline vint8 operator>> (const vint8 a, const int i)
ccl_device_inline vint8 operator<< (const vint8 a, const int i)
ccl_device_inline vint8 operator< (const vint8 a, const vint8 b)
ccl_device_inline vint8 operator< (const vint8 a, const int b)
ccl_device_inline vint8 operator== (const vint8 a, const vint8 b)
ccl_device_inline vint8 operator== (const vint8 a, const int b)
ccl_device_inline vint8 operator>= (const vint8 a, const vint8 b)
ccl_device_inline vint8 operator>= (const vint8 a, const int b)
ccl_device_inline vint8 operator& (const vint8 a, const vint8 b)
ccl_device_inline vint8 operator| (const vint8 a, const vint8 b)
ccl_device_inline vint8 operator^ (const vint8 a, const vint8 b)
ccl_device_inline vint8 operator& (const int32_t a, const vint8 b)
ccl_device_inline vint8 operator& (const vint8 a, const int32_t b)
ccl_device_inline vint8 operator| (const int32_t a, const vint8 b)
ccl_device_inline vint8 operator| (const vint8 a, const int32_t b)
ccl_device_inline vint8 operator^ (const int32_t a, const vint8 b)
ccl_device_inline vint8 operator^ (const vint8 a, const int32_t b)
ccl_device_inline vint8 & operator&= (vint8 &a, const vint8 b)
ccl_device_inline vint8 & operator&= (vint8 &a, const int32_t b)
ccl_device_inline vint8 & operator|= (vint8 &a, const vint8 b)
ccl_device_inline vint8 & operator|= (vint8 &a, const int32_t b)
ccl_device_inline vint8 & operator^= (vint8 &a, const vint8 b)
ccl_device_inline vint8 & operator^= (vint8 &a, const int32_t b)
ccl_device_inline vint8 & operator<<= (vint8 &a, const int32_t b)
ccl_device_inline vint8 & operator>>= (vint8 &a, const int32_t b)
ccl_device_inline vint8 min (vint8 a, vint8 b)
ccl_device_inline vint8 max (vint8 a, vint8 b)
ccl_device_inline vint8 clamp (const vint8 a, const vint8 mn, const vint8 mx)
ccl_device_inline vint8 select (const vint8 mask, const vint8 a, const vint8 b)
ccl_device_inline vint8 load_vint8 (const int *v)
ccl_device_inline vfloat8 cast (const vint8 a)

Function Documentation

◆ cast()

ccl_device_inline vfloat8 cast ( const vint8 a)

Definition at line 290 of file math_int8.h.

References __int_as_float, ccl_device_inline, and make_vfloat8().

◆ clamp()

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

Definition at line 258 of file math_int8.h.

References ccl_device_inline, max, and min.

◆ load_vint8()

ccl_device_inline vint8 load_vint8 ( const int * v)

Definition at line 280 of file math_int8.h.

References ccl_device_inline, make_vint8(), and v.

◆ max()

ccl_device_inline vint8 max ( vint8 a,
vint8 b )

Definition at line 242 of file math_int8.h.

References b, ccl_device_inline, make_vint8(), and max.

◆ min()

ccl_device_inline vint8 min ( vint8 a,
vint8 b )

Definition at line 226 of file math_int8.h.

References b, ccl_device_inline, make_vint8(), and min.

◆ operator&() [1/3]

ccl_device_inline vint8 operator& ( const int32_t a,
const vint8 b )

Definition at line 153 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator&() [2/3]

ccl_device_inline vint8 operator& ( const vint8 a,
const int32_t b )

Definition at line 158 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator&() [3/3]

ccl_device_inline vint8 operator& ( const vint8 a,
const vint8 b )

Definition at line 123 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator&=() [1/2]

ccl_device_inline vint8 & operator&= ( vint8 & a,
const int32_t b )

Definition at line 187 of file math_int8.h.

References b, and ccl_device_inline.

◆ operator&=() [2/2]

ccl_device_inline vint8 & operator&= ( vint8 & a,
const vint8 b )

Definition at line 183 of file math_int8.h.

References b, and ccl_device_inline.

◆ operator+()

CCL_NAMESPACE_BEGIN ccl_device_inline vint8 operator+ ( const vint8 a,
const vint8 b )

Definition at line 15 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator+=()

ccl_device_inline vint8 operator+= ( vint8 & a,
const vint8 b )

Definition at line 25 of file math_int8.h.

References b, and ccl_device_inline.

◆ operator-()

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

Definition at line 30 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator-=()

ccl_device_inline vint8 operator-= ( vint8 & a,
const vint8 b )

Definition at line 40 of file math_int8.h.

References b, and ccl_device_inline.

◆ operator<() [1/2]

ccl_device_inline vint8 operator< ( const vint8 a,
const int b )

Definition at line 75 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator<() [2/2]

ccl_device_inline vint8 operator< ( const vint8 a,
const vint8 b )

Definition at line 65 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator<<()

ccl_device_inline vint8 operator<< ( const vint8 a,
const int i )

Definition at line 55 of file math_int8.h.

References ccl_device_inline, i, and make_vint8().

◆ operator<<=()

ccl_device_inline vint8 & operator<<= ( vint8 & a,
const int32_t b )

Definition at line 210 of file math_int8.h.

References b, and ccl_device_inline.

◆ operator==() [1/2]

ccl_device_inline vint8 operator== ( const vint8 a,
const int b )

Definition at line 96 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator==() [2/2]

ccl_device_inline vint8 operator== ( const vint8 a,
const vint8 b )

Definition at line 80 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator>=() [1/2]

ccl_device_inline vint8 operator>= ( const vint8 a,
const int b )

Definition at line 118 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator>=() [2/2]

ccl_device_inline vint8 operator>= ( const vint8 a,
const vint8 b )

Definition at line 101 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator>>()

ccl_device_inline vint8 operator>> ( const vint8 a,
const int i )

Definition at line 45 of file math_int8.h.

References ccl_device_inline, i, and make_vint8().

◆ operator>>=()

ccl_device_inline vint8 & operator>>= ( vint8 & a,
const int32_t b )

Definition at line 214 of file math_int8.h.

References b, and ccl_device_inline.

◆ operator^() [1/3]

ccl_device_inline vint8 operator^ ( const int32_t a,
const vint8 b )

Definition at line 173 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator^() [2/3]

ccl_device_inline vint8 operator^ ( const vint8 a,
const int32_t b )

Definition at line 178 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator^() [3/3]

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

Definition at line 143 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator^=() [1/2]

ccl_device_inline vint8 & operator^= ( vint8 & a,
const int32_t b )

Definition at line 205 of file math_int8.h.

References b, and ccl_device_inline.

◆ operator^=() [2/2]

ccl_device_inline vint8 & operator^= ( vint8 & a,
const vint8 b )

Definition at line 201 of file math_int8.h.

References b, and ccl_device_inline.

◆ operator|() [1/3]

ccl_device_inline vint8 operator| ( const int32_t a,
const vint8 b )

Definition at line 163 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator|() [2/3]

ccl_device_inline vint8 operator| ( const vint8 a,
const int32_t b )

Definition at line 168 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator|() [3/3]

ccl_device_inline vint8 operator| ( const vint8 a,
const vint8 b )

Definition at line 133 of file math_int8.h.

References b, ccl_device_inline, and make_vint8().

◆ operator|=() [1/2]

ccl_device_inline vint8 & operator|= ( vint8 & a,
const int32_t b )

Definition at line 196 of file math_int8.h.

References b, and ccl_device_inline.

◆ operator|=() [2/2]

ccl_device_inline vint8 & operator|= ( vint8 & a,
const vint8 b )

Definition at line 192 of file math_int8.h.

References b, and ccl_device_inline.

◆ select()

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

Definition at line 263 of file math_int8.h.

References b, ccl_device_inline, make_vint8(), and mask().