Skip to content

Commit

Permalink
std.math.asinh: changed unsigned int to hexadecimal
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimas-ut authored and tiehuis committed Sep 12, 2023
1 parent a8a4f17 commit 402468b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/std/math/asinh.zig
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ 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))));
}

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))));
Expand Down

0 comments on commit 402468b

Please sign in to comment.