mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
This was a bit trickier than it should be due to symbol conflicts with zig's compiler-rt implementation. We attempt to use weak linkage in our compiler-rt, but this does not seem to be working in all cases. I manually disabled export of the problematic compiler-rt math functions in order to cross compile musl's libc.so for all targets as input to `tools/gen_stubs.zig`. Other than that, this update went fairly smoothly. Quite a few additional symbols were added to the blacklist in `tools/gen_stubs.zig` due to recent reorganization of zig's compiler-rt.
39 lines
853 B
C
Vendored
39 lines
853 B
C
Vendored
#if !__mcffpu__
|
|
|
|
#define FLT_EVAL_METHOD 2
|
|
|
|
#define LDBL_TRUE_MIN 3.6451995318824746025e-4951L
|
|
#define LDBL_MIN 1.68105157155604675313e-4932L
|
|
#define LDBL_MAX 1.1897314953572317650e+4932L
|
|
#define LDBL_EPSILON 1.0842021724855044340e-19L
|
|
|
|
#define LDBL_MANT_DIG 64
|
|
#define LDBL_MIN_EXP (-16382)
|
|
#define LDBL_MAX_EXP 16384
|
|
|
|
#define LDBL_DIG 18
|
|
#define LDBL_MIN_10_EXP (-4931)
|
|
#define LDBL_MAX_10_EXP 4932
|
|
|
|
#define DECIMAL_DIG 21
|
|
|
|
#else
|
|
|
|
#define FLT_EVAL_METHOD 0
|
|
|
|
#define LDBL_TRUE_MIN 4.94065645841246544177e-324L
|
|
#define LDBL_MIN 2.22507385850720138309e-308L
|
|
#define LDBL_MAX 1.79769313486231570815e+308L
|
|
#define LDBL_EPSILON 2.22044604925031308085e-16L
|
|
|
|
#define LDBL_MANT_DIG 53
|
|
#define LDBL_MIN_EXP (-1021)
|
|
#define LDBL_MAX_EXP 1024
|
|
|
|
#define LDBL_DIG 15
|
|
#define LDBL_MIN_10_EXP (-307)
|
|
#define LDBL_MAX_10_EXP 308
|
|
|
|
#define DECIMAL_DIG 17
|
|
|
|
#endif
|