260 |
} |
} |
261 |
#endif // CONFIG_ASM && ARCH_X86 |
#endif // CONFIG_ASM && ARCH_X86 |
262 |
default: { |
default: { |
263 |
return (b < a) ? b : a; |
return std::min(a, b); |
264 |
} |
} |
265 |
} |
} |
266 |
} |
} |
267 |
|
|
268 |
template<class T_a, class T_b> inline static T_a Min(const T_a a, const T_b b) { |
template<class T_a, class T_b> inline static T_a Min(const T_a a, const T_b b) { |
|
#if __GNUC__ |
|
|
return b <? a; |
|
|
#else |
|
269 |
return (b < a) ? b : a; |
return (b < a) ? b : a; |
|
#endif |
|
270 |
} |
} |
271 |
|
|
272 |
inline static float Max(const float a, const float b) { |
inline static float Max(const float a, const float b) { |
285 |
} |
} |
286 |
#endif // CONFIG_ASM && ARCH_X86 |
#endif // CONFIG_ASM && ARCH_X86 |
287 |
default: { |
default: { |
288 |
return (b > a) ? b : a; |
return std::max(a, b); |
289 |
} |
} |
290 |
} |
} |
291 |
} |
} |
292 |
|
|
293 |
template<class T_a, class T_b> inline static T_a Max(const T_a a, const T_b b) { |
template<class T_a, class T_b> inline static T_a Max(const T_a a, const T_b b) { |
|
#if __GNUC__ |
|
|
return b >? a; |
|
|
#else |
|
294 |
return (b > a) ? b : a; |
return (b > a) ? b : a; |
|
#endif |
|
295 |
} |
} |
296 |
|
|
297 |
inline static float Fmodf(const float &a, const float &b) { |
inline static float Fmodf(const float &a, const float &b) { |