Resize_impl.cu: Change _Round to roundf (#7140)

This is to keep the change minimal, make it work exactly like what it worked before.
This commit is contained in:
Changming Sun 2021-03-26 18:29:21 -07:00 committed by GitHub
parent 63d9d5afd3
commit f365f1d967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,11 +20,11 @@ __device__ int NearestPixel_ROUND_PREFER_FLOOR(float x_original, bool) {
if (x_original == static_cast<int>(x_original) + 0.5f) {
return static_cast<int>(_Floor(x_original));
}
return static_cast<int>(_Round(x_original));
return static_cast<int>(roundf(x_original));
}
__device__ int NearestPixel_ROUND_PREFER_CEIL(float x_original, bool) {
return static_cast<int>(_Round(x_original));
return static_cast<int>(roundf(x_original));
}
__device__ int NearestPixel_FLOOR(float x_original, bool) {