diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-07-05 18:06:07 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-07-05 18:06:07 +0000 |
commit | 802743a061e01150db544c8e072cd794731b18a7 (patch) | |
tree | 311abcc9e51973907899a4585dd0e3a2a31572eb /apps/plugins/vu_meter.c | |
parent | 427bf0b8936f2654fe79e8c5864918530b8838dd (diff) | |
download | rockbox-802743a061e01150db544c8e072cd794731b18a7.tar.gz rockbox-802743a061e01150db544c8e072cd794731b18a7.zip |
Take 2 at 'Consolidate all fixed point math routines in one library' (FS#10400) by Jeffrey Goode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21664 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/vu_meter.c')
-rw-r--r-- | apps/plugins/vu_meter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c index 16aac3a011..74c3b1cf97 100644 --- a/apps/plugins/vu_meter.c +++ b/apps/plugins/vu_meter.c | |||
@@ -415,7 +415,7 @@ void calc_scales(void) | |||
415 | for (i=1; i <= half_width; i++) | 415 | for (i=1; i <= half_width; i++) |
416 | { | 416 | { |
417 | /* analog scale */ | 417 | /* analog scale */ |
418 | y = (half_width/5)*flog(i*fx_log_factor); | 418 | y = (half_width/5)*fp16_log(i*fx_log_factor); |
419 | 419 | ||
420 | /* better way of checking for negative values? */ | 420 | /* better way of checking for negative values? */ |
421 | z = y>>16; | 421 | z = y>>16; |
@@ -431,7 +431,7 @@ void calc_scales(void) | |||
431 | k = nh2 - ( j * j ); | 431 | k = nh2 - ( j * j ); |
432 | 432 | ||
433 | /* fsqrt+1 seems to give a closer approximation */ | 433 | /* fsqrt+1 seems to give a closer approximation */ |
434 | y_values[i-1] = LCD_HEIGHT - (fsqrt(k, 16)>>8) - 1; | 434 | y_values[i-1] = LCD_HEIGHT - (fp_sqrt(k, 16)>>8) - 1; |
435 | rb->yield(); | 435 | rb->yield(); |
436 | } | 436 | } |
437 | } | 437 | } |