summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pfmtlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/pfmtlog.h')
-rw-r--r--src/lib/netlist/plib/pfmtlog.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pfmtlog.h b/src/lib/netlist/plib/pfmtlog.h
index ae8998b9dee..f00f3db7215 100644
--- a/src/lib/netlist/plib/pfmtlog.h
+++ b/src/lib/netlist/plib/pfmtlog.h
@@ -12,6 +12,7 @@
#include "ppmf.h"
#include "pstring.h"
#include "ptypes.h"
+#include "pgsl.h"
#include <limits>
#include <locale>
@@ -64,6 +65,18 @@ namespace plib {
struct ptype_traits;
template<>
+ struct ptype_traits<compile_info::int128_type>
+ {
+ // FIXME: need native support at some time
+ static constexpr const bool is_signed = true;
+ static char32_t fmt_spec() { return 'd'; }
+ static void streamify(std::ostream &s, const compile_info::int128_type &v)
+ {
+ s << narrow_cast<long long>(v);
+ }
+ };
+
+ template<>
struct ptype_traits<bool> : ptype_traits_base<bool>
{
};
@@ -160,6 +173,7 @@ namespace plib {
};
#endif
+
template<>
struct ptype_traits<char *> : ptype_traits_base<char *>
{