runtime: testing runtime
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
package bytealg
|
||||
|
||||
// llgo:skip init CompareString
|
||||
import (
|
||||
"unsafe"
|
||||
|
||||
@@ -24,6 +23,9 @@ import (
|
||||
"github.com/goplus/llgo/runtime/internal/runtime"
|
||||
)
|
||||
|
||||
// llgo:skip init CompareString
|
||||
type _bytealg struct{}
|
||||
|
||||
func IndexByte(b []byte, ch byte) int {
|
||||
ptr := unsafe.Pointer(unsafe.SliceData(b))
|
||||
ret := c.Memchr(ptr, c.Int(ch), uintptr(len(b)))
|
||||
|
||||
Reference in New Issue
Block a user