summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2021-05-21 21:23:43 -0700
committerAndres Noetzli <andres.noetzli@gmail.com>2021-05-24 16:17:59 -0700
commit904487663d0bcad99ea1b1a4d55f18b1f56163aa (patch)
tree0ea9afc457f0e469c67af5edcb212ee619dbc642
parentef629735476e95d64e35bf029d004e89aa1ab4ed (diff)
missing file
-rw-r--r--src/util/roundingmode.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/util/roundingmode.cpp b/src/util/roundingmode.cpp
new file mode 100644
index 000000000..00aec6635
--- /dev/null
+++ b/src/util/roundingmode.cpp
@@ -0,0 +1,46 @@
+/******************************************************************************
+ * Top contributors (to current version):
+ * Andres Noetzli
+ *
+ * This file is part of the cvc5 project.
+ *
+ * Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
+ * in the top-level source directory and their institutional affiliations.
+ * All rights reserved. See the file COPYING in the top-level source
+ * directory for licensing information.
+ * ****************************************************************************
+ *
+ * The definition of rounding mode values.
+ */
+
+#include "roundingmode.h"
+
+#include <iostream>
+
+#include "base/check.h"
+
+namespace cvc5 {
+
+std::ostream& operator<<(std::ostream& os, RoundingMode rm)
+{
+ switch (rm)
+ {
+ case RoundingMode::ROUND_NEAREST_TIES_TO_EVEN:
+ os << "ROUND_NEAREST_TIES_TO_EVEN";
+ break;
+ case RoundingMode::ROUND_TOWARD_POSITIVE:
+ os << "ROUND_TOWARD_POSITIVE";
+ break;
+ case RoundingMode::ROUND_TOWARD_NEGATIVE:
+ os << "ROUND_TOWARD_NEGATIVE";
+ break;
+ case RoundingMode::ROUND_TOWARD_ZERO: os << "ROUND_TOWARD_ZERO"; break;
+ case RoundingMode::ROUND_NEAREST_TIES_TO_AWAY:
+ os << "ROUND_NEAREST_TIES_TO_AWAY";
+ break;
+ default: Unreachable();
+ }
+ return os;
+}
+
+} // namespace cvc5
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback