/bionic/libm/upstream-freebsd/lib/msun/src/ |
s_nan.c | 56 int bitpos; /* index into words (in bits) */ local 70 for (bitpos = 0; bitpos < 32 * num_words; bitpos += 4) { 72 for (bitpos = 32 * num_words - 4; bitpos >= 0; bitpos -= 4) { 76 words[bitpos / 32] |= digittoint(s[si]) << (bitpos % 32);
|
/external/e2fsprogs/lib/ext2fs/ |
blkmap64_ba.c | 331 unsigned long bitpos = start - bitmap->start; local 338 while ((bitpos & 0x7) != 0 && count > 0) { 339 if (!ext2fs_test_bit64(bitpos, bp->bitarray)) { 340 *out = bitpos + bitmap->start; 343 bitpos++; 350 pos = ((unsigned char *)bp->bitarray) + (bitpos >> 3); 359 bitpos += 8; 372 bitpos += 64 * (max_loop_count - i); 385 bitpos += 8 * (max_loop_count - i); 390 if (!ext2fs_test_bit64(bitpos, bp->bitarray)) 405 unsigned long bitpos = start - bitmap->start; local [all...] |
/external/libhevc/encoder/ |
ihevce_entropy_structs.h | 70 * @brief extracts the "bitpos" bit of a input variable x 73 #define EXTRACT_BIT(val, x, bitpos) \ 75 val = ((((x) >> (bitpos)) & 0x1)); \ 80 * @brief inserts bit y in "bitpos' position of input varaible x 83 #define INSERT_BIT(x, bitpos, y) ((x) |= ((y) << (bitpos))) 87 * @brief sets n bits starting from "bitpos' position of input varaible x 90 #define SET_BITS(x, bitpos, n) ((x) |= (((1 << (n)) - 1) << (bitpos))) 94 * @brief clears n bits starting from "bitpos' position of input varaible [all...] |
ihevce_common_utils.h | 116 #define SET_BIT(x, bitpos) ((x) | (1 << (bitpos))) 118 #define CLEAR_BIT(x, bitpos) ((x) & (~(1 << (bitpos))))
|
/external/pdfium/core/fxcrt/ |
fx_extension_unittest.cpp | 10 uint32_t ReferenceGetBits32(const uint8_t* pData, int bitpos, int nbits) { 13 if (pData[(bitpos + i) / 8] & (1 << (7 - (bitpos + i) % 8))) 109 for (int bitpos = 0; bitpos < (int)sizeof(data) * 8 - nbits; ++bitpos) { 110 EXPECT_EQ(ReferenceGetBits32(data, bitpos, nbits), 111 GetBits32(data, bitpos, nbits));
|
fx_extension.cpp | 125 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits) { 127 const uint8_t* dataPtr = &pData[bitpos / 8]; 131 int bitCount = bitpos & 0x07;
|
fx_extension.h | 89 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits);
|
/external/toybox/lib/ |
deflate.c | 35 int fd, bitpos, len, max; member in struct:bitbuf 50 // Advance bitpos without the overhead of recording bits 54 int pos = bb->bitpos + bits, len = bb->len << 3; 61 bb->bitpos = pos; 67 int bufpos = bb->bitpos>>3; 74 return (bb->buf[bufpos]>>(bb->bitpos++&7))&1; 83 int click = bb->bitpos >> 3, blow, blen; 89 blow = bb->bitpos & 7; 95 bb->bitpos += blen; 103 if (!bb->bitpos) return [all...] |
password.c | 31 int bitpos = i*6, bits = bitpos/8; local 33 bits = ((libbuf[i]+(libbuf[i+1]<<8)) >> (bitpos&7)) & 0x3f;
|
/external/pdfium/core/fxcodec/codec/ |
fx_codec_fax.cpp | 131 inline bool NextBit(const uint8_t* src_buf, int* bitpos) { 132 int pos = (*bitpos)++; 253 int* bitpos, 262 if (*bitpos >= bitsize) 266 if (src_buf[*bitpos / 8] & (1 << (7 - *bitpos % 8))) 269 ++(*bitpos); 280 int* bitpos, 287 if (*bitpos >= bitsize) 297 if (!NextBit(src_buf, bitpos)) { 572 int bitpos = *pbitpos; local [all...] |
/external/pdfium/core/fpdfapi/page/ |
cpdf_sampledfunc.cpp | 117 FX_SAFE_INT32 bitpos = pos; 118 bitpos *= bits_to_output.ValueOrDie(); 119 if (!bitpos.IsValid()) 122 FX_SAFE_INT32 range_check = bitpos; 131 for (uint32_t j = 0; j < m_nOutputs; j++, bitpos += m_nBitsPerSample) { 133 GetBits32(pSampleData, bitpos.ValueOrDie(), m_nBitsPerSample);
|
/external/u-boot/drivers/rtc/ |
ds1306.c | 218 unsigned char bitpos; /* bit position to receive */ local 222 bitpos = 0x80; 228 if (n & bitpos) 237 bitpos >>= 1; /* Shift for next bit position */ 249 unsigned char bitpos; /* bit position to receive */ local 253 bitpos = 0x80; 260 spi_byte |= bitpos; /* Set data accordingly */ 263 bitpos >>= 1; /* Shift for next bit position */
|
/external/grpc-grpc/third_party/nanopb/ |
pb_decode.c | 188 uint_fast8_t bitpos = 7; local 193 if (bitpos >= 32) 199 result |= (uint32_t)(byte & 0x7F) << bitpos; 200 bitpos = (uint_fast8_t)(bitpos + 7); 211 uint_fast8_t bitpos = 0; local 216 if (bitpos >= 64) 222 result |= (uint64_t)(byte & 0x7F) << bitpos; 223 bitpos = (uint_fast8_t)(bitpos + 7) [all...] |
/external/nanopb-c/ |
pb_decode.c | 208 uint_fast8_t bitpos = 7; local 216 if (bitpos >= 32) 219 uint8_t sign_extension = (bitpos < 63) ? 0xFF : 0x01; 228 result |= (uint32_t)(byte & 0x7F) << bitpos; 230 bitpos = (uint_fast8_t)(bitpos + 7); 233 if (bitpos == 35 && (byte & 0x70) != 0) 235 /* The last byte was at bitpos=28, so only bottom 4 bits fit. */ 253 uint_fast8_t bitpos = 0; local 258 if (bitpos >= 64 [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
AMPEG4AudioAssembler.cpp | 231 size_t bitpos = totalNumBits & 7; local 241 if (bitpos & 7) { 242 bs.skipBits(8 - (bitpos & 7));
|
/external/pdfium/core/fpdfapi/render/ |
cpdf_dibsource.cpp | 38 unsigned int GetBits8(const uint8_t* pData, uint64_t bitpos, size_t nbits) { 40 ASSERT((bitpos & (nbits - 1)) == 0); 41 unsigned int byte = pData[bitpos / 8]; 46 return byte * 256 + pData[bitpos / 8 + 1]; 48 return (byte >> (8 - nbits - (bitpos % 8))) & ((1 << nbits) - 1); [all...] |
/external/pdfium/third_party/libopenjpeg20/ |
t1.c | 69 static OPJ_INT16 opj_t1_getnmsedec_sig(OPJ_UINT32 x, OPJ_UINT32 bitpos); 70 static OPJ_INT16 opj_t1_getnmsedec_ref(OPJ_UINT32 x, OPJ_UINT32 bitpos); 275 static OPJ_INT16 opj_t1_getnmsedec_sig(OPJ_UINT32 x, OPJ_UINT32 bitpos) 277 if (bitpos > 0) { 278 return lut_nmsedec_sig[(x >> (bitpos)) & ((1 << T1_NMSEDEC_BITS) - 1)]; 284 static OPJ_INT16 opj_t1_getnmsedec_ref(OPJ_UINT32 x, OPJ_UINT32 bitpos) 286 if (bitpos > 0) { 287 return lut_nmsedec_ref[(x >> (bitpos)) & ((1 << T1_NMSEDEC_BITS) - 1)]; [all...] |
/external/pdfium/core/fxcodec/jbig2/ |
JBig2_GrdProc.cpp | 718 int bitpos, i; local 725 bitpos = static_cast<int>(pStream->getBitPos()); 726 FaxG4Decode(pStream->getBuf(), pStream->getLength(), &bitpos, image->data(), 728 pStream->setBitPos(bitpos); [all...] |
/external/brotli/c/enc/ |
compress_fragment.c | 366 const size_t bitpos = new_storage_ix & 7; local 367 const size_t mask = (1u << bitpos) - 1;
|
compress_fragment_two_pass.c | 542 const size_t bitpos = new_storage_ix & 7; local 543 const size_t mask = (1u << bitpos) - 1;
|
/external/protobuf/php/ext/google/protobuf/ |
upb.c | 7835 int bitpos; local [all...] |
/external/protobuf/ruby/ext/google/protobuf_c/ |
upb.c | 8547 int bitpos; local [all...] |