Halide
RoundingMode.h
Go to the documentation of this file.
1 #ifndef HALIDE_ROUNDING_MODE_H
2 #define HALIDE_ROUNDING_MODE_H
3 namespace Halide {
4 
5 /** Rounding modes (IEEE754 2008 4.3 Rounding-direction attributes) */
6 enum class RoundingMode {
7  TowardZero, ///< Round towards zero (IEEE754 2008 4.3.2)
8  ToNearestTiesToEven, ///< Round to nearest, when there is a tie pick even integral significand (IEEE754 2008 4.3.1)
9  ToNearestTiesToAway, ///< Round to nearest, when there is a tie pick value furthest away from zero (IEEE754 2008 4.3.1)
10  TowardPositiveInfinity, ///< Round towards positive infinity (IEEE754 2008 4.3.2)
11  TowardNegativeInfinity ///< Round towards negative infinity (IEEE754 2008 4.3.2)
12 };
13 
14 }
15 #endif
Defines methods for manipulating and analyzing boolean expressions.
Round to nearest, when there is a tie pick even integral significand (IEEE754 2008 4...
Round to nearest, when there is a tie pick value furthest away from zero (IEEE754 2008 4...
RoundingMode
Rounding modes (IEEE754 2008 4.3 Rounding-direction attributes)
Definition: RoundingMode.h:6
Round towards positive infinity (IEEE754 2008 4.3.2)
Round towards negative infinity (IEEE754 2008 4.3.2)
Round towards zero (IEEE754 2008 4.3.2)