zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 171b1046408bca46508ed205ff4f9a3ee4c95d80 (tree)
parent 65a4dbc5034cff2cd9f258f764a0e684cb22ac97
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Fri, 16 Jan 2026 13:25:21 +0100

musl: patch loongarch bits/fenv.h for soft float

This change was missed in 1f7ee99b35b71668e32292b707213c9bf0b61c4e.

Diffstat:
Mlib/libc/include/arm-linux-musl/bits/fenv.h | 3+--
Mlib/libc/include/loongarch64-linux-musl/bits/fenv.h | 8++++++--
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/lib/libc/include/arm-linux-musl/bits/fenv.h b/lib/libc/include/arm-linux-musl/bits/fenv.h @@ -20,4 +20,4 @@ typedef struct { unsigned long __cw; } fenv_t; -#define FE_DFL_ENV ((const fenv_t *) -1) -\ No newline at end of file +#define FE_DFL_ENV ((const fenv_t *) -1) diff --git a/lib/libc/include/loongarch64-linux-musl/bits/fenv.h b/lib/libc/include/loongarch64-linux-musl/bits/fenv.h @@ -1,3 +1,7 @@ +#ifdef __longarch_soft_float +#define FE_ALL_EXCEPT 0 +#define FE_TONEAREST 0 +#else #define FE_INEXACT 0x010000 #define FE_UNDERFLOW 0x020000 #define FE_OVERFLOW 0x040000 @@ -10,6 +14,7 @@ #define FE_TOWARDZERO 0x100 #define FE_UPWARD 0x200 #define FE_DOWNWARD 0x300 +#endif typedef unsigned fexcept_t; @@ -17,4 +22,4 @@ typedef struct { unsigned __cw; } fenv_t; -#define FE_DFL_ENV ((const fenv_t *) -1) -\ No newline at end of file +#define FE_DFL_ENV ((const fenv_t *) -1)