Searched defs:word (Results 1 - 18 of 18) sorted by relevance

/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/
H A Datomic.h20 static inline bool atomicCmpXchgPtr(volatile uintptr_t *word, uintptr_t prevVal, uintptr_t newVal) { argument
22 return atomicCmpXchg32bits((volatile uint32_t *) word, (uint32_t) prevVal, (uint32_t) newVal);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
H A Dcryptmodule.c17 char *word, *salt; local
22 if (!PyArg_ParseTuple(args, "ss:crypt", &word, &salt)) {
27 return Py_BuildValue("s", crypt(word, salt));
32 "crypt(word, salt) -> string\n\
33 word will usually be a user's password. salt is a 2-character string\n\
H A Dunicodedata.c887 int word; local
941 /* get word index */
942 word = phrasebook[offset] - phrasebook_short;
943 if (word >= 0) {
944 word = (word << 8) + phrasebook[offset+1];
947 word = phrasebook[offset++];
953 /* copy word string from lexicon. the last character in the
954 word has bit 7 set. the last word i
[all...]
/device/google/contexthub/firmware/os/inc/
H A Datomic.h29 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal);
31 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal);
35 uint32_t atomicAdd32bits(volatile uint32_t *word, uint32_t addend);
48 static inline uint32_t atomicRead32bits(volatile uint32_t *word) argument
51 return *word;
60 static inline void atomicWrite32bits(volatile uint32_t *word, uint32_t val) argument
62 *word = val;
/device/google/contexthub/util/stm32_flash/
H A Dstm32f4_crc.c48 uint32_t word; local
52 /* word by word crc32 */
57 /* zero pad last word if required */
59 for (i*=4, word=0; i<length; i++)
60 word |= buffer[i] << ((i & 0x3) * 8);
61 crc = crc32_word(crc, word);
/device/google/contexthub/firmware/lib/libc/
H A Dbcopy.c40 * sizeof(word) MUST BE A POWER OF TWO
43 typedef int word; /* "word" used for optimal copy speed */ typedef
45 #define wsize sizeof(word)
104 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize);
125 TLOOP(src -= wsize; dst -= wsize; *(word *)dst = *(word *)src);
/device/google/contexthub/firmware/os/core/
H A DfloatRt.c61 uint32_t e, word = *(const uint32_t*)&f; local
66 if (word & BIT_SIGN)
70 if (word < (EXP_ADJUST << EXP_SHIFT))
74 if (word >= (EXP_ADJUST + 64) << EXP_SHIFT)
78 ret = (word & ((1 << MANTISSA_BITS) - 1)) | (1 << MANTISSA_BITS);
79 e = ((word >> EXP_SHIFT) - EXP_ADJUST);
92 uint32_t e, word = *(const uint32_t*)&f; local
93 bool neg = (word & BIT_SIGN);
98 word &=~ BIT_SIGN;
101 if (word < (EXP_ADJUS
[all...]
/device/google/contexthub/firmware/os/cpu/cortexm4/
H A Datomic.c37 uint32_t atomicAdd32bits(volatile uint32_t *word, uint32_t addend) argument
46 :"=r"(prevVal), "=r"(storeFailed), "=r"(tmp), "=r"(addend), "=r"(word)
47 :"3"(addend), "4"(word)
72 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal) argument
80 :"=r"(prevVal), "=r"(storeFailed), "=r"(newVal), "=r"(word)
81 :"2"(newVal), "3"(word)
115 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal) argument
122 :"=r"(currVal), "=r"(word)
123 :"1"(word)
132 :"=r"(storeFailed), "=r"(newVal), "=r"(word)
[all...]
/device/google/contexthub/firmware/os/cpu/x86/
H A Datomic.c58 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal) argument
60 return __atomic_exchange_n(word, newVal, __ATOMIC_ACQ_REL);
92 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal) argument
94 return __sync_bool_compare_and_swap (word, prevVal, newVal);
100 :"=a"(ret), "+m"(*word)
/device/google/contexthub/lib/nanohub/
H A Dsoftcrc.c45 uint32_t word; local
48 // word by word crc32
54 // zero pad last word if required
56 for (i *= 4, word = 0; i < size; i++)
57 word |= (*data8++) << ((i & 0x3) * 8);
58 crc = crcOneWord(crc, word, 8);
/device/linaro/bootloader/edk2/StdLib/LibC/Math/
H A Dmath_private.h23 n0 = ((*(int*)&one)>>29)^1; * index of high word *
24 ix0 = *(n0+(int*)&x); * high word of x *
25 ix1 = *((1-n0)+(int*)&x); * low word of x *
37 * The ARM ports are little endian except for the FPA word order which is
134 u_int32_t word; member in union:__anon9510
143 (i) = gf_u.word; \
151 sf_u.word = (i); \
/device/google/contexthub/firmware/os/platform/stm32/
H A Dcrc.c72 uint32_t word = 0; local
73 memcpy(&word, words + numWords, leftoverBytes);
77 mCrcRegs->DR = word;
/device/google/marlin/common/
H A Dutils.mk7 # $(call match-word,w1,w2)
16 define match-word
22 # $(call find-word-in-list,w,wlist)
23 # finds an exact match of word w in word list wlist
28 # search word w in list wl, if found match m, return stripped word w
30 # returns stripped word or empty
31 define find-word-in-list
40 # $(call match-word
[all...]
/device/google/contexthub/util/nanotool/
H A Dnanopacket.cpp32 // Computes the CRC of one word.
48 // Word by word crc32
53 // Zero pad last word if required.
55 uint32_t word = 0; local
58 word |= buffer[i] << ((i & 0x3) * 8);
61 crc = Crc32Word(crc, word, 8);
/device/google/contexthub/firmware/lib/libm/
H A Dfdlibm.h233 n0 = ((*(int*)&one)>>29)^1; * index of high word *
234 ix0 = *(n0+(int*)&x); * high word of x *
235 ix1 = *((1-n0)+(int*)&x); * low word of x *
344 __uint32_t word; member in union:__anon117
353 (i) = gf_u.word; \
361 sf_u.word = (i); \
/device/linaro/bootloader/edk2/StdLib/LibC/Main/Arm/
H A Dfp_lib.h138 uint64_t word; local
142 word = uu.s.high;
146 word = uu.s.low;
149 return __builtin_clzll(word) + add;
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/
H A Dmath_private.h29 * n0 = ((*(int*)&one)>>29)^1; * index of high word *
30 * ix0 = *(n0+(int*)&x); * high word of x *
31 * ix1 = *((1-n0)+(int*)&x); * low word of x *
174 unsigned int word; member in union:__anon107
183 (i) = gf_u.word; \
191 sf_u.word = (i); \
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
H A Dunicodedata.c894 int word; local
948 /* get word index */
949 word = phrasebook[offset] - phrasebook_short;
950 if (word >= 0) {
951 word = (word << 8) + phrasebook[offset+1];
954 word = phrasebook[offset++];
960 /* copy word string from lexicon. the last character in the
961 word has bit 7 set. the last word i
[all...]

Completed in 257 milliseconds