Home
last modified time | relevance | path

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

12345678910

/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/libcxx/test/support/
Dcmpxchg_loop.h4 bool cmpxchg_weak_loop(A& atomic, T& expected, T desired) { in cmpxchg_weak_loop() argument
6 if (atomic.compare_exchange_weak(expected, desired) == true) { in cmpxchg_weak_loop()
15 bool cmpxchg_weak_loop(A& atomic, T& expected, T desired, in cmpxchg_weak_loop() argument
19 if (atomic.compare_exchange_weak(expected, desired, success, in cmpxchg_weak_loop()
29 bool c_cmpxchg_weak_loop(A* atomic, T* expected, T desired) { in c_cmpxchg_weak_loop() argument
31 if (std::atomic_compare_exchange_weak(atomic, expected, desired) == true) { in c_cmpxchg_weak_loop()
40 bool c_cmpxchg_weak_loop(A* atomic, T* expected, T desired, in c_cmpxchg_weak_loop() argument
44 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
Dinline-asm.ll35 define void @test6(i1 zeroext %desired) nounwind {
37 tail call void asm sideeffect "foo $0", "q,~{dirflag},~{fpsr},~{flags}"(i1 %desired) nounwind
41 define void @test7(i1 zeroext %desired, i32* %p) nounwind {
43 …ffect "xchg $0, $1", "=r,*m,0,~{memory},~{dirflag},~{fpsr},~{flags}"(i32* %p, i1 %desired) nounwind
/external/libvncserver/x11vnc/misc/
Dblockdpy.c164 CARD16 desired = DPMSModeOff; in main() local
193 desired = DPMSModeStandby; in main()
195 desired = DPMSModeSuspend; in main()
197 desired = DPMSModeOff; in main()
250 if (desired == DPMSModeOff) { in main()
255 } else if (desired == DPMSModeSuspend) { in main()
260 } else if (desired == DPMSModeStandby) { in main()
276 if (! DPMSForceLevel(dpy, desired)) { in main()
316 DPMSForceLevel(dpy, desired); in main()
341 if (!state || power != desired) { in main()
/external/skia/include/core/
DSkAtomics.h33 bool sk_atomic_compare_exchange(T*, T* expected, T desired,
56 bool compare_exchange(T* expected, const T& desired,
59 return sk_atomic_compare_exchange(&fVal, expected, desired, success, failure);
83 inline bool sk_atomic_cas(int32_t* ptr, int32_t expected, int32_t desired) { in sk_atomic_cas() argument
84 return sk_atomic_compare_exchange(ptr, &expected, desired); in sk_atomic_cas()
87 inline void* sk_atomic_cas(void** ptr, void* expected, void* desired) { in sk_atomic_cas() argument
88 (void)sk_atomic_compare_exchange(ptr, &expected, desired); in sk_atomic_cas()
/external/clang/lib/Headers/
Dstdatomic.h131 #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST) argument
137 #define atomic_exchange(object, desired) __c11_atomic_exchange(object, desired, __ATOMIC_SEQ_CST) argument
140 …ompare_exchange_strong(object, expected, desired) __c11_atomic_compare_exchange_strong(object, exp… argument
143 …c_compare_exchange_weak(object, expected, desired) __c11_atomic_compare_exchange_weak(object, expe… argument
/external/llvm/test/Transforms/AtomicExpand/ARM/
Dcmpxchg-weak.ll3 define i32 @test_cmpxchg_seq_cst(i32* %addr, i32 %desired, i32 %new) {
11 ; CHECK: [[SHOULD_STORE:%.*]] = icmp eq i32 [[LOADED]], %desired
31 %pair = cmpxchg weak i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
36 define i1 @test_cmpxchg_weak_fail(i32* %addr, i32 %desired, i32 %new) {
43 ; CHECK: [[SHOULD_STORE:%.*]] = icmp eq i32 [[LOADED]], %desired
63 %pair = cmpxchg weak i32* %addr, i32 %desired, i32 %new seq_cst monotonic
68 define i32 @test_cmpxchg_monotonic(i32* %addr, i32 %desired, i32 %new) {
75 ; CHECK: [[SHOULD_STORE:%.*]] = icmp eq i32 [[LOADED]], %desired
95 %pair = cmpxchg weak i32* %addr, i32 %desired, i32 %new monotonic monotonic
Datomic-expansion-v8.ll85 define i8 @test_cmpxchg_i8_seqcst_seqcst(i8* %ptr, i8 %desired, i8 %newval) {
93 ; CHECK: [[SHOULD_STORE:%.*]] = icmp eq i8 [[OLDVAL]], %desired
114 %pairold = cmpxchg i8* %ptr, i8 %desired, i8 %newval seq_cst seq_cst
119 define i16 @test_cmpxchg_i16_seqcst_monotonic(i16* %ptr, i16 %desired, i16 %newval) {
127 ; CHECK: [[SHOULD_STORE:%.*]] = icmp eq i16 [[OLDVAL]], %desired
148 %pairold = cmpxchg i16* %ptr, i16 %desired, i16 %newval seq_cst monotonic
153 define i32 @test_cmpxchg_i32_acquire_acquire(i32* %ptr, i32 %desired, i32 %newval) {
160 ; CHECK: [[SHOULD_STORE:%.*]] = icmp eq i32 [[OLDVAL]], %desired
180 %pairold = cmpxchg i32* %ptr, i32 %desired, i32 %newval acquire acquire
185 define i64 @test_cmpxchg_i64_monotonic_monotonic(i64* %ptr, i64 %desired, i64 %newval) {
[all …]
Datomic-expansion-v7.ll223 define i8 @test_cmpxchg_i8_seqcst_seqcst(i8* %ptr, i8 %desired, i8 %newval) {
231 ; CHECK: [[SHOULD_STORE:%.*]] = icmp eq i8 [[OLDVAL]], %desired
252 %pairold = cmpxchg i8* %ptr, i8 %desired, i8 %newval seq_cst seq_cst
257 define i16 @test_cmpxchg_i16_seqcst_monotonic(i16* %ptr, i16 %desired, i16 %newval) {
265 ; CHECK: [[SHOULD_STORE:%.*]] = icmp eq i16 [[OLDVAL]], %desired
286 %pairold = cmpxchg i16* %ptr, i16 %desired, i16 %newval seq_cst monotonic
291 define i32 @test_cmpxchg_i32_acquire_acquire(i32* %ptr, i32 %desired, i32 %newval) {
298 ; CHECK: [[SHOULD_STORE:%.*]] = icmp eq i32 [[OLDVAL]], %desired
318 %pairold = cmpxchg i32* %ptr, i32 %desired, i32 %newval acquire acquire
323 define i64 @test_cmpxchg_i64_monotonic_monotonic(i64* %ptr, i64 %desired, i64 %newval) {
[all …]
/external/llvm/test/Transforms/SCCP/
Datomic.ll3 define i1 @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) {
5 ; CHECK: cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
6 %val = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCalendarAstronomer.java658 public long getSunTime(double desired, boolean next) in getSunTime() argument
661 desired, in getSunTime()
672 public long getSunTime(SolarLongitude desired, boolean next) {
673 return getSunTime(desired.value, next);
1164 public long getMoonTime(double desired, boolean next)
1168 desired,
1183 public long getMoonTime(MoonAge desired, boolean next) {
1184 return getMoonTime(desired.value, next);
1211 private long timeOfAngle(AngleFunc func, double desired,
1218 double deltaAngle = norm2PI(desired - lastAngle) ;
[all …]
/external/llvm/test/CodeGen/ARM/
Dcmpxchg-weak.ll3 define void @test_cmpxchg_weak(i32 *%addr, i32 %desired, i32 %new) {
6 %pair = cmpxchg weak i32* %addr, i32 %desired, i32 %new seq_cst monotonic
24 define i1 @test_cmpxchg_weak_to_bool(i32, i32 *%addr, i32 %desired, i32 %new) {
27 %pair = cmpxchg weak i32* %addr, i32 %desired, i32 %new seq_cst monotonic
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocaleMatcher.java137 …public double match(ULocale desired, ULocale desiredMax, ULocale supported, ULocale supportedMax) { in match() argument
138 return matcherData.match(desired, desiredMax, supported, supportedMax); in match()
436 …void addDataToScores(String desired, String supported, R3<LocalePatternMatcher,LocalePatternMatche… in addDataToScores() argument
636 private LanguageMatcherData addDistance(String desired, String supported, int percent) { in addDistance() argument
637 return addDistance(desired, supported, percent, false, null); in addDistance()
644 …public LanguageMatcherData addDistance(String desired, String supported, int percent, String comme… in addDistance() argument
645 return addDistance(desired, supported, percent, false, comment); in addDistance()
652 …public LanguageMatcherData addDistance(String desired, String supported, int percent, boolean onew… in addDistance() argument
653 return addDistance(desired, supported, percent, oneway, null); in addDistance()
656 …private LanguageMatcherData addDistance(String desired, String supported, int percent, boolean one… in addDistance() argument
[all …]
/external/compiler-rt/test/BlocksRuntime/
Dfail.c82 char desired[512]; in main() local
84 bool gotErrorFile = readfile(desired, errorfile); in main()
92 char *where = strstr(got, desired); in main()
/external/compiler-rt/lib/builtins/
Datomic.c194 void *desired, int success, int failure) { in __atomic_compare_exchange_c() argument
197 *(type*)desired, success, failure) in __atomic_compare_exchange_c()
203 memcpy(ptr, desired, size); in __atomic_compare_exchange_c()
283 int __atomic_compare_exchange_##n(type *ptr, type *expected, type desired,\
286 return __c11_atomic_compare_exchange_strong((_Atomic(type)*)ptr, expected, desired,\
291 *ptr = desired;\
/external/libvorbis/vq/
Dvqgen.c337 long desired; in vqgen_iterate() local
369 desired=fdesired; in vqgen_iterate()
370 desired2=desired*2; in vqgen_iterate()
436 if(k<desired){ in vqgen_iterate()
439 if(k==desired){ in vqgen_iterate()
441 qsort(nearbiasptr,desired,sizeof(float),directdsort); in vqgen_iterate()
444 }else if(thismetric>nearbiasptr[desired-1]){ in vqgen_iterate()
450 k=desired; in vqgen_iterate()
465 if(nearcount[i]>desired) in vqgen_iterate()
468 v->bias[i]=nearbiasptr[desired-1]; in vqgen_iterate()
/external/icu/icu4c/source/i18n/
Dastro.cpp729 UDate CalendarAstronomer::getSunTime(double desired, UBool next) in getSunTime() argument
733 desired, in getSunTime()
1245 UDate CalendarAstronomer::getMoonTime(double desired, UBool next) in getMoonTime() argument
1249 desired, in getMoonTime()
1265 UDate CalendarAstronomer::getMoonTime(const CalendarAstronomer::MoonAge& desired, UBool next) { in getMoonTime() argument
1266 return getMoonTime(desired.value, next); in getMoonTime()
1297 UDate CalendarAstronomer::timeOfAngle(AngleFunc& func, double desired, in timeOfAngle() argument
1304 double deltaAngle = norm2PI(desired - lastAngle) ; in timeOfAngle()
1326 deltaT = normPI(desired - angle) * factor; in timeOfAngle()
1352 return timeOfAngle(func, desired, periodDays, epsilon, next); in timeOfAngle()
Dastro.h531 UDate getSunTime(double desired, UBool next);
631 UDate getMoonTime(double desired, UBool next);
632 UDate getMoonTime(const MoonAge& desired, UBool next);
653 UDate timeOfAngle(AngleFunc& func, double desired,
/external/llvm/test/CodeGen/CPP/
Datomic.ll63 define void @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) {
64 %inst0 = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst monotonic
70 %inst1 = cmpxchg volatile i32* %addr, i32 %desired, i32 %new singlethread acq_rel acquire
76 %inst2 = cmpxchg weak i32* %addr, i32 %desired, i32 %new seq_cst monotonic
82 %inst3 = cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new singlethread acq_rel acquire
/external/mesa3d/src/gallium/docs/source/
Dcso.rst7 out a state object with the desired properties, then passing that object
9 can be bound at any time for the desired effect.
/external/skia/include/ports/
DSkAtomics_sync.h49 bool sk_atomic_compare_exchange(T* ptr, T* expected, T desired, sk_memory_order, sk_memory_order) { in sk_atomic_compare_exchange() argument
50 T prev = __sync_val_compare_and_swap(ptr, *expected, desired); in sk_atomic_compare_exchange()
DSkAtomics_atomic.h35 bool sk_atomic_compare_exchange(T* ptr, T* expected, T desired, in sk_atomic_compare_exchange() argument
44 return __atomic_compare_exchange_n(ptr, expected, desired, false/*weak?*/, success, failure); in sk_atomic_compare_exchange()

12345678910