diff options
Diffstat (limited to 'src/lib/netlist/plib/pfmtlog.h')
-rw-r--r-- | src/lib/netlist/plib/pfmtlog.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pfmtlog.h b/src/lib/netlist/plib/pfmtlog.h index fd1f073cb73..df0463cbb61 100644 --- a/src/lib/netlist/plib/pfmtlog.h +++ b/src/lib/netlist/plib/pfmtlog.h @@ -192,6 +192,11 @@ public: typename std::enable_if<std::is_floating_point<T>::value, pfmt &>::type e(const T &x) {return format_element('e', x); } +#if PUSE_FLOAT128 + // FIXME: not what we want + pfmt & e(const __float128 &x) {return format_element('e', static_cast<long double>(x)); } +#endif + template <typename T> typename std::enable_if<std::is_floating_point<T>::value, pfmt &>::type g(const T &x) {return format_element('g', x); } |