13 #ifndef PPL_Coefficient_types_hh
14 #define PPL_Coefficient_types_hh 1
18 #ifdef PPL_GMP_INTEGERS
22 #if defined(PPL_CHECKED_INTEGERS) || defined(PPL_NATIVE_INTEGERS)
28 struct Bounded_Integer_Coefficient_Policy {
105 static void handle_result(
Result r);
108 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
111 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
112 template <
typename Policy>
113 struct Coefficient_traits_template<Checked_Number<int8_t, Policy> > {
115 typedef Checked_Number<int8_t, Policy> const_reference;
118 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
121 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
122 template <
typename Policy>
123 struct Coefficient_traits_template<Checked_Number<int16_t, Policy> > {
125 typedef Checked_Number<int16_t, Policy> const_reference;
128 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
131 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
132 template <
typename Policy>
133 struct Coefficient_traits_template<Checked_Number<int32_t, Policy> > {
135 typedef Checked_Number<int32_t, Policy> const_reference;
138 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
141 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
142 template <
typename Policy>
143 struct Coefficient_traits_template<Checked_Number<int64_t, Policy> > {
145 typedef const Checked_Number<int64_t, Policy>& const_reference;
150 #endif // defined(PPL_CHECKED_INTEGERS) || defined(PPL_NATIVE_INTEGERS)
174 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
177 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
182 #endif // !defined(PPL_Coefficient_types_hh)
Coefficient_traits_template< Coefficient > Coefficient_traits
An alias for easily naming the coefficient traits.
Rounding_Dir
Rounding directions for arithmetic computations.
Result
Possible outcomes of a checked arithmetic computation.
#define const_bool_nodef(name, value)
Declares a per-class constant of type bool, called name and with value value.
int fpu_check_inexact()
Queries the inexact computation status.
PPL_COEFFICIENT_TYPE Coefficient
An alias for easily naming the type of PPL coefficients.
The entire library is confined to this namespace.