Blender V4.3
math_int4.h File Reference

Go to the source code of this file.

Functions

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

Function Documentation

◆ cast()

ccl_device_inline float4 cast ( const int4 a)

Definition at line 247 of file math_int4.h.

References __int_as_float, and make_float4().

◆ clamp()

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

Definition at line 222 of file math_int4.h.

References max, and min.

◆ load_int4()

ccl_device_inline int4 load_int4 ( const int * v)

Definition at line 237 of file math_int4.h.

References make_int4(), and v.

◆ max()

Definition at line 213 of file math_int4.h.

References b, make_int4(), and max.

◆ min()

Definition at line 204 of file math_int4.h.

References b, make_int4(), and min.

◆ operator&() [1/3]

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

Definition at line 131 of file math_int4.h.

References b, and make_int4().

◆ operator&() [2/3]

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

Definition at line 136 of file math_int4.h.

References b, and make_int4().

◆ operator&() [3/3]

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

Definition at line 104 of file math_int4.h.

References b, and make_int4().

◆ operator&=() [1/2]

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

Definition at line 165 of file math_int4.h.

References b.

◆ operator&=() [2/2]

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

Definition at line 161 of file math_int4.h.

References b.

◆ operator+()

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

Definition at line 16 of file math_int4.h.

References b, and make_int4().

◆ operator+=()

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

Definition at line 25 of file math_int4.h.

References b.

◆ operator-()

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

Definition at line 30 of file math_int4.h.

References b, and make_int4().

◆ operator-=()

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

Definition at line 39 of file math_int4.h.

References b.

◆ operator<() [1/2]

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

Definition at line 71 of file math_int4.h.

References b, and make_int4().

◆ operator<() [2/2]

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

Definition at line 62 of file math_int4.h.

References b, and make_int4().

◆ operator<<()

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

Definition at line 53 of file math_int4.h.

References make_int4().

◆ operator<<=()

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

Definition at line 188 of file math_int4.h.

References b.

◆ operator==() [1/2]

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

Definition at line 85 of file math_int4.h.

References b, and make_int4().

◆ operator==() [2/2]

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

Definition at line 76 of file math_int4.h.

References b, and make_int4().

◆ operator>=() [1/2]

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

Definition at line 99 of file math_int4.h.

References b, and make_int4().

◆ operator>=() [2/2]

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

Definition at line 90 of file math_int4.h.

References b, and make_int4().

◆ operator>>()

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

Definition at line 44 of file math_int4.h.

References make_int4().

◆ operator>>=()

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

Definition at line 192 of file math_int4.h.

References b.

◆ operator^() [1/3]

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

Definition at line 151 of file math_int4.h.

References b, and make_int4().

◆ operator^() [2/3]

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

Definition at line 156 of file math_int4.h.

References b, and make_int4().

◆ operator^() [3/3]

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

Definition at line 122 of file math_int4.h.

References b, and make_int4().

◆ operator^=() [1/2]

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

Definition at line 183 of file math_int4.h.

References b.

◆ operator^=() [2/2]

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

Definition at line 179 of file math_int4.h.

References b.

◆ operator|() [1/3]

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

Definition at line 141 of file math_int4.h.

References b, and make_int4().

◆ operator|() [2/3]

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

Definition at line 146 of file math_int4.h.

References b, and make_int4().

◆ operator|() [3/3]

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

Definition at line 113 of file math_int4.h.

References b, and make_int4().

◆ operator|=() [1/2]

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

Definition at line 174 of file math_int4.h.

References b.

◆ operator|=() [2/2]

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

Definition at line 170 of file math_int4.h.

References b.

◆ select()

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

Definition at line 227 of file math_int4.h.

References b, and make_int4().