/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
H A D | bind.cc | 42 // Fill 'bound' with the results of applying the context's argument pack 46 // this call, 'bound' has all the information it needs to be formatted. 48 bool Bind(const UnboundConversion* unbound, BoundConversion* bound); 55 BoundConversion* bound) { in Bind() 83 FormatConversionSpecImplFriend::SetWidth(width, bound); in Bind() 84 FormatConversionSpecImplFriend::SetPrecision(precision, bound); in Bind() 88 bound); in Bind() 90 FormatConversionSpecImplFriend::SetFlags(unbound->flags, bound); in Bind() 93 FormatConversionSpecImplFriend::SetFlags(unbound->flags, bound); in Bind() 94 FormatConversionSpecImplFriend::SetWidth(-1, bound); in Bind() 54 Bind(const UnboundConversion* unbound, BoundConversion* bound) Bind() argument 113 BoundConversion bound; ConvertOne() local 141 ConvertOne(const BoundConversion& bound, string_view ) const ConvertOne() argument 155 ConvertOne(const BoundConversion& bound, string_view ) const ConvertOne() argument 174 BindWithPack(const UnboundConversion* props, absl::Span<const FormatArgImpl> pack, BoundConversion* bound) BindWithPack() argument [all...] |
H A D | bind_test.cc | 86 BoundConversion bound; in TEST_F() local 91 if (BindWithPack(&props, args, &bound)) { in TEST_F() 98 EXPECT_EQ(e.arg, bound.arg()); in TEST_F() 100 EXPECT_EQ(e.width, bound.width()); in TEST_F() 101 EXPECT_EQ(e.precision, bound.precision()); in TEST_F() 107 BoundConversion bound; in TEST_F() local 113 ASSERT_TRUE(BindWithPack(&props, args, &bound)); in TEST_F() 115 EXPECT_EQ(bound.width(), std::numeric_limits<int>::max()); in TEST_F() 116 EXPECT_EQ(bound.arg(), args + 1); in TEST_F()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | nonPrimitiveInGeneric.js | 13 function bound<T extends object>(t: T) { 17 bound({}); 18 bound(a); 19 bound(123); // expect error 20 bound(b); // expect error 57 function bound(t) {
function 60 bound({});
61 bound(a);
62 bound(123); // expect error
63 bound( [all...] |
/third_party/jerryscript/tests/jerry/ |
H A D | function-prototype-bind.js | 106 var bound = number.bind(null, 24); variable 107 var foo = new bound(); 111 var bound = number.bind(null, 3); variable 112 var foo = new bound(); 122 var bound = math.bind(null, 0); 123 var foo = new bound(); 131 var bound = foo.bind(null); 132 assert(bound.length === 2); 134 bound = foo.bind(null, 9); 135 assert(bound [all...] |
/third_party/rust/crates/nom/src/number/ |
H A D | streaming.rs | 34 let bound: usize = 1; in be_u8() 35 if input.input_len() < bound { in be_u8() 40 Ok((input.slice(bound..), res)) in be_u8() 64 let bound: usize = 2; in be_u16() 65 if input.input_len() < bound { in be_u16() 66 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u16() 69 for byte in input.iter_elements().take(bound) { in be_u16() 73 Ok((input.slice(bound..), res)) in be_u16() 97 let bound: usize = 3; in be_u24() 98 if input.input_len() < bound { in be_u24() [all...] |
H A D | complete.rs | 36 let bound: usize = 1; in be_u8() 37 if input.input_len() < bound { in be_u8() 42 Ok((input.slice(bound..), res)) in be_u8() 66 let bound: usize = 2; in be_u16() 67 if input.input_len() < bound { in be_u16() 71 for byte in input.iter_elements().take(bound) { in be_u16() 75 Ok((input.slice(bound..), res)) in be_u16() 99 let bound: usize = 3; in be_u24() 100 if input.input_len() < bound { in be_u24() 104 for byte in input.iter_elements().take(bound) { in be_u24() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
H A D | pseudo_random_generator.cpp | 26 uint32_t PseudoRandomGenerator::RandomUint32(uint32_t bound) { in RandomUint32() argument 27 assert(bound > 0 && "Bound must be positive"); in RandomUint32() 28 return std::uniform_int_distribution<uint32_t>(0, bound - 1)(mt_); in RandomUint32() 31 uint64_t PseudoRandomGenerator::RandomUint64(uint64_t bound) { in RandomUint64() argument 32 assert(bound > 0 && "Bound must be positive"); in RandomUint64() 33 return std::uniform_int_distribution<uint64_t>(0, bound - 1)(mt_); in RandomUint64() 42 // RandomUint32 is not inclusive of its bound. in RandomPercentage()
|
H A D | fuzzer_pass_add_access_chains.cpp | 113 uint32_t bound; in Apply() 116 bound = fuzzerutil::GetArraySize(*subobject_type, GetIRContext()); in Apply() 120 bound = subobject_type->GetSingleWordInOperand(1); in Apply() 123 bound = fuzzerutil::GetNumberOfStructMembers(*subobject_type); in Apply() 127 // Set the bound to a value in order to keep release compilers in Apply() 129 bound = 0; in Apply() 132 if (bound == 0) { in Apply() 140 GetFuzzerContext()->GetRandomIndexForAccessChain(bound); in Apply() 156 FindOrCreateIntegerConstant({bound - 1}, 32, is_signed, false); in Apply()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
H A D | pseudo_random_generator.cpp | 26 uint32_t PseudoRandomGenerator::RandomUint32(uint32_t bound) { in RandomUint32() argument 27 assert(bound > 0 && "Bound must be positive"); in RandomUint32() 28 return std::uniform_int_distribution<uint32_t>(0, bound - 1)(mt_); in RandomUint32() 31 uint64_t PseudoRandomGenerator::RandomUint64(uint64_t bound) { in RandomUint64() argument 32 assert(bound > 0 && "Bound must be positive"); in RandomUint64() 33 return std::uniform_int_distribution<uint64_t>(0, bound - 1)(mt_); in RandomUint64() 42 // RandomUint32 is not inclusive of its bound. in RandomPercentage()
|
H A D | fuzzer_pass_add_access_chains.cpp | 113 uint32_t bound; in Apply() 116 bound = fuzzerutil::GetArraySize(*subobject_type, GetIRContext()); in Apply() 120 bound = subobject_type->GetSingleWordInOperand(1); in Apply() 123 bound = fuzzerutil::GetNumberOfStructMembers(*subobject_type); in Apply() 127 // Set the bound to a value in order to keep release compilers in Apply() 129 bound = 0; in Apply() 132 if (bound == 0) { in Apply() 140 GetFuzzerContext()->GetRandomIndexForAccessChain(bound); in Apply() 156 FindOrCreateIntegerConstant({bound - 1}, 32, is_signed, false); in Apply()
|
/third_party/spirv-tools/source/fuzz/ |
H A D | pseudo_random_generator.cpp | 26 uint32_t PseudoRandomGenerator::RandomUint32(uint32_t bound) { in RandomUint32() argument 27 assert(bound > 0 && "Bound must be positive"); in RandomUint32() 28 return std::uniform_int_distribution<uint32_t>(0, bound - 1)(mt_); in RandomUint32() 31 uint64_t PseudoRandomGenerator::RandomUint64(uint64_t bound) { in RandomUint64() argument 32 assert(bound > 0 && "Bound must be positive"); in RandomUint64() 33 return std::uniform_int_distribution<uint64_t>(0, bound - 1)(mt_); in RandomUint64() 42 // RandomUint32 is not inclusive of its bound. in RandomPercentage()
|
H A D | fuzzer_pass_add_access_chains.cpp | 114 uint32_t bound; in Apply() 117 bound = fuzzerutil::GetArraySize(*subobject_type, GetIRContext()); in Apply() 121 bound = subobject_type->GetSingleWordInOperand(1); in Apply() 124 bound = fuzzerutil::GetNumberOfStructMembers(*subobject_type); in Apply() 128 // Set the bound to a value in order to keep release compilers in Apply() 130 bound = 0; in Apply() 133 if (bound == 0) { in Apply() 141 GetFuzzerContext()->GetRandomIndexForAccessChain(bound); in Apply() 157 FindOrCreateIntegerConstant({bound - 1}, 32, is_signed, false); in Apply()
|
/third_party/rust/crates/serde/serde_derive_internals/src/ |
H A D | receiver.rs | 123 for bound in &mut ty.bounds { in visit_type_mut_impl() 124 self.visit_type_param_bound_mut(bound); in visit_type_mut_impl() 139 for bound in &mut ty.bounds { in visit_type_mut_impl() 140 self.visit_type_param_bound_mut(bound); in visit_type_mut_impl() 208 fn visit_type_param_bound_mut(&mut self, bound: &mut TypeParamBound) { in visit_type_param_bound_mut() 209 match bound { in visit_type_param_bound_mut() 211 TypeParamBound::Trait(bound) => self.visit_path_mut(&mut bound.path), in visit_type_param_bound_mut() 221 for bound in &mut param.bounds { in visit_generics_mut() 222 self.visit_type_param_bound_mut(bound); in visit_generics_mut() [all...] |
/third_party/rust/crates/serde/serde_derive/src/internals/ |
H A D | receiver.rs | 123 for bound in &mut ty.bounds { in visit_type_mut_impl() 124 self.visit_type_param_bound_mut(bound); in visit_type_mut_impl() 139 for bound in &mut ty.bounds { in visit_type_mut_impl() 140 self.visit_type_param_bound_mut(bound); in visit_type_mut_impl() 208 fn visit_type_param_bound_mut(&mut self, bound: &mut TypeParamBound) { in visit_type_param_bound_mut() 209 match bound { in visit_type_param_bound_mut() 211 TypeParamBound::Trait(bound) => self.visit_path_mut(&mut bound.path), in visit_type_param_bound_mut() 221 for bound in &mut param.bounds { in visit_generics_mut() 222 self.visit_type_param_bound_mut(bound); in visit_generics_mut() [all...] |
/third_party/mesa3d/src/gallium/drivers/lima/ |
H A D | lima_job.c | 579 struct pipe_scissor_state bound; in lima_update_damage_pp_stream() local 583 struct pipe_scissor_state *dbound = &ds->bound; in lima_update_damage_pp_stream() 584 bound.minx = MAX2(dbound->minx, dr->minx >> 4); in lima_update_damage_pp_stream() 585 bound.miny = MAX2(dbound->miny, dr->miny >> 4); in lima_update_damage_pp_stream() 586 bound.maxx = MIN2(dbound->maxx, (dr->maxx + 0xf) >> 4); in lima_update_damage_pp_stream() 587 bound.maxy = MIN2(dbound->maxy, (dr->maxy + 0xf) >> 4); in lima_update_damage_pp_stream() 589 bound.minx = dr->minx >> 4; in lima_update_damage_pp_stream() 590 bound.miny = dr->miny >> 4; in lima_update_damage_pp_stream() 591 bound.maxx = (dr->maxx + 0xf) >> 4; in lima_update_damage_pp_stream() 592 bound in lima_update_damage_pp_stream() [all...] |
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_nir_lower_ubo_loads.c | 41 nir_ssa_def *bound = NULL; in lower_ubo_load_instr() local 43 bound = load->src[2].ssa; in lower_ubo_load_instr() 65 if (bound) { in lower_ubo_load_instr() 67 bound); in lower_ubo_load_instr() 84 if (bound) { in lower_ubo_load_instr() 89 nir_ilt(b, nir_iadd_imm(b, offset, load_size - 1), bound); in lower_ubo_load_instr()
|
/third_party/node/deps/v8/src/compiler/ |
H A D | loop-variable-optimizer.h | 31 Bound(Node* bound, ConstraintKind kind) : bound(bound), kind(kind) {} in Bound() 33 Node* bound; member 57 void AddUpperBound(Node* bound, ConstraintKind kind); 58 void AddLowerBound(Node* bound, ConstraintKind kind);
|
H A D | loop-variable-optimizer.cc | 77 void InductionVariable::AddUpperBound(Node* bound, in AddUpperBound() argument 80 StdoutStream{} << "New upper bound for " << phi()->id() << " (loop " in AddUpperBound() 82 << "): " << *bound << std::endl; in AddUpperBound() 84 upper_bounds_.push_back(Bound(bound, kind)); in AddUpperBound() 87 void InductionVariable::AddLowerBound(Node* bound, in AddLowerBound() argument 90 StdoutStream{} << "New lower bound for " << phi()->id() << " (loop " in AddLowerBound() 92 << "): " << *bound; in AddLowerBound() 94 lower_bounds_.push_back(Bound(bound, kind)); in AddLowerBound() 287 // there is a bound. in ChangeToInductionVariablePhis() 299 // Insert the bound input in ChangeToInductionVariablePhis() [all...] |
/third_party/skia/third_party/externals/tint/fuzzers/ |
H A D | random_generator.cc | 59 uint32_t RandomGenerator::GetUInt32(uint32_t bound) { in GetUInt32() argument 60 assert(bound > 0 && "|bound| must be greater than 0"); in GetUInt32() 61 return engine_->RandomUInt32(0u, bound); in GetUInt32() 69 uint64_t RandomGenerator::GetUInt64(uint64_t bound) { in GetUInt64() argument 70 assert(bound > 0 && "|bound| must be greater than 0"); in GetUInt64() 71 return engine_->RandomUInt64(static_cast<uint64_t>(0), bound); in GetUInt64()
|
/third_party/node/deps/npm/node_modules/function-bind/ |
H A D | implementation.js | 49 var bound; 51 if (this instanceof bound) { 74 bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder); 79 bound.prototype = new Empty(); 83 return bound;
|
/third_party/rust/crates/serde/serde_derive/src/ |
H A D | bound.rs | 79 // Puts the given bound on any generic type parameters that are used in fields 82 // For example, the following struct needs the bound `A: Serialize, B: 95 bound: &syn::Path, in with_bound() 157 for bound in &ty.bounds { in visit_type() 158 self.visit_type_param_bound(bound); in visit_type() 173 for bound in &ty.bounds { in visit_type() 174 self.visit_type_param_bound(bound); in visit_type() 226 fn visit_type_param_bound(&mut self, bound: &'ast syn::TypeParamBound) { in visit_type_param_bound() 227 match bound { in visit_type_param_bound() 229 syn::TypeParamBound::Trait(bound) in visit_type_param_bound() [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/data/ |
H A D | FontData.java | 65 * Offset to apply as a lower bound on the internal byte array. 69 * The length of the bound on the internal byte array. 91 this.bound(data.boundOffset + offset, length); in FontData() 102 this.bound(data.boundOffset + offset, in FontData() 115 public boolean bound(int offset, int length) { in bound() method in FontData 125 * Sets limits on the size of the FontData. This is an offset bound only so if 133 public boolean bound(int offset) { in bound() method in FontData 152 * Makes a bottom bound only slice of this array. The returned slice will 193 * the offset to get the bound compensated offset for 194 * @return the bound compensate [all...] |
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
H A D | asn_mime.c | 56 static int mime_bound_check(char *line, int linelen, const char *bound, int blen); 57 static int multi_split(BIO *bio, int flags, const char *bound, STACK_OF(BIO) **ret); 243 char bound[33], c; in SMIME_write_ASN1_ex() local 260 if (RAND_bytes_ex(libctx, (unsigned char *)bound, 32, 0) <= 0) in SMIME_write_ASN1_ex() 263 c = bound[i] & 0xf; in SMIME_write_ASN1_ex() 268 bound[i] = c; in SMIME_write_ASN1_ex() 270 bound[32] = 0; in SMIME_write_ASN1_ex() 277 bound, mime_eol, mime_eol); in SMIME_write_ASN1_ex() 281 BIO_printf(bio, "------%s%s", bound, mime_eol); in SMIME_write_ASN1_ex() 284 BIO_printf(bio, "%s------%s%s", mime_eol, bound, mime_eo in SMIME_write_ASN1_ex() 608 multi_split(BIO *bio, int flags, const char *bound, STACK_OF(BIO) **ret) multi_split() argument 982 mime_bound_check(char *line, int linelen, const char *bound, int blen) mime_bound_check() argument [all...] |
/third_party/openssl/crypto/asn1/ |
H A D | asn_mime.c | 56 static int mime_bound_check(char *line, int linelen, const char *bound, int blen); 57 static int multi_split(BIO *bio, int flags, const char *bound, STACK_OF(BIO) **ret); 243 char bound[33], c; in SMIME_write_ASN1_ex() local 260 if (RAND_bytes_ex(libctx, (unsigned char *)bound, 32, 0) <= 0) in SMIME_write_ASN1_ex() 263 c = bound[i] & 0xf; in SMIME_write_ASN1_ex() 268 bound[i] = c; in SMIME_write_ASN1_ex() 270 bound[32] = 0; in SMIME_write_ASN1_ex() 277 bound, mime_eol, mime_eol); in SMIME_write_ASN1_ex() 281 BIO_printf(bio, "------%s%s", bound, mime_eol); in SMIME_write_ASN1_ex() 284 BIO_printf(bio, "%s------%s%s", mime_eol, bound, mime_eo in SMIME_write_ASN1_ex() 602 multi_split(BIO *bio, int flags, const char *bound, STACK_OF(BIO) **ret) multi_split() argument 976 mime_bound_check(char *line, int linelen, const char *bound, int blen) mime_bound_check() argument [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | ast_array_index.cpp | 174 unsigned bound = 0; in _mesa_ast_array_index_to_hir() local 187 bound = array->type->row_type()->vector_elements; in _mesa_ast_array_index_to_hir() 192 bound = array->type->vector_elements; in _mesa_ast_array_index_to_hir() 202 bound = array->type->array_size(); in _mesa_ast_array_index_to_hir() 206 if (bound > 0) { in _mesa_ast_array_index_to_hir() 208 type_name, bound); in _mesa_ast_array_index_to_hir()
|