Home
last modified time | relevance | path

Searched refs:int_max (Results 1 – 15 of 15) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Dsafe_integer_conversions_unittest.cc18 int int_max = std::numeric_limits<int>::max(); in TEST() local
21 EXPECT_EQ(int_max, ToFlooredInt(infinity)); in TEST()
22 EXPECT_EQ(int_max, ToFlooredInt(max)); in TEST()
23 EXPECT_EQ(int_max, ToFlooredInt(max + 100)); in TEST()
39 int int_max = std::numeric_limits<int>::max(); in TEST() local
42 EXPECT_EQ(int_max, ToCeiledInt(infinity)); in TEST()
43 EXPECT_EQ(int_max, ToCeiledInt(max)); in TEST()
44 EXPECT_EQ(int_max, ToCeiledInt(max + 100)); in TEST()
60 int int_max = std::numeric_limits<int>::max(); in TEST() local
63 EXPECT_EQ(int_max, ToRoundedInt(infinity)); in TEST()
[all …]
Dpoint_unittest.cc180 int int_max = std::numeric_limits<int>::max(); in TEST() local
183 Point max_point(int_max, int_max); in TEST()
188 test.Offset(int_max, int_max); in TEST()
196 test.Offset(int_max, int_max); in TEST()
204 test += Vector2d(int_max, int_max); in TEST()
212 test += Vector2d(int_max, int_max); in TEST()
220 test -= Vector2d(int_max, int_max); in TEST()
221 EXPECT_EQ(test, Point(-int_max, -int_max)); in TEST()
232 test -= Vector2d(int_max, int_max); in TEST()
Dvector2d_unittest.cc253 int int_max = std::numeric_limits<int>::max(); in TEST() local
256 Vector2d max_vector(int_max, int_max); in TEST()
261 test += Vector2d(int_max, int_max); in TEST()
269 test += Vector2d(int_max, int_max); in TEST()
277 test -= Vector2d(int_max, int_max); in TEST()
278 EXPECT_EQ(test, Vector2d(-int_max, -int_max)); in TEST()
289 test -= Vector2d(int_max, int_max); in TEST()
Dsize_unittest.cc132 int int_max = std::numeric_limits<int>::max(); in TEST() local
135 Size max_size(int_max, int_max); in TEST()
140 test.Enlarge(int_max, int_max); in TEST()
148 test.Enlarge(int_max, int_max); in TEST()
/external/libvpx/libvpx/vpx_dsp/
Dinv_txfm.h51 const int32_t int_max = (1 << (7 + bd)) - 1; in highbd_check_range() local
52 const int32_t int_min = -int_max - 1; in highbd_check_range()
54 assert(input <= int_max); in highbd_check_range()
/external/tensorflow/tensorflow/core/kernels/
Disotonic_regression_op.cc180 int int_max = std::numeric_limits<int32>::max(); in Compute() local
182 tensorflow::FastBoundsCheck(input.dimensions()[0], int_max) && in Compute()
183 tensorflow::FastBoundsCheck(input.dimensions()[1], int_max), in Compute()
/external/mesa3d/src/compiler/nir/
Dnir_lower_bit_size.c160 int64_t int_max = (1ull << (old_bit_size - 1)) - 1; in lower_intrinsic_instr() local
161 res = nir_imin(b, res, nir_imm_intN_t(b, int_max, bit_size)); in lower_intrinsic_instr()
/external/python/cpython3/Lib/test/
Dtest_decimal.py4841 int_max = 2**63-1 if HAVE_CONFIG_64 else 2**31-1
4855 self.assertRaises(OverflowError, Context, prec=int_max+1)
4856 self.assertRaises(OverflowError, Context, Emax=int_max+1)
4857 self.assertRaises(OverflowError, Context, Emin=-int_max-2)
4858 self.assertRaises(OverflowError, Context, clamp=int_max+1)
4859 self.assertRaises(OverflowError, Context, capitals=int_max+1)
4863 self.assertRaises(OverflowError, setattr, c, attr, int_max+1)
4864 self.assertRaises(OverflowError, setattr, c, attr, -int_max-2)
4866 self.assertRaises(ValueError, setattr, c, attr, int_max)
4867 self.assertRaises(ValueError, setattr, c, attr, -int_max-1)
[all …]
/external/fmtlib/include/fmt/
Dprintf.h169 unsigned int_max = max_value<int>();
170 if (width > int_max) FMT_THROW(format_error("number is too big"));
/external/python/cffi/c/
Dtest_c.py970 int_max = (1 << (8*size_of_int()-1)) - 1
972 if int_max == long_max:
973 assert f(int_max, 1) == - int_max - 1
975 assert f(int_max, 1) == int_max + 1
/external/python/cpython3/Objects/
Dlongobject.c429 const double int_max = (unsigned long)LONG_MAX + 1; in PyLong_FromDouble() local
430 if (-int_max < dval && dval < int_max) { in PyLong_FromDouble()
/external/llvm-project/clang/include/clang/Basic/
Darm_mve_defs.td102 def int_max: CGHelperFn<"ARMMVEConstantSplat<0,1>">;
Darm_mve.td360 (int_max Vector),
365 (int_max Vector),
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMInstrMVE.td2165 // int_min/int_max: vector containing INT_MIN/INT_MAX VTI.Size times
2167 multiclass vqabsneg_pattern<MVEVectorVTInfo VTI, dag int_min, dag int_max,
2179 int_max,
2186 int_max,
/external/llvm-project/llvm/lib/Target/ARM/
DARMInstrMVE.td2498 // int_min/int_max: vector containing INT_MIN/INT_MAX VTI.Size times
2500 multiclass vqabsneg_pattern<MVEVectorVTInfo VTI, dag int_min, dag int_max,
2512 int_max,
2519 int_max,