@zigc/lib 0.17.0-dev.296 → 0.17.0-dev.304
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/package.json +1 -1
- package/std/Target/spirv.zig +1 -1
- package/std/math/acos.zig +4 -0
- package/std/math/asin.zig +4 -0
- package/std/math/atan.zig +5 -0
- package/std/math/hypot.zig +4 -0
- package/std/zig/LibCDirs.zig +0 -3
package/package.json
CHANGED
package/std/Target/spirv.zig
CHANGED
|
@@ -123,7 +123,7 @@ pub const all_features = blk: {
|
|
|
123
123
|
};
|
|
124
124
|
result[@intFromEnum(Feature.variable_pointers)] = .{
|
|
125
125
|
.llvm_name = null,
|
|
126
|
-
.description = "Enable
|
|
126
|
+
.description = "Enable SPV_KHR_variable_pointers extension and the VariablePointers capability",
|
|
127
127
|
.dependencies = featureSet(&[_]Feature{
|
|
128
128
|
.v1_0,
|
|
129
129
|
}),
|
package/std/math/acos.zig
CHANGED
|
@@ -337,6 +337,8 @@ fn acosBinary128(x: f128) f128 {
|
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
test "acosBinary16.special" {
|
|
340
|
+
if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest;
|
|
341
|
+
|
|
340
342
|
try testing.expectApproxEqAbs(0x1.92p0, acosBinary16(0x0p+0), math.floatEpsAt(f16, 0x1.92p0));
|
|
341
343
|
try testing.expectApproxEqAbs(0x1.92p1, acosBinary16(-0x1p+0), math.floatEpsAt(f16, 0x1.92p1));
|
|
342
344
|
try testing.expectEqual(0x0p+0, acosBinary16(0x1p+0));
|
|
@@ -348,6 +350,8 @@ test "acosBinary16.special" {
|
|
|
348
350
|
}
|
|
349
351
|
|
|
350
352
|
test "acosBinary16" {
|
|
353
|
+
if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest;
|
|
354
|
+
|
|
351
355
|
try testing.expectApproxEqAbs(0x1.834p0, acosBinary16(0x1.db4p-5), math.floatEpsAt(f16, 0x1.834p0));
|
|
352
356
|
try testing.expectApproxEqAbs(0x1.d48p0, acosBinary16(-0x1.068p-2), math.floatEpsAt(f16, 0x1.d48p0));
|
|
353
357
|
try testing.expectApproxEqAbs(0x1.b7cp0, acosBinary16(-0x1.2c4p-3), math.floatEpsAt(f16, 0x1.b7cp0));
|
package/std/math/asin.zig
CHANGED
|
@@ -326,6 +326,8 @@ fn asinBinary128(x: f128) f128 {
|
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
test "asinBinary16.special" {
|
|
329
|
+
if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest;
|
|
330
|
+
|
|
329
331
|
try testing.expectApproxEqAbs(0x1.92p0, asinBinary16(0x1p+0), math.floatEpsAt(f16, 0x1.92p0));
|
|
330
332
|
try testing.expectApproxEqAbs(-0x1.92p0, asinBinary16(-0x1p+0), math.floatEpsAt(f16, -0x1.92p0));
|
|
331
333
|
try testing.expectEqual(0x0p+0, asinBinary16(0x0p+0));
|
|
@@ -338,6 +340,8 @@ test "asinBinary16.special" {
|
|
|
338
340
|
}
|
|
339
341
|
|
|
340
342
|
test "asinBinary16" {
|
|
343
|
+
if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest;
|
|
344
|
+
|
|
341
345
|
try testing.expectApproxEqAbs(-0x1.e4cp-6, asinBinary16(-0x1.e4cp-6), math.floatEpsAt(f16, -0x1.e4cp-6));
|
|
342
346
|
try testing.expectApproxEqAbs(0x1.2a8p0, asinBinary16(0x1.d68p-1), math.floatEpsAt(f16, 0x1.2a8p0));
|
|
343
347
|
try testing.expectApproxEqAbs(-0x1.eep-1, asinBinary16(-0x1.a4cp-1), math.floatEpsAt(f16, -0x1.eep-1));
|
package/std/math/atan.zig
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
// https://github.com/ARM-software/optimized-routines/blob/master/math/aarch64/advsimd/atanf.c
|
|
12
12
|
// https://github.com/ARM-software/optimized-routines/blob/master/math/aarch64/advsimd/atan.c
|
|
13
13
|
|
|
14
|
+
const builtin = @import("builtin");
|
|
14
15
|
const std = @import("../std.zig");
|
|
15
16
|
const math = std.math;
|
|
16
17
|
const mem = std.mem;
|
|
@@ -480,6 +481,8 @@ fn atanBinary128(x: f128) f128 {
|
|
|
480
481
|
}
|
|
481
482
|
|
|
482
483
|
test "atanBinary16.special" {
|
|
484
|
+
if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest;
|
|
485
|
+
|
|
483
486
|
try testing.expectEqual(0x0p+0, atanBinary16(0x0p+0));
|
|
484
487
|
try testing.expectEqual(-0x0p+0, atanBinary16(-0x0p+0));
|
|
485
488
|
try testing.expectApproxEqAbs(0x1.92p-1, atanBinary16(0x1p+0), math.floatEpsAt(f16, 0x1.92p-1));
|
|
@@ -490,6 +493,8 @@ test "atanBinary16.special" {
|
|
|
490
493
|
}
|
|
491
494
|
|
|
492
495
|
test "atanBinary16" {
|
|
496
|
+
if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest;
|
|
497
|
+
|
|
493
498
|
try testing.expectApproxEqAbs(-0x1.74cp-2, atanBinary16(-0x1.864p-2), math.floatEpsAt(f16, -0x1.74cp-2));
|
|
494
499
|
try testing.expectApproxEqAbs(-0x1.374p0, atanBinary16(-0x1.59cp1), math.floatEpsAt(f16, -0x1.374p0));
|
|
495
500
|
try testing.expectApproxEqAbs(-0x1.11cp0, atanBinary16(-0x1.d2cp0), math.floatEpsAt(f16, -0x1.11cp0));
|
package/std/math/hypot.zig
CHANGED
|
@@ -98,7 +98,9 @@ test hypot {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
test "hypot.correct" {
|
|
101
|
+
if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest;
|
|
101
102
|
if (builtin.cpu.arch.isPowerPC() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171869
|
|
103
|
+
|
|
102
104
|
inline for (.{ f16, f32, f64, f128 }) |T| {
|
|
103
105
|
inline for (hypot_test_cases) |v| {
|
|
104
106
|
const a: T, const b: T, const c: T = v;
|
|
@@ -108,7 +110,9 @@ test "hypot.correct" {
|
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
test "hypot.precise" {
|
|
113
|
+
if (builtin.target.cpu.arch == .x86_64 and builtin.target.os.tag == .macos) return error.SkipZigTest;
|
|
111
114
|
if (builtin.cpu.arch.isPowerPC() and builtin.mode != .Debug) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/171869
|
|
115
|
+
|
|
112
116
|
inline for (.{ f16, f32, f64 }) |T| { // f128 seems to be 5 ulp
|
|
113
117
|
inline for (hypot_test_cases) |v| {
|
|
114
118
|
const a: T, const b: T, const c: T = v;
|
package/std/zig/LibCDirs.zig
CHANGED
|
@@ -146,9 +146,6 @@ fn detectFromInstallation(arena: Allocator, target: *const std.Target, lci: *con
|
|
|
146
146
|
const path = try std.fs.path.join(arena, &[_][]const u8{ include_dir_path, subdir });
|
|
147
147
|
try list.append(path);
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
const config_dir = try std.fs.path.join(arena, &[_][]const u8{ include_dir_path, "config" });
|
|
151
|
-
try list.append(config_dir);
|
|
152
149
|
}
|
|
153
150
|
|
|
154
151
|
var sysroot: ?[]const u8 = null;
|