mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Add minor improvements and cleanup
This commit is contained in:
parent
9e3e985ae5
commit
feed0d2b0e
163 changed files with 2286 additions and 2245 deletions
|
@ -29,7 +29,8 @@
|
|||
/ @param %rcx,%rdx,%r8,%r9
|
||||
/ @return %rax,%xmm0
|
||||
/ @note this is so much slower than sysv2nt()
|
||||
nt2sysv:push %rbp
|
||||
__nt2sysv:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
sub $0x100,%rsp
|
||||
|
@ -53,5 +54,5 @@ nt2sysv:push %rbp
|
|||
pop %rbx
|
||||
leave
|
||||
ret
|
||||
.endfn nt2sysv,globl,hidden
|
||||
.endfn __nt2sysv,globl,hidden
|
||||
.source __FILE__
|
||||
|
|
|
@ -105,15 +105,6 @@ strnlen_s:
|
|||
.leafepilogue
|
||||
.endfn strnlen_s,globl
|
||||
|
||||
/ Returns length of NUL-terminated string.
|
||||
/
|
||||
/ @param rdi is non-null NUL-terminated string pointer
|
||||
/ @return rax is the number of bytes, excluding the NUL
|
||||
/ @asyncsignalsafe
|
||||
strlen: or $-1,%rsi
|
||||
/ 𝑠𝑙𝑖𝑑𝑒
|
||||
.endfn strlen,globl
|
||||
|
||||
/ Returns length of NUL-terminated memory, with limit.
|
||||
/
|
||||
/ @param rdi is non-null memory
|
||||
|
@ -129,7 +120,7 @@ strnlen:.leafprologue
|
|||
.endfn strnlen,globl
|
||||
|
||||
/ Swiss army knife of string character scanning.
|
||||
/ Sixteen fast functions in one.
|
||||
/ Fourteen fast functions in one.
|
||||
/
|
||||
/ @param rdi is non-null string memory
|
||||
/ @param rsi is max number of bytes to consider
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue