File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1034,7 +1034,7 @@ pub fn libm() {
1034
1034
assert_approx_eq ! ( 400f64 . powf( 0.5f64 ) , 20f64 ) ;
1035
1035
1036
1036
// Some inputs to powf and powi result in fixed outputs
1037
- // and thus must be exactly equal to that value
1037
+ // and thus must be exactly equal to that value.
1038
1038
// C standard says:
1039
1039
// 1^y = 1 for any y, even a NaN.
1040
1040
assert_eq ! ( 1f32 . powf( 10.0 ) , 1.0 ) ;
@@ -1069,11 +1069,13 @@ pub fn libm() {
1069
1069
1070
1070
// For pow (powf in rust) the C standard says:
1071
1071
// x^0 = 1 for all x even a sNaN
1072
+ // FIXME(#4286): this does not match the behavior of all implementations.
1072
1073
assert_eq ! ( SNAN_F32 . powf( 0.0 ) , 1.0 ) ;
1073
1074
assert_eq ! ( SNAN_F64 . powf( 0.0 ) , 1.0 ) ;
1074
1075
1075
1076
// For pown (powi in rust) the C standard says:
1076
1077
// x^0 = 1 for all x even a sNaN
1078
+ // FIXME(#4286): this does not match the behavior of all implementations.
1077
1079
assert_eq ! ( SNAN_F32 . powi( 0 ) , 1.0 ) ;
1078
1080
assert_eq ! ( SNAN_F64 . powi( 0 ) , 1.0 ) ;
1079
1081
You can’t perform that action at this time.
0 commit comments