Add minor improvements and cleanup

This commit is contained in:
Justine Tunney 2020-10-27 03:39:46 -07:00
parent 9e3e985ae5
commit feed0d2b0e
163 changed files with 2286 additions and 2245 deletions

View file

@ -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__

View 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