Home
last modified time | relevance | path

Searched refs:MAKE_HEX_FLOAT (Results 1 – 24 of 24) sorted by relevance

/external/OpenCL-CTS/test_conformance/math_brute_force/
Dmacro_binary_float.cpp159 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 …]
Dbinary_i_float.cpp167 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 …]
Dbinary_float.cpp23 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 …]
Dbinary_operator_float.cpp169 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 …]
Dternary_float.cpp139 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 …]
Dunary_float.cpp610 && fabsf(s[j]) > MAKE_HEX_FLOAT(0x1.0p16f, 0x1L, 16) in Test()
/external/OpenCL-CTS/test_conformance/basic/
Dtest_numeric_constants.cpp84 …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 …]
Dtest_fpmath_float.cpp175 …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()
Dtest_fpmath_float2.cpp174 …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()
Dtest_fpmath_float4.cpp174 …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()
Dtest_queue_priority.cpp254 …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()
Dtest_float2int.cpp89 …input_ptr[i] = get_random_float(-MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT( 0x1.0p31f, 0… in test_float2int()
Dtest_int2float.cpp88 …input_ptr[i] = (cl_int)get_random_float(-MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT( 0x1.… in test_int2float()
Dtest_hostptr.cpp57 …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/
Dbasic_test_conversions.cpp77 …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/
Dtest_geometrics.cpp112MAKE_HEX_FLOAT(0x1.0p63f, 0x1L, 63), MAKE_HEX_FLOAT(0x1.8p63f, 0x18L, 59), MAKE_HEX_FLOAT(0x1.0p64… in fillWithTrickyNumbers()
113MAKE_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/
Dcompat.h345 #define MAKE_HEX_FLOAT(x, y, z) ((float)ldexp((float)(y), z)) macro
352 #define MAKE_HEX_FLOAT(x, y, z) x macro
DimageHelpers.cpp939 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 …]
Dconversions.cpp97 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/
Dtest_read_1D.cpp402 …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()
Dtest_common.cpp410 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()
Dtest_read_2D_array.cpp505 …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()
Dtest_read_1D_array.cpp483 …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()
Dtest_iterations.cpp519 …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()