/external/OpenCL-CTS/test_conformance/math_brute_force/ |
D | macro_binary_float.cpp | 159 MAKE_HEX_FLOAT(-0x1.000002p64f, -0x1000002L, 40), 160 MAKE_HEX_FLOAT(-0x1.0p64f, -0x1L, 64), 161 MAKE_HEX_FLOAT(-0x1.fffffep63f, -0x1fffffeL, 39), 162 MAKE_HEX_FLOAT(-0x1.000002p63f, -0x1000002L, 39), 163 MAKE_HEX_FLOAT(-0x1.0p63f, -0x1L, 63), 164 MAKE_HEX_FLOAT(-0x1.fffffep62f, -0x1fffffeL, 38), 165 MAKE_HEX_FLOAT(-0x1.000002p32f, -0x1000002L, 8), 166 MAKE_HEX_FLOAT(-0x1.0p32f, -0x1L, 32), 167 MAKE_HEX_FLOAT(-0x1.fffffep31f, -0x1fffffeL, 7), 168 MAKE_HEX_FLOAT(-0x1.000002p31f, -0x1000002L, 7), [all …]
|
D | binary_i_float.cpp | 167 MAKE_HEX_FLOAT(-0x1.000002p64f, -0x1000002L, 40), 168 MAKE_HEX_FLOAT(-0x1.0p64f, -0x1L, 64), 169 MAKE_HEX_FLOAT(-0x1.fffffep63f, -0x1fffffeL, 39), 170 MAKE_HEX_FLOAT(-0x1.000002p63f, -0x1000002L, 39), 171 MAKE_HEX_FLOAT(-0x1.0p63f, -0x1L, 63), 172 MAKE_HEX_FLOAT(-0x1.fffffep62f, -0x1fffffeL, 38), 173 MAKE_HEX_FLOAT(-0x1.000002p32f, -0x1000002L, 8), 174 MAKE_HEX_FLOAT(-0x1.0p32f, -0x1L, 32), 175 MAKE_HEX_FLOAT(-0x1.fffffep31f, -0x1fffffeL, 7), 176 MAKE_HEX_FLOAT(-0x1.000002p31f, -0x1000002L, 7), [all …]
|
D | binary_float.cpp | 23 const float twoToMinus126 = MAKE_HEX_FLOAT(0x1p-126f, 1, -126); 172 MAKE_HEX_FLOAT(-0x1.000002p64f, -0x1000002L, 40), 173 MAKE_HEX_FLOAT(-0x1.0p64f, -0x1L, 64), 174 MAKE_HEX_FLOAT(-0x1.fffffep63f, -0x1fffffeL, 39), 175 MAKE_HEX_FLOAT(-0x1.000002p63f, -0x1000002L, 39), 176 MAKE_HEX_FLOAT(-0x1.0p63f, -0x1L, 63), 177 MAKE_HEX_FLOAT(-0x1.fffffep62f, -0x1fffffeL, 38), 178 MAKE_HEX_FLOAT(-0x1.000002p32f, -0x1000002L, 8), 179 MAKE_HEX_FLOAT(-0x1.0p32f, -0x1L, 32), 180 MAKE_HEX_FLOAT(-0x1.fffffep31f, -0x1fffffeL, 7), [all …]
|
D | binary_operator_float.cpp | 169 MAKE_HEX_FLOAT(-0x1.000002p64f, -0x1000002L, 40), 170 MAKE_HEX_FLOAT(-0x1.0p64f, -0x1L, 64), 171 MAKE_HEX_FLOAT(-0x1.fffffep63f, -0x1fffffeL, 39), 172 MAKE_HEX_FLOAT(-0x1.000002p63f, -0x1000002L, 39), 173 MAKE_HEX_FLOAT(-0x1.0p63f, -0x1L, 63), 174 MAKE_HEX_FLOAT(-0x1.fffffep62f, -0x1fffffeL, 38), 175 MAKE_HEX_FLOAT(-0x1.000002p32f, -0x1000002L, 8), 176 MAKE_HEX_FLOAT(-0x1.0p32f, -0x1L, 32), 177 MAKE_HEX_FLOAT(-0x1.fffffep31f, -0x1fffffeL, 7), 178 MAKE_HEX_FLOAT(-0x1.000002p31f, -0x1000002L, 7), [all …]
|
D | ternary_float.cpp | 139 MAKE_HEX_FLOAT(-0x1.000002p64f, -0x1000002L, 40), 140 MAKE_HEX_FLOAT(-0x1.0p64f, -0x1L, 64), 141 MAKE_HEX_FLOAT(-0x1.fffffep63f, -0x1fffffeL, 39), 142 MAKE_HEX_FLOAT(-0x1.000002p63f, -0x1000002L, 39), 143 MAKE_HEX_FLOAT(-0x1.0p63f, -0x1L, 63), 144 MAKE_HEX_FLOAT(-0x1.fffffep62f, -0x1fffffeL, 38), 146 MAKE_HEX_FLOAT(-0x1.800002p1f, -0x1800002L, -23), 148 MAKE_HEX_FLOAT(-0x1.7ffffep1f, -0x17ffffeL, -23), 150 MAKE_HEX_FLOAT(-0x1.800002p0f, -0x1800002L, -24), 154 MAKE_HEX_FLOAT(-0x1.7ffffep0f, -0x17ffffeL, -24), [all …]
|
D | unary_float.cpp | 610 && fabsf(s[j]) > MAKE_HEX_FLOAT(0x1.0p16f, 0x1L, 16) in Test()
|
/external/OpenCL-CTS/test_conformance/basic/ |
D | test_numeric_constants.cpp | 84 …TEST_VALUE_EQUAL_LITERAL( "CL_FLT_MAX", CL_FLT_MAX, MAKE_HEX_FLOAT( 0x1.fffffep127… in test_host_numeric_constants() 85 …TEST_VALUE_EQUAL_LITERAL( "CL_FLT_MIN", CL_FLT_MIN, MAKE_HEX_FLOAT(0x1.0p-126f, 0x… in test_host_numeric_constants() 86 …TEST_VALUE_EQUAL_LITERAL( "CL_FLT_EPSILON", CL_FLT_EPSILON, MAKE_HEX_FLOAT(0x1.0p-23f, 0x1… in test_host_numeric_constants() 113 …TEST_VALUE_EQUAL( "CL_M_E_F", CL_M_E_F, MAKE_HEX_FLOAT(0x1.5bf0a8p+1f, 0x15bf0a8L, -2… in test_host_numeric_constants() 114 …TEST_VALUE_EQUAL( "CL_M_LOG2E_F", CL_M_LOG2E_F, MAKE_HEX_FLOAT(0x1.715476p+0f, 0x1715476L, -2… in test_host_numeric_constants() 115 …TEST_VALUE_EQUAL( "CL_M_LOG10E_F", CL_M_LOG10E_F, MAKE_HEX_FLOAT(0x1.bcb7b2p-2f, 0x1bcb7b2L, -2… in test_host_numeric_constants() 116 …TEST_VALUE_EQUAL( "CL_M_LN2_F", CL_M_LN2_F, MAKE_HEX_FLOAT(0x1.62e43p-1f, 0x162e43L, -21)… in test_host_numeric_constants() 117 …TEST_VALUE_EQUAL( "CL_M_LN10_F", CL_M_LN10_F, MAKE_HEX_FLOAT(0x1.26bb1cp+1f, 0x126bb1cL, -2… in test_host_numeric_constants() 118 …TEST_VALUE_EQUAL( "CL_M_PI_F", CL_M_PI_F, MAKE_HEX_FLOAT(0x1.921fb6p+1f, 0x1921fb6L, -2… in test_host_numeric_constants() 119 …TEST_VALUE_EQUAL( "CL_M_PI_2_F", CL_M_PI_2_F, MAKE_HEX_FLOAT(0x1.921fb6p+0f, 0x1921fb6L, -2… in test_host_numeric_constants() [all …]
|
D | test_fpmath_float.cpp | 175 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float() 178 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float() 181 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float()
|
D | test_fpmath_float2.cpp | 174 …p[i] = get_random_float(-MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31),… in test_fpmath_float2() 177 …p[i] = get_random_float(-MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31),… in test_fpmath_float2() 180 …p[i] = get_random_float(-MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31),… in test_fpmath_float2()
|
D | test_fpmath_float4.cpp | 174 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float4() 177 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float4() 180 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float4()
|
D | test_queue_priority.cpp | 254 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_queue_priority() 257 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_queue_priority() 260 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_queue_priority()
|
D | test_float2int.cpp | 89 …input_ptr[i] = get_random_float(-MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT( 0x1.0p31f, 0… in test_float2int()
|
D | test_int2float.cpp | 88 …input_ptr[i] = (cl_int)get_random_float(-MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT( 0x1.… in test_int2float()
|
D | test_hostptr.cpp | 57 …ptr[i] = get_random_float(-MAKE_HEX_FLOAT( 0x1.0p32f, 0x1, 32), MAKE_HEX_FLOAT( 0x1.0p32f, 0x1, 32… in make_random_data()
|
/external/OpenCL-CTS/test_conformance/conversions/ |
D | basic_test_conversions.cpp | 77 …static const float magic[2] = { MAKE_HEX_FLOAT( 0x1.0p23f, 0x1, 23), - MAKE_HEX_FLOAT( 0x1.0p23f, … in lrintf_clamped() 86 if( fabsf(f) < MAKE_HEX_FLOAT( 0x1.0p23f, 0x1, 23 ) ) in lrintf_clamped() 111 …static const float magic[2] = { MAKE_HEX_FLOAT( 0x1.0p23f, 0x1, 23), - MAKE_HEX_FLOAT( 0x1.0p23f, … in llrintf_clamped() 120 if( fabsf(f) < MAKE_HEX_FLOAT(0x1.0p23f, 0x1L, 23) ) in llrintf_clamped() 581 …static const float magic[2] = { MAKE_HEX_FLOAT( 0x1.0p23f, 0x1, 23), - MAKE_HEX_FLOAT( 0x1.0p23f, … in my_rintf() 584 if( fabsf(f) < MAKE_HEX_FLOAT( 0x1.0p23f, 0x1, 23 ) ) in my_rintf() 1224 float clampf_uint( float f ) { return fclamp( -0.5f, f, MAKE_HEX_FLOAT(0x1.fffffep31f, 0x1ff… in clampf_uint() 1226 float clampf_uint_rte( float f ) { return fclamp( -0.5f, f, MAKE_HEX_FLOAT(0x1.fffffep31f, 0x1ff… in clampf_uint_rte() 1228 float clampf_uint_rtp( float f ) { return fclamp( -1.0f + FLT_EPSILON/2.0f, f, MAKE_HEX_FLOAT(0x… in clampf_uint_rtp() 1230 float clampf_uint_rtn( float f ) { return fclamp( -0.0f, f, MAKE_HEX_FLOAT(0x1.fffffep31f, 0x1ff… in clampf_uint_rtn() [all …]
|
/external/OpenCL-CTS/test_conformance/geometrics/ |
D | test_geometrics.cpp | 112 …MAKE_HEX_FLOAT(0x1.0p63f, 0x1L, 63), MAKE_HEX_FLOAT(0x1.8p63f, 0x18L, 59), MAKE_HEX_FLOAT(0x1.0p64… in fillWithTrickyNumbers() 113 …MAKE_HEX_FLOAT(0x1.0p-63f, 0x1L, -63), MAKE_HEX_FLOAT(0x1.8p-63f, 0x18L, -67), MAKE_HEX_FLOAT(0x1.… in fillWithTrickyNumbers() 354 …if( fabsf( inDataA[i] ) > MAKE_HEX_FLOAT(0x1.0p62f, 0x1L, 62) || fabsf( inDataA[i] ) < MAKE_HEX_FL… in test_twoToFloat_kernel() 356 …if( fabsf( inDataB[i] ) > MAKE_HEX_FLOAT(0x1.0p62f, 0x1L, 62) || fabsf( inDataB[i] ) < MAKE_HEX_FL… in test_twoToFloat_kernel() 669 …if( fabsf( inDataA[i] ) > MAKE_HEX_FLOAT(0x1.0p62f, 0x1L, 62) || fabsf( inDataA[i] ) < MAKE_HEX_FL… in test_oneToFloat_kernel() 875 …cl_float z = get_random_float( -MAKE_HEX_FLOAT( 0x1.0p60f, 1, 60), MAKE_HEX_FLOAT( 0x1.0p60f, 1, 6… in test_oneToOne_kernel() 876 if( fabsf(z) < MAKE_HEX_FLOAT( 0x1.0p-60f, 1, -60) ) in test_oneToOne_kernel()
|
/external/OpenCL-CTS/test_common/harness/ |
D | compat.h | 345 #define MAKE_HEX_FLOAT(x, y, z) ((float)ldexp((float)(y), z)) macro 352 #define MAKE_HEX_FLOAT(x, y, z) x macro
|
D | imageHelpers.cpp | 939 maxError += MAKE_HEX_FLOAT(0x1.0p-4f, 0x1L, -4); in get_max_relative_error() 961 maxError = MAKE_HEX_FLOAT(0x1.0p-7f, 0x1L, -7); in get_max_relative_error() 2590 if (fabsf(v) < MAKE_HEX_FLOAT(0x1.0p23f, 0x1L, 23)) in round_to_even() 2592 static const float magic[2] = { MAKE_HEX_FLOAT(0x1.0p23f, 0x1L, 23), in round_to_even() 2593 MAKE_HEX_FLOAT(-0x1.0p23f, -0x1L, 23) }; in round_to_even() 2725 srcVector[i], MAKE_HEX_FLOAT(-0x1.0p31f, -1, 31), in pack_image_pixel() 2726 MAKE_HEX_FLOAT(0x1.fffffep30f, 0x1fffffe, 30 - 23), in pack_image_pixel() 2749 MAKE_HEX_FLOAT(0x1.fffffep31f, 0x1fffffe, 31 - 23), in pack_image_pixel() 2894 srcVector[i], MAKE_HEX_FLOAT(-0x1.0p31f, -1, 31), in pack_image_pixel_error() 2895 MAKE_HEX_FLOAT(0x1.fffffep30f, 0x1fffffe, 30 - 23), in pack_image_pixel_error() [all …]
|
D | conversions.cpp | 97 static const float magic[2] = { MAKE_HEX_FLOAT(0x1.0p23f, 0x1, 23), in lrintf_clamped() 98 -MAKE_HEX_FLOAT(0x1.0p23f, 0x1, 23) }; in lrintf_clamped() 105 if (fabsf(f) < MAKE_HEX_FLOAT(0x1.0p23f, 0x1, 23)) in lrintf_clamped()
|
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/ |
D | test_read_1D.cpp | 402 …const float float_offsets[] = { 0.0f, MAKE_HEX_FLOAT(0x1.0p-30f, 0x1L, -30), 0.25f, 0.3f, 0.5f - F… in test_read_image_1D() 617 …Ulp_Error( MAKE_HEX_FLOAT(0x1.000002p0f, 0x1000002L, -24) + maxErr, MAKE_HEX_FLOAT(0x1.000002p0f, … in test_read_image_1D() 784 …Ulp_Error( MAKE_HEX_FLOAT(0x1.000002p0f, 0x1000002L, -24) + maxErr, MAKE_HEX_FLOAT(0x1.000002p0f, … in test_read_image_1D()
|
D | test_common.cpp | 410 MAKE_HEX_FLOAT(0x1.0p-30f, 0x1L, -30), in test_read_image() 816 MAKE_HEX_FLOAT( in test_read_image() 820 MAKE_HEX_FLOAT( in test_read_image() 1146 MAKE_HEX_FLOAT( in test_read_image() 1150 MAKE_HEX_FLOAT( in test_read_image()
|
D | test_read_2D_array.cpp | 505 …const float float_offsets[] = { 0.0f, MAKE_HEX_FLOAT(0x1.0p-30f, 0x1L, -30), 0.25f, 0.3f, 0.5f - F… in test_read_image_2D_array() 699 …Ulp_Error( MAKE_HEX_FLOAT(0x1.000002p0f, 0x1000002L, -24) + maxErr, MAKE_HEX_FLOAT(0x1.000002p0f, … in test_read_image_2D_array() 876 …Ulp_Error( MAKE_HEX_FLOAT(0x1.000002p0f, 0x1000002L, -24) + maxErr, MAKE_HEX_FLOAT(0x1.000002p0f, … in test_read_image_2D_array() 1057 …Ulp_Error( MAKE_HEX_FLOAT(0x1.000002p0f, 0x1000002L, -24) + maxErr, MAKE_HEX_FLOAT(0x1.000002p0f, … in test_read_image_2D_array()
|
D | test_read_1D_array.cpp | 483 …const float float_offsets[] = { 0.0f, MAKE_HEX_FLOAT(0x1.0p-30f, 0x1L, -30), 0.25f, 0.3f, 0.5f - F… in test_read_image_1D_array() 713 …Ulp_Error( MAKE_HEX_FLOAT(0x1.000002p0f, 0x1000002L, -24) + maxErr, MAKE_HEX_FLOAT(0x1.000002p0f, … in test_read_image_1D_array() 890 …Ulp_Error( MAKE_HEX_FLOAT(0x1.000002p0f, 0x1000002L, -24) + maxErr, MAKE_HEX_FLOAT(0x1.000002p0f, … in test_read_image_1D_array()
|
D | test_iterations.cpp | 519 …Ulp_Error( MAKE_HEX_FLOAT(0x1.000002p0f, 0x1000002L, -24) + maxErr, MAKE_HEX_FLOAT(0x1.000002p0f, … in validate_image_2D_depth_results() 730 …Ulp_Error( MAKE_HEX_FLOAT(0x1.000002p0f, 0x1000002L, -24) + maxErr, MAKE_HEX_FLOAT(0x1.000002p0f, … in validate_image_2D_results() 1122 …Ulp_Error( MAKE_HEX_FLOAT(0x1.000002p0f, 0x1000002L, -24) + maxErr, MAKE_HEX_FLOAT(0x1.000002p0f, … in validate_image_2D_sRGB_results() 1454 …const float float_offsets[] = { 0.0f, MAKE_HEX_FLOAT(0x1.0p-30f, 0x1L, -30), 0.25f, 0.3f, 0.5f - F… in test_read_image_2D()
|