Home
last modified time | relevance | path

Searched refs:constants (Results 1 – 25 of 1734) sorted by relevance

12345678910>>...70

/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DOverridableConstantsValidationTests.cpp81 void TestCreatePipeline(const std::vector<wgpu::ConstantEntry>& constants) { in TestCreatePipeline() argument
85 csDesc.compute.constants = constants.data(); in TestCreatePipeline()
86 csDesc.compute.constantCount = constants.size(); in TestCreatePipeline()
99 std::vector<wgpu::ConstantEntry> constants; in TEST_F() local
100 TestCreatePipeline(constants); in TEST_F()
104 std::vector<wgpu::ConstantEntry> constants{{nullptr, "c0", 0}}; in TEST_F() local
105 TestCreatePipeline(constants); in TEST_F()
109 std::vector<wgpu::ConstantEntry> constants{ in TEST_F() local
113 ASSERT_DEVICE_ERROR(TestCreatePipeline(constants)); in TEST_F()
117 std::vector<wgpu::ConstantEntry> constants{{nullptr, "1000", 0}}; in TEST_F() local
[all …]
/third_party/boost/boost/geometry/util/
Dnormalize_spheroidal_coordinates.hpp158 > constants; in latitude_convert_ep() typedef
160 return constants::quarter_period() - lat; in latitude_convert_ep()
171 > constants; in is_latitude_pole() typedef
176 constants::quarter_period()); in is_latitude_pole()
188 > constants; in is_longitude_antimeridian() typedef
190 return math::equals(math::abs(lon), constants::half_period()); in is_longitude_antimeridian()
221 typedef constants_on_spheroid<CoordinateType, Units> constants; typedef in boost::geometry::math::detail::normalize_spheroidal_coordinates
227 math::mod(value + constants::half_period(), constants::period()) in normalize_up()
228 - constants::half_period(); in normalize_up()
234 math::mod(value - constants::half_period(), constants::period()) in normalize_down()
[all …]
Dnormalize_spheroidal_box_coordinates.hpp35 typedef constants_on_spheroid<CoordinateType, Units> constants; typedef in boost::geometry::math::detail::normalize_spheroidal_box_coordinates
41 constants::period()); in is_band()
57 if (math::equals(latitude1, constants::min_latitude()) in apply()
58 && math::equals(latitude2, constants::min_latitude())) in apply()
63 else if (math::equals(latitude1, constants::max_latitude()) in apply()
64 && math::equals(latitude2, constants::max_latitude())) in apply()
73 longitude1 = constants::min_longitude(); in apply()
74 longitude2 = constants::max_longitude(); in apply()
80 longitude2 += constants::period(); in apply()
88 BOOST_GEOMETRY_ASSERT(! math::smaller(latitude1, constants::min_latitude())); in apply()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dfold.cpp242 std::vector<const analysis::Constant*> constants = in FoldInstructionInternal() local
247 if (rule(context_, inst, constants)) { in FoldInstructionInternal()
289 const analysis::IntConstant* constants[2]; in FoldBinaryIntegerOpToConstant() local
298 constants[i] = (constant != nullptr ? constant->AsIntConstant() : nullptr); in FoldBinaryIntegerOpToConstant()
305 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
318 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
328 if (constants[1] != nullptr) { in FoldBinaryIntegerOpToConstant()
333 uint32_t shift_amount = constants[1]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
344 if (constants[i] != nullptr) { in FoldBinaryIntegerOpToConstant()
348 uint32_t mask = constants[i]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
[all …]
Dfolding_rules.cpp117 const std::vector<const analysis::Constant*>& constants) { in ConstInput() argument
118 return constants[0] ? constants[0] : constants[1]; in ConstInput()
298 const std::vector<const analysis::Constant*>& constants) { in ReciprocalFDiv() argument
308 if (constants[1] != nullptr) { in ReciprocalFDiv()
311 constants[1]->AsVectorConstant()) { in ReciprocalFDiv()
319 const_mgr->GetConstant(constants[1]->type(), std::move(neg_ids)); in ReciprocalFDiv()
321 } else if (constants[1]->AsFloatConstant()) { in ReciprocalFDiv()
322 id = Reciprocal(const_mgr, constants[1]); in ReciprocalFDiv()
342 const std::vector<const analysis::Constant*>& constants) { in MergeNegateArithmetic() argument
344 (void)constants; in MergeNegateArithmetic()
[all …]
Dconst_folding_rules.cpp95 const std::vector<const analysis::Constant*>& constants) in FoldExtractWithConstants()
97 const analysis::Constant* c = constants[kExtractCompositeIdInIdx]; in FoldExtractWithConstants()
125 const std::vector<const analysis::Constant*>& constants) in FoldVectorShuffleWithConstants()
128 const analysis::Constant* c1 = constants[0]; in FoldVectorShuffleWithConstants()
129 const analysis::Constant* c2 = constants[1]; in FoldVectorShuffleWithConstants()
181 const std::vector<const analysis::Constant*>& constants) in FoldVectorTimesScalar()
193 const analysis::Constant* c1 = constants[0]; in FoldVectorTimesScalar()
194 const analysis::Constant* c2 = constants[1]; in FoldVectorTimesScalar()
258 const std::vector<const analysis::Constant*>& constants) in FoldCompositeWithConstants()
267 for (uint32_t i = 0; i < constants.size(); ++i) { in FoldCompositeWithConstants()
[all …]
/third_party/spirv-tools/source/opt/
Dfold.cpp242 std::vector<const analysis::Constant*> constants = in FoldInstructionInternal() local
247 if (rule(context_, inst, constants)) { in FoldInstructionInternal()
289 const analysis::IntConstant* constants[2]; in FoldBinaryIntegerOpToConstant() local
298 constants[i] = (constant != nullptr ? constant->AsIntConstant() : nullptr); in FoldBinaryIntegerOpToConstant()
305 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
318 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
328 if (constants[1] != nullptr) { in FoldBinaryIntegerOpToConstant()
333 uint32_t shift_amount = constants[1]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
344 if (constants[i] != nullptr) { in FoldBinaryIntegerOpToConstant()
348 uint32_t mask = constants[i]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
[all …]
Dconst_folding_rules.cpp39 const std::vector<const analysis::Constant*>& constants) in FoldExtractWithConstants()
41 const analysis::Constant* c = constants[kExtractCompositeIdInIdx]; in FoldExtractWithConstants()
69 const std::vector<const analysis::Constant*>& constants) in FoldVectorShuffleWithConstants()
72 const analysis::Constant* c1 = constants[0]; in FoldVectorShuffleWithConstants()
73 const analysis::Constant* c2 = constants[1]; in FoldVectorShuffleWithConstants()
125 const std::vector<const analysis::Constant*>& constants) in FoldVectorTimesScalar()
137 const analysis::Constant* c1 = constants[0]; in FoldVectorTimesScalar()
138 const analysis::Constant* c2 = constants[1]; in FoldVectorTimesScalar()
202 const std::vector<const analysis::Constant*>& constants) in FoldCompositeWithConstants()
211 for (uint32_t i = 0; i < constants.size(); ++i) { in FoldCompositeWithConstants()
[all …]
Dfolding_rules.cpp116 const std::vector<const analysis::Constant*>& constants) { in ConstInput() argument
117 return constants[0] ? constants[0] : constants[1]; in ConstInput()
244 const std::vector<const analysis::Constant*>& constants) { in ReciprocalFDiv() argument
254 if (constants[1] != nullptr) { in ReciprocalFDiv()
257 constants[1]->AsVectorConstant()) { in ReciprocalFDiv()
265 const_mgr->GetConstant(constants[1]->type(), std::move(neg_ids)); in ReciprocalFDiv()
267 } else if (constants[1]->AsFloatConstant()) { in ReciprocalFDiv()
268 id = Reciprocal(const_mgr, constants[1]); in ReciprocalFDiv()
288 const std::vector<const analysis::Constant*>& constants) { in MergeNegateArithmetic() argument
290 (void)constants; in MergeNegateArithmetic()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dfold.cpp242 std::vector<const analysis::Constant*> constants = in FoldInstructionInternal() local
247 if (rule(context_, inst, constants)) { in FoldInstructionInternal()
289 const analysis::IntConstant* constants[2]; in FoldBinaryIntegerOpToConstant() local
298 constants[i] = (constant != nullptr ? constant->AsIntConstant() : nullptr); in FoldBinaryIntegerOpToConstant()
305 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
318 if (constants[i] != nullptr && constants[i]->IsZero()) { in FoldBinaryIntegerOpToConstant()
328 if (constants[1] != nullptr) { in FoldBinaryIntegerOpToConstant()
333 uint32_t shift_amount = constants[1]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
344 if (constants[i] != nullptr) { in FoldBinaryIntegerOpToConstant()
348 uint32_t mask = constants[i]->GetU32BitValue(); in FoldBinaryIntegerOpToConstant()
[all …]
Dfolding_rules.cpp117 const std::vector<const analysis::Constant*>& constants) { in ConstInput() argument
118 return constants[0] ? constants[0] : constants[1]; in ConstInput()
298 const std::vector<const analysis::Constant*>& constants) { in ReciprocalFDiv() argument
308 if (constants[1] != nullptr) { in ReciprocalFDiv()
311 constants[1]->AsVectorConstant()) { in ReciprocalFDiv()
319 const_mgr->GetConstant(constants[1]->type(), std::move(neg_ids)); in ReciprocalFDiv()
321 } else if (constants[1]->AsFloatConstant()) { in ReciprocalFDiv()
322 id = Reciprocal(const_mgr, constants[1]); in ReciprocalFDiv()
342 const std::vector<const analysis::Constant*>& constants) { in MergeNegateArithmetic() argument
344 (void)constants; in MergeNegateArithmetic()
[all …]
Dconst_folding_rules.cpp39 const std::vector<const analysis::Constant*>& constants) in FoldExtractWithConstants()
41 const analysis::Constant* c = constants[kExtractCompositeIdInIdx]; in FoldExtractWithConstants()
69 const std::vector<const analysis::Constant*>& constants) in FoldVectorShuffleWithConstants()
72 const analysis::Constant* c1 = constants[0]; in FoldVectorShuffleWithConstants()
73 const analysis::Constant* c2 = constants[1]; in FoldVectorShuffleWithConstants()
125 const std::vector<const analysis::Constant*>& constants) in FoldVectorTimesScalar()
137 const analysis::Constant* c1 = constants[0]; in FoldVectorTimesScalar()
138 const analysis::Constant* c2 = constants[1]; in FoldVectorTimesScalar()
202 const std::vector<const analysis::Constant*>& constants) in FoldCompositeWithConstants()
211 for (uint32_t i = 0; i < constants.size(); ++i) { in FoldCompositeWithConstants()
[all …]
/third_party/node/test/parallel/
Dtest-binding-constants.js6 const constants = internalBinding('constants'); constant
10 Object.keys(constants).sort(), ['crypto', 'fs', 'os', 'trace', 'zlib']
14 Object.keys(constants.os).sort(), ['UV_UDP_REUSEADDR', 'dlopen', 'errno',
31 constants, constants.crypto, constants.fs, constants.os, constants.trace,
32 constants.zlib, constants.os.dlopen, constants.os.errno, constants.os.signals,
Dtest-fs-readdir-types.js15 const constants = require('fs').constants; constant
17 isDirectory: constants.UV_DIRENT_DIR,
18 isFile: constants.UV_DIRENT_FILE,
19 isBlockDevice: constants.UV_DIRENT_BLOCK,
20 isCharacterDevice: constants.UV_DIRENT_CHAR,
21 isSymbolicLink: constants.UV_DIRENT_LINK,
22 isFIFO: constants.UV_DIRENT_FIFO,
23 isSocket: constants.UV_DIRENT_SOCKET
82 const UNKNOWN = constants.UV_DIRENT_UNKNOWN;
Dtest-crypto-sign-verify.js64 padding: crypto.constants.RSA_PKCS1_OAEP_PADDING
159 case crypto.constants.RSA_PSS_SALTLEN_DIGEST:
161 case crypto.constants.RSA_PSS_SALTLEN_MAX_SIGN:
169 crypto.constants.RSA_PSS_SALTLEN_DIGEST,
170 getEffectiveSaltLength(crypto.constants.RSA_PSS_SALTLEN_DIGEST),
171 crypto.constants.RSA_PSS_SALTLEN_MAX_SIGN,
172 getEffectiveSaltLength(crypto.constants.RSA_PSS_SALTLEN_MAX_SIGN),
177 crypto.constants.RSA_PSS_SALTLEN_DIGEST,
178 getEffectiveSaltLength(crypto.constants.RSA_PSS_SALTLEN_DIGEST),
179 getEffectiveSaltLength(crypto.constants.RSA_PSS_SALTLEN_MAX_SIGN),
[all …]
/third_party/boost/libs/log/src/setup/
Dfilter_parser.cpp128 typedef log::aux::char_constants< char_type > constants;
166 iterator_type p = constants::trim_spaces_left(begin, end);
178 p = constants::trim_spaces_left(p, end);
183 if (c == constants::char_paren_bracket_right)
193 … else if (c == constants::char_and || scan_keyword(p, end, next, constants::and_keyword()))
197 … else if (c == constants::char_or || scan_keyword(p, end, next, constants::or_keyword()))
206 p = constants::trim_spaces_left(next, end);
236 if (c == constants::char_percent)
239 iterator_type start = constants::trim_spaces_left(next, end);
240 p = constants::scan_attr_placeholder(start, end);
[all …]
Dformatter_parser.cpp184 typedef boost::log::aux::char_constants< char_type > constants;
222 if (c == constants::char_backslash)
229 else if (c == constants::char_percent)
242 iterator_type start = constants::trim_spaces_left(++p, end);
243 p = constants::scan_attr_placeholder(start, end);
249 p = constants::trim_spaces_left(p, end);
253 if (*p == constants::char_paren_bracket_left)
256 p = parse_args(constants::trim_spaces_left(++p, end), end);
257 p = constants::trim_spaces_left(p, end);
262 if (*p != constants::char_percent)
[all …]
Dsettings_parser.cpp55 typedef log::aux::char_constants< char_type > constants;
83 p = constants::trim_spaces_left(p, end);
87 if (c == constants::char_section_bracket_left)
91 start = constants::trim_spaces_left(start, end);
92 iterator_type stop = std::find(start, end, constants::char_section_bracket_right);
97 stop = constants::trim_spaces_right(start, stop);
101 else if (c != constants::char_comment)
104 iterator_type eq = std::find(p, end, constants::char_equal);
109 set_parameter_name(p, constants::trim_spaces_right(p, eq));
112 p = constants::trim_spaces_left(eq + 1, end);
[all …]
Dinit_from_settings.cpp129 typedef boost::log::aux::char_constants< char_type > constants;
135 literal_type keyword = constants::true_keyword();
142 keyword = constants::false_keyword();
159 typedef boost::log::aux::char_constants< char_type > constants;
161 if (value == constants::auto_newline_mode_disabled())
163 else if (value == constants::auto_newline_mode_always_insert())
165 else if (value == constants::auto_newline_mode_insert_if_missing())
195 typedef boost::log::aux::char_constants< char_type > constants;
217 if (is_weekday(begin, len, constants::monday_keyword(), constants::short_monday_keyword()))
219 … else if (is_weekday(begin, len, constants::tuesday_keyword(), constants::short_tuesday_keyword()))
[all …]
/third_party/boost/boost/geometry/srs/projections/
Dconstants.hpp30 inline T third_pi() { return boost::math::constants::third_pi<T>(); } in third_pi()
32 inline T half_pi() { return boost::math::constants::half_pi<T>(); } in half_pi()
34 inline T pi() { return boost::math::constants::pi<T>(); } in pi()
38 inline T two_pi() { return boost::math::constants::two_pi<T>(); } in two_pi()
43 inline T two_div_pi() { return boost::math::constants::two_div_pi<T>(); } in two_div_pi()
47 inline T pi_sqr() { return boost::math::constants::pi_sqr<T>(); } in pi_sqr()
50 inline T sixth() { return boost::math::constants::sixth<T>(); } in sixth()
52 inline T third() { return boost::math::constants::third<T>(); } in third()
54 inline T two_thirds() { return boost::math::constants::two_thirds<T>(); } in two_thirds()
/third_party/node/lib/
Dconstants.js33 const constants = internalBinding('constants'); constant
35 constants.os.dlopen,
36 constants.os.errno,
37 constants.os.priority,
38 constants.os.signals,
39 constants.fs,
40 constants.crypto);
/third_party/boost/libs/property_tree/test/
Dprefixing_callbacks.hpp6 namespace constants namespace
43 this->current_value().insert(0, constants::null_prefix<char_type>()); in on_null()
48 this->current_value().insert(0, constants::boolean_prefix<char_type>()); in on_boolean()
54 this->current_value().insert(0, constants::number_prefix<char_type>()); in on_number()
58 this->current_value() = constants::number_prefix<char_type>(); in on_begin_number()
64 this->current_value() = constants::string_prefix<char_type>(); in on_begin_string()
70 this->current_value() = constants::array_prefix<char_type>(); in on_begin_array()
75 this->current_value() = constants::object_prefix<char_type>(); in on_begin_object()
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DVertexRoutine.cpp52 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,constants)); in generate()
120 …clipFlags = *Pointer<Int>(constants + OFFSET(Constants,maxX) + SignMask(maxX) * 4); // FIXME: Ar… in computeClipFlags()
121 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxY) + SignMask(maxY) * 4); in computeClipFlags()
122 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,maxZ) + SignMask(maxZ) * 4); in computeClipFlags()
123 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minX) + SignMask(minX) * 4); in computeClipFlags()
124 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minY) + SignMask(minY) * 4); in computeClipFlags()
125 clipFlags |= *Pointer<Int>(constants + OFFSET(Constants,minZ) + SignMask(minZ) * 4); in computeClipFlags()
127 Int4 finiteX = CmpLE(Abs(o[pos].x), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
128 Int4 finiteY = CmpLE(Abs(o[pos].y), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
129 Int4 finiteZ = CmpLE(Abs(o[pos].z), *Pointer<Float4>(constants + OFFSET(Constants,maxPos))); in computeClipFlags()
[all …]
/third_party/boost/boost/numeric/interval/
Dconstants.hpp16 namespace constants { namespace
61 return I(constants::pi_lower<T>(), in pi()
62 constants::pi_upper<T>(), true); in pi()
69 return I(constants::pi_half_lower<T>(), in pi_half()
70 constants::pi_half_upper<T>(), true); in pi_half()
77 return I(constants::pi_twice_lower<T>(), in pi_twice()
78 constants::pi_twice_upper<T>(), true); in pi_twice()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DShaderTests.cpp34 const std::vector<wgpu::ConstantEntry>* constants = nullptr) { in CreateComputePipeline() argument
38 if (constants) { in CreateComputePipeline()
39 csDesc.compute.constants = constants->data(); in CreateComputePipeline()
40 csDesc.compute.constantCount = constants->size(); in CreateComputePipeline()
435 std::vector<wgpu::ConstantEntry> constants; in TEST_P() local
436 constants.push_back({nullptr, "c0", 0}); in TEST_P()
437 constants.push_back({nullptr, "c1", 1}); in TEST_P()
438 constants.push_back({nullptr, "c2", 2}); in TEST_P()
439 constants.push_back({nullptr, "c3", 3}); in TEST_P()
441 constants.push_back({nullptr, "c5", 5}); in TEST_P()
[all …]

12345678910>>...70