Lines Matching refs:Type

47 #define DEF_COMMON_LIMITS(Type)
48 #define DEF_UNSIGNED_INT_LIMITS(Type)
49 #define DEF_SIGNED_INT_LIMITS(Type)
50 #define DEF_PRECISION_LIMITS(Type)
54 #define DEF_COMMON_LIMITS(Type) \
55 const bool MathLimits<Type>::kIsSigned; \
56 const bool MathLimits<Type>::kIsInteger; \
57 const int MathLimits<Type>::kMin10Exp; \
58 const int MathLimits<Type>::kMax10Exp;
60 #define DEF_UNSIGNED_INT_LIMITS(Type) \
61 DEF_COMMON_LIMITS(Type) \
62 const Type MathLimits<Type>::kPosMin; \
63 const Type MathLimits<Type>::kPosMax; \
64 const Type MathLimits<Type>::kMin; \
65 const Type MathLimits<Type>::kMax; \
66 const Type MathLimits<Type>::kEpsilon; \
67 const Type MathLimits<Type>::kStdError;
69 #define DEF_SIGNED_INT_LIMITS(Type) \
70 DEF_UNSIGNED_INT_LIMITS(Type) \
71 const Type MathLimits<Type>::kNegMin; \
72 const Type MathLimits<Type>::kNegMax;
74 #define DEF_PRECISION_LIMITS(Type) \
75 const int MathLimits<Type>::kPrecisionDigits;
103 #define DEF_FP_LIMITS(Type, PREFIX) \
104 DEF_COMMON_LIMITS(Type) \
105 const Type MathLimits<Type>::kPosMin = PREFIX##_MIN; \
106 const Type MathLimits<Type>::kPosMax = PREFIX##_MAX; \
107 const Type MathLimits<Type>::kMin = -MathLimits<Type>::kPosMax; \
108 const Type MathLimits<Type>::kMax = MathLimits<Type>::kPosMax; \
109 const Type MathLimits<Type>::kNegMin = -MathLimits<Type>::kPosMin; \
110 const Type MathLimits<Type>::kNegMax = -MathLimits<Type>::kPosMax; \
111 const Type MathLimits<Type>::kEpsilon = PREFIX##_EPSILON; \
113 const Type MathLimits<Type>::kStdError = \
114 32 * (DBL_EPSILON * DBL_EPSILON > MathLimits<Type>::kEpsilon \
115 ? DBL_EPSILON * DBL_EPSILON : MathLimits<Type>::kEpsilon); \
116 DEF_PRECISION_LIMITS(Type) \
117 const Type MathLimits<Type>::kNaN = HUGE_VAL - HUGE_VAL; \
118 const Type MathLimits<Type>::kPosInf = HUGE_VAL; \
119 const Type MathLimits<Type>::kNegInf = -HUGE_VAL;