Home
last modified time | relevance | path

Searched refs:desired (Results 1 – 25 of 899) sorted by relevance

12345678910>>...36

/external/elfutils/lib/
Dstdatomic-fbsd.h266 desired, success, failure) \ argument
267 __c11_atomic_compare_exchange_strong(object, expected, desired, \
270 desired, success, failure) \ argument
271 __c11_atomic_compare_exchange_weak(object, expected, desired, \
273 #define atomic_exchange_explicit(object, desired, order) \ argument
274 __c11_atomic_exchange(object, desired, order)
287 #define atomic_store_explicit(object, desired, order) \ argument
288 __c11_atomic_store(object, desired, order)
291 desired, success, failure) \ argument
293 desired, 0, success, failure)
[all …]
/external/llvm/test/Bitcode/
Datomic.ll4 define void @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) {
5 cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
6 ; CHECK: cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
8 cmpxchg volatile i32* %addr, i32 %desired, i32 %new seq_cst monotonic
9 ; CHECK: cmpxchg volatile i32* %addr, i32 %desired, i32 %new seq_cst monotonic
11 cmpxchg weak i32* %addr, i32 %desired, i32 %new acq_rel acquire
12 ; CHECK: cmpxchg weak i32* %addr, i32 %desired, i32 %new acq_rel acquire
14 cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new singlethread release monotonic
15 ; CHECK: cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new singlethread release monotonic
/external/OpenCL-CTS/test_conformance/c11_atomics/
Dhost_atomics.h137 …ic_compare_exchange(volatile AtomicType *a, CorrespondingType *expected, CorrespondingType desired, in host_atomic_compare_exchange() argument
143 tmp = InterlockedCompareExchange(a, desired, *expected); in host_atomic_compare_exchange()
145 tmp = __sync_val_compare_and_swap(a, *expected, desired); in host_atomic_compare_exchange()
192 CorrespondingType desired; in host_atomic_fetch_or() local
194 desired = expected | c; in host_atomic_fetch_or()
195 while(!host_atomic_compare_exchange(a, &expected, desired, order, order)); in host_atomic_fetch_or()
204 CorrespondingType desired; in host_atomic_fetch_and() local
206 desired = expected & c; in host_atomic_fetch_and()
207 while(!host_atomic_compare_exchange(a, &expected, desired, order, order)); in host_atomic_fetch_and()
216 CorrespondingType desired; in host_atomic_fetch_xor() local
[all …]
/external/llvm-project/llvm/test/Bitcode/
Datomic.ll4 define void @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) {
5 cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
6 ; CHECK: cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
8 cmpxchg volatile i32* %addr, i32 %desired, i32 %new seq_cst monotonic
9 ; CHECK: cmpxchg volatile i32* %addr, i32 %desired, i32 %new seq_cst monotonic
11 cmpxchg weak i32* %addr, i32 %desired, i32 %new acq_rel acquire
12 ; CHECK: cmpxchg weak i32* %addr, i32 %desired, i32 %new acq_rel acquire
14 …cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new syncscope("singlethread") release monoton…
15 …; CHECK: cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new syncscope("singlethread") releas…
/external/libcxx/test/support/
Dcmpxchg_loop.h13 bool cmpxchg_weak_loop(A& atomic, T& expected, T desired) { in cmpxchg_weak_loop() argument
15 if (atomic.compare_exchange_weak(expected, desired) == true) { in cmpxchg_weak_loop()
24 bool cmpxchg_weak_loop(A& atomic, T& expected, T desired, in cmpxchg_weak_loop() argument
28 if (atomic.compare_exchange_weak(expected, desired, success, in cmpxchg_weak_loop()
38 bool c_cmpxchg_weak_loop(A* atomic, T* expected, T desired) { in c_cmpxchg_weak_loop() argument
40 if (std::atomic_compare_exchange_weak(atomic, expected, desired) == true) { in c_cmpxchg_weak_loop()
49 bool c_cmpxchg_weak_loop(A* atomic, T* expected, T desired, in c_cmpxchg_weak_loop() argument
53 if (std::atomic_compare_exchange_weak_explicit(atomic, expected, desired, in c_cmpxchg_weak_loop()
/external/llvm-project/libcxx/test/support/
Dcmpxchg_loop.h12 bool cmpxchg_weak_loop(A& atomic, typename A::value_type& expected, typename A::value_type desired)… in cmpxchg_weak_loop() argument
14 if (atomic.compare_exchange_weak(expected, desired) == true) { in cmpxchg_weak_loop()
23 bool cmpxchg_weak_loop(A& atomic, typename A::value_type& expected, typename A::value_type desired, in cmpxchg_weak_loop() argument
27 if (atomic.compare_exchange_weak(expected, desired, success, in cmpxchg_weak_loop()
37 … c_cmpxchg_weak_loop(A* atomic, typename A::value_type* expected, typename A::value_type desired) { in c_cmpxchg_weak_loop() argument
39 if (std::atomic_compare_exchange_weak(atomic, expected, desired) == true) { in c_cmpxchg_weak_loop()
48 …ol c_cmpxchg_weak_loop(A* atomic, typename A::value_type* expected, typename A::value_type desired, in c_cmpxchg_weak_loop() argument
52 if (std::atomic_compare_exchange_weak_explicit(atomic, expected, desired, in c_cmpxchg_weak_loop()
/external/llvm/test/CodeGen/X86/
Dcas.ll4 ;bool cas(float volatile *p, float *expected, float desired) {
6 ; __asm__ __volatile__("lock; cmpxchg %[desired], %[mem]; "
12 ; [desired] "q" (desired),
18 define zeroext i1 @cas(float* %p, float* %expected, float %desired) nounwind {
22 %desired.addr = alloca float, align 4
26 store float %desired, float* %desired.addr, align 4
30 %3 = load float, float* %desired.addr, align 4
45 define zeroext i1 @cas2(i8* %p, i8* %expected, i1 zeroext %desired) nounwind {
49 %desired.addr = alloca i8, align 1
53 %frombool = zext i1 %desired to i8
[all …]
Dcmpxchg-i128-i1.ll3 define i1 @try_cmpxchg(i128* %addr, i128 %desired, i128 %new) {
9 %pair = cmpxchg i128* %addr, i128 %desired, i128 %new seq_cst seq_cst
14 define void @cmpxchg_flow(i128* %addr, i128 %desired, i128 %new) {
20 %pair = cmpxchg i128* %addr, i128 %desired, i128 %new seq_cst seq_cst
34 define i1 @cmpxchg_arithcmp(i128* %addr, i128 %desired, i128 %new) {
39 %pair = cmpxchg i128* %addr, i128 %desired, i128 %new seq_cst seq_cst
41 %success = icmp sge i128 %oldval, %desired
45 define i128 @cmpxchg_zext(i128* %addr, i128 %desired, i128 %new) {
51 %pair = cmpxchg i128* %addr, i128 %desired, i128 %new seq_cst seq_cst
Dcmpxchg-i1.ll3 define i1 @try_cmpxchg(i32* %addr, i32 %desired, i32 %new) {
9 %pair = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
14 define void @cmpxchg_flow(i64* %addr, i64 %desired, i64 %new) {
20 %pair = cmpxchg i64* %addr, i64 %desired, i64 %new seq_cst seq_cst
33 define i64 @cmpxchg_sext(i32* %addr, i32 %desired, i32 %new) {
39 %pair = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
45 define i32 @cmpxchg_zext(i32* %addr, i32 %desired, i32 %new) {
51 %pair = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
/external/llvm-project/llvm/test/CodeGen/X86/
Dcas.ll4 ;bool cas(float volatile *p, float *expected, float desired) {
6 ; __asm__ __volatile__("lock; cmpxchg %[desired], %[mem]; "
12 ; [desired] "q" (desired),
18 define zeroext i1 @cas(float* %p, float* %expected, float %desired) nounwind {
22 %desired.addr = alloca float, align 4
26 store float %desired, float* %desired.addr, align 4
30 %3 = load float, float* %desired.addr, align 4
45 define zeroext i1 @cas2(i8* %p, i8* %expected, i1 zeroext %desired) nounwind {
49 %desired.addr = alloca i8, align 1
53 %frombool = zext i1 %desired to i8
[all …]
Dcmpxchg-i1.ll3 define i1 @try_cmpxchg(i32* %addr, i32 %desired, i32 %new) {
9 %pair = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
14 define void @cmpxchg_flow(i64* %addr, i64 %desired, i64 %new) {
20 %pair = cmpxchg i64* %addr, i64 %desired, i64 %new seq_cst seq_cst
33 define i64 @cmpxchg_sext(i32* %addr, i32 %desired, i32 %new) {
39 %pair = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
45 define i32 @cmpxchg_zext(i32* %addr, i32 %desired, i32 %new) {
51 %pair = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
/external/icu/icu4c/source/common/
Dlocdistance.cpp110 const LSR &desired, in getBestIndexAndDistance() argument
118 int32_t desLangDistance = trieNext(iter, desired.language, false); in getBestIndexAndDistance()
144 if (uprv_strcmp(desired.language, supported.language) == 0) { in getBestIndexAndDistance()
174 if (uprv_strcmp(desired.script, supported.script) == 0) { in getBestIndexAndDistance()
181 desired.script, supported.script); in getBestIndexAndDistance()
190 if (uprv_strcmp(desired.region, supported.region) == 0) { in getBestIndexAndDistance()
207 partitionsForRegion(desired), in getBestIndexAndDistance()
215 shiftedDistance |= (desired.flags ^ supported.flags); in getBestIndexAndDistance()
219 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
232 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DLanguageInfoTest.java48 String desired = foo.get0(); in testGetData() local
52 assertEquals("Same number of fields", count('_', desired), count('_', supported)); in testGetData()
54 Pair<String, String> source = Pair.of(desired, supported); in testGetData()
61 + "\t" + desired + "\t" + getName(desired) in testGetData()
149 ULocale desired = new ULocale(rawDesired); in testFallbacks() local
166 ULocale bestMatch = matcher.getBestMatch(desired); in testFallbacks()
167 if (!assertEquals("fallback for " + desired + ", " + score, supported, bestMatch)) { in testFallbacks()
168 ULocale max = ULocale.addLikelySubtags(desired); in testFallbacks()
171 + desired.getLanguage() + "_" + max.getScript() in testFallbacks()
173 bestMatch = matcher.getBestMatch(desired); // for debugging in testFallbacks()
DXLocaleMatcherTest.java184 final ULocale desired = new ULocale("sv"); in testPerf() local
200 assertEquals(expected, matcherShort.getBestMatch(desired)); in testPerf()
201 assertEquals(expected, matcherLong.getBestMatch(desired)); in testPerf()
202 assertEquals(expected, matcherVeryLong.getBestMatch(desired)); in testPerf()
212 …timeShortNew = timeXLocaleMatcher("Duration (few supported):\t", desired, matcherShort, showMessa… in testPerf()
213 …timeMediumNew = timeXLocaleMatcher("Duration (med. supported):\t", desired, matcherLong, showMessa… in testPerf()
214 …timeLongNew = timeXLocaleMatcher("Duration (many supported):\t", desired, matcherVeryLong, showMes… in testPerf()
224 …timeShortOld = timeLocaleMatcher("Old Duration (few supported):\t", desired, matcherShortOld, sho… in testPerf()
225 …timeMediumOld = timeLocaleMatcher("Old Duration (med. supported):\t", desired, matcherLongOld, sho… in testPerf()
226 …timeLongOld = timeLocaleMatcher("Old Duration (many supported):\t", desired, matcherVeryLongOld, s… in testPerf()
[all …]
DXLocaleDistanceTest.java41 final ULocale desired; field in XLocaleDistanceTest.Arguments
47 …this.desired = new ULocale.Builder().setLanguageTag(args.get(0)).build(); // use more complicated … in Arguments()
75 final ULocale desired = test.desired; in testTiming() local
81 final ULocale desiredMax = ULocale.addLikelySubtags(desired); in testTiming()
86 … double distOld1 = oldLocaleMatcher.match(desired, desiredMax, supported, supportedMax); in testTiming()
87 … double distOld2 = oldLocaleMatcher.match(supported, supportedMax, desired, desiredMax); in testTiming()
91 final LSR desiredLSR = LSR.fromMaximalized(desired); in testTiming()
175 …int supportedToDesiredActual = distance.distance(args.supported, args.desired, threshold, distance… in handle()
176 …int desiredToSupportedActual = distance.distance(args.desired, args.supported, threshold, distance… in handle()
177 String desiredTag = args.desired.toLanguageTag(); in handle()
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DLocaleDistanceMapper.java231 private final LsrSpec desired; field in LocaleDistanceMapper.LanguageMatchRule
236 public LanguageMatchRule(LsrSpec desired, LsrSpec supported, int distance, boolean oneway) { in LanguageMatchRule() argument
237 this.desired = checkNotNull(desired); in LanguageMatchRule()
244 checkArgument(desired.size() == supported.size(), in LanguageMatchRule()
245 "mismatched rule specifications in: %s, %s", desired, supported); in LanguageMatchRule() local
246 checkArgument(isAny(desired.language) == isAny(supported.language), in LanguageMatchRule()
247 "wildcard mismatch for languages in: %s, %s", desired, supported); in LanguageMatchRule() local
248 checkArgument(isAny(desired.script) == isAny(supported.script), in LanguageMatchRule()
249 "wildcard mismatch for scripts in: %s, %s", desired, supported); in LanguageMatchRule() local
250 checkArgument(isAny(desired.regionVariable) == isAny(supported.regionVariable), in LanguageMatchRule()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/tool/locale/
DLocaleDistanceBuilder.java114 final List<String> desired; field in LocaleDistanceBuilder.Rule
119 Rule(List<String> desired, List<String> supported, int distance, boolean oneway) { in Rule() argument
120 this.desired = desired; in Rule()
205 private int getDistance(String desired, String supported, in getDistance() argument
208 Map<String, DistanceTable> sub2 = subtables.get(desired); in getDistance()
228 int result = starEquals && star && desired.equals(supported) ? 0 : value.nodeDistance; in getDistance()
245 DistanceTable addSubtable(String desired, String supported, int distance) { in addSubtable() argument
246 Map<String, DistanceTable> sub2 = subtables.get(desired); in addSubtable()
248 subtables.put(desired, sub2 = new TreeMap<>()); in addSubtable()
263 private DistanceTable getNode(String desired, String supported) { in getNode() argument
[all …]
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/locale/
DLocaleDistanceBuilder.java111 final List<String> desired; field in LocaleDistanceBuilder.Rule
116 Rule(List<String> desired, List<String> supported, int distance, boolean oneway) { in Rule() argument
117 this.desired = desired; in Rule()
202 private int getDistance(String desired, String supported, in getDistance() argument
205 Map<String, DistanceTable> sub2 = subtables.get(desired); in getDistance()
225 int result = starEquals && star && desired.equals(supported) ? 0 : value.nodeDistance; in getDistance()
242 DistanceTable addSubtable(String desired, String supported, int distance) { in addSubtable() argument
243 Map<String, DistanceTable> sub2 = subtables.get(desired); in addSubtable()
245 subtables.put(desired, sub2 = new TreeMap<>()); in addSubtable()
260 private DistanceTable getNode(String desired, String supported) { in getNode() argument
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleMatcherTest.java154 Locale desired = new Locale("en", "US"); // distinct object from Locale.US in testBasics() local
155 result = matcher.getBestLocaleResult(desired); in testBasics()
157 assertTrue("exactly desired en-US object", desired == result.getDesiredLocale()); in testBasics()
358 ULocale desired = new ULocale("ar-SA-u-nu-latn"); in testResolvedLocale() local
359 LocaleMatcher.Result result = matcher.getBestMatchResult(desired); in testResolvedLocale()
512 private void showDistance(LocaleMatcher matcher, String desired, String supported) { in showDistance() argument
513 ULocale desired2 = new ULocale(desired); in showDistance()
516 logln(desired + " to " + supported + " :\t" + distance); in showDistance()
653 LocalePriorityList desired = LocalePriorityList.add("fr-CH, de-CH, it").build(); in testDemotion() local
657 assertEquals("no demotion", new ULocale("de-CH"), noDemotion.getBestMatch(desired)); in testDemotion()
[all …]
DLocaleDistanceTest.java38 final ULocale desired; field in LocaleDistanceTest.Arguments
44 …this.desired = new ULocale.Builder().setLanguageTag(args.get(0)).build(); // use more complicated … in Arguments()
82 final ULocale desired = test.desired; in testTiming() local
88 final ULocale desiredMax = ULocale.addLikelySubtags(desired); in testTiming()
103 … int dist1 = localeDistance.testOnlyDistance(desired, supported, 1000, FavorSubtag.LANGUAGE); in testTiming()
104 … int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming()
147 String desiredTag = args.desired.toLanguageTag(); in handle()
150 …edToDesiredActual = localeDistance.testOnlyDistance(args.supported, args.desired, threshold, favor… in handle()
153 …int desiredToSupportedActual = localeDistance.testOnlyDistance(args.desired, args.supported, thres… in handle()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleMatcherTest.java157 Locale desired = new Locale("en", "US"); // distinct object from Locale.US in testBasics() local
158 result = matcher.getBestLocaleResult(desired); in testBasics()
160 assertTrue("exactly desired en-US object", desired == result.getDesiredLocale()); in testBasics()
361 ULocale desired = new ULocale("ar-SA-u-nu-latn"); in testResolvedLocale() local
362 LocaleMatcher.Result result = matcher.getBestMatchResult(desired); in testResolvedLocale()
515 private void showDistance(LocaleMatcher matcher, String desired, String supported) { in showDistance() argument
516 ULocale desired2 = new ULocale(desired); in showDistance()
519 logln(desired + " to " + supported + " :\t" + distance); in showDistance()
656 LocalePriorityList desired = LocalePriorityList.add("fr-CH, de-CH, it").build(); in testDemotion() local
660 assertEquals("no demotion", new ULocale("de-CH"), noDemotion.getBestMatch(desired)); in testDemotion()
[all …]
DLocaleDistanceTest.java41 final ULocale desired; field in LocaleDistanceTest.Arguments
47 …this.desired = new ULocale.Builder().setLanguageTag(args.get(0)).build(); // use more complicated … in Arguments()
85 final ULocale desired = test.desired; in testTiming() local
91 final ULocale desiredMax = ULocale.addLikelySubtags(desired); in testTiming()
106 … int dist1 = localeDistance.testOnlyDistance(desired, supported, 1000, FavorSubtag.LANGUAGE); in testTiming()
107 … int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming()
150 String desiredTag = args.desired.toLanguageTag(); in handle()
153 …edToDesiredActual = localeDistance.testOnlyDistance(args.supported, args.desired, threshold, favor… in handle()
156 …int desiredToSupportedActual = localeDistance.testOnlyDistance(args.desired, args.supported, thres… in handle()
/external/llvm/test/CodeGen/AArch64/
Dcmpxchg-O0.ll3 define { i8, i1 } @test_cmpxchg_8(i8* %addr, i8 %desired, i8 %new) nounwind {
14 %res = cmpxchg i8* %addr, i8 %desired, i8 %new seq_cst monotonic
18 define { i16, i1 } @test_cmpxchg_16(i16* %addr, i16 %desired, i16 %new) nounwind {
29 %res = cmpxchg i16* %addr, i16 %desired, i16 %new seq_cst monotonic
33 define { i32, i1 } @test_cmpxchg_32(i32* %addr, i32 %desired, i32 %new) nounwind {
44 %res = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst monotonic
48 define { i64, i1 } @test_cmpxchg_64(i64* %addr, i64 %desired, i64 %new) nounwind {
59 %res = cmpxchg i64* %addr, i64 %desired, i64 %new seq_cst monotonic
63 define { i128, i1 } @test_cmpxchg_128(i128* %addr, i128 %desired, i128 %new) nounwind {
73 %res = cmpxchg i128* %addr, i128 %desired, i128 %new seq_cst monotonic
/external/autotest/server/site_tests/network_WiFi_UpdateRouter/
Dnetwork_WiFi_UpdateRouter.py135 desired = self.STABLE_VERSIONS.get(device_board, None)
136 if desired is None:
141 device_host.hostname, desired.release_version)
143 if desired.release_version == current_release_version:
146 desired.release_version))
149 device_host.hostname, desired.release_version,
152 ds = dev_server.ImageServer.resolve(desired.builder_version,
158 url = self.get_update_url(ds.url(), desired.builder_version)
/external/llvm-project/llvm/test/CodeGen/AArch64/
Dcmpxchg-O0.ll4 define { i8, i1 } @test_cmpxchg_8(i8* %addr, i8 %desired, i8 %new) nounwind {
17 %res = cmpxchg i8* %addr, i8 %desired, i8 %new seq_cst monotonic
21 define { i16, i1 } @test_cmpxchg_16(i16* %addr, i16 %desired, i16 %new) nounwind {
34 %res = cmpxchg i16* %addr, i16 %desired, i16 %new seq_cst monotonic
38 define { i32, i1 } @test_cmpxchg_32(i32* %addr, i32 %desired, i32 %new) nounwind {
51 %res = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst monotonic
55 define { i64, i1 } @test_cmpxchg_64(i64* %addr, i64 %desired, i64 %new) nounwind {
68 %res = cmpxchg i64* %addr, i64 %desired, i64 %new seq_cst monotonic
72 define { i128, i1 } @test_cmpxchg_128(i128* %addr, i128 %desired, i128 %new) nounwind {
86 %res = cmpxchg i128* %addr, i128 %desired, i128 %new seq_cst monotonic
[all …]

12345678910>>...36