aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2025-05-29 15:11:12 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2025-05-29 15:12:01 -0400
commit827a6f90454cc7540bb3a809657b8d4162545f3c (patch)
tree8aaec9326adb410b508e9b060c02a8fd74a8943f /base
parentb5bc0fdcda8285656562d701fae0e4d6f92ae183 (diff)
Move `simd.IS_EMULATED` to `runtime.SIMD_IS_EMULATED`
Diffstat (limited to 'base')
-rw-r--r--base/runtime/internal.odin5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/runtime/internal.odin b/base/runtime/internal.odin
index 82ae6ffa4..bddbcaa22 100644
--- a/base/runtime/internal.odin
+++ b/base/runtime/internal.odin
@@ -16,6 +16,11 @@ RUNTIME_REQUIRE :: false // !ODIN_TILDE
@(private)
__float16 :: f16 when __ODIN_LLVM_F16_SUPPORTED else u16
+SIMD_IS_EMULATED :: true when (ODIN_ARCH == .amd64 || ODIN_ARCH == .i386) && !intrinsics.has_target_feature("sse2") else
+ true when (ODIN_ARCH == .arm64 || ODIN_ARCH == .arm32) && !intrinsics.has_target_feature("neon") else
+ true when (ODIN_ARCH == .wasm64p32 || ODIN_ARCH == .wasm32) && !intrinsics.has_target_feature("simd128") else
+ true when (ODIN_ARCH == .riscv64) && !intrinsics.has_target_feature("v") else
+ false
@(private)
byte_slice :: #force_inline proc "contextless" (data: rawptr, len: int) -> []byte #no_bounds_check {