authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-29 00:25:23+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2025-08-29 00:25:23+02:00
log5cb8cdef1026f0b5d1c18cc5d5e6525cddf65d67
treedadb99eef16a6c444276d4ff8915b17847c74064
parent224fca7e0e1cfe1bf27178ecb4e53d4f88fb9abf
parent70e22d79a4d7aedcc76a00f123837d387545c3c6
signaturebadge-check Signed by PGP key B5690EEEBB952194

Merge pull request #25045 from kada49/libc/common-impl-ceil

libc: delete some superfluous libc c implementations

39 files changed, 0 insertions(+), 687 deletions(-)

lib/libc/mingw/math/truncl.c deleted-25
......@@ -1,25 +0,0 @@
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7#include <math.h>
8
9long double
10truncl (long double _x)
11{
12#if __SIZEOF_LONG_DOUBLE__ == __SIZEOF_DOUBLE__
13 return trunc(_x);
14#else
15 long double retval = 0.0L;
16 unsigned short saved_cw;
17 unsigned short tmp_cw;
18 __asm__ __volatile__ ("fnstcw %0;" : "=m" (saved_cw)); /* save FPU control word */
19 tmp_cw = saved_cw | 0xc00; /* round towards zero */
20 __asm__ __volatile__ ("fldcw %0;" : : "m" (tmp_cw));
21 __asm__ __volatile__ ("frndint;" : "=t" (retval) : "0" (_x)); /* round towards zero */
22 __asm__ __volatile__ ("fldcw %0;" : : "m" (saved_cw) ); /* restore saved control word */
23 return retval;
24#endif /* defined(_ARM_) || defined(__arm__) || defined(_ARM64_) || defined(__aarch64__) */
25}
lib/libc/mingw/math/x86/ceilf.S deleted-111
......@@ -1,111 +0,0 @@
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#include <_mingw_mac.h>
7
8 .file "ceilf.S"
9 .text
10 .align 4
11 .globl __MINGW_USYMBOL(ceilf)
12 .def __MINGW_USYMBOL(ceilf); .scl 2; .type 32; .endef
13#ifdef __x86_64__
14 .seh_proc __MINGW_USYMBOL(ceilf)
15#endif
16
17__MINGW_USYMBOL(ceilf):
18#if defined(_AMD64_) || defined(__x86_64__)
19 subq $24, %rsp
20 .seh_stackalloc 24
21 .seh_endprologue
22 movd %xmm0, 12(%rsp)
23 movl 12(%rsp), %eax
24 movl %eax, %ecx
25 movl %eax, %edx
26 sarl $23, %ecx
27 andl $255, %ecx
28 subl $127, %ecx
29 cmpl $22, %ecx
30 jg .l4
31 testl %ecx, %ecx
32 js .l5
33 movl $8388607, %r8d
34 sarl %cl, %r8d
35 testl %eax, %r8d
36 je .l3
37 addss .hugeval(%rip), %xmm0
38 ucomiss .zeroval(%rip), %xmm0
39 jbe .l2
40 testl %eax, %eax
41 jle .l1
42 movl $8388608, %eax
43 sarl %cl, %eax
44 addl %eax, %edx
45.l1:
46 movl %r8d, %eax
47 notl %eax
48 andl %edx, %eax
49.l2:
50 movl %eax, 8(%rsp)
51 movss 8(%rsp), %xmm0
52.l3:
53 addq $24, %rsp
54 ret
55 .p2align 4,,10
56.l4:
57 addl $-128, %ecx
58 jne .l3
59 addss %xmm0, %xmm0
60 addq $24, %rsp
61 ret
62 .p2align 4,,10
63.l5:
64 addss .hugeval(%rip), %xmm0
65 ucomiss .zeroval(%rip), %xmm0
66 jbe .islesseqzero
67 testl %eax, %eax
68 js .l6
69 movl $1065353216, %edx
70 cmovne %edx, %eax
71.islesseqzero:
72 movl %eax, 8(%rsp)
73 movss 8(%rsp), %xmm0
74 addq $24, %rsp
75 ret
76 .p2align 4,,10
77.l6:
78 movl $-2147483648, 8(%rsp)
79 movss 8(%rsp), %xmm0
80 addq $24, %rsp
81 ret
82 .seh_endproc
83 .section .rdata,"dr"
84 .align 4
85.hugeval:
86 .long 1900671690
87 .align 4
88.zeroval:
89 .long 0
90#elif defined(_X86_) || defined(__i386__)
91 flds 4(%esp)
92 subl $8,%esp
93
94 fstcw 4(%esp) /* store fpu control word */
95
96 /* We use here %edx although only the low 1 bits are defined.
97 But none of the operations should care and they are faster
98 than the 16 bit operations. */
99 movl $0x0800,%edx /* round towards +oo */
100 orl 4(%esp),%edx
101 andl $0xfbff,%edx
102 movl %edx,(%esp)
103 fldcw (%esp) /* load modified control word */
104
105 frndint /* round */
106
107 fldcw 4(%esp) /* restore original control word */
108
109 addl $8,%esp
110 ret
111#endif
lib/libc/mingw/math/x86/ceill.S deleted-55
......@@ -1,55 +0,0 @@
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#include <_mingw_mac.h>
7
8 .file "ceill.S"
9 .text
10#ifdef __x86_64__
11 .align 8
12#else
13 .align 4
14#endif
15 .globl __MINGW_USYMBOL(ceill)
16 .def __MINGW_USYMBOL(ceill); .scl 2; .type 32; .endef
17__MINGW_USYMBOL(ceill):
18#if defined(_AMD64_) || defined(__x86_64__)
19 fldt (%rdx)
20 subq $24,%rsp
21
22 fstcw 8(%rsp) /* store fpu control word */
23
24 /* We use here %edx although only the low 1 bits are defined.
25 But none of the operations should care and they are faster
26 than the 16 bit operations. */
27 movl $0x0800,%edx /* round towards +oo */
28 orl 8(%rsp),%edx
29 andl $0xfbff,%edx
30 movl %edx,(%rsp)
31 fldcw (%rsp) /* load modified control word */
32
33 frndint /* round */
34
35 fldcw 8(%rsp) /* restore original control word */
36
37 addq $24,%rsp
38 movq %rcx,%rax
39 movq $0,8(%rcx)
40 fstpt (%rcx)
41 ret
42#elif defined(_X86_) || defined(__i386__)
43 fldt 4(%esp)
44 subl $8,%esp
45 fstcw 4(%esp)
46 movl $0x0800,%edx
47 orl 4(%esp),%edx
48 andl $0xfbff,%edx
49 movl %edx,(%esp)
50 fldcw (%esp)
51 frndint
52 fldcw 4(%esp)
53 addl $8,%esp
54 ret
55#endif
lib/libc/musl/src/math/aarch64/ceil.c deleted-7
......@@ -1,7 +0,0 @@
1#include <math.h>
2
3double ceil(double x)
4{
5 __asm__ ("frintp %d0, %d1" : "=w"(x) : "w"(x));
6 return x;
7}
lib/libc/musl/src/math/aarch64/ceilf.c deleted-7
......@@ -1,7 +0,0 @@
1#include <math.h>
2
3float ceilf(float x)
4{
5 __asm__ ("frintp %s0, %s1" : "=w"(x) : "w"(x));
6 return x;
7}
lib/libc/musl/src/math/aarch64/trunc.c deleted-7
......@@ -1,7 +0,0 @@
1#include <math.h>
2
3double trunc(double x)
4{
5 __asm__ ("frintz %d0, %d1" : "=w"(x) : "w"(x));
6 return x;
7}
lib/libc/musl/src/math/aarch64/truncf.c deleted-7
......@@ -1,7 +0,0 @@
1#include <math.h>
2
3float truncf(float x)
4{
5 __asm__ ("frintz %s0, %s1" : "=w"(x) : "w"(x));
6 return x;
7}
lib/libc/musl/src/math/ceil.c deleted-31
......@@ -1,31 +0,0 @@
1#include "libm.h"
2
3#if FLT_EVAL_METHOD==0 || FLT_EVAL_METHOD==1
4#define EPS DBL_EPSILON
5#elif FLT_EVAL_METHOD==2
6#define EPS LDBL_EPSILON
7#endif
8static const double_t toint = 1/EPS;
9
10double ceil(double x)
11{
12 union {double f; uint64_t i;} u = {x};
13 int e = u.i >> 52 & 0x7ff;
14 double_t y;
15
16 if (e >= 0x3ff+52 || x == 0)
17 return x;
18 /* y = int(x) - x, where int(x) is an integer neighbor of x */
19 if (u.i >> 63)
20 y = x - toint + toint - x;
21 else
22 y = x + toint - toint - x;
23 /* special case because of non-nearest rounding modes */
24 if (e <= 0x3ff-1) {
25 FORCE_EVAL(y);
26 return u.i >> 63 ? -0.0 : 1;
27 }
28 if (y < 0)
29 return x + y + 1;
30 return x + y;
31}
lib/libc/musl/src/math/ceilf.c deleted-27
......@@ -1,27 +0,0 @@
1#include "libm.h"
2
3float ceilf(float x)
4{
5 union {float f; uint32_t i;} u = {x};
6 int e = (int)(u.i >> 23 & 0xff) - 0x7f;
7 uint32_t m;
8
9 if (e >= 23)
10 return x;
11 if (e >= 0) {
12 m = 0x007fffff >> e;
13 if ((u.i & m) == 0)
14 return x;
15 FORCE_EVAL(x + 0x1p120f);
16 if (u.i >> 31 == 0)
17 u.i += m;
18 u.i &= ~m;
19 } else {
20 FORCE_EVAL(x + 0x1p120f);
21 if (u.i >> 31)
22 u.f = -0.0;
23 else if (u.i << 1)
24 u.f = 1.0;
25 }
26 return u.f;
27}
lib/libc/musl/src/math/ceill.c deleted-34
......@@ -1,34 +0,0 @@
1#include "libm.h"
2
3#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
4long double ceill(long double x)
5{
6 return ceil(x);
7}
8#elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
9
10static const long double toint = 1/LDBL_EPSILON;
11
12long double ceill(long double x)
13{
14 union ldshape u = {x};
15 int e = u.i.se & 0x7fff;
16 long double y;
17
18 if (e >= 0x3fff+LDBL_MANT_DIG-1 || x == 0)
19 return x;
20 /* y = int(x) - x, where int(x) is an integer neighbor of x */
21 if (u.i.se >> 15)
22 y = x - toint + toint - x;
23 else
24 y = x + toint - toint - x;
25 /* special case because of non-nearest rounding modes */
26 if (e <= 0x3fff-1) {
27 FORCE_EVAL(y);
28 return u.i.se >> 15 ? -0.0 : 1;
29 }
30 if (y < 0)
31 return x + y + 1;
32 return x + y;
33}
34#endif
lib/libc/musl/src/math/i386/ceil.s deleted-1
......@@ -1 +0,0 @@
1# see floor.s
lib/libc/musl/src/math/i386/ceilf.s deleted-1
......@@ -1 +0,0 @@
1# see floor.s
lib/libc/musl/src/math/i386/ceill.s deleted-1
......@@ -1 +0,0 @@
1# see floor.s
lib/libc/musl/src/math/i386/floor.s deleted-52
......@@ -1,52 +0,0 @@
1/* zig patch: removed `floorl` and `floorf` in favor of using zig compiler_rt's implementations */
2
31: fstcw 4(%esp)
4 mov 5(%esp),%ah
5 mov %al,5(%esp)
6 fldcw 4(%esp)
7 frndint
8 mov %ah,5(%esp)
9 fldcw 4(%esp)
10 ret
11
12.global ceil
13.type ceil,@function
14ceil:
15 fldl 4(%esp)
16 mov $0xb,%al
17 jmp 1b
18
19.global ceilf
20.type ceilf,@function
21ceilf:
22 flds 4(%esp)
23 mov $0xb,%al
24 jmp 1b
25
26.global ceill
27.type ceill,@function
28ceill:
29 fldt 4(%esp)
30 mov $0xb,%al
31 jmp 1b
32
33.global trunc
34.type trunc,@function
35trunc:
36 fldl 4(%esp)
37 mov $0xf,%al
38 jmp 1b
39
40.global truncf
41.type truncf,@function
42truncf:
43 flds 4(%esp)
44 mov $0xf,%al
45 jmp 1b
46
47.global truncl
48.type truncl,@function
49truncl:
50 fldt 4(%esp)
51 mov $0xf,%al
52 jmp 1b
lib/libc/musl/src/math/i386/trunc.s deleted-1
......@@ -1 +0,0 @@
1# see floor.s
lib/libc/musl/src/math/i386/truncf.s deleted-1
......@@ -1 +0,0 @@
1# see floor.s
lib/libc/musl/src/math/i386/truncl.s deleted-1
......@@ -1 +0,0 @@
1# see floor.s
lib/libc/musl/src/math/powerpc64/ceil.c deleted-15
......@@ -1,15 +0,0 @@
1#include <math.h>
2
3#ifdef _ARCH_PWR5X
4
5double ceil(double x)
6{
7 __asm__ ("frip %0, %1" : "=d"(x) : "d"(x));
8 return x;
9}
10
11#else
12
13#include "../ceil.c"
14
15#endif
lib/libc/musl/src/math/powerpc64/ceilf.c deleted-15
......@@ -1,15 +0,0 @@
1#include <math.h>
2
3#ifdef _ARCH_PWR5X
4
5float ceilf(float x)
6{
7 __asm__ ("frip %0, %1" : "=f"(x) : "f"(x));
8 return x;
9}
10
11#else
12
13#include "../ceilf.c"
14
15#endif
lib/libc/musl/src/math/powerpc64/trunc.c deleted-15
......@@ -1,15 +0,0 @@
1#include <math.h>
2
3#ifdef _ARCH_PWR5X
4
5double trunc(double x)
6{
7 __asm__ ("friz %0, %1" : "=d"(x) : "d"(x));
8 return x;
9}
10
11#else
12
13#include "../trunc.c"
14
15#endif
lib/libc/musl/src/math/powerpc64/truncf.c deleted-15
......@@ -1,15 +0,0 @@
1#include <math.h>
2
3#ifdef _ARCH_PWR5X
4
5float truncf(float x)
6{
7 __asm__ ("friz %0, %1" : "=f"(x) : "f"(x));
8 return x;
9}
10
11#else
12
13#include "../truncf.c"
14
15#endif
lib/libc/musl/src/math/s390x/ceil.c deleted-15
......@@ -1,15 +0,0 @@
1#include <math.h>
2
3#if defined(__HTM__) || __ARCH__ >= 9
4
5double ceil(double x)
6{
7 __asm__ ("fidbra %0, 6, %1, 4" : "=f"(x) : "f"(x));
8 return x;
9}
10
11#else
12
13#include "../ceil.c"
14
15#endif
lib/libc/musl/src/math/s390x/ceilf.c deleted-15
......@@ -1,15 +0,0 @@
1#include <math.h>
2
3#if defined(__HTM__) || __ARCH__ >= 9
4
5float ceilf(float x)
6{
7 __asm__ ("fiebra %0, 6, %1, 4" : "=f"(x) : "f"(x));
8 return x;
9}
10
11#else
12
13#include "../ceilf.c"
14
15#endif
lib/libc/musl/src/math/s390x/ceill.c deleted-15
......@@ -1,15 +0,0 @@
1#include <math.h>
2
3#if defined(__HTM__) || __ARCH__ >= 9
4
5long double ceill(long double x)
6{
7 __asm__ ("fixbra %0, 6, %1, 4" : "=f"(x) : "f"(x));
8 return x;
9}
10
11#else
12
13#include "../ceill.c"
14
15#endif
lib/libc/musl/src/math/s390x/trunc.c deleted-15
......@@ -1,15 +0,0 @@
1#include <math.h>
2
3#if defined(__HTM__) || __ARCH__ >= 9
4
5double trunc(double x)
6{
7 __asm__ ("fidbra %0, 5, %1, 4" : "=f"(x) : "f"(x));
8 return x;
9}
10
11#else
12
13#include "../trunc.c"
14
15#endif
lib/libc/musl/src/math/s390x/truncf.c deleted-15
......@@ -1,15 +0,0 @@
1#include <math.h>
2
3#if defined(__HTM__) || __ARCH__ >= 9
4
5float truncf(float x)
6{
7 __asm__ ("fiebra %0, 5, %1, 4" : "=f"(x) : "f"(x));
8 return x;
9}
10
11#else
12
13#include "../truncf.c"
14
15#endif
lib/libc/musl/src/math/s390x/truncl.c deleted-15
......@@ -1,15 +0,0 @@
1#include <math.h>
2
3#if defined(__HTM__) || __ARCH__ >= 9
4
5long double truncl(long double x)
6{
7 __asm__ ("fixbra %0, 5, %1, 4" : "=f"(x) : "f"(x));
8 return x;
9}
10
11#else
12
13#include "../truncl.c"
14
15#endif
lib/libc/musl/src/math/trunc.c deleted-19
......@@ -1,19 +0,0 @@
1#include "libm.h"
2
3double trunc(double x)
4{
5 union {double f; uint64_t i;} u = {x};
6 int e = (int)(u.i >> 52 & 0x7ff) - 0x3ff + 12;
7 uint64_t m;
8
9 if (e >= 52 + 12)
10 return x;
11 if (e < 12)
12 e = 1;
13 m = -1ULL >> e;
14 if ((u.i & m) == 0)
15 return x;
16 FORCE_EVAL(x + 0x1p120f);
17 u.i &= ~m;
18 return u.f;
19}
lib/libc/musl/src/math/truncf.c deleted-19
......@@ -1,19 +0,0 @@
1#include "libm.h"
2
3float truncf(float x)
4{
5 union {float f; uint32_t i;} u = {x};
6 int e = (int)(u.i >> 23 & 0xff) - 0x7f + 9;
7 uint32_t m;
8
9 if (e >= 23 + 9)
10 return x;
11 if (e < 9)
12 e = 1;
13 m = -1U >> e;
14 if ((u.i & m) == 0)
15 return x;
16 FORCE_EVAL(x + 0x1p120f);
17 u.i &= ~m;
18 return u.f;
19}
lib/libc/musl/src/math/truncl.c deleted-34
......@@ -1,34 +0,0 @@
1#include "libm.h"
2
3#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
4long double truncl(long double x)
5{
6 return trunc(x);
7}
8#elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
9
10static const long double toint = 1/LDBL_EPSILON;
11
12long double truncl(long double x)
13{
14 union ldshape u = {x};
15 int e = u.i.se & 0x7fff;
16 int s = u.i.se >> 15;
17 long double y;
18
19 if (e >= 0x3fff+LDBL_MANT_DIG-1)
20 return x;
21 if (e <= 0x3fff-1) {
22 FORCE_EVAL(x + 0x1p120f);
23 return x*0;
24 }
25 /* y = int(|x|) - |x|, where int(|x|) is an integer neighbor of |x| */
26 if (s)
27 x = -x;
28 y = x + toint - toint - x;
29 if (y > 0)
30 y -= 1;
31 x += y;
32 return s ? -x : x;
33}
34#endif
lib/libc/musl/src/math/x32/ceill.s deleted-1
......@@ -1 +0,0 @@
1# see floorl.s
lib/libc/musl/src/math/x32/floorl.s deleted-27
......@@ -1,27 +0,0 @@
1.global floorl
2.type floorl,@function
3floorl:
4 fldt 8(%esp)
51: mov $0x7,%al
61: fstcw 8(%esp)
7 mov 9(%esp),%ah
8 mov %al,9(%esp)
9 fldcw 8(%esp)
10 frndint
11 mov %ah,9(%esp)
12 fldcw 8(%esp)
13 ret
14
15.global ceill
16.type ceill,@function
17ceill:
18 fldt 8(%esp)
19 mov $0xb,%al
20 jmp 1b
21
22.global truncl
23.type truncl,@function
24truncl:
25 fldt 8(%esp)
26 mov $0xf,%al
27 jmp 1b
lib/libc/musl/src/math/x32/truncl.s deleted-1
......@@ -1 +0,0 @@
1# see floorl.s
lib/libc/musl/src/math/x86_64/ceill.s deleted-1
......@@ -1 +0,0 @@
1# see floorl.s
lib/libc/musl/src/math/x86_64/floorl.s deleted-27
......@@ -1,27 +0,0 @@
1.global floorl
2.type floorl,@function
3floorl:
4 fldt 8(%rsp)
51: mov $0x7,%al
61: fstcw 8(%rsp)
7 mov 9(%rsp),%ah
8 mov %al,9(%rsp)
9 fldcw 8(%rsp)
10 frndint
11 mov %ah,9(%rsp)
12 fldcw 8(%rsp)
13 ret
14
15.global ceill
16.type ceill,@function
17ceill:
18 fldt 8(%rsp)
19 mov $0xb,%al
20 jmp 1b
21
22.global truncl
23.type truncl,@function
24truncl:
25 fldt 8(%rsp)
26 mov $0xf,%al
27 jmp 1b
lib/libc/musl/src/math/x86_64/truncl.s deleted-1
......@@ -1 +0,0 @@
1# see floorl.s
src/libs/mingw.zig-3
......@@ -911,7 +911,6 @@ const mingw32_x86_src = [_][]const u8{
911911 "math" ++ path.sep_str ++ "rintl.c",
912912 "math" ++ path.sep_str ++ "roundl.c",
913913 "math" ++ path.sep_str ++ "tgammal.c",
914 "math" ++ path.sep_str ++ "truncl.c",
915914 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "_chgsignl.S",
916915 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "acoshl.c",
917916 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "acosl.c",
......@@ -920,7 +919,6 @@ const mingw32_x86_src = [_][]const u8{
920919 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atan2l.c",
921920 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanhl.c",
922921 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanl.c",
923 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "ceill.S",
924922 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "copysignl.S",
925923 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl.c",
926924 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl_internal.S",
......@@ -970,7 +968,6 @@ const mingw32_x86_32_src = [_][]const u8{
970968 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "asinf.c",
971969 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atan2f.c",
972970 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanf.c",
973 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "ceilf.S",
974971 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "fmodf.c",
975972};
976973
src/libs/musl.zig-33
......@@ -831,8 +831,6 @@ const src_files = [_][]const u8{
831831 "musl/src/malloc/reallocarray.c",
832832 "musl/src/malloc/realloc.c",
833833 "musl/src/malloc/replaced.c",
834 "musl/src/math/aarch64/ceil.c",
835 "musl/src/math/aarch64/ceilf.c",
836834 "musl/src/math/aarch64/fma.c",
837835 "musl/src/math/aarch64/fmaf.c",
838836 "musl/src/math/aarch64/fmax.c",
......@@ -855,8 +853,6 @@ const src_files = [_][]const u8{
855853 "musl/src/math/aarch64/roundf.c",
856854 "musl/src/math/aarch64/sqrt.c",
857855 "musl/src/math/aarch64/sqrtf.c",
858 "musl/src/math/aarch64/trunc.c",
859 "musl/src/math/aarch64/truncf.c",
860856 "musl/src/math/acos.c",
861857 "musl/src/math/acosf.c",
862858 "musl/src/math/acosh.c",
......@@ -885,9 +881,6 @@ const src_files = [_][]const u8{
885881 "musl/src/math/cbrt.c",
886882 "musl/src/math/cbrtf.c",
887883 "musl/src/math/cbrtl.c",
888 "musl/src/math/ceil.c",
889 "musl/src/math/ceilf.c",
890 "musl/src/math/ceill.c",
891884 "musl/src/math/copysign.c",
892885 "musl/src/math/copysignf.c",
893886 "musl/src/math/copysignl.c",
......@@ -955,14 +948,10 @@ const src_files = [_][]const u8{
955948 "musl/src/math/i386/atanf.s",
956949 "musl/src/math/i386/atanl.s",
957950 "musl/src/math/i386/atan.s",
958 "musl/src/math/i386/ceilf.s",
959 "musl/src/math/i386/ceill.s",
960 "musl/src/math/i386/ceil.s",
961951 "musl/src/math/i386/exp2l.s",
962952 "musl/src/math/i386/exp_ld.s",
963953 "musl/src/math/i386/expl.s",
964954 "musl/src/math/i386/expm1l.s",
965 "musl/src/math/i386/floor.s",
966955 "musl/src/math/i386/fmod.c",
967956 "musl/src/math/i386/fmodf.c",
968957 "musl/src/math/i386/fmodl.c",
......@@ -1008,9 +997,6 @@ const src_files = [_][]const u8{
1008997 "musl/src/math/i386/sqrt.c",
1009998 "musl/src/math/i386/sqrtf.c",
1010999 "musl/src/math/i386/sqrtl.c",
1011 "musl/src/math/i386/truncf.s",
1012 "musl/src/math/i386/truncl.s",
1013 "musl/src/math/i386/trunc.s",
10141000 "musl/src/math/ilogb.c",
10151001 "musl/src/math/ilogbf.c",
10161002 "musl/src/math/ilogbl.c",
......@@ -1092,8 +1078,6 @@ const src_files = [_][]const u8{
10921078 "musl/src/math/__polevll.c",
10931079 "musl/src/math/pow.c",
10941080 "musl/src/math/pow_data.c",
1095 "musl/src/math/powerpc64/ceil.c",
1096 "musl/src/math/powerpc64/ceilf.c",
10971081 "musl/src/math/powerpc64/fma.c",
10981082 "musl/src/math/powerpc64/fmaf.c",
10991083 "musl/src/math/powerpc64/fmax.c",
......@@ -1108,8 +1092,6 @@ const src_files = [_][]const u8{
11081092 "musl/src/math/powerpc64/roundf.c",
11091093 "musl/src/math/powerpc64/sqrt.c",
11101094 "musl/src/math/powerpc64/sqrtf.c",
1111 "musl/src/math/powerpc64/trunc.c",
1112 "musl/src/math/powerpc64/truncf.c",
11131095 "musl/src/math/powerpc/fma.c",
11141096 "musl/src/math/powerpc/fmaf.c",
11151097 "musl/src/math/powerpc/sqrt.c",
......@@ -1153,9 +1135,6 @@ const src_files = [_][]const u8{
11531135 "musl/src/math/round.c",
11541136 "musl/src/math/roundf.c",
11551137 "musl/src/math/roundl.c",
1156 "musl/src/math/s390x/ceil.c",
1157 "musl/src/math/s390x/ceilf.c",
1158 "musl/src/math/s390x/ceill.c",
11591138 "musl/src/math/s390x/fma.c",
11601139 "musl/src/math/s390x/fmaf.c",
11611140 "musl/src/math/s390x/nearbyint.c",
......@@ -1170,9 +1149,6 @@ const src_files = [_][]const u8{
11701149 "musl/src/math/s390x/sqrt.c",
11711150 "musl/src/math/s390x/sqrtf.c",
11721151 "musl/src/math/s390x/sqrtl.c",
1173 "musl/src/math/s390x/trunc.c",
1174 "musl/src/math/s390x/truncf.c",
1175 "musl/src/math/s390x/truncl.c",
11761152 "musl/src/math/scalb.c",
11771153 "musl/src/math/scalbf.c",
11781154 "musl/src/math/scalbln.c",
......@@ -1209,18 +1185,13 @@ const src_files = [_][]const u8{
12091185 "musl/src/math/tgamma.c",
12101186 "musl/src/math/tgammaf.c",
12111187 "musl/src/math/tgammal.c",
1212 "musl/src/math/trunc.c",
1213 "musl/src/math/truncf.c",
1214 "musl/src/math/truncl.c",
12151188 "musl/src/math/x32/acosl.s",
12161189 "musl/src/math/x32/asinl.s",
12171190 "musl/src/math/x32/atan2l.s",
12181191 "musl/src/math/x32/atanl.s",
1219 "musl/src/math/x32/ceill.s",
12201192 "musl/src/math/x32/exp2l.s",
12211193 "musl/src/math/x32/expl.s",
12221194 "musl/src/math/x32/expm1l.s",
1223 "musl/src/math/x32/floorl.s",
12241195 "musl/src/math/x32/fma.c",
12251196 "musl/src/math/x32/fmaf.c",
12261197 "musl/src/math/x32/fmodl.s",
......@@ -1240,16 +1211,13 @@ const src_files = [_][]const u8{
12401211 "musl/src/math/x32/sqrtf.s",
12411212 "musl/src/math/x32/sqrtl.s",
12421213 "musl/src/math/x32/sqrt.s",
1243 "musl/src/math/x32/truncl.s",
12441214 "musl/src/math/x86_64/acosl.s",
12451215 "musl/src/math/x86_64/asinl.s",
12461216 "musl/src/math/x86_64/atan2l.s",
12471217 "musl/src/math/x86_64/atanl.s",
1248 "musl/src/math/x86_64/ceill.s",
12491218 "musl/src/math/x86_64/exp2l.s",
12501219 "musl/src/math/x86_64/expl.s",
12511220 "musl/src/math/x86_64/expm1l.s",
1252 "musl/src/math/x86_64/floorl.s",
12531221 "musl/src/math/x86_64/fma.c",
12541222 "musl/src/math/x86_64/fmaf.c",
12551223 "musl/src/math/x86_64/fmodl.c",
......@@ -1270,7 +1238,6 @@ const src_files = [_][]const u8{
12701238 "musl/src/math/x86_64/sqrt.c",
12711239 "musl/src/math/x86_64/sqrtf.c",
12721240 "musl/src/math/x86_64/sqrtl.c",
1273 "musl/src/math/x86_64/truncl.s",
12741241 "musl/src/misc/a64l.c",
12751242 "musl/src/misc/basename.c",
12761243 "musl/src/misc/dirname.c",
src/libs/wasi_libc.zig-2
......@@ -727,7 +727,6 @@ const libc_top_half_src_files = [_][]const u8{
727727 "musl/src/math/cbrt.c",
728728 "musl/src/math/cbrtf.c",
729729 "musl/src/math/cbrtl.c",
730 "musl/src/math/ceill.c",
731730 "musl/src/math/copysignl.c",
732731 "musl/src/math/__cos.c",
733732 "musl/src/math/__cosdf.c",
......@@ -887,7 +886,6 @@ const libc_top_half_src_files = [_][]const u8{
887886 "musl/src/math/tgamma.c",
888887 "musl/src/math/tgammaf.c",
889888 "musl/src/math/tgammal.c",
890 "musl/src/math/truncl.c",
891889 "musl/src/misc/a64l.c",
892890 "musl/src/misc/basename.c",
893891 "musl/src/misc/dirname.c",