mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Merge pull request #25045 from kada49/libc/common-impl-ceil
libc: delete some superfluous libc c implementations
This commit is contained in:
commit
5cb8cdef10
39 changed files with 0 additions and 687 deletions
25
lib/libc/mingw/math/truncl.c
vendored
25
lib/libc/mingw/math/truncl.c
vendored
|
|
@ -1,25 +0,0 @@
|
||||||
/**
|
|
||||||
* This file has no copyright assigned and is placed in the Public Domain.
|
|
||||||
* This file is part of the mingw-w64 runtime package.
|
|
||||||
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
long double
|
|
||||||
truncl (long double _x)
|
|
||||||
{
|
|
||||||
#if __SIZEOF_LONG_DOUBLE__ == __SIZEOF_DOUBLE__
|
|
||||||
return trunc(_x);
|
|
||||||
#else
|
|
||||||
long double retval = 0.0L;
|
|
||||||
unsigned short saved_cw;
|
|
||||||
unsigned short tmp_cw;
|
|
||||||
__asm__ __volatile__ ("fnstcw %0;" : "=m" (saved_cw)); /* save FPU control word */
|
|
||||||
tmp_cw = saved_cw | 0xc00; /* round towards zero */
|
|
||||||
__asm__ __volatile__ ("fldcw %0;" : : "m" (tmp_cw));
|
|
||||||
__asm__ __volatile__ ("frndint;" : "=t" (retval) : "0" (_x)); /* round towards zero */
|
|
||||||
__asm__ __volatile__ ("fldcw %0;" : : "m" (saved_cw) ); /* restore saved control word */
|
|
||||||
return retval;
|
|
||||||
#endif /* defined(_ARM_) || defined(__arm__) || defined(_ARM64_) || defined(__aarch64__) */
|
|
||||||
}
|
|
||||||
111
lib/libc/mingw/math/x86/ceilf.S
vendored
111
lib/libc/mingw/math/x86/ceilf.S
vendored
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* This file has no copyright assigned and is placed in the Public Domain.
|
|
||||||
* This file is part of the mingw-w64 runtime package.
|
|
||||||
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
||||||
*/
|
|
||||||
#include <_mingw_mac.h>
|
|
||||||
|
|
||||||
.file "ceilf.S"
|
|
||||||
.text
|
|
||||||
.align 4
|
|
||||||
.globl __MINGW_USYMBOL(ceilf)
|
|
||||||
.def __MINGW_USYMBOL(ceilf); .scl 2; .type 32; .endef
|
|
||||||
#ifdef __x86_64__
|
|
||||||
.seh_proc __MINGW_USYMBOL(ceilf)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
__MINGW_USYMBOL(ceilf):
|
|
||||||
#if defined(_AMD64_) || defined(__x86_64__)
|
|
||||||
subq $24, %rsp
|
|
||||||
.seh_stackalloc 24
|
|
||||||
.seh_endprologue
|
|
||||||
movd %xmm0, 12(%rsp)
|
|
||||||
movl 12(%rsp), %eax
|
|
||||||
movl %eax, %ecx
|
|
||||||
movl %eax, %edx
|
|
||||||
sarl $23, %ecx
|
|
||||||
andl $255, %ecx
|
|
||||||
subl $127, %ecx
|
|
||||||
cmpl $22, %ecx
|
|
||||||
jg .l4
|
|
||||||
testl %ecx, %ecx
|
|
||||||
js .l5
|
|
||||||
movl $8388607, %r8d
|
|
||||||
sarl %cl, %r8d
|
|
||||||
testl %eax, %r8d
|
|
||||||
je .l3
|
|
||||||
addss .hugeval(%rip), %xmm0
|
|
||||||
ucomiss .zeroval(%rip), %xmm0
|
|
||||||
jbe .l2
|
|
||||||
testl %eax, %eax
|
|
||||||
jle .l1
|
|
||||||
movl $8388608, %eax
|
|
||||||
sarl %cl, %eax
|
|
||||||
addl %eax, %edx
|
|
||||||
.l1:
|
|
||||||
movl %r8d, %eax
|
|
||||||
notl %eax
|
|
||||||
andl %edx, %eax
|
|
||||||
.l2:
|
|
||||||
movl %eax, 8(%rsp)
|
|
||||||
movss 8(%rsp), %xmm0
|
|
||||||
.l3:
|
|
||||||
addq $24, %rsp
|
|
||||||
ret
|
|
||||||
.p2align 4,,10
|
|
||||||
.l4:
|
|
||||||
addl $-128, %ecx
|
|
||||||
jne .l3
|
|
||||||
addss %xmm0, %xmm0
|
|
||||||
addq $24, %rsp
|
|
||||||
ret
|
|
||||||
.p2align 4,,10
|
|
||||||
.l5:
|
|
||||||
addss .hugeval(%rip), %xmm0
|
|
||||||
ucomiss .zeroval(%rip), %xmm0
|
|
||||||
jbe .islesseqzero
|
|
||||||
testl %eax, %eax
|
|
||||||
js .l6
|
|
||||||
movl $1065353216, %edx
|
|
||||||
cmovne %edx, %eax
|
|
||||||
.islesseqzero:
|
|
||||||
movl %eax, 8(%rsp)
|
|
||||||
movss 8(%rsp), %xmm0
|
|
||||||
addq $24, %rsp
|
|
||||||
ret
|
|
||||||
.p2align 4,,10
|
|
||||||
.l6:
|
|
||||||
movl $-2147483648, 8(%rsp)
|
|
||||||
movss 8(%rsp), %xmm0
|
|
||||||
addq $24, %rsp
|
|
||||||
ret
|
|
||||||
.seh_endproc
|
|
||||||
.section .rdata,"dr"
|
|
||||||
.align 4
|
|
||||||
.hugeval:
|
|
||||||
.long 1900671690
|
|
||||||
.align 4
|
|
||||||
.zeroval:
|
|
||||||
.long 0
|
|
||||||
#elif defined(_X86_) || defined(__i386__)
|
|
||||||
flds 4(%esp)
|
|
||||||
subl $8,%esp
|
|
||||||
|
|
||||||
fstcw 4(%esp) /* store fpu control word */
|
|
||||||
|
|
||||||
/* We use here %edx although only the low 1 bits are defined.
|
|
||||||
But none of the operations should care and they are faster
|
|
||||||
than the 16 bit operations. */
|
|
||||||
movl $0x0800,%edx /* round towards +oo */
|
|
||||||
orl 4(%esp),%edx
|
|
||||||
andl $0xfbff,%edx
|
|
||||||
movl %edx,(%esp)
|
|
||||||
fldcw (%esp) /* load modified control word */
|
|
||||||
|
|
||||||
frndint /* round */
|
|
||||||
|
|
||||||
fldcw 4(%esp) /* restore original control word */
|
|
||||||
|
|
||||||
addl $8,%esp
|
|
||||||
ret
|
|
||||||
#endif
|
|
||||||
55
lib/libc/mingw/math/x86/ceill.S
vendored
55
lib/libc/mingw/math/x86/ceill.S
vendored
|
|
@ -1,55 +0,0 @@
|
||||||
/**
|
|
||||||
* This file has no copyright assigned and is placed in the Public Domain.
|
|
||||||
* This file is part of the mingw-w64 runtime package.
|
|
||||||
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
||||||
*/
|
|
||||||
#include <_mingw_mac.h>
|
|
||||||
|
|
||||||
.file "ceill.S"
|
|
||||||
.text
|
|
||||||
#ifdef __x86_64__
|
|
||||||
.align 8
|
|
||||||
#else
|
|
||||||
.align 4
|
|
||||||
#endif
|
|
||||||
.globl __MINGW_USYMBOL(ceill)
|
|
||||||
.def __MINGW_USYMBOL(ceill); .scl 2; .type 32; .endef
|
|
||||||
__MINGW_USYMBOL(ceill):
|
|
||||||
#if defined(_AMD64_) || defined(__x86_64__)
|
|
||||||
fldt (%rdx)
|
|
||||||
subq $24,%rsp
|
|
||||||
|
|
||||||
fstcw 8(%rsp) /* store fpu control word */
|
|
||||||
|
|
||||||
/* We use here %edx although only the low 1 bits are defined.
|
|
||||||
But none of the operations should care and they are faster
|
|
||||||
than the 16 bit operations. */
|
|
||||||
movl $0x0800,%edx /* round towards +oo */
|
|
||||||
orl 8(%rsp),%edx
|
|
||||||
andl $0xfbff,%edx
|
|
||||||
movl %edx,(%rsp)
|
|
||||||
fldcw (%rsp) /* load modified control word */
|
|
||||||
|
|
||||||
frndint /* round */
|
|
||||||
|
|
||||||
fldcw 8(%rsp) /* restore original control word */
|
|
||||||
|
|
||||||
addq $24,%rsp
|
|
||||||
movq %rcx,%rax
|
|
||||||
movq $0,8(%rcx)
|
|
||||||
fstpt (%rcx)
|
|
||||||
ret
|
|
||||||
#elif defined(_X86_) || defined(__i386__)
|
|
||||||
fldt 4(%esp)
|
|
||||||
subl $8,%esp
|
|
||||||
fstcw 4(%esp)
|
|
||||||
movl $0x0800,%edx
|
|
||||||
orl 4(%esp),%edx
|
|
||||||
andl $0xfbff,%edx
|
|
||||||
movl %edx,(%esp)
|
|
||||||
fldcw (%esp)
|
|
||||||
frndint
|
|
||||||
fldcw 4(%esp)
|
|
||||||
addl $8,%esp
|
|
||||||
ret
|
|
||||||
#endif
|
|
||||||
7
lib/libc/musl/src/math/aarch64/ceil.c
vendored
7
lib/libc/musl/src/math/aarch64/ceil.c
vendored
|
|
@ -1,7 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
double ceil(double x)
|
|
||||||
{
|
|
||||||
__asm__ ("frintp %d0, %d1" : "=w"(x) : "w"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
7
lib/libc/musl/src/math/aarch64/ceilf.c
vendored
7
lib/libc/musl/src/math/aarch64/ceilf.c
vendored
|
|
@ -1,7 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
float ceilf(float x)
|
|
||||||
{
|
|
||||||
__asm__ ("frintp %s0, %s1" : "=w"(x) : "w"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
7
lib/libc/musl/src/math/aarch64/trunc.c
vendored
7
lib/libc/musl/src/math/aarch64/trunc.c
vendored
|
|
@ -1,7 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
double trunc(double x)
|
|
||||||
{
|
|
||||||
__asm__ ("frintz %d0, %d1" : "=w"(x) : "w"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
7
lib/libc/musl/src/math/aarch64/truncf.c
vendored
7
lib/libc/musl/src/math/aarch64/truncf.c
vendored
|
|
@ -1,7 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
float truncf(float x)
|
|
||||||
{
|
|
||||||
__asm__ ("frintz %s0, %s1" : "=w"(x) : "w"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
31
lib/libc/musl/src/math/ceil.c
vendored
31
lib/libc/musl/src/math/ceil.c
vendored
|
|
@ -1,31 +0,0 @@
|
||||||
#include "libm.h"
|
|
||||||
|
|
||||||
#if FLT_EVAL_METHOD==0 || FLT_EVAL_METHOD==1
|
|
||||||
#define EPS DBL_EPSILON
|
|
||||||
#elif FLT_EVAL_METHOD==2
|
|
||||||
#define EPS LDBL_EPSILON
|
|
||||||
#endif
|
|
||||||
static const double_t toint = 1/EPS;
|
|
||||||
|
|
||||||
double ceil(double x)
|
|
||||||
{
|
|
||||||
union {double f; uint64_t i;} u = {x};
|
|
||||||
int e = u.i >> 52 & 0x7ff;
|
|
||||||
double_t y;
|
|
||||||
|
|
||||||
if (e >= 0x3ff+52 || x == 0)
|
|
||||||
return x;
|
|
||||||
/* y = int(x) - x, where int(x) is an integer neighbor of x */
|
|
||||||
if (u.i >> 63)
|
|
||||||
y = x - toint + toint - x;
|
|
||||||
else
|
|
||||||
y = x + toint - toint - x;
|
|
||||||
/* special case because of non-nearest rounding modes */
|
|
||||||
if (e <= 0x3ff-1) {
|
|
||||||
FORCE_EVAL(y);
|
|
||||||
return u.i >> 63 ? -0.0 : 1;
|
|
||||||
}
|
|
||||||
if (y < 0)
|
|
||||||
return x + y + 1;
|
|
||||||
return x + y;
|
|
||||||
}
|
|
||||||
27
lib/libc/musl/src/math/ceilf.c
vendored
27
lib/libc/musl/src/math/ceilf.c
vendored
|
|
@ -1,27 +0,0 @@
|
||||||
#include "libm.h"
|
|
||||||
|
|
||||||
float ceilf(float x)
|
|
||||||
{
|
|
||||||
union {float f; uint32_t i;} u = {x};
|
|
||||||
int e = (int)(u.i >> 23 & 0xff) - 0x7f;
|
|
||||||
uint32_t m;
|
|
||||||
|
|
||||||
if (e >= 23)
|
|
||||||
return x;
|
|
||||||
if (e >= 0) {
|
|
||||||
m = 0x007fffff >> e;
|
|
||||||
if ((u.i & m) == 0)
|
|
||||||
return x;
|
|
||||||
FORCE_EVAL(x + 0x1p120f);
|
|
||||||
if (u.i >> 31 == 0)
|
|
||||||
u.i += m;
|
|
||||||
u.i &= ~m;
|
|
||||||
} else {
|
|
||||||
FORCE_EVAL(x + 0x1p120f);
|
|
||||||
if (u.i >> 31)
|
|
||||||
u.f = -0.0;
|
|
||||||
else if (u.i << 1)
|
|
||||||
u.f = 1.0;
|
|
||||||
}
|
|
||||||
return u.f;
|
|
||||||
}
|
|
||||||
34
lib/libc/musl/src/math/ceill.c
vendored
34
lib/libc/musl/src/math/ceill.c
vendored
|
|
@ -1,34 +0,0 @@
|
||||||
#include "libm.h"
|
|
||||||
|
|
||||||
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
|
|
||||||
long double ceill(long double x)
|
|
||||||
{
|
|
||||||
return ceil(x);
|
|
||||||
}
|
|
||||||
#elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
|
|
||||||
|
|
||||||
static const long double toint = 1/LDBL_EPSILON;
|
|
||||||
|
|
||||||
long double ceill(long double x)
|
|
||||||
{
|
|
||||||
union ldshape u = {x};
|
|
||||||
int e = u.i.se & 0x7fff;
|
|
||||||
long double y;
|
|
||||||
|
|
||||||
if (e >= 0x3fff+LDBL_MANT_DIG-1 || x == 0)
|
|
||||||
return x;
|
|
||||||
/* y = int(x) - x, where int(x) is an integer neighbor of x */
|
|
||||||
if (u.i.se >> 15)
|
|
||||||
y = x - toint + toint - x;
|
|
||||||
else
|
|
||||||
y = x + toint - toint - x;
|
|
||||||
/* special case because of non-nearest rounding modes */
|
|
||||||
if (e <= 0x3fff-1) {
|
|
||||||
FORCE_EVAL(y);
|
|
||||||
return u.i.se >> 15 ? -0.0 : 1;
|
|
||||||
}
|
|
||||||
if (y < 0)
|
|
||||||
return x + y + 1;
|
|
||||||
return x + y;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
1
lib/libc/musl/src/math/i386/ceil.s
vendored
1
lib/libc/musl/src/math/i386/ceil.s
vendored
|
|
@ -1 +0,0 @@
|
||||||
# see floor.s
|
|
||||||
1
lib/libc/musl/src/math/i386/ceilf.s
vendored
1
lib/libc/musl/src/math/i386/ceilf.s
vendored
|
|
@ -1 +0,0 @@
|
||||||
# see floor.s
|
|
||||||
1
lib/libc/musl/src/math/i386/ceill.s
vendored
1
lib/libc/musl/src/math/i386/ceill.s
vendored
|
|
@ -1 +0,0 @@
|
||||||
# see floor.s
|
|
||||||
52
lib/libc/musl/src/math/i386/floor.s
vendored
52
lib/libc/musl/src/math/i386/floor.s
vendored
|
|
@ -1,52 +0,0 @@
|
||||||
/* zig patch: removed `floorl` and `floorf` in favor of using zig compiler_rt's implementations */
|
|
||||||
|
|
||||||
1: fstcw 4(%esp)
|
|
||||||
mov 5(%esp),%ah
|
|
||||||
mov %al,5(%esp)
|
|
||||||
fldcw 4(%esp)
|
|
||||||
frndint
|
|
||||||
mov %ah,5(%esp)
|
|
||||||
fldcw 4(%esp)
|
|
||||||
ret
|
|
||||||
|
|
||||||
.global ceil
|
|
||||||
.type ceil,@function
|
|
||||||
ceil:
|
|
||||||
fldl 4(%esp)
|
|
||||||
mov $0xb,%al
|
|
||||||
jmp 1b
|
|
||||||
|
|
||||||
.global ceilf
|
|
||||||
.type ceilf,@function
|
|
||||||
ceilf:
|
|
||||||
flds 4(%esp)
|
|
||||||
mov $0xb,%al
|
|
||||||
jmp 1b
|
|
||||||
|
|
||||||
.global ceill
|
|
||||||
.type ceill,@function
|
|
||||||
ceill:
|
|
||||||
fldt 4(%esp)
|
|
||||||
mov $0xb,%al
|
|
||||||
jmp 1b
|
|
||||||
|
|
||||||
.global trunc
|
|
||||||
.type trunc,@function
|
|
||||||
trunc:
|
|
||||||
fldl 4(%esp)
|
|
||||||
mov $0xf,%al
|
|
||||||
jmp 1b
|
|
||||||
|
|
||||||
.global truncf
|
|
||||||
.type truncf,@function
|
|
||||||
truncf:
|
|
||||||
flds 4(%esp)
|
|
||||||
mov $0xf,%al
|
|
||||||
jmp 1b
|
|
||||||
|
|
||||||
.global truncl
|
|
||||||
.type truncl,@function
|
|
||||||
truncl:
|
|
||||||
fldt 4(%esp)
|
|
||||||
mov $0xf,%al
|
|
||||||
jmp 1b
|
|
||||||
1
lib/libc/musl/src/math/i386/trunc.s
vendored
1
lib/libc/musl/src/math/i386/trunc.s
vendored
|
|
@ -1 +0,0 @@
|
||||||
# see floor.s
|
|
||||||
1
lib/libc/musl/src/math/i386/truncf.s
vendored
1
lib/libc/musl/src/math/i386/truncf.s
vendored
|
|
@ -1 +0,0 @@
|
||||||
# see floor.s
|
|
||||||
1
lib/libc/musl/src/math/i386/truncl.s
vendored
1
lib/libc/musl/src/math/i386/truncl.s
vendored
|
|
@ -1 +0,0 @@
|
||||||
# see floor.s
|
|
||||||
15
lib/libc/musl/src/math/powerpc64/ceil.c
vendored
15
lib/libc/musl/src/math/powerpc64/ceil.c
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#ifdef _ARCH_PWR5X
|
|
||||||
|
|
||||||
double ceil(double x)
|
|
||||||
{
|
|
||||||
__asm__ ("frip %0, %1" : "=d"(x) : "d"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "../ceil.c"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
lib/libc/musl/src/math/powerpc64/ceilf.c
vendored
15
lib/libc/musl/src/math/powerpc64/ceilf.c
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#ifdef _ARCH_PWR5X
|
|
||||||
|
|
||||||
float ceilf(float x)
|
|
||||||
{
|
|
||||||
__asm__ ("frip %0, %1" : "=f"(x) : "f"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "../ceilf.c"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
lib/libc/musl/src/math/powerpc64/trunc.c
vendored
15
lib/libc/musl/src/math/powerpc64/trunc.c
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#ifdef _ARCH_PWR5X
|
|
||||||
|
|
||||||
double trunc(double x)
|
|
||||||
{
|
|
||||||
__asm__ ("friz %0, %1" : "=d"(x) : "d"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "../trunc.c"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
lib/libc/musl/src/math/powerpc64/truncf.c
vendored
15
lib/libc/musl/src/math/powerpc64/truncf.c
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#ifdef _ARCH_PWR5X
|
|
||||||
|
|
||||||
float truncf(float x)
|
|
||||||
{
|
|
||||||
__asm__ ("friz %0, %1" : "=f"(x) : "f"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "../truncf.c"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
lib/libc/musl/src/math/s390x/ceil.c
vendored
15
lib/libc/musl/src/math/s390x/ceil.c
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#if defined(__HTM__) || __ARCH__ >= 9
|
|
||||||
|
|
||||||
double ceil(double x)
|
|
||||||
{
|
|
||||||
__asm__ ("fidbra %0, 6, %1, 4" : "=f"(x) : "f"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "../ceil.c"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
lib/libc/musl/src/math/s390x/ceilf.c
vendored
15
lib/libc/musl/src/math/s390x/ceilf.c
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#if defined(__HTM__) || __ARCH__ >= 9
|
|
||||||
|
|
||||||
float ceilf(float x)
|
|
||||||
{
|
|
||||||
__asm__ ("fiebra %0, 6, %1, 4" : "=f"(x) : "f"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "../ceilf.c"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
lib/libc/musl/src/math/s390x/ceill.c
vendored
15
lib/libc/musl/src/math/s390x/ceill.c
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#if defined(__HTM__) || __ARCH__ >= 9
|
|
||||||
|
|
||||||
long double ceill(long double x)
|
|
||||||
{
|
|
||||||
__asm__ ("fixbra %0, 6, %1, 4" : "=f"(x) : "f"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "../ceill.c"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
lib/libc/musl/src/math/s390x/trunc.c
vendored
15
lib/libc/musl/src/math/s390x/trunc.c
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#if defined(__HTM__) || __ARCH__ >= 9
|
|
||||||
|
|
||||||
double trunc(double x)
|
|
||||||
{
|
|
||||||
__asm__ ("fidbra %0, 5, %1, 4" : "=f"(x) : "f"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "../trunc.c"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
lib/libc/musl/src/math/s390x/truncf.c
vendored
15
lib/libc/musl/src/math/s390x/truncf.c
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#if defined(__HTM__) || __ARCH__ >= 9
|
|
||||||
|
|
||||||
float truncf(float x)
|
|
||||||
{
|
|
||||||
__asm__ ("fiebra %0, 5, %1, 4" : "=f"(x) : "f"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "../truncf.c"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
lib/libc/musl/src/math/s390x/truncl.c
vendored
15
lib/libc/musl/src/math/s390x/truncl.c
vendored
|
|
@ -1,15 +0,0 @@
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#if defined(__HTM__) || __ARCH__ >= 9
|
|
||||||
|
|
||||||
long double truncl(long double x)
|
|
||||||
{
|
|
||||||
__asm__ ("fixbra %0, 5, %1, 4" : "=f"(x) : "f"(x));
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include "../truncl.c"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
19
lib/libc/musl/src/math/trunc.c
vendored
19
lib/libc/musl/src/math/trunc.c
vendored
|
|
@ -1,19 +0,0 @@
|
||||||
#include "libm.h"
|
|
||||||
|
|
||||||
double trunc(double x)
|
|
||||||
{
|
|
||||||
union {double f; uint64_t i;} u = {x};
|
|
||||||
int e = (int)(u.i >> 52 & 0x7ff) - 0x3ff + 12;
|
|
||||||
uint64_t m;
|
|
||||||
|
|
||||||
if (e >= 52 + 12)
|
|
||||||
return x;
|
|
||||||
if (e < 12)
|
|
||||||
e = 1;
|
|
||||||
m = -1ULL >> e;
|
|
||||||
if ((u.i & m) == 0)
|
|
||||||
return x;
|
|
||||||
FORCE_EVAL(x + 0x1p120f);
|
|
||||||
u.i &= ~m;
|
|
||||||
return u.f;
|
|
||||||
}
|
|
||||||
19
lib/libc/musl/src/math/truncf.c
vendored
19
lib/libc/musl/src/math/truncf.c
vendored
|
|
@ -1,19 +0,0 @@
|
||||||
#include "libm.h"
|
|
||||||
|
|
||||||
float truncf(float x)
|
|
||||||
{
|
|
||||||
union {float f; uint32_t i;} u = {x};
|
|
||||||
int e = (int)(u.i >> 23 & 0xff) - 0x7f + 9;
|
|
||||||
uint32_t m;
|
|
||||||
|
|
||||||
if (e >= 23 + 9)
|
|
||||||
return x;
|
|
||||||
if (e < 9)
|
|
||||||
e = 1;
|
|
||||||
m = -1U >> e;
|
|
||||||
if ((u.i & m) == 0)
|
|
||||||
return x;
|
|
||||||
FORCE_EVAL(x + 0x1p120f);
|
|
||||||
u.i &= ~m;
|
|
||||||
return u.f;
|
|
||||||
}
|
|
||||||
34
lib/libc/musl/src/math/truncl.c
vendored
34
lib/libc/musl/src/math/truncl.c
vendored
|
|
@ -1,34 +0,0 @@
|
||||||
#include "libm.h"
|
|
||||||
|
|
||||||
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
|
|
||||||
long double truncl(long double x)
|
|
||||||
{
|
|
||||||
return trunc(x);
|
|
||||||
}
|
|
||||||
#elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
|
|
||||||
|
|
||||||
static const long double toint = 1/LDBL_EPSILON;
|
|
||||||
|
|
||||||
long double truncl(long double x)
|
|
||||||
{
|
|
||||||
union ldshape u = {x};
|
|
||||||
int e = u.i.se & 0x7fff;
|
|
||||||
int s = u.i.se >> 15;
|
|
||||||
long double y;
|
|
||||||
|
|
||||||
if (e >= 0x3fff+LDBL_MANT_DIG-1)
|
|
||||||
return x;
|
|
||||||
if (e <= 0x3fff-1) {
|
|
||||||
FORCE_EVAL(x + 0x1p120f);
|
|
||||||
return x*0;
|
|
||||||
}
|
|
||||||
/* y = int(|x|) - |x|, where int(|x|) is an integer neighbor of |x| */
|
|
||||||
if (s)
|
|
||||||
x = -x;
|
|
||||||
y = x + toint - toint - x;
|
|
||||||
if (y > 0)
|
|
||||||
y -= 1;
|
|
||||||
x += y;
|
|
||||||
return s ? -x : x;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
1
lib/libc/musl/src/math/x32/ceill.s
vendored
1
lib/libc/musl/src/math/x32/ceill.s
vendored
|
|
@ -1 +0,0 @@
|
||||||
# see floorl.s
|
|
||||||
27
lib/libc/musl/src/math/x32/floorl.s
vendored
27
lib/libc/musl/src/math/x32/floorl.s
vendored
|
|
@ -1,27 +0,0 @@
|
||||||
.global floorl
|
|
||||||
.type floorl,@function
|
|
||||||
floorl:
|
|
||||||
fldt 8(%esp)
|
|
||||||
1: mov $0x7,%al
|
|
||||||
1: fstcw 8(%esp)
|
|
||||||
mov 9(%esp),%ah
|
|
||||||
mov %al,9(%esp)
|
|
||||||
fldcw 8(%esp)
|
|
||||||
frndint
|
|
||||||
mov %ah,9(%esp)
|
|
||||||
fldcw 8(%esp)
|
|
||||||
ret
|
|
||||||
|
|
||||||
.global ceill
|
|
||||||
.type ceill,@function
|
|
||||||
ceill:
|
|
||||||
fldt 8(%esp)
|
|
||||||
mov $0xb,%al
|
|
||||||
jmp 1b
|
|
||||||
|
|
||||||
.global truncl
|
|
||||||
.type truncl,@function
|
|
||||||
truncl:
|
|
||||||
fldt 8(%esp)
|
|
||||||
mov $0xf,%al
|
|
||||||
jmp 1b
|
|
||||||
1
lib/libc/musl/src/math/x32/truncl.s
vendored
1
lib/libc/musl/src/math/x32/truncl.s
vendored
|
|
@ -1 +0,0 @@
|
||||||
# see floorl.s
|
|
||||||
1
lib/libc/musl/src/math/x86_64/ceill.s
vendored
1
lib/libc/musl/src/math/x86_64/ceill.s
vendored
|
|
@ -1 +0,0 @@
|
||||||
# see floorl.s
|
|
||||||
27
lib/libc/musl/src/math/x86_64/floorl.s
vendored
27
lib/libc/musl/src/math/x86_64/floorl.s
vendored
|
|
@ -1,27 +0,0 @@
|
||||||
.global floorl
|
|
||||||
.type floorl,@function
|
|
||||||
floorl:
|
|
||||||
fldt 8(%rsp)
|
|
||||||
1: mov $0x7,%al
|
|
||||||
1: fstcw 8(%rsp)
|
|
||||||
mov 9(%rsp),%ah
|
|
||||||
mov %al,9(%rsp)
|
|
||||||
fldcw 8(%rsp)
|
|
||||||
frndint
|
|
||||||
mov %ah,9(%rsp)
|
|
||||||
fldcw 8(%rsp)
|
|
||||||
ret
|
|
||||||
|
|
||||||
.global ceill
|
|
||||||
.type ceill,@function
|
|
||||||
ceill:
|
|
||||||
fldt 8(%rsp)
|
|
||||||
mov $0xb,%al
|
|
||||||
jmp 1b
|
|
||||||
|
|
||||||
.global truncl
|
|
||||||
.type truncl,@function
|
|
||||||
truncl:
|
|
||||||
fldt 8(%rsp)
|
|
||||||
mov $0xf,%al
|
|
||||||
jmp 1b
|
|
||||||
1
lib/libc/musl/src/math/x86_64/truncl.s
vendored
1
lib/libc/musl/src/math/x86_64/truncl.s
vendored
|
|
@ -1 +0,0 @@
|
||||||
# see floorl.s
|
|
||||||
|
|
@ -911,7 +911,6 @@ const mingw32_x86_src = [_][]const u8{
|
||||||
"math" ++ path.sep_str ++ "rintl.c",
|
"math" ++ path.sep_str ++ "rintl.c",
|
||||||
"math" ++ path.sep_str ++ "roundl.c",
|
"math" ++ path.sep_str ++ "roundl.c",
|
||||||
"math" ++ path.sep_str ++ "tgammal.c",
|
"math" ++ path.sep_str ++ "tgammal.c",
|
||||||
"math" ++ path.sep_str ++ "truncl.c",
|
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "_chgsignl.S",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "_chgsignl.S",
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "acoshl.c",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "acoshl.c",
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "acosl.c",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "acosl.c",
|
||||||
|
|
@ -920,7 +919,6 @@ const mingw32_x86_src = [_][]const u8{
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atan2l.c",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atan2l.c",
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanhl.c",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanhl.c",
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanl.c",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanl.c",
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "ceill.S",
|
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "copysignl.S",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "copysignl.S",
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl.c",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl.c",
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl_internal.S",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl_internal.S",
|
||||||
|
|
@ -970,7 +968,6 @@ const mingw32_x86_32_src = [_][]const u8{
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "asinf.c",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "asinf.c",
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atan2f.c",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atan2f.c",
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanf.c",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanf.c",
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "ceilf.S",
|
|
||||||
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "fmodf.c",
|
"math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "fmodf.c",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -831,8 +831,6 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/malloc/reallocarray.c",
|
"musl/src/malloc/reallocarray.c",
|
||||||
"musl/src/malloc/realloc.c",
|
"musl/src/malloc/realloc.c",
|
||||||
"musl/src/malloc/replaced.c",
|
"musl/src/malloc/replaced.c",
|
||||||
"musl/src/math/aarch64/ceil.c",
|
|
||||||
"musl/src/math/aarch64/ceilf.c",
|
|
||||||
"musl/src/math/aarch64/fma.c",
|
"musl/src/math/aarch64/fma.c",
|
||||||
"musl/src/math/aarch64/fmaf.c",
|
"musl/src/math/aarch64/fmaf.c",
|
||||||
"musl/src/math/aarch64/fmax.c",
|
"musl/src/math/aarch64/fmax.c",
|
||||||
|
|
@ -855,8 +853,6 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/aarch64/roundf.c",
|
"musl/src/math/aarch64/roundf.c",
|
||||||
"musl/src/math/aarch64/sqrt.c",
|
"musl/src/math/aarch64/sqrt.c",
|
||||||
"musl/src/math/aarch64/sqrtf.c",
|
"musl/src/math/aarch64/sqrtf.c",
|
||||||
"musl/src/math/aarch64/trunc.c",
|
|
||||||
"musl/src/math/aarch64/truncf.c",
|
|
||||||
"musl/src/math/acos.c",
|
"musl/src/math/acos.c",
|
||||||
"musl/src/math/acosf.c",
|
"musl/src/math/acosf.c",
|
||||||
"musl/src/math/acosh.c",
|
"musl/src/math/acosh.c",
|
||||||
|
|
@ -885,9 +881,6 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/cbrt.c",
|
"musl/src/math/cbrt.c",
|
||||||
"musl/src/math/cbrtf.c",
|
"musl/src/math/cbrtf.c",
|
||||||
"musl/src/math/cbrtl.c",
|
"musl/src/math/cbrtl.c",
|
||||||
"musl/src/math/ceil.c",
|
|
||||||
"musl/src/math/ceilf.c",
|
|
||||||
"musl/src/math/ceill.c",
|
|
||||||
"musl/src/math/copysign.c",
|
"musl/src/math/copysign.c",
|
||||||
"musl/src/math/copysignf.c",
|
"musl/src/math/copysignf.c",
|
||||||
"musl/src/math/copysignl.c",
|
"musl/src/math/copysignl.c",
|
||||||
|
|
@ -955,14 +948,10 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/i386/atanf.s",
|
"musl/src/math/i386/atanf.s",
|
||||||
"musl/src/math/i386/atanl.s",
|
"musl/src/math/i386/atanl.s",
|
||||||
"musl/src/math/i386/atan.s",
|
"musl/src/math/i386/atan.s",
|
||||||
"musl/src/math/i386/ceilf.s",
|
|
||||||
"musl/src/math/i386/ceill.s",
|
|
||||||
"musl/src/math/i386/ceil.s",
|
|
||||||
"musl/src/math/i386/exp2l.s",
|
"musl/src/math/i386/exp2l.s",
|
||||||
"musl/src/math/i386/exp_ld.s",
|
"musl/src/math/i386/exp_ld.s",
|
||||||
"musl/src/math/i386/expl.s",
|
"musl/src/math/i386/expl.s",
|
||||||
"musl/src/math/i386/expm1l.s",
|
"musl/src/math/i386/expm1l.s",
|
||||||
"musl/src/math/i386/floor.s",
|
|
||||||
"musl/src/math/i386/fmod.c",
|
"musl/src/math/i386/fmod.c",
|
||||||
"musl/src/math/i386/fmodf.c",
|
"musl/src/math/i386/fmodf.c",
|
||||||
"musl/src/math/i386/fmodl.c",
|
"musl/src/math/i386/fmodl.c",
|
||||||
|
|
@ -1008,9 +997,6 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/i386/sqrt.c",
|
"musl/src/math/i386/sqrt.c",
|
||||||
"musl/src/math/i386/sqrtf.c",
|
"musl/src/math/i386/sqrtf.c",
|
||||||
"musl/src/math/i386/sqrtl.c",
|
"musl/src/math/i386/sqrtl.c",
|
||||||
"musl/src/math/i386/truncf.s",
|
|
||||||
"musl/src/math/i386/truncl.s",
|
|
||||||
"musl/src/math/i386/trunc.s",
|
|
||||||
"musl/src/math/ilogb.c",
|
"musl/src/math/ilogb.c",
|
||||||
"musl/src/math/ilogbf.c",
|
"musl/src/math/ilogbf.c",
|
||||||
"musl/src/math/ilogbl.c",
|
"musl/src/math/ilogbl.c",
|
||||||
|
|
@ -1092,8 +1078,6 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/__polevll.c",
|
"musl/src/math/__polevll.c",
|
||||||
"musl/src/math/pow.c",
|
"musl/src/math/pow.c",
|
||||||
"musl/src/math/pow_data.c",
|
"musl/src/math/pow_data.c",
|
||||||
"musl/src/math/powerpc64/ceil.c",
|
|
||||||
"musl/src/math/powerpc64/ceilf.c",
|
|
||||||
"musl/src/math/powerpc64/fma.c",
|
"musl/src/math/powerpc64/fma.c",
|
||||||
"musl/src/math/powerpc64/fmaf.c",
|
"musl/src/math/powerpc64/fmaf.c",
|
||||||
"musl/src/math/powerpc64/fmax.c",
|
"musl/src/math/powerpc64/fmax.c",
|
||||||
|
|
@ -1108,8 +1092,6 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/powerpc64/roundf.c",
|
"musl/src/math/powerpc64/roundf.c",
|
||||||
"musl/src/math/powerpc64/sqrt.c",
|
"musl/src/math/powerpc64/sqrt.c",
|
||||||
"musl/src/math/powerpc64/sqrtf.c",
|
"musl/src/math/powerpc64/sqrtf.c",
|
||||||
"musl/src/math/powerpc64/trunc.c",
|
|
||||||
"musl/src/math/powerpc64/truncf.c",
|
|
||||||
"musl/src/math/powerpc/fma.c",
|
"musl/src/math/powerpc/fma.c",
|
||||||
"musl/src/math/powerpc/fmaf.c",
|
"musl/src/math/powerpc/fmaf.c",
|
||||||
"musl/src/math/powerpc/sqrt.c",
|
"musl/src/math/powerpc/sqrt.c",
|
||||||
|
|
@ -1153,9 +1135,6 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/round.c",
|
"musl/src/math/round.c",
|
||||||
"musl/src/math/roundf.c",
|
"musl/src/math/roundf.c",
|
||||||
"musl/src/math/roundl.c",
|
"musl/src/math/roundl.c",
|
||||||
"musl/src/math/s390x/ceil.c",
|
|
||||||
"musl/src/math/s390x/ceilf.c",
|
|
||||||
"musl/src/math/s390x/ceill.c",
|
|
||||||
"musl/src/math/s390x/fma.c",
|
"musl/src/math/s390x/fma.c",
|
||||||
"musl/src/math/s390x/fmaf.c",
|
"musl/src/math/s390x/fmaf.c",
|
||||||
"musl/src/math/s390x/nearbyint.c",
|
"musl/src/math/s390x/nearbyint.c",
|
||||||
|
|
@ -1170,9 +1149,6 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/s390x/sqrt.c",
|
"musl/src/math/s390x/sqrt.c",
|
||||||
"musl/src/math/s390x/sqrtf.c",
|
"musl/src/math/s390x/sqrtf.c",
|
||||||
"musl/src/math/s390x/sqrtl.c",
|
"musl/src/math/s390x/sqrtl.c",
|
||||||
"musl/src/math/s390x/trunc.c",
|
|
||||||
"musl/src/math/s390x/truncf.c",
|
|
||||||
"musl/src/math/s390x/truncl.c",
|
|
||||||
"musl/src/math/scalb.c",
|
"musl/src/math/scalb.c",
|
||||||
"musl/src/math/scalbf.c",
|
"musl/src/math/scalbf.c",
|
||||||
"musl/src/math/scalbln.c",
|
"musl/src/math/scalbln.c",
|
||||||
|
|
@ -1209,18 +1185,13 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/tgamma.c",
|
"musl/src/math/tgamma.c",
|
||||||
"musl/src/math/tgammaf.c",
|
"musl/src/math/tgammaf.c",
|
||||||
"musl/src/math/tgammal.c",
|
"musl/src/math/tgammal.c",
|
||||||
"musl/src/math/trunc.c",
|
|
||||||
"musl/src/math/truncf.c",
|
|
||||||
"musl/src/math/truncl.c",
|
|
||||||
"musl/src/math/x32/acosl.s",
|
"musl/src/math/x32/acosl.s",
|
||||||
"musl/src/math/x32/asinl.s",
|
"musl/src/math/x32/asinl.s",
|
||||||
"musl/src/math/x32/atan2l.s",
|
"musl/src/math/x32/atan2l.s",
|
||||||
"musl/src/math/x32/atanl.s",
|
"musl/src/math/x32/atanl.s",
|
||||||
"musl/src/math/x32/ceill.s",
|
|
||||||
"musl/src/math/x32/exp2l.s",
|
"musl/src/math/x32/exp2l.s",
|
||||||
"musl/src/math/x32/expl.s",
|
"musl/src/math/x32/expl.s",
|
||||||
"musl/src/math/x32/expm1l.s",
|
"musl/src/math/x32/expm1l.s",
|
||||||
"musl/src/math/x32/floorl.s",
|
|
||||||
"musl/src/math/x32/fma.c",
|
"musl/src/math/x32/fma.c",
|
||||||
"musl/src/math/x32/fmaf.c",
|
"musl/src/math/x32/fmaf.c",
|
||||||
"musl/src/math/x32/fmodl.s",
|
"musl/src/math/x32/fmodl.s",
|
||||||
|
|
@ -1240,16 +1211,13 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/x32/sqrtf.s",
|
"musl/src/math/x32/sqrtf.s",
|
||||||
"musl/src/math/x32/sqrtl.s",
|
"musl/src/math/x32/sqrtl.s",
|
||||||
"musl/src/math/x32/sqrt.s",
|
"musl/src/math/x32/sqrt.s",
|
||||||
"musl/src/math/x32/truncl.s",
|
|
||||||
"musl/src/math/x86_64/acosl.s",
|
"musl/src/math/x86_64/acosl.s",
|
||||||
"musl/src/math/x86_64/asinl.s",
|
"musl/src/math/x86_64/asinl.s",
|
||||||
"musl/src/math/x86_64/atan2l.s",
|
"musl/src/math/x86_64/atan2l.s",
|
||||||
"musl/src/math/x86_64/atanl.s",
|
"musl/src/math/x86_64/atanl.s",
|
||||||
"musl/src/math/x86_64/ceill.s",
|
|
||||||
"musl/src/math/x86_64/exp2l.s",
|
"musl/src/math/x86_64/exp2l.s",
|
||||||
"musl/src/math/x86_64/expl.s",
|
"musl/src/math/x86_64/expl.s",
|
||||||
"musl/src/math/x86_64/expm1l.s",
|
"musl/src/math/x86_64/expm1l.s",
|
||||||
"musl/src/math/x86_64/floorl.s",
|
|
||||||
"musl/src/math/x86_64/fma.c",
|
"musl/src/math/x86_64/fma.c",
|
||||||
"musl/src/math/x86_64/fmaf.c",
|
"musl/src/math/x86_64/fmaf.c",
|
||||||
"musl/src/math/x86_64/fmodl.c",
|
"musl/src/math/x86_64/fmodl.c",
|
||||||
|
|
@ -1270,7 +1238,6 @@ const src_files = [_][]const u8{
|
||||||
"musl/src/math/x86_64/sqrt.c",
|
"musl/src/math/x86_64/sqrt.c",
|
||||||
"musl/src/math/x86_64/sqrtf.c",
|
"musl/src/math/x86_64/sqrtf.c",
|
||||||
"musl/src/math/x86_64/sqrtl.c",
|
"musl/src/math/x86_64/sqrtl.c",
|
||||||
"musl/src/math/x86_64/truncl.s",
|
|
||||||
"musl/src/misc/a64l.c",
|
"musl/src/misc/a64l.c",
|
||||||
"musl/src/misc/basename.c",
|
"musl/src/misc/basename.c",
|
||||||
"musl/src/misc/dirname.c",
|
"musl/src/misc/dirname.c",
|
||||||
|
|
|
||||||
|
|
@ -727,7 +727,6 @@ const libc_top_half_src_files = [_][]const u8{
|
||||||
"musl/src/math/cbrt.c",
|
"musl/src/math/cbrt.c",
|
||||||
"musl/src/math/cbrtf.c",
|
"musl/src/math/cbrtf.c",
|
||||||
"musl/src/math/cbrtl.c",
|
"musl/src/math/cbrtl.c",
|
||||||
"musl/src/math/ceill.c",
|
|
||||||
"musl/src/math/copysignl.c",
|
"musl/src/math/copysignl.c",
|
||||||
"musl/src/math/__cos.c",
|
"musl/src/math/__cos.c",
|
||||||
"musl/src/math/__cosdf.c",
|
"musl/src/math/__cosdf.c",
|
||||||
|
|
@ -887,7 +886,6 @@ const libc_top_half_src_files = [_][]const u8{
|
||||||
"musl/src/math/tgamma.c",
|
"musl/src/math/tgamma.c",
|
||||||
"musl/src/math/tgammaf.c",
|
"musl/src/math/tgammaf.c",
|
||||||
"musl/src/math/tgammal.c",
|
"musl/src/math/tgammal.c",
|
||||||
"musl/src/math/truncl.c",
|
|
||||||
"musl/src/misc/a64l.c",
|
"musl/src/misc/a64l.c",
|
||||||
"musl/src/misc/basename.c",
|
"musl/src/misc/basename.c",
|
||||||
"musl/src/misc/dirname.c",
|
"musl/src/misc/dirname.c",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue