mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 20:40:28 +00:00
Do some string library work
This commit is contained in:
parent
83d41e4588
commit
35203c0551
42 changed files with 1381 additions and 136 deletions
|
@ -65,14 +65,6 @@ wcsnlen_s:
|
|||
.leafepilogue
|
||||
.endfn wcsnlen_s,globl
|
||||
|
||||
// Returns length of NUL-terminated wchar_t string.
|
||||
//
|
||||
// @param rdi is non-null NUL-terminated wchar_t string pointer
|
||||
// @return rax is the number of chars, excluding the NUL
|
||||
// @asyncsignalsafe
|
||||
wcslen: or $-1,%rsi
|
||||
// fallthrough
|
||||
|
||||
// Returns length of NUL-terminated memory, with limit.
|
||||
//
|
||||
// @param rdi is non-null memory
|
||||
|
@ -176,6 +168,5 @@ wcssak: lea -4(%rdi),%rax
|
|||
.endfn wmemchr,globl
|
||||
.endfn rawwmemchr,globl
|
||||
.endfn wcsnlen,globl
|
||||
.endfn wcslen,globl
|
||||
.endfn wcschr,globl
|
||||
.endfn wcschrnul,globl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue