10 #if !defined(GEOGRAPHICLIB_ACCUMULATOR_HPP) 11 #define GEOGRAPHICLIB_ACCUMULATOR_HPP 1 39 template<
typename T = Math::real>
46 static T fastsum(T u, T v, T& t) {
103 GEOGRAPHICLIB_STATIC_ASSERT(!std::numeric_limits<T>::is_integer,
104 "Accumulator type is not floating point");
145 Accumulator& operator*=(
int n) { _s *= n; _t *= n;
return *
this; }
186 #endif // GEOGRAPHICLIB_ACCUMULATOR_HPP static T sum(T u, T v, T &t)
#define GEOGRAPHICLIB_EXPORT
bool operator<(T y) const
Accumulator & operator=(T y)
#define GEOGRAPHICLIB_VOLATILE
bool operator!=(T y) const
bool operator<=(T y) const
Namespace for GeographicLib.
Accumulator & operator+=(T y)
Accumulator & operator-=(T y)
bool operator>(T y) const
bool operator==(T y) const
Header for GeographicLib::Constants class.
bool operator>=(T y) const
static T fma(T x, T y, T z)