Type Alias

# simd_int2

A vector of two 32-bit signed integer values.

## Topics

### Vector Creation Functions

func simd_make_int2(simd_int8) -> simd_int2

Returns a new vector by truncating the specified vector.

func simd_make_int2(simd_int16) -> simd_int2

Returns a new vector by truncating the specified vector.

func simd_make_int2(Int32) -> simd_int2

Returns a new vector with the first element set to a scalar value, and other elements set to zero.

func simd_make_int2(simd_int2) -> simd_int2

Returns a new vector from a two-element vector.

func simd_make_int2(simd_int3) -> simd_int2

Returns a new vector from the first and second elements of a three-element vector.

func simd_make_int2(simd_int4) -> simd_int2

Returns a new vector from the first and second elements of a four-element vector.

func simd_make_int2(Int32, Int32) -> simd_int2

Returns a new vector from 2 scalar values.

func simd_make_int2_undef(Int32) -> simd_int2

Returns a new vector with the first element set to a scalar value, and other elements undefined.

### Common Functions

func simd_abs(simd_int2) -> simd_int2

Returns the absolute value of each element in a vector.

func simd_clamp(simd_int2, simd_int2, simd_int2) -> simd_int2

Returns each element in a vector clamped to a specified range.

func simd_equal(simd_int2, simd_int2) -> simd_bool

Returns true if all elements of a vector are equal; false otherwise.

### Reduce Functions

Returns the sum of all elements in a vector.

func simd_reduce_max(simd_int2) -> Int32

Returns the maximum value in a vector.

func simd_reduce_min(simd_int2) -> Int32

Returns the minimum value in a vector.

### Extrema Functions

func simd_max(simd_int2, simd_int2) -> simd_int2

Returns the maximum value of each element in a vector.

func simd_min(simd_int2, simd_int2) -> simd_int2

Returns the minimum value of each element in a vector.

### Logic Functions

func simd_any(simd_int2) -> simd_bool

Returns true if the high-order bit of any element is set; false otherwise.

func simd_all(simd_int2) -> simd_bool

Returns true if the high-order bit of every element is set; false otherwise.

func simd_bitselect(simd_int2, simd_int2, simd_int2) -> simd_int2

Returns a vector containing elements from either the first or second parameter, depending on the corresponding element in the third parameter.