Home
last modified time | relevance | path

Searched refs:MAKE_HEX_DOUBLE (Results 1 – 12 of 12) sorted by relevance

/external/OpenCL-CTS/test_conformance/math_brute_force/
Dbinary_i_double.cpp169 MAKE_HEX_DOUBLE(-0x1.0000000000001p64, -0x10000000000001LL, 12),
170 MAKE_HEX_DOUBLE(-0x1.0p64, -0x1LL, 64),
171 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp63, -0x1fffffffffffffLL, 11),
172 MAKE_HEX_DOUBLE(-0x1.0000000000001p63, -0x10000000000001LL, 11),
173 MAKE_HEX_DOUBLE(-0x1.0p63, -0x1LL, 63),
174 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp62, -0x1fffffffffffffLL, 10),
175 MAKE_HEX_DOUBLE(-0x1.000002p32, -0x1000002LL, 8),
176 MAKE_HEX_DOUBLE(-0x1.0p32, -0x1LL, 32),
177 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp31, -0x1fffffffffffffLL, -21),
178 MAKE_HEX_DOUBLE(-0x1.0000000000001p31, -0x10000000000001LL, -21),
[all …]
Dmacro_binary_double.cpp161 MAKE_HEX_DOUBLE(-0x1.0000000000001p64, -0x10000000000001LL, 12),
162 MAKE_HEX_DOUBLE(-0x1.0p64, -0x1LL, 64),
163 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp63, -0x1fffffffffffffLL, 11),
164 MAKE_HEX_DOUBLE(-0x1.0000000000001p63, -0x10000000000001LL, 11),
165 MAKE_HEX_DOUBLE(-0x1.0p63, -0x1LL, 63),
166 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp62, -0x1fffffffffffffLL, 10),
167 MAKE_HEX_DOUBLE(-0x1.000002p32, -0x1000002LL, 8),
168 MAKE_HEX_DOUBLE(-0x1.0p32, -0x1LL, 32),
169 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp31, -0x1fffffffffffffLL, -21),
170 MAKE_HEX_DOUBLE(-0x1.0000000000001p31, -0x10000000000001LL, -21),
[all …]
Dbinary_operator_double.cpp171 MAKE_HEX_DOUBLE(-0x1.0000000000001p64, -0x10000000000001LL, 12),
172 MAKE_HEX_DOUBLE(-0x1.0p64, -0x1LL, 64),
173 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp63, -0x1fffffffffffffLL, 11),
174 MAKE_HEX_DOUBLE(-0x1.0000000000001p63, -0x10000000000001LL, 11),
175 MAKE_HEX_DOUBLE(-0x1.0p63, -0x1LL, 63),
176 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp62, -0x1fffffffffffffLL, 10),
177 MAKE_HEX_DOUBLE(-0x1.000002p32, -0x1000002LL, 8),
178 MAKE_HEX_DOUBLE(-0x1.0p32, -0x1LL, 32),
179 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp31, -0x1fffffffffffffLL, -21),
180 MAKE_HEX_DOUBLE(-0x1.0000000000001p31, -0x10000000000001LL, -21),
[all …]
Dbinary_double.cpp23 const double twoToMinus1022 = MAKE_HEX_DOUBLE(0x1p-1022, 1, -1022);
174 MAKE_HEX_DOUBLE(-0x1.0000000000001p64, -0x10000000000001LL, 12),
175 MAKE_HEX_DOUBLE(-0x1.0p64, -0x1LL, 64),
176 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp63, -0x1fffffffffffffLL, 11),
177 MAKE_HEX_DOUBLE(-0x1.0000000000001p63, -0x10000000000001LL, 11),
178 MAKE_HEX_DOUBLE(-0x1.0p63, -0x1LL, 63),
179 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp62, -0x1fffffffffffffLL, 10),
180 MAKE_HEX_DOUBLE(-0x1.000002p32, -0x1000002LL, 8),
181 MAKE_HEX_DOUBLE(-0x1.0p32, -0x1LL, 32),
182 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp31, -0x1fffffffffffffLL, -21),
[all …]
Dternary_double.cpp141 MAKE_HEX_DOUBLE(-0x1.0000000000001p64, -0x10000000000001LL, 12),
142 MAKE_HEX_DOUBLE(-0x1.0p64, -0x1LL, 64),
143 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp63, -0x1fffffffffffffLL, 11),
144 MAKE_HEX_DOUBLE(-0x1.0000000000001p63, -0x10000000000001LL, 11),
145 MAKE_HEX_DOUBLE(-0x1.0p63, -0x1LL, 63),
146 MAKE_HEX_DOUBLE(-0x1.fffffffffffffp62, -0x1fffffffffffffLL, 10),
148 MAKE_HEX_DOUBLE(-0x1.8000000000001p1, -0x18000000000001LL, -51),
150 MAKE_HEX_DOUBLE(-0x1.7ffffffffffffp1, -0x17ffffffffffffLL, -51),
152 MAKE_HEX_DOUBLE(-0x1.8000000000001p0, -0x18000000000001LL, -52),
154 MAKE_HEX_DOUBLE(-0x1.7ffffffffffffp0, -0x17ffffffffffffLL, -52),
[all …]
Dutility.h122 x = fabs(x) - MAKE_HEX_DOUBLE(0x1.0p-149, 0x1, -149) * (double)ulps; in IsFloatResultSubnormal()
123 return x < MAKE_HEX_DOUBLE(0x1.0p-126, 0x1, -126); in IsFloatResultSubnormal()
129 return x < MAKE_HEX_DOUBLE(0x1.0p-126, 0x1, -126); in IsFloatResultSubnormalAbsError()
/external/OpenCL-CTS/test_conformance/conversions/
Dbasic_test_conversions.cpp144 …static const double magic[2] = { MAKE_HEX_DOUBLE(0x1.0p52, 0x1LL, 52), MAKE_HEX_DOUBLE(-0x1.0p52, … in lrint_clamped()
161 if( fabs(f) < MAKE_HEX_DOUBLE(0x1.0p52, 0x1LL, 52) ) in lrint_clamped()
185 …static const double magic[2] = { MAKE_HEX_DOUBLE(0x1.0p52, 0x1LL, 52), MAKE_HEX_DOUBLE(-0x1.0p52, … in llrint_clamped()
194 if( fabs(f) < MAKE_HEX_DOUBLE(0x1.0p52, 0x1LL, 52) ) in llrint_clamped()
935 …float f = my_rintf(((float*) in)[0]); ((cl_ulong*) out)[0] = f >= MAKE_HEX_DOUBLE(0x1.0p64, 0x1LL,… in float2ulong_sat()
941 …n)[0]); ((cl_long*) out)[0] = f >= MAKE_HEX_DOUBLE(0x1.0p63, 0x1LL, 63) ? 0x7FFFFFFFFFFFFFFFULL : … in float2long_sat()
949 …in){ double f = rint(((double*) in)[0]); ((cl_ulong*) out)[0] = f >= MAKE_HEX_DOUBLE(0x1.0p64, 0x1… in double2ulong_sat()
950 …n)[0]); ((cl_long*) out)[0] = f >= MAKE_HEX_DOUBLE(0x1.0p63, 0x1LL, 63) ? 0x7FFFFFFFFFFFFFFFULL : … in double2long_sat()
1225 double clampd_uint( double f ) { return dclamp( -0.5, f, CL_UINT_MAX + 0.5 - MAKE_HEX_DOUBLE(0… in clampd_uint()
1227 double clampd_uint_rte( double f ) { return dclamp( -0.5, f, CL_UINT_MAX + 0.5 - MAKE_HEX_DOUBLE(0… in clampd_uint_rte()
[all …]
/external/OpenCL-CTS/test_conformance/basic/
Dtest_numeric_constants.cpp95 …TEST_VALUE_EQUAL( "CL_DBL_MAX", CL_DBL_MAX, MAKE_HEX_DOUBLE(0x1.fffffffffffffp1023… in test_host_numeric_constants()
96 …TEST_VALUE_EQUAL( "CL_DBL_MIN", CL_DBL_MIN, MAKE_HEX_DOUBLE(0x1.0p-1022, 0x1LL, -1… in test_host_numeric_constants()
97 …TEST_VALUE_EQUAL( "CL_DBL_EPSILON", CL_DBL_EPSILON, MAKE_HEX_DOUBLE(0x1.0p-52, 0x1LL, -52)) in test_host_numeric_constants()
99 …TEST_VALUE_EQUAL( "CL_M_E", CL_M_E, MAKE_HEX_DOUBLE(0x1.5bf0a8b145769p+1, 0x15bf0… in test_host_numeric_constants()
100 …TEST_VALUE_EQUAL( "CL_M_LOG2E", CL_M_LOG2E, MAKE_HEX_DOUBLE(0x1.71547652b82fep+0, 0x17154… in test_host_numeric_constants()
101 …TEST_VALUE_EQUAL( "CL_M_LOG10E", CL_M_LOG10E, MAKE_HEX_DOUBLE(0x1.bcb7b1526e50ep-2, 0x1bcb7… in test_host_numeric_constants()
102 …TEST_VALUE_EQUAL( "CL_M_LN2", CL_M_LN2, MAKE_HEX_DOUBLE(0x1.62e42fefa39efp-1, 0x162e4… in test_host_numeric_constants()
103 …TEST_VALUE_EQUAL( "CL_M_LN10", CL_M_LN10, MAKE_HEX_DOUBLE(0x1.26bb1bbb55516p+1, 0x126bb… in test_host_numeric_constants()
104 …TEST_VALUE_EQUAL( "CL_M_PI", CL_M_PI, MAKE_HEX_DOUBLE(0x1.921fb54442d18p+1, 0x1921f… in test_host_numeric_constants()
105 …TEST_VALUE_EQUAL( "CL_M_PI_2", CL_M_PI_2, MAKE_HEX_DOUBLE(0x1.921fb54442d18p+0, 0x1921f… in test_host_numeric_constants()
[all …]
/external/OpenCL-CTS/test_conformance/geometrics/
Dtest_geometrics_double.cpp116MAKE_HEX_DOUBLE(0x1.0p511, 0x1L, 511), MAKE_HEX_DOUBLE(0x1.8p511, 0x18L, 507), MAKE_HEX_DOUBLE(0x1… in fillWithTrickyNumbers_double()
117MAKE_HEX_DOUBLE(0x1.0p-511, 0x1L, -511), MAKE_HEX_DOUBLE(0x1.8p-511, 0x18L, -515), MAKE_HEX_DOUBLE in fillWithTrickyNumbers_double()
646 double f = srcA[i] * MAKE_HEX_DOUBLE(0x1.0p-600, 0x1LL, -600); in verifyLength_double()
650 return sqrt( total ) * MAKE_HEX_DOUBLE(0x1.0p600, 0x1LL, 600); in verifyLength_double()
659 double f = srcA[i] * MAKE_HEX_DOUBLE(0x1.0p700, 0x1LL, 700); in verifyLength_double()
663 return sqrt( total ) * MAKE_HEX_DOUBLE(0x1.0p-700, 0x1LL, -700); in verifyLength_double()
876 dst[i] = srcA[i] * MAKE_HEX_DOUBLE(0x1.0p700, 0x1LL, 700); //exact in verifyNormalize_double()
893 double scale = MAKE_HEX_DOUBLE(0x1.0p-512, 0x1LL, -512) / vecSize; in verifyNormalize_double()
/external/OpenCL-CTS/test_common/harness/
Dcompat.h346 #define MAKE_HEX_DOUBLE(x, y, z) ldexp((double)(y), z) macro
353 #define MAKE_HEX_DOUBLE(x, y, z) x macro
Dconversions.cpp131 static const double magic[2] = { MAKE_HEX_DOUBLE(0x1.0p52, 0x1LL, 52), in lrint_clamped()
132 MAKE_HEX_DOUBLE(-0x1.0p52, -0x1LL, 52) }; in lrint_clamped()
146 if (fabs(f) < MAKE_HEX_DOUBLE(0x1.0p52, 0x1LL, 52)) in lrint_clamped()
1058 t *= MAKE_HEX_DOUBLE(0x1.0p-32, 0x1, -32); in generate_random_data()
1165 double t = (double)u * MAKE_HEX_DOUBLE(0x1.0p-64, 0x1, -64); in get_random_double()
DerrorHelpers.cpp426 testVal = copysign(MAKE_HEX_DOUBLE(0x1.0p128, 0x1LL, 128), testVal); in Ulp_Error()