|
@@ -251,6 +251,8 @@ simd_trunc :: proc(a: #simd[N]any_float) -> #simd[N]any_float ---
|
|
|
// rounding to the nearest integral value; if two values are equally near, rounds to the even one
|
|
|
simd_nearest :: proc(a: #simd[N]any_float) -> #simd[N]any_float ---
|
|
|
|
|
|
+simd_to_bits :: proc(v: #simd[N]T) -> #simd[N]Integer where size_of(T) == size_of(Integer), type_is_unsigned(Integer) ---
|
|
|
+
|
|
|
// equivalent a swizzle with descending indices, e.g. reserve(a, 3, 2, 1, 0)
|
|
|
simd_reverse :: proc(a: #simd[N]T) -> #simd[N]T ---
|
|
|
|