From 4cc0b97609a9c94abef6b4422c2c87c599776f44 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 7 May 2005 22:10:35 +0000 Subject: Hush up warnings by defining away functions/macros. This should be fixed if actual functionality is wanted (by including the proper headers and making sure rockbox provides these functions). pow(), floor(), log() and exp() just feel veeeery floatish... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6417 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/dumb/src/it/xmeffect.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'apps/codecs/dumb/src/it/xmeffect.c') diff --git a/apps/codecs/dumb/src/it/xmeffect.c b/apps/codecs/dumb/src/it/xmeffect.c index 51995f3bb8..81b86c95b6 100644 --- a/apps/codecs/dumb/src/it/xmeffect.c +++ b/apps/codecs/dumb/src/it/xmeffect.c @@ -78,12 +78,16 @@ static const char xm_has_memory[] = { /* Effects marked with 'special' are handled specifically in itrender.c */ void _dumb_it_xm_convert_effect(int effect, int value, IT_ENTRY *entry) { +#ifdef SIMULATOR const int log = 0; +#endif if ((!effect && !value) || (effect >= XM_N_EFFECTS)) return; +#ifdef SIMULATOR if (log) printf("%c%02X", (effect<10)?('0'+effect):('A'+effect-10), value); +#endif /* Linearisation of the effect number... */ if (effect == XM_E) { @@ -94,7 +98,9 @@ if (log) printf("%c%02X", (effect<10)?('0'+effect):('A'+effect-10), value); value = LOW(value); } +#ifdef SIMULATOR if (log) printf(" - %2d %02X", effect, value); +#endif #if 0 // This should be handled in itrender.c! /* update effect memory */ @@ -227,16 +233,20 @@ if (log) printf(" - %2d %02X", effect, value); entry->mask &= ~IT_ENTRY_EFFECT; } +#ifdef SIMULATOR if (log) printf(" - %2d %02X", effect, value); - +#endif + /* Inverse linearisation... */ if (effect >= SBASE && effect < SBASE+16) { value = EFFECT_VALUE(effect-SBASE, value); effect = IT_S; } +#ifdef SIMULATOR if (log) printf(" - %c%02X\n", 'A'+effect-1, value); - +#endif + entry->effect = effect; entry->effectvalue = value; } -- cgit v1.2.3