Home
last modified time | relevance | path

Searched refs:prevVal (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/firmware/os/cpu/cortexm4/
Datomic.c21 uint32_t prevVal, storeFailed, tmp; in atomicAddByte() local
28 :"=r"(prevVal), "=r"(storeFailed), "=r"(tmp), "=r"(addend), "=r"(byte) in atomicAddByte()
34 return prevVal; in atomicAddByte()
39 uint32_t prevVal, storeFailed, tmp; in atomicAdd32bits() local
46 :"=r"(prevVal), "=r"(storeFailed), "=r"(tmp), "=r"(addend), "=r"(word) in atomicAdd32bits()
52 return prevVal; in atomicAdd32bits()
57 uint32_t prevVal, storeFailed; in atomicXchgByte() local
63 :"=r"(prevVal), "=r"(storeFailed), "=r"(newVal), "=r"(byte) in atomicXchgByte()
69 return prevVal; in atomicXchgByte()
74 uint32_t prevVal, storeFailed; in atomicXchg32bits() local
[all …]
/device/google/contexthub/firmware/os/cpu/x86/
Datomic.c75 bool atomicCmpXchgByte(volatile uint8_t *byte, uint32_t prevVal, uint32_t newVal) in atomicCmpXchgByte() argument
77 return __sync_bool_compare_and_swap (byte, prevVal, newVal); in atomicCmpXchgByte()
92 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal) in atomicCmpXchg32bits() argument
94 return __sync_bool_compare_and_swap (word, prevVal, newVal); in atomicCmpXchg32bits()
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/
Datomic.h20 static inline bool atomicCmpXchgPtr(volatile uintptr_t *word, uintptr_t prevVal, uintptr_t newVal) { in atomicCmpXchgPtr() argument
22 return atomicCmpXchg32bits((volatile uint32_t *) word, (uint32_t) prevVal, (uint32_t) newVal); in atomicCmpXchgPtr()
/device/google/contexthub/firmware/os/inc/
Datomic.h30 bool atomicCmpXchgByte(volatile uint8_t *byte, uint32_t prevVal, uint32_t newVal);
31 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal);