diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-05-29 23:32:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-29 23:32:19 +0200 |
| commit | 3142aaf497d7a784eb85b9596e05fd329554c5a8 (patch) | |
| tree | 0d1cf96e11db30a134a640a72356fcf8ab1ecdc5 /core/bytes | |
| parent | 0d0f311df1e31102f4138c1a28110f86dcf60fca (diff) | |
| parent | 45219f240efdb5ced113ea10398abe864ee21632 (diff) | |
Merge pull request #4063 from Feoramund/simd-memory
Vectorize `base:runtime.memory_*`
Diffstat (limited to 'core/bytes')
| -rw-r--r-- | core/bytes/bytes.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bytes/bytes.odin b/core/bytes/bytes.odin index c0d25bcce..71b6ef70c 100644 --- a/core/bytes/bytes.odin +++ b/core/bytes/bytes.odin @@ -350,7 +350,7 @@ index_byte :: proc "contextless" (s: []byte, c: byte) -> (index: int) #no_bounds } c_vec: simd.u8x16 = c - when !simd.IS_EMULATED { + when simd.HAS_HARDWARE_SIMD { // Note: While this is something that could also logically take // advantage of AVX512, the various downclocking and power // consumption related woes make premature to have a dedicated @@ -485,7 +485,7 @@ last_index_byte :: proc "contextless" (s: []byte, c: byte) -> int #no_bounds_che } c_vec: simd.u8x16 = c - when !simd.IS_EMULATED { + when simd.HAS_HARDWARE_SIMD { // Note: While this is something that could also logically take // advantage of AVX512, the various downclocking and power // consumption related woes make premature to have a dedicated |