CUDASIMDTypes.jl

CUDASIMDTypes.Int16x2Type
struct Int16x2

A SIMD type holding 2 16-bit integers in a combined 32-bit value.

CUDASIMDTypes.Int2x16Type
struct Int2x16

A SIMD type holding 16 2-bit integers in a combined 32-bit value.

CUDASIMDTypes.Int2x4Type
struct Int2x4

A SIMD type holding 4 2-bit integers in a combined 8-bit value.

CUDASIMDTypes.Int4x2Type
struct Int4x2

A SIMD type holding 2 4-bit integers in a combined 8-bit value.

CUDASIMDTypes.Int4x8Type
struct Int4x8

A SIMD type holding 8 4-bit integers in a combined 32-bit value.

CUDASIMDTypes.Int8x4Type
struct Int8x4

A SIMD type holding 4 8-bit integers in a combined 32-bit value.

CUDASIMDTypes.bitifelseMethod
bitifelse(cond, x, y)

Bitwise version of ifelse.

For each bit of the output, the respective bit in cond determines whether the respective bit of x or of y is selected.

CUDASIMDTypes.cvt_pack_s8Method
d = cvt_pack_s8(a::Int32, b::Int32, c::UInt32)
d::UInt32
d[1] = sat(b)
d[2] = sat(a)
d[3] = c[1]
d[4] = c[2]
CUDASIMDTypes.cvt_pack_s8Method
d = cvt_pack_s8(a::Int32, b::Int32)
d::UInt32
d[1] = sat(b)
d[2] = sat(a)
d[3] = 0
d[4] = 0
CUDASIMDTypes.dp4aMethod
d = dp4a(a::UInt32, b::UInt32, c::Int32)
d::Int32
d = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] + c