diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2018-07-05 12:42:13 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-07-06 10:29:01 +0200 |
commit | 73a3e95ff2b08c61f2a046ffc543ae6eee589b03 (patch) | |
tree | e30e8f5200fe4dd0ce8cea3e4974a9c5d211de79 | |
parent | 393a1cb4eaeadbc67587a009328715bbc42e56b7 (diff) | |
download | newlib-73a3e95ff2b08c61f2a046ffc543ae6eee589b03.zip newlib-73a3e95ff2b08c61f2a046ffc543ae6eee589b03.tar.gz newlib-73a3e95ff2b08c61f2a046ffc543ae6eee589b03.tar.bz2 |
Remove unused TOINT_RINT and TOINT_SHIFT macros
Only have separate code paths for TOINT_INTRINSICS and !TOINT_INTRINSICS.
-rw-r--r-- | newlib/libm/common/math_config.h | 6 | ||||
-rw-r--r-- | newlib/libm/common/sf_exp.c | 5 |
2 files changed, 1 insertions, 10 deletions
diff --git a/newlib/libm/common/math_config.h b/newlib/libm/common/math_config.h index 1f83756..b46e44e 100644 --- a/newlib/libm/common/math_config.h +++ b/newlib/libm/common/math_config.h @@ -93,12 +93,6 @@ converttoint (double_t x) #ifndef TOINT_INTRINSICS # define TOINT_INTRINSICS 0 #endif -#ifndef TOINT_RINT -# define TOINT_RINT 0 -#endif -#ifndef TOINT_SHIFT -# define TOINT_SHIFT 1 -#endif static inline uint32_t asuint (float f) diff --git a/newlib/libm/common/sf_exp.c b/newlib/libm/common/sf_exp.c index 79ec62b..5d72c34 100644 --- a/newlib/libm/common/sf_exp.c +++ b/newlib/libm/common/sf_exp.c @@ -88,10 +88,7 @@ expf (float x) #if TOINT_INTRINSICS kd = roundtoint (z); ki = converttoint (z); -#elif TOINT_RINT - kd = rint (z); - ki = (long) kd; -#elif TOINT_SHIFT +#else # define SHIFT __exp2f_data.shift kd = (double) (z + SHIFT); /* Rounding to double precision is required. */ ki = asuint64 (kd); |