Perform some code cleanup

This commit is contained in:
Justine Tunney 2021-02-27 10:33:32 -08:00
parent 3e17c7b20f
commit 19d0c15e03
41 changed files with 321 additions and 459 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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