@zigc/lib 0.17.0-dev.215 → 0.17.0-dev.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/c/math.zig +31 -2
- package/compiler/resinator/compile.zig +1 -1
- package/compiler_rt/cos.zig +1 -1
- package/compiler_rt/rem_pio2l.zig +1 -1
- package/compiler_rt/sin.zig +1 -1
- package/compiler_rt/sincos.zig +1 -1
- package/compiler_rt/tan.zig +1 -1
- package/libcxx/libc/hdr/errno_macros.h +3 -1
- package/libcxx/libc/hdr/stdint_proxy.h +18 -0
- package/libcxx/libc/hdr/types/wchar_t.h +23 -0
- package/libcxx/libc/hdr/wchar_overlay.h +69 -0
- package/libcxx/libc/include/llvm-libc-macros/cfloat128-macros.h +41 -0
- package/libcxx/libc/include/llvm-libc-macros/cfloat16-macros.h +20 -0
- package/libcxx/libc/include/llvm-libc-macros/wchar-macros.h +18 -0
- package/libcxx/libc/include/llvm-libc-types/cfloat128.h +11 -28
- package/libcxx/libc/include/llvm-libc-types/cfloat16.h +4 -7
- package/libcxx/libc/include/llvm-libc-types/wint_t.h +14 -0
- package/libcxx/libc/shared/libc_common.h +5 -0
- package/libcxx/libc/src/__support/CPP/bit.h +50 -12
- package/libcxx/libc/src/__support/CPP/type_traits/is_complex.h +7 -0
- package/libcxx/libc/src/__support/CPP/type_traits/is_destructible.h +2 -1
- package/libcxx/libc/src/__support/CPP/type_traits/is_unsigned.h +6 -0
- package/libcxx/libc/src/__support/CPP/utility/integer_sequence.h +10 -0
- package/libcxx/libc/src/__support/FPUtil/FPBits.h +6 -7
- package/libcxx/libc/src/__support/FPUtil/rounding_mode.h +50 -4
- package/libcxx/libc/src/__support/big_int.h +14 -14
- package/libcxx/libc/src/__support/common.h +3 -2
- package/libcxx/libc/src/__support/ctype_utils.h +19 -12
- package/libcxx/libc/src/__support/detailed_powers_of_ten.h +1 -2
- package/libcxx/libc/src/__support/high_precision_decimal.h +33 -14
- package/libcxx/libc/src/__support/libc_assert.h +2 -0
- package/libcxx/libc/src/__support/macros/attributes.h +44 -1
- package/libcxx/libc/src/__support/macros/config.h +23 -0
- package/libcxx/libc/src/__support/macros/null_check.h +1 -2
- package/libcxx/libc/src/__support/macros/optimization.h +3 -0
- package/libcxx/libc/src/__support/macros/properties/architectures.h +5 -1
- package/libcxx/libc/src/__support/macros/properties/compiler.h +8 -3
- package/libcxx/libc/src/__support/macros/properties/cpu_features.h +17 -1
- package/libcxx/libc/src/__support/macros/properties/types.h +2 -3
- package/libcxx/libc/src/__support/macros/sanitizer.h +0 -10
- package/libcxx/libc/src/__support/math_extras.h +20 -4
- package/libcxx/libc/src/__support/str_to_float.h +98 -125
- package/libcxx/libc/src/__support/str_to_integer.h +39 -27
- package/libcxx/libc/src/__support/wctype_utils.h +588 -0
- package/libunwind/src/AddressSpace.hpp +2 -1
- package/libunwind/src/DwarfParser.hpp +2 -1
- package/package.json +1 -1
- package/std/Build/Step/ConfigHeader.zig +1 -1
- package/std/Io/Kqueue.zig +1 -1
- package/std/Target.zig +5 -6
- package/std/bit_set.zig +76 -59
- package/std/c.zig +2 -2
- package/std/crypto/codecs/base64_hex_ct.zig +1 -1
- package/std/crypto/ml_kem.zig +0 -15
- package/std/enums.zig +2 -2
- package/std/fs/path.zig +1 -1
- package/std/math/float.zig +62 -0
- package/std/math/modf.zig +1 -1
- package/std/math.zig +1 -0
- package/std/std.zig +3 -0
- package/std/testing.zig +1 -1
- package/std/zig/target.zig +1 -2
- package/std/zon/parse.zig +1 -1
- package/compiler_rt/long_double.zig +0 -37
- package/libc/mingw/math/lrintl.c +0 -18
- package/libc/mingw/math/rintl.c +0 -16
- package/libc/musl/src/math/i386/lrintl.c +0 -8
- package/libc/musl/src/math/i386/rintl.c +0 -7
- package/libc/musl/src/math/lrintl.c +0 -36
- package/libc/musl/src/math/rintl.c +0 -29
- package/libc/musl/src/math/s390x/rintl.c +0 -15
- package/libc/musl/src/math/x32/lrintl.s +0 -7
- package/libc/musl/src/math/x32/rintl.s +0 -6
- package/libc/musl/src/math/x86_64/lrintl.c +0 -8
- package/libc/musl/src/math/x86_64/rintl.c +0 -7
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#include <limits.h>
|
|
2
|
-
#include <fenv.h>
|
|
3
|
-
#include "libm.h"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
|
|
7
|
-
long lrintl(long double x)
|
|
8
|
-
{
|
|
9
|
-
return lrint(x);
|
|
10
|
-
}
|
|
11
|
-
#elif defined(FE_INEXACT)
|
|
12
|
-
/*
|
|
13
|
-
see comments in lrint.c
|
|
14
|
-
|
|
15
|
-
Note that if LONG_MAX == 0x7fffffffffffffff && LDBL_MANT_DIG == 64
|
|
16
|
-
then x == 2**63 - 0.5 is the only input that overflows and
|
|
17
|
-
raises inexact (with tonearest or upward rounding mode)
|
|
18
|
-
*/
|
|
19
|
-
long lrintl(long double x)
|
|
20
|
-
{
|
|
21
|
-
#pragma STDC FENV_ACCESS ON
|
|
22
|
-
int e;
|
|
23
|
-
|
|
24
|
-
e = fetestexcept(FE_INEXACT);
|
|
25
|
-
x = rintl(x);
|
|
26
|
-
if (!e && (x > LONG_MAX || x < LONG_MIN))
|
|
27
|
-
feclearexcept(FE_INEXACT);
|
|
28
|
-
/* conversion */
|
|
29
|
-
return x;
|
|
30
|
-
}
|
|
31
|
-
#else
|
|
32
|
-
long lrintl(long double x)
|
|
33
|
-
{
|
|
34
|
-
return rintl(x);
|
|
35
|
-
}
|
|
36
|
-
#endif
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#include "libm.h"
|
|
2
|
-
|
|
3
|
-
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
|
|
4
|
-
long double rintl(long double x)
|
|
5
|
-
{
|
|
6
|
-
return rint(x);
|
|
7
|
-
}
|
|
8
|
-
#elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
|
|
9
|
-
|
|
10
|
-
static const long double toint = 1/LDBL_EPSILON;
|
|
11
|
-
|
|
12
|
-
long double rintl(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 (s)
|
|
22
|
-
y = x - toint + toint;
|
|
23
|
-
else
|
|
24
|
-
y = x + toint - toint;
|
|
25
|
-
if (y == 0)
|
|
26
|
-
return 0*x;
|
|
27
|
-
return y;
|
|
28
|
-
}
|
|
29
|
-
#endif
|