forked from len0rd/rockbox
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
This commit is contained in:
parent
af6060a987
commit
85ece84b1c
9 changed files with 12 additions and 22 deletions
|
|
@ -60,7 +60,7 @@
|
|||
#define maxdepth 30
|
||||
#define true 1
|
||||
#define false 0
|
||||
#define absv(x) ((x) < 0 ? -(x) : (x))
|
||||
#define absv(x) (ABS(x))
|
||||
#define taxicab(a,b) (abs(column[a]-column[b]) + abs(row[a]-row[b]))
|
||||
|
||||
/* ---- Chess datatypes and variables ---- */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue