summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/disc_dev.hxx
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2022-04-03 02:53:19 +1000
committer Vas Crabb <vas@vastheman.com>2022-04-03 02:53:19 +1000
commitc4f9ff9790382c1c5b99a2ffbb2a14e04d4c7cea (patch)
tree80a1185e2dbed843500eda4e740dfac9f03eba1b /src/devices/sound/disc_dev.hxx
parent5255f96203e4dc58ba660f74a64e6b640016a604 (diff)
-util/corealloc.h: Reduced make_unique_clear to a single variant for POD arrays.
* Enabled GCC lifetime dead store elimination optimisation. * emu/device.h: Don't pre-clear memory for drivers. Ivan Vangelista fixed at least the majority of things that crashed outright, and Robbbert initialised variables that coverity complained about. It's unlikely anything will break due to this. * sound/discrete.h: Explicitly initialise members of discrete "devices" to zero. I don't see a way around doing this in headers due to the macro soup used to build the constructors. * sound/mos6581.cpp: Moved creation of the SID core to device_start and explictly initialised members of the SID core structures. These structures are in internal headers, so they won't cause downstream recompiles. -Lua engine: Made I/O port manager type_seq a bit more tolerant of omitted arguments.
Diffstat (limited to 'src/devices/sound/disc_dev.hxx')
-rw-r--r--src/devices/sound/disc_dev.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/sound/disc_dev.hxx b/src/devices/sound/disc_dev.hxx
index e18d4d36711..385e84f751a 100644
--- a/src/devices/sound/disc_dev.hxx
+++ b/src/devices/sound/disc_dev.hxx
@@ -63,13 +63,13 @@ DISCRETE_STEP(dsd_555_astbl)
int count_f = 0;
int count_r = 0;
- double dt; /* change in time */
- double x_time = 0; /* time since change happened */
+ double dt; /* change in time */
+ double x_time = 0; /* time since change happened */
double v_cap = m_cap_voltage; /* Current voltage on capacitor, before dt */
- double v_cap_next = 0; /* Voltage on capacitor, after dt */
+ double v_cap_next = 0; /* Voltage on capacitor, after dt */
double v_charge, exponent = 0;
- uint8_t flip_flop = m_flip_flop;
- uint8_t update_exponent = 0;
+ uint8_t flip_flop = m_flip_flop;
+ uint8_t update_exponent = 0;
double v_out = 0.0;
/* put commonly used stuff in local variables for speed */