mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-02 13:05:42 +08:00
Remove unused TOINT_RINT and TOINT_SHIFT macros
Only have separate code paths for TOINT_INTRINSICS and !TOINT_INTRINSICS.
This commit is contained in:
parent
393a1cb4ea
commit
73a3e95ff2
@ -93,12 +93,6 @@ converttoint (double_t x)
|
|||||||
#ifndef TOINT_INTRINSICS
|
#ifndef TOINT_INTRINSICS
|
||||||
# define TOINT_INTRINSICS 0
|
# define TOINT_INTRINSICS 0
|
||||||
#endif
|
#endif
|
||||||
#ifndef TOINT_RINT
|
|
||||||
# define TOINT_RINT 0
|
|
||||||
#endif
|
|
||||||
#ifndef TOINT_SHIFT
|
|
||||||
# define TOINT_SHIFT 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static inline uint32_t
|
static inline uint32_t
|
||||||
asuint (float f)
|
asuint (float f)
|
||||||
|
@ -88,10 +88,7 @@ expf (float x)
|
|||||||
#if TOINT_INTRINSICS
|
#if TOINT_INTRINSICS
|
||||||
kd = roundtoint (z);
|
kd = roundtoint (z);
|
||||||
ki = converttoint (z);
|
ki = converttoint (z);
|
||||||
#elif TOINT_RINT
|
#else
|
||||||
kd = rint (z);
|
|
||||||
ki = (long) kd;
|
|
||||||
#elif TOINT_SHIFT
|
|
||||||
# define SHIFT __exp2f_data.shift
|
# define SHIFT __exp2f_data.shift
|
||||||
kd = (double) (z + SHIFT); /* Rounding to double precision is required. */
|
kd = (double) (z + SHIFT); /* Rounding to double precision is required. */
|
||||||
ki = asuint64 (kd);
|
ki = asuint64 (kd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user