Home
last modified time | relevance | path

Searched refs:bit_mask (Results 1 – 9 of 9) sorted by relevance

/third_party/ffmpeg/libavutil/
Dfixed_dsp.h178 int retval, bit_mask, guess, square, i; in fixed_sqrt() local
188 bit_mask = (1 << (shift2 - 1)); in fixed_sqrt()
191 guess = retval + bit_mask; in fixed_sqrt()
193 square = (int)((accu + bit_mask) >> bits); in fixed_sqrt()
195 retval += bit_mask; in fixed_sqrt()
196 bit_mask >>= 1; in fixed_sqrt()
/third_party/e2fsprogs/ext2ed/
Dinodebitmap_com.c137 unsigned char bit_mask=1; in allocate_inode() local
142 bit_mask*=2; in allocate_inode()
143 type_data.u.buffer [byte_offset] |= bit_mask; in allocate_inode()
149 unsigned char bit_mask=1; in deallocate_inode() local
154 bit_mask*=2; in deallocate_inode()
155 bit_mask^=0xff; in deallocate_inode()
157 type_data.u.buffer [byte_offset] &= bit_mask; in deallocate_inode()
Dblockbitmap_com.c177 unsigned char bit_mask=1; in allocate_block() local
183 bit_mask*=2; /* Generate the or mask - 1 at the right place */ in allocate_block()
184 type_data.u.buffer [byte_offset] |= bit_mask; /* And apply it */ in allocate_block()
192 unsigned char bit_mask=1; in deallocate_block() local
197 bit_mask*=2; in deallocate_block()
198 bit_mask^=0xff; in deallocate_block()
200 type_data.u.buffer [byte_offset] &= bit_mask; in deallocate_block()
/third_party/libsnd/tests/
Ddwvw_test.c62 int k, bit_mask ; in dwvw_test() local
67 bit_mask = arith_shift_left (-1, 32 - bit_width) ; in dwvw_test()
78 write_buf [k] = bit_mask & lrint (value) ; in dwvw_test()
82 write_buf [k] = bit_mask & (arith_shift_left (rand (), 11) ^ (rand () >> 11)) ; in dwvw_test()
/third_party/boost/boost/dynamic_bitset/
Ddynamic_bitset.hpp384 static Block bit_mask(size_type pos) BOOST_NOEXCEPT { return Block(1) << bit_index(pos); } in bit_mask() function in boost::dynamic_bitset
385 static Block bit_mask(size_type first, size_type last) BOOST_NOEXCEPT in bit_mask() function in boost::dynamic_bitset
397 return block | bit_mask(first, last); in set_block_bits()
399 return block & static_cast<Block>(~bit_mask(first, last)); in set_block_bits()
424 return block ^ bit_mask(first, last); in flip_block_partial()
1038 m_bits[block_index(pos)] |= bit_mask(pos); in set()
1069 m_bits[block_index(pos)] |= bit_mask(pos); in reset()
1070 m_bits[block_index(pos)] ^= bit_mask(pos); in reset()
1072 m_bits[block_index(pos)] &= ~bit_mask(pos); in reset()
1097 m_bits[block_index(pos)] ^= bit_mask(pos); in flip()
[all …]
/third_party/skia/third_party/externals/libwebp/src/dsp/
Dlossless.c351 const uint32_t bit_mask = (1 << bits_per_pixel) - 1; \
361 *dst++ = GET_VALUE(color_map[packed_pixels & bit_mask]); \
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/
Dlossless.c346 const uint32_t bit_mask = (1 << bits_per_pixel) - 1; \
356 *dst++ = GET_VALUE(color_map[packed_pixels & bit_mask]); \
/third_party/mesa3d/src/compiler/nir/
Dnir_serialize.c1227 unsigned bit_mask = u_bit_consecutive(0, bit_size); in read_intrinsic() local
1231 bit_mask; in read_intrinsic()
/third_party/mesa3d/src/intel/compiler/
Dbrw_fs.cpp1080 bit_mask(unsigned n) in bit_mask() function
1082 return (n >= CHAR_BIT * sizeof(bit_mask(n)) ? ~0u : (1u << n) - 1); in bit_mask()
1091 return bit_mask(end) & ~bit_mask(start); in flag_mask()