Lines Matching refs:value
295 __STATIC_FORCEINLINE uint32_t __REV(uint32_t value) in __REV() argument
298 return __builtin_bswap32(value); in __REV()
302 __ASM ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __REV()
314 __STATIC_FORCEINLINE uint32_t __REV16(uint32_t value) in __REV16() argument
318 __ASM ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __REV16()
329 __STATIC_FORCEINLINE int16_t __REVSH(int16_t value) in __REVSH() argument
332 return (int16_t)__builtin_bswap16(value); in __REVSH()
336 __ASM ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __REVSH()
367 #define __BKPT(value) __ASM volatile ("bkpt "#value) argument
376 __STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value) in __RBIT() argument
383 __ASM ("rbit %0, %1" : "=r" (result) : "r" (value) ); in __RBIT()
387 result = value; /* r will be reversed bits of v; first get LSB of v */ in __RBIT()
388 for (value >>= 1U; value != 0U; value >>= 1U) in __RBIT()
391 result |= value & 1U; in __RBIT()
406 __STATIC_FORCEINLINE uint8_t __CLZ(uint32_t value) in __CLZ() argument
417 if (value == 0U) in __CLZ()
421 return __builtin_clz(value); in __CLZ()
496 __STATIC_FORCEINLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr) in __STREXB() argument
500 __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); in __STREXB()
513 __STATIC_FORCEINLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr) in __STREXH() argument
517 __ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) ); in __STREXH()
530 __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) in __STREXW() argument
534 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); in __STREXW()
596 __STATIC_FORCEINLINE uint32_t __RRX(uint32_t value) in __RRX() argument
600 __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __RRX()
670 __STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr) in __STRBT() argument
672 __ASM volatile ("strbt %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); in __STRBT()
682 __STATIC_FORCEINLINE void __STRHT(uint16_t value, volatile uint16_t *ptr) in __STRHT() argument
684 __ASM volatile ("strht %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) ); in __STRHT()
694 __STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr) in __STRT() argument
696 __ASM volatile ("strt %1, %0" : "=Q" (*ptr) : "r" (value) ); in __STRT()
810 __STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr) in __STLB() argument
812 __ASM volatile ("stlb %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) : "memory" ); in __STLB()
822 __STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr) in __STLH() argument
824 __ASM volatile ("stlh %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) : "memory" ); in __STLH()
834 __STATIC_FORCEINLINE void __STL(uint32_t value, volatile uint32_t *ptr) in __STL() argument
836 __ASM volatile ("stl %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) : "memory" ); in __STL()
893 __STATIC_FORCEINLINE uint32_t __STLEXB(uint8_t value, volatile uint8_t *ptr) in __STLEXB() argument
897 …__ASM volatile ("stlexb %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) : "memor… in __STLEXB()
910 __STATIC_FORCEINLINE uint32_t __STLEXH(uint16_t value, volatile uint16_t *ptr) in __STLEXH() argument
914 …__ASM volatile ("stlexh %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) : "memor… in __STLEXH()
927 __STATIC_FORCEINLINE uint32_t __STLEX(uint32_t value, volatile uint32_t *ptr) in __STLEX() argument
931 …__ASM volatile ("stlex %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) : "memory… in __STLEX()