aboutsummaryrefslogtreecommitdiff
path: root/core/simd
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-05-25 23:49:23 +0100
committergingerBill <bill@gingerbill.org>2022-05-25 23:49:23 +0100
commitc2f5cbdeb48e49d25dc75c1fcc02ce688dc85e26 (patch)
tree1839596edc93ac35f118c3dc3fa05dbb438cfc77 /core/simd
parent8e57511ffa58e9198ceab9e0e458ce6f132d37d1 (diff)
Allow integer vectors in select
Diffstat (limited to 'core/simd')
-rw-r--r--core/simd/simd.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/simd/simd.odin b/core/simd/simd.odin
index ab0d9937b..b26719d56 100644
--- a/core/simd/simd.odin
+++ b/core/simd/simd.odin
@@ -80,7 +80,7 @@ swizzle :: builtin.swizzle
// shuffle :: proc(a, b: #simd[N]T, indices: #simd[max 2*N]u32) -> #simd[len(indices)]T
shuffle :: intrinsics.simd_shuffle
-// select :: proc(cond: #simd[N]any_boolean, true, false: #simd[N]T) -> #simd[N]T
+// select :: proc(cond: #simd[N]boolean_or_integer, true, false: #simd[N]T) -> #simd[N]T
select :: intrinsics.simd_select
splat :: #force_inline proc "contextless" ($T: typeid/#simd[$LANES]$E, value: E) -> T {