We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cargo fmt
1 parent 3f16dad commit ee6c046Copy full SHA for ee6c046
src/math/powf.rs
@@ -136,9 +136,10 @@ pub fn powf(x: f32, y: f32) -> f32 {
136
return x * x;
137
}
138
139
- if hy == 0x3f000000
+ if hy == 0x3f000000
140
/* y is 0.5 */
141
- && hx >= 0 {
+ && hx >= 0
142
+ {
143
/* x >= +0 */
144
return sqrtf(x);
145
@@ -295,9 +296,10 @@ pub fn powf(x: f32, y: f32) -> f32 {
295
296
/* z < -150 */
297
// FIXME: check should be (uint32_t)j > 0xc3160000
298
return sn * TINY * TINY; /* underflow */
- } else if j as u32 == 0xc3160000
299
+ } else if j as u32 == 0xc3160000
300
/* z == -150 */
- && p_l <= z - p_h {
301
+ && p_l <= z - p_h
302
303
304
305
0 commit comments