/third_party/skia/third_party/externals/libwebp/tests/fuzzer/ |
D | fuzz_utils.h | 51 uint32_t* const bit_pos) { in Extract() argument 54 while (*bit_pos < 8 * size && range <= max_value) { in Extract() 55 const uint8_t mask = 1u << (*bit_pos & 7); in Extract() 56 v = (v << 1) | !!(data[*bit_pos >> 3] & mask); in Extract() 58 ++*bit_pos; in Extract() 92 uint32_t* const bit_pos) { in ExtractAndDisableOptimizations() argument 97 int VP8GetCPUInfo_index = Extract(4, data, size, bit_pos); in ExtractAndDisableOptimizations() 105 uint32_t* const bit_pos) { in ExtractWebPConfig() argument 107 config->lossless = Extract(1, data, size, bit_pos); in ExtractWebPConfig() 108 config->quality = Extract(100, data, size, bit_pos); in ExtractWebPConfig() [all …]
|
D | animencoder_fuzzer.cc | 31 size_t size, uint32_t* const bit_pos) { in AddFrame() argument 45 pic.use_argb = Extract(1, data, size, bit_pos); in AddFrame() 48 if (!ExtractSourcePicture(&pic, data, size, bit_pos)) { in AddFrame() 58 if (!ExtractAndCropOrScale(&pic, data, size, bit_pos)) { in AddFrame() 92 if (!ExtractWebPConfig(&config, data, size, bit_pos)) { in AddFrame() 125 uint32_t bit_pos = 0; in LLVMFuzzerTestOneInput() local 127 ExtractAndDisableOptimizations(default_VP8GetCPUInfo, data, size, &bit_pos); in LLVMFuzzerTestOneInput() 135 anim_config.minimize_size = Extract(1, data, size, &bit_pos); in LLVMFuzzerTestOneInput() 136 anim_config.kmax = Extract(15, data, size, &bit_pos); in LLVMFuzzerTestOneInput() 140 min_kmin + Extract((uint32_t)(max_kmin - min_kmin), data, size, &bit_pos); in LLVMFuzzerTestOneInput() [all …]
|
D | enc_dec_fuzzer.cc | 31 uint32_t bit_pos = 0; in LLVMFuzzerTestOneInput() local 33 ExtractAndDisableOptimizations(default_VP8GetCPUInfo, data, size, &bit_pos); in LLVMFuzzerTestOneInput() 41 pic.use_argb = Extract(1, data, size, &bit_pos); in LLVMFuzzerTestOneInput() 44 if (!ExtractSourcePicture(&pic, data, size, &bit_pos)) { in LLVMFuzzerTestOneInput() 53 if (!ExtractAndCropOrScale(&pic, data, size, &bit_pos)) { in LLVMFuzzerTestOneInput() 64 if (!ExtractWebPConfig(&config, data, size, &bit_pos)) { in LLVMFuzzerTestOneInput()
|
/third_party/skia/third_party/externals/libwebp/extras/ |
D | quality_estimate.c | 27 uint64_t max_size, uint64_t* const bit_pos) { in GetBit() argument 29 if (*bit_pos + nb <= 8 * max_size) { in GetBit() 31 const uint64_t p = (*bit_pos)++; in GetBit() 36 *bit_pos = INVALID_BIT_POS; in GetBit() 41 #define GET_BIT(n) GetBit(data, (n), size, &bit_pos) 46 uint64_t bit_pos; in VP8EstimateQuality() local 74 bit_pos = pos * 8; in VP8EstimateQuality() 120 if (bit_pos == INVALID_BIT_POS) return -1; in VP8EstimateQuality()
|
/third_party/f2fs-tools/fsck/ |
D | dir.c | 69 unsigned long bit_pos = 0; in find_target_dentry() local 74 while (bit_pos < (unsigned long)d->max) { in find_target_dentry() 75 if (!test_bit_le(bit_pos, d->bitmap)) { in find_target_dentry() 76 bit_pos++; in find_target_dentry() 81 de = &d->dentry[bit_pos]; in find_target_dentry() 84 !memcmp(d->filename[bit_pos], name, len)) { in find_target_dentry() 91 bit_pos += GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); in find_target_dentry() 201 unsigned int bit_pos) in f2fs_update_dentry() argument 207 de = &d->dentry[bit_pos]; in f2fs_update_dentry() 210 memcpy(d->filename[bit_pos], name, len); in f2fs_update_dentry() [all …]
|
/third_party/googletest/googlemock/src/ |
D | gmock-internal-utils.cc | 226 int bit_pos = 0; in Base64Unescape() local 237 if (bit_pos == 0) { in Base64Unescape() 239 bit_pos = 6; in Base64Unescape() 241 dst |= static_cast<char>(src_bin >> (bit_pos - 2)); in Base64Unescape() 243 dst = static_cast<char>(src_bin << (10 - bit_pos)); in Base64Unescape() 244 bit_pos = (bit_pos + 6) % 8; in Base64Unescape()
|
/third_party/skia/third_party/externals/libwebp/examples/ |
D | webpinfo.c | 214 int* val, uint64_t* const bit_pos) { in GetBits() argument 217 const uint64_t p = (*bit_pos)++; in GetBits() 229 int* val, uint64_t* const bit_pos) { in GetSignedBits() argument 231 if (!GetBits(data, data_size, nb, val, bit_pos)) return 0; in GetSignedBits() 232 if (!GetBits(data, data_size, 1, &sign, bit_pos)) return 0; in GetSignedBits() 239 if (!GetBits(data, data_size, n, &(v), bit_pos)) { \ 247 if (!GetSignedBits(data, data_size, n, &(v), bit_pos)) { \ 256 uint64_t* const bit_pos) { in ParseLossySegmentHeader() argument 306 uint64_t* const bit_pos) { in ParseLossyFilterHeader() argument 343 uint64_t* const bit_pos = &bit_position; in ParseLossyHeader() local [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | idcinvideo.c | 180 int bit_pos, node_num, dat_pos; in idcin_decode_vlcs() local 182 prev = bit_pos = dat_pos = 0; in idcin_decode_vlcs() 190 if(!bit_pos) { in idcin_decode_vlcs() 195 bit_pos = 8; in idcin_decode_vlcs() 201 bit_pos--; in idcin_decode_vlcs()
|
/third_party/mesa3d/src/util/ |
D | texcompress_rgtc_tmp.h | 39 const char bit_pos = ((j&3) * 4 + (i&3)) * 3; in TAG() local 40 const unsigned char acodelow = blksrc[2 + bit_pos / 8]; in TAG() 41 const unsigned char acodehigh = (3 + bit_pos / 8) < 8 ? blksrc[3 + bit_pos / 8] : 0; in TAG() 42 const unsigned char code = (acodelow >> (bit_pos & 0x7) | in TAG() 43 (acodehigh << (8 - (bit_pos & 0x7)))) & 0x7; in TAG()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_format_s3tc.c | 573 LLVMValueRef bit_pos, sel_mask, sel_lo, sel_hi, indices; in s3tc_dxt1_full_to_rgba_aos() local 695 bit_pos = LLVMBuildShl(builder, j, const2, ""); in s3tc_dxt1_full_to_rgba_aos() 696 bit_pos = LLVMBuildAdd(builder, bit_pos, i, ""); in s3tc_dxt1_full_to_rgba_aos() 697 bit_pos = LLVMBuildAdd(builder, bit_pos, bit_pos, ""); in s3tc_dxt1_full_to_rgba_aos() 715 indices = LLVMBuildLShr(builder, codewords, bit_pos, ""); in s3tc_dxt1_full_to_rgba_aos() 770 LLVMValueRef bit_pos, sel_mask; in s3tc_dxt3_to_rgba_aos() local 802 bit_pos = LLVMBuildShl(builder, j, lp_build_const_int_vec(gallivm, type, 2), ""); in s3tc_dxt3_to_rgba_aos() 803 bit_pos = LLVMBuildAdd(builder, bit_pos, i, ""); in s3tc_dxt3_to_rgba_aos() 804 bit_pos = LLVMBuildShl(builder, bit_pos, in s3tc_dxt3_to_rgba_aos() 806 sel_mask = LLVMBuildLShr(builder, bit_pos, in s3tc_dxt3_to_rgba_aos() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | rtpenc_h263_rfc2190.c | 154 uint32_t bit_pos = AV_RL32(ptr); in ff_rtp_send_h263_rfc2190() local 156 uint32_t pos_next_mb_info = (bit_pos + 7)/8; in ff_rtp_send_h263_rfc2190() 166 ebits = 8 * pos_next_mb_info - bit_pos; in ff_rtp_send_h263_rfc2190()
|
/third_party/mesa3d/src/mesa/main/ |
D | texcompress_s3tc_tmp.h | 64 GLubyte bit_pos = 2 * (j * 4 + i) ; in dxt135_decode_imageblock() local 65 GLubyte code = (GLubyte) ((bits >> bit_pos) & 3); in dxt135_decode_imageblock() 159 const GLubyte bit_pos = ((j&3) * 4 + (i&3)) * 3; in fetch_2d_texel_rgba_dxt5() local 160 const GLubyte acodelow = blksrc[2 + bit_pos / 8]; in fetch_2d_texel_rgba_dxt5() 161 const GLubyte acodehigh = blksrc[3 + bit_pos / 8]; in fetch_2d_texel_rgba_dxt5() 162 const GLubyte code = (acodelow >> (bit_pos & 0x7) | in fetch_2d_texel_rgba_dxt5() 163 (acodehigh << (8 - (bit_pos & 0x7)))) & 0x7; in fetch_2d_texel_rgba_dxt5()
|
/third_party/pulseaudio/src/modules/raop/ |
D | raop-client.c | 233 static inline void bit_writer(uint8_t **buffer, uint8_t *bit_pos, size_t *size, uint8_t data, uint8… in bit_writer() argument 241 if (!*bit_pos) in bit_writer() 245 bits_left = 7 - *bit_pos + 1; in bit_writer() 252 if (*bit_pos) in bit_writer() 260 *bit_pos = 0; in bit_writer() 262 *bit_pos += data_bit_len; in bit_writer() 273 *bit_pos = -bit_overflow; in bit_writer()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/erst-inj/ |
D | cper.h | 201 __u16 bit_pos; member
|
/third_party/skia/third_party/externals/freetype/src/pshinter/ |
D | pshrec.c | 311 FT_UInt bit_pos, in ps_mask_table_set_bits() argument 331 FT_Byte* read = (FT_Byte*)source + ( bit_pos >> 3 ); in ps_mask_table_set_bits() 332 FT_Int rmask = 0x80 >> ( bit_pos & 7 ); in ps_mask_table_set_bits()
|
/third_party/node/deps/v8/src/codegen/arm64/ |
D | assembler-arm64-inl.h | 891 Instr Assembler::ImmTestBranchBit(unsigned bit_pos) { 892 DCHECK(is_uint6(bit_pos)); 894 unsigned b5 = bit_pos << (ImmTestBranchBit5_offset - 5); 895 unsigned b40 = bit_pos << ImmTestBranchBit40_offset;
|
D | assembler-arm64.h | 403 void tbz(const Register& rt, unsigned bit_pos, Label* label); 404 void tbz(const Register& rt, unsigned bit_pos, int imm14); 407 void tbnz(const Register& rt, unsigned bit_pos, Label* label); 408 void tbnz(const Register& rt, unsigned bit_pos, int imm14); 2172 inline static Instr ImmTestBranchBit(unsigned bit_pos);
|
D | assembler-arm64.cc | 806 void Assembler::tbz(const Register& rt, unsigned bit_pos, int imm14) { in tbz() argument 807 DCHECK(rt.Is64Bits() || (rt.Is32Bits() && (bit_pos < kWRegSizeInBits))); in tbz() 808 Emit(TBZ | ImmTestBranchBit(bit_pos) | ImmTestBranch(imm14) | Rt(rt)); in tbz() 811 void Assembler::tbz(const Register& rt, unsigned bit_pos, Label* label) { in tbz() argument 812 tbz(rt, bit_pos, LinkAndGetInstructionOffsetTo(label)); in tbz() 815 void Assembler::tbnz(const Register& rt, unsigned bit_pos, int imm14) { in tbnz() argument 816 DCHECK(rt.Is64Bits() || (rt.Is32Bits() && (bit_pos < kWRegSizeInBits))); in tbnz() 817 Emit(TBNZ | ImmTestBranchBit(bit_pos) | ImmTestBranch(imm14) | Rt(rt)); in tbnz() 820 void Assembler::tbnz(const Register& rt, unsigned bit_pos, Label* label) { in tbnz() argument 821 tbnz(rt, bit_pos, LinkAndGetInstructionOffsetTo(label)); in tbnz()
|
D | macro-assembler-arm64.cc | 1027 void TurboAssembler::Tbnz(const Register& rt, unsigned bit_pos, Label* label) { in Tbnz() argument 1035 tbz(rt, bit_pos, &done); in Tbnz() 1038 tbnz(rt, bit_pos, label); in Tbnz() 1043 void TurboAssembler::Tbz(const Register& rt, unsigned bit_pos, Label* label) { in Tbz() argument 1051 tbnz(rt, bit_pos, &done); in Tbz() 1054 tbz(rt, bit_pos, label); in Tbz()
|
D | macro-assembler-arm64.h | 505 void Tbnz(const Register& rt, unsigned bit_pos, Label* label); 506 void Tbz(const Register& rt, unsigned bit_pos, Label* label);
|
/third_party/toybox/toys/pending/ |
D | xzcat.c | 615 uint32_t bit_pos; in bcj_ia64() local 635 for (slot = 0, bit_pos = 5; slot < 3; ++slot, bit_pos += 41) { in bcj_ia64() 639 byte_pos = bit_pos >> 3; in bcj_ia64() 640 bit_res = bit_pos & 7; in bcj_ia64()
|
/third_party/vixl/src/aarch64/ |
D | macro-assembler-aarch64.cc | 716 void MacroAssembler::Tbnz(const Register& rt, unsigned bit_pos, Label* label) { in Emit() argument 731 tbz(rt, bit_pos, &done); in Emit() 740 tbnz(rt, bit_pos, label); in Emit() 745 void MacroAssembler::Tbz(const Register& rt, unsigned bit_pos, Label* label) { in Emit() argument 760 tbnz(rt, bit_pos, &done); in Emit() 769 tbz(rt, bit_pos, label); in Emit()
|
D | assembler-aarch64.cc | 420 void Assembler::tbz(const Register& rt, unsigned bit_pos, int64_t imm14) { in tbz() argument 421 VIXL_ASSERT(rt.Is64Bits() || (rt.Is32Bits() && (bit_pos < kWRegSize))); in tbz() 422 Emit(TBZ | ImmTestBranchBit(bit_pos) | ImmTestBranch(imm14) | Rt(rt)); in tbz() 426 void Assembler::tbz(const Register& rt, unsigned bit_pos, Label* label) { in tbz() argument 429 tbz(rt, bit_pos, static_cast<int>(offset)); in tbz() 433 void Assembler::tbnz(const Register& rt, unsigned bit_pos, int64_t imm14) { in tbnz() argument 434 VIXL_ASSERT(rt.Is64Bits() || (rt.Is32Bits() && (bit_pos < kWRegSize))); in tbnz() 435 Emit(TBNZ | ImmTestBranchBit(bit_pos) | ImmTestBranch(imm14) | Rt(rt)); in tbnz() 439 void Assembler::tbnz(const Register& rt, unsigned bit_pos, Label* label) { in tbnz() argument 442 tbnz(rt, bit_pos, static_cast<int>(offset)); in tbnz()
|
D | assembler-aarch64.h | 637 void tbz(const Register& rt, unsigned bit_pos, Label* label); 640 void tbz(const Register& rt, unsigned bit_pos, int64_t imm14); 643 void tbnz(const Register& rt, unsigned bit_pos, Label* label); 646 void tbnz(const Register& rt, unsigned bit_pos, int64_t imm14); 7092 static Instr ImmTestBranchBit(unsigned bit_pos) { in ImmTestBranchBit() argument 7093 VIXL_ASSERT(IsUint6(bit_pos)); in ImmTestBranchBit() 7095 unsigned bit5 = bit_pos << (ImmTestBranchBit5_offset - 5); in ImmTestBranchBit() 7096 unsigned bit40 = bit_pos << ImmTestBranchBit40_offset; in ImmTestBranchBit()
|
/third_party/node/deps/v8/src/execution/arm64/ |
D | simulator-arm64.cc | 1754 unsigned bit_pos = in VisitTestBranch() local 1756 bool take_branch = ((xreg(instr->Rt()) & (1ULL << bit_pos)) == 0); in VisitTestBranch()
|