Home
last modified time | relevance | path

Searched refs:amount (Results 26 - 50 of 487) sorted by relevance

12345678910>>...20

/third_party/curl/tests/libtest/
H A Dlib1940.c56 if(header->amount > 1) { in showem()
59 size_t amount = header->amount; in showem() local
62 (int)index, (int)amount); in showem()
64 if(++index == amount) in showem()
H A Dlib552.c133 size_t amount = nmemb * size; /* Total bytes curl wants */ in read_callback() local
136 size_t given = amount < available ? amount : available; /* What is given */ in read_callback()
147 int amount = curlx_uztosi(size * nmemb); in write_callback() local
148 printf("%.*s", amount, (char *)ptr); in write_callback()
/third_party/vixl/src/
H A Dcode-buffer-vixl.h177 bool HasSpaceFor(size_t amount) const { in HasSpaceFor()
178 return GetRemainingBytes() >= amount; in HasSpaceFor()
181 void EnsureSpaceFor(size_t amount, bool* has_grown) { in EnsureSpaceFor() argument
182 bool is_full = !HasSpaceFor(amount); in EnsureSpaceFor()
183 if (is_full) Grow(capacity_ * 2 + amount); in EnsureSpaceFor()
187 void EnsureSpaceFor(size_t amount) { in EnsureSpaceFor() argument
189 EnsureSpaceFor(amount, &placeholder); in EnsureSpaceFor()
/third_party/typescript/tests/baselines/reference/
H A DmatchReturnTypeInAllBranches.js19 * @param {number} amount The amount of ice cream to e at.
22 public eatIceCream(amount: number): boolean {
23 this.iceCreamRemaining -= amount;
51 * @param {number} amount The amount of ice cream to e at.
54 IceCreamMonster.prototype.eatIceCream = function (amount) {
55 this.iceCreamRemaining -= amount;
/third_party/curl/lib/
H A Dgopher.c142 ssize_t amount, k; in gopher_do() local
188 result = Curl_nwrite(data, FIRSTSOCKET, sel, k, &amount); in gopher_do()
190 result = Curl_client_write(data, CLIENTWRITE_HEADER, sel, amount); in gopher_do()
194 k -= amount; in gopher_do()
195 sel += amount; in gopher_do()
230 result = Curl_nwrite(data, FIRSTSOCKET, "\r\n", 2, &amount); in gopher_do()
/third_party/libwebsockets/lib/plat/unix/
H A Dunix-file.c148 _lws_plat_file_read(lws_fop_fd_t fop_fd, lws_filepos_t *amount, in _lws_plat_file_read() argument
155 *amount = 0; in _lws_plat_file_read()
162 *amount = (lws_filepos_t)n; in _lws_plat_file_read()
168 _lws_plat_file_write(lws_fop_fd_t fop_fd, lws_filepos_t *amount, in _lws_plat_file_write() argument
175 *amount = 0; in _lws_plat_file_write()
180 *amount = (lws_filepos_t)n; in _lws_plat_file_write()
/kernel/linux/linux-5.10/lib/
H A Dpercpu_counter.c60 void percpu_counter_set(struct percpu_counter *fbc, s64 amount) in percpu_counter_set() argument
70 fbc->count = amount; in percpu_counter_set()
82 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) in percpu_counter_add_batch() argument
87 count = __this_cpu_read(*fbc->counters) + amount; in percpu_counter_add_batch()
92 __this_cpu_sub(*fbc->counters, count - amount); in percpu_counter_add_batch()
95 this_cpu_add(*fbc->counters, amount); in percpu_counter_add_batch()
141 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp, in __percpu_counter_init() argument
148 fbc->count = amount; in __percpu_counter_init()
/kernel/linux/linux-6.6/lib/
H A Dpercpu_counter.c60 void percpu_counter_set(struct percpu_counter *fbc, s64 amount) in percpu_counter_set() argument
70 fbc->count = amount; in percpu_counter_set()
87 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) in percpu_counter_add_batch() argument
93 count = __this_cpu_read(*fbc->counters) + amount; in percpu_counter_add_batch()
97 __this_cpu_sub(*fbc->counters, count - amount); in percpu_counter_add_batch()
100 this_cpu_add(*fbc->counters, amount); in percpu_counter_add_batch()
154 int __percpu_counter_init_many(struct percpu_counter *fbc, s64 amount, in __percpu_counter_init_many() argument
177 fbc[i].count = amount; in __percpu_counter_init_many()
/third_party/ffmpeg/libavcodec/
H A Dnoise_bsf.c98 av_log(ctx, AV_LOG_ERROR, "Error in parsing expr for amount: %s\n", s->amount_str); in noise_init()
129 int i, ret, amount, drop = 0; in noise() local
154 amount = 0; in noise()
156 amount = (s->state % 10001 + 1); in noise()
158 amount = (int)res; in noise()
175 av_log(ctx, AV_LOG_VERBOSE, "Stream #%d packet %d pts %"PRId64" - amount %d drop %d\n", in noise()
176 pkt->stream_index, (unsigned int)s->var_values[VAR_N], pkt->pts, amount, drop); in noise()
184 if (amount) { in noise()
194 if (amount && s->state % amount in noise()
[all...]
/third_party/skia/modules/skottie/src/text/
H A DTextAnimator.cpp116 float amount) const { in modulateProps()
120 modulated_props.position += static_cast<SkV3>(fTextProps.position) * amount; in modulateProps()
121 modulated_props.rotation += fTextProps.rotation * amount; in modulateProps()
122 modulated_props.tracking += fTextProps.tracking * amount; in modulateProps()
124 (static_cast<SkV3>(fTextProps.scale) * 0.01f - SkV3{1,1,1}) * amount; in modulateProps()
127 modulated_props.blur += fTextProps.blur * amount; in modulateProps()
128 modulated_props.line_spacing += fTextProps.line_spacing * amount; in modulateProps()
140 // Colors and opacity are overridden, and use a clamped amount value. in modulateProps()
141 const auto clamped_amount = std::max(amount, 0.0f); in modulateProps()
H A DRangeSelector.cpp111 void operator()(float amount, size_t offset, size_t count) const { in operator ()() argument
112 (this->*fProc)(amount, offset, count); in operator ()()
117 void add_proc(float amount, size_t offset, size_t count) const { in add_proc() argument
118 if (!amount || !count) return; in add_proc()
121 dst->coverage = SkTPin<float>(dst->coverage + amount, -1, 1); in add_proc()
126 void domain_map_proc(float amount, size_t offset, size_t count) const { in domain_map_proc() argument
132 (this->*fMappedProc)(amount, span.fOffset, span.fCount); in domain_map_proc()
136 using ProcT = void(CoverageProcessor::*)(float amount, size_t offset, size_t count) const;
344 * 3) The coverage is then scaled by the |amount| parameter.
357 const auto amount in modulateCoverage() local
[all...]
/kernel/linux/linux-6.6/kernel/cgroup/
H A Dmisc.c112 * @amount: Amount to cancel.
117 u64 amount) in misc_cg_cancel_charge()
119 WARN_ONCE(atomic64_add_negative(-amount, &cg->res[type].usage), in misc_cg_cancel_charge()
128 * @amount: Amount to charge.
130 * Charge @amount to the misc cgroup. Caller must use the same cgroup during
140 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) in misc_cg_try_charge() argument
150 if (!amount) in misc_cg_try_charge()
156 new_usage = atomic64_add_return(amount, &res->usage); in misc_cg_try_charge()
172 misc_cg_cancel_charge(type, j, amount); in misc_cg_try_charge()
173 misc_cg_cancel_charge(type, i, amount); in misc_cg_try_charge()
116 misc_cg_cancel_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_cancel_charge() argument
186 misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_uncharge() argument
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DHebrewCalendar.java422 * Add a signed amount to a specified field, using this calendar's rules.
442 * @param amount the amount to add to the field.
449 public void add(int field, int amount) in add() argument
454 // We can't just do a set(MONTH, get(MONTH) + amount). The in add()
455 // reason is ADAR_1. Suppose amount is +2 and we land in in add()
457 // if amount is -2 and we land in ADAR_1, then we have to in add()
462 if (amount > 0) { in add()
464 month += amount; in add()
478 month += amount; in add()
536 roll(int field, int amount) roll() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DHebrewCalendar.java400 * Add a signed amount to a specified field, using this calendar's rules.
420 * @param amount the amount to add to the field.
425 public void add(int field, int amount) in add() argument
430 // We can't just do a set(MONTH, get(MONTH) + amount). The in add()
431 // reason is ADAR_1. Suppose amount is +2 and we land in in add()
433 // if amount is -2 and we land in ADAR_1, then we have to in add()
438 if (amount > 0) { in add()
440 month += amount; in add()
454 month += amount; in add()
510 roll(int field, int amount) roll() argument
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Dhebrwcal.cpp190 * Add a signed amount to a specified field, using this calendar's rules.
210 * @param amount the amount to add to the field.
216 void HebrewCalendar::add(UCalendarDateFields field, int32_t amount, UErrorCode& status) in add() argument
225 // We can't just do a set(MONTH, get(MONTH) + amount). The in add()
226 // reason is ADAR_1. Suppose amount is +2 and we land in in add()
228 // if amount is -2 and we land in ADAR_1, then we have to in add()
233 if (amount > 0) { in add()
235 month += amount; in add()
249 month += amount; in add()
277 add(EDateFields field, int32_t amount, UErrorCode& status) add() argument
314 roll(UCalendarDateFields field, int32_t amount, UErrorCode& status) roll() argument
349 roll(EDateFields field, int32_t amount, UErrorCode& status) roll() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dmisc_cgroup.h59 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
60 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
113 u64 amount) in misc_cg_try_charge()
120 u64 amount) in misc_cg_uncharge()
111 misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_try_charge() argument
118 misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount) misc_cg_uncharge() argument
/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/
H A Dint128.h412 int128& operator<<=(int amount);
413 int128& operator>>=(int amount);
589 constexpr uint128 operator<<(uint128 lhs, int amount);
590 constexpr uint128 operator>>(uint128 lhs, int amount);
597 inline uint128& uint128::operator<<=(int amount) { in operator <<=() argument
598 *this = *this << amount; in operator <<=()
602 inline uint128& uint128::operator>>=(int amount) { in operator >>=() argument
603 *this = *this >> amount; in operator >>=()
903 constexpr uint128 operator<<(uint128 lhs, int amount) { in operator <<() argument
905 return static_cast<unsigned __int128>(lhs) << amount; in operator <<()
917 operator >>(uint128 lhs, int amount) operator >>() argument
1125 operator <<=(int amount) operator <<=() argument
1130 operator >>=(int amount) operator >>=() argument
[all...]
/foundation/communication/dsoftbus/core/connection/manager/
H A Dsoftbus_conn_flow_control.c27 int32_t amount; member
48 appliedTotal += it->amount; in Apply()
63 int32_t amount = remain > expect ? expect : remain; in Apply() local
70 history->amount = amount; in Apply()
75 return amount; in Apply()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
H A Dnouveau_bo5039.c52 u32 amount, stride, height; in nv50_bo_move_m2mf() local
58 amount = min(length, (u64)(4 * 1024 * 1024)); in nv50_bo_move_m2mf()
60 height = amount / stride; in nv50_bo_move_m2mf()
128 length -= amount; in nv50_bo_move_m2mf()
129 src_offset += amount; in nv50_bo_move_m2mf()
130 dst_offset += amount; in nv50_bo_move_m2mf()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/
H A Dnouveau_bo5039.c52 u32 amount, stride, height; in nv50_bo_move_m2mf() local
58 amount = min(length, (u64)(4 * 1024 * 1024)); in nv50_bo_move_m2mf()
60 height = amount / stride; in nv50_bo_move_m2mf()
128 length -= amount; in nv50_bo_move_m2mf()
129 src_offset += amount; in nv50_bo_move_m2mf()
130 dst_offset += amount; in nv50_bo_move_m2mf()
/third_party/libwebsockets/lib/plat/freertos/
H A Dfreertos-file.c84 _lws_plat_file_read(lws_fop_fd_t fops_fd, lws_filepos_t *amount, in _lws_plat_file_read() argument
91 *amount = 0; in _lws_plat_file_read()
95 *amount = n; in _lws_plat_file_read()
101 _lws_plat_file_write(lws_fop_fd_t fops_fd, lws_filepos_t *amount, in _lws_plat_file_write() argument
108 *amount = 0; in _lws_plat_file_write()
112 *amount = n; in _lws_plat_file_write()
/third_party/libwebsockets/lib/plat/windows/
H A Dwindows-file.c119 _lws_plat_file_read(lws_fop_fd_t fop_fd, lws_filepos_t *amount, in _lws_plat_file_read() argument
125 *amount = 0; in _lws_plat_file_read()
131 *amount = (unsigned long)_amount; in _lws_plat_file_read()
137 _lws_plat_file_write(lws_fop_fd_t fop_fd, lws_filepos_t *amount, in _lws_plat_file_write() argument
143 *amount = 0; in _lws_plat_file_write()
149 *amount = (unsigned long)_amount; in _lws_plat_file_write()
/third_party/node/deps/v8/src/heap/
H A Dspaces-inl.h46 size_t amount) { in IncrementExternalBackingStoreBytes()
47 base::CheckedIncrement(&external_backing_store_bytes_[type], amount); in IncrementExternalBackingStoreBytes()
48 heap()->IncrementExternalBackingStoreBytes(type, amount); in IncrementExternalBackingStoreBytes()
52 size_t amount) { in DecrementExternalBackingStoreBytes()
53 base::CheckedDecrement(&external_backing_store_bytes_[type], amount); in DecrementExternalBackingStoreBytes()
54 heap()->DecrementExternalBackingStoreBytes(type, amount); in DecrementExternalBackingStoreBytes()
59 size_t amount) { in MoveExternalBackingStoreBytes()
62 base::CheckedDecrement(&(from->external_backing_store_bytes_[type]), amount); in MoveExternalBackingStoreBytes()
63 base::CheckedIncrement(&(to->external_backing_store_bytes_[type]), amount); in MoveExternalBackingStoreBytes()
45 IncrementExternalBackingStoreBytes(ExternalBackingStoreType type, size_t amount) IncrementExternalBackingStoreBytes() argument
51 DecrementExternalBackingStoreBytes(ExternalBackingStoreType type, size_t amount) DecrementExternalBackingStoreBytes() argument
57 MoveExternalBackingStoreBytes(ExternalBackingStoreType type, Space* from, Space* to, size_t amount) MoveExternalBackingStoreBytes() argument
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-pmd-bulk/
H A Dprotocol_lws_minimal_pmd_bulk.c91 int n, m, flags, olen, amount; in callback_minimal_pmd_bulk() local
120 amount = MESSAGE_CHUNK_SIZE; in callback_minimal_pmd_bulk()
122 amount = MESSAGE_SIZE; in callback_minimal_pmd_bulk()
123 lwsl_user("(writing as one blob of %d)\n", amount); in callback_minimal_pmd_bulk()
129 n = amount; in callback_minimal_pmd_bulk()
/third_party/ffmpeg/libavfilter/
H A Dvf_unsharp.c69 const int amount = fp->amount; \
90 if (!amount) { \
131 (int32_t)((tmp1 + halfscale) >> scalebits)) * amount) >> (8+nbits)); \
174 static void set_filter_param(UnsharpFilterParam *fp, int msize_x, int msize_y, float amount) in set_filter_param() argument
178 fp->amount = amount * 65536.0; in set_filter_param()
220 const char *effect = fp->amount == 0 ? "none" : fp->amount < 0 ? "blur" : "sharpen"; in init_filter_param()
229 av_log(ctx, AV_LOG_VERBOSE, "effect:%s type:%s msize_x:%d msize_y:%d amount in init_filter_param()
[all...]

Completed in 20 milliseconds

12345678910>>...20