std.math.asinh: changed unsigned int to hexadecimal

This commit is contained in:
Ruben Dimas 2023-09-12 03:24:38 -04:00 committed by Marc Tiehuis
parent a8a4f1755e
commit 402468b210

View File

@ -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))));