Home
last modified time | relevance | path

Searched full:amount (Results 1 – 25 of 13819) sorted by relevance

12345678910>>...553

/aosp_15_r20/frameworks/rs/driver/runtime/arch/
H A Dclamp.c25 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
26 return amount < low ? low : (amount > high ? high : amount); \
46 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
48 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
49 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
53 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
55 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
56 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
57 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
61 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \
[all …]
H A Dgeneric.c20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short hi…
30 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
31 return amount < low ? low : (amount > high ? high : amount); \
34 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
36 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
37 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
41 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
43 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
44 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
45 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/rand/src/seq/
Dindex.rs200 /// Randomly sample exactly `amount` distinct indices from `0..length`, and
208 /// fastest available algorithm for the `length` and `amount` parameters
210 /// complexity is `O(amount)`, except that when `amount` is small, performance
211 /// is closer to `O(amount^2)`, and when `length` is close to `amount` then
221 /// Panics if `amount > length`.
222 pub fn sample<R>(rng: &mut R, length: usize, amount: usize) -> IndexVec in sample()
224 if amount > length { in sample()
225 panic!("`amount` of samples must be less than or equal to `length`"); in sample()
230 return sample_rejection(rng, length, amount); in sample()
232 let amount = amount as u32; in sample() localVariable
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/rand-0.8.5/src/seq/
H A Dindex.rs200 /// Randomly sample exactly `amount` distinct indices from `0..length`, and
208 /// fastest available algorithm for the `length` and `amount` parameters
210 /// complexity is `O(amount)`, except that when `amount` is small, performance
211 /// is closer to `O(amount^2)`, and when `length` is close to `amount` then
221 /// Panics if `amount > length`.
222 pub fn sample<R>(rng: &mut R, length: usize, amount: usize) -> IndexVec in sample()
224 if amount > length { in sample()
225 panic!("`amount` of samples must be less than or equal to `length`"); in sample()
230 return sample_rejection(rng, length, amount); in sample()
232 let amount = amount as u32; in sample() localVariable
[all …]
/aosp_15_r20/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicInlines.h85 static inline int4 clamp(int4 amount, int low, int high) { in CVT_FUNC()
87 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in CVT_FUNC()
88 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in CVT_FUNC()
89 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in CVT_FUNC()
90 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in CVT_FUNC()
94 static inline float4 clamp(float4 amount, float low, float high) { in clamp() argument
96 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
97 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
98 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
99 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
[all …]
/aosp_15_r20/external/renderscript-intrinsics-replacement-toolkit/renderscript-toolkit/src/main/cpp/
H A DUtils.h93 inline int4 clamp(int4 amount, int low, int high) { in clamp() argument
95 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
96 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
97 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
98 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
102 inline float4 clamp(float4 amount, float low, float high) { in clamp() argument
104 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
105 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
106 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
107 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
[all …]
/aosp_15_r20/frameworks/rs/toolkit/
H A DUtils.h92 inline int4 clamp(int4 amount, int low, int high) { in clamp() argument
94 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
95 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
96 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
97 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
101 inline float4 clamp(float4 amount, float low, float high) { in clamp() argument
103 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
104 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
105 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
106 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
[all …]
/aosp_15_r20/external/pytorch/torch/nn/utils/
H A Dprune.py439 amount (int or float): quantity of parameters to prune.
447 def __init__(self, amount): argument
448 # Check range of validity of pruning amount
449 _validate_pruning_amount_init(amount)
450 self.amount = amount
453 # Check that the amount of units to prune is not > than the number of
456 # Compute number of units to prune: amount if int,
457 # else amount * tensor_size
458 nparams_toprune = _compute_nparams_toprune(self.amount, tensor_size)
473 def apply(cls, module, name, amount): argument
[all …]
/aosp_15_r20/external/kotlinx.serialization/benchmark/src/jmh/resources/
H A Dcitm_catalog.json3380 "amount": 90250, number
3385 "amount": 66500, number
3521 "amount": 28500, number
3526 "amount": 23750, number
3654 "amount": 28500, number
3659 "amount": 23750, number
3787 "amount": 152000, number
3792 "amount": 104500, number
3797 "amount": 76000, number
3802 "amount": 52250, number
[all …]
/aosp_15_r20/external/jackson-databind/src/test/resources/data/
H A Dcitm_catalog.json3380 "amount": 90250, number
3385 "amount": 66500, number
3521 "amount": 28500, number
3526 "amount": 23750, number
3654 "amount": 28500, number
3659 "amount": 23750, number
3787 "amount": 152000, number
3792 "amount": 104500, number
3797 "amount": 76000, number
3802 "amount": 52250, number
[all …]
/aosp_15_r20/external/pytorch/test/nn/
H A Dtest_pruning.py26 amount requested by the user the moment the pruning method
28 raised whenever the amount is invalid.
30 It doesn't check the validity of the pruning amount with
36 prune._validate_pruning_amount_init(amount="I'm a string")
40 prune._validate_pruning_amount_init(amount=1.1)
42 prune._validate_pruning_amount_init(amount=20.0)
46 prune._validate_pruning_amount_init(amount=-10)
49 prune._validate_pruning_amount_init(amount=0.34)
50 prune._validate_pruning_amount_init(amount=1500)
51 prune._validate_pruning_amount_init(amount=0)
[all …]
/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/retry/
H A DRateLimitingTokenBucket.java69 * _TokenBucketAcquire(amount)
75 * # Next see if we have enough capacity for the requested amount.
76 * if amount &lt;= current_capacity
77 * current_capacity = current_capacity - amount
79 * sleep((amount - current_capacity) / fill_rate)
80 * current_capacity = current_capacity - amount
84 * This is equivalent to {@code acquire(amount, false)}.
86 * @param amount The amount of tokens to acquire.
88 * @return Whether the amount was successfully acquired.
90 public boolean acquire(double amount) { in acquire() argument
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/internal/obj/s390x/
Drotate_test.go13 start, end, amount uint8
17 {start: 0, end: 63, amount: 0, inMask: ^uint64(0), outMask: ^uint64(0)},
18 {start: 1, end: 63, amount: 0, inMask: ^uint64(0) >> 1, outMask: ^uint64(0) >> 1},
19 {start: 0, end: 62, amount: 0, inMask: ^uint64(1), outMask: ^uint64(1)},
20 {start: 1, end: 62, amount: 0, inMask: ^uint64(3) >> 1, outMask: ^uint64(3) >> 1},
23 {start: 63, end: 0, amount: 0, inMask: 1<<63 | 1, outMask: 1<<63 | 1},
24 {start: 62, end: 0, amount: 0, inMask: 1<<63 | 3, outMask: 1<<63 | 3},
25 {start: 63, end: 1, amount: 0, inMask: 3<<62 | 1, outMask: 3<<62 | 1},
26 {start: 62, end: 1, amount: 0, inMask: 3<<62 | 3, outMask: 3<<62 | 3},
29 {start: 32, end: 63, amount: 32, inMask: 0xffffffff00000000, outMask: 0x00000000ffffffff},
[all …]
/aosp_15_r20/external/vixl/test/aarch32/config/
H A Dcond-rd-rn-operand-rm-a32.json29 // MNEMONIC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> }
30 // MNEMONIC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, ROR #<amount> }
34 // "cond-rd-rn-operand-rm-shift-amount-*-a32.json".
38 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
39 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
40 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
41 // ADD{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
42 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
43 // ADDS{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
44 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
[all …]
H A Dcond-rd-rn-operand-rm-shift-amount-1to32-t32.json28 // MNEMONIC{<c>}.W <Rd>, <Rn>, <Rm>, ASR|LSR #<amount>
29 // MNEMONIC{<c>}.W <Rd>, SP, <Rm>, ASR|LSR #<amount>
33 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
34 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
35 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T3
36 // ADD{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; T3
37 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T3
38 // ADDS{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; T3
39 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
40 "Ands", // ANDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
[all …]
H A Dcond-rd-rn-operand-rm-shift-amount-1to31-t32.json28 // MNEMONIC{<c>}.W <Rd>, <Rn>, <Rm>, LSL|ROR #<amount>
29 // MNEMONIC{<c>}.W <Rd>, SP, <Rm>, LSL|ROR #<amount>
33 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
34 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
35 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T3
36 // ADD{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; T3
37 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T3
38 // ADDS{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; T3
39 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
40 "Ands", // ANDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
[all …]
H A Dcond-rd-rn-operand-rm-shift-amount-1to32-a32.json29 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
30 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
31 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
32 // ADD{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
33 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
34 // ADDS{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
35 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
36 "Ands", // ANDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
37 "Bic", // BIC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
38 "Bics", // BICS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
[all …]
H A Dcond-rd-rn-operand-rm-shift-amount-1to31-a32.json29 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
30 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
31 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
32 // ADD{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
33 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
34 // ADDS{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
35 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
36 "Ands", // ANDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
37 "Bic", // BIC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
38 "Bics", // BICS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
[all …]
/aosp_15_r20/external/threetenbp/src/main/java/org/threeten/bp/
H A DPeriod.java58 * A date-based amount of time, such as '2 years, 3 months and 4 days'.
60 * This class models a quantity or amount of time in terms of years, months and days.
82 * The period is modeled as a directed amount of time, meaning that individual parts of the
181 * @param years the amount of years, may be negative
182 * @param months the amount of months, may be negative
183 * @param days the amount of days, may be negative
192 * Obtains an instance of {@code Period} from a temporal amount.
194 * This obtains a period based on the specified amount.
195 * A {@code TemporalAmount} represents an amount of time, which may be
198 * The conversion loops around the set of units from the amount and uses
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/thread/doc/
Dexternal_locking.qbk23 void Deposit(int amount) {
25 balance_ += amount;
27 void Withdraw(int amount) {
29 balance_ -= amount;
80 void Deposit(int amount) {
82 balance_ += amount;
84 void Withdraw(int amount) {
86 balance_ -= amount;
105 void Deposit(int amount) {
108 balance_ += amount;
[all …]
/aosp_15_r20/external/pytorch/c10/util/
H A Dint128.h52 inline uint128& operator<<=(uint128& self, int amount);
244 inline uint128 operator<<(const uint128& val, int amount) {
247 if (amount < 64) {
248 if (amount == 0) {
252 (Uint128High64(val) << amount) | (Uint128Low64(val) >> (64 - amount));
253 uint64_t new_lo = Uint128Low64(val) << amount;
255 } else if (amount < 128) {
256 return uint128(Uint128Low64(val) << (amount - 64), 0);
262 inline uint128 operator>>(const uint128& val, int amount) {
265 if (amount < 64) {
[all …]
/aosp_15_r20/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/time/
H A DDateUtils.java48 * {@code addXXX(Date date, int amount)}. It is important to note these methods
378 * @param amount the amount to add, may be negative
379 * @return the new {@link Date} with the amount added
382 public static Date addYears(final Date date, final int amount) { in addYears() argument
383 return add(date, Calendar.YEAR, amount); in addYears()
391 * @param amount the amount to add, may be negative
392 * @return the new {@link Date} with the amount added
395 public static Date addMonths(final Date date, final int amount) { in addMonths() argument
396 return add(date, Calendar.MONTH, amount); in addMonths()
404 * @param amount the amount to add, may be negative
[all …]
/aosp_15_r20/external/perfetto/ui/src/plugins/dev.perfetto.WidgetsPage/
H A Dwidgets_page.ts64 {category: 'a', amount: 8.167},
65 {category: 'b', amount: 1.492},
66 {category: 'c', amount: 2.782},
67 {category: 'd', amount: 4.253},
68 {category: 'e', amount: 12.7},
69 {category: 'f', amount: 2.228},
70 {category: 'g', amount: 2.015},
71 {category: 'h', amount: 6.094},
72 {category: 'i', amount: 6.966},
73 {category: 'j', amount: 0.253},
[all …]
/aosp_15_r20/external/protobuf/src/google/protobuf/stubs/
H A Dint128.h232 inline uint128 operator<<(const uint128& val, int amount) {
234 if (amount < 64) {
235 if (amount == 0) {
238 uint64_t new_hi = (Uint128High64(val) << amount) |
239 (Uint128Low64(val) >> (64 - amount));
240 uint64_t new_lo = Uint128Low64(val) << amount;
242 } else if (amount < 128) {
243 return uint128(Uint128Low64(val) << (amount - 64), 0);
249 inline uint128 operator>>(const uint128& val, int amount) {
251 if (amount < 64) {
[all …]
/aosp_15_r20/external/cronet/third_party/protobuf/src/google/protobuf/stubs/
H A Dint128.h232 inline uint128 operator<<(const uint128& val, int amount) {
234 if (amount < 64) {
235 if (amount == 0) {
238 uint64_t new_hi = (Uint128High64(val) << amount) |
239 (Uint128Low64(val) >> (64 - amount));
240 uint64_t new_lo = Uint128Low64(val) << amount;
242 } else if (amount < 128) {
243 return uint128(Uint128Low64(val) << (amount - 64), 0);
249 inline uint128 operator>>(const uint128& val, int amount) {
251 if (amount < 64) {
[all …]

12345678910>>...553