summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/netlist.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-06-06 20:41:53 +0200
committer couriersud <couriersud@gmx.org>2020-06-06 20:43:12 +0200
commit8a1ece4a3b10d035af91e71adef4384ced0e3fca (patch)
tree80a856030cd3e8e85cda249abf17259885cf98b4 /src/devices/machine/netlist.cpp
parente3901f419cb241be55bba6dd6dc29f0cf5778ae3 (diff)
netlist: Reduce macro usage and make use of pstring utf8. (nw)
Diffstat (limited to 'src/devices/machine/netlist.cpp')
-rw-r--r--src/devices/machine/netlist.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp
index 25f2bc7f177..e26ac9b2764 100644
--- a/src/devices/machine/netlist.cpp
+++ b/src/devices/machine/netlist.cpp
@@ -801,6 +801,16 @@ struct save_helper
{
m_device->save_item(item, (m_prefix + "_" + name).c_str());
}
+
+#if PHAS_INT128
+ void save_item(INT128 &item, pstring name)
+ {
+ auto *p = reinterpret_cast<std::uint64_t *>(&item);
+ m_device->save_item(p[0], (m_prefix + "_" + name + "_1").c_str());
+ m_device->save_item(p[1], (m_prefix + "_" + name + "_2").c_str());
+ }
+#endif
+
private:
device_t *m_device;
pstring m_prefix;