aboutsummaryrefslogtreecommitdiff
path: root/core/strings
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-08-09 17:42:14 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-08-09 18:54:04 -0400
commitc8a62ee4ec9b7beec6dcff907ad2dfecdd547f22 (patch)
tree02ff1814e3746ded2672121e0457eb0efe5ed7b5 /core/strings
parent12dd0cb72a586a99129280c78697089caab0500a (diff)
Make `simd_util` index procs `contextless` where applicable
Diffstat (limited to 'core/strings')
-rw-r--r--core/strings/strings.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/strings/strings.odin b/core/strings/strings.odin
index b8e43f90d..ed7f494ae 100644
--- a/core/strings/strings.odin
+++ b/core/strings/strings.odin
@@ -1426,7 +1426,7 @@ Output:
*/
index_byte :: proc(s: string, c: byte) -> (res: int) {
- _index_byte :: #force_inline proc(s: string, c: byte) -> int {
+ _index_byte :: #force_inline proc "contextless" (s: string, c: byte) -> int {
for i := 0; i < len(s); i += 1 {
if s[i] == c {
return i
@@ -1477,7 +1477,7 @@ Output:
*/
last_index_byte :: proc(s: string, c: byte) -> (res: int) {
- _last_index_byte :: #force_inline proc(s: string, c: byte) -> int {
+ _last_index_byte :: #force_inline proc "contextless" (s: string, c: byte) -> int {
for i := len(s)-1; i >= 0; i -= 1 {
if s[i] == c {
return i