/third_party/opencl-headers/CL/ |
H A D | cl_half.h | 185 uint32_t halfway = 1 << (lsb_pos - 1); in cl_half_from_float() local 186 uint32_t mask = (halfway << 1) - 1; in cl_half_from_float() 190 if ((f_mant & mask) > halfway) in cl_half_from_float() 192 // More than halfway -> round up in cl_half_from_float() 195 else if ((f_mant & mask) == halfway) in cl_half_from_float() 197 // Exactly halfway -> round to nearest even in cl_half_from_float() 311 uint64_t halfway = (uint64_t)1 << (lsb_pos - 1); in cl_half_from_double() local 312 uint64_t mask = (halfway << 1) - 1; in cl_half_from_double() 316 if ((d_mant & mask) > halfway) in cl_half_from_double() 318 // More than halfway in cl_half_from_double() [all...] |
/third_party/skia/third_party/externals/angle2/include/CL/ |
H A D | cl_half.h | 185 uint32_t halfway = 1 << (lsb_pos - 1); in cl_half_from_float() local 186 uint32_t mask = (halfway << 1) - 1; in cl_half_from_float() 190 if ((f_mant & mask) > halfway) in cl_half_from_float() 192 // More than halfway -> round up in cl_half_from_float() 195 else if ((f_mant & mask) == halfway) in cl_half_from_float() 197 // Exactly halfway -> round to nearest even in cl_half_from_float() 311 uint64_t halfway = (uint64_t)1 << (lsb_pos - 1); in cl_half_from_double() local 312 uint64_t mask = (halfway << 1) - 1; in cl_half_from_double() 316 if ((d_mant & mask) > halfway) in cl_half_from_double() 318 // More than halfway in cl_half_from_double() [all...] |
/third_party/rust/crates/minimal-lexical/src/ |
H A D | rounding.rs | 40 // for halfway cases rounding towards 0. in round() 92 let halfway = lower_n_halfway(shift as u64); in round_nearest_tie_even() 94 let is_above = truncated_bits > halfway; in round_nearest_tie_even() 95 let is_halfway = truncated_bits == halfway; in round_nearest_tie_even() 117 // We need to roundup if we are above halfway, or if we are odd in round_nearest_tie_even()
|
H A D | bellerophon.rs | 115 // Check for literal overflow, even with halfway cases. in bellerophon() 148 // Specifically, we want to know if we are close to a halfway representation, 149 // or halfway between `b` and `b+1`, or `b+h`. The halfway representation 158 // The halfway representation has a bit set 1-after the mantissa digits, 181 // inaccurate, or if the representation is too close to halfway in error_is_accurate() 182 // that any operations could affect this halfway representation. in error_is_accurate() 203 // is the halfway point, IE, this when the truncated bits start in error_is_accurate() 214 // cmp1 = (halfway - errors) < extra in error_is_accurate() 215 // cmp1 = extra < (halfway in error_is_accurate() [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | tjunittest.c | 109 int index, row, col, halfway = 16; in initBuf() local 118 buf[index] = (row < halfway) ? 255 : 0; in initBuf() 119 else buf[index] = (row < halfway) ? 76 : 226; in initBuf() 129 if (row >= halfway) buf[index * ps + 3] = 0; in initBuf() 132 if (row < halfway) buf[index * ps + 1] = 0; in initBuf() 143 if (row < halfway) { in initBuf() 150 if (row >= halfway) buf[index * ps + goffset] = 255; in initBuf() 192 int halfway = 16 * sf.num / sf.denom; in checkBuf() local 210 if (row < halfway) CHECKVAL255(k) in checkBuf() 214 if (row < halfway) CHECKVAL in checkBuf() 289 int halfway = 16 * sf.num / sf.denom; checkBufYUV() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_long.py | 446 halfway = (int_dbl_max + top_power)//2 449 self.assertEqual(float(halfway-1), DBL_MAX) 450 self.assertRaises(OverflowError, float, halfway) 451 self.assertEqual(float(1-halfway), -DBL_MAX) 452 self.assertRaises(OverflowError, float, -halfway) 473 halfway-1, halfway, halfway + 1, 862 # (2**DBL_MANT_DIG+1)/(2**DBL_MANT_DIG) lies halfway
|
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/ |
H A D | hash_test.cc | 283 size_t halfway = sv.size() / 2; in FragmentedCord() local 284 std::vector<absl::string_view> parts = {sv.substr(0, halfway), in FragmentedCord() 285 sv.substr(halfway)}; in FragmentedCord()
|
/third_party/skia/tests/ |
H A D | PathTest.cpp | 4175 SkPoint halfway; in test_contains() local 4177 SkEvalQuadAt(&qPts[index], 0.5f, &halfway, nullptr); in test_contains() 4178 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway.fY)); in test_contains() 4193 halfway = conic.evalAt(0.5f); in test_contains() 4194 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway.fY)); in test_contains() 4213 SkEvalCubicAt(&pts[i], 0.5f, &halfway, nullptr, nullptr); in test_contains() 4214 REPORTER_ASSERT(reporter, p.contains(halfway.fX, halfway in test_contains() [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_int64.c | 732 nir_ssa_def *halfway = nir_iand(b, COND_LOWER_CMP(b, ieq, rem, half), in lower_2f() local 736 nir_iand(b, halfway, is_odd)); in lower_2f()
|