Home
last modified time | relevance | path

Searched refs:is_int (Results 1 – 25 of 82) sorted by relevance

1234

/external/bazel-skylib/tests/
Dtypes_tests.bzl109 """Unit tests for types.is_int."""
113 asserts.true(env, types.is_int(1))
114 asserts.true(env, types.is_int(-1))
116 asserts.false(env, types.is_int("s"))
117 asserts.false(env, types.is_int({}))
118 asserts.false(env, types.is_int(()))
119 asserts.false(env, types.is_int(True))
120 asserts.false(env, types.is_int([]))
121 asserts.false(env, types.is_int([1]))
122 asserts.false(env, types.is_int(None))
[all …]
/external/openthread/tests/scripts/thread-cert/border_router/
Dtest_dnssd_server_multi_border_routers.py153 def is_int(x): function
174 'ANSWER': [(ins1_full_name, 'IN', 'SRV', is_int, is_int, 11111, host1_full_name),],
182 'ANSWER': [(ins2_full_name, 'IN', 'SRV', is_int, is_int, 22222, host2_full_name),],
206 (ins1_full_name, 'IN', 'SRV', is_int, is_int, 11111, host1_full_name),
214 (ins2_full_name, 'IN', 'SRV', is_int, is_int, 22222, host2_full_name),
/external/mesa3d/src/panfrost/midgard/
Ddisassemble.c194 print_outmod(FILE *fp, unsigned outmod, bool is_int) in print_outmod() argument
196 fprintf(fp, "%s", is_int ? outmod_names_int[outmod] : in print_outmod()
426 print_srcmod(FILE *fp, bool is_int, unsigned mod, bool scalar) in print_srcmod() argument
432 if (is_int) { in print_srcmod()
448 print_srcmod_end(FILE *fp, bool is_int, unsigned mod, unsigned bits) in print_srcmod_end() argument
452 if (is_int && mod == midgard_int_shift) in print_srcmod_end()
454 else if ((is_int && (mod != midgard_int_normal)) in print_srcmod_end()
455 || (!is_int && mod & MIDGARD_FLOAT_MOD_ABS)) in print_srcmod_end()
462 midgard_dest_override override, bool is_int) in print_vector_src() argument
465 print_srcmod(fp, is_int, src->mod, false); in print_vector_src()
[all …]
Dmidgard_ops.h58 bool is_int = midgard_is_integer_op(op); in midgard_is_integer_out_op() local
61 return is_int ^ is_conversion; in midgard_is_integer_out_op()
Dmir.c120 bool is_int = midgard_is_integer_op(ins->op); in mir_nontrivial_mod() local
122 if (is_int) { in mir_nontrivial_mod()
144 bool is_int = midgard_is_integer_op(ins->op); in mir_nontrivial_outmod() local
150 if (is_int) in mir_nontrivial_outmod()
/external/swiftshader/third_party/SPIRV-Tools/tools/sva/src/
Dast.js44 let is_int = inst.name() === "OpTypeInt";
47 type: is_int ? "int" : "float",
49 signed: is_int ? inst.operand(2).value() : 1
/external/deqp-deps/SPIRV-Tools/tools/sva/src/
Dast.js44 let is_int = inst.name() === "OpTypeInt";
47 type: is_int ? "int" : "float",
49 signed: is_int ? inst.operand(2).value() : 1
/external/angle/third_party/vulkan-deps/spirv-tools/src/tools/sva/src/
Dast.js44 let is_int = inst.name() === "OpTypeInt";
47 type: is_int ? "int" : "float",
49 signed: is_int ? inst.operand(2).value() : 1
/external/clang/test/SemaTemplate/
Doverload-candidates.cpp56 template<typename T> struct is_int { enum { value = false }; }; struct
57 template<> struct is_int<int> { enum { value = true }; }; argument
58 template<typename T> typename llvm::enable_if<is_int<T> >::type if_int(); // expected-note{{candida…
/external/pigweed/pw_metric/
Dmetric.cc69 PW_DCHECK(is_int()); in as_int()
74 PW_DCHECK(is_int()); in Increment()
79 PW_DCHECK(is_int()); in SetInt()
Dmetric_test.cc29 EXPECT_FALSE(m.is_int()); in TEST()
44 EXPECT_TRUE(m.is_int()); in TEST()
60 EXPECT_TRUE(m.is_int()); in TEST()
/external/cronet/base/json/
Djson_value_converter.cc14 if (!value.is_int()) in Convert()
41 if (!value.is_double() && !value.is_int()) in Convert()
Djson_reader_unittest.cc65 EXPECT_TRUE(root->is_int()); in TEST()
90 ASSERT_TRUE((*list)[0].is_int()); in TEST()
92 ASSERT_TRUE((*list)[1].is_int()); in TEST()
101 ASSERT_TRUE(root->is_int()); in TEST()
108 EXPECT_TRUE(root->is_int()); in TEST()
118 ASSERT_TRUE(root->is_int()); in TEST()
134 ASSERT_TRUE(root->is_int()); in TEST()
160 ASSERT_FALSE(root->is_int()); in TEST()
678 ASSERT_TRUE(root->is_int()); in TEST()
951 ASSERT_TRUE(result->is_double() || result->is_int()); in TEST()
/external/cronet/components/prefs/
Dpref_member.cc170 if (value.is_int()) in UpdateValueInternal()
172 return value.is_int(); in UpdateValueInternal()
183 if (value.is_double() || value.is_int()) in UpdateValueInternal()
185 return value.is_double() || value.is_int(); in UpdateValueInternal()
Dpref_service_unittest.cc157 ASSERT_TRUE(value->is_int()); in TEST()
176 ASSERT_TRUE(value->is_int()); in TEST()
190 ASSERT_TRUE(value->is_int()); in TEST()
204 ASSERT_TRUE(value->is_int()); in TEST()
211 ASSERT_TRUE(value->is_int()); in TEST()
221 ASSERT_TRUE(value->is_int()); in TEST()
228 ASSERT_TRUE(value->is_int()); in TEST()
/external/python/cffi/cffi/
Dvengine_gen.py394 def _generate_gen_const(self, is_int, name, tp=None, category='const', argument
400 assert is_int
407 elif is_int:
432 is_int = isinstance(tp, model.PrimitiveType) and tp.is_integer_type()
433 self._generate_gen_const(is_int, name, tp)
437 def _load_constant(self, is_int, tp, name, module, check_value=None): argument
440 assert is_int
443 elif is_int:
466 is_int = isinstance(tp, model.PrimitiveType) and tp.is_integer_type()
467 value = self._load_constant(is_int, tp, name, module)
Dvengine_cpy.py614 def _generate_cpy_const(self, is_int, name, tp=None, category='const', argument
623 if not is_int:
631 if not is_int:
663 is_int = isinstance(tp, model.PrimitiveType) and tp.is_integer_type()
664 if not is_int:
668 is_int = isinstance(tp, model.PrimitiveType) and tp.is_integer_type()
669 self._generate_cpy_const(is_int, name, tp)
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dshape_optimizer.cc45 auto is_int = [](const NodeDef& node) -> bool { in Optimize() local
52 } else if (IsProd(node) && is_int(node)) { in Optimize()
54 } else if (IsDiv(node) && is_int(node)) { in Optimize()
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_interfaces.cpp144 bool is_int = false; in NumConsumedLocations() local
148 std::tie(is_int, is_const, value) = in NumConsumedLocations()
150 if (is_int && is_const) *num_locations *= value; in NumConsumedLocations()
349 bool is_int = false; in GetLocationsForVariable() local
356 std::tie(is_int, is_const, array_size) = in GetLocationsForVariable()
358 if (!is_int || !is_const) array_size = 1; in GetLocationsForVariable()
/external/oboe/samples/RhythmGame/third_party/glm/detail/
Dtype_vec4.inl8 struct is_int struct
14 struct is_int<uint32> struct
20 struct is_int<int32> struct
26 struct is_int<uint64> struct
32 struct is_int<int64> struct
515 …return (*this = detail::compute_vec4_and<T, P, detail::is_int<T>::value, sizeof(T) * 8, detail::is…
522 …return (*this = detail::compute_vec4_and<T, P, detail::is_int<T>::value, sizeof(T) * 8, detail::is…
529 …return (*this = detail::compute_vec4_and<T, P, detail::is_int<T>::value, sizeof(T) * 8, detail::is…
536 …return (*this = detail::compute_vec4_or<T, P, detail::is_int<T>::value, sizeof(T) * 8, detail::is_…
543 …return (*this = detail::compute_vec4_or<T, P, detail::is_int<T>::value, sizeof(T) * 8, detail::is_…
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_interfaces.cpp148 bool is_int = false; in NumConsumedLocations() local
152 std::tie(is_int, is_const, value) = in NumConsumedLocations()
154 if (is_int && is_const) *num_locations *= value; in NumConsumedLocations()
353 bool is_int = false; in GetLocationsForVariable() local
360 std::tie(is_int, is_const, array_size) = in GetLocationsForVariable()
362 if (!is_int || !is_const) array_size = 1; in GetLocationsForVariable()
/external/flatbuffers/samples/
Dsample_flexbuffers.rs124 assert!(read_hp.flexbuffer_type().is_int()); in main()
125 assert!(read_mana.flexbuffer_type().is_int()); in main()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/
Dvalidate_interfaces.cpp147 bool is_int = false; in NumConsumedLocations() local
151 std::tie(is_int, is_const, value) = in NumConsumedLocations()
153 if (is_int && is_const) *num_locations *= value; in NumConsumedLocations()
371 bool is_int = false; in GetLocationsForVariable() local
378 std::tie(is_int, is_const, array_size) = in GetLocationsForVariable()
380 if (!is_int || !is_const) array_size = 1; in GetLocationsForVariable()
/external/mesa3d/src/compiler/glsl/
Ds_expression.h70 virtual bool is_int() const { return false; } in is_int() function
94 bool is_int() const { return true; } in is_int() function
/external/cronet/net/base/
Dbackoff_entry_serializer.cc84 if (!serialized[0].is_int()) in DeserializeFromList()
90 if (!serialized[1].is_int()) in DeserializeFromList()

1234