Skip to content

Commit ee6c046

Browse files
committed
Run cargo fmt
1 parent 3f16dad commit ee6c046

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/math/powf.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ pub fn powf(x: f32, y: f32) -> f32 {
136136
return x * x;
137137
}
138138

139-
if hy == 0x3f000000
139+
if hy == 0x3f000000
140140
/* y is 0.5 */
141-
&& hx >= 0 {
141+
&& hx >= 0
142+
{
142143
/* x >= +0 */
143144
return sqrtf(x);
144145
}
@@ -295,9 +296,10 @@ pub fn powf(x: f32, y: f32) -> f32 {
295296
/* z < -150 */
296297
// FIXME: check should be (uint32_t)j > 0xc3160000
297298
return sn * TINY * TINY; /* underflow */
298-
} else if j as u32 == 0xc3160000
299+
} else if j as u32 == 0xc3160000
299300
/* z == -150 */
300-
&& p_l <= z - p_h {
301+
&& p_l <= z - p_h
302+
{
301303
return sn * TINY * TINY; /* underflow */
302304
}
303305

0 commit comments

Comments
 (0)