From 0e9be4db8f655d3dc006c5b101f15a5912a5846f Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Fri, 15 May 2015 10:53:55 +0000 Subject: Remove various ABS macros and replace uses with fabs (or in one case abs) which is more efficient on all targets. --- stdlib/gmp-impl.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'stdlib/gmp-impl.h') diff --git a/stdlib/gmp-impl.h b/stdlib/gmp-impl.h index 314a4b3a29..2cbb21b151 100644 --- a/stdlib/gmp-impl.h +++ b/stdlib/gmp-impl.h @@ -64,7 +64,6 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see #define inline /* Empty */ #endif -#define ABS(x) (x >= 0 ? x : -x) #ifndef MIN #define MIN(l,o) ((l) < (o) ? (l) : (o)) #endif @@ -74,7 +73,6 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see /* Field access macros. */ #define SIZ(x) ((x)->_mp_size) -#define ABSIZ(x) ABS (SIZ (x)) #define PTR(x) ((x)->_mp_d) #define EXP(x) ((x)->_mp_exp) #define PREC(x) ((x)->_mp_prec) -- cgit 1.4.1