Lines 3023-3037
Link Here
|
3023 |
return x < 0 ? -x : x; |
3023 |
return x < 0 ? -x : x; |
3024 |
} |
3024 |
} |
3025 |
|
3025 |
|
3026 |
#define INSTANTIATE_ABS(T) \ |
|
|
3027 |
template /* static */ inline T abs (T) |
3028 |
|
3029 |
INSTANTIATE_ABS(signed char); |
3030 |
INSTANTIATE_ABS(short); |
3031 |
INSTANTIATE_ABS(int); |
3032 |
INSTANTIATE_ABS(long); |
3033 |
INSTANTIATE_ABS(long long); |
3034 |
|
3035 |
#define SPECIALIZE_UABS(T) \ |
3026 |
#define SPECIALIZE_UABS(T) \ |
3036 |
template <> \ |
3027 |
template <> \ |
3037 |
/* static */ inline unsigned T \ |
3028 |
/* static */ inline unsigned T \ |