mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Perform some code cleanup
This commit is contained in:
parent
3e17c7b20f
commit
19d0c15e03
41 changed files with 321 additions and 459 deletions
|
@ -24,7 +24,6 @@
|
|||
double hypot(double a, double b) {
|
||||
double r, t;
|
||||
if (isinf(a) || isinf(b)) return INFINITY;
|
||||
if (isunordered(a, b)) return NAN;
|
||||
a = fabs(a);
|
||||
b = fabs(b);
|
||||
if (a < b) t = b, b = a, a = t;
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
float hypotf(float a, float b) {
|
||||
float r, t;
|
||||
if (isinf(a) || isinf(b)) return INFINITY;
|
||||
if (isunordered(a, b)) return NAN;
|
||||
a = fabsf(a);
|
||||
b = fabsf(b);
|
||||
if (a < b) t = b, b = a, a = t;
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
long double hypotl(long double a, long double b) {
|
||||
long double r, t;
|
||||
if (isinf(a) || isinf(b)) return INFINITY;
|
||||
if (isunordered(a, b)) return NAN;
|
||||
a = fabsl(a);
|
||||
b = fabsl(b);
|
||||
if (a < b) t = b, b = a, a = t;
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
//
|
||||
// @param 𝑥 is double scalar in low half of %xmm0
|
||||
// @return double scalar in low half of %xmm0
|
||||
log10:
|
||||
ezlea log10l,ax
|
||||
log10: ezlea log10l,ax
|
||||
jmp _d2ld2
|
||||
.endfn log10,globl
|
||||
|
|
|
@ -22,8 +22,7 @@
|
|||
//
|
||||
// @param 𝑥 is a double passed in the lower quadword of %xmm0
|
||||
// @return result in lower quadword of %xmm0
|
||||
log2:
|
||||
push %rbp
|
||||
log2: push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
push %rax
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
//
|
||||
// @param 𝑥 is a float passed in the lower quarter of %xmm0
|
||||
// @return result in lower quarter of %xmm0
|
||||
log2f:
|
||||
push %rbp
|
||||
log2f: push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
push %rax
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue