HomeSort by relevance Sort by last modified time
    Searched refs:num_bits (Results 1 - 25 of 99) sorted by null

1 2 3 4

  /external/webp/src/utils/
random.h 36 // Returns a centered pseudo-random number with 'num_bits' amplitude.
39 static WEBP_INLINE int VP8RandomBits2(VP8Random* const rg, int num_bits,
42 assert(num_bits + VP8_RANDOM_DITHER_FIX <= 31);
49 diff = (int)((uint32_t)diff << 1) >> (32 - num_bits);
51 diff += 1 << (num_bits - 1); // shift back to 0.5-center
55 static WEBP_INLINE int VP8RandomBits(VP8Random* const rg, int num_bits) {
56 return VP8RandomBits2(rg, num_bits, rg->amp_);
  /external/valgrind/memcheck/tests/vbit-test/
unary.c 37 unsigned num_bits = result->vbits.num_bits; local
43 expected_vbits = undefined_vbits(num_bits);
51 expected_vbits = truncate_vbits(opnd->vbits, num_bits);
55 expected_vbits = left_vbits(opnd->vbits, num_bits);
59 assert(num_bits * 2 == opnd->vbits.num_bits);
64 expected_vbits = sextend_vbits(opnd->vbits, num_bits);
68 expected_vbits = zextend_vbits(opnd->vbits, num_bits);
vbits.h 38 unsigned num_bits; member in struct:__anon25734
64 vbits_t undefined_vbits(unsigned num_bits);
65 vbits_t defined_vbits(unsigned num_bits);
67 vbits_t truncate_vbits(vbits_t, unsigned num_bits);
68 vbits_t left_vbits(vbits_t, unsigned num_bits);
73 vbits_t sextend_vbits(vbits_t, unsigned num_bits);
74 vbits_t zextend_vbits(vbits_t, unsigned num_bits);
75 vbits_t onehot_vbits(unsigned bitno, unsigned num_bits);
vbits.c 54 switch (v.num_bits) {
71 switch (v.num_bits) {
107 undefined_vbits(unsigned num_bits)
109 vbits_t new = { .num_bits = num_bits };
111 switch (num_bits) {
134 defined_vbits(unsigned num_bits)
136 vbits_t new = { .num_bits = num_bits };
138 switch (num_bits) {
    [all...]
binary.c 37 assert(v1.num_bits == v2.num_bits);
39 vbits_t new = { .num_bits = v2.num_bits };
42 switch (v2.num_bits) {
52 switch (v2.num_bits) {
83 expected_vbits = defined_vbits(result->vbits.num_bits);
87 expected_vbits = undefined_vbits(result->vbits.num_bits);
93 result->vbits.num_bits);
97 assert(opnd1->vbits.num_bits == opnd2->vbits.num_bits)
    [all...]
valgrind.c 74 vbits_t actual = { .num_bits = opnd->vbits.num_bits };
90 opnd->vbits.num_bits = bitsof_irtype(opnd->type);
util.c 82 print_value(FILE *fp, value_t val, unsigned num_bits)
84 switch (num_bits) {
125 if (equal_vbits(opnd->vbits, defined_vbits(opnd->vbits.num_bits))) {
127 print_value(fp, opnd->value, opnd->vbits.num_bits);
  /system/core/include/cutils/
bitops.h 54 static inline void bitmask_init(unsigned int *bitmask, int num_bits)
56 memset(bitmask, 0, BITS_TO_WORDS(num_bits)*sizeof(unsigned int));
59 static inline int bitmask_ffz(unsigned int *bitmask, int num_bits)
64 for (i = 0; i < BITS_TO_WORDS(num_bits); i++) {
70 if (result >= num_bits)
78 static inline int bitmask_weight(unsigned int *bitmask, int num_bits)
83 for (i = 0; i < BITS_TO_WORDS(num_bits); i++)
  /art/runtime/gc/accounting/
bitmap.cc 28 Bitmap* Bitmap::CreateFromMemMap(MemMap* mem_map, size_t num_bits) {
30 return new Bitmap(mem_map, num_bits);
44 MemMap* Bitmap::AllocateMemMap(const std::string& name, size_t num_bits) {
46 RoundUp(num_bits, kBitsPerBitmapWord) / kBitsPerBitmapWord * sizeof(uintptr_t), kPageSize);
58 Bitmap* Bitmap::Create(const std::string& name, size_t num_bits) {
59 auto* const mem_map = AllocateMemMap(name, num_bits);
63 return CreateFromMemMap(mem_map, num_bits);
83 const size_t num_bits = (cover_end - cover_begin) / kAlignment; local
84 auto* const mem_map = Bitmap::AllocateMemMap(name, num_bits);
85 return CreateFromMemMap(mem_map, cover_begin, num_bits);
    [all...]
bitmap.h 40 // Create and initialize a bitmap with size num_bits. Storage is allocated with a MemMap.
41 static Bitmap* Create(const std::string& name, size_t num_bits);
46 static Bitmap* CreateFromMemMap(MemMap* mem_map, size_t num_bits);
109 static MemMap* AllocateMemMap(const std::string& name, size_t num_bits);
134 size_t num_bits);
181 MemoryRangeBitmap(MemMap* mem_map, uintptr_t begin, size_t num_bits)
182 : Bitmap(mem_map, num_bits), cover_begin_(begin), cover_end_(begin + kAlignment * num_bits) {
  /external/mesa3d/src/gallium/auxiliary/vl/
vl_vlc.h 213 * get num_bits from bit buffer without removing them
216 vl_vlc_peekbits(struct vl_vlc *vlc, unsigned num_bits)
218 assert(vl_vlc_valid_bits(vlc) >= num_bits || vlc->data >= vlc->end);
219 return vlc->buffer >> (64 - num_bits);
223 * remove num_bits from bit buffer
226 vl_vlc_eatbits(struct vl_vlc *vlc, unsigned num_bits)
228 assert(vl_vlc_valid_bits(vlc) >= num_bits);
230 vlc->buffer <<= num_bits;
231 vlc->invalid_bits += num_bits;
235 * get num_bits from bit buffer with removing the
    [all...]
  /external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/lzw/
ftzopen.c 39 state->num_bits ); /* WHY? */
43 state->in_eof = FT_BOOL( count < state->num_bits );
45 state->buf_size = ( state->buf_size << 3 ) - ( state->num_bits - 1 );
57 FT_UInt num_bits = state->num_bits; local
69 state->num_bits = ++num_bits;
70 state->free_bits = state->num_bits < state->max_bits
71 ? (FT_UInt)( ( 1UL << num_bits ) - 256 )
77 state->num_bits = num_bits = LZW_INIT_BITS
    [all...]
  /hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/parser/include/
viddec_parser_ops.h 48 int32_t viddec_pm_get_bits(void *parent, uint32_t *data, uint32_t num_bits);
52 int32_t viddec_pm_peek_bits(void *parent, uint32_t *data, uint32_t num_bits);
56 int32_t viddec_pm_skip_bits(void *parent, uint32_t num_bits);
viddec_pm_utils_bstream.h 57 int32_t viddec_pm_utils_bstream_skipbits(viddec_pm_utils_bstream_cxt_t *cxt, uint32_t num_bits);
59 int32_t viddec_pm_utils_bstream_peekbits(viddec_pm_utils_bstream_cxt_t *cxt, uint32_t *out, uint32_t num_bits, uint8_t skip);
  /external/libchrome/crypto/
nss_key_util.h 20 // Generates a new RSA keypair of size |num_bits| in |slot|. Returns true on
25 uint16_t num_bits,
  /hardware/qcom/media/msm8974/mm-video-v4l2/vidc/common/inc/
extra_data_handler.h 70 OMX_U32 d_u(OMX_U32 num_bits);
75 OMX_U32 e_u(OMX_U32 symbol, OMX_U32 num_bits);
  /hardware/qcom/media/msm8996/mm-video-v4l2/vidc/common/inc/
extra_data_handler.h 69 OMX_U32 d_u(OMX_U32 num_bits);
74 OMX_U32 e_u(OMX_U32 symbol, OMX_U32 num_bits);
  /hardware/qcom/media/msmcobalt/mm-video-v4l2/vidc/common/inc/
extra_data_handler.h 69 OMX_U32 d_u(OMX_U32 num_bits);
74 OMX_U32 e_u(OMX_U32 symbol, OMX_U32 num_bits);
  /toolchain/binutils/binutils-2.25/gas/config/
atof-ieee.c 451 int num_bits;
454 num_bits = -exponent_4;
456 LITTLENUM_NUMBER_OF_BITS * precision - (exponent_bits + 1 + num_bits);
464 num_bits += 1;
468 if (num_bits >= LITTLENUM_NUMBER_OF_BITS - exponent_bits)
471 num_bits -= (LITTLENUM_NUMBER_OF_BITS - 1) - exponent_bits;
473 if (num_bits + exponent_bits + 1
484 while (num_bits >= LITTLENUM_NUMBER_OF_BITS)
486 num_bits -= LITTLENUM_NUMBER_OF_BITS;
489 if (num_bits)
449 int num_bits; local
    [all...]
  /frameworks/av/media/libstagefright/codecs/avc/enc/src/
bitstream_io.cpp 84 int num_bits; local
89 num_bits = WORD_SIZE - stream->bit_left; /* must be multiple of 8 !!*/
91 if (stream->buf_size - stream->write_pos <= (num_bits >> 3) + 2) /* 2 more bytes for possible EPBS */
93 if (AVCENC_SUCCESS != AVCBitstreamUseOverrunBuffer(stream, (num_bits >> 3) + 2))
102 while (num_bits) /* no need to check stream->buf_size and stream->write_pos, taken care already */
104 num_bits -= 8;
105 byte = (current_word >> num_bits) & 0xFF;
107 { /* for num_bits = 32, this can add 2 more bytes extra for EPBS */
  /toolchain/binutils/binutils-2.25/include/
xtensa-isa-internal.h 127 int num_bits; /* Width of the registers. */ member in struct:xtensa_regfile_internal_struct
134 int num_bits; /* Width of the interface. */ member in struct:xtensa_interface_internal_struct
149 int num_bits; /* Number of state bits. */ member in struct:xtensa_state_internal_struct
  /hardware/qcom/media/msm8974/mm-video-legacy/vidc/common/inc/
extra_data_handler.h 89 OMX_U32 d_u(OMX_U32 num_bits);
94 OMX_U32 e_u(OMX_U32 symbol, OMX_U32 num_bits);
  /hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/parser/
viddec_pm_parser_ops.c 11 int32_t viddec_pm_get_bits(void *parent, uint32_t *data, uint32_t num_bits)
17 ret = viddec_pm_utils_bstream_peekbits(&(cxt->getbits), data, num_bits, 1);
24 int32_t viddec_pm_peek_bits(void *parent, uint32_t *data, uint32_t num_bits)
30 ret = viddec_pm_utils_bstream_peekbits(&(cxt->getbits), data, num_bits, 0);
34 int32_t viddec_pm_skip_bits(void *parent, uint32_t num_bits)
40 ret = viddec_pm_utils_bstream_skipbits(&(cxt->getbits), num_bits);
viddec_pm_utils_bstream.c 368 int32_t viddec_pm_utils_bstream_skipbits(viddec_pm_utils_bstream_cxt_t *cxt, uint32_t num_bits)
376 if((num_bits <= 32) && (num_bits > 0) && (data_left != 0))
380 bytes_required = (bstream->buf_bitoff + num_bits + 7)>>3;
388 total_bits=num_bits+bstream->buf_bitoff;
405 int32_t viddec_pm_utils_bstream_peekbits(viddec_pm_utils_bstream_cxt_t *cxt, uint32_t *out, uint32_t num_bits, uint8_t skip)
412 if((num_bits <= 32) && (num_bits > 0) && (data_left != 0))
418 bytes_required = (bstream->buf_bitoff + num_bits + 7)>>3;
441 total_bits = num_bits+bstream->buf_bitoff
    [all...]
  /frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
combined_encode.cpp 51 Int num_bits, packet_size = encParams->ResyncPacketsize; local
177 num_bits = BitstreamGetPos(bs1) - numHeaderBits;
178 if (num_bits > packet_size)
281 Int num_bits = 0; local
414 num_bits = BitstreamGetPos(bs1);
416 numHeaderBits = BitstreamGetPos(bs1) - num_bits;
463 num_bits = BitstreamGetPos(bs1) ;//- numHeaderBits; // include header
466 if (num_bits > packet_size && mbnum != firstMB)
511 num_bits = BitstreamGetPos(bs1) - (byteCount << 3);
514 BitstreamFlushBits(bs1, num_bits);
    [all...]

Completed in 2704 milliseconds

1 2 3 4