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/plugins/spacerocks.c | |
parent | af6060a987a2ad6ecdf62eb6b13dca61d65d7318 (diff) | |
download | rockbox-85ece84b1c955e2304e8519eb40ad8212a32a3ba.tar.gz rockbox-85ece84b1c955e2304e8519eb40ad8212a32a3ba.zip |
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/plugins/spacerocks.c')
-rw-r--r-- | apps/plugins/spacerocks.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c index 7ceec16372..32d48862ae 100644 --- a/apps/plugins/spacerocks.c +++ b/apps/plugins/spacerocks.c | |||
@@ -246,8 +246,6 @@ PLUGIN_HEADER | |||
246 | #endif | 246 | #endif |
247 | #endif | 247 | #endif |
248 | 248 | ||
249 | #define ABS(x) ((x)>0?(x):-(x)) | ||
250 | |||
251 | #define RES MAX(LCD_WIDTH, LCD_HEIGHT) | 249 | #define RES MAX(LCD_WIDTH, LCD_HEIGHT) |
252 | #define LARGE_LCD RES >= 200 | 250 | #define LARGE_LCD RES >= 200 |
253 | #define ENEMY_MISSILE_SURVIVAL_LENGTH RES/2 | 251 | #define ENEMY_MISSILE_SURVIVAL_LENGTH RES/2 |