| ... | @@ -21,8 +21,8 @@ pub fn fabs(x: anytype) @TypeOf(x) { | ... | @@ -21,8 +21,8 @@ pub fn fabs(x: anytype) @TypeOf(x) { |
| 21 | } | 21 | } |
| 22 | | 22 | |
| 23 | test "math.fabs" { | 23 | test "math.fabs" { |
| 24 | // TODO add support for f80 & c_longdouble here | 24 | // TODO add support for c_longdouble here |
| 25 | inline for ([_]type{ f16, f32, f64, f128 }) |T| { | 25 | inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { |
| 26 | // normals | 26 | // normals |
| 27 | try expect(fabs(@as(T, 1.0)) == 1.0); | 27 | try expect(fabs(@as(T, 1.0)) == 1.0); |
| 28 | try expect(fabs(@as(T, -1.0)) == 1.0); | 28 | try expect(fabs(@as(T, -1.0)) == 1.0); |