diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-08-03 01:38:58 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-08-03 01:38:58 +0000 |
commit | 85ece84b1c955e2304e8519eb40ad8212a32a3ba (patch) | |
tree | 2b70dd38cfa86f04028556eaaeff383e3afc381e /apps/codecs/lib | |
parent | af6060a987a2ad6ecdf62eb6b13dca61d65d7318 (diff) |
Remove various ABS() definitions with a single one using typeof (if using gcc) to avoid multiple evaluations of the input expressions. Speex still uses its own as I didn't want to change this imported code too much.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22129 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib')
-rw-r--r-- | apps/codecs/lib/codeclib.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h index 52bf72f7dc..e7f45d3572 100644 --- a/apps/codecs/lib/codeclib.h +++ b/apps/codecs/lib/codeclib.h @@ -58,9 +58,6 @@ int strcmp(const char *, const char *); void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)); -#define abs(x) ((x)>0?(x):-(x)) -#define labs(x) abs(x) - /*MDCT library functions*/ extern void mdct_backward(int n, int32_t *in, int32_t *out); |