Home
last modified time | relevance | path

Searched refs:weight (Results 1 – 25 of 743) sorted by relevance

12345678910>>...30

/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationWeights.java144 long weight = range.start; in nextWeight() local
150 range.start = incWeight(weight, range.length); in nextWeight()
154 return weight; in nextWeight()
179 public static int lengthOfWeight(long weight) { in lengthOfWeight() argument
180 if((weight&0xffffff)==0) { in lengthOfWeight()
182 } else if((weight&0xffff)==0) { in lengthOfWeight()
184 } else if((weight&0xff)==0) { in lengthOfWeight()
191 private static int getWeightTrail(long weight, int length) { in getWeightTrail() argument
192 return (int)(weight>>(8*(4-length)))&0xff; in getWeightTrail()
195 private static long setWeightTrail(long weight, int length, int trail) { in setWeightTrail() argument
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
DCollationWeights.java146 long weight = range.start; in nextWeight() local
152 range.start = incWeight(weight, range.length); in nextWeight()
156 return weight; in nextWeight()
181 public static int lengthOfWeight(long weight) { in lengthOfWeight() argument
182 if((weight&0xffffff)==0) { in lengthOfWeight()
184 } else if((weight&0xffff)==0) { in lengthOfWeight()
186 } else if((weight&0xff)==0) { in lengthOfWeight()
193 private static int getWeightTrail(long weight, int length) { in getWeightTrail() argument
194 return (int)(weight>>(8*(4-length)))&0xff; in getWeightTrail()
197 private static long setWeightTrail(long weight, int length, int trail) { in setWeightTrail() argument
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dcollationweights.cpp44 getWeightTrail(uint32_t weight, int32_t length) { in getWeightTrail() argument
45 return (uint32_t)(weight>>(8*(4-length)))&0xff; in getWeightTrail()
49 setWeightTrail(uint32_t weight, int32_t length, uint32_t trail) { in setWeightTrail() argument
51 return (uint32_t)((weight&(0xffffff00<<length))|(trail<<length)); in setWeightTrail()
55 getWeightByte(uint32_t weight, int32_t idx) { in getWeightByte() argument
56 return getWeightTrail(weight, idx); /* same calculation */ in getWeightByte()
60 setWeightByte(uint32_t weight, int32_t idx, uint32_t byte) { in setWeightByte() argument
80 return (uint32_t)((weight&mask)|(byte<<idx)); in setWeightByte()
84 truncateWeight(uint32_t weight, int32_t length) { in truncateWeight() argument
85 return (uint32_t)(weight&(0xffffffff<<(8*(4-length)))); in truncateWeight()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dcollationweights.cpp44 getWeightTrail(uint32_t weight, int32_t length) { in getWeightTrail() argument
45 return (uint32_t)(weight>>(8*(4-length)))&0xff; in getWeightTrail()
49 setWeightTrail(uint32_t weight, int32_t length, uint32_t trail) { in setWeightTrail() argument
51 return (uint32_t)((weight&(0xffffff00<<length))|(trail<<length)); in setWeightTrail()
55 getWeightByte(uint32_t weight, int32_t idx) { in getWeightByte() argument
56 return getWeightTrail(weight, idx); /* same calculation */ in getWeightByte()
60 setWeightByte(uint32_t weight, int32_t idx, uint32_t byte) { in setWeightByte() argument
80 return (uint32_t)((weight&mask)|(byte<<idx)); in setWeightByte()
84 truncateWeight(uint32_t weight, int32_t length) { in truncateWeight() argument
85 return (uint32_t)(weight&(0xffffffff<<(8*(4-length)))); in truncateWeight()
[all …]
/third_party/icu/icu4c/source/i18n/
Dcollationweights.cpp44 getWeightTrail(uint32_t weight, int32_t length) { in getWeightTrail() argument
45 return (uint32_t)(weight>>(8*(4-length)))&0xff; in getWeightTrail()
49 setWeightTrail(uint32_t weight, int32_t length, uint32_t trail) { in setWeightTrail() argument
51 return (uint32_t)((weight&(0xffffff00<<length))|(trail<<length)); in setWeightTrail()
55 getWeightByte(uint32_t weight, int32_t idx) { in getWeightByte() argument
56 return getWeightTrail(weight, idx); /* same calculation */ in getWeightByte()
60 setWeightByte(uint32_t weight, int32_t idx, uint32_t byte) { in setWeightByte() argument
80 return (uint32_t)((weight&mask)|(byte<<idx)); in setWeightByte()
84 truncateWeight(uint32_t weight, int32_t length) { in truncateWeight() argument
85 return (uint32_t)(weight&(0xffffffff<<(8*(4-length)))); in truncateWeight()
[all …]
/third_party/typescript/tests/baselines/reference/
DmappedTypes3.js15 weight: number;
20 weight: Box<number>;
26 let weight = bb.weight.value;
32 let weight = b.weight;
38 let weight = bb.weight;
50 var weight = bb.weight.value;
55 var weight = b.weight;
60 var weight = bb.weight;
75 weight: number;
79 weight: Box<number>;
DmappedTypes3.types27 weight: number;
28 >weight : number
35 weight: Box<number>;
36 >weight : Box<number>
57 let weight = bb.weight.value;
58 >weight : number
59 >bb.weight.value : number
60 >bb.weight : Box<number>
62 >weight : Box<number>
82 let weight = b.weight;
[all …]
DmappedTypes3.symbols45 weight: number;
46 >weight : Symbol(Bacon.weight, Decl(mappedTypes3.ts, 12, 23))
56 weight: Box<number>;
57 >weight : Symbol(BoxifiedBacon.weight, Decl(mappedTypes3.ts, 17, 28))
79 let weight = bb.weight.value;
80 >weight : Symbol(weight, Decl(mappedTypes3.ts, 24, 7))
81 >bb.weight.value : Symbol(Box.value, Decl(mappedTypes3.ts, 0, 14))
82 >bb.weight : Symbol(weight, Decl(mappedTypes3.ts, 12, 23))
84 >weight : Symbol(weight, Decl(mappedTypes3.ts, 12, 23))
105 let weight = b.weight;
[all …]
/third_party/skia/src/core/
DSkFontMgr.cpp254 if (pattern.weight() == current.weight()) { in matchStyleCSS3()
257 } else if (pattern.weight() < 400) { in matchStyleCSS3()
258 if (current.weight() <= pattern.weight()) { in matchStyleCSS3()
259 currentScore += 1000 - pattern.weight() + current.weight(); in matchStyleCSS3()
261 currentScore += 1000 - current.weight(); in matchStyleCSS3()
264 } else if (pattern.weight() <= 500) { in matchStyleCSS3()
265 if (current.weight() >= pattern.weight() && current.weight() <= 500) { in matchStyleCSS3()
266 currentScore += 1000 + pattern.weight() - current.weight(); in matchStyleCSS3()
267 } else if (current.weight() <= pattern.weight()) { in matchStyleCSS3()
268 currentScore += 500 + current.weight(); in matchStyleCSS3()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DLocalePriorityList.java101 public static Builder add(ULocale locale, final double weight) { in add() argument
102 return new Builder().add(locale, weight); in add()
155 double weight = entry.getValue(); in toString() local
160 if (weight != 1.0) { in toString()
161 result.append(";q=").append(weight); in toString()
236 double weight = value; in Builder() local
237 assert 0.0 < weight && weight <= 1.0; in Builder()
238 if (weight != 1.0) { in Builder()
274 Double weight = entry.getValue();
275 List<ULocale> s = weightToLanguages.get(weight);
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocalePriorityList.java102 public static Builder add(ULocale locale, final double weight) { in add() argument
103 return new Builder().add(locale, weight); in add()
160 double weight = entry.getValue(); in toString() local
165 if (weight != 1.0) { in toString()
166 result.append(";q=").append(weight); in toString()
244 double weight = value; in Builder() local
245 assert 0.0 < weight && weight <= 1.0; in Builder()
246 if (weight != 1.0) { in Builder()
284 Double weight = entry.getValue();
285 List<ULocale> s = weightToLanguages.get(weight);
[all …]
/third_party/icu/icu4c/source/common/
Dlocaleprioritylist.cpp38 int32_t weight; // 0..1000 = 0.0..1.0 member
42 int32_t diff = other.weight - weight; // descending: other-this in compare()
79 int32_t weight = (c - '0') * 1000; in parseWeight() local
80 if (++p == limit || *p != '.') { return weight; } in parseWeight()
85 weight += c * multiplier; in parseWeight()
89 if (c >= 5) { ++weight; } in parseWeight()
93 return weight <= WEIGHT_ONE ? weight : -1; // bad if > 1.0 in parseWeight()
139 int32_t weight = WEIGHT_ONE; in LocalePriorityList() local
143 (++p, (weight = parseWeight(p, limit)) < 0)) { in LocalePriorityList()
153 add(locale, weight, errorCode); in LocalePriorityList()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dlocaleprioritylist.cpp38 int32_t weight; // 0..1000 = 0.0..1.0 member
42 int32_t diff = other.weight - weight; // descending: other-this in compare()
79 int32_t weight = (c - '0') * 1000; in parseWeight() local
80 if (++p == limit || *p != '.') { return weight; } in parseWeight()
85 weight += c * multiplier; in parseWeight()
89 if (c >= 5) { ++weight; } in parseWeight()
93 return weight <= WEIGHT_ONE ? weight : -1; // bad if > 1.0 in parseWeight()
139 int32_t weight = WEIGHT_ONE; in LocalePriorityList() local
143 (++p, (weight = parseWeight(p, limit)) < 0)) { in LocalePriorityList()
153 add(locale, weight, errorCode); in LocalePriorityList()
[all …]
/third_party/node/deps/icu-small/source/common/
Dlocaleprioritylist.cpp38 int32_t weight; // 0..1000 = 0.0..1.0 member
42 int32_t diff = other.weight - weight; // descending: other-this in compare()
79 int32_t weight = (c - '0') * 1000; in parseWeight() local
80 if (++p == limit || *p != '.') { return weight; } in parseWeight()
85 weight += c * multiplier; in parseWeight()
89 if (c >= 5) { ++weight; } in parseWeight()
93 return weight <= WEIGHT_ONE ? weight : -1; // bad if > 1.0 in parseWeight()
139 int32_t weight = WEIGHT_ONE; in LocalePriorityList() local
143 (++p, (weight = parseWeight(p, limit)) < 0)) { in LocalePriorityList()
153 add(locale, weight, errorCode); in LocalePriorityList()
[all …]
/third_party/nghttp2/lib/
Dnghttp2_priority_spec.c28 int32_t stream_id, int32_t weight, in nghttp2_priority_spec_init() argument
31 pri_spec->weight = weight; in nghttp2_priority_spec_init()
37 pri_spec->weight = NGHTTP2_DEFAULT_WEIGHT; in nghttp2_priority_spec_default_init()
43 pri_spec->weight == NGHTTP2_DEFAULT_WEIGHT && pri_spec->exclusive == 0; in nghttp2_priority_spec_check_default()
47 if (pri_spec->weight < NGHTTP2_MIN_WEIGHT) { in nghttp2_priority_spec_normalize_weight()
48 pri_spec->weight = NGHTTP2_MIN_WEIGHT; in nghttp2_priority_spec_normalize_weight()
49 } else if (pri_spec->weight > NGHTTP2_MAX_WEIGHT) { in nghttp2_priority_spec_normalize_weight()
50 pri_spec->weight = NGHTTP2_MAX_WEIGHT; in nghttp2_priority_spec_normalize_weight()
/third_party/node/deps/nghttp2/lib/
Dnghttp2_priority_spec.c28 int32_t stream_id, int32_t weight, in nghttp2_priority_spec_init() argument
31 pri_spec->weight = weight; in nghttp2_priority_spec_init()
37 pri_spec->weight = NGHTTP2_DEFAULT_WEIGHT; in nghttp2_priority_spec_default_init()
43 pri_spec->weight == NGHTTP2_DEFAULT_WEIGHT && pri_spec->exclusive == 0; in nghttp2_priority_spec_check_default()
47 if (pri_spec->weight < NGHTTP2_MIN_WEIGHT) { in nghttp2_priority_spec_normalize_weight()
48 pri_spec->weight = NGHTTP2_MIN_WEIGHT; in nghttp2_priority_spec_normalize_weight()
49 } else if (pri_spec->weight > NGHTTP2_MAX_WEIGHT) { in nghttp2_priority_spec_normalize_weight()
50 pri_spec->weight = NGHTTP2_MAX_WEIGHT; in nghttp2_priority_spec_normalize_weight()
Dnghttp2_stream.c62 int32_t weight, int32_t remote_initial_window_size, in nghttp2_stream_init() argument
88 stream->weight = weight; in nghttp2_stream_init()
143 stream->cycle = last_cycle + penalty / (uint32_t)stream->weight; in stream_next_cycle()
144 stream->pending_penalty = (uint32_t)(penalty % (uint32_t)stream->weight); in stream_next_cycle()
248 void nghttp2_stream_change_weight(nghttp2_stream *stream, int32_t weight) { in nghttp2_stream_change_weight() argument
254 if (stream->weight == weight) { in nghttp2_stream_change_weight()
258 old_weight = stream->weight; in nghttp2_stream_change_weight()
259 stream->weight = weight; in nghttp2_stream_change_weight()
267 dep_stream->sum_dep_weight += weight - old_weight; in nghttp2_stream_change_weight()
312 int32_t weight) { in nghttp2_stream_dep_distributed_weight() argument
[all …]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
DHuffmanEncoder.java39 int weight; field in HuffmanEncoder.TreeNode
59 tree[i].weight = 1; in HuffmanEncoder()
106 if (tree[i].weight != tree[tree[i].left].weight + tree[tree[i].right].weight) { in checkTree()
107 return "tree[" + i + "].weight == " + tree[i].weight + ", expected " + in checkTree()
108 tree[tree[i].left].weight + " + " + tree[tree[i].right].weight; in checkTree()
114 if (tree[i].weight < tree[i + 1].weight) { in checkTree()
115 return "tree[" + i + "].weight == " + tree[i].weight + in checkTree()
116 ", tree[" + (i + 1) + ".weight == " + tree[i+1].weight + ", not >="; in checkTree()
141 tree[a].weight = initWeight(tree[a].left) + initWeight(tree[a].right); in initWeight()
143 return tree[a].weight; in initWeight()
[all …]
/third_party/node/deps/npm/node_modules/node-gyp/node_modules/are-we-there-yet/lib/
Dtracker-group.js12 this.weight = {}
39 TrackerGroup.prototype.addUnit = function (unit, weight) { argument
53 this.weight[unit.id] = weight || 1
54 this.totalWeight += this.weight[unit.id]
73 valPerWeight * this.weight[trackerId] * this.completion[trackerId]
78 TrackerGroup.prototype.newGroup = function (name, weight) { argument
79 return this.addUnit(new TrackerGroup(name), weight)
82 TrackerGroup.prototype.newItem = function (name, todo, weight) { argument
83 return this.addUnit(new Tracker(name, todo), weight)
86 TrackerGroup.prototype.newStream = function (name, todo, weight) { argument
[all …]
/third_party/node/deps/npm/node_modules/are-we-there-yet/lib/
Dtracker-group.js12 this.weight = {}
39 TrackerGroup.prototype.addUnit = function (unit, weight) { argument
53 this.weight[unit.id] = weight || 1
54 this.totalWeight += this.weight[unit.id]
73 valPerWeight * this.weight[trackerId] * this.completion[trackerId]
78 TrackerGroup.prototype.newGroup = function (name, weight) { argument
79 return this.addUnit(new TrackerGroup(name), weight)
82 TrackerGroup.prototype.newItem = function (name, todo, weight) { argument
83 return this.addUnit(new Tracker(name, todo), weight)
86 TrackerGroup.prototype.newStream = function (name, todo, weight) { argument
[all …]
/third_party/typescript/tests/cases/conformance/types/mapped/
DmappedTypes3.ts16 weight: number;
21 weight: Box<number>; property
27 let weight = bb.weight.value;
33 let weight = b.weight;
39 let weight = bb.weight;
/third_party/skia/src/pathops/
DSkPathOpsCurve.h114 static SkDPoint dconic_xy_at_t(const SkPoint a[3], SkScalar weight, double t) { in dconic_xy_at_t() argument
116 conic.set(a, weight); in dconic_xy_at_t()
158 static SkPoint fline_xy_at_t(const SkPoint a[2], SkScalar weight, double t) { in fline_xy_at_t() argument
159 return dline_xy_at_t(a, weight, t).asSkPoint(); in fline_xy_at_t()
162 static SkPoint fquad_xy_at_t(const SkPoint a[3], SkScalar weight, double t) { in fquad_xy_at_t() argument
163 return dquad_xy_at_t(a, weight, t).asSkPoint(); in fquad_xy_at_t()
166 static SkPoint fconic_xy_at_t(const SkPoint a[3], SkScalar weight, double t) { in fconic_xy_at_t() argument
167 return dconic_xy_at_t(a, weight, t).asSkPoint(); in fconic_xy_at_t()
170 static SkPoint fcubic_xy_at_t(const SkPoint a[4], SkScalar weight, double t) { in fcubic_xy_at_t() argument
171 return dcubic_xy_at_t(a, weight, t).asSkPoint(); in fcubic_xy_at_t()
[all …]
/third_party/ffmpeg/libavcodec/mips/
Dhevc_mc_uniw_msa.c62 int32_t weight, in hevc_uniwgt_copy_4w_msa() argument
73 weight = weight & 0x0000FFFF; in hevc_uniwgt_copy_4w_msa()
74 weight_vec = __msa_fill_w(weight); in hevc_uniwgt_copy_4w_msa()
129 int32_t weight, in hevc_uniwgt_copy_6w_msa() argument
141 weight = weight & 0x0000FFFF; in hevc_uniwgt_copy_6w_msa()
142 weight_vec = __msa_fill_w(weight); in hevc_uniwgt_copy_6w_msa()
191 int32_t weight, in hevc_uniwgt_copy_8w_msa() argument
203 weight = weight & 0x0000FFFF; in hevc_uniwgt_copy_8w_msa()
204 weight_vec = __msa_fill_w(weight); in hevc_uniwgt_copy_8w_msa()
286 int32_t weight, in hevc_uniwgt_copy_12w_msa() argument
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dairtime_policy.c98 unsigned int weight) in sta_set_airtime_weight() argument
102 if (weight != sta->airtime_weight && in sta_set_airtime_weight()
103 (ret = hostapd_sta_set_airtime_weight(hapd, sta->addr, weight))) in sta_set_airtime_weight()
106 sta->airtime_weight = weight; in sta_set_airtime_weight()
111 static void set_sta_weights(struct hostapd_data *hapd, unsigned int weight) in set_sta_weights() argument
116 sta_set_airtime_weight(hapd, sta, weight); in set_sta_weights()
238 return wt ? wt->weight : hapd->conf->airtime_weight; in get_weight_for_sta()
244 unsigned int weight; in airtime_policy_new_sta() local
247 weight = get_weight_for_sta(hapd, sta->addr); in airtime_policy_new_sta()
248 if (weight) in airtime_policy_new_sta()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dairtime_policy.c94 unsigned int weight) in sta_set_airtime_weight() argument
98 if (weight != sta->airtime_weight && in sta_set_airtime_weight()
99 (ret = hostapd_sta_set_airtime_weight(hapd, sta->addr, weight))) in sta_set_airtime_weight()
102 sta->airtime_weight = weight; in sta_set_airtime_weight()
107 static void set_sta_weights(struct hostapd_data *hapd, unsigned int weight) in set_sta_weights() argument
112 sta_set_airtime_weight(hapd, sta, weight); in set_sta_weights()
234 return wt ? wt->weight : hapd->conf->airtime_weight; in get_weight_for_sta()
240 unsigned int weight; in airtime_policy_new_sta() local
243 weight = get_weight_for_sta(hapd, sta->addr); in airtime_policy_new_sta()
244 if (weight) in airtime_policy_new_sta()
[all …]

12345678910>>...30