diff options
| author | gingerBill <bill@gingerbill.org> | 2022-05-26 11:02:02 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-05-26 11:02:02 +0100 |
| commit | 0fd43c1a0b697ea919efdeef42427694f32692bf (patch) | |
| tree | 58512075dc550dc40483660c3fc6365b6269f115 /core/simd | |
| parent | 06337129d8de636ad00e8ea64218d48c67514611 (diff) | |
Add simd.{sqrt, ceil, floor, trunc, nearest}
Diffstat (limited to 'core/simd')
| -rw-r--r-- | core/simd/simd.odin | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/simd/simd.odin b/core/simd/simd.odin index e81f82341..9c37c380c 100644 --- a/core/simd/simd.odin +++ b/core/simd/simd.odin @@ -83,6 +83,13 @@ shuffle :: intrinsics.simd_shuffle // select :: proc(cond: #simd[N]boolean_or_integer, true, false: #simd[N]T) -> #simd[N]T select :: intrinsics.simd_select + +sqrt :: intrinsics.simd_sqrt +ceil :: intrinsics.simd_ceil +floor :: intrinsics.simd_floor +trunc :: intrinsics.simd_trunc +nearest :: intrinsics.simd_nearest + splat :: #force_inline proc "contextless" ($T: typeid/#simd[$LANES]$E, value: E) -> T { return T{0..<LANES = value} } |