From f6b0d64ddc2132d3a08f216011480be6cb959234 Mon Sep 17 00:00:00 2001 From: David Senoner Date: Wed, 27 Aug 2025 13:40:08 +0200 Subject: [PATCH 1/3] libc: remove c floorl implementaions forgotten in #24335 --- lib/libc/musl/src/math/x32/floorl.s | 7 ++----- lib/libc/musl/src/math/x86_64/floorl.s | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/libc/musl/src/math/x32/floorl.s b/lib/libc/musl/src/math/x32/floorl.s index 78dcb6dadcfb685ab46adc19bcd620823ed9db10..c2d7d3fa5fa332e342549a96d93032da6dc0d7ca 100644 --- a/lib/libc/musl/src/math/x32/floorl.s +++ b/lib/libc/musl/src/math/x32/floorl.s @@ -1,8 +1,5 @@ -.global floorl -.type floorl,@function -floorl: - fldt 8(%esp) -1: mov $0x7,%al +/* zig patch: removed `floorl` in favor of using zig compiler_rt's implementations */ + 1: fstcw 8(%esp) mov 9(%esp),%ah mov %al,9(%esp) diff --git a/lib/libc/musl/src/math/x86_64/floorl.s b/lib/libc/musl/src/math/x86_64/floorl.s index 80da466095530a425169d389b8c987fa2093d166..442336be9dff80a1a53616d22756083606b72d46 100644 --- a/lib/libc/musl/src/math/x86_64/floorl.s +++ b/lib/libc/musl/src/math/x86_64/floorl.s @@ -1,8 +1,5 @@ -.global floorl -.type floorl,@function -floorl: - fldt 8(%rsp) -1: mov $0x7,%al +/* zig patch: removed `floorl` in favor of using zig compiler_rt's implementations */ + 1: fstcw 8(%rsp) mov 9(%rsp),%ah mov %al,9(%rsp) -- 2.54.0 From f707de15a14e4400e99d5260d6d7af98aa2a69cd Mon Sep 17 00:00:00 2001 From: David Senoner Date: Wed, 27 Aug 2025 13:40:16 +0200 Subject: [PATCH 2/3] libc: delete superfluous c and assembly ceil implementation --- lib/libc/mingw/math/x86/ceilf.S | 111 ----------------------- lib/libc/mingw/math/x86/ceill.S | 55 ----------- lib/libc/musl/src/math/aarch64/ceil.c | 7 -- lib/libc/musl/src/math/aarch64/ceilf.c | 7 -- lib/libc/musl/src/math/ceil.c | 31 ------- lib/libc/musl/src/math/ceilf.c | 27 ------ lib/libc/musl/src/math/ceill.c | 34 ------- lib/libc/musl/src/math/i386/ceil.s | 1 - lib/libc/musl/src/math/i386/ceilf.s | 1 - lib/libc/musl/src/math/i386/ceill.s | 1 - lib/libc/musl/src/math/i386/floor.s | 23 +---- lib/libc/musl/src/math/powerpc64/ceil.c | 15 --- lib/libc/musl/src/math/powerpc64/ceilf.c | 15 --- lib/libc/musl/src/math/s390x/ceil.c | 15 --- lib/libc/musl/src/math/s390x/ceilf.c | 15 --- lib/libc/musl/src/math/s390x/ceill.c | 15 --- lib/libc/musl/src/math/x32/ceill.s | 1 - lib/libc/musl/src/math/x32/floorl.s | 9 +- lib/libc/musl/src/math/x86_64/ceill.s | 1 - lib/libc/musl/src/math/x86_64/floorl.s | 9 +- src/libs/mingw.zig | 2 - src/libs/musl.zig | 15 --- src/libs/wasi_libc.zig | 1 - 23 files changed, 3 insertions(+), 408 deletions(-) delete mode 100644 lib/libc/mingw/math/x86/ceilf.S delete mode 100644 lib/libc/mingw/math/x86/ceill.S delete mode 100644 lib/libc/musl/src/math/aarch64/ceil.c delete mode 100644 lib/libc/musl/src/math/aarch64/ceilf.c delete mode 100644 lib/libc/musl/src/math/ceil.c delete mode 100644 lib/libc/musl/src/math/ceilf.c delete mode 100644 lib/libc/musl/src/math/ceill.c delete mode 100644 lib/libc/musl/src/math/i386/ceil.s delete mode 100644 lib/libc/musl/src/math/i386/ceilf.s delete mode 100644 lib/libc/musl/src/math/i386/ceill.s delete mode 100644 lib/libc/musl/src/math/powerpc64/ceil.c delete mode 100644 lib/libc/musl/src/math/powerpc64/ceilf.c delete mode 100644 lib/libc/musl/src/math/s390x/ceil.c delete mode 100644 lib/libc/musl/src/math/s390x/ceilf.c delete mode 100644 lib/libc/musl/src/math/s390x/ceill.c delete mode 100644 lib/libc/musl/src/math/x32/ceill.s delete mode 100644 lib/libc/musl/src/math/x86_64/ceill.s diff --git a/lib/libc/mingw/math/x86/ceilf.S b/lib/libc/mingw/math/x86/ceilf.S deleted file mode 100644 index 9096dbc2b38095a46ba9b8fd89f423dc7c91849d..0000000000000000000000000000000000000000 --- a/lib/libc/mingw/math/x86/ceilf.S +++ /dev/null @@ -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 diff --git a/lib/libc/mingw/math/x86/ceill.S b/lib/libc/mingw/math/x86/ceill.S deleted file mode 100644 index 04b6093337bead9215cc2a9278cfa9c0eea2ba43..0000000000000000000000000000000000000000 --- a/lib/libc/mingw/math/x86/ceill.S +++ /dev/null @@ -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 diff --git a/lib/libc/musl/src/math/aarch64/ceil.c b/lib/libc/musl/src/math/aarch64/ceil.c deleted file mode 100644 index ac80c1dce5e4da1e9fb48e21856f89db6093cfac..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/aarch64/ceil.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -double ceil(double x) -{ - __asm__ ("frintp %d0, %d1" : "=w"(x) : "w"(x)); - return x; -} diff --git a/lib/libc/musl/src/math/aarch64/ceilf.c b/lib/libc/musl/src/math/aarch64/ceilf.c deleted file mode 100644 index 1ef1e9c839408dacf5123182b749b707e487f73a..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/aarch64/ceilf.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -float ceilf(float x) -{ - __asm__ ("frintp %s0, %s1" : "=w"(x) : "w"(x)); - return x; -} diff --git a/lib/libc/musl/src/math/ceil.c b/lib/libc/musl/src/math/ceil.c deleted file mode 100644 index b13e6f2d63689818ff349f1327fb5d1bb25eb49d..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/ceil.c +++ /dev/null @@ -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; -} diff --git a/lib/libc/musl/src/math/ceilf.c b/lib/libc/musl/src/math/ceilf.c deleted file mode 100644 index 869835f39783835b9c2fdda05c16d1e4e4ee6883..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/ceilf.c +++ /dev/null @@ -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; -} diff --git a/lib/libc/musl/src/math/ceill.c b/lib/libc/musl/src/math/ceill.c deleted file mode 100644 index 60a83020dd1cb6f6764d0ddb5b64ba9476e71d15..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/ceill.c +++ /dev/null @@ -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 diff --git a/lib/libc/musl/src/math/i386/ceil.s b/lib/libc/musl/src/math/i386/ceil.s deleted file mode 100644 index bc29f15ce79215d44fb6a5f2c03e12d25bdb81e2..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/i386/ceil.s +++ /dev/null @@ -1 +0,0 @@ -# see floor.s diff --git a/lib/libc/musl/src/math/i386/ceilf.s b/lib/libc/musl/src/math/i386/ceilf.s deleted file mode 100644 index bc29f15ce79215d44fb6a5f2c03e12d25bdb81e2..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/i386/ceilf.s +++ /dev/null @@ -1 +0,0 @@ -# see floor.s diff --git a/lib/libc/musl/src/math/i386/ceill.s b/lib/libc/musl/src/math/i386/ceill.s deleted file mode 100644 index bc29f15ce79215d44fb6a5f2c03e12d25bdb81e2..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/i386/ceill.s +++ /dev/null @@ -1 +0,0 @@ -# see floor.s diff --git a/lib/libc/musl/src/math/i386/floor.s b/lib/libc/musl/src/math/i386/floor.s index 2571fb3ded463336cdc988a1f59a2fe6fb0b3b7c..7495e2d8c4a87fc54a110e0b672e8fbc380d41fe 100644 --- a/lib/libc/musl/src/math/i386/floor.s +++ b/lib/libc/musl/src/math/i386/floor.s @@ -1,4 +1,4 @@ -/* zig patch: removed `floorl` and `floorf` in favor of using zig compiler_rt's implementations */ +/* zig patch: removed `floorl`, `floorf`, `ceil`, `ceilf` and `ceill` in favor of using zig compiler_rt's implementations */ 1: fstcw 4(%esp) mov 5(%esp),%ah @@ -9,27 +9,6 @@ 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: diff --git a/lib/libc/musl/src/math/powerpc64/ceil.c b/lib/libc/musl/src/math/powerpc64/ceil.c deleted file mode 100644 index 4b01133660a935f8a74fe191bf24bc832e5425b6..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/powerpc64/ceil.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#ifdef _ARCH_PWR5X - -double ceil(double x) -{ - __asm__ ("frip %0, %1" : "=d"(x) : "d"(x)); - return x; -} - -#else - -#include "../ceil.c" - -#endif diff --git a/lib/libc/musl/src/math/powerpc64/ceilf.c b/lib/libc/musl/src/math/powerpc64/ceilf.c deleted file mode 100644 index 59ba39617f5849a51cc9832449754a89ca7303b0..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/powerpc64/ceilf.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#ifdef _ARCH_PWR5X - -float ceilf(float x) -{ - __asm__ ("frip %0, %1" : "=f"(x) : "f"(x)); - return x; -} - -#else - -#include "../ceilf.c" - -#endif diff --git a/lib/libc/musl/src/math/s390x/ceil.c b/lib/libc/musl/src/math/s390x/ceil.c deleted file mode 100644 index aee17df75fd0f7613bc38640c82060e003bc0297..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/s390x/ceil.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#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 diff --git a/lib/libc/musl/src/math/s390x/ceilf.c b/lib/libc/musl/src/math/s390x/ceilf.c deleted file mode 100644 index 29ba8d4e776585e969cfa466c74be28d2cc4c2cf..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/s390x/ceilf.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#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 diff --git a/lib/libc/musl/src/math/s390x/ceill.c b/lib/libc/musl/src/math/s390x/ceill.c deleted file mode 100644 index b838dc13e0d5cd881481fe8f0331547583eeec0c..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/s390x/ceill.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#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 diff --git a/lib/libc/musl/src/math/x32/ceill.s b/lib/libc/musl/src/math/x32/ceill.s deleted file mode 100644 index f5cfa3b307b49abad69f8a619595122b5618e2d1..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/x32/ceill.s +++ /dev/null @@ -1 +0,0 @@ -# see floorl.s diff --git a/lib/libc/musl/src/math/x32/floorl.s b/lib/libc/musl/src/math/x32/floorl.s index c2d7d3fa5fa332e342549a96d93032da6dc0d7ca..fb27880436ae0c7b66768e04ad27c758a9e4116e 100644 --- a/lib/libc/musl/src/math/x32/floorl.s +++ b/lib/libc/musl/src/math/x32/floorl.s @@ -1,4 +1,4 @@ -/* zig patch: removed `floorl` in favor of using zig compiler_rt's implementations */ +/* zig patch: removed `floorl` and `ceill` in favor of using zig compiler_rt's implementations */ 1: fstcw 8(%esp) mov 9(%esp),%ah @@ -9,13 +9,6 @@ fldcw 8(%esp) ret -.global ceill -.type ceill,@function -ceill: - fldt 8(%esp) - mov $0xb,%al - jmp 1b - .global truncl .type truncl,@function truncl: diff --git a/lib/libc/musl/src/math/x86_64/ceill.s b/lib/libc/musl/src/math/x86_64/ceill.s deleted file mode 100644 index f5cfa3b307b49abad69f8a619595122b5618e2d1..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/x86_64/ceill.s +++ /dev/null @@ -1 +0,0 @@ -# see floorl.s diff --git a/lib/libc/musl/src/math/x86_64/floorl.s b/lib/libc/musl/src/math/x86_64/floorl.s index 442336be9dff80a1a53616d22756083606b72d46..d6b0bc1848e491aff5a722df136129082a1815ee 100644 --- a/lib/libc/musl/src/math/x86_64/floorl.s +++ b/lib/libc/musl/src/math/x86_64/floorl.s @@ -1,4 +1,4 @@ -/* zig patch: removed `floorl` in favor of using zig compiler_rt's implementations */ +/* zig patch: removed `floorl` and `ceill` in favor of using zig compiler_rt's implementations */ 1: fstcw 8(%rsp) mov 9(%rsp),%ah @@ -9,13 +9,6 @@ fldcw 8(%rsp) ret -.global ceill -.type ceill,@function -ceill: - fldt 8(%rsp) - mov $0xb,%al - jmp 1b - .global truncl .type truncl,@function truncl: diff --git a/src/libs/mingw.zig b/src/libs/mingw.zig index 1ef660fee234d1d09f99d7b5f6ea38334f7e69fd..bb3c9cc8e2e9faf315a7e8cd3ce69bab69297ff2 100644 --- a/src/libs/mingw.zig +++ b/src/libs/mingw.zig @@ -920,7 +920,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 ++ "atanhl.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 ++ "cosl.c", "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl_internal.S", @@ -970,7 +969,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 ++ "atan2f.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", }; diff --git a/src/libs/musl.zig b/src/libs/musl.zig index 32bf6422627d1631ecaeb3bf38c9462cf881e307..1202c0e9a112ecf32a1a9db2e78d17cc9d1a452b 100644 --- a/src/libs/musl.zig +++ b/src/libs/musl.zig @@ -831,8 +831,6 @@ const src_files = [_][]const u8{ "musl/src/malloc/reallocarray.c", "musl/src/malloc/realloc.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/fmaf.c", "musl/src/math/aarch64/fmax.c", @@ -885,9 +883,6 @@ const src_files = [_][]const u8{ "musl/src/math/cbrt.c", "musl/src/math/cbrtf.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/copysignf.c", "musl/src/math/copysignl.c", @@ -955,9 +950,6 @@ const src_files = [_][]const u8{ "musl/src/math/i386/atanf.s", "musl/src/math/i386/atanl.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/exp_ld.s", "musl/src/math/i386/expl.s", @@ -1092,8 +1084,6 @@ const src_files = [_][]const u8{ "musl/src/math/__polevll.c", "musl/src/math/pow.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/fmaf.c", "musl/src/math/powerpc64/fmax.c", @@ -1153,9 +1143,6 @@ const src_files = [_][]const u8{ "musl/src/math/round.c", "musl/src/math/roundf.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/fmaf.c", "musl/src/math/s390x/nearbyint.c", @@ -1216,7 +1203,6 @@ const src_files = [_][]const u8{ "musl/src/math/x32/asinl.s", "musl/src/math/x32/atan2l.s", "musl/src/math/x32/atanl.s", - "musl/src/math/x32/ceill.s", "musl/src/math/x32/exp2l.s", "musl/src/math/x32/expl.s", "musl/src/math/x32/expm1l.s", @@ -1245,7 +1231,6 @@ const src_files = [_][]const u8{ "musl/src/math/x86_64/asinl.s", "musl/src/math/x86_64/atan2l.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/expl.s", "musl/src/math/x86_64/expm1l.s", diff --git a/src/libs/wasi_libc.zig b/src/libs/wasi_libc.zig index 1c1d130a058d971867a578339ffedf934740e7a0..4d165e2acc13751866699167a3b3138fc3548922 100644 --- a/src/libs/wasi_libc.zig +++ b/src/libs/wasi_libc.zig @@ -727,7 +727,6 @@ const libc_top_half_src_files = [_][]const u8{ "musl/src/math/cbrt.c", "musl/src/math/cbrtf.c", "musl/src/math/cbrtl.c", - "musl/src/math/ceill.c", "musl/src/math/copysignl.c", "musl/src/math/__cos.c", "musl/src/math/__cosdf.c", -- 2.54.0 From 70e22d79a4d7aedcc76a00f123837d387545c3c6 Mon Sep 17 00:00:00 2001 From: David Senoner Date: Wed, 27 Aug 2025 21:53:16 +0200 Subject: [PATCH 3/3] libc: delete superfluous c and assembly trunc implementations --- lib/libc/mingw/math/truncl.c | 25 ----------------- lib/libc/musl/src/math/aarch64/trunc.c | 7 ----- lib/libc/musl/src/math/aarch64/truncf.c | 7 ----- lib/libc/musl/src/math/i386/floor.s | 31 --------------------- lib/libc/musl/src/math/i386/trunc.s | 1 - lib/libc/musl/src/math/i386/truncf.s | 1 - lib/libc/musl/src/math/i386/truncl.s | 1 - lib/libc/musl/src/math/powerpc64/trunc.c | 15 ---------- lib/libc/musl/src/math/powerpc64/truncf.c | 15 ---------- lib/libc/musl/src/math/s390x/trunc.c | 15 ---------- lib/libc/musl/src/math/s390x/truncf.c | 15 ---------- lib/libc/musl/src/math/s390x/truncl.c | 15 ---------- lib/libc/musl/src/math/trunc.c | 19 ------------- lib/libc/musl/src/math/truncf.c | 19 ------------- lib/libc/musl/src/math/truncl.c | 34 ----------------------- lib/libc/musl/src/math/x32/floorl.s | 17 ------------ lib/libc/musl/src/math/x32/truncl.s | 1 - lib/libc/musl/src/math/x86_64/floorl.s | 17 ------------ lib/libc/musl/src/math/x86_64/truncl.s | 1 - src/libs/mingw.zig | 1 - src/libs/musl.zig | 18 ------------ src/libs/wasi_libc.zig | 1 - 22 files changed, 276 deletions(-) delete mode 100644 lib/libc/mingw/math/truncl.c delete mode 100644 lib/libc/musl/src/math/aarch64/trunc.c delete mode 100644 lib/libc/musl/src/math/aarch64/truncf.c delete mode 100644 lib/libc/musl/src/math/i386/floor.s delete mode 100644 lib/libc/musl/src/math/i386/trunc.s delete mode 100644 lib/libc/musl/src/math/i386/truncf.s delete mode 100644 lib/libc/musl/src/math/i386/truncl.s delete mode 100644 lib/libc/musl/src/math/powerpc64/trunc.c delete mode 100644 lib/libc/musl/src/math/powerpc64/truncf.c delete mode 100644 lib/libc/musl/src/math/s390x/trunc.c delete mode 100644 lib/libc/musl/src/math/s390x/truncf.c delete mode 100644 lib/libc/musl/src/math/s390x/truncl.c delete mode 100644 lib/libc/musl/src/math/trunc.c delete mode 100644 lib/libc/musl/src/math/truncf.c delete mode 100644 lib/libc/musl/src/math/truncl.c delete mode 100644 lib/libc/musl/src/math/x32/floorl.s delete mode 100644 lib/libc/musl/src/math/x32/truncl.s delete mode 100644 lib/libc/musl/src/math/x86_64/floorl.s delete mode 100644 lib/libc/musl/src/math/x86_64/truncl.s diff --git a/lib/libc/mingw/math/truncl.c b/lib/libc/mingw/math/truncl.c deleted file mode 100644 index a28fed3dcb62a8b6da94b270e5f911ee279ae0ee..0000000000000000000000000000000000000000 --- a/lib/libc/mingw/math/truncl.c +++ /dev/null @@ -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 - -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__) */ -} diff --git a/lib/libc/musl/src/math/aarch64/trunc.c b/lib/libc/musl/src/math/aarch64/trunc.c deleted file mode 100644 index e592147a0ca901d47df05a110bed3d0e8bece857..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/aarch64/trunc.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -double trunc(double x) -{ - __asm__ ("frintz %d0, %d1" : "=w"(x) : "w"(x)); - return x; -} diff --git a/lib/libc/musl/src/math/aarch64/truncf.c b/lib/libc/musl/src/math/aarch64/truncf.c deleted file mode 100644 index 20ef30f12847066deb234663592411324883250c..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/aarch64/truncf.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -float truncf(float x) -{ - __asm__ ("frintz %s0, %s1" : "=w"(x) : "w"(x)); - return x; -} diff --git a/lib/libc/musl/src/math/i386/floor.s b/lib/libc/musl/src/math/i386/floor.s deleted file mode 100644 index 7495e2d8c4a87fc54a110e0b672e8fbc380d41fe..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/i386/floor.s +++ /dev/null @@ -1,31 +0,0 @@ -/* zig patch: removed `floorl`, `floorf`, `ceil`, `ceilf` and `ceill` 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 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 diff --git a/lib/libc/musl/src/math/i386/trunc.s b/lib/libc/musl/src/math/i386/trunc.s deleted file mode 100644 index bc29f15ce79215d44fb6a5f2c03e12d25bdb81e2..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/i386/trunc.s +++ /dev/null @@ -1 +0,0 @@ -# see floor.s diff --git a/lib/libc/musl/src/math/i386/truncf.s b/lib/libc/musl/src/math/i386/truncf.s deleted file mode 100644 index bc29f15ce79215d44fb6a5f2c03e12d25bdb81e2..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/i386/truncf.s +++ /dev/null @@ -1 +0,0 @@ -# see floor.s diff --git a/lib/libc/musl/src/math/i386/truncl.s b/lib/libc/musl/src/math/i386/truncl.s deleted file mode 100644 index bc29f15ce79215d44fb6a5f2c03e12d25bdb81e2..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/i386/truncl.s +++ /dev/null @@ -1 +0,0 @@ -# see floor.s diff --git a/lib/libc/musl/src/math/powerpc64/trunc.c b/lib/libc/musl/src/math/powerpc64/trunc.c deleted file mode 100644 index 57918548b8b2e7f484d190682be74979f1f54438..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/powerpc64/trunc.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#ifdef _ARCH_PWR5X - -double trunc(double x) -{ - __asm__ ("friz %0, %1" : "=d"(x) : "d"(x)); - return x; -} - -#else - -#include "../trunc.c" - -#endif diff --git a/lib/libc/musl/src/math/powerpc64/truncf.c b/lib/libc/musl/src/math/powerpc64/truncf.c deleted file mode 100644 index 94e638fb77a46254475b3c9d41838a3c39c2fe2d..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/powerpc64/truncf.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#ifdef _ARCH_PWR5X - -float truncf(float x) -{ - __asm__ ("friz %0, %1" : "=f"(x) : "f"(x)); - return x; -} - -#else - -#include "../truncf.c" - -#endif diff --git a/lib/libc/musl/src/math/s390x/trunc.c b/lib/libc/musl/src/math/s390x/trunc.c deleted file mode 100644 index 3e5d8862e6b79e95979b57e0b24f0b237a8210e7..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/s390x/trunc.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#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 diff --git a/lib/libc/musl/src/math/s390x/truncf.c b/lib/libc/musl/src/math/s390x/truncf.c deleted file mode 100644 index 9097bacd0c0d3db380c4309f51c848fd45d73627..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/s390x/truncf.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#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 diff --git a/lib/libc/musl/src/math/s390x/truncl.c b/lib/libc/musl/src/math/s390x/truncl.c deleted file mode 100644 index 4eb920a519ed048923498987126663d972a23651..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/s390x/truncl.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#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 diff --git a/lib/libc/musl/src/math/trunc.c b/lib/libc/musl/src/math/trunc.c deleted file mode 100644 index d13711b5015e073fbe69598cdf61f5126cb89df4..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/trunc.c +++ /dev/null @@ -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; -} diff --git a/lib/libc/musl/src/math/truncf.c b/lib/libc/musl/src/math/truncf.c deleted file mode 100644 index 1a7d03c3bce103bffad9a74d701ebc9beb9bad17..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/truncf.c +++ /dev/null @@ -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; -} diff --git a/lib/libc/musl/src/math/truncl.c b/lib/libc/musl/src/math/truncl.c deleted file mode 100644 index f07b1934097bcbb932e37a8b0710c99738993e39..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/truncl.c +++ /dev/null @@ -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 diff --git a/lib/libc/musl/src/math/x32/floorl.s b/lib/libc/musl/src/math/x32/floorl.s deleted file mode 100644 index fb27880436ae0c7b66768e04ad27c758a9e4116e..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/x32/floorl.s +++ /dev/null @@ -1,17 +0,0 @@ -/* zig patch: removed `floorl` and `ceill` in favor of using zig compiler_rt's implementations */ - -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 truncl -.type truncl,@function -truncl: - fldt 8(%esp) - mov $0xf,%al - jmp 1b diff --git a/lib/libc/musl/src/math/x32/truncl.s b/lib/libc/musl/src/math/x32/truncl.s deleted file mode 100644 index f5cfa3b307b49abad69f8a619595122b5618e2d1..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/x32/truncl.s +++ /dev/null @@ -1 +0,0 @@ -# see floorl.s diff --git a/lib/libc/musl/src/math/x86_64/floorl.s b/lib/libc/musl/src/math/x86_64/floorl.s deleted file mode 100644 index d6b0bc1848e491aff5a722df136129082a1815ee..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/x86_64/floorl.s +++ /dev/null @@ -1,17 +0,0 @@ -/* zig patch: removed `floorl` and `ceill` in favor of using zig compiler_rt's implementations */ - -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 truncl -.type truncl,@function -truncl: - fldt 8(%rsp) - mov $0xf,%al - jmp 1b diff --git a/lib/libc/musl/src/math/x86_64/truncl.s b/lib/libc/musl/src/math/x86_64/truncl.s deleted file mode 100644 index f5cfa3b307b49abad69f8a619595122b5618e2d1..0000000000000000000000000000000000000000 --- a/lib/libc/musl/src/math/x86_64/truncl.s +++ /dev/null @@ -1 +0,0 @@ -# see floorl.s diff --git a/src/libs/mingw.zig b/src/libs/mingw.zig index bb3c9cc8e2e9faf315a7e8cd3ce69bab69297ff2..bf234191a91a7c8758637bf03cf33d198a98e89b 100644 --- a/src/libs/mingw.zig +++ b/src/libs/mingw.zig @@ -911,7 +911,6 @@ const mingw32_x86_src = [_][]const u8{ "math" ++ path.sep_str ++ "rintl.c", "math" ++ path.sep_str ++ "roundl.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 ++ "acoshl.c", "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "acosl.c", diff --git a/src/libs/musl.zig b/src/libs/musl.zig index 1202c0e9a112ecf32a1a9db2e78d17cc9d1a452b..9c10e71e1e8afb0908cc7a71369a720affa557b4 100644 --- a/src/libs/musl.zig +++ b/src/libs/musl.zig @@ -853,8 +853,6 @@ const src_files = [_][]const u8{ "musl/src/math/aarch64/roundf.c", "musl/src/math/aarch64/sqrt.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/acosf.c", "musl/src/math/acosh.c", @@ -954,7 +952,6 @@ const src_files = [_][]const u8{ "musl/src/math/i386/exp_ld.s", "musl/src/math/i386/expl.s", "musl/src/math/i386/expm1l.s", - "musl/src/math/i386/floor.s", "musl/src/math/i386/fmod.c", "musl/src/math/i386/fmodf.c", "musl/src/math/i386/fmodl.c", @@ -1000,9 +997,6 @@ const src_files = [_][]const u8{ "musl/src/math/i386/sqrt.c", "musl/src/math/i386/sqrtf.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/ilogbf.c", "musl/src/math/ilogbl.c", @@ -1098,8 +1092,6 @@ const src_files = [_][]const u8{ "musl/src/math/powerpc64/roundf.c", "musl/src/math/powerpc64/sqrt.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/fmaf.c", "musl/src/math/powerpc/sqrt.c", @@ -1157,9 +1149,6 @@ const src_files = [_][]const u8{ "musl/src/math/s390x/sqrt.c", "musl/src/math/s390x/sqrtf.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/scalbf.c", "musl/src/math/scalbln.c", @@ -1196,9 +1185,6 @@ const src_files = [_][]const u8{ "musl/src/math/tgamma.c", "musl/src/math/tgammaf.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/asinl.s", "musl/src/math/x32/atan2l.s", @@ -1206,7 +1192,6 @@ const src_files = [_][]const u8{ "musl/src/math/x32/exp2l.s", "musl/src/math/x32/expl.s", "musl/src/math/x32/expm1l.s", - "musl/src/math/x32/floorl.s", "musl/src/math/x32/fma.c", "musl/src/math/x32/fmaf.c", "musl/src/math/x32/fmodl.s", @@ -1226,7 +1211,6 @@ const src_files = [_][]const u8{ "musl/src/math/x32/sqrtf.s", "musl/src/math/x32/sqrtl.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/asinl.s", "musl/src/math/x86_64/atan2l.s", @@ -1234,7 +1218,6 @@ const src_files = [_][]const u8{ "musl/src/math/x86_64/exp2l.s", "musl/src/math/x86_64/expl.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/fmaf.c", "musl/src/math/x86_64/fmodl.c", @@ -1255,7 +1238,6 @@ const src_files = [_][]const u8{ "musl/src/math/x86_64/sqrt.c", "musl/src/math/x86_64/sqrtf.c", "musl/src/math/x86_64/sqrtl.c", - "musl/src/math/x86_64/truncl.s", "musl/src/misc/a64l.c", "musl/src/misc/basename.c", "musl/src/misc/dirname.c", diff --git a/src/libs/wasi_libc.zig b/src/libs/wasi_libc.zig index 4d165e2acc13751866699167a3b3138fc3548922..0279e1bc85e578d6ce9fa48161454d64d7502d6c 100644 --- a/src/libs/wasi_libc.zig +++ b/src/libs/wasi_libc.zig @@ -886,7 +886,6 @@ const libc_top_half_src_files = [_][]const u8{ "musl/src/math/tgamma.c", "musl/src/math/tgammaf.c", "musl/src/math/tgammal.c", - "musl/src/math/truncl.c", "musl/src/misc/a64l.c", "musl/src/misc/basename.c", "musl/src/misc/dirname.c", -- 2.54.0