diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/bytes/bytes.odin | 4 | ||||
| -rw-r--r-- | core/simd/util/util.odin | 4 | ||||
| -rw-r--r-- | core/strings/strings.odin | 4 |
3 files changed, 6 insertions, 6 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 diff --git a/core/simd/util/util.odin b/core/simd/util/util.odin index b209a44ea..74401689a 100644 --- a/core/simd/util/util.odin +++ b/core/simd/util/util.odin @@ -34,7 +34,7 @@ Inputs: Returns: - index: The index of the byte `c`, or -1 if it was not found. */ -index_byte :: proc(data: []u8, c: byte) -> (index: int) #no_bounds_check { +index_byte :: proc "contextless" (data: []u8, c: byte) -> (index: int) #no_bounds_check { length := len(data) i := 0 @@ -101,7 +101,7 @@ Inputs: Returns: - index: The index of the byte `c`, or -1 if it was not found. */ -last_index_byte :: proc(data: []u8, c: byte) -> int #no_bounds_check { +last_index_byte :: proc "contextless" (data: []u8, c: byte) -> int #no_bounds_check { length := len(data) i := length - 1 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 |