From 70f946b02c09632c5b4550939d62840e20a9caa1 Mon Sep 17 00:00:00 2001 From: John Richardson Date: Mon, 2 Oct 2017 16:52:16 +0100 Subject: COMPMID-489: Move FixedPoint to new validation Change-Id: Ibb94f44550469ec22553b1f947a7753d3ff90d93 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/90138 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- utils/TypePrinter.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'utils') 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; -- cgit v1.2.1