mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 08:19:02 +00:00
Fix clang 10 build errors (#1387)
* Fix clang 10 build errors Lossy casts due to inexact float representation of CL_INT_MAX * Fix clang format * Remove implicit-const-int-float-conversion flag
This commit is contained in:
@@ -63,7 +63,7 @@ typedef struct
|
||||
bool normalized_coords;
|
||||
} image_sampler_data;
|
||||
|
||||
int round_to_even(float v);
|
||||
cl_int round_to_even(float v);
|
||||
|
||||
#define NORMALIZE(v, max) (v < 0 ? 0 : (v > 1.f ? max : round_to_even(v * max)))
|
||||
#define NORMALIZE_UNROUNDED(v, max) (v < 0 ? 0 : (v > 1.f ? max : v * max))
|
||||
|
||||
Reference in New Issue
Block a user