mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 15:11:55 +00:00
math cleanup: use 1.0f instead of (float)1.0
This commit is contained in:
@ -36,7 +36,7 @@ float floorf(float x)
|
||||
if (j0 < 23) {
|
||||
if (j0 < 0) { /* |x| < 1 */
|
||||
/* raise inexact if x != 0 */
|
||||
if (huge+x > (float)0.0) {
|
||||
if (huge+x > 0.0f) {
|
||||
if (i0 >= 0) /* x >= 0 */
|
||||
i0 = 0;
|
||||
else if ((i0&0x7fffffff) != 0)
|
||||
@ -47,7 +47,7 @@ float floorf(float x)
|
||||
if ((i0&i) == 0)
|
||||
return x; /* x is integral */
|
||||
/* raise inexact flag */
|
||||
if (huge+x > (float)0.0) {
|
||||
if (huge+x > 0.0f) {
|
||||
if (i0 < 0)
|
||||
i0 += 0x00800000>>j0;
|
||||
i0 &= ~i;
|
||||
|
Reference in New Issue
Block a user