/external/fastrpc/src/ |
D | cae.c | 33 uint32 atomic_CompareAndExchange(uint32 * volatile puDest, uint32 uExchange, uint32 uCompare) { in atomic_CompareAndExchange() argument 35 return (uint32)InterlockedCompareExchange((LONG*)puDest, (LONG)uExchange, (LONG)uCompare); in atomic_CompareAndExchange() 37 uintptr_t atomic_CompareAndExchangeUP(uintptr_t * volatile puDest, uintptr_t uExchange, uintptr_t u… in atomic_CompareAndExchangeUP() argument 39 …return (uintptr_t)InterlockedCompareExchangePointer((void**)puDest, (void*)uExchange, (void*)uComp… in atomic_CompareAndExchangeUP() 71 uint32 atomic_CompareAndExchange(uint32 * volatile puDest, uint32 uExchange, uint32 uCompare) { in atomic_CompareAndExchange() argument 72 return (uint32)qurt_atomic_compare_val_and_set((unsigned int*)puDest, uCompare, uExchange); in atomic_CompareAndExchange() 74 uintptr_t atomic_CompareAndExchangeUP(uintptr_t * volatile puDest, uintptr_t uExchange, uintptr_t u… in atomic_CompareAndExchangeUP() argument 76 return (uint32)atomic_CompareAndExchange((uint32*)puDest, (uint32)uExchange, (uint32)uCompare); in atomic_CompareAndExchangeUP() 79 uint32 atomic_CompareAndExchange(uint32 * volatile puDest, uint32 uExchange, uint32 uCompare) { in atomic_CompareAndExchange() argument 80 return __sync_val_compare_and_swap(puDest, uCompare, uExchange); in atomic_CompareAndExchange() [all …]
|
D | atomic.c | 31 uint32 atomic_Add(uint32 * volatile puDest, int nAdd) { in atomic_Add() argument 35 current = *puDest; in atomic_Add() 36 previous = atomic_CompareAndExchange(puDest, current + nAdd, current); in atomic_Add() 41 uint32 atomic_Exchange(uint32* volatile puDest, uint32 uVal) { in atomic_Exchange() argument 45 current = *puDest; in atomic_Exchange() 46 previous = atomic_CompareAndExchange(puDest, uVal, current); in atomic_Exchange() 51 uint32 atomic_CompareOrAdd(uint32* volatile puDest, uint32 uCompare, int nAdd) { in atomic_CompareOrAdd() argument 56 current = *puDest; in atomic_CompareOrAdd() 60 previous = atomic_CompareAndExchange(puDest, current + nAdd, current); in atomic_CompareOrAdd()
|
D | platform_libs.c | 40 static uint32 atomic_IfNotThenAdd(uint32* volatile puDest, uint32 uCompare, int nAdd); 104 static uint32 atomic_IfNotThenAdd(uint32* volatile puDest, uint32 uCompare, int nAdd) in atomic_IfNotThenAdd() argument 110 uCurr = *puDest; in atomic_IfNotThenAdd() 115 uPrev = atomic_CompareAndExchange(puDest, uCurr + nAdd, uCurr); in atomic_IfNotThenAdd()
|
D | adsp_default_listener_stub.c | 458 uint32_t _adsp_default_listener_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExc… 462 uint32_t _adsp_default_listener_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExc… in _adsp_default_listener_atomic_CompareAndExchange() argument 463 …return (uint32_t)InterlockedCompareExchange((volatile LONG*)puDest, (LONG)uExchange, (LONG)uCompar… in _adsp_default_listener_atomic_CompareAndExchange() 466 uint32_t _adsp_default_listener_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExc… in _adsp_default_listener_atomic_CompareAndExchange() argument 467 return __sync_val_compare_and_swap(puDest, uCompare, uExchange); in _adsp_default_listener_atomic_CompareAndExchange()
|
D | adspmsgd_adsp_stub.c | 508 uint32_t _adspmsgd_adsp_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, u… 512 uint32_t _adspmsgd_adsp_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, u… in _adspmsgd_adsp_atomic_CompareAndExchange() argument 513 …return (uint32_t)InterlockedCompareExchange((volatile LONG*)puDest, (LONG)uExchange, (LONG)uCompar… in _adspmsgd_adsp_atomic_CompareAndExchange() 516 uint32_t _adspmsgd_adsp_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, u… in _adspmsgd_adsp_atomic_CompareAndExchange() argument 517 return __sync_val_compare_and_swap(puDest, uCompare, uExchange); in _adspmsgd_adsp_atomic_CompareAndExchange()
|
D | adsp_perf_stub.c | 509 uint32_t _adsp_perf_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, uint3… 513 uint32_t _adsp_perf_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, uint3… in _adsp_perf_atomic_CompareAndExchange() argument 514 …return (uint32_t)InterlockedCompareExchange((volatile LONG*)puDest, (LONG)uExchange, (LONG)uCompar… in _adsp_perf_atomic_CompareAndExchange() 517 uint32_t _adsp_perf_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, uint3… in _adsp_perf_atomic_CompareAndExchange() argument 518 return __sync_val_compare_and_swap(puDest, uCompare, uExchange); in _adsp_perf_atomic_CompareAndExchange()
|
D | remotectl_stub.c | 510 uint32_t _remotectl_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, uint3… 514 uint32_t _remotectl_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, uint3… in _remotectl_atomic_CompareAndExchange() argument 515 …return (uint32_t)InterlockedCompareExchange((volatile LONG*)puDest, (LONG)uExchange, (LONG)uCompar… in _remotectl_atomic_CompareAndExchange() 518 uint32_t _remotectl_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, uint3… in _remotectl_atomic_CompareAndExchange() argument 519 return __sync_val_compare_and_swap(puDest, uCompare, uExchange); in _remotectl_atomic_CompareAndExchange()
|
D | adsp_current_process_stub.c | 511 uint32_t _adsp_current_process_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExch… 515 uint32_t _adsp_current_process_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExch… in _adsp_current_process_atomic_CompareAndExchange() argument 516 …return (uint32_t)InterlockedCompareExchange((volatile LONG*)puDest, (LONG)uExchange, (LONG)uCompar… in _adsp_current_process_atomic_CompareAndExchange() 519 uint32_t _adsp_current_process_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExch… in _adsp_current_process_atomic_CompareAndExchange() argument 520 return __sync_val_compare_and_swap(puDest, uCompare, uExchange); in _adsp_current_process_atomic_CompareAndExchange()
|
D | adsp_listener_stub.c | 463 uint32_t _adsp_listener_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, u… 467 uint32_t _adsp_listener_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, u… in _adsp_listener_atomic_CompareAndExchange() argument 468 …return (uint32_t)InterlockedCompareExchange((volatile LONG*)puDest, (LONG)uExchange, (LONG)uCompar… in _adsp_listener_atomic_CompareAndExchange() 471 uint32_t _adsp_listener_atomic_CompareAndExchange(uint32_t * volatile puDest, uint32_t uExchange, u… in _adsp_listener_atomic_CompareAndExchange() argument 472 return __sync_val_compare_and_swap(puDest, uCompare, uExchange); in _adsp_listener_atomic_CompareAndExchange()
|
/external/fastrpc/inc/ |
D | AEEatomic.h | 50 uint32 atomic_Add(uint32 * volatile puDest, int nAdd); 51 uint32 atomic_Exchange(uint32 * volatile puDest, uint32 uVal); 52 uint32 atomic_CompareAndExchange(uint32 * volatile puDest, uint32 uExchange, uint32 uCompare); 53 uint32 atomic_CompareOrAdd(uint32 * volatile puDest, uint32 uCompare, int nAdd); 55 uint64 atomic_CompareAndExchange64(uint64 * volatile puDest, uint64 uExchange, uint64 uCompare); 56 uintptr_t atomic_CompareAndExchangeUP(uintptr_t * volatile puDest, uintptr_t uExchange, uintptr_t u…
|