Fix ilogb/ilogbf functions to return int
This patch will fix hipDoublePrecisionMathDevice test on ThinLTO, which uncovered that hip math_function's ilogb/ilogbf should return type int instead of double. This will match rocdl.
Tá an tiomantas seo le fáil i:
1 tuismitheoir
2f542c46c8
tiomantas
b439b45641
2 comhad athraithe
+4
-4
Níor tháinig aon chomhaid le do chuardach
@@ -158,7 +158,7 @@ __device__ float hypotf(float x, float y)
|
||||
{
|
||||
return hc::precise_math::hypotf(x, y);
|
||||
}
|
||||
__device__ float ilogbf(float x)
|
||||
__device__ int ilogbf(float x)
|
||||
{
|
||||
return hc::precise_math::ilogbf(x);
|
||||
}
|
||||
@@ -544,7 +544,7 @@ __device__ double hypot(double x, double y)
|
||||
{
|
||||
return hc::precise_math::hypot(x, y);
|
||||
}
|
||||
__device__ double ilogb(double x)
|
||||
__device__ int ilogb(double x)
|
||||
{
|
||||
return hc::precise_math::ilogb(x);
|
||||
}
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir