summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-05-22 21:07:24 +0200
committer couriersud <couriersud@gmx.org>2020-05-24 10:48:05 +0200
commitfff7f6ef55f93ba53ceea798d1c65a9910c41f27 (patch)
tree25860bda071abfc975d4f241691f54b3617df118 /src/devices/machine
parent80aeecc227454ee5e4205b1a700cbaa64db3d0bc (diff)
netlist: Better integretation of INT128. (nw)
Also some minor optimisations bringing pong and breakout to previous performance.
Diffstat (limited to 'src/devices/machine')
-rw-r--r--src/devices/machine/netlist.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp
index ff72eccc6db..3060261187a 100644
--- a/src/devices/machine/netlist.cpp
+++ b/src/devices/machine/netlist.cpp
@@ -524,7 +524,7 @@ public:
NETLIB_NAME(sound_in)(netlist::netlist_state_t &anetlist, const pstring &name)
: netlist::device_t(anetlist, name)
- , m_sample_time(attotime::zero)
+ , m_sample_time(netlist::netlist_time::zero())
, m_feedback(*this, "FB") // clock part
, m_Q(*this, "Q")
, m_pos(0)
@@ -570,14 +570,14 @@ protected:
}
m_pos++;
- m_Q.net().toggle_and_push_to_queue(nltime_from_attotime(m_sample_time));
+ m_Q.net().toggle_and_push_to_queue(m_sample_time);
}
public:
void resolve(attotime sample_time)
{
m_pos = 0;
- m_sample_time = sample_time;
+ m_sample_time = netlist::netlist_time::from_raw(static_cast<netlist::netlist_time::internal_type>(nltime_from_attotime(sample_time).as_raw()));
for (int i = 0; i < MAX_INPUT_CHANNELS; i++)
{
@@ -597,7 +597,7 @@ public:
void buffer_reset(attotime sample_time, int num_samples, S **inputs)
{
m_samples = num_samples;
- m_sample_time = sample_time;
+ m_sample_time = netlist::netlist_time::from_raw(static_cast<netlist::netlist_time::internal_type>(nltime_from_attotime(sample_time).as_raw()));
m_pos = 0;
for (int i=0; i < m_num_channels; i++)
@@ -619,7 +619,7 @@ public:
private:
channel m_channels[MAX_INPUT_CHANNELS];
- attotime m_sample_time;
+ netlist::netlist_time m_sample_time;
netlist::logic_input_t m_feedback;
netlist::logic_output_t m_Q;
@@ -1497,7 +1497,7 @@ void netlist_mame_sound_device::device_start()
fatalerror("illegal channel number");
m_out[chan] = outdev;
m_out[chan]->m_sample_time = netlist::netlist_time::from_hz(clock());
- m_out[chan]->buffer_reset(netlist::netlist_time::zero());
+ m_out[chan]->buffer_reset(netlist::netlist_time_ext::zero());
}
// Configure inputs