projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various minor style fixes
[libm]
/
src
/
math
/
nextafterf.c
diff --git
a/src/math/nextafterf.c
b/src/math/nextafterf.c
index
cba2dbe
..
bdc88ca
100644
(file)
--- a/
src/math/nextafterf.c
+++ b/
src/math/nextafterf.c
@@
-40,15
+40,15
@@
float nextafterf(float x, float y)
}
if (hx >= 0) { /* x > 0 */
if (hx > hy) { /* x > y, x -= ulp */
}
if (hx >= 0) { /* x > 0 */
if (hx > hy) { /* x > y, x -= ulp */
- hx
-= 1
;
+ hx
--
;
} else { /* x < y, x += ulp */
} else { /* x < y, x += ulp */
- hx
+= 1
;
+ hx
++
;
}
} else { /* x < 0 */
if (hy >= 0 || hx > hy) { /* x < y, x -= ulp */
}
} else { /* x < 0 */
if (hy >= 0 || hx > hy) { /* x < y, x -= ulp */
- hx
-= 1
;
+ hx
--
;
} else { /* x > y, x += ulp */
} else { /* x > y, x += ulp */
- hx
+= 1
;
+ hx
++
;
}
}
hy = hx & 0x7f800000;
}
}
hy = hx & 0x7f800000;