Home
last modified time | relevance | path

Searched refs:CONVERT_UINT (Results 1 – 2 of 2) sorted by relevance

/external/OpenCL-CTS/test_common/harness/
DimageHelpers.cpp2738 ptr[ i ] = (cl_uchar)CONVERT_UINT( srcVector[ i ], 255.f, CL_UCHAR_MAX ); in pack_image_pixel()
2745 ptr[ i ] = (cl_ushort)CONVERT_UINT( srcVector[ i ], 32767.f, CL_USHRT_MAX ); in pack_image_pixel()
2752 …ptr[ i ] = (cl_uint)CONVERT_UINT( srcVector[ i ], MAKE_HEX_FLOAT( 0x1.fffffep31f, 0x1fffffe, 31-23… in pack_image_pixel()
2897 … errors[i] = (cl_int) ptr[ i ] - (cl_int) CONVERT_UINT( srcVector[ i ], 255.f, CL_UCHAR_MAX ); in pack_image_pixel_error()
2904 … errors[i] = (cl_int) ptr[ i ] - (cl_int) CONVERT_UINT( srcVector[ i ], 32767.f, CL_USHRT_MAX ); in pack_image_pixel_error()
2911 …errors[i] = (cl_float)((cl_long) ptr[ i ] - (cl_long)CONVERT_UINT( srcVector[ i ], MAKE_HEX_FLOAT(… in pack_image_pixel_error()
DimageHelpers.h69 #define CONVERT_UINT( v, max, max_val) ( v < 0 ? 0 : ( v > max ? max_val : round_to_even( v ) ) ) macro