Searched defs:bitpos (Results 1 - 19 of 19) sorted by last modified time

/external/valgrind/memcheck/tests/vbit-test/
H A Dbinary.c442 unsigned num_input_bits, bitpos; local
453 for (bitpos = 0; bitpos < num_input_bits; ++bitpos) {
454 opnds[0].vbits = onehot_vbits(bitpos, bitsof_irtype(opnds[0].type));
467 for (bitpos = 0; bitpos < num_input_bits; ++bitpos) {
468 opnds[1].vbits = onehot_vbits(bitpos, bitsof_irtype(opnds[1].type));
485 for (bitpos
516 unsigned num_input_bits, bitpos; local
598 unsigned num_input_bits, i, bitpos; local
[all...]
H A Dqernary.c66 unsigned num_input_bits, i, bitpos; local
84 for (bitpos = 0; bitpos < num_input_bits; ++bitpos) {
85 opnds[i].vbits = onehot_vbits(bitpos, bitsof_irtype(opnds[i].type));
H A Dternary.c84 unsigned num_input_bits, i, bitpos; local
98 for (bitpos = 0; bitpos < num_input_bits; ++bitpos) {
99 opnds[i].vbits = onehot_vbits(bitpos, bitsof_irtype(opnds[i].type));
H A Dunary.c108 unsigned num_input_bits, bitpos; local
116 for (bitpos = 0; bitpos < num_input_bits; ++bitpos) {
117 data->opnds[0].vbits = onehot_vbits(bitpos, num_input_bits);
/external/valgrind/none/tests/s390x/
H A Dflogr.c17 flogr1(unsigned long input, unsigned long *bitpos, unsigned long *modval, argument
25 "stg 2, %[bitpos]\n\t"
27 : [bitpos]"=m"(*bitpos), [modval]"=m"(*modval),
34 printf("value = %lx, bitpos = %lu, modval = %lx, cc = %d\n",
35 value, *bitpos, *modval, *cc);
41 flogr2(unsigned long input, unsigned long *bitpos, unsigned long *modval, argument
49 "stg 2, %[bitpos]\n\t"
51 : [bitpos]"=m"(*bitpos), [modva
65 flogr3(unsigned long input, unsigned long *bitpos, unsigned long *modval, unsigned int *cc) argument
91 unsigned long bitpos, modval, value; local
[all...]
/external/toybox/toys/pending/
H A Dcompress.c73 int fd, bitpos, len, max; member in struct:bitbuf
88 // Advance bitpos without the overhead of recording bits
91 int pos = bb->bitpos + bits, len = bb->len << 3;
98 bb->bitpos = pos;
104 int bufpos = bb->bitpos>>3;
111 return (bb->buf[bufpos]>>(bb->bitpos++&7))&1;
120 int click = bb->bitpos >> 3, blow, blen;
126 blow = bb->bitpos & 7;
132 bb->bitpos += blen;
140 if (!bb->bitpos) retur
[all...]
/external/toybox/lib/
H A Dpassword.c33 int bitpos = i*6, bits = bitpos/8; local
35 bits = ((libbuf[i]+(libbuf[i+1]<<8)) >> (bitpos&7)) & 0x3f;
/external/protobuf/php/ext/google/protobuf/
H A Dupb.c7835 int bitpos; local
7837 for(bitpos = 0; bitpos < 70 && (byte & 0x80); bitpos += 7) {
7840 *u64 |= (uint64_t)(byte & 0x7F) << bitpos;
7842 if(bitpos == 70 && (byte & 0x80)) {
/external/protobuf/ruby/ext/google/protobuf_c/
H A Dupb.c8547 int bitpos; local
8549 for(bitpos = 0; bitpos < 70 && (byte & 0x80); bitpos += 7) {
8551 *u64 |= (uint64_t)(byte & 0x7F) << bitpos;
8553 if(bitpos == 70 && (byte & 0x80)) {
/external/pdfium/core/fpdfapi/render/
H A Dcpdf_dibsource.cpp29 unsigned int GetBits8(const uint8_t* pData, uint64_t bitpos, size_t nbits) { argument
31 ASSERT((bitpos & (nbits - 1)) == 0);
32 unsigned int byte = pData[bitpos / 8];
37 return byte * 256 + pData[bitpos / 8 + 1];
39 return (byte >> (8 - nbits - (bitpos % 8))) & ((1 << nbits) - 1);
/external/pdfium/core/fxcodec/codec/
H A Dfx_codec_fax.cpp128 inline bool NextBit(const uint8_t* src_buf, int* bitpos) { argument
129 int pos = (*bitpos)++;
250 int* bitpos,
259 if (*bitpos >= bitsize)
263 if (src_buf[*bitpos / 8] & (1 << (7 - *bitpos % 8)))
266 ++(*bitpos);
278 int* bitpos,
285 if (*bitpos >= bitsize)
295 if (!NextBit(src_buf, bitpos)) {
248 FaxGetRun(const uint8_t* ins_array, const uint8_t* src_buf, int* bitpos, int bitsize) argument
276 FaxG4GetRow(const uint8_t* src_buf, int bitsize, int* bitpos, uint8_t* dest_buf, const std::vector<uint8_t>& ref_buf, int columns) argument
400 FaxSkipEOL(const uint8_t* src_buf, int bitsize, int* bitpos) argument
412 FaxGet1DLine(const uint8_t* src_buf, int bitsize, int* bitpos, std::vector<uint8_t>* dest_buf, int columns) argument
573 int bitpos = *pbitpos; local
[all...]
/external/pdfium/core/fxcodec/jbig2/
H A DJBig2_GrdProc.cpp617 int bitpos, i; local
625 bitpos = (int)pStream->getBitPos();
626 FaxG4Decode(pStream->getBuf(), pStream->getLength(), &bitpos,
628 pStream->setBitPos(bitpos);
/external/pdfium/core/fxcrt/
H A Dfx_basic_util.cpp235 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits) { argument
237 const uint8_t* dataPtr = &pData[bitpos / 8];
241 int bitCount = bitpos & 0x07;
H A Dfx_basic_util_unittest.cpp13 uint32_t ReferenceGetBits32(const uint8_t* pData, int bitpos, int nbits) { argument
16 if (pData[(bitpos + i) / 8] & (1 << (7 - (bitpos + i) % 8)))
27 for (int bitpos = 0; bitpos < (int)sizeof(data) * 8 - nbits; ++bitpos) {
28 EXPECT_EQ(ReferenceGetBits32(data, bitpos, nbits),
29 GetBits32(data, bitpos, nbits));
/external/pdfium/third_party/libopenjpeg20/
H A Dt1.c52 static OPJ_INT16 opj_t1_getnmsedec_sig(OPJ_UINT32 x, OPJ_UINT32 bitpos);
53 static OPJ_INT16 opj_t1_getnmsedec_ref(OPJ_UINT32 x, OPJ_UINT32 bitpos);
326 static OPJ_INT16 opj_t1_getnmsedec_sig(OPJ_UINT32 x, OPJ_UINT32 bitpos) { argument
327 if (bitpos > 0) {
328 return lut_nmsedec_sig[(x >> (bitpos)) & ((1 << T1_NMSEDEC_BITS) - 1)];
334 static OPJ_INT16 opj_t1_getnmsedec_ref(OPJ_UINT32 x, OPJ_UINT32 bitpos) { argument
335 if (bitpos > 0) {
336 return lut_nmsedec_ref[(x >> (bitpos)) & ((1 << T1_NMSEDEC_BITS) - 1)];
/external/nanopb-c/
H A Dpb_decode.c184 uint8_t bitpos = 7; local
189 if (bitpos >= 32)
195 result |= (uint32_t)(byte & 0x7F) << bitpos;
196 bitpos = (uint8_t)(bitpos + 7);
207 uint8_t bitpos = 0; local
212 if (bitpos >= 64)
218 result |= (uint64_t)(byte & 0x7F) << bitpos;
219 bitpos = (uint8_t)(bitpos
[all...]
/external/e2fsprogs/lib/ext2fs/
H A Dblkmap64_ba.c331 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, b
405 unsigned long bitpos = start - bitmap->start; local
[all...]
/external/brotli/enc/
H A Dcompress_fragment.c367 const size_t bitpos = new_storage_ix & 7; local
368 const size_t mask = (1u << bitpos) - 1;
H A Dcompress_fragment_two_pass.c511 const size_t bitpos = new_storage_ix & 7; local
512 const size_t mask = (1u << bitpos) - 1;

Completed in 562 milliseconds