summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/netlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/netlist.h')
-rw-r--r--src/devices/machine/netlist.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/devices/machine/netlist.h b/src/devices/machine/netlist.h
index 90ccc84493f..bef8a524645 100644
--- a/src/devices/machine/netlist.h
+++ b/src/devices/machine/netlist.h
@@ -84,12 +84,16 @@ public:
static constexpr const unsigned MDIV_SHIFT = 16;
- netlist::netlist_time nltime_from_clocks(unsigned c) const noexcept
+ netlist::netlist_time_ext nltime_ext_from_clocks(unsigned c) const noexcept
{
- //return (m_div * c + netlist::netlist_time::from_raw((1 << MDIV_SHIFT) - 1)).shr(MDIV_SHIFT);
return (m_div * c).shr(MDIV_SHIFT);
}
+ netlist::netlist_time nltime_from_clocks(unsigned c) const noexcept
+ {
+ return static_cast<netlist::netlist_time>((m_div * c).shr(MDIV_SHIFT));
+ }
+
protected:
netlist_mame_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);