SIMD module

operator>

procedure2 overloadsSource

Compares lane by lane: each lane of the result is 1 where the lane of a is greater than the lane of b, else 0. The result has the lane type, not bool; pass it to get_mask to get one bit per lane.

Example↗
a := set(4, cast(s32) 3);
assert(get_mask(a > set(4, cast(s32) 5)) == 0);
operator> :: (a: $T/SIMD_Array, b: T) -> T

Parameters

b: T

Returns

T
operator> :: (a: $T/SIMD_Array, factor: a.type) -> T

Compares every lane with factor: each lane of the result is 1 where the lane is greater than factor, else 0. The result has the lane type, not bool; pass it to get_mask to get one bit per lane.

Parameters

factor: a.type

Returns

T
Example↗
a := set(4, cast(s32) 3);
assert(get_mask(a > cast(s32) 3) == 0);

See also