Searched refs:NORMALIZE_UNROUNDED (Results 1 – 2 of 2) sorted by relevance
/external/OpenCL-CTS/test_common/harness/ |
D | imageHelpers.cpp | 2827 errors[i] = ptr[i] - NORMALIZE_UNROUNDED( srcVector[ i ], 255.f ); in pack_image_pixel_error() 2836 errors[i] = ptr[i] - NORMALIZE_UNROUNDED( srcVector[ i ], 65535.f ); in pack_image_pixel_error() 2844 errors[0] = ((ptr[0] >> 10) & 31) - NORMALIZE_UNROUNDED( srcVector[ 0 ], 31.f ); in pack_image_pixel_error() 2845 errors[1] = ((ptr[0] >> 5) & 31) - NORMALIZE_UNROUNDED( srcVector[ 1 ], 31.f ); in pack_image_pixel_error() 2846 errors[2] = ((ptr[0] >> 0) & 31) - NORMALIZE_UNROUNDED( srcVector[ 2 ], 31.f ); in pack_image_pixel_error() 2854 errors[0] = ((ptr[0] >> 11) & 31) - NORMALIZE_UNROUNDED( srcVector[ 0 ], 31.f ); in pack_image_pixel_error() 2855 errors[1] = ((ptr[0] >> 5) & 63) - NORMALIZE_UNROUNDED( srcVector[ 1 ], 63.f ); in pack_image_pixel_error() 2856 errors[2] = ((ptr[0] >> 0) & 31) - NORMALIZE_UNROUNDED( srcVector[ 2 ], 31.f ); in pack_image_pixel_error() 2864 errors[0] = ((ptr[0] >> 20) & 1023) - NORMALIZE_UNROUNDED( srcVector[ 0 ], 1023.f ); in pack_image_pixel_error() 2865 errors[1] = ((ptr[0] >> 10) & 1023) - NORMALIZE_UNROUNDED( srcVector[ 1 ], 1023.f ); in pack_image_pixel_error() [all …]
|
D | imageHelpers.h | 65 #define NORMALIZE_UNROUNDED( v, max ) ( v < 0 ? 0 : ( v > 1.f ? max : v * max ) ) macro
|