diff options
author | 2020-04-20 20:52:21 +0200 | |
---|---|---|
committer | 2020-04-20 20:52:21 +0200 | |
commit | 3243efee70dce118e01effd8093d465ee750eecb (patch) | |
tree | 22a283d70cbe0798092ed6565d749f1164cfb9f8 /src/lib/netlist/plib/pfunction.h | |
parent | 4c9e3dc171ed4f1d27be16947a442383085c2d3d (diff) |
netlist: code maintenance and edge case fixes. (nw)
"Edge cases" are compiles were the floting point type used for the core
may be different from the one used by solvers, e.g. double/float.
This does not happen in MAME, here currently this is always
double/double. Since floats are better suited for GPUs whose double
performance is limited it was time to review the code.
This commit fixes warnings about type conversions and precision loss.
In addition there is better support for INT128 and FLOAT128.
The MAT solver has seen some minor performance increases.
Diffstat (limited to 'src/lib/netlist/plib/pfunction.h')
-rw-r--r-- | src/lib/netlist/plib/pfunction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/netlist/plib/pfunction.h b/src/lib/netlist/plib/pfunction.h index e09a90ea87e..364d7c8745c 100644 --- a/src/lib/netlist/plib/pfunction.h +++ b/src/lib/netlist/plib/pfunction.h @@ -120,8 +120,9 @@ namespace plib { extern template class pfunction<double>; extern template class pfunction<long double>; #if (PUSE_FLOAT128) - extern template class pfunction<__float128>; + extern template class pfunction<FLOAT128>; #endif + } // namespace plib #endif // PEXCEPTION_H_ |