summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2011-04-27 18:25:27 -0400
committerMatt Turner <mattst88@gmail.com>2011-09-21 17:12:04 -0400
commit9eab5b3443a1926a29385948acc6c5e0843465ea (patch)
tree893095ecd7e714f75b8b6fe146f8cfe0ce84ebe9 /include
parent40a47bd628f525d2d8bd3ca76554089a6e9d2a1d (diff)
Replace Fabs() macro with fabs() function
gcc generates better code with fabs() anyway. Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Tested-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/misc.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/misc.h b/include/misc.h
index bdcc8cc1e..48492573e 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -139,9 +139,6 @@ typedef struct _xReq *xReqPtr;
* it in case we haven't done that yet.
*/
#include <stdlib.h>
-#ifndef Fabs
-#define Fabs(a) ((a) > 0.0 ? (a) : -(a)) /* floating absolute value */
-#endif
#define sign(x) ((x) < 0 ? -1 : ((x) > 0 ? 1 : 0))
/* this assumes b > 0 */
#define modulus(a, b, d) if (((d) = (a) % (b)) < 0) (d) += (b)