1 #ifndef OPENPOSE_UTILITIES_MATH_HPP
2 #define OPENPOSE_UTILITIES_MATH_HPP
25 return (
signed char)(a+0.5f);
43 return (
long long)(a+0.5f);
50 return (
unsigned char)(a+0.5f);
56 return (
unsigned int)(a+0.5f);
62 return (
unsigned long)(a+0.5f);
68 return (
unsigned long long)(a+0.5f);
75 return (a > b ? a : b);
81 return (a < b ? a : b);
long long positiveLongLongRound(const T a)
T fastTruncate(T value, T min=0, T max=1)
long positiveLongRound(const T a)
unsigned char uCharRound(const T a)
int positiveIntRound(const T a)
T fastMin(const T a, const T b)
unsigned long long uLongLongRound(const T a)
unsigned int uIntRound(const T a)
T fastMax(const T a, const T b)
unsigned long ulongRound(const T a)
char positiveCharRound(const T a)
signed char positiveSCharRound(const T a)