| /third_party/libinput/src/ |
| H A D | util-bits.h | 34 #define bit(x_) (1UL << (x_)) macro 45 bit_is_set(const unsigned char *array, int bit) in bit_is_set() argument 47 return !!(array[bit / 8] & (1 << (bit % 8))); in bit_is_set() 51 set_bit(unsigned char *array, int bit) in set_bit() argument 53 array[bit / 8] |= (1 << (bit % 8)); in set_bit() 57 clear_bit(unsigned char *array, int bit) in clear_bit() argument 59 array[bit / 8] &= ~(1 << (bit in clear_bit() 63 long_bit_is_set(const unsigned long *array, int bit) long_bit_is_set() argument 69 long_set_bit(unsigned long *array, int bit) long_set_bit() argument 75 long_clear_bit(unsigned long *array, int bit) long_clear_bit() argument 81 long_set_bit_state(unsigned long *array, int bit, int state) long_set_bit_state() argument [all...] |
| /third_party/ffmpeg/libavfilter/ |
| H A D | vf_blend_init.h | 104 BLEND_NORMAL(8bit, uint8_t) 105 BLEND_NORMAL(16bit, uint16_t) 106 BLEND_NORMAL(32bit, float) 109 static av_cold void init_blend_func_##depth##_##nbits##bit(FilterParams *param) \ 112 case BLEND_ADDITION: param->blend = blend_addition_##depth##bit; break; \ 113 case BLEND_GRAINMERGE: param->blend = blend_grainmerge_##depth##bit; break; \ 114 case BLEND_AND: param->blend = blend_and_##depth##bit; break; \ 115 case BLEND_AVERAGE: param->blend = blend_average_##depth##bit; break; \ 116 case BLEND_BURN: param->blend = blend_burn_##depth##bit; break; \ 117 case BLEND_DARKEN: param->blend = blend_darken_##depth##bit; brea [all...] |
| H A D | colorspacedsp.c | 104 #define init_yuv2rgb_fn(bit) \ in ff_colorspacedsp_init() 105 dsp->yuv2rgb[BPP_##bit][SS_444] = yuv2rgb_444p##bit##_c; \ in ff_colorspacedsp_init() 106 dsp->yuv2rgb[BPP_##bit][SS_422] = yuv2rgb_422p##bit##_c; \ in ff_colorspacedsp_init() 107 dsp->yuv2rgb[BPP_##bit][SS_420] = yuv2rgb_420p##bit##_c in ff_colorspacedsp_init() 113 #define init_rgb2yuv_fn(bit) \ in ff_colorspacedsp_init() 114 dsp->rgb2yuv[BPP_##bit][SS_444] = rgb2yuv_444p##bit##_ in ff_colorspacedsp_init() [all...] |
| /third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
| H A D | BitSetIteratorTests.cpp | 40 for (unsigned long bit : IterateBitSet(mStateBits)) { in TEST_F() 41 EXPECT_EQ(1u, originalValues.count(bit)); in TEST_F() 42 EXPECT_EQ(0u, readValues.count(bit)); in TEST_F() 43 readValues.insert(bit); in TEST_F() 54 for (unsigned long bit : IterateBitSet(mStateBits)) { in TEST_F() 55 DAWN_UNUSED(bit); in TEST_F() 77 for (unsigned long bit : IterateBitSet(mStateBits & otherBits)) { in TEST_F() 78 EXPECT_EQ(0u, seenBits.count(bit)); in TEST_F() 79 seenBits.insert(bit); in TEST_F() 80 EXPECT_TRUE(mStateBits[bit]); in TEST_F() [all...] |
| /third_party/ntfs-3g/libntfs-3g/ |
| H A D | bitmap.c | 49 * ntfs_bit_set - set a bit in a field of bits 51 * @bit: bit to set 52 * @new_value: value to set bit to (0 or 1) 54 * Set the bit @bit in the @bitmap to @new_value. Ignore all errors. 56 void ntfs_bit_set(u8 *bitmap, const u64 bit, const u8 new_value) in ntfs_bit_set() argument 61 bitmap[bit >> 3] &= ~(1 << (bit & 7)); in ntfs_bit_set() 63 bitmap[bit >> in ntfs_bit_set() 74 ntfs_bit_get(const u8 *bitmap, const u64 bit) ntfs_bit_get() argument 90 ntfs_bit_get_and_set(u8 *bitmap, const u64 bit, const u8 new_value) ntfs_bit_get_and_set() argument 120 int bit, firstbyte, lastbyte, lastbyte_pos, tmp, ret = -1; ntfs_bitmap_set_bits_in_run() local [all...] |
| /third_party/cups-filters/cupsfilters/ |
| H A D | pack.c | 15 * cupsPackHorizontal2() - Pack 2-bit pixels horizontally... 16 * cupsPackHorizontalBit() - Pack pixels horizontally by bit... 115 * 'cupsPackHorizontal2()' - Pack 2-bit pixels horizontally... 168 * 'cupsPackHorizontalBit()' - Pack pixels horizontally by bit... 176 const unsigned char bit) /* I - Bit to check */ in cupsPackHorizontalBit() 189 if (*ipixels++ & bit) in cupsPackHorizontalBit() 191 if (*ipixels++ & bit) in cupsPackHorizontalBit() 193 if (*ipixels++ & bit) in cupsPackHorizontalBit() 195 if (*ipixels++ & bit) in cupsPackHorizontalBit() 197 if (*ipixels++ & bit) in cupsPackHorizontalBit() 172 cupsPackHorizontalBit(const unsigned char *ipixels, unsigned char *obytes, int width, const unsigned char clearto, const unsigned char bit) cupsPackHorizontalBit() argument 251 cupsPackVertical(const unsigned char *ipixels, unsigned char *obytes, int width, const unsigned char bit, const int step) cupsPackVertical() argument [all...] |
| H A D | image-tiff.c | 75 bit, /* Current bit */ in _cupsImageReadTIFF() local 372 for (xcount = img->xsize, scanptr = scanline, p = in + xstart, bit = 128; in _cupsImageReadTIFF() 376 if (*scanptr & bit) in _cupsImageReadTIFF() 381 if (bit > 1) in _cupsImageReadTIFF() 382 bit >>= 1; in _cupsImageReadTIFF() 385 bit = 128; in _cupsImageReadTIFF() 393 for (xcount = img->xsize, scanptr = scanline, p = in + xstart, bit = 0xc0; in _cupsImageReadTIFF() 397 pixel = *scanptr & bit; in _cupsImageReadTIFF() 402 if (bit > in _cupsImageReadTIFF() [all...] |
| /third_party/mesa3d/src/util/ |
| H A D | bitscan.c | 37 int bit = 0; in ffs() local 39 return bit; in ffs() 41 bit += 16; in ffs() 45 bit += 8; in ffs() 49 bit += 4; in ffs() 53 bit += 2; in ffs() 57 bit += 1; in ffs() 58 return bit + 1; in ffs() 68 int bit; in ffsll() local 70 bit in ffsll() [all...] |
| /third_party/ffmpeg/tests/fate/ |
| H A D | bmp.mak | 1 FATE_BMP += fate-bmp-1bit 2 fate-bmp-1bit: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test1.bmp -pix_fmt rgb24 -vf scale 4 FATE_BMP += fate-bmp-4bit 5 fate-bmp-4bit: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test4.bmp -pix_fmt rgb24 -vf scale 7 FATE_BMP += fate-bmp-4bit-os2 8 fate-bmp-4bit-os2: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test4os2v2.bmp -pix_fmt rgb24 -vf scale 10 FATE_BMP += fate-bmp-8bit 11 fate-bmp-8bit: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test8.bmp -pix_fmt rgb24 -vf scale 13 FATE_BMP += fate-bmp-8bit-os2 14 fate-bmp-8bit [all...] |
| H A D | cbs.mak | 75 STRUCT_A_Samsung_5.bit \ 76 WP_A_Toshiba_3.bit \ 77 SLIST_A_Sony_4.bit \ 78 SLIST_D_Sony_9.bit \ 79 CAINIT_E_SHARP_3.bit \ 80 CAINIT_H_SHARP_3.bit \ 81 TILES_B_Cisco_1.bit \ 82 WPP_A_ericsson_MAIN_2.bit \ 83 WPP_F_ericsson_MAIN_2.bit \ 84 ipcm_E_NEC_2.bit \ [all...] |
| H A D | qtrle.mak | 1 FATE_QTRLE += fate-qtrle-1bit 2 fate-qtrle-1bit: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/Animation-Monochrome.mov -an 4 FATE_QTRLE_SCALE += fate-qtrle-2bit 5 fate-qtrle-2bit: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/Animation-4Greys.mov -pix_fmt rgb24 -an -vf scale 7 FATE_QTRLE_SCALE += fate-qtrle-4bit 8 fate-qtrle-4bit: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/Animation-16Greys.mov -pix_fmt rgb24 -an -vf scale 10 FATE_QTRLE_SCALE += fate-qtrle-8bit 11 fate-qtrle-8bit: CMD = framecrc -i $(TARGET_SAMPLES)/qtrle/criticalpath-credits.mov -pix_fmt rgb24 -an -vf scale 13 FATE_QTRLE_SCALE += fate-qtrle-16bit 14 fate-qtrle-16bit [all...] |
| /third_party/lzma/Java/SevenZip/Compression/RangeCoder/ |
| H A D | BitTreeEncoder.java | 26 int bit = (symbol >>> bitIndex) & 1;
in Encode() 27 rangeEncoder.Encode(Models, m, bit);
in Encode() 28 m = (m << 1) | bit;
in Encode() 37 int bit = symbol & 1;
in ReverseEncode() 38 rangeEncoder.Encode(Models, m, bit);
in ReverseEncode() 39 m = (m << 1) | bit;
in ReverseEncode() 51 int bit = (symbol >>> bitIndex) & 1;
in GetPrice() 52 price += Encoder.GetPrice(Models[m], bit);
in GetPrice() 53 m = (m << 1) + bit;
in GetPrice() 64 int bit in ReverseGetPrice() [all...] |
| /third_party/lzma/CS/7zip/Compress/RangeCoder/ |
| H A D | RangeCoderBitTree.cs | 28 UInt32 bit = (symbol >> bitIndex) & 1;
in Encode() 29 Models[m].Encode(rangeEncoder, bit);
in Encode() 30 m = (m << 1) | bit;
in Encode() 39 UInt32 bit = symbol & 1;
in ReverseEncode() 40 Models[m].Encode(rangeEncoder, bit);
in ReverseEncode() 41 m = (m << 1) | bit;
in ReverseEncode() 53 UInt32 bit = (symbol >> bitIndex) & 1;
in GetPrice() 54 price += Models[m].GetPrice(bit);
in GetPrice() 55 m = (m << 1) + bit;
in GetPrice() 66 UInt32 bit in ReverseGetPrice() [all...] |
| /third_party/skia/third_party/externals/spirv-cross/tests-other/ |
| H A D | hlsl_wave_mask.cpp | 63 for (unsigned bit = 0; bit < 128; bit++) in main() 65 assert(bool(gl_SubgroupEqMask[bit / 32] & (1u << (bit & 31))) == (bit == subgroup_id)); in main() 66 assert(bool(gl_SubgroupGtMask[bit / 32] & (1u << (bit & 31))) == (bit > subgroup_id)); in main() 67 assert(bool(gl_SubgroupGeMask[bit / 3 in main() [all...] |
| /third_party/ntfs-3g/include/ntfs-3g/ |
| H A D | support.h | 64 * Simple bit operation macros. NOTE: These are NOT atomic. 66 #define test_bit(bit, var) ((var) & (1 << (bit))) 67 #define set_bit(bit, var) (var) |= 1 << (bit) 68 #define clear_bit(bit, var) (var) &= ~(1 << (bit)) 70 #define test_and_set_bit(bit, var) \ 72 const BOOL old_state = test_bit(bit, var); \ 73 set_bit(bit, va [all...] |
| /third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
| H A D | bitfield.c | 40 void bitfield_set(struct bitfield *bf, size_t bit) in bitfield_set() argument 42 if (bit >= bf->max_bits) in bitfield_set() 44 bf->bits[bit / 8] |= BIT(bit % 8); in bitfield_set() 48 void bitfield_clear(struct bitfield *bf, size_t bit) in bitfield_clear() argument 50 if (bit >= bf->max_bits) in bitfield_clear() 52 bf->bits[bit / 8] &= ~BIT(bit % 8); in bitfield_clear() 56 int bitfield_is_set(struct bitfield *bf, size_t bit) in bitfield_is_set() argument 58 if (bit > in bitfield_is_set() [all...] |
| /third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
| H A D | bitfield.c | 40 void bitfield_set(struct bitfield *bf, size_t bit) in bitfield_set() argument 42 if (bit >= bf->max_bits) in bitfield_set() 44 bf->bits[bit / 8] |= BIT(bit % 8); in bitfield_set() 48 void bitfield_clear(struct bitfield *bf, size_t bit) in bitfield_clear() argument 50 if (bit >= bf->max_bits) in bitfield_clear() 52 bf->bits[bit / 8] &= ~BIT(bit % 8); in bitfield_clear() 56 int bitfield_is_set(struct bitfield *bf, size_t bit) in bitfield_is_set() argument 58 if (bit > in bitfield_is_set() [all...] |
| /third_party/selinux/libsepol/include/sepol/policydb/ |
| H A D | ebitmap.h | 13 * an explicitly specified starting bit position within 29 #define MAPBIT 1ULL /* a bit in the node bitmap */ 60 static inline unsigned int ebitmap_next(ebitmap_node_t ** n, unsigned int bit) in ebitmap_next() argument 62 if ((bit == ((*n)->startbit + MAPSIZE - 1)) && (*n)->next) { in ebitmap_next() 67 return (bit + 1); in ebitmap_next() 70 static inline int ebitmap_node_get_bit(const ebitmap_node_t * n, unsigned int bit) in ebitmap_node_get_bit() argument 72 if (n->map & (MAPBIT << (bit - n->startbit))) in ebitmap_node_get_bit() 77 #define ebitmap_for_each_bit(e, n, bit) \ 78 for (bit = ebitmap_start(e, &n); bit < ebitmap_lengt [all...] |
| /third_party/libevdev/libevdev/ |
| H A D | libevdev-util.h | 43 bit_is_set(const unsigned long *array, int bit) in bit_is_set() argument 45 return !!(array[bit / LONG_BITS] & (1LL << (bit % LONG_BITS))); in bit_is_set() 49 set_bit(unsigned long *array, int bit) in set_bit() argument 51 array[bit / LONG_BITS] |= (1LL << (bit % LONG_BITS)); in set_bit() 55 clear_bit(unsigned long *array, int bit) in clear_bit() argument 57 array[bit / LONG_BITS] &= ~(1LL << (bit % LONG_BITS)); in clear_bit() 61 set_bit_state(unsigned long *array, int bit, in argument [all...] |
| /third_party/skia/third_party/externals/angle2/src/common/ |
| H A D | bitset_utils_unittest.cpp | 41 // Set every bit to 1. in TYPED_TEST() 52 // Reset every other bit to 0. in TYPED_TEST() 74 // Make sure the bit pattern is what we expect at this point. in TYPED_TEST() 200 for (size_t bit : mStateBits) in TYPED_TEST() 202 EXPECT_EQ(1u, originalValues.count(bit)); in TYPED_TEST() 203 EXPECT_EQ(0u, readValues.count(bit)); in TYPED_TEST() 204 readValues.insert(bit); in TYPED_TEST() 224 for (size_t bit : mStateBits) in TYPED_TEST() 226 EXPECT_EQ(fetchOrder[i], bit); in TYPED_TEST() 239 for (size_t bit in TYPED_TEST() [all...] |
| /third_party/ffmpeg/libswscale/arm/ |
| H A D | hscale.S | 41 vld1.16 {q2}, [r4]! @ load 8x16-bit filter values 42 vld1.16 {q3}, [r10]! @ load 8x16-bit filter values 43 vmovl.u8 q0, d0 @ unpack src values to 16-bit 44 vmovl.u8 q1, d2 @ unpack src values to 16-bit 49 vpadd.s32 d16, d16, d17 @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 1) 50 vpadd.s32 d17, d18, d19 @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (part 2) 51 vpadd.s32 d20, d20, d21 @ horizontal pair adding of the 8x32-bit multiplied values into 4x32-bit (par [all...] |
| /third_party/mesa3d/src/gallium/auxiliary/util/ |
| H A D | u_bitmask.c | 169 unsigned bit; in util_bitmask_add() local 176 bit = bm->filled % UTIL_BITMASK_BITS_PER_WORD; in util_bitmask_add() 177 mask = 1 << bit; in util_bitmask_add() 179 while (bit < UTIL_BITMASK_BITS_PER_WORD) { in util_bitmask_add() 183 ++bit; in util_bitmask_add() 187 bit = 0; in util_bitmask_add() 208 unsigned bit; in util_bitmask_set() local 218 bit = index % UTIL_BITMASK_BITS_PER_WORD; in util_bitmask_set() 219 mask = 1 << bit; in util_bitmask_set() 234 unsigned bit; in util_bitmask_clear() local 257 const unsigned bit = index % UTIL_BITMASK_BITS_PER_WORD; util_bitmask_get() local 284 unsigned bit = index % UTIL_BITMASK_BITS_PER_WORD; util_bitmask_get_next_index() local [all...] |
| /third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
| H A D | vktApiBufferMemoryRequirementsTestsUtils.hpp | 74 for (const auto& bit : *this) in operator Flag() 75 flag |= std::get<0>(bit); in operator Flag() 81 bool contains(const Bit& bit) const { in contains() 83 if (bit == std::get<0>(myBit)) return true; in contains() 96 bool contains(const value_type& bit) const { in contains() 97 return contains(std::get<0>(bit)); in contains() 99 const_iterator find(const Bit& bit) const { in find() 102 if (bit == std::get<0>(*i)) in find() 106 const_iterator find(const value_type& bit) const { in find() 107 return find(std::get<0>(bit)); in find() [all...] |
| /third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/ |
| H A D | vktApiBufferMemoryRequirementsTestsUtils.hpp | 74 for (const auto& bit : *this) in operator Flag() 75 flag |= std::get<0>(bit); in operator Flag() 81 bool contains(const Bit& bit) const { in contains() 83 if (bit == std::get<0>(myBit)) return true; in contains() 96 bool contains(const value_type& bit) const { in contains() 97 return contains(std::get<0>(bit)); in contains() 99 const_iterator find(const Bit& bit) const { in find() 102 if (bit == std::get<0>(*i)) in find() 106 const_iterator find(const value_type& bit) const { in find() 107 return find(std::get<0>(bit)); in find() [all...] |
| /third_party/ltp/tools/sparse/sparse-src/ |
| H A D | bitmap.h | 13 unsigned long bit = nr & (BITS_IN_LONG-1); in test_bit() local 14 return (bitmap[offset] >> bit) & 1; in test_bit() 20 unsigned long bit = nr & (BITS_IN_LONG-1); in set_bit() local 21 bitmap[offset] |= 1UL << bit; in set_bit() 27 unsigned long bit = nr & (BITS_IN_LONG-1); in clear_bit() local 28 bitmap[offset] &= ~(1UL << bit); in clear_bit() 34 unsigned long bit = nr & (BITS_IN_LONG-1); in test_and_set_bit() local 36 unsigned long mask = 1UL << bit; in test_and_set_bit() 44 unsigned long bit = nr & (BITS_IN_LONG-1); in test_and_clear_bit() local 46 unsigned long mask = 1UL << bit; in test_and_clear_bit() [all...] |