diff options
Diffstat (limited to 'utils/TypePrinter.h')
-rw-r--r-- | utils/TypePrinter.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index c955584c76..4f424d9438 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -153,6 +153,15 @@ inline ::std::ostream &operator<<(::std::ostream &os, const FixedPointOp &op) { switch(op) { + case FixedPointOp::ADD: + os << "ADD"; + break; + case FixedPointOp::SUB: + os << "SUB"; + break; + case FixedPointOp::MUL: + os << "MUL"; + break; case FixedPointOp::EXP: os << "EXP"; break; @@ -171,6 +180,7 @@ inline ::std::ostream &operator<<(::std::ostream &os, const FixedPointOp &op) return os; } + inline std::string to_string(const FixedPointOp &op) { std::stringstream str; |