projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use #if LDBL_MANT_DIG == ... instead of custom LD80 etc macros
[libm]
/
src
/
math
/
__rem_pio2f.c
diff --git
a/src/math/__rem_pio2f.c
b/src/math/__rem_pio2f.c
index
7fa5029
..
965dc46
100644
(file)
--- a/
src/math/__rem_pio2f.c
+++ b/
src/math/__rem_pio2f.c
@@
-17,7
+17,7
@@
*
* return the remainder of x rem pi/2 in *y
* use double precision for everything except passing x
*
* return the remainder of x rem pi/2 in *y
* use double precision for everything except passing x
- * use __rem_pio2_
slow
() for large x
+ * use __rem_pio2_
large
() for large x
*/
#include "libm.h"
*/
#include "libm.h"
@@
-68,7
+68,7
@@
int __rem_pio2f(float x, double *y)
e0 = (ix>>23) - 150; /* e0 = ilogb(|x|)-23; */
SET_FLOAT_WORD(z, ix - ((int32_t)(e0<<23)));
tx[0] = z;
e0 = (ix>>23) - 150; /* e0 = ilogb(|x|)-23; */
SET_FLOAT_WORD(z, ix - ((int32_t)(e0<<23)));
tx[0] = z;
- n = __rem_pio2_
slow
(tx,ty,e0,1,0);
+ n = __rem_pio2_
large
(tx,ty,e0,1,0);
if (hx < 0) {
*y = -ty[0];
return -n;
if (hx < 0) {
*y = -ty[0];
return -n;