diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-08-09 17:42:14 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-08-09 18:54:04 -0400 |
| commit | c8a62ee4ec9b7beec6dcff907ad2dfecdd547f22 (patch) | |
| tree | 02ff1814e3746ded2672121e0457eb0efe5ed7b5 /core/bytes/bytes.odin | |
| parent | 12dd0cb72a586a99129280c78697089caab0500a (diff) | |
Make `simd_util` index procs `contextless` where applicable
Diffstat (limited to 'core/bytes/bytes.odin')
| -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 136c98f6b..4edd089b9 100644 --- a/core/bytes/bytes.odin +++ b/core/bytes/bytes.odin @@ -297,7 +297,7 @@ split_after_iterator :: proc(s: ^[]byte, sep: []byte) -> ([]byte, bool) { index_byte :: proc(s: []byte, c: byte) -> int { - _index_byte :: #force_inline proc(s: []byte, c: byte) -> int { + _index_byte :: #force_inline proc "contextless" (s: []byte, c: byte) -> int { for i := 0; i < len(s); i += 1 { if s[i] == c { return i @@ -318,7 +318,7 @@ index_byte :: proc(s: []byte, c: byte) -> int { // Returns -1 if c is not present last_index_byte :: proc(s: []byte, c: byte) -> int { - _last_index_byte :: #force_inline proc(s: []byte, c: byte) -> int { + _last_index_byte :: #force_inline proc "contextless" (s: []byte, c: byte) -> int { for i := len(s)-1; i >= 0; i -= 1 { if s[i] == c { return i |