/device/google/contexthub/firmware/src/ |
D | floatRt.c | 61 uint32_t e, word = *(const uint32_t*)&f; in floatToUint64() local 66 if (word & BIT_SIGN) in floatToUint64() 70 if (word < (EXP_ADJUST << EXP_SHIFT)) in floatToUint64() 74 if (word >= (EXP_ADJUST + 64) << EXP_SHIFT) in floatToUint64() 78 ret = (word & ((1 << MANTISSA_BITS) - 1)) | (1 << MANTISSA_BITS); in floatToUint64() 79 e = ((word >> EXP_SHIFT) - EXP_ADJUST); in floatToUint64() 92 uint32_t e, word = *(const uint32_t*)&f; in floatToInt64() local 93 bool neg = (word & BIT_SIGN); in floatToInt64() 98 word &=~ BIT_SIGN; in floatToInt64() 101 if (word < (EXP_ADJUST << EXP_SHIFT)) in floatToInt64() [all …]
|
/device/google/contexthub/firmware/src/cpu/cortexm4f/ |
D | atomic.c | 37 uint32_t atomicAdd32bits(volatile uint32_t *word, uint32_t addend) in atomicAdd32bits() argument 46 :"=r"(prevVal), "=r"(storeFailed), "=r"(tmp), "=r"(addend), "=r"(word) in atomicAdd32bits() 47 :"3"(addend), "4"(word) in atomicAdd32bits() 72 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal) in atomicXchg32bits() argument 80 :"=r"(prevVal), "=r"(storeFailed), "=r"(newVal), "=r"(word) in atomicXchg32bits() 81 :"2"(newVal), "3"(word) in atomicXchg32bits() 115 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal) in atomicCmpXchg32bits() argument 122 :"=r"(currVal), "=r"(word) in atomicCmpXchg32bits() 123 :"1"(word) in atomicCmpXchg32bits() 132 :"=r"(storeFailed), "=r"(newVal), "=r"(word) in atomicCmpXchg32bits() [all …]
|
/device/google/contexthub/firmware/inc/ |
D | atomic.h | 30 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal); 32 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal); 36 uint32_t atomicAdd32bits(volatile uint32_t *word, uint32_t addend); 45 static inline uint32_t atomicRead32bits(volatile uint32_t *word) in atomicRead32bits() argument 48 return *word; in atomicRead32bits() 57 static inline void atomicWrite32bits(volatile uint32_t *word, uint32_t val) in atomicWrite32bits() argument 59 *word = val; in atomicWrite32bits()
|
/device/google/contexthub/lib/nanohub/ |
D | softcrc.c | 45 uint32_t word, i; in crc32() local 55 for (i *= 4, word = 0; i < size; i++) in crc32() 56 word |= (*data8++) << ((i & 0x3) * 8); in crc32() 57 crc = crcOneWord(crc, word, 8); in crc32()
|
/device/google/contexthub/firmware/src/cpu/x86/ |
D | atomic.c | 58 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal) in atomicXchg32bits() argument 60 return __atomic_exchange_n(word, newVal, __ATOMIC_ACQ_REL); in atomicXchg32bits() 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/util/stm32_flash/ |
D | stm32f4_crc.c | 48 uint32_t word; in stm32f4_crc32() local 59 for (i*=4, word=0; i<length; i++) in stm32f4_crc32() 60 word |= buffer[i] << ((i & 0x3) * 8); in stm32f4_crc32() 61 crc = crc32_word(crc, word); in stm32f4_crc32()
|
/device/google/contexthub/firmware/src/platform/stm32f4xx/ |
D | crc.c | 72 uint32_t word = 0; in crc32() local 73 memcpy(&word, words + numWords, leftoverBytes); in crc32() 77 mCrcRegs->DR = word; in crc32()
|
/device/google/contexthub/util/nanotool/ |
D | nanopacket.cpp | 55 uint32_t word = 0; in Crc32() local 58 word |= buffer[i] << ((i & 0x3) * 8); in Crc32() 61 crc = Crc32Word(crc, word, 8); in Crc32()
|
/device/google/contexthub/lib/libm/ |
D | fdlibm.h | 344 __uint32_t word; member 353 (i) = gf_u.word; \ 361 sf_u.word = (i); \
|
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/ |
D | math_private.h | 174 unsigned int word; member 183 (i) = gf_u.word; \ 191 sf_u.word = (i); \
|