mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std.math.asinh: changed unsigned int to hexadecimal
This commit is contained in:
parent
a8a4f1755e
commit
402468b210
@ -112,7 +112,7 @@ test "math.asinh64" {
|
||||
|
||||
test "math.asinh32.special" {
|
||||
try expect(asinh32(0.0) == 0.0);
|
||||
try expect(@as(u32, @bitCast(asinh32(-0.0))) == @as(u32, 2147483648));
|
||||
try expect(@as(u32, @bitCast(asinh32(-0.0))) == @as(u32, 0x80000000));
|
||||
try expect(math.isPositiveInf(asinh32(math.inf(f32))));
|
||||
try expect(math.isNegativeInf(asinh32(-math.inf(f32))));
|
||||
try expect(math.isNan(asinh32(math.nan(f32))));
|
||||
@ -120,7 +120,7 @@ test "math.asinh32.special" {
|
||||
|
||||
test "math.asinh64.special" {
|
||||
try expect(asinh64(0.0) == 0.0);
|
||||
try expect(@as(u64, @bitCast(asinh64(-0.0))) == @as(u64, 9223372036854775808));
|
||||
try expect(@as(u64, @bitCast(asinh64(-0.0))) == @as(u64, 0x8000000000000000));
|
||||
try expect(math.isPositiveInf(asinh64(math.inf(f64))));
|
||||
try expect(math.isNegativeInf(asinh64(-math.inf(f64))));
|
||||
try expect(math.isNan(asinh64(math.nan(f64))));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user