Home
last modified time | relevance | path

Searched refs:bit (Results 1 – 25 of 227) sorted by relevance

12345678910

/AliOS-Things-master/components/ble_host/include/
A Datomic.h294 #define ATOMIC_MASK(bit) (1 << ((bit) & (ATOMIC_BITS - 1))) argument
295 #define ATOMIC_ELEM(addr, bit) ((addr) + ((bit) / ATOMIC_BITS)) argument
332 return (1 & (val >> (bit & (ATOMIC_BITS - 1)))); in atomic_test_bit()
348 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_test_and_clear_bit()
369 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_test_and_set_bit()
390 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_clear_bit()
392 atomic_and(ATOMIC_ELEM(target, bit), ~mask); in atomic_clear_bit()
408 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_set_bit()
410 atomic_or(ATOMIC_ELEM(target, bit), mask); in atomic_set_bit()
415 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_set_bit_to()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/pngsuite/
A DREADME22 grayscale (1-16 bit deep), full color (8 or 16 bit), paletted
28 basn0g01.png 1-bit grayscale
29 basn0g02.png 2-bit grayscale
30 basn0g04.png 4-bit grayscale
31 basn0g08.png 8-bit grayscale
35 basn3p01.png 1-bit paletted
36 basn3p02.png 2-bit paletted
37 basn3p04.png 4-bit paletted
38 basn3p08.png 8-bit paletted
41 basn6a08.png 8-bit RGBA
[all …]
/AliOS-Things-master/components/SDL2/src/video/
A DSDL_blit_0.c50 Uint8 byte = 0, bit; in BlitBto1() local
74 *dst = bit; in BlitBto1()
105 Uint8 byte = 0, bit; in BlitBto2() local
141 Uint8 byte = 0, bit; in BlitBto3() local
148 o = bit * 4; in BlitBto3()
181 Uint8 byte = 0, bit; in BlitBto4() local
269 Uint8 byte = 0, bit; in BlitBto2Key() local
303 Uint8 byte = 0, bit; in BlitBto3Key() local
338 Uint8 byte = 0, bit; in BlitBto4Key() local
378 Uint8 byte = 0, bit; in BlitBtoNAlpha() local
[all …]
/AliOS-Things-master/components/drivers/core/base/include/drivers/
A Datomic.h292 #define ATOMIC_MASK(bit) (1 << ((bit) & (ATOMIC_BITS - 1))) argument
293 #define ATOMIC_ELEM(addr, bit) ((addr) + ((bit) / ATOMIC_BITS)) argument
330 return (1 & (val >> (bit & (ATOMIC_BITS - 1)))); in atomic_test_bit()
346 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_test_and_clear_bit()
349 old = atomic_and(ATOMIC_ELEM(target, bit), ~mask); in atomic_test_and_clear_bit()
367 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_test_and_set_bit()
370 old = atomic_or(ATOMIC_ELEM(target, bit), mask); in atomic_test_and_set_bit()
388 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_clear_bit()
390 atomic_and(ATOMIC_ELEM(target, bit), ~mask); in atomic_clear_bit()
406 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_set_bit()
[all …]
/AliOS-Things-master/components/littlevgl/src/lv_draw/
A Dlv_draw_img.c109 uint8_t bit = x & 0x7; in lv_img_buf_get_px_color() local
116 p_color.full = (buf_u8[px] & (1 << (7 - bit))) >> (7 - bit); in lv_img_buf_get_px_color()
119 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_get_px_color() local
126 p_color.full = (buf_u8[px] & (3 << (6 - bit))) >> (6 - bit); in lv_img_buf_get_px_color()
136 p_color.full = (buf_u8[px] & (0xF << (4 - bit))) >> (4 - bit); in lv_img_buf_get_px_color()
182 uint8_t bit = x & 0x7; in lv_img_buf_get_px_alpha() local
189 uint8_t px_opa = (buf_u8[px] & (1 << (7 - bit))) >> (7 - bit); in lv_img_buf_get_px_alpha()
201 uint8_t px_opa = (buf_u8[px] & (3 << (6 - bit))) >> (6 - bit); in lv_img_buf_get_px_alpha()
214 uint8_t px_opa = (buf_u8[px] & (0xF << (4 - bit))) >> (4 - bit); in lv_img_buf_get_px_alpha()
246 uint8_t bit = x & 0x7; in lv_img_buf_set_px_color() local
[all …]
/AliOS-Things-master/components/vfs/
A Dvfs_file.c116 int word, bit; in vfs_fd_mark_open() local
126 bit = fd % 32; in vfs_fd_mark_open()
128 if (g_opened_fd_bitmap[word] & (1 << bit)) in vfs_fd_mark_open()
135 g_opened_fd_bitmap[word] |= (1 << bit); in vfs_fd_mark_open()
143 int word, bit; in vfs_fd_mark_close() local
153 bit = fd % 32; in vfs_fd_mark_close()
155 if (g_opened_fd_bitmap[word] & (1 << bit)) in vfs_fd_mark_close()
157 g_opened_fd_bitmap[word] &= ~(1 << bit); in vfs_fd_mark_close()
170 int word, bit; in vfs_fd_is_open() local
180 bit = fd % 32; in vfs_fd_is_open()
[all …]
/AliOS-Things-master/components/csi/csi2/include/drv/
A Dio.h44 #define HAL_BIT_SET(reg, bit) ((reg) = ((reg) | (1U << (bit)))) argument
47 #define HAL_BIT_CLR(reg, bit) ((reg) = ((reg) & (~(1U << (bit))))) argument
50 #define HAL_GET_BIT_VAL(reg, bit) (((reg)>> (bit)) & 1U) argument
59 #define HAL_BIT_INSR(reg, bit, val) \ argument
60 ((reg) = (((reg) & (~(1U << (bit)))) | (((val) & 1U) << (bit))))
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/
A Dfilterbank.c73 uint32_t bit = 1U << (31 - max_bit_number); in Sqrt32() local
76 if (num >= res + bit) { in Sqrt32()
77 num -= res + bit; in Sqrt32()
78 res = (res >> 1U) + bit; in Sqrt32()
82 bit >>= 2U; in Sqrt32()
101 uint64_t bit = 1ULL << (63 - max_bit_number); in Sqrt64() local
104 if (num >= res + bit) { in Sqrt64()
105 num -= res + bit; in Sqrt64()
106 res = (res >> 1U) + bit; in Sqrt64()
110 bit >>= 2U; in Sqrt64()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dtoken_enc.c94 assert(bit <= 1); in AddToken()
97 b->tokens_[slot] = (bit << 15) | proba_idx; in AddToken()
99 VP8RecordStats(bit, stats); in AddToken()
100 return bit; in AddToken()
106 assert(bit <= 1); in AddConstantToken()
109 b->tokens_[slot] = (bit << 15) | FIXED_PROBA_BIT | proba; in AddConstantToken()
211 const int bit = (token >> 15) & 1; in VP8EmitTokens() local
215 VP8PutBit(bw, bit, probas[token & 0x3fffu]); in VP8EmitTokens()
237 const int bit = token & (1 << 15); in VP8EstimateTokenSize() local
239 size += VP8BitCost(bit, token & 0xffu); in VP8EstimateTokenSize()
[all …]
A Dcost_enc.h45 static WEBP_INLINE int VP8RecordStats(int bit, proba_t* const stats) { in VP8RecordStats() argument
53 p += 0x00010000u + bit; in VP8RecordStats()
55 return bit; in VP8RecordStats()
59 static WEBP_INLINE int VP8BitCost(int bit, uint8_t proba) { in VP8BitCost() argument
60 return !bit ? VP8EntropyCost[proba] : VP8EntropyCost[255 - proba]; in VP8BitCost()
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/
A Dtiffconf.h.in10 /* Signed 16-bit type */
13 /* Signed 32-bit type */
16 /* Signed 64-bit type */
19 /* Signed 8-bit type */
22 /* Unsigned 16-bit type */
25 /* Unsigned 32-bit type */
28 /* Unsigned 64-bit type */
31 /* Unsigned 8-bit type */
55 /* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
77 /* Support NeXT 2-bit RLE algorithm */
[all …]
A Dtiffconf.h.cmake.in10 /* Signed 16-bit type */
13 /* Signed 32-bit type */
16 /* Signed 64-bit type */
19 /* Signed 8-bit type */
22 /* Unsigned 16-bit type */
25 /* Unsigned 32-bit type */
28 /* Unsigned 64-bit type */
31 /* Unsigned 8-bit type */
58 /* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
80 /* Support NeXT 2-bit RLE algorithm */
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/
A Dstrlen.c51 #error long int is not a 32bit or 64bit type.
56 #error long int is not a 32bit or 64bit byte
A Dstrcat.c55 #error long int is not a 32bit or 64bit type.
60 #error long int is not a 32bit or 64bit byte
A Dstrcpy.c55 #error long int is not a 32bit or 64bit type.
60 #error long int is not a 32bit or 64bit byte
A Dstrcmp.c55 #error long int is not a 32bit or 64bit type.
60 #error long int is not a 32bit or 64bit byte
A Dstrncat.c62 #error long int is not a 32bit or 64bit type.
67 #error long int is not a 32bit or 64bit byte
A Dstrncmp.c56 #error long int is not a 32bit or 64bit type.
61 #error long int is not a 32bit or 64bit byte
A Dstrncpy.c61 #error long int is not a 32bit or 64bit type.
66 #error long int is not a 32bit or 64bit byte
A Dmemchr.c62 #error long int is not a 32bit or 64bit type.
67 #error long int is not a 32bit or 64bit byte
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/file_system/ftl/
A Dftl.h139 static inline void flash_set_bit(uint32_t *addr, uint32_t bit) in flash_set_bit() argument
141 (*addr) &= ~bit; in flash_set_bit()
144 static inline bool flash_get_bit(uint32_t flag, uint32_t bit) in flash_get_bit() argument
146 return (flag & bit) ? FALSE : TRUE; in flash_get_bit()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/
A Dbit_reader_inl_utils.h119 const int bit = (value > split); in VP8GetBit() local
120 if (bit) { in VP8GetBit()
132 return bit; in VP8GetBit()
167 int bit; // Don't use 'const int bit = (value > split);", it's slower. in VP8GetBitAlt() local
171 bit = 1; in VP8GetBitAlt()
174 bit = 0; in VP8GetBitAlt()
182 return bit; in VP8GetBitAlt()
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/
A Dzconfig_protocol.c40 uint8_t bit[ZC_MAX_SSID_LEN * 8] = { 0 }; in encode_chinese() local
46 bit[i * 8 + j] = (in[i] >> j) & 0x01; in encode_chinese()
53 out[i] |= bit[i * bits + j] << j; in encode_chinese()
74 uint8_t *bit = (uint8_t *)awss_zalloc(in_len * bits); in decode_chinese() local
76 if (bit == NULL) { in decode_chinese()
84 bit[i * bits + j] = (in[i] >> j) & 0x01; in decode_chinese()
91 out[i] |= bit[i * 8 + j] << j; in decode_chinese()
95 HAL_Free(bit); in decode_chinese()
/AliOS-Things-master/components/SDL2/src/image/external/
A Dtiff-4.0.9-win32config.patch384 +/* Signed 16-bit type */
390 +/* Signed 32-bit type */
396 +/* Signed 64-bit type */
399 +/* Signed 8-bit type */
436 +/* Unsigned 16-bit type */
451 +/* Unsigned 8-bit type */
526 +/* Signed 16-bit type */
529 +/* Signed 32-bit type */
532 +/* Signed 64-bit type */
535 +/* Signed 8-bit type */
[all …]
/AliOS-Things-master/solutions/eduk1_demo/k1_apps/lightmeter/
A Dlightmeter.md103 * 7-bit地址模式,地址:0x1E
109 16-bit有效线性输出
112 10-bit有效线性输出
200 - PS 有效位数为10bit
201 - OBJ bit在有物体靠近的时候被设置成1,否则设置为0。
202 - IR_OF bit被设置成1代表PS值无效(高强度红外光的情况下会出现)
210 IR数据有效位数同样为10bit,也有一个IR_OF来标识IR/PS数据是否有效。
247 PS Persist的时间可以通过配置PS Configuration寄存器的bit 0:1。
259 I2C采用多主从结构,I2C主设备基于地址对I2C从设备进行寻址,采用8-bit数据传输模式,支持7-bit/10-bit地址模式。I2C总线对I2C传输开始/结束/数据传输/ACK机制/时钟同步/…
396 2. ap3216c为7-bit地址模式
[all …]

Completed in 37 milliseconds

12345678910