| /external/toybox/lib/ |
| args.c | 99 unsigned dex[3]; // which bits to disable/enable/exclude in toys.optflags 340 unsigned bits = 0; local 359 if (bits&(1<<i)) opt->dex[idx] |= bits&~(1<<i); 364 bits |= 1<<i;
|
| /external/toybox/toys/pending/ |
| compress.c | 121 // Huffman codes: base offset and extra bits tables (length and distance) 156 // Advance bitpos without the overhead of recording bits 157 void bitbuf_skip(struct bitbuf *bb, int bits) 159 int pos = bb->bitpos + bits, len = bb->len << 3; 182 // Fetch the next X bits from the bitbuf, little endian 183 unsigned bitbuf_get(struct bitbuf *bb, int bits) 187 while (bits) { 193 // grab bits from next byte 196 if (blen > bits) blen = bits; 340 "\\x04\\x0c\\x03\\x0d\\x02\\x0e\\x01\\x0f", *bits; local [all...] |
| /external/tremolo/Tremolo/ |
| codebook.c | 217 really exist; there's only one possible 'codeword' or zero bits, 366 int bits=_ilog(b->entries); local 367 int vals=b->entries>>((bits-1)*(b->dim-1)/b->dim); 656 /* chase the tree with the bits we got */
|
| /external/vboot_reference/host/lib21/ |
| host_key.c | 547 int bits = BN_num_bits(rsa->n); local 549 switch (bits) {
|
| /external/webp/src/enc/ |
| cost.c | 337 int bits = VP8LevelCodes[level - 1][1]; local 342 cost += VP8BitCost(bits & 1, probas[i]); 344 bits >>= 1; 671 // record bit count (lower 16 bits) and increment total count (upper 16 bits). 719 const int bits = VP8LevelCodes[v - 1][1]; local 724 if (pattern & 1) Record(!!(bits & mask), s + 3 + i);
|
| syntax.c | 118 uint32_t bits; local 125 bits = 0 // keyframe (1b) 129 vp8_frm_hdr[0] = (bits >> 0) & 0xff; 130 vp8_frm_hdr[1] = (bits >> 8) & 0xff; 131 vp8_frm_hdr[2] = (bits >> 16) & 0xff; 227 // we don't use ref_lf_delta => emit four 0 bits 272 if (!VP8BitWriterInit(bw, mb_size * 7 / 8)) { // ~7 bits per macroblock
|
| /external/webp/src/utils/ |
| bit_writer.c | 57 const int32_t bits = bw->value_ >> s; local 59 bw->value_ -= bits << s; 61 if ((bits & 0xff) != 0xff) { 66 if (bits & 0x100) { // overflow -> propagate carry over pending 0xff's 70 const int value = (bits & 0x100) ? 0x00 : 0xff; 73 bw->buf_[pos++] = bits; 116 if (bw->range_ < 127) { // emit 'shift' bits out and renormalize 252 void VP8LWriteBits(VP8LBitWriter* const bw, int n_bits, uint32_t bits) { 265 lbits |= (vp8l_atype_t)bits << used; 268 bits >>= shift [all...] |
| /external/zlib/src/contrib/blast/ |
| blast.c | 44 int bitcnt; /* number of bits in bit buffer */ 46 /* input limit error return state for bits() and decode() */ 58 * Return need bits from the input stream. This always leaves less than 59 * eight bits in the buffer. bits() works properly for need == 0. 63 * - Bits are stored in bytes from the least significant bit to the most 64 * significant bit. Therefore bits are dropped from the bottom of the bit 68 local int bits(struct state *s, int need) function 72 /* load at least need bits into val */ 79 val |= (int)(*(s->in)++) << s->bitcnt; /* load eight bits */ [all...] |
| /external/zlib/src/contrib/infback9/ |
| infback9.c | 56 unsigned sym, bits, low, size; local 69 bits = 9; 70 inflate_table9(LENS, state.lens, 288, &(next), &(bits), state.work); 76 bits = 5; 77 inflate_table9(DISTS, state.lens, 32, &(next), &(bits), state.work); 94 printf("{%u,%u,%d}", lenfix[low].op, lenfix[low].bits, 105 printf("{%u,%u,%d}", distfix[low].op, distfix[low].bits, 120 bits = 0; \ 143 hold += (unsigned long)(*next++) << bits; \ 144 bits += 8; 234 unsigned bits; \/* bits in bit buffer *\/ local [all...] |
| /external/zlib/src/contrib/puff/ |
| puff.c | 19 * assumes that long's are at least 32 bits. puff.c uses the short data type, 20 * assumed to be 16 bits, for arrays in order to to conserve memory. The code 48 * are 16 bits 91 #define MAXBITS 15 /* maximum bits in a code */ 109 int bitcnt; /* number of bits in bit buffer */ 111 /* input limit error return state for bits() and decode() */ 116 * Return need bits from the input stream. This always leaves less than 117 * eight bits in the buffer. bits() works properly for need == 0. 121 * - Bits are stored in bytes from the least significant bit to the mos 126 local int bits(struct state *s, int need) function [all...] |
| /external/zlib/src/examples/ |
| gun.c | 117 the gzip trailer is stored modulo 2^32, so it's ok if a long is 32 bits and 168 /* throw out what's left in the current bits byte buffer (this is a vestigial 205 int left; /* bits left in rem */ 206 unsigned rem; /* unused bits from input */ 207 int bits; /* current bits per code */ local 209 unsigned mask; /* mask for current bits codes */ 210 int max; /* maximum bits per code for this stream */ 235 strm->msg = (char *)"lzw bits out of range"; 243 bits = 9 [all...] |
| /external/zlib/src/ |
| inflate.c | 30 * - Add comments on state->bits assertion in inffast.c 121 state->bits = 0; 166 /* set number of window bits, free window if different */ 230 int ZEXPORT inflatePrime(strm, bits, value) 232 int bits; 239 if (bits < 0) { 241 state->bits = 0; 244 if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR 271 unsigned sym, bits; local 614 unsigned bits; \/* bits in bit buffer *\/ local [all...] |
| /external/zlib/src/test/ |
| infcover.c | 277 inflate() on each call, or zero to feed it all, win is the window bits 620 unsigned bits; local 626 for (bits = 0; bits < 15; bits++) 627 lens[bits] = (unsigned short)(bits + 1); 630 bits = 15; 631 ret = inflate_table(DISTS, lens, 16, &next, &bits, work); 634 bits = 1 [all...] |
| /frameworks/base/core/java/com/android/internal/util/ |
| CallbackRegistry.java | 59 * array of bits are allocated for the callbacks. 129 * This part captures the callbacks beyond Long.SIZE that have no bits allocated for 159 * Notify callbacks that have mRemainderRemoved bits set for remainderIndex. If 174 final long bits = mRemainderRemoved[remainderIndex]; local 178 notifyCallbacksLocked(sender, arg, arg2, startIndex, endIndex, bits); 183 * Notify callbacks from startIndex to endIndex, using bits as the bit status 184 * for whether they have been removed or not. bits should be from mRemainderRemoved or 185 * mFirst64Removed. bits set to 0 indicates that all callbacks from startIndex to 196 * @param bits A bit field indicating which callbacks have been removed and shouldn't 200 final int endIndex, final long bits) { 243 final long bits = mRemainderRemoved[maskIndex]; local [all...] |
| /frameworks/base/core/jni/ |
| android_view_GraphicBuffer.cpp | 171 void* bits = NULL; local 172 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits); 175 if (!bits) { 189 bitmap.setPixels(bits);
|
| /frameworks/base/tests/touchlag/ |
| touchlag.cpp | 56 uint32_t* bits = buf->pixels + y * buf->s; local 58 bits[x] = pixel; 62 bits[x+W] = pixel; 78 uint32_t* bits = buf->pixels + y * buf->s + x; local 79 android_memset32(bits, pixel, W*4); 97 uint32_t* bits = buf->pixels + y * buf->s + x; local 99 android_memset32(bits, pixel, W*4); 100 bits += buf->s; 227 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); local 232 framebuffer.addr = bits; [all...] |
| /frameworks/data-binding/baseLibrary/src/main/java/android/databinding/ |
| CallbackRegistry.java | 61 * array of bits are allocated for the callbacks. 127 * This part captures the callbacks beyond Long.SIZE that have no bits allocated for 156 * Notify callbacks that have mRemainderRemoved bits set for remainderIndex. If 171 final long bits = mRemainderRemoved[remainderIndex]; local 175 notifyCallbacks(sender, arg, arg2, startIndex, endIndex, bits); 180 * Notify callbacks from startIndex to endIndex, using bits as the bit status 181 * for whether they have been removed or not. bits should be from mRemainderRemoved or 182 * mFirst64Removed. bits set to 0 indicates that all callbacks from startIndex to 193 * @param bits A bit field indicating which callbacks have been removed and shouldn't 197 final int endIndex, final long bits) { 240 final long bits = mRemainderRemoved[maskIndex]; local [all...] |
| /frameworks/minikin/include/minikin/ |
| FontFamily.h | 52 explicit FontLanguage(uint32_t bits) : mBits(bits) { } 54 uint32_t bits() const { return mBits; } function in class:android::FontLanguage 69 bits = (weight & kWeightMask) | (italic ? kItalicMask : 0); 72 bits = (weight & kWeightMask) | (italic ? kItalicMask : 0) 73 | (variant << kVariantShift) | (lang.bits() << kLangShift); 75 int getWeight() const { return bits & kWeightMask; } 76 bool getItalic() const { return (bits & kItalicMask) != 0; } 77 int getVariant() const { return (bits >> kVariantShift) & kVariantMask; } 78 FontLanguage getLanguage() const { return FontLanguage(bits >> kLangShift); 89 uint32_t bits; member in class:android::FontStyle [all...] |
| /frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
| IccUtils.java | 158 * 8 bit number which defines bits 15 to 8 of a 16 bit 159 * base pointer, where bit 16 is set to zero and bits 7 to 1 160 * are also set to zero. These sixteen bits constitute a 164 * If bit 8 of the octet is set to zero, the remaining 7 bits 167 * remaining seven bits are an offset value added to the 401 // reassign data and index for every byte (8 bits). 436 int bits = data[valueIndex++] & 0xFF; local 447 if (0 == (8 % bits)) { 449 (width * height), colorIndexArray, bits); 452 (width * height), colorIndexArray, bits); [all...] |
| /frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
| IccUtils.java | 158 * 8 bit number which defines bits 15 to 8 of a 16 bit 159 * base pointer, where bit 16 is set to zero and bits 7 to 1 160 * are also set to zero. These sixteen bits constitute a 164 * If bit 8 of the octet is set to zero, the remaining 7 bits 167 * remaining seven bits are an offset value added to the 401 // reassign data and index for every byte (8 bits). 436 int bits = data[valueIndex++] & 0xFF; local 447 if (0 == (8 % bits)) { 449 (width * height), colorIndexArray, bits); 452 (width * height), colorIndexArray, bits); [all...] |
| /frameworks/rs/ |
| rsElement.cpp | 200 size_t bits = 0; local 203 mFields[ct].offsetBits = bits; 205 bits += mFields[ct].e->getSizeBits() * mFields[ct].arraySize;
|
| /hardware/intel/common/libva/test/decode/ |
| tinyjpeg-internal.h | 69 /*bits and values*/ 70 unsigned char bits[16]; member in struct:huffman_table
|
| /hardware/intel/common/libva/va/ |
| va_dec_vp8.h | 59 * it is the number of remaining bits in 'value' for decoding, range [0, 7]. 116 } bits; member in union:_VAPictureParameterBufferVP8::__anon23959 196 * exclude current byte for the remaining bits in bool_coder_ctx.
|
| va_dec_vp9.h | 151 } bits; member in union:_VADecPictureParameterBufferVP9::__anon23961
|
| va_enc_vp8.h | 134 } bits; member in union:_VAEncPictureParameterBufferVP8::__anon23993 236 } bits; member in union:_VAEncPictureParameterBufferVP8::__anon23995
|