Home
last modified time | relevance | path

Searched refs:nBits (Results 1 – 25 of 25) sorted by relevance

/external/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_util.cpp242 bool BitSet::resize(unsigned int nBits) in resize() argument
244 if (!data || !nBits) in resize()
245 return allocate(nBits, true); in resize()
247 const unsigned int n = (nBits + 31) / 32; in resize()
258 if (nBits < size && (nBits % 32)) in resize()
259 data[(nBits + 31) / 32 - 1] &= (1 << (nBits % 32)) - 1; in resize()
261 size = nBits; in resize()
265 bool BitSet::allocate(unsigned int nBits, bool zero) in allocate() argument
267 if (data && size < nBits) { in allocate()
271 size = nBits; in allocate()
Dnv50_ir_util.h481 BitSet(unsigned int nBits, bool zero) : marker(false), data(0), size(0) in BitSet() argument
483 allocate(nBits, zero); in BitSet()
492 bool allocate(unsigned int nBits, bool zero);
493 bool resize(unsigned int nBits); // keep old data, zero additional bits
/external/libopus/silk/float/
Dencode_frame_FLP.c92 opus_int32 seed_copy, nBits, nBits_lower, nBits_upper, gainMult_lower, gainMult_upper; in silk_encode_frame_FLP() local
175 nBits = nBits_lower; in silk_encode_frame_FLP()
177 nBits = nBits_upper; in silk_encode_frame_FLP()
204 nBits = ec_tell( psRangeEnc ); in silk_encode_frame_FLP()
206 if( useCBR == 0 && iter == 0 && nBits <= maxBits ) { in silk_encode_frame_FLP()
212 if( found_lower && ( gainsID == gainsID_lower || nBits > maxBits ) ) { in silk_encode_frame_FLP()
223 if( nBits > maxBits ) { in silk_encode_frame_FLP()
231 nBits_upper = nBits; in silk_encode_frame_FLP()
235 } else if( nBits < maxBits - 5 ) { in silk_encode_frame_FLP()
237 nBits_lower = nBits; in silk_encode_frame_FLP()
[all …]
/external/libopus/silk/fixed/
Dencode_frame_FIX.c91 opus_int32 seed_copy, nBits, nBits_lower, nBits_upper, gainMult_lower, gainMult_upper; in silk_encode_frame_FIX() local
180 nBits = nBits_lower; in silk_encode_frame_FIX()
182 nBits = nBits_upper; in silk_encode_frame_FIX()
219 nBits = ec_tell( psRangeEnc ); in silk_encode_frame_FIX()
221 if( useCBR == 0 && iter == 0 && nBits <= maxBits ) { in silk_encode_frame_FIX()
227 if( found_lower && ( gainsID == gainsID_lower || nBits > maxBits ) ) { in silk_encode_frame_FIX()
238 if( nBits > maxBits ) { in silk_encode_frame_FIX()
246 nBits_upper = nBits; in silk_encode_frame_FIX()
250 } else if( nBits < maxBits - 5 ) { in silk_encode_frame_FIX()
252 nBits_lower = nBits; in silk_encode_frame_FIX()
[all …]
/external/pdfium/core/fxcodec/jbig2/
DJBig2_HuffmanDecoder.cpp19 int nBits = 0; in decodeAValue() local
26 ++nBits; in decodeAValue()
28 if (pTable->GetPREFLEN()[i] == nBits && pTable->GetCODES()[i] == nVal) { in decodeAValue()
DJBig2_BitStream.h20 int32_t readNBits(uint32_t nBits, uint32_t* dwResult);
21 int32_t readNBits(uint32_t nBits, int32_t* nResult);
DJBig2_GrrdProc.cpp187 int32_t nBits = iGRW - w > 8 ? 8 : iGRW - w; in decode_Template0_opt() local
215 for (int32_t k = 0; k < nBits; k++) { in decode_Template0_opt()
230 int32_t nBits = iGRW - w > 8 ? 8 : iGRW - w; in decode_Template0_opt() local
252 for (int32_t k = 0; k < nBits; k++) { in decode_Template0_opt()
422 int32_t nBits = iGRW - w > 8 ? 8 : iGRW - w; in decode_Template1_opt() local
441 for (int32_t k = 0; k < nBits; k++) { in decode_Template1_opt()
456 int32_t nBits = iGRW - w > 8 ? 8 : iGRW - w; in decode_Template1_opt() local
475 for (int32_t k = 0; k < nBits; k++) { in decode_Template1_opt()
DJBig2_TrdProc.cpp74 int32_t nBits = 0; in decode_Huffman() local
82 nBits++; in decode_Huffman()
84 if ((nBits == SBSYMCODES[IDI].codelen) && in decode_Huffman()
DJBig2_SddProc.cpp309 int32_t nVal, nBits; in decode_Huffman() local
459 nBits = 0; in decode_Huffman()
468 (nBits == SBSYMCODES[IDI].codelen)) { in decode_Huffman()
DJBig2_Context.cpp1273 int32_t nBits = 0; in decodeSymbolIDHuffmanTable() local
1280 ++nBits; in decodeSymbolIDHuffmanTable()
1282 if (nBits == runcodes_len[j] && nVal == runcodes[j]) in decodeSymbolIDHuffmanTable()
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DLongMath.java229 int nBits = LongMath.log2(n, RoundingMode.CEILING); in binomial() local
235 int numeratorBits = nBits; in binomial()
244 if (numeratorBits + nBits < Long.SIZE - 1) { in binomial()
248 numeratorBits += nBits; in binomial()
255 numeratorBits = nBits; in binomial()
/external/aac/libSYS/src/
Dwav_file.cpp259 INT WAV_InputRead (HANDLE_WAV wav, void *buffer, UINT numSamples, int nBits) in WAV_InputRead() argument
270 if (nBits == wav->header.bitsPerSample) { in WAV_InputRead()
285 if (wav->header.bitsPerSample > nBits) in WAV_InputRead()
286 tmp >>= (wav->header.bitsPerSample-nBits); in WAV_InputRead()
288 tmp <<= (nBits-wav->header.bitsPerSample); in WAV_InputRead()
290 if (nBits == 8) in WAV_InputRead()
292 if (nBits == 16) in WAV_InputRead()
294 if (nBits == 32) in WAV_InputRead()
/external/aac/libSBRdec/src/
Dsbr_crc.cpp101 calcCRC (HANDLE_CRC hCrcBuf, ULONG bValue, int nBits) in calcCRC() argument
104 ULONG bMask = (1UL << (nBits - 1)); in calcCRC()
106 for (i = 0; i < nBits; i++, bMask >>= 1) { in calcCRC()
/external/pdfium/core/fxcrt/
Dfx_basic_buffer.cpp191 uint32_t CFX_BitStream::GetBits(uint32_t nBits) { in GetBits() argument
192 if (nBits > m_BitSize || m_BitPos + nBits > m_BitSize) in GetBits()
195 if (nBits == 1) { in GetBits()
203 uint32_t bit_left = nBits; in GetBits()
221 m_BitPos += nBits; in GetBits()
Dfx_basic.h341 uint32_t GetBits(uint32_t nBits);
347 void SkipBits(uint32_t nBits) { m_BitPos += nBits; } in SkipBits() argument
/external/aac/libFDK/src/
DFDK_crc.cpp183 INT nBits
325 INT nBits in calcCrc_Bits() argument
332 for (i = 0; (i < nBits); i++) { in calcCrc_Bits()
341 for (i = 0; (i < nBits); i++) { in calcCrc_Bits()
351 return nBits; in calcCrc_Bits()
DFDK_bitbuffer.cpp206 int nBits = (INT)hBitBuf->bufBits-(INT)hBitBuf->BitNdx; in FDK_get32() local
208 UINT cache = FDK_get (hBitBuf,nBits)<< (32-nBits); in FDK_get32()
209 cache |= (FDK_get (hBitBuf,32-nBits)); in FDK_get32()
/external/fonttools/Lib/fontTools/ttLib/tables/
DotConverters.py324 nBits = 1 << DeltaFormat
325 minusOffset = 1 << nBits
326 mask = (1 << nBits) - 1
327 signMask = 1 << (nBits - 1)
334 shift = shift - nBits
348 nBits = 1 << DeltaFormat
350 mask = (1 << nBits) - 1
354 shift = shift - nBits
/external/guava/guava/src/com/google/common/math/
DLongMath.java674 int nBits = LongMath.log2(n, RoundingMode.CEILING);
680 int numeratorBits = nBits;
689 if (numeratorBits + nBits < Long.SIZE - 1) {
693 numeratorBits += nBits;
700 numeratorBits = nBits;
/external/aac/libAACdec/src/
Daacdecoder_lib.cpp745 …r_UpdateBitStreamCounters(CStreamInfo *pSi, HANDLE_FDK_BITSTREAM hBs, int nBits, AAC_DECODER_ERROR… in aacDecoder_UpdateBitStreamCounters() argument
748 nBits = nBits - FDKgetValidBits(hBs); in aacDecoder_UpdateBitStreamCounters()
759 pSi->bitRate = (nBits * pSi->sampleRate)/pSi->frameSize; in aacDecoder_UpdateBitStreamCounters()
766 nBytes = nBits>>3; in aacDecoder_UpdateBitStreamCounters()
811 INT nBits = FDKgetValidBits(hBs); in aacDecoder_DecodeFrame() local
1053 aacDecoder_UpdateBitStreamCounters(&self->streamInfo, hBs, nBits, ErrorStatus); in aacDecoder_DecodeFrame()
/external/libopus/silk/
Denc_API.c150 opus_int n, i, nBits, flags, tmp_payloadSize_ms = 0, tmp_complexity = 0, ret = 0; in silk_Encode() local
386nBits = silk_DIV32_16( silk_MUL( encControl->bitRate, encControl->payloadSize_ms ), 1000 ); in silk_Encode()
389 nBits -= psEnc->nBitsUsedLBRR; in silk_Encode()
392 nBits = silk_DIV32_16( nBits, psEnc->state_Fxx[ 0 ].sCmn.nFramesPerPacket ); in silk_Encode()
395 TargetRate_bps = silk_SMULBB( nBits, 100 ); in silk_Encode()
397 TargetRate_bps = silk_SMULBB( nBits, 50 ); in silk_Encode()
403 …opus_int32 bitsBalance = ec_tell( psRangeEnc ) - psEnc->nBitsUsedLBRR - nBits * psEnc->state_Fxx[ … in silk_Encode()
/external/valgrind/memcheck/
Dmc_main.c1257 Addr a, SizeT nBits, Bool bigendian ) in mc_LOADV_128_or_256_slow() argument
1260 SSizeT szB = nBits / 8; in mc_LOADV_128_or_256_slow()
1373 ULong mc_LOADVn_slow ( Addr a, SizeT nBits, Bool bigendian ) in mc_LOADVn_slow() argument
1386 && nBits == 64 && VG_IS_8_ALIGNED(a))) { in mc_LOADVn_slow()
1397 && nBits == 32 && VG_IS_4_ALIGNED(a))) { in mc_LOADVn_slow()
1411 SSizeT szB = nBits / 8; in mc_LOADVn_slow()
1418 tl_assert(nBits == 64 || nBits == 32 || nBits == 16 || nBits == 8); in mc_LOADVn_slow()
1498 && VG_IS_4_ALIGNED(a) && nBits == 32 && n_addrs_bad < 4) { in mc_LOADVn_slow()
1519 void mc_STOREVn_slow ( Addr a, SizeT nBits, ULong vbytes, Bool bigendian ) in mc_STOREVn_slow() argument
1521 SizeT szB = nBits / 8; in mc_STOREVn_slow()
[all …]
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRBitSet.m251 - (void) setSize:(NSUInteger) nBits
253 CFBitVectorSetCount( bitVector, nBits );
/external/pdfium/core/fpdfapi/page/
Dcpdf_streamcontentparser.cpp123 FX_SAFE_UINT32 nBits = stream.Components(); in GetShadingBBox() local
124 nBits *= stream.ComponentBits(); in GetShadingBBox()
125 nBits *= color_count; in GetShadingBBox()
126 if (!nBits.IsValid()) in GetShadingBBox()
129 stream.BitStream()->SkipBits(nBits.ValueOrDie()); in GetShadingBBox()
/external/aac/libMpegTPDec/src/
Dtpdec_asc.cpp997 static INT getSampleRate(HANDLE_FDK_BITSTREAM bs, UCHAR *index, int nBits) in getSampleRate() argument
1002 idx = FDKreadBits(bs, nBits); in getSampleRate()
1003 if( idx == (1<<nBits)-1 ) { in getSampleRate()