mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Remove sun musl fdlibm math library
The libm code from musl wasn't being used since most of these functions are implemented using x87 which goes faster than a library intended for risc machines.
This commit is contained in:
parent
e6481efa80
commit
fdc3fa9148
388 changed files with 304 additions and 19472 deletions
|
@ -25,8 +25,7 @@
|
|||
/ @param 𝑦 is the power, also pushed on stack, in reverse order
|
||||
/ @return result of exponentiation on FPU stack in %st
|
||||
/ @note Sun's fdlibm needs 2kLOC to do this for RISC lool
|
||||
tinymath_powl:
|
||||
push %rbp
|
||||
powl: push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
fldt 32(%rbp)
|
||||
|
@ -42,6 +41,5 @@ tinymath_powl:
|
|||
fstp %st
|
||||
pop %rbp
|
||||
ret
|
||||
.endfn tinymath_powl,globl
|
||||
.alias tinymath_powl,powl
|
||||
.alias tinymath_powl,__powl_finite
|
||||
.endfn powl,globl
|
||||
.alias powl,__powl_finite
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue