| ... | @@ -112,7 +112,7 @@ test "math.asinh64" { | ... | @@ -112,7 +112,7 @@ test "math.asinh64" { |
| 112 | | 112 | |
| 113 | test "math.asinh32.special" { | 113 | test "math.asinh32.special" { |
| 114 | try expect(asinh32(0.0) == 0.0); | 114 | try expect(asinh32(0.0) == 0.0); |
| 115 | try expect(@as(u32, @bitCast(asinh32(-0.0))) == @as(u32, 2147483648)); | 115 | try expect(@as(u32, @bitCast(asinh32(-0.0))) == @as(u32, 0x80000000)); |
| 116 | try expect(math.isPositiveInf(asinh32(math.inf(f32)))); | 116 | try expect(math.isPositiveInf(asinh32(math.inf(f32)))); |
| 117 | try expect(math.isNegativeInf(asinh32(-math.inf(f32)))); | 117 | try expect(math.isNegativeInf(asinh32(-math.inf(f32)))); |
| 118 | try expect(math.isNan(asinh32(math.nan(f32)))); | 118 | try expect(math.isNan(asinh32(math.nan(f32)))); |
| ... | @@ -120,7 +120,7 @@ test "math.asinh32.special" { | ... | @@ -120,7 +120,7 @@ test "math.asinh32.special" { |
| 120 | | 120 | |
| 121 | test "math.asinh64.special" { | 121 | test "math.asinh64.special" { |
| 122 | try expect(asinh64(0.0) == 0.0); | 122 | try expect(asinh64(0.0) == 0.0); |
| 123 | try expect(@as(u64, @bitCast(asinh64(-0.0))) == @as(u64, 9223372036854775808)); | 123 | try expect(@as(u64, @bitCast(asinh64(-0.0))) == @as(u64, 0x8000000000000000)); |
| 124 | try expect(math.isPositiveInf(asinh64(math.inf(f64)))); | 124 | try expect(math.isPositiveInf(asinh64(math.inf(f64)))); |
| 125 | try expect(math.isNegativeInf(asinh64(-math.inf(f64)))); | 125 | try expect(math.isNegativeInf(asinh64(-math.inf(f64)))); |
| 126 | try expect(math.isNan(asinh64(math.nan(f64)))); | 126 | try expect(math.isNan(asinh64(math.nan(f64)))); |