Run cargo fmt
This commit is contained in:
+6
-4
@@ -136,9 +136,10 @@ pub fn powf(x: f32, y: f32) -> f32 {
|
||||
return x * x;
|
||||
}
|
||||
|
||||
if hy == 0x3f000000
|
||||
if hy == 0x3f000000
|
||||
/* y is 0.5 */
|
||||
&& hx >= 0 {
|
||||
&& hx >= 0
|
||||
{
|
||||
/* x >= +0 */
|
||||
return sqrtf(x);
|
||||
}
|
||||
@@ -295,9 +296,10 @@ pub fn powf(x: f32, y: f32) -> f32 {
|
||||
/* z < -150 */
|
||||
// FIXME: check should be (uint32_t)j > 0xc3160000
|
||||
return sn * TINY * TINY; /* underflow */
|
||||
} else if j as u32 == 0xc3160000
|
||||
} else if j as u32 == 0xc3160000
|
||||
/* z == -150 */
|
||||
&& p_l <= z - p_h {
|
||||
&& p_l <= z - p_h
|
||||
{
|
||||
return sn * TINY * TINY; /* underflow */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user