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
/
remquof.c
diff --git
a/src/math/remquof.c
b/src/math/remquof.c
index
beff3c5
..
11569ce
100644
(file)
--- a/
src/math/remquof.c
+++ b/
src/math/remquof.c
@@
-47,13
+47,13
@@
float remquof(float x, float y, int *quo)
/* determine ix = ilogb(x) */
if (hx < 0x00800000) { /* subnormal x */
/* determine ix = ilogb(x) */
if (hx < 0x00800000) { /* subnormal x */
- for (ix = -126, i=hx<<8; i>0; i<<=1) ix
-=1
;
+ for (ix = -126, i=hx<<8; i>0; i<<=1) ix
--
;
} else
ix = (hx>>23) - 127;
/* determine iy = ilogb(y) */
if (hy < 0x00800000) { /* subnormal y */
} else
ix = (hx>>23) - 127;
/* determine iy = ilogb(y) */
if (hy < 0x00800000) { /* subnormal y */
- for (iy = -126, i=hy<<8; i>0; i<<=1) iy
-=1
;
+ for (iy = -126, i=hy<<8; i>0; i<<=1) iy
--
;
} else
iy = (hy>>23) - 127;
} else
iy = (hy>>23) - 127;
@@
-97,7
+97,7
@@
float remquof(float x, float y, int *quo)
}
while (hx < 0x00800000) { /* normalize x */
hx <<= 1;
}
while (hx < 0x00800000) { /* normalize x */
hx <<= 1;
- iy
-= 1
;
+ iy
--
;
}
if (iy >= -126) { /* normalize output */
hx = (hx-0x00800000)|((iy+127)<<23);
}
if (iy >= -126) { /* normalize output */
hx = (hx-0x00800000)|((iy+127)<<23);