Home
last modified time | relevance | path

Searched refs:Limits (Results 1 – 25 of 157) sorted by relevance

1234567

/external/webrtc/rtc_base/numerics/
Dsafe_minmax.h94 struct Limits { struct
145 SafeLt(Limits<T1>::lowest, Limits<T2>::lowest),
148 SafeGt(Limits<T1>::lowest, Limits<T2>::lowest),
150 typename std::conditional<SafeLe(Limits<T1>::max, Limits<T2>::max),
160 static_assert(SafeNe(Limits<T1>::max, Limits<T2>::max) ||
161 SafeEq(Limits<T1>::lowest, Limits<T2>::lowest),
164 conditional<SafeGe(Limits<T1>::max, Limits<T2>::max), T1, T2>::type;
180 static_assert(SafeLe(Limits<type>::lowest, Limits<B>::lowest) &&
181 SafeGe(Limits<type>::max, Limits<B>::max),
253 SafeMax(Limits<L>::lowest, SafeMin(Limits<H>::lowest, Limits<T>::lowest));
[all …]
/external/abseil-cpp/absl/random/
Dlog_uniform_int_distribution_test.cc49 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
59 param_type(1, Limits::max() / 2), // in TYPED_TEST()
60 param_type(0, Limits::max() - 1), // in TYPED_TEST()
61 param_type(0, Limits::max(), 2), // in TYPED_TEST()
62 param_type(0, Limits::max(), 10), // in TYPED_TEST()
63 param_type(Limits::min(), 0), // in TYPED_TEST()
64 param_type(Limits::lowest(), Limits::max()), // in TYPED_TEST()
65 param_type(Limits::min(), Limits::max()), // in TYPED_TEST()
214 using Limits = std::numeric_limits<int32_t>; in GenParams() typedef
230 Param{0, Limits::max(), 2}, in GenParams()
[all …]
Duniform_int_distribution_test.cc45 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
58 param_type(kNegOneOrZero, Limits::max()), in TYPED_TEST()
59 param_type(Limits::min(), Limits::max()), in TYPED_TEST()
60 param_type(Limits::lowest(), Limits::max()), in TYPED_TEST()
61 param_type(Limits::min() + 1, Limits::max() - 1), in TYPED_TEST()
79 absl::uniform_int_distribution<TypeParam> after(Limits::min() + 3, in TYPED_TEST()
80 Limits::max() - 5); in TYPED_TEST()
133 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
140 {param_type(0, Limits::max()), param_type(13, 127)}) { in TYPED_TEST()
/external/angle/third_party/abseil-cpp/absl/random/
Dlog_uniform_int_distribution_test.cc50 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
60 param_type(1, Limits::max() / 2), // in TYPED_TEST()
61 param_type(0, Limits::max() - 1), // in TYPED_TEST()
62 param_type(0, Limits::max(), 2), // in TYPED_TEST()
63 param_type(0, Limits::max(), 10), // in TYPED_TEST()
64 param_type(Limits::min(), 0), // in TYPED_TEST()
65 param_type(Limits::lowest(), Limits::max()), // in TYPED_TEST()
66 param_type(Limits::min(), Limits::max()), // in TYPED_TEST()
217 using Limits = std::numeric_limits<int32_t>; in GenParams() typedef
233 Param{0, Limits::max(), 2}, in GenParams()
[all …]
Duniform_int_distribution_test.cc46 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
59 param_type(kNegOneOrZero, Limits::max()), in TYPED_TEST()
60 param_type(Limits::min(), Limits::max()), in TYPED_TEST()
61 param_type(Limits::lowest(), Limits::max()), in TYPED_TEST()
62 param_type(Limits::min() + 1, Limits::max() - 1), in TYPED_TEST()
80 absl::uniform_int_distribution<TypeParam> after(Limits::min() + 3, in TYPED_TEST()
81 Limits::max() - 5); in TYPED_TEST()
134 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
145 {param_type(0, Limits::max()), param_type(13, 127)}) { in TYPED_TEST()
/external/webrtc/third_party/abseil-cpp/absl/random/
Dlog_uniform_int_distribution_test.cc49 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
59 param_type(1, Limits::max() / 2), // in TYPED_TEST()
60 param_type(0, Limits::max() - 1), // in TYPED_TEST()
61 param_type(0, Limits::max(), 2), // in TYPED_TEST()
62 param_type(0, Limits::max(), 10), // in TYPED_TEST()
63 param_type(Limits::min(), 0), // in TYPED_TEST()
64 param_type(Limits::lowest(), Limits::max()), // in TYPED_TEST()
65 param_type(Limits::min(), Limits::max()), // in TYPED_TEST()
214 using Limits = std::numeric_limits<int32_t>; in GenParams() typedef
230 Param{0, Limits::max(), 2}, in GenParams()
[all …]
Duniform_int_distribution_test.cc45 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
58 param_type(kNegOneOrZero, Limits::max()), in TYPED_TEST()
59 param_type(Limits::min(), Limits::max()), in TYPED_TEST()
60 param_type(Limits::lowest(), Limits::max()), in TYPED_TEST()
61 param_type(Limits::min() + 1, Limits::max() - 1), in TYPED_TEST()
79 absl::uniform_int_distribution<TypeParam> after(Limits::min() + 3, in TYPED_TEST()
80 Limits::max() - 5); in TYPED_TEST()
133 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
140 {param_type(0, Limits::max()), param_type(13, 127)}) { in TYPED_TEST()
/external/openscreen/third_party/abseil/src/absl/random/
Dlog_uniform_int_distribution_test.cc50 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
60 param_type(1, Limits::max() / 2), // in TYPED_TEST()
61 param_type(0, Limits::max() - 1), // in TYPED_TEST()
62 param_type(0, Limits::max(), 2), // in TYPED_TEST()
63 param_type(0, Limits::max(), 10), // in TYPED_TEST()
64 param_type(Limits::min(), 0), // in TYPED_TEST()
65 param_type(Limits::lowest(), Limits::max()), // in TYPED_TEST()
66 param_type(Limits::min(), Limits::max()), // in TYPED_TEST()
217 using Limits = std::numeric_limits<int32_t>; in GenParams() typedef
233 Param{0, Limits::max(), 2}, in GenParams()
[all …]
Duniform_int_distribution_test.cc46 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
59 param_type(kNegOneOrZero, Limits::max()), in TYPED_TEST()
60 param_type(Limits::min(), Limits::max()), in TYPED_TEST()
61 param_type(Limits::lowest(), Limits::max()), in TYPED_TEST()
62 param_type(Limits::min() + 1, Limits::max() - 1), in TYPED_TEST()
80 absl::uniform_int_distribution<TypeParam> after(Limits::min() + 3, in TYPED_TEST()
81 Limits::max() - 5); in TYPED_TEST()
134 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
145 {param_type(0, Limits::max()), param_type(13, 127)}) { in TYPED_TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/
Dlog_uniform_int_distribution_test.cc50 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
60 param_type(1, Limits::max() / 2), // in TYPED_TEST()
61 param_type(0, Limits::max() - 1), // in TYPED_TEST()
62 param_type(0, Limits::max(), 2), // in TYPED_TEST()
63 param_type(0, Limits::max(), 10), // in TYPED_TEST()
64 param_type(Limits::min(), 0), // in TYPED_TEST()
65 param_type(Limits::lowest(), Limits::max()), // in TYPED_TEST()
66 param_type(Limits::min(), Limits::max()), // in TYPED_TEST()
217 using Limits = std::numeric_limits<int32_t>; in GenParams() typedef
233 Param{0, Limits::max(), 2}, in GenParams()
[all …]
Duniform_int_distribution_test.cc46 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
59 param_type(kNegOneOrZero, Limits::max()), in TYPED_TEST()
60 param_type(Limits::min(), Limits::max()), in TYPED_TEST()
61 param_type(Limits::lowest(), Limits::max()), in TYPED_TEST()
62 param_type(Limits::min() + 1, Limits::max() - 1), in TYPED_TEST()
80 absl::uniform_int_distribution<TypeParam> after(Limits::min() + 3, in TYPED_TEST()
81 Limits::max() - 5); in TYPED_TEST()
134 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
145 {param_type(0, Limits::max()), param_type(13, 127)}) { in TYPED_TEST()
/external/libtextclassifier/abseil-cpp/absl/random/
Dlog_uniform_int_distribution_test.cc50 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
60 param_type(1, Limits::max() / 2), // in TYPED_TEST()
61 param_type(0, Limits::max() - 1), // in TYPED_TEST()
62 param_type(0, Limits::max(), 2), // in TYPED_TEST()
63 param_type(0, Limits::max(), 10), // in TYPED_TEST()
64 param_type(Limits::min(), 0), // in TYPED_TEST()
65 param_type(Limits::lowest(), Limits::max()), // in TYPED_TEST()
66 param_type(Limits::min(), Limits::max()), // in TYPED_TEST()
217 using Limits = std::numeric_limits<int32_t>; in GenParams() typedef
233 Param{0, Limits::max(), 2}, in GenParams()
[all …]
Duniform_int_distribution_test.cc46 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
59 param_type(kNegOneOrZero, Limits::max()), in TYPED_TEST()
60 param_type(Limits::min(), Limits::max()), in TYPED_TEST()
61 param_type(Limits::lowest(), Limits::max()), in TYPED_TEST()
62 param_type(Limits::min() + 1, Limits::max() - 1), in TYPED_TEST()
80 absl::uniform_int_distribution<TypeParam> after(Limits::min() + 3, in TYPED_TEST()
81 Limits::max() - 5); in TYPED_TEST()
134 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST() typedef
145 {param_type(0, Limits::max()), param_type(13, 127)}) { in TYPED_TEST()
/external/rust/cxx/syntax/
Ddiscriminant.rs42 if let Some(limits) = Limits::of(new_repr) { in insert()
137 if let Some(limits) = Limits::of(expected_repr) { in insert()
255 struct Limits { struct
261 impl Limits { argument
262 fn of(repr: Atom) -> Option<Limits> { in of() argument
272 const LIMITS: [Limits; 8] = [
273 Limits {
278 Limits {
283 Limits {
288 Limits {
[all …]
/external/deqp/framework/common/
DtcuFloatFormat.cpp273 typedef std::numeric_limits<T> Limits; in nativeFormat() typedef
275 DE_ASSERT(Limits::radix == 2); in nativeFormat()
277 return FloatFormat(Limits::min_exponent - 1, // These have a built-in offset of one in nativeFormat()
278 Limits::max_exponent - 1, in nativeFormat()
279 Limits::digits - 1, // don't count the hidden bit in nativeFormat()
280 Limits::has_denorm != std::denorm_absent, in nativeFormat()
281 Limits::has_infinity ? YES : NO, in nativeFormat()
282 Limits::has_quiet_NaN ? YES : NO, in nativeFormat()
283 ((Limits::has_denorm == std::denorm_present) ? YES : in nativeFormat()
284 (Limits::has_denorm == std::denorm_absent) ? NO : in nativeFormat()
/external/nanopb-c/tests/backwards_compatibility/
Dalltypes_legacy.c53 …PB_FIELD( 1, INT32 , REQUIRED, STATIC , FIRST, Limits, int32_min, int32_min, &Limits_int32_min…
54 …PB_FIELD( 2, INT32 , REQUIRED, STATIC , OTHER, Limits, int32_max, int32_min, &Limits_int32_max…
55 …PB_FIELD( 3, UINT32 , REQUIRED, STATIC , OTHER, Limits, uint32_min, int32_max, &Limits_uint32_m…
56 …PB_FIELD( 4, UINT32 , REQUIRED, STATIC , OTHER, Limits, uint32_max, uint32_min, &Limits_uint32_…
57 …PB_FIELD( 5, INT64 , REQUIRED, STATIC , OTHER, Limits, int64_min, uint32_max, &Limits_int64_mi…
58 …PB_FIELD( 6, INT64 , REQUIRED, STATIC , OTHER, Limits, int64_max, int64_min, &Limits_int64_max…
59 …PB_FIELD( 7, UINT64 , REQUIRED, STATIC , OTHER, Limits, uint64_min, int64_max, &Limits_uint64_m…
60 …PB_FIELD( 8, UINT64 , REQUIRED, STATIC , OTHER, Limits, uint64_max, uint64_min, &Limits_uint64_…
61 …PB_FIELD( 9, ENUM , REQUIRED, STATIC , OTHER, Limits, enum_min, uint64_max, &Limits_enum_min_…
62 …PB_FIELD( 10, ENUM , REQUIRED, STATIC , OTHER, Limits, enum_max, enum_min, &Limits_enum_max_de…
/external/grpc-grpc/third_party/nanopb/tests/backwards_compatibility/
Dalltypes_legacy.c53 …PB_FIELD( 1, INT32 , REQUIRED, STATIC , FIRST, Limits, int32_min, int32_min, &Limits_int32_min…
54 …PB_FIELD( 2, INT32 , REQUIRED, STATIC , OTHER, Limits, int32_max, int32_min, &Limits_int32_max…
55 …PB_FIELD( 3, UINT32 , REQUIRED, STATIC , OTHER, Limits, uint32_min, int32_max, &Limits_uint32_m…
56 …PB_FIELD( 4, UINT32 , REQUIRED, STATIC , OTHER, Limits, uint32_max, uint32_min, &Limits_uint32_…
57 …PB_FIELD( 5, INT64 , REQUIRED, STATIC , OTHER, Limits, int64_min, uint32_max, &Limits_int64_mi…
58 …PB_FIELD( 6, INT64 , REQUIRED, STATIC , OTHER, Limits, int64_max, int64_min, &Limits_int64_max…
59 …PB_FIELD( 7, UINT64 , REQUIRED, STATIC , OTHER, Limits, uint64_min, int64_max, &Limits_uint64_m…
60 …PB_FIELD( 8, UINT64 , REQUIRED, STATIC , OTHER, Limits, uint64_max, uint64_min, &Limits_uint64_…
61 …PB_FIELD( 9, ENUM , REQUIRED, STATIC , OTHER, Limits, enum_min, uint64_max, &Limits_enum_min_…
62 …PB_FIELD( 10, ENUM , REQUIRED, STATIC , OTHER, Limits, enum_max, enum_min, &Limits_enum_max_de…
/external/libcxx/test/libcxx/type_traits/
Dconvert_to_integral.pass.cpp37 typedef std::numeric_limits<From> Limits; in check_integral_types() typedef
38 const From max = Limits::max(); in check_integral_types()
39 const From min = Limits::min(); in check_integral_types()
/external/llvm-project/libcxx/test/libcxx/type_traits/
Dconvert_to_integral.pass.cpp38 typedef std::numeric_limits<From> Limits; in check_integral_types() typedef
39 const From max = Limits::max(); in check_integral_types()
40 const From min = Limits::min(); in check_integral_types()
/external/llvm-project/llvm/lib/DebugInfo/CodeView/
DCodeViewRecordIO.cpp22 Limits.push_back(Limit); in beginRecord()
27 assert(!Limits.empty() && "Not in a record!"); in endRecord()
28 Limits.pop_back(); in endRecord()
61 assert(!Limits.empty() && "Not in a record!"); in maxFieldLength()
68 Optional<uint32_t> Min = Limits.front().bytesRemaining(Offset); in maxFieldLength()
69 for (auto X : makeArrayRef(Limits).drop_front()) { in maxFieldLength()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DCodeViewRecordIO.cpp22 Limits.push_back(Limit); in beginRecord()
27 assert(!Limits.empty() && "Not in a record!"); in endRecord()
28 Limits.pop_back(); in endRecord()
61 assert(!Limits.empty() && "Not in a record!"); in maxFieldLength()
68 Optional<uint32_t> Min = Limits.front().bytesRemaining(Offset); in maxFieldLength()
69 for (auto X : makeArrayRef(Limits).drop_front()) { in maxFieldLength()
/external/llvm-project/llvm/include/llvm/ObjectYAML/
DWasmYAML.h47 struct Limits { struct
55 Limits TableLimits; argument
92 Limits Memory;
313 std::vector<Limits> Memories;
411 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Limits) in LLVM_YAML_IS_SEQUENCE_VECTOR()
482 template <> struct MappingTraits<WasmYAML::Limits> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
483 static void mapping(IO &IO, WasmYAML::Limits &Limits); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ObjectYAML/
DWasmYAML.h47 struct Limits { struct
55 Limits TableLimits; argument
91 Limits Memory;
309 std::vector<Limits> Memories;
407 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Limits) in LLVM_YAML_IS_SEQUENCE_VECTOR()
478 template <> struct MappingTraits<WasmYAML::Limits> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
479 static void mapping(IO &IO, WasmYAML::Limits &Limits); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/external/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_lowering_nvc0.h101 struct Limits struct
103 Limits() { } in Limits() argument
104 Limits(int min, int max) : min(min), max(max) { } in Limits() argument
/external/llvm-project/llvm/tools/obj2yaml/
Dwasm2yaml.cpp34 static WasmYAML::Limits makeLimits(const wasm::WasmLimits &Limits) { in makeLimits() argument
35 WasmYAML::Limits L; in makeLimits()
36 L.Flags = Limits.Flags; in makeLimits()
37 L.Initial = Limits.Initial; in makeLimits()
38 L.Maximum = Limits.Maximum; in makeLimits()
47 T.TableLimits = makeLimits(Type.Limits); in makeTable()

1234567