@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.
Files changed (75) hide show
  1. package/c/math.zig +31 -2
  2. package/compiler/resinator/compile.zig +1 -1
  3. package/compiler_rt/cos.zig +1 -1
  4. package/compiler_rt/rem_pio2l.zig +1 -1
  5. package/compiler_rt/sin.zig +1 -1
  6. package/compiler_rt/sincos.zig +1 -1
  7. package/compiler_rt/tan.zig +1 -1
  8. package/libcxx/libc/hdr/errno_macros.h +3 -1
  9. package/libcxx/libc/hdr/stdint_proxy.h +18 -0
  10. package/libcxx/libc/hdr/types/wchar_t.h +23 -0
  11. package/libcxx/libc/hdr/wchar_overlay.h +69 -0
  12. package/libcxx/libc/include/llvm-libc-macros/cfloat128-macros.h +41 -0
  13. package/libcxx/libc/include/llvm-libc-macros/cfloat16-macros.h +20 -0
  14. package/libcxx/libc/include/llvm-libc-macros/wchar-macros.h +18 -0
  15. package/libcxx/libc/include/llvm-libc-types/cfloat128.h +11 -28
  16. package/libcxx/libc/include/llvm-libc-types/cfloat16.h +4 -7
  17. package/libcxx/libc/include/llvm-libc-types/wint_t.h +14 -0
  18. package/libcxx/libc/shared/libc_common.h +5 -0
  19. package/libcxx/libc/src/__support/CPP/bit.h +50 -12
  20. package/libcxx/libc/src/__support/CPP/type_traits/is_complex.h +7 -0
  21. package/libcxx/libc/src/__support/CPP/type_traits/is_destructible.h +2 -1
  22. package/libcxx/libc/src/__support/CPP/type_traits/is_unsigned.h +6 -0
  23. package/libcxx/libc/src/__support/CPP/utility/integer_sequence.h +10 -0
  24. package/libcxx/libc/src/__support/FPUtil/FPBits.h +6 -7
  25. package/libcxx/libc/src/__support/FPUtil/rounding_mode.h +50 -4
  26. package/libcxx/libc/src/__support/big_int.h +14 -14
  27. package/libcxx/libc/src/__support/common.h +3 -2
  28. package/libcxx/libc/src/__support/ctype_utils.h +19 -12
  29. package/libcxx/libc/src/__support/detailed_powers_of_ten.h +1 -2
  30. package/libcxx/libc/src/__support/high_precision_decimal.h +33 -14
  31. package/libcxx/libc/src/__support/libc_assert.h +2 -0
  32. package/libcxx/libc/src/__support/macros/attributes.h +44 -1
  33. package/libcxx/libc/src/__support/macros/config.h +23 -0
  34. package/libcxx/libc/src/__support/macros/null_check.h +1 -2
  35. package/libcxx/libc/src/__support/macros/optimization.h +3 -0
  36. package/libcxx/libc/src/__support/macros/properties/architectures.h +5 -1
  37. package/libcxx/libc/src/__support/macros/properties/compiler.h +8 -3
  38. package/libcxx/libc/src/__support/macros/properties/cpu_features.h +17 -1
  39. package/libcxx/libc/src/__support/macros/properties/types.h +2 -3
  40. package/libcxx/libc/src/__support/macros/sanitizer.h +0 -10
  41. package/libcxx/libc/src/__support/math_extras.h +20 -4
  42. package/libcxx/libc/src/__support/str_to_float.h +98 -125
  43. package/libcxx/libc/src/__support/str_to_integer.h +39 -27
  44. package/libcxx/libc/src/__support/wctype_utils.h +588 -0
  45. package/libunwind/src/AddressSpace.hpp +2 -1
  46. package/libunwind/src/DwarfParser.hpp +2 -1
  47. package/package.json +1 -1
  48. package/std/Build/Step/ConfigHeader.zig +1 -1
  49. package/std/Io/Kqueue.zig +1 -1
  50. package/std/Target.zig +5 -6
  51. package/std/bit_set.zig +76 -59
  52. package/std/c.zig +2 -2
  53. package/std/crypto/codecs/base64_hex_ct.zig +1 -1
  54. package/std/crypto/ml_kem.zig +0 -15
  55. package/std/enums.zig +2 -2
  56. package/std/fs/path.zig +1 -1
  57. package/std/math/float.zig +62 -0
  58. package/std/math/modf.zig +1 -1
  59. package/std/math.zig +1 -0
  60. package/std/std.zig +3 -0
  61. package/std/testing.zig +1 -1
  62. package/std/zig/target.zig +1 -2
  63. package/std/zon/parse.zig +1 -1
  64. package/compiler_rt/long_double.zig +0 -37
  65. package/libc/mingw/math/lrintl.c +0 -18
  66. package/libc/mingw/math/rintl.c +0 -16
  67. package/libc/musl/src/math/i386/lrintl.c +0 -8
  68. package/libc/musl/src/math/i386/rintl.c +0 -7
  69. package/libc/musl/src/math/lrintl.c +0 -36
  70. package/libc/musl/src/math/rintl.c +0 -29
  71. package/libc/musl/src/math/s390x/rintl.c +0 -15
  72. package/libc/musl/src/math/x32/lrintl.s +0 -7
  73. package/libc/musl/src/math/x32/rintl.s +0 -6
  74. package/libc/musl/src/math/x86_64/lrintl.c +0 -8
  75. package/libc/musl/src/math/x86_64/rintl.c +0 -7
@@ -1,7 +0,0 @@
1
- #include <math.h>
2
-
3
- long double rintl(long double x)
4
- {
5
- __asm__ ("frndint" : "+t"(x));
6
- return x;
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
@@ -1,15 +0,0 @@
1
- #include <math.h>
2
-
3
- #if defined(__HTM__) || __ARCH__ >= 9
4
-
5
- long double rintl(long double x)
6
- {
7
- __asm__ ("fixbr %0, 0, %1" : "=f"(x) : "f"(x));
8
- return x;
9
- }
10
-
11
- #else
12
-
13
- #include "../rintl.c"
14
-
15
- #endif
@@ -1,7 +0,0 @@
1
- .global lrintl
2
- .type lrintl,@function
3
- lrintl:
4
- fldt 8(%esp)
5
- fistpl 8(%esp)
6
- movl 8(%esp),%eax
7
- ret
@@ -1,6 +0,0 @@
1
- .global rintl
2
- .type rintl,@function
3
- rintl:
4
- fldt 8(%esp)
5
- frndint
6
- ret
@@ -1,8 +0,0 @@
1
- #include <math.h>
2
-
3
- long lrintl(long double x)
4
- {
5
- long r;
6
- __asm__ ("fistpll %0" : "=m"(r) : "t"(x) : "st");
7
- return r;
8
- }
@@ -1,7 +0,0 @@
1
- #include <math.h>
2
-
3
- long double rintl(long double x)
4
- {
5
- __asm__ ("frndint" : "+t"(x));
6
- return x;
7
- }