diff options
author | couriersud <couriersud@gmx.org> | 2019-11-03 15:08:41 +0100 |
---|---|---|
committer | couriersud <couriersud@gmx.org> | 2019-11-03 15:25:01 +0100 |
commit | 34ccb11c536056deeb8ec3b2c36aeb064f70f844 (patch) | |
tree | 6ab710fb000703517636b78d1024809994d5e224 /src/devices/machine/netlist.cpp | |
parent | 36c17abc7993de82454ac45d7193ae6e6f2f9455 (diff) |
netlist: Completed __float128 support. [Couriersud]
Both compiling the core and the shaders with __float128 now work.
The support was added to be ready to deal with academic edge cases.
Performance drops to 10% of double - thus disabled by default.
Diffstat (limited to 'src/devices/machine/netlist.cpp')
-rw-r--r-- | src/devices/machine/netlist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp index 87600e0b9b1..394a2411703 100644 --- a/src/devices/machine/netlist.cpp +++ b/src/devices/machine/netlist.cpp @@ -193,7 +193,7 @@ public: // FIXME: make this a parameter // avoid calls due to noise - if (std::fabs(cur - m_last) > 1e-6) + if (plib::abs(cur - m_last) > 1e-6) { m_cpu_device->update_icount(exec().time()); (*m_callback)(cur, m_cpu_device->local_time()); @@ -446,7 +446,7 @@ public: nl_fptype val = m_in() * m_mult() + m_offset(); sound_update(exec().time()); /* ignore spikes */ - if (std::abs(val) < 32767.0) + if (plib::abs(val) < 32767.0) m_cur = val; else if (val > 0.0) m_cur = 32767.0; |