/external/skia/include/core/ |
H A D | SkFloatingPoint.h | 72 int32_t bits = SkFloat2Bits(x); local 73 return (bits << 1) == (0xFF << 24);
|
/external/skia/src/effects/ |
H A D | SkLayerDrawLooper.cpp | 85 BitFlags bits = info.fPaintBits; local 88 if (0 == bits) { 91 if (kEntirePaint_Bits == bits) { 102 if (bits & kStyle_Bit) { 110 if (bits & kTextSkewX_Bit) { 114 if (bits & kPathEffect_Bit) { 117 if (bits & kMaskFilter_Bit) { 120 if (bits & kShader_Bit) { 123 if (bits & kColorFilter_Bit) { 126 if (bits [all...] |
/external/skia/src/images/ |
H A D | SkImageDecoder_wbmp.cpp | 72 static void expand_bits_to_bytes(uint8_t dst[], const uint8_t src[], int bits) argument 74 int bytes = bits >> 3; 89 bits &= 7; 90 if (bits > 0) { 95 } while (--bits != 0);
|
/external/skia/tests/ |
H A D | ScalarTest.cpp | 17 uint32_t bits = SkFloat2Bits(x); // need unsigned for our shifts local 18 int exponent = bits << 1 >> 24;
|
H A D | Sk64Test.cpp | 134 int bits = rand.nextU() & 63; local 135 c = a; c.shiftLeft(bits); 136 REPORTER_ASSERT(reporter, asLL(c) == (aa << bits)); 137 c = a; c.shiftRight(bits); 138 REPORTER_ASSERT(reporter, asLL(c) == (aa >> bits)); 139 c = a; c.roundRight(bits); 144 if (bits > 0) 145 tmp += (SkLONGLONG)1 << (bits - 1); 146 REPORTER_ASSERT(reporter, asLL(c) == (tmp >> bits));
|
/external/speex/libspeex/ |
H A D | quant_lsp.c | 159 void lsp_quant_nb(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits) argument 178 speex_bits_pack(bits, id, 6); 184 speex_bits_pack(bits, id, 6); 190 speex_bits_pack(bits, id, 6); 193 speex_bits_pack(bits, id, 6); 199 speex_bits_pack(bits, id, 6); 213 void lsp_unquant_nb(spx_lsp_t *lsp, int order, SpeexBits *bits) argument 220 id=speex_bits_unpack_unsigned(bits, 6); 224 id=speex_bits_unpack_unsigned(bits, 6); 228 id=speex_bits_unpack_unsigned(bits, 242 lsp_quant_lbr(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits) argument 283 lsp_unquant_lbr(spx_lsp_t *lsp, int order, SpeexBits *bits) argument 306 lsp_quant_high(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits) argument 310 lsp_unquant_high(spx_lsp_t *lsp, int order, SpeexBits *bits) argument 319 lsp_quant_high(spx_lsp_t *lsp, spx_lsp_t *qlsp, int order, SpeexBits *bits) argument 366 lsp_unquant_high(spx_lsp_t *lsp, int order, SpeexBits *bits) argument [all...] |
H A D | speex.c | 73 int speex_encode_native(void *state, spx_word16_t *in, SpeexBits *bits) argument 75 return (*((SpeexMode**)state))->enc(state, in, bits); 78 int speex_decode_native(void *state, SpeexBits *bits, spx_word16_t *out) argument 80 return (*((SpeexMode**)state))->dec(state, bits, out); 88 EXPORT int speex_encode(void *state, float *in, SpeexBits *bits) argument 103 return (*((SpeexMode**)state))->enc(state, short_in, bits); 107 EXPORT int speex_encode_int(void *state, spx_int16_t *in, SpeexBits *bits) argument 111 return (mode)->enc(state, in, bits); 115 EXPORT int speex_decode(void *state, SpeexBits *bits, float *out) argument 121 ret = (*((SpeexMode**)state))->dec(state, bits, short_ou 128 speex_decode_int(void *state, SpeexBits *bits, spx_int16_t *out) argument 136 speex_encode(void *state, float *in, SpeexBits *bits) argument 141 speex_encode_int(void *state, spx_int16_t *in, SpeexBits *bits) argument 152 speex_decode(void *state, SpeexBits *bits, float *out) argument 157 speex_decode_int(void *state, SpeexBits *bits, spx_int16_t *out) argument [all...] |
H A D | stereo.c | 108 EXPORT void speex_encode_stereo(float *data, int frame_size, SpeexBits *bits) argument 124 speex_bits_pack(bits, 14, 5); 125 speex_bits_pack(bits, SPEEX_INBAND_STEREO, 4); 131 speex_bits_pack(bits, 0, 1); 133 speex_bits_pack(bits, 1, 1); 138 speex_bits_pack(bits, (int)balance, 5); 142 speex_bits_pack(bits, tmp, 2); 146 EXPORT void speex_encode_stereo_int(spx_int16_t *data, int frame_size, SpeexBits *bits) argument 158 speex_bits_pack(bits, 14, 5); 160 speex_bits_pack(bits, SPEEX_INBAND_STERE 274 speex_std_stereo_request_handler(SpeexBits *bits, void *state, void *data) argument [all...] |
/external/srtp/test/ |
H A D | lfsr.c | 293 int bits = 8; local 295 for (y=0; y < (1 << bits); y++) { 297 u32_bit_string(y,bits), weight(y), period(y));
|
/external/tinyalsa/ |
H A D | tinyplay.c | 60 unsigned int rate, unsigned int bits, unsigned int period_size, 153 unsigned int rate, unsigned int bits, unsigned int period_size, 166 if (bits == 32) 168 else if (bits == 16) 190 printf("Playing sample: %u ch, %u hz, %u bit\n", channels, rate, bits); 152 play_sample(FILE *file, unsigned int card, unsigned int device, unsigned int channels, unsigned int rate, unsigned int bits, unsigned int period_size, unsigned int period_count) argument
|
/external/webkit/Source/WebCore/platform/graphics/haiku/ |
H A D | ImageHaiku.cpp | 133 uint8* bits = reinterpret_cast<uint8*>(image->Bits()); local 139 uint8* p = bits; 144 bits += bytesPerRow; 185 uint8* bits = reinterpret_cast<uint8*>(image->Bits()); local 186 m_solidColor = Color(bits[2], bits[1], bits[0], bits[3]);
|
/external/webkit/Source/WebCore/platform/image-decoders/gif/ |
H A D | GIFImageReader.cpp | 233 int bits = gs->bits; local 271 datum += ((int) *ch) << bits; 272 bits += 8; 275 while (bits >= codesize) 280 bits -= codesize; 343 * exceed the specified maximum codeword size of 12 bits. 366 gs->bits = bits; 473 frame_reader->datum = frame_reader->bits [all...] |
/external/webp/src/utils/ |
H A D | bit_reader.h | 52 int missing_; // number of missing bits in value_ (8bit) 59 // return the next value made of 'num_bits' bits 76 // Read 'BITS' bits at a time if possible. 79 bit_t bits; local 86 bits = (bit_t)in_bits; // 32b -> 64b zero-extension 88 bits = _byteswap_ulong(in_bits); 90 bits = (bit_t)(in_bits >> 24) | ((in_bits >> 8) & 0xff00) 95 bits = (bit_t)(in_bits >> 8) | ((in_bits & 0xff) << 8); 98 bits = (bit_t)in_bits; 100 br->value_ |= bits << b [all...] |
/external/wpa_supplicant_8/hostapd/src/crypto/ |
H A D | aes_i.h | 70 static inline u32 rotr(u32 val, int bits) argument 72 return (val >> bits) | (val << (32 - bits));
|
/external/wpa_supplicant_8/src/crypto/ |
H A D | aes_i.h | 70 static inline u32 rotr(u32 val, int bits) argument 72 return (val >> bits) | (val << (32 - bits));
|
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/ |
H A D | aes_i.h | 70 static inline u32 rotr(u32 val, int bits) argument 72 return (val >> bits) | (val << (32 - bits));
|
/external/zlib/src/contrib/inflate86/ |
H A D | inffas86.c | 50 state->bits < 8 60 - The maximum input bits used by a length/distance pair is 15 bits for the 61 length code, 5 bits for the length extra, 15 bits for the distance code, 62 and 13 bits for the distance extra. This totals 48 bits, or six bytes. 90 /* 88 44 */ unsigned bits; /* ebx rbx local strm->bits */ member in struct:inffast_ar 119 ar.bits [all...] |
/external/zlib/src/examples/ |
H A D | zran.c | 27 necessary the first few bits of the compressed data is read from the file. 28 inflate is initialized with those bits and the 32K of uncompressed data, and 65 int bits; /* number of bits (1-7) from byte at in - 1, or 0 */ member in struct:point 87 local struct access *addpoint(struct access *index, int bits, argument 118 next->bits = bits; 204 except for up to seven bits) -- the totout == 0 provides an 272 ret = fseeko(in, here->in - (here->bits ? 1 : 0), SEEK_SET); 275 if (here->bits) { [all...] |
/external/zlib/src/ |
H A D | infback.c | 92 unsigned sym, bits; local 103 bits = 9; 104 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work); 110 bits = 5; 111 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work); 135 bits = state->bits; \ 146 state->bits = bits; \ 153 bits 262 unsigned bits; /* bits in bit buffer */ local [all...] |
/external/aac/libFDK/include/ |
H A D | FDK_bitstream.h | 199 * bits from the input bitstream. 202 * \param numberOfBits The number of bits to be retrieved. 203 * \return the requested bits, right aligned 215 UINT bits = hBitStream->CacheWord << missingBits; local 218 return ( bits | (hBitStream->CacheWord >> hBitStream->BitsInCache)) & BitMask[numberOfBits]; 259 * bits from the input bitstream. It is the optimized version 260 of FDKreadBits() for readign 2 bits. 263 * \return the requested bits, right aligned 281 * \brief ReadBits Function (backward). This function returns a number of sequential bits 285 * \param numberOfBits The number of bits t [all...] |
/external/aac/libMpegTPEnc/src/ |
H A D | tpenc_asc.cpp | 304 int bits) 312 bits += 4 + 2 + 4; /* Element instance tag + Object type + Sample rate index */ 313 bits += 4 + 4 + 4 + 2; /* No (front + side + back + lfe channel) elements */ 314 bits += 3 + 4; /* No (assoc data + valid cc) elements */ 315 bits += 1 + 1 + 1 ; /* Mono + Stereo + Matrix mixdown present */ 318 bits +=3; /* matrix_mixdown_idx + pseudo_surround_enable */ 321 bits += (1+4) * (INT)config->num_front_channel_elements; 322 bits += (1+4) * (INT)config->num_side_channel_elements; 323 bits += (1+4) * (INT)config->num_back_channel_elements; 324 bits 302 transportEnc_GetPCEBits(CHANNEL_MODE channelMode, int matrixMixdownA, int bits) argument [all...] |
H A D | tpenc_latm.cpp | 109 first two bits define the size of the value itself 342 UINT bits; local 348 bits = FDKgetValidBits( hBs ); 356 bits = FDKgetValidBits( hBs ) - bits; 359 FDKpushBack(hBs, bits+2); 360 hAss->streamMuxConfigBits += transportEnc_LatmWriteValue( hBs, bits ); 368 hAss->streamMuxConfigBits += bits; /* add asc length to smc summary */ 760 int *bits) 762 /* Substract bits fro 759 transportEnc_LatmAdjustSubframeBits(HANDLE_LATM_STREAM hAss, int *bits) argument [all...] |
H A D | tpenc_lib.cpp | 357 frameUsedBits += transportEnc_GetPCEBits(hTp->config.channelMode, hTp->config.matrixMixdownA, 3); /* Consider 3 bits ID signalling in alignment */ 412 /* Write PCE element ID bits */ 436 TRANSPORTENC_ERROR transportEnc_EndAccessUnit(HANDLE_TRANSPORTENC hTp, int *bits) argument 442 transportEnc_LatmAdjustSubframeBits(&hTp->writer.latm, bits); 445 adtsWrite_EndRawDataBlock(&hTp->writer.adts, &hTp->bitStream, bits); 448 /* Substract ADIF header from AU bits, not to be considered. */ 449 *bits -= adifWrite_GetHeaderBits(&hTp->writer.adif); 453 *bits -= hTp->writer.raw.prevBits; 503 nPceBits = transportEnc_GetPCEBits(hTp->config.channelMode, hTp->config.matrixMixdownA, 3); /* Consider 3 bits ID signalling in alignment */ 525 /* PCE is written in the transport library therefore the bit consumption is part of the transport static bits [all...] |
/external/aac/libSBRenc/src/ |
H A D | bit_sbr.cpp | 168 returns: number of bits written 215 returns: number of bits written 286 int bits; local 288 bits = encodeSbrHeaderData (&sbrEncoder->sbrElement[element_index]->sbrHeaderData, hBs); 303 returns: number of bits written 336 returns: number of bits written 396 returns: number of bits written 441 returns: number of bits written 455 payloadBits += FDKwriteBits (hBitStream, 0, SI_SBR_DATA_EXTRA_BITS); /* no reserved bits */ 510 payloadBits += FDKwriteBits (hBitStream, 0, SI_SBR_DATA_EXTRA_BITS); /* no reserved bits */ [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
H A D | BitSet.java | 37 protected final static int BITS = 64; // number of bits / long 47 /** The actual data bits */ 48 protected long bits[]; field in class:BitSet 50 /** Construct a bitset of size one word (64 bits) */ 57 bits = bits_; 70 * @param nbits The size of the bitset in bits 73 bits = new long[((nbits - 1) >> LOG_BITS) + 1]; 119 if (n >= bits.length) { 122 bits[n] |= bitMask(el); 126 * Grows the set to a larger number of bits [all...] |