Searched refs:CONVERT_INT (Results 1 – 2 of 2) sorted by relevance
/external/OpenCL-CTS/test_common/harness/ |
D | imageHelpers.cpp | 2717 ptr[ i ] = (cl_char)CONVERT_INT( srcVector[ i ], -127.0f, 127.f, 127 ); in pack_image_pixel() 2724 ptr[ i ] = (short)CONVERT_INT( srcVector[ i ], -32767.f, 32767.f, 32767 ); in pack_image_pixel() 2731 …ptr[ i ] = (int)CONVERT_INT( srcVector[ i ], MAKE_HEX_FLOAT( -0x1.0p31f, -1, 31), MAKE_HEX_FLOAT( … in pack_image_pixel() 2875 errors[ i ] = ptr[i] - CONVERT_INT( srcVector[ i ], -127.0f, 127.f, 127 ); in pack_image_pixel_error() 2883 errors[i] = ptr[ i ] - CONVERT_INT( srcVector[ i ], -32767.f, 32767.f, 32767 ); in pack_image_pixel_error() 2890 …errors[i] = (cl_float)((cl_long) ptr[ i ] - (cl_long) CONVERT_INT( srcVector[ i ], MAKE_HEX_FLOAT(… in pack_image_pixel_error()
|
D | imageHelpers.h | 68 #define CONVERT_INT( v, min, max, max_val) ( v < min ? min : ( v > max ? max_val : round_to_even( … macro
|