mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-09 11:58:10 +00:00
Make simd_util index procs contextless where applicable
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user