summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Derrick Renaud <derrickr@mamedev.org>2009-10-01 23:11:53 +0000
committer Derrick Renaud <derrickr@mamedev.org>2009-10-01 23:11:53 +0000
commit27bbf65bd1f6f190eca544acf9d846db2e60ed93 (patch)
treed4caeb3d7a249fff16b225a9705eb713a4b33e5c /src/emu
parentb3adef6de835483e674d707c08f76ea45e3a2379 (diff)
mario - speed optimization to mario_custom_run()
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/sound/disc_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/sound/disc_dev.c b/src/emu/sound/disc_dev.c
index f8fca735fea..b6fb4b8f96d 100644
--- a/src/emu/sound/disc_dev.c
+++ b/src/emu/sound/disc_dev.c
@@ -1715,7 +1715,7 @@ static DISCRETE_STEP(dsd_ls624)
sample_t = node->info->sample_time; /* Change in time */
//dt = LS624_T(DSD_LS624__C, DSD_LS624__VRNG, DSD_LS624__VMOD) / 2.0;
if (DSD_LS624__VMOD > 0.001)
- dt = 1.0f / (2.0f * LS624_F(DSD_LS624__VMOD));
+ dt = 0.5 / LS624_F(DSD_LS624__VMOD);
else
/* close enough to 0, so we can speed things up by no longer call pow() */
dt = context->dt_vmod_at_0;
@@ -1767,7 +1767,7 @@ static DISCRETE_RESET(dsd_ls624)
context->k1 = -0.912029404 * log10(DSD_LS624__C) -0.091695877 * (DSD_LS624__VRNG) - 3.207072925;
context->k2 = -0.014110946 * (DSD_LS624__VRNG);
- context->dt_vmod_at_0 = 1.0f / (2.0f * LS624_F(0));
+ context->dt_vmod_at_0 = 0.5 / LS624_F(0);
/* Step the output */
DISCRETE_STEP_CALL(dsd_ls624);