Adding double/long int signatures for abs

Adding overloads for abs that are found in cuda's math_functions.

[ROCm/hip commit: 4383d6c6de]
Tento commit je obsažen v:
Jorghi12
2018-05-26 00:40:14 -04:00
odevzdal GitHub
rodič 06db862856
revize 2708f3325d
+6
Zobrazit soubor
@@ -59,6 +59,12 @@ __device__ int abs(int x) {
__device__ long long abs(long long x) {
return x >= 0 ? x : -x;
}
__device__ double abs(double x) {
return x >= 0 ? x : -x;
}
__device__ long int abs(long int x) {
return x >= 0 ? x : -x;
}
__device__ float fabsf(float x) { return hc::precise_math::fabsf(x); }
__device__ float fdimf(float x, float y) { return hc::precise_math::fdimf(x, y); }
__device__ float fdividef(float x, float y) { return x / y; }