id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
7,970
void ppc_hash64_unmap_hptes(PowerPCCPU *cpu, const ppc_hash_pte64_t *hptes, hwaddr ptex, int n) { if (cpu->env.external_htab == MMU_HASH64_KVM_MANAGED_HPT) { g_free((void *)hptes); } else if (!cpu->env.external_htab) { address_space_unmap(CPU(cpu)->as, (void *)h...
false
qemu
e57ca75ce3b2bd33102573a8c0555d62e1bcfceb
void ppc_hash64_unmap_hptes(PowerPCCPU *cpu, const ppc_hash_pte64_t *hptes, hwaddr ptex, int n) { if (cpu->env.external_htab == MMU_HASH64_KVM_MANAGED_HPT) { g_free((void *)hptes); } else if (!cpu->env.external_htab) { address_space_unmap(CPU(cpu)->as, (void *)h...
{ "code": [], "line_no": [] }
void FUNC_0(PowerPCCPU *VAR_0, const ppc_hash_pte64_t *VAR_1, hwaddr VAR_2, int VAR_3) { if (VAR_0->env.external_htab == MMU_HASH64_KVM_MANAGED_HPT) { g_free((void *)VAR_1); } else if (!VAR_0->env.external_htab) { address_space_unmap(CPU(VAR_0)->as, (void *)VAR_...
[ "void FUNC_0(PowerPCCPU *VAR_0, const ppc_hash_pte64_t *VAR_1,\nhwaddr VAR_2, int VAR_3)\n{", "if (VAR_0->env.external_htab == MMU_HASH64_KVM_MANAGED_HPT) {", "g_free((void *)VAR_1);", "} else if (!VAR_0->env.external_htab) {", "address_space_unmap(CPU(VAR_0)->as, (void *)VAR_1, VAR_3 * HASH_PTE_SIZE_64,\nf...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ] ]
7,971
static void tcg_reg_sync(TCGContext *s, TCGReg reg, TCGRegSet allocated_regs) { TCGTemp *ts = s->reg_to_temp[reg]; assert(ts->val_type == TEMP_VAL_REG); if (!ts->mem_coherent && !ts->fixed_reg) { if (!ts->mem_allocated) { temp_allocate_frame(s, temp_idx(s, ts)); } else i...
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static void tcg_reg_sync(TCGContext *s, TCGReg reg, TCGRegSet allocated_regs) { TCGTemp *ts = s->reg_to_temp[reg]; assert(ts->val_type == TEMP_VAL_REG); if (!ts->mem_coherent && !ts->fixed_reg) { if (!ts->mem_allocated) { temp_allocate_frame(s, temp_idx(s, ts)); } else i...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGReg VAR_1, TCGRegSet VAR_2) { TCGTemp *ts = VAR_0->reg_to_temp[VAR_1]; assert(ts->val_type == TEMP_VAL_REG); if (!ts->mem_coherent && !ts->fixed_reg) { if (!ts->mem_allocated) { temp_allocate_frame(VAR_0, temp_idx(VAR_0, ts)); } e...
[ "static void FUNC_0(TCGContext *VAR_0, TCGReg VAR_1, TCGRegSet VAR_2)\n{", "TCGTemp *ts = VAR_0->reg_to_temp[VAR_1];", "assert(ts->val_type == TEMP_VAL_REG);", "if (!ts->mem_coherent && !ts->fixed_reg) {", "if (!ts->mem_allocated) {", "temp_allocate_frame(VAR_0, temp_idx(VAR_0, ts));", "} else if (ts->i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
7,973
static QOSState *pci_test_start(int socket) { const char *cmd = "-netdev socket,fd=%d,id=hs0 -device " "virtio-net-pci,netdev=hs0"; return qtest_pc_boot(cmd, socket); }
false
qemu
30ca440eec9fe1d7eec5a48addac656438778278
static QOSState *pci_test_start(int socket) { const char *cmd = "-netdev socket,fd=%d,id=hs0 -device " "virtio-net-pci,netdev=hs0"; return qtest_pc_boot(cmd, socket); }
{ "code": [], "line_no": [] }
static QOSState *FUNC_0(int socket) { const char *VAR_0 = "-netdev socket,fd=%d,id=hs0 -device " "virtio-net-pci,netdev=hs0"; return qtest_pc_boot(VAR_0, socket); }
[ "static QOSState *FUNC_0(int socket)\n{", "const char *VAR_0 = \"-netdev socket,fd=%d,id=hs0 -device \"\n\"virtio-net-pci,netdev=hs0\";", "return qtest_pc_boot(VAR_0, socket);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ] ]
7,974
static int spapr_populate_pci_child_dt(PCIDevice *dev, void *fdt, int offset, sPAPRPHBState *sphb) { ResourceProps rp; bool is_bridge = false; int pci_status, err; char *buf = NULL; uint32_t drc_index = spapr_phb_get_pci_drc_index(sphb, dev); uint32...
false
qemu
82516263cead40ac240ae5fb2a6f5fc0fda9614c
static int spapr_populate_pci_child_dt(PCIDevice *dev, void *fdt, int offset, sPAPRPHBState *sphb) { ResourceProps rp; bool is_bridge = false; int pci_status, err; char *buf = NULL; uint32_t drc_index = spapr_phb_get_pci_drc_index(sphb, dev); uint32...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0, void *VAR_1, int VAR_2, sPAPRPHBState *VAR_3) { ResourceProps rp; bool is_bridge = false; int VAR_4, VAR_5; char *VAR_6 = NULL; uint32_t drc_index = spapr_phb_get_pci_drc_index(VAR_3, VAR_0); uint32_t ccode = pci_...
[ "static int FUNC_0(PCIDevice *VAR_0, void *VAR_1, int VAR_2,\nsPAPRPHBState *VAR_3)\n{", "ResourceProps rp;", "bool is_bridge = false;", "int VAR_4, VAR_5;", "char *VAR_6 = NULL;", "uint32_t drc_index = spapr_phb_get_pci_drc_index(VAR_3, VAR_0);", "uint32_t ccode = pci_default_read_config(VAR_0, PCI_CLA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51, 53 ...
7,975
static int v9fs_xattr_write(V9fsState *s, V9fsPDU *pdu, V9fsFidState *fidp, uint64_t off, uint32_t count, struct iovec *sg, int cnt) { int i, to_copy; ssize_t err = 0; int write_count; int64_t xattr_len; size_t offset = 7; xatt...
false
qemu
ddca7f86ac022289840e0200fd4050b2b58e9176
static int v9fs_xattr_write(V9fsState *s, V9fsPDU *pdu, V9fsFidState *fidp, uint64_t off, uint32_t count, struct iovec *sg, int cnt) { int i, to_copy; ssize_t err = 0; int write_count; int64_t xattr_len; size_t offset = 7; xatt...
{ "code": [], "line_no": [] }
static int FUNC_0(V9fsState *VAR_0, V9fsPDU *VAR_1, V9fsFidState *VAR_2, uint64_t VAR_3, uint32_t VAR_4, struct iovec *VAR_5, int VAR_6) { int VAR_7, VAR_8; ssize_t err = 0; int VAR_9; int64_t xattr_len; size_t offset = 7; xatt...
[ "static int FUNC_0(V9fsState *VAR_0, V9fsPDU *VAR_1, V9fsFidState *VAR_2,\nuint64_t VAR_3, uint32_t VAR_4,\nstruct iovec *VAR_5, int VAR_6)\n{", "int VAR_7, VAR_8;", "ssize_t err = 0;", "int VAR_9;", "int64_t xattr_len;", "size_t offset = 7;", "xattr_len = VAR_2->fs.xattr.len;", "VAR_9 = xattr_len - V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 59 ], [ 61 ...
7,976
static int x86_cpu_filter_features(X86CPU *cpu) { CPUX86State *env = &cpu->env; FeatureWord w; int rv = 0; for (w = 0; w < FEATURE_WORDS; w++) { uint32_t host_feat = x86_cpu_get_supported_feature_word(w, false); uint32_t requested_features = env->features[w]; ...
false
qemu
b8d834a00fa3ed4dad7d371e1a00938a126a54a0
static int x86_cpu_filter_features(X86CPU *cpu) { CPUX86State *env = &cpu->env; FeatureWord w; int rv = 0; for (w = 0; w < FEATURE_WORDS; w++) { uint32_t host_feat = x86_cpu_get_supported_feature_word(w, false); uint32_t requested_features = env->features[w]; ...
{ "code": [], "line_no": [] }
static int FUNC_0(X86CPU *VAR_0) { CPUX86State *env = &VAR_0->env; FeatureWord w; int VAR_1 = 0; for (w = 0; w < FEATURE_WORDS; w++) { uint32_t host_feat = x86_cpu_get_supported_feature_word(w, false); uint32_t requested_features = env->features[w]; env->fe...
[ "static int FUNC_0(X86CPU *VAR_0)\n{", "CPUX86State *env = &VAR_0->env;", "FeatureWord w;", "int VAR_1 = 0;", "for (w = 0; w < FEATURE_WORDS; w++) {", "uint32_t host_feat =\nx86_cpu_get_supported_feature_word(w, false);", "uint32_t requested_features = env->features[w];", "env->features[w] &= host_fea...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
7,978
static int decode_mb(H264Context *h){ MpegEncContext * const s = &h->s; const int mb_xy= s->mb_x + s->mb_y*s->mb_stride; int mb_type, partition_count, cbp; s->dsp.clear_blocks(h->mb); //FIXME avoid if allready clear (move after skip handlong? tprintf("pic:%d mb:%d/%d\n", h->frame_num, s...
false
FFmpeg
53c05b1eacd5f7dbfa3651b45e797adaea0a5ff8
static int decode_mb(H264Context *h){ MpegEncContext * const s = &h->s; const int mb_xy= s->mb_x + s->mb_y*s->mb_stride; int mb_type, partition_count, cbp; s->dsp.clear_blocks(h->mb); tprintf("pic:%d mb:%d/%d\n", h->frame_num, s->mb_x, s->mb_y); cbp = 0; if(h->slice_type != I_...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0){ MpegEncContext * const s = &VAR_0->s; const int VAR_1= s->mb_x + s->mb_y*s->mb_stride; int VAR_2, VAR_3, VAR_4; s->dsp.clear_blocks(VAR_0->mb); tprintf("pic:%d mb:%d/%d\n", VAR_0->frame_num, s->mb_x, s->mb_y); VAR_4 = 0; if(VAR_0->slice_t...
[ "static int FUNC_0(H264Context *VAR_0){", "MpegEncContext * const s = &VAR_0->s;", "const int VAR_1= s->mb_x + s->mb_y*s->mb_stride;", "int VAR_2, VAR_3, VAR_4;", "s->dsp.clear_blocks(VAR_0->mb);", "tprintf(\"pic:%d mb:%d/%d\\n\", VAR_0->frame_num, s->mb_x, s->mb_y);", "VAR_4 = 0;", "if(VAR_0->slice_t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55, 57 ], [ 61 ], ...
7,979
static void decode_vui(GetBitContext *gb, AVCodecContext *avctx, int apply_defdispwin, HEVCSPS *sps) { VUI *vui = &sps->vui; int sar_present; av_log(avctx, AV_LOG_DEBUG, "Decoding VUI\n"); sar_present = get_bits1(gb); if (sar_present) { uint8_t sar...
false
FFmpeg
ff9db5cfd14558df9cfcc54d6c062bc34bf1f341
static void decode_vui(GetBitContext *gb, AVCodecContext *avctx, int apply_defdispwin, HEVCSPS *sps) { VUI *vui = &sps->vui; int sar_present; av_log(avctx, AV_LOG_DEBUG, "Decoding VUI\n"); sar_present = get_bits1(gb); if (sar_present) { uint8_t sar...
{ "code": [], "line_no": [] }
static void FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1, int VAR_2, HEVCSPS *VAR_3) { VUI *vui = &VAR_3->vui; int VAR_4; av_log(VAR_1, AV_LOG_DEBUG, "Decoding VUI\n"); VAR_4 = get_bits1(VAR_0); if (VAR_4) { uint8_t sar_idx = get_bits(VAR_0, ...
[ "static void FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1,\nint VAR_2, HEVCSPS *VAR_3)\n{", "VUI *vui = &VAR_3->vui;", "int VAR_4;", "av_log(VAR_1, AV_LOG_DEBUG, \"Decoding VUI\\n\");", "VAR_4 = get_bits1(VAR_0);", "if (VAR_4) {", "uint8_t sar_idx = get_bits(VAR_0, 8);", "if (sar_idx < ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 51 ], [ 53 ...
7,981
static int ivf_write_trailer(AVFormatContext *s) { AVIOContext *pb = s->pb; if (pb->seekable) { IVFEncContext *ctx = s->priv_data; size_t end = avio_tell(pb); avio_seek(pb, 24, SEEK_SET); avio_wl64(pb, ctx->frame_cnt * ctx->sum_delta_pts / (ctx->frame_cnt - 1)); ...
true
FFmpeg
5c8467a07c654f6acd9e8e3a436cd5b746bb2f44
static int ivf_write_trailer(AVFormatContext *s) { AVIOContext *pb = s->pb; if (pb->seekable) { IVFEncContext *ctx = s->priv_data; size_t end = avio_tell(pb); avio_seek(pb, 24, SEEK_SET); avio_wl64(pb, ctx->frame_cnt * ctx->sum_delta_pts / (ctx->frame_cnt - 1)); ...
{ "code": [ " if (pb->seekable) {", " IVFEncContext *ctx = s->priv_data;" ], "line_no": [ 7, 9 ] }
static int FUNC_0(AVFormatContext *VAR_0) { AVIOContext *pb = VAR_0->pb; if (pb->seekable) { IVFEncContext *ctx = VAR_0->priv_data; size_t end = avio_tell(pb); avio_seek(pb, 24, SEEK_SET); avio_wl64(pb, ctx->frame_cnt * ctx->sum_delta_pts / (ctx->frame_cnt - 1)); ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVIOContext *pb = VAR_0->pb;", "if (pb->seekable) {", "IVFEncContext *ctx = VAR_0->priv_data;", "size_t end = avio_tell(pb);", "avio_seek(pb, 24, SEEK_SET);", "avio_wl64(pb, ctx->frame_cnt * ctx->sum_delta_pts / (ctx->frame_cnt - 1));", "avio_seek(pb, e...
[ 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
7,983
static int main_loop(void) { int ret, timeout; #ifdef CONFIG_PROFILER int64_t ti; #endif CPUState *env; cur_cpu = first_cpu; next_cpu = cur_cpu->next_cpu ?: first_cpu; for(;;) { if (vm_running) { for(;;) { /* get next cpu */ en...
true
qemu
98448f58c10033a0f7fcd0673cce4626506403fa
static int main_loop(void) { int ret, timeout; #ifdef CONFIG_PROFILER int64_t ti; #endif CPUState *env; cur_cpu = first_cpu; next_cpu = cur_cpu->next_cpu ?: first_cpu; for(;;) { if (vm_running) { for(;;) { env = next_cpu; #if...
{ "code": [ " if (shutdown_requested)" ], "line_no": [ 261 ] }
static int FUNC_0(void) { int VAR_0, VAR_1; #ifdef CONFIG_PROFILER int64_t ti; #endif CPUState *env; cur_cpu = first_cpu; next_cpu = cur_cpu->next_cpu ?: first_cpu; for(;;) { if (vm_running) { for(;;) { env = next_cpu; #ifdef...
[ "static int FUNC_0(void)\n{", "int VAR_0, VAR_1;", "#ifdef CONFIG_PROFILER\nint64_t ti;", "#endif\nCPUState *env;", "cur_cpu = first_cpu;", "next_cpu = cur_cpu->next_cpu ?: first_cpu;", "for(;;) {", "if (vm_running) {", "for(;;) {", "env = next_cpu;", "#ifdef CONFIG_PROFILER\nti = profile_getclo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
7,984
int acpi_table_add(const QemuOpts *opts) { AcpiTableOptions *hdrs = NULL; Error *err = NULL; char **pathnames = NULL; char **cur; size_t len, start, allen; bool has_header; int changed; int r; struct acpi_table_header hdr; char unsigned *table_start; { ...
true
qemu
e980f2bf0a39cb524259bb70084e0f75b92c8f39
int acpi_table_add(const QemuOpts *opts) { AcpiTableOptions *hdrs = NULL; Error *err = NULL; char **pathnames = NULL; char **cur; size_t len, start, allen; bool has_header; int changed; int r; struct acpi_table_header hdr; char unsigned *table_start; { ...
{ "code": [ " size_t len, start, allen;", " bool has_header;", " int changed;", " int r;", " struct acpi_table_header hdr;", " char unsigned *table_start;", " has_header = hdrs->has_file;", " if (!acpi_tables) {", " allen = sizeof(uint16_t);", " ...
int FUNC_0(const QemuOpts *VAR_0) { AcpiTableOptions *hdrs = NULL; Error *err = NULL; char **VAR_1 = NULL; char **VAR_2; size_t len, start, allen; bool has_header; int VAR_3; int VAR_4; struct acpi_table_header VAR_5; char unsigned *VAR_6; { OptsVisit...
[ "int FUNC_0(const QemuOpts *VAR_0)\n{", "AcpiTableOptions *hdrs = NULL;", "Error *err = NULL;", "char **VAR_1 = NULL;", "char **VAR_2;", "size_t len, start, allen;", "bool has_header;", "int VAR_3;", "int VAR_4;", "struct acpi_table_header VAR_5;", "char unsigned *VAR_6;", "{", "OptsVisitor ...
[ 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
7,985
static int mov_read_stsz(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = (MOVStreamContext *)st->priv_data; int entries, i; print_atom("stsz", atom); get_byte(pb); /* version */ get_byte(pb); get_byte(pb);...
true
FFmpeg
568e18b15e2ddf494fd8926707d34ca08c8edce5
static int mov_read_stsz(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = (MOVStreamContext *)st->priv_data; int entries, i; print_atom("stsz", atom); get_byte(pb); get_byte(pb); get_byte(pb); get_byte(pb)...
{ "code": [ " int entries, i;", " int entries, i;", " int entries, i;", " int entries, i;", " int entries, i;" ], "line_no": [ 9, 9, 9, 9, 9 ] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; MOVStreamContext *sc = (MOVStreamContext *)st->priv_data; int VAR_3, VAR_4; print_atom("stsz", VAR_2); get_byte(VAR_1); get_byte(VAR_1); get_byte...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "MOVStreamContext *sc = (MOVStreamContext *)st->priv_data;", "int VAR_3, VAR_4;", "print_atom(\"stsz\", VAR_2);", "get_byte(VAR_1);", "get_byte(VAR_1); get_by...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49, 53, 55 ...
7,986
CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts, void (*init)(struct CharDriverState *s)) { CharDriverState *chr; int i; int ret; if (qemu_opts_id(opts) == NULL) { fprintf(stderr, "chardev: no id specified\n"); return NULL; } ...
true
qemu
1f51470d044852592922f91000e741c381582cdc
CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts, void (*init)(struct CharDriverState *s)) { CharDriverState *chr; int i; int ret; if (qemu_opts_id(opts) == NULL) { fprintf(stderr, "chardev: no id specified\n"); return NULL; } ...
{ "code": [ " int ret;", " int ret;", " int ret;", " ret = backend_table[i].open(opts, &chr);", " if (ret < 0) {", " fprintf(stderr, \"chardev: opening backend \\\"%s\\\" failed: %s\\n\",", " qemu_opt_get(opts, \"backend\"), strerror(-ret));" ], "li...
CharDriverState *FUNC_0(QemuOpts *opts, void (*init)(struct CharDriverState *s)) { CharDriverState *chr; int VAR_0; int VAR_1; if (qemu_opts_id(opts) == NULL) { fprintf(stderr, "chardev: no id specified\n"); return NULL; } if (qem...
[ "CharDriverState *FUNC_0(QemuOpts *opts,\nvoid (*init)(struct CharDriverState *s))\n{", "CharDriverState *chr;", "int VAR_0;", "int VAR_1;", "if (qemu_opts_id(opts) == NULL) {", "fprintf(stderr, \"chardev: no id specified\\n\");", "return NULL;", "}", "if (qemu_opt_get(opts, \"backend\") == NULL) {"...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ...
7,987
static void bastardized_rice_decompress(ALACContext *alac, int32_t *output_buffer, int output_size, int readsamplesize, /* arg_10 */ int rice_initialhistory, /* arg424->b */ ...
true
FFmpeg
a8469223f6bb756a44f6579439fcae24ccc739b1
static void bastardized_rice_decompress(ALACContext *alac, int32_t *output_buffer, int output_size, int readsamplesize, int rice_initialhistory, int...
{ "code": [ "static void bastardized_rice_decompress(ALACContext *alac," ], "line_no": [ 1 ] }
static void FUNC_0(ALACContext *VAR_0, int32_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, ...
[ "static void FUNC_0(ALACContext *VAR_0,\nint32_t *VAR_1,\nint VAR_2,\nint VAR_3,\nint VAR_4,\nint VAR_5,\nint VAR_6,\nint VAR_7\n)\n{", "int VAR_8;", "unsigned int VAR_9 = VAR_4;", "int VAR_10 = 0;", "for (VAR_8 = 0; VAR_8 < VAR_2; VAR_8++) {", "int32_t x;", "int32_t x_modified;", "int32_t final_val;"...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 65 ...
7,988
static int vdadec_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { VDADecoderContext *ctx = avctx->priv_data; AVFrame *pic = data; int ret; ret = ff_h264_decoder.decode(avctx, data, got_frame, avpkt); if (*got_frame) { AVBufferRef *buffer = pic->buf[0]; ...
true
FFmpeg
499b82f604616a6ce7de4bd8e15f4698702c1e6a
static int vdadec_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { VDADecoderContext *ctx = avctx->priv_data; AVFrame *pic = data; int ret; ret = ff_h264_decoder.decode(avctx, data, got_frame, avpkt); if (*got_frame) { AVBufferRef *buffer = pic->buf[0]; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { VDADecoderContext *ctx = VAR_0->priv_data; AVFrame *pic = VAR_1; int VAR_4; VAR_4 = ff_h264_decoder.decode(VAR_0, VAR_1, VAR_2, VAR_3); if (*VAR_2) { AVBufferRef *buffer = pic->buf[0]; VDABuf...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "VDADecoderContext *ctx = VAR_0->priv_data;", "AVFrame *pic = VAR_1;", "int VAR_4;", "VAR_4 = ff_h264_decoder.decode(VAR_0, VAR_1, VAR_2, VAR_3);", "if (*VAR_2) {", "AVBufferRef *buffer = pic->buf[0];", "VDABuffe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ ...
7,990
static int target_pread(int fd, abi_ulong ptr, abi_ulong len, abi_ulong offset) { void *buf; int ret; buf = lock_user(VERIFY_WRITE, ptr, len, 0); ret = pread(fd, buf, len, offset); unlock_user(buf, ptr, len); return ret;
true
qemu
e5a869ed569a97fa676e9827952629086ec41f4e
static int target_pread(int fd, abi_ulong ptr, abi_ulong len, abi_ulong offset) { void *buf; int ret; buf = lock_user(VERIFY_WRITE, ptr, len, 0); ret = pread(fd, buf, len, offset); unlock_user(buf, ptr, len); return ret;
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, abi_ulong VAR_1, abi_ulong VAR_2, abi_ulong VAR_3) { void *VAR_4; int VAR_5; VAR_4 = lock_user(VERIFY_WRITE, VAR_1, VAR_2, 0); VAR_5 = pread(VAR_0, VAR_4, VAR_2, VAR_3); unlock_user(VAR_4, VAR_1, VAR_2); return VAR_5;
[ "static int FUNC_0(int VAR_0, abi_ulong VAR_1, abi_ulong VAR_2,\nabi_ulong VAR_3)\n{", "void *VAR_4;", "int VAR_5;", "VAR_4 = lock_user(VERIFY_WRITE, VAR_1, VAR_2, 0);", "VAR_5 = pread(VAR_0, VAR_4, VAR_2, VAR_3);", "unlock_user(VAR_4, VAR_1, VAR_2);", "return VAR_5;" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 18 ], [ 23 ], [ 25 ] ]
7,991
void helper_lret_protected(int shift, int addend) { helper_ret_protected(shift, 0, addend); #ifdef CONFIG_KQEMU if (kqemu_is_ok(env)) { env->exception_index = -1; cpu_loop_exit(); } #endif }
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
void helper_lret_protected(int shift, int addend) { helper_ret_protected(shift, 0, addend); #ifdef CONFIG_KQEMU if (kqemu_is_ok(env)) { env->exception_index = -1; cpu_loop_exit(); } #endif }
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0, int VAR_1) { helper_ret_protected(VAR_0, 0, VAR_1); #ifdef CONFIG_KQEMU if (kqemu_is_ok(env)) { env->exception_index = -1; cpu_loop_exit(); } #endif }
[ "void FUNC_0(int VAR_0, int VAR_1)\n{", "helper_ret_protected(VAR_0, 0, VAR_1);", "#ifdef CONFIG_KQEMU\nif (kqemu_is_ok(env)) {", "env->exception_index = -1;", "cpu_loop_exit();", "}", "#endif\n}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ] ]
7,993
uint32_t gic_acknowledge_irq(GICState *s, int cpu) { int ret, irq, src; int cm = 1 << cpu; irq = s->current_pending[cpu]; if (irq == 1023 || GIC_GET_PRIORITY(irq, cpu) >= s->running_priority[cpu]) { DPRINTF("ACK no pending IRQ\n"); return 1023; } s->last_act...
false
qemu
c5619bf9e8935aeb972c0bd935549e9ee0a739f2
uint32_t gic_acknowledge_irq(GICState *s, int cpu) { int ret, irq, src; int cm = 1 << cpu; irq = s->current_pending[cpu]; if (irq == 1023 || GIC_GET_PRIORITY(irq, cpu) >= s->running_priority[cpu]) { DPRINTF("ACK no pending IRQ\n"); return 1023; } s->last_act...
{ "code": [], "line_no": [] }
uint32_t FUNC_0(GICState *s, int cpu) { int VAR_0, VAR_1, VAR_2; int VAR_3 = 1 << cpu; VAR_1 = s->current_pending[cpu]; if (VAR_1 == 1023 || GIC_GET_PRIORITY(VAR_1, cpu) >= s->running_priority[cpu]) { DPRINTF("ACK no pending IRQ\n"); return 1023; } s->last_a...
[ "uint32_t FUNC_0(GICState *s, int cpu)\n{", "int VAR_0, VAR_1, VAR_2;", "int VAR_3 = 1 << cpu;", "VAR_1 = s->current_pending[cpu];", "if (VAR_1 == 1023\n|| GIC_GET_PRIORITY(VAR_1, cpu) >= s->running_priority[cpu]) {", "DPRINTF(\"ACK no pending IRQ\\n\");", "return 1023;", "}", "s->last_active[VAR_1]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [...
7,994
av_cold void ff_dsputil_init_ppc(DSPContext *c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; // Common optimizations whether AltiVec is available or not if (!high_bit_depth) { switch (check_dcbzl_effect()) { case 32: c->clear_blocks = c...
false
FFmpeg
f61bece684d9685b07895508e6c1c733b5564ccf
av_cold void ff_dsputil_init_ppc(DSPContext *c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; if (!high_bit_depth) { switch (check_dcbzl_effect()) { case 32: c->clear_blocks = clear_blocks_dcbz32_ppc; break; case 1...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx) { const int VAR_0 = avctx->bits_per_raw_sample > 8; if (!VAR_0) { switch (check_dcbzl_effect()) { case 32: c->clear_blocks = clear_blocks_dcbz32_ppc; break; case 128: c->clear_block...
[ "av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx)\n{", "const int VAR_0 = avctx->bits_per_raw_sample > 8;", "if (!VAR_0) {", "switch (check_dcbzl_effect()) {", "case 32:\nc->clear_blocks = clear_blocks_dcbz32_ppc;", "break;", "case 128:\nc->clear_blocks = clear_blocks_dcbz128_ppc;", "break;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51, 53, 55 ], ...
7,996
static IOMMUTLBEntry pbm_translate_iommu(MemoryRegion *iommu, hwaddr addr, bool is_write) { IOMMUState *is = container_of(iommu, IOMMUState, iommu); hwaddr baseaddr, offset; uint64_t tte; uint32_t tsbsize; IOMMUTLBEntry ret = { .target_as = &a...
false
qemu
bf55b7afce53718ef96f4e6616da62c0ccac37dd
static IOMMUTLBEntry pbm_translate_iommu(MemoryRegion *iommu, hwaddr addr, bool is_write) { IOMMUState *is = container_of(iommu, IOMMUState, iommu); hwaddr baseaddr, offset; uint64_t tte; uint32_t tsbsize; IOMMUTLBEntry ret = { .target_as = &a...
{ "code": [], "line_no": [] }
static IOMMUTLBEntry FUNC_0(MemoryRegion *iommu, hwaddr addr, bool is_write) { IOMMUState *is = container_of(iommu, IOMMUState, iommu); hwaddr baseaddr, offset; uint64_t tte; uint32_t tsbsize; IOMMUTLBEntry ret = { .target_as = &address_space_...
[ "static IOMMUTLBEntry FUNC_0(MemoryRegion *iommu, hwaddr addr,\nbool is_write)\n{", "IOMMUState *is = container_of(iommu, IOMMUState, iommu);", "hwaddr baseaddr, offset;", "uint64_t tte;", "uint32_t tsbsize;", "IOMMUTLBEntry ret = {", ".target_as = &address_space_memory,\n.iova = 0,\n.translated_addr = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23, 25, 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 57 ...
7,997
static void coroutine_fn mirror_iteration(MirrorBlockJob *s) { BlockDriverState *source = s->common.bs; int nb_sectors, sectors_per_chunk, nb_chunks; int64_t end, sector_num, next_chunk, next_sector, hbitmap_next_sector; MirrorOp *op; s->sector_num = hbitmap_iter_next(&s->hbi); if (s->s...
false
qemu
cc8c9d6c6f28e4e376a6561a2a31524fd069bc2d
static void coroutine_fn mirror_iteration(MirrorBlockJob *s) { BlockDriverState *source = s->common.bs; int nb_sectors, sectors_per_chunk, nb_chunks; int64_t end, sector_num, next_chunk, next_sector, hbitmap_next_sector; MirrorOp *op; s->sector_num = hbitmap_iter_next(&s->hbi); if (s->s...
{ "code": [], "line_no": [] }
static void VAR_0 mirror_iteration(MirrorBlockJob *s) { BlockDriverState *source = s->common.bs; int nb_sectors, sectors_per_chunk, nb_chunks; int64_t end, sector_num, next_chunk, next_sector, hbitmap_next_sector; MirrorOp *op; s->sector_num = hbitmap_iter_next(&s->hbi); if (s->sector_n...
[ "static void VAR_0 mirror_iteration(MirrorBlockJob *s)\n{", "BlockDriverState *source = s->common.bs;", "int nb_sectors, sectors_per_chunk, nb_chunks;", "int64_t end, sector_num, next_chunk, next_sector, hbitmap_next_sector;", "MirrorOp *op;", "s->sector_num = hbitmap_iter_next(&s->hbi);", "if (s->secto...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 69 ], [ 71 ], [ 73 ], [...
7,999
static int s390_cpu_initial_reset(S390CPU *cpu) { CPUState *cs = CPU(cpu); CPUS390XState *env = &cpu->env; int i; s390_del_running_cpu(cpu); if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL) < 0) { perror("cannot init reset vcpu"); } /* Manually zero out all registers...
false
qemu
f7d3e466764e0258d0883d90edb7e98ad0b56e18
static int s390_cpu_initial_reset(S390CPU *cpu) { CPUState *cs = CPU(cpu); CPUS390XState *env = &cpu->env; int i; s390_del_running_cpu(cpu); if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL) < 0) { perror("cannot init reset vcpu"); } cpu_synchronize_state(cs); ...
{ "code": [], "line_no": [] }
static int FUNC_0(S390CPU *VAR_0) { CPUState *cs = CPU(VAR_0); CPUS390XState *env = &VAR_0->env; int VAR_1; s390_del_running_cpu(VAR_0); if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL) < 0) { perror("cannot init reset vcpu"); } cpu_synchronize_state(cs); ...
[ "static int FUNC_0(S390CPU *VAR_0)\n{", "CPUState *cs = CPU(VAR_0);", "CPUS390XState *env = &VAR_0->env;", "int VAR_1;", "s390_del_running_cpu(VAR_0);", "if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL) < 0) {", "perror(\"cannot init reset vcpu\");", "}", "cpu_synchronize_state(cs);", "for (VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
8,000
void virtio_setup_block(struct subchannel_id schid) { struct vq_info_block info; struct vq_config_block config = {}; virtio_reset(schid); config.index = 0; if (run_ccw(schid, CCW_CMD_READ_VQ_CONF, &config, sizeof(config))) { virtio_panic("Could not get block device configuration\n...
false
qemu
abd696e4f74a9d30801c6ae2693efe4e5979c2f2
void virtio_setup_block(struct subchannel_id schid) { struct vq_info_block info; struct vq_config_block config = {}; virtio_reset(schid); config.index = 0; if (run_ccw(schid, CCW_CMD_READ_VQ_CONF, &config, sizeof(config))) { virtio_panic("Could not get block device configuration\n...
{ "code": [], "line_no": [] }
void FUNC_0(struct subchannel_id VAR_0) { struct vq_info_block VAR_1; struct vq_config_block VAR_2 = {}; virtio_reset(VAR_0); VAR_2.index = 0; if (run_ccw(VAR_0, CCW_CMD_READ_VQ_CONF, &VAR_2, sizeof(VAR_2))) { virtio_panic("Could not get block device configuration\n"); } ...
[ "void FUNC_0(struct subchannel_id VAR_0)\n{", "struct vq_info_block VAR_1;", "struct vq_config_block VAR_2 = {};", "virtio_reset(VAR_0);", "VAR_2.index = 0;", "if (run_ccw(VAR_0, CCW_CMD_READ_VQ_CONF, &VAR_2, sizeof(VAR_2))) {", "virtio_panic(\"Could not get block device configuration\\n\");", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
8,001
static int v9fs_do_open2(V9fsState *s, V9fsString *path, int flags, mode_t mode) { return s->ops->open2(&s->ctx, path->data, flags, mode); }
false
qemu
4750a96f6baf8949cc04a0c5b7167606544a4401
static int v9fs_do_open2(V9fsState *s, V9fsString *path, int flags, mode_t mode) { return s->ops->open2(&s->ctx, path->data, flags, mode); }
{ "code": [], "line_no": [] }
static int FUNC_0(V9fsState *VAR_0, V9fsString *VAR_1, int VAR_2, mode_t VAR_3) { return VAR_0->ops->open2(&VAR_0->ctx, VAR_1->data, VAR_2, VAR_3); }
[ "static int FUNC_0(V9fsState *VAR_0, V9fsString *VAR_1, int VAR_2, mode_t VAR_3)\n{", "return VAR_0->ops->open2(&VAR_0->ctx, VAR_1->data, VAR_2, VAR_3);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
8,002
udp_listen(Slirp *slirp, uint32_t haddr, u_int hport, uint32_t laddr, u_int lport, int flags) { struct sockaddr_in addr; struct socket *so; socklen_t addrlen = sizeof(struct sockaddr_in); so = socreate(slirp); if (!so) { return NULL; } so->s = qemu_socket(AF_INET,SOCK_DGRAM,0); so->...
false
qemu
5379229a2708df3a1506113315214c3ce5325859
udp_listen(Slirp *slirp, uint32_t haddr, u_int hport, uint32_t laddr, u_int lport, int flags) { struct sockaddr_in addr; struct socket *so; socklen_t addrlen = sizeof(struct sockaddr_in); so = socreate(slirp); if (!so) { return NULL; } so->s = qemu_socket(AF_INET,SOCK_DGRAM,0); so->...
{ "code": [], "line_no": [] }
FUNC_0(Slirp *VAR_0, uint32_t VAR_1, u_int VAR_2, uint32_t VAR_3, u_int VAR_4, int VAR_5) { struct sockaddr_in VAR_6; struct socket *VAR_7; socklen_t addrlen = sizeof(struct sockaddr_in); VAR_7 = socreate(VAR_0); if (!VAR_7) { return NULL; } VAR_7->s = qemu_socket(AF_INET,SOCK_DGRAM,0...
[ "FUNC_0(Slirp *VAR_0, uint32_t VAR_1, u_int VAR_2, uint32_t VAR_3,\nu_int VAR_4, int VAR_5)\n{", "struct sockaddr_in VAR_6;", "struct socket *VAR_7;", "socklen_t addrlen = sizeof(struct sockaddr_in);", "VAR_7 = socreate(VAR_0);", "if (!VAR_7) {", "return NULL;", "}", "VAR_7->s = qemu_socket(AF_INET,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
8,003
blkdebug_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BDRVBlkdebugState *s = bs->opaque; BlkdebugRule *rule = NULL; /* Sanity check block layer guarantees */ assert(QEMU_IS_ALIGNED(offset, bs->bl.request_alignment)); ...
false
qemu
d157ed5f7235f3d2d5596a514ad7507b18e24b88
blkdebug_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BDRVBlkdebugState *s = bs->opaque; BlkdebugRule *rule = NULL; assert(QEMU_IS_ALIGNED(offset, bs->bl.request_alignment)); assert(QEMU_IS_ALIGNED(bytes, bs->bl.requ...
{ "code": [], "line_no": [] }
FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2, QEMUIOVector *VAR_3, int VAR_4) { BDRVBlkdebugState *s = VAR_0->opaque; BlkdebugRule *rule = NULL; assert(QEMU_IS_ALIGNED(VAR_1, VAR_0->bl.request_alignment)); assert(QEMU_IS_ALIGNED(VAR_2, VAR_0->bl.reques...
[ "FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,\nQEMUIOVector *VAR_3, int VAR_4)\n{", "BDRVBlkdebugState *s = VAR_0->opaque;", "BlkdebugRule *rule = NULL;", "assert(QEMU_IS_ALIGNED(VAR_1, VAR_0->bl.request_alignment));", "assert(QEMU_IS_ALIGNED(VAR_2, VAR_0->bl.request_alignment));", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33, 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [...
8,004
static void test_visitor_out_struct_errors(TestOutputVisitorData *data, const void *unused) { EnumOne bad_values[] = { ENUM_ONE_MAX, -1 }; UserDefZero b; UserDefOne u = { .base = &b }, *pu = &u; Error *err; int i; for (i = 0; i < ARRAY_SIZE(ba...
false
qemu
ddf21908961073199f3d186204da4810f2ea150b
static void test_visitor_out_struct_errors(TestOutputVisitorData *data, const void *unused) { EnumOne bad_values[] = { ENUM_ONE_MAX, -1 }; UserDefZero b; UserDefOne u = { .base = &b }, *pu = &u; Error *err; int i; for (i = 0; i < ARRAY_SIZE(ba...
{ "code": [], "line_no": [] }
static void FUNC_0(TestOutputVisitorData *VAR_0, const void *VAR_1) { EnumOne bad_values[] = { ENUM_ONE_MAX, -1 }; UserDefZero b; UserDefOne u = { .base = &b }, *pu = &u; Error *err; int VAR_2; for (VAR_2 = 0; VAR_2 < ARRAY_SIZE(bad_values) ; ...
[ "static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "EnumOne bad_values[] = { ENUM_ONE_MAX, -1 };", "UserDefZero b;", "UserDefOne u = { .base = &b }, *pu = &u;", "Error *err;", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < ARRAY_SIZE(bad_values) ; VAR_2++) {", "err = NULL;", "u.has_e...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
8,005
static HEVCFrame *find_ref_idx(HEVCContext *s, int poc) { int i; int LtMask = (1 << s->sps->log2_max_poc_lsb) - 1; for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); i++) { HEVCFrame *ref = &s->DPB[i]; if (ref->frame->buf[0] && (ref->sequence == s->seq_decode)) { if ((ref->poc & Lt...
false
FFmpeg
294bb6cbd7bdc52233ddfa8f88f99aaf0d64d183
static HEVCFrame *find_ref_idx(HEVCContext *s, int poc) { int i; int LtMask = (1 << s->sps->log2_max_poc_lsb) - 1; for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); i++) { HEVCFrame *ref = &s->DPB[i]; if (ref->frame->buf[0] && (ref->sequence == s->seq_decode)) { if ((ref->poc & Lt...
{ "code": [], "line_no": [] }
static HEVCFrame *FUNC_0(HEVCContext *s, int poc) { int VAR_0; int VAR_1 = (1 << s->sps->log2_max_poc_lsb) - 1; for (VAR_0 = 0; VAR_0 < FF_ARRAY_ELEMS(s->DPB); VAR_0++) { HEVCFrame *ref = &s->DPB[VAR_0]; if (ref->frame->buf[0] && (ref->sequence == s->seq_decode)) { if ((...
[ "static HEVCFrame *FUNC_0(HEVCContext *s, int poc)\n{", "int VAR_0;", "int VAR_1 = (1 << s->sps->log2_max_poc_lsb) - 1;", "for (VAR_0 = 0; VAR_0 < FF_ARRAY_ELEMS(s->DPB); VAR_0++) {", "HEVCFrame *ref = &s->DPB[VAR_0];", "if (ref->frame->buf[0] && (ref->sequence == s->seq_decode)) {", "if ((ref->poc & VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ] ]
8,007
void timer_free(QEMUTimer *ts) { g_free(ts); }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
void timer_free(QEMUTimer *ts) { g_free(ts); }
{ "code": [], "line_no": [] }
void FUNC_0(QEMUTimer *VAR_0) { g_free(VAR_0); }
[ "void FUNC_0(QEMUTimer *VAR_0)\n{", "g_free(VAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
8,008
int do_snapshot_blkdev(Monitor *mon, const QDict *qdict, QObject **ret_data) { const char *device = qdict_get_str(qdict, "device"); const char *filename = qdict_get_try_str(qdict, "snapshot-file"); const char *format = qdict_get_try_str(qdict, "format"); BlockDriverState *bs; BlockDriver *drv,...
false
qemu
922453bca6a927bb527068ae8679d587cfa45dbc
int do_snapshot_blkdev(Monitor *mon, const QDict *qdict, QObject **ret_data) { const char *device = qdict_get_str(qdict, "device"); const char *filename = qdict_get_try_str(qdict, "snapshot-file"); const char *format = qdict_get_try_str(qdict, "format"); BlockDriverState *bs; BlockDriver *drv,...
{ "code": [], "line_no": [] }
int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2) { const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3"); const char *VAR_4 = qdict_get_try_str(VAR_1, "snapshot-file"); const char *VAR_5 = qdict_get_try_str(VAR_1, "VAR_5"); BlockDriverState *bs; BlockDriver *drv, *old_drv, *proto_dr...
[ "int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{", "const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");", "const char *VAR_4 = qdict_get_try_str(VAR_1, \"snapshot-file\");", "const char *VAR_5 = qdict_get_try_str(VAR_1, \"VAR_5\");", "BlockDriverState *bs;", "BlockDriver *drv, *old_drv...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
8,009
static void breakpoint_invalidate(CPUState *env, target_ulong pc) { target_ulong phys_addr; phys_addr = cpu_get_phys_page_debug(env, pc); tb_invalidate_phys_page_range(phys_addr, phys_addr + 1, 0); }
false
qemu
c2f07f81a2d52d9d5243ead61d93e875487acf70
static void breakpoint_invalidate(CPUState *env, target_ulong pc) { target_ulong phys_addr; phys_addr = cpu_get_phys_page_debug(env, pc); tb_invalidate_phys_page_range(phys_addr, phys_addr + 1, 0); }
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0, target_ulong VAR_1) { target_ulong phys_addr; phys_addr = cpu_get_phys_page_debug(VAR_0, VAR_1); tb_invalidate_phys_page_range(phys_addr, phys_addr + 1, 0); }
[ "static void FUNC_0(CPUState *VAR_0, target_ulong VAR_1)\n{", "target_ulong phys_addr;", "phys_addr = cpu_get_phys_page_debug(VAR_0, VAR_1);", "tb_invalidate_phys_page_range(phys_addr, phys_addr + 1, 0);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
8,011
static void omap_ppm_save(const char *filename, uint8_t *data, int w, int h, int linesize, Error **errp) { FILE *f; uint8_t *d, *d1; unsigned int v; int ret, y, x, bpp; f = fopen(filename, "wb"); if (!f) { error_setg(errp, "failed to open file '%s': %s", fi...
false
qemu
2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5
static void omap_ppm_save(const char *filename, uint8_t *data, int w, int h, int linesize, Error **errp) { FILE *f; uint8_t *d, *d1; unsigned int v; int ret, y, x, bpp; f = fopen(filename, "wb"); if (!f) { error_setg(errp, "failed to open file '%s': %s", fi...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, Error **VAR_5) { FILE *f; uint8_t *d, *d1; unsigned int VAR_6; int VAR_7, VAR_8, VAR_9, VAR_10; f = fopen(VAR_0, "wb"); if (!f) { error_setg(VAR_5, "failed to open file '...
[ "static void FUNC_0(const char *VAR_0, uint8_t *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, Error **VAR_5)\n{", "FILE *f;", "uint8_t *d, *d1;", "unsigned int VAR_6;", "int VAR_7, VAR_8, VAR_9, VAR_10;", "f = fopen(VAR_0, \"wb\");", "if (!f) {", "error_setg(VAR_5, \"failed to open file '%s': %s\", VAR_0,\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
8,012
static uint64_t unassigned_mem_read(void *opaque, hwaddr addr, unsigned size) { #ifdef DEBUG_UNASSIGNED printf("Unassigned mem read " TARGET_FMT_plx "\n", addr); #endif if (current_cpu != NULL) { cpu_unassigned_access(current_cpu, addr, false, false, 0, size); ...
false
qemu
68a7439a150d6b4da99082ab454b9328b151bc25
static uint64_t unassigned_mem_read(void *opaque, hwaddr addr, unsigned size) { #ifdef DEBUG_UNASSIGNED printf("Unassigned mem read " TARGET_FMT_plx "\n", addr); #endif if (current_cpu != NULL) { cpu_unassigned_access(current_cpu, addr, false, false, 0, size); ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned size) { #ifdef DEBUG_UNASSIGNED printf("Unassigned mem read " TARGET_FMT_plx "\n", addr); #endif if (current_cpu != NULL) { cpu_unassigned_access(current_cpu, addr, false, false, 0, size); } r...
[ "static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{", "#ifdef DEBUG_UNASSIGNED\nprintf(\"Unassigned mem read \" TARGET_FMT_plx \"\\n\", addr);", "#endif\nif (current_cpu != NULL) {", "cpu_unassigned_access(current_cpu, addr, false, false, 0, size);", "}", "return -1ULL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
8,013
void qemu_set_cloexec(int fd) { int f; f = fcntl(fd, F_GETFD); fcntl(fd, F_SETFD, f | FD_CLOEXEC); }
false
qemu
7e6478e7d4f2c4b607069bf488d57089a9d3244b
void qemu_set_cloexec(int fd) { int f; f = fcntl(fd, F_GETFD); fcntl(fd, F_SETFD, f | FD_CLOEXEC); }
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0) { int VAR_1; VAR_1 = fcntl(VAR_0, F_GETFD); fcntl(VAR_0, F_SETFD, VAR_1 | FD_CLOEXEC); }
[ "void FUNC_0(int VAR_0)\n{", "int VAR_1;", "VAR_1 = fcntl(VAR_0, F_GETFD);", "fcntl(VAR_0, F_SETFD, VAR_1 | FD_CLOEXEC);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
8,014
static int netmap_can_send(void *opaque) { NetmapState *s = opaque; return qemu_can_send_packet(&s->nc); }
false
qemu
e8dd1d9c396104f0fac4b39a701143df49df2a74
static int netmap_can_send(void *opaque) { NetmapState *s = opaque; return qemu_can_send_packet(&s->nc); }
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0) { NetmapState *s = VAR_0; return qemu_can_send_packet(&s->nc); }
[ "static int FUNC_0(void *VAR_0)\n{", "NetmapState *s = VAR_0;", "return qemu_can_send_packet(&s->nc);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
8,015
static int kvm_get_dirty_pages_log_range(MemoryRegionSection *section, unsigned long *bitmap) { unsigned int i, j; unsigned long page_number, c; hwaddr addr, addr1; unsigned int len = ((section->size / TARGET_PAGE_SIZE) + HOST_LONG_BITS - 1) / HOST_LONG_BIT...
false
qemu
752ced0488806830f18f96b60ae6f3d1fadfd089
static int kvm_get_dirty_pages_log_range(MemoryRegionSection *section, unsigned long *bitmap) { unsigned int i, j; unsigned long page_number, c; hwaddr addr, addr1; unsigned int len = ((section->size / TARGET_PAGE_SIZE) + HOST_LONG_BITS - 1) / HOST_LONG_BIT...
{ "code": [], "line_no": [] }
static int FUNC_0(MemoryRegionSection *VAR_0, unsigned long *VAR_1) { unsigned int VAR_2, VAR_3; unsigned long VAR_4, VAR_5; hwaddr addr, addr1; unsigned int VAR_6 = ((VAR_0->size / TARGET_PAGE_SIZE) + HOST_LONG_BITS - 1) / HOST_LONG_BITS; unsigned lon...
[ "static int FUNC_0(MemoryRegionSection *VAR_0,\nunsigned long *VAR_1)\n{", "unsigned int VAR_2, VAR_3;", "unsigned long VAR_4, VAR_5;", "hwaddr addr, addr1;", "unsigned int VAR_6 = ((VAR_0->size / TARGET_PAGE_SIZE) + HOST_LONG_BITS - 1) / HOST_LONG_BITS;", "unsigned long VAR_7 = getpagesize() / TARGET_PAG...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ...
8,016
static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff){ MpegEncContext * const s = &h->s; static const int coeff_token_table_index[17]= {0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3}; int level[16]; int...
false
FFmpeg
9885284c2259847b0d2b34b5574e3276607e37e4
static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff){ MpegEncContext * const s = &h->s; static const int coeff_token_table_index[17]= {0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3}; int level[16]; int...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0, GetBitContext *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t *VAR_4, const uint32_t *VAR_5, int VAR_6){ MpegEncContext * const s = &VAR_0->s; static const int VAR_7[17]= {0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3}; int VAR_8[16]; int VAR_9, VAR_10, VAR...
[ "static int FUNC_0(H264Context *VAR_0, GetBitContext *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t *VAR_4, const uint32_t *VAR_5, int VAR_6){", "MpegEncContext * const s = &VAR_0->s;", "static const int VAR_7[17]= {0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3};", "int VAR_8[16];", "int VAR_9, VAR_10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
8,017
static void ccw_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); NMIClass *nc = NMI_CLASS(oc); mc->name = "s390-ccw-virtio"; mc->alias = "s390-ccw"; mc->desc = "VirtIO-ccw based S390 machine"; mc->init = ccw_init; mc->block_default_type = IF_V...
false
qemu
c4d3c0a2696c09a884b680d15b03325e46656a6c
static void ccw_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); NMIClass *nc = NMI_CLASS(oc); mc->name = "s390-ccw-virtio"; mc->alias = "s390-ccw"; mc->desc = "VirtIO-ccw based S390 machine"; mc->init = ccw_init; mc->block_default_type = IF_V...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { MachineClass *mc = MACHINE_CLASS(VAR_0); NMIClass *nc = NMI_CLASS(VAR_0); mc->name = "s390-ccw-virtio"; mc->alias = "s390-ccw"; mc->desc = "VirtIO-ccw based S390 machine"; mc->init = ccw_init; mc->block_default_type = IF_VIRTIO;...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "MachineClass *mc = MACHINE_CLASS(VAR_0);", "NMIClass *nc = NMI_CLASS(VAR_0);", "mc->name = \"s390-ccw-virtio\";", "mc->alias = \"s390-ccw\";", "mc->desc = \"VirtIO-ccw based S390 machine\";", "mc->init = ccw_init;", "mc->block_default_type = I...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
8,019
static int print_bit(DeviceState *dev, Property *prop, char *dest, size_t len) { uint32_t *p = qdev_get_prop_ptr(dev, prop); return snprintf(dest, len, (*p & qdev_get_prop_mask(prop)) ? "on" : "off"); }
false
qemu
949fc82314cc84162e64a5323764527a542421ce
static int print_bit(DeviceState *dev, Property *prop, char *dest, size_t len) { uint32_t *p = qdev_get_prop_ptr(dev, prop); return snprintf(dest, len, (*p & qdev_get_prop_mask(prop)) ? "on" : "off"); }
{ "code": [], "line_no": [] }
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3) { uint32_t *p = qdev_get_prop_ptr(VAR_0, VAR_1); return snprintf(VAR_2, VAR_3, (*p & qdev_get_prop_mask(VAR_1)) ? "on" : "off"); }
[ "static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3)\n{", "uint32_t *p = qdev_get_prop_ptr(VAR_0, VAR_1);", "return snprintf(VAR_2, VAR_3, (*p & qdev_get_prop_mask(VAR_1)) ? \"on\" : \"off\");", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
8,020
static char *pxb_host_ofw_unit_address(const SysBusDevice *dev) { const PCIHostState *pxb_host; const PCIBus *pxb_bus; const PXBDev *pxb_dev; int position; const DeviceState *pxb_dev_base; const PCIHostState *main_host; const SysBusDevice *main_host_sbd; pxb_host = PCI_HOST_BR...
false
qemu
02b07434bed8360715198b4cbfdfebd17f7cac32
static char *pxb_host_ofw_unit_address(const SysBusDevice *dev) { const PCIHostState *pxb_host; const PCIBus *pxb_bus; const PXBDev *pxb_dev; int position; const DeviceState *pxb_dev_base; const PCIHostState *main_host; const SysBusDevice *main_host_sbd; pxb_host = PCI_HOST_BR...
{ "code": [], "line_no": [] }
static char *FUNC_0(const SysBusDevice *VAR_0) { const PCIHostState *VAR_1; const PCIBus *VAR_2; const PXBDev *VAR_3; int VAR_4; const DeviceState *VAR_5; const PCIHostState *VAR_6; const SysBusDevice *VAR_7; VAR_1 = PCI_HOST_BRIDGE(VAR_0); VAR_2 = VAR_1->bus; VAR_3 ...
[ "static char *FUNC_0(const SysBusDevice *VAR_0)\n{", "const PCIHostState *VAR_1;", "const PCIBus *VAR_2;", "const PXBDev *VAR_3;", "int VAR_4;", "const DeviceState *VAR_5;", "const PCIHostState *VAR_6;", "const SysBusDevice *VAR_7;", "VAR_1 = PCI_HOST_BRIDGE(VAR_0);", "VAR_2 = VAR_1->bus;", "VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
8,022
static int openfile(char *name, int flags, QDict *opts) { Error *local_err = NULL; if (qemuio_blk) { fprintf(stderr, "file open already, try 'help close'\n"); QDECREF(opts); return 1; } qemuio_blk = blk_new_open("hda", name, NULL, opts, flags, &local_err); if (!...
true
qemu
8caf02127e92939fff39b63a7ff1a5834d320191
static int openfile(char *name, int flags, QDict *opts) { Error *local_err = NULL; if (qemuio_blk) { fprintf(stderr, "file open already, try 'help close'\n"); QDECREF(opts); return 1; } qemuio_blk = blk_new_open("hda", name, NULL, opts, flags, &local_err); if (!...
{ "code": [], "line_no": [] }
static int FUNC_0(char *VAR_0, int VAR_1, QDict *VAR_2) { Error *local_err = NULL; if (qemuio_blk) { fprintf(stderr, "file open already, try 'help close'\n"); QDECREF(VAR_2); return 1; } qemuio_blk = blk_new_open("hda", VAR_0, NULL, VAR_2, VAR_1, &local_err); if...
[ "static int FUNC_0(char *VAR_0, int VAR_1, QDict *VAR_2)\n{", "Error *local_err = NULL;", "if (qemuio_blk) {", "fprintf(stderr, \"file open already, try 'help close'\\n\");", "QDECREF(VAR_2);", "return 1;", "}", "qemuio_blk = blk_new_open(\"hda\", VAR_0, NULL, VAR_2, VAR_1, &local_err);", "if (!qemu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 10 ], [ 12 ], [ 14 ], [ 16 ], [ 18 ], [ 22 ], [ 24 ], [ 26, 28, 30 ], [ 32 ], [ 34 ], [ 36 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 48 ], [ 5...
8,023
static void calc_slice_sizes(VC2EncContext *s) { int slice_x, slice_y; SliceArgs *enc_args = s->slice_args; for (slice_y = 0; slice_y < s->num_y; slice_y++) { for (slice_x = 0; slice_x < s->num_x; slice_x++) { SliceArgs *args = &enc_args[s->num_x*slice_y + slice_x]; ...
true
FFmpeg
b88be742fac7a77a8095e8155ba8790db4b77568
static void calc_slice_sizes(VC2EncContext *s) { int slice_x, slice_y; SliceArgs *enc_args = s->slice_args; for (slice_y = 0; slice_y < s->num_y; slice_y++) { for (slice_x = 0; slice_x < s->num_x; slice_x++) { SliceArgs *args = &enc_args[s->num_x*slice_y + slice_x]; ...
{ "code": [ "static void calc_slice_sizes(VC2EncContext *s)", " int slice_x, slice_y;", " args->x = slice_x;", " args->y = slice_y;", " args->bits_ceil = s->slice_max_bytes << 3;", " memset(args->cache, 0, MAX_QUANT_INDEX*sizeof(*args->cache));", ...
static void FUNC_0(VC2EncContext *VAR_0) { int VAR_1, VAR_2; SliceArgs *enc_args = VAR_0->slice_args; for (VAR_2 = 0; VAR_2 < VAR_0->num_y; VAR_2++) { for (VAR_1 = 0; VAR_1 < VAR_0->num_x; VAR_1++) { SliceArgs *args = &enc_args[VAR_0->num_x*VAR_2 + VAR_1]; args->ctx ...
[ "static void FUNC_0(VC2EncContext *VAR_0)\n{", "int VAR_1, VAR_2;", "SliceArgs *enc_args = VAR_0->slice_args;", "for (VAR_2 = 0; VAR_2 < VAR_0->num_y; VAR_2++) {", "for (VAR_1 = 0; VAR_1 < VAR_0->num_x; VAR_1++) {", "SliceArgs *args = &enc_args[VAR_0->num_x*VAR_2 + VAR_1];", "args->ctx = VAR_0;", "arg...
[ 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37, 39 ], [ 41 ] ]
8,025
int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, const AVPacket *avpkt) { AVCodecInternal *avci = avctx->internal; int ret; // copy to ensure we do no...
true
FFmpeg
41f3c60fbb7420f41295c8e0cf80acf9e71f72d0
int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, const AVPacket *avpkt) { AVCodecInternal *avci = avctx->internal; int ret; AVPacket tmp = *avpk...
{ "code": [], "line_no": [] }
int VAR_0 avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, const AVPacket *avpkt) { AVCodecInternal *avci = avctx->internal; int ret; AVPacket tmp = *avpkt; if...
[ "int VAR_0 avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,\nint *got_picture_ptr,\nconst AVPacket *avpkt)\n{", "AVCodecInternal *avci = avctx->internal;", "int ret;", "AVPacket tmp = *avpkt;", "if (avctx->codec->type != AVMEDIA_TYPE_VIDEO) {", "av_log(avctx, AV_LOG_ERROR, \"Invalid media ty...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21 ], [ 23 ], [ 26 ], [ 30 ], [ 32, 37 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 57, 59 ], [ 61 ], [ 63,...
8,026
static int rdma_delete_block(RDMAContext *rdma, RDMALocalBlock *block) { RDMALocalBlocks *local = &rdma->local_ram_blocks; RDMALocalBlock *old = local->block; int x; if (rdma->blockmap) { g_hash_table_remove(rdma->blockmap, (void *)(uintptr_t)block->offset); } if (block->pmr) {...
true
qemu
97f3ad35517e0d02c0149637d1bb10713c52b057
static int rdma_delete_block(RDMAContext *rdma, RDMALocalBlock *block) { RDMALocalBlocks *local = &rdma->local_ram_blocks; RDMALocalBlock *old = local->block; int x; if (rdma->blockmap) { g_hash_table_remove(rdma->blockmap, (void *)(uintptr_t)block->offset); } if (block->pmr) {...
{ "code": [ " local->block = g_malloc0(sizeof(RDMALocalBlock) *", " (local->nb_blocks - 1));" ], "line_no": [ 101, 103 ] }
static int FUNC_0(RDMAContext *VAR_0, RDMALocalBlock *VAR_1) { RDMALocalBlocks *local = &VAR_0->local_ram_blocks; RDMALocalBlock *old = local->VAR_1; int VAR_2; if (VAR_0->blockmap) { g_hash_table_remove(VAR_0->blockmap, (void *)(uintptr_t)VAR_1->offset); } if (VAR_1->pmr) { ...
[ "static int FUNC_0(RDMAContext *VAR_0, RDMALocalBlock *VAR_1)\n{", "RDMALocalBlocks *local = &VAR_0->local_ram_blocks;", "RDMALocalBlock *old = local->VAR_1;", "int VAR_2;", "if (VAR_0->blockmap) {", "g_hash_table_remove(VAR_0->blockmap, (void *)(uintptr_t)VAR_1->offset);", "}", "if (VAR_1->pmr) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ...
8,027
static inline void mpeg4_encode_dc(PutBitContext * s, int level, int n) { #if 1 level+=256; if (n < 4) { /* luminance */ put_bits(s, uni_DCtab_lum_len[level], uni_DCtab_lum_bits[level]); } else { /* chrominance */ put_bits(s, uni_DCtab_chrom_len[level], uni_DCtab_ch...
true
FFmpeg
49d2d1c35cc0438747dd8ef111163cb341f8f9fe
static inline void mpeg4_encode_dc(PutBitContext * s, int level, int n) { #if 1 level+=256; if (n < 4) { put_bits(s, uni_DCtab_lum_len[level], uni_DCtab_lum_bits[level]); } else { put_bits(s, uni_DCtab_chrom_len[level], uni_DCtab_chrom_bits[level]); } #else ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(PutBitContext * VAR_0, int VAR_1, int VAR_2) { #if 1 VAR_1+=256; if (VAR_2 < 4) { put_bits(VAR_0, uni_DCtab_lum_len[VAR_1], uni_DCtab_lum_bits[VAR_1]); } else { put_bits(VAR_0, uni_DCtab_chrom_len[VAR_1], uni_DCtab_chrom_bits[VAR_1]); ...
[ "static inline void FUNC_0(PutBitContext * VAR_0, int VAR_1, int VAR_2)\n{", "#if 1\nVAR_1+=256;", "if (VAR_2 < 4) {", "put_bits(VAR_0, uni_DCtab_lum_len[VAR_1], uni_DCtab_lum_bits[VAR_1]);", "} else {", "put_bits(VAR_0, uni_DCtab_chrom_len[VAR_1], uni_DCtab_chrom_bits[VAR_1]);", "}", "#else\nint size...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 8 ], [ 10 ], [ 14 ], [ 16 ], [ 20 ], [ 22 ], [ 24, 26 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 44 ], [ 48 ], [ 50 ], [ 54 ], [ 56...
8,028
static int pick_formats(AVFilterGraph *graph) { int i, j, ret; int change; do{ change = 0; for (i = 0; i < graph->filter_count; i++) { AVFilterContext *filter = graph->filters[i]; if (filter->nb_inputs){ for (j = 0; j < filter->nb_inputs; j+...
false
FFmpeg
b99bef17b44cdefdd91a5e07a4eba6a3cc4ee290
static int pick_formats(AVFilterGraph *graph) { int i, j, ret; int change; do{ change = 0; for (i = 0; i < graph->filter_count; i++) { AVFilterContext *filter = graph->filters[i]; if (filter->nb_inputs){ for (j = 0; j < filter->nb_inputs; j+...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterGraph *VAR_0) { int VAR_1, VAR_2, VAR_3; int VAR_4; do{ VAR_4 = 0; for (VAR_1 = 0; VAR_1 < VAR_0->filter_count; VAR_1++) { AVFilterContext *filter = VAR_0->filters[VAR_1]; if (filter->nb_inputs){ for (VAR_2 = 0; VAR...
[ "static int FUNC_0(AVFilterGraph *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3;", "int VAR_4;", "do{", "VAR_4 = 0;", "for (VAR_1 = 0; VAR_1 < VAR_0->filter_count; VAR_1++) {", "AVFilterContext *filter = VAR_0->filters[VAR_1];", "if (filter->nb_inputs){", "for (VAR_2 = 0; VAR_2 < filter->nb_inputs; VAR_2++){...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
8,029
ff_yuv2packedX_altivec(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc...
false
FFmpeg
dc179ec81902e3c9d327f9e818454f2849308000
ff_yuv2packedX_altivec(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc...
{ "code": [], "line_no": [] }
FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1, const int16_t **VAR_2, int VAR_3, const int16_t *VAR_4, const int16_t **VAR_5, const int16_t **VAR_6, int VAR_7, const int16_t **VAR_8, uint8_t *VAR_9, ...
[ "FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1,\nconst int16_t **VAR_2, int VAR_3,\nconst int16_t *VAR_4, const int16_t **VAR_5,\nconst int16_t **VAR_6, int VAR_7,\nconst int16_t **VAR_8, uint8_t *VAR_9,\nint VAR_10, int VAR_11)\n{", "int VAR_12,VAR_13;", "vector signed short X,X0,X1,Y0,U0,V0,Y1,U1,V1,U,V;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [...
8,031
static void arm_gic_common_realize(DeviceState *dev, Error **errp) { GICState *s = ARM_GIC_COMMON(dev); int num_irq = s->num_irq; if (s->num_cpu > GIC_NCPU) { error_setg(errp, "requested %u CPUs exceeds GIC maximum %d", s->num_cpu, GIC_NCPU); s->num_irq += GIC_BASE_IRQ; if...
true
qemu
5543d1abb6e218a9d3b8887b777fd3947c86c4cf
static void arm_gic_common_realize(DeviceState *dev, Error **errp) { GICState *s = ARM_GIC_COMMON(dev); int num_irq = s->num_irq; if (s->num_cpu > GIC_NCPU) { error_setg(errp, "requested %u CPUs exceeds GIC maximum %d", s->num_cpu, GIC_NCPU); s->num_irq += GIC_BASE_IRQ; if...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { GICState *s = ARM_GIC_COMMON(VAR_0); int VAR_2 = s->VAR_2; if (s->num_cpu > GIC_NCPU) { error_setg(VAR_1, "requested %u CPUs exceeds GIC maximum %d", s->num_cpu, GIC_NCPU); s->VAR_2 += GIC_BASE_IRQ; if (s->VAR_2 > GIC...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "GICState *s = ARM_GIC_COMMON(VAR_0);", "int VAR_2 = s->VAR_2;", "if (s->num_cpu > GIC_NCPU) {", "error_setg(VAR_1, \"requested %u CPUs exceeds GIC maximum %d\",\ns->num_cpu, GIC_NCPU);", "s->VAR_2 += GIC_BASE_IRQ;", "if (s->VAR_2 > GIC_MAXIRQ)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6, 7 ], [ 8 ], [ 9 ], [ 10, 11, 12 ], [ 17 ], [ 18, 19, 20 ] ]
8,032
static int lance_init(SysBusDevice *sbd) { DeviceState *dev = DEVICE(sbd); SysBusPCNetState *d = SYSBUS_PCNET(dev); PCNetState *s = &d->state; memory_region_init_io(&s->mmio, OBJECT(d), &lance_mem_ops, d, "lance-mmio", 4); qdev_init_gpio_in(dev, parent_lance_rese...
true
qemu
4c3b22459d3589cf84d1ccadc6b09e586497820d
static int lance_init(SysBusDevice *sbd) { DeviceState *dev = DEVICE(sbd); SysBusPCNetState *d = SYSBUS_PCNET(dev); PCNetState *s = &d->state; memory_region_init_io(&s->mmio, OBJECT(d), &lance_mem_ops, d, "lance-mmio", 4); qdev_init_gpio_in(dev, parent_lance_rese...
{ "code": [ " return pcnet_common_init(dev, s, &net_lance_info);" ], "line_no": [ 35 ] }
static int FUNC_0(SysBusDevice *VAR_0) { DeviceState *dev = DEVICE(VAR_0); SysBusPCNetState *d = SYSBUS_PCNET(dev); PCNetState *s = &d->state; memory_region_init_io(&s->mmio, OBJECT(d), &lance_mem_ops, d, "lance-mmio", 4); qdev_init_gpio_in(dev, parent_lance_rese...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "DeviceState *dev = DEVICE(VAR_0);", "SysBusPCNetState *d = SYSBUS_PCNET(dev);", "PCNetState *s = &d->state;", "memory_region_init_io(&s->mmio, OBJECT(d), &lance_mem_ops, d,\n\"lance-mmio\", 4);", "qdev_init_gpio_in(dev, parent_lance_reset, 1);", "sysbus_init...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
8,033
static int vc9_decode_init(AVCodecContext *avctx) { VC9Context *v = avctx->priv_data; MpegEncContext *s = &v->s; GetBitContext gb; if (!avctx->extradata_size || !avctx->extradata) return -1; avctx->pix_fmt = PIX_FMT_YUV420P; v->s.avctx = avctx; if(ff_h263_decode_init(avctx) < 0) ...
true
FFmpeg
7cc84d241ba6ef8e27e4d057176a4ad385ad3d59
static int vc9_decode_init(AVCodecContext *avctx) { VC9Context *v = avctx->priv_data; MpegEncContext *s = &v->s; GetBitContext gb; if (!avctx->extradata_size || !avctx->extradata) return -1; avctx->pix_fmt = PIX_FMT_YUV420P; v->s.avctx = avctx; if(ff_h263_decode_init(avctx) < 0) ...
{ "code": [ "#endif", "#endif", "#endif", "#endif", " if (v->profile > PROFILE_MAIN)", "#endif", " if (v->profile > PROFILE_MAIN)", " if (v->profile > PROFILE_MAIN)", " if (v->profile > PROFILE_MAIN)", " init_get_bits(&gb, avctx->extradata, avctx->extradata_s...
static int FUNC_0(AVCodecContext *VAR_0) { VC9Context *v = VAR_0->priv_data; MpegEncContext *s = &v->s; GetBitContext gb; if (!VAR_0->extradata_size || !VAR_0->extradata) return -1; VAR_0->pix_fmt = PIX_FMT_YUV420P; v->s.VAR_0 = VAR_0; if(ff_h263_decode_init(VAR_0) < 0) ...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "VC9Context *v = VAR_0->priv_data;", "MpegEncContext *s = &v->s;", "GetBitContext gb;", "if (!VAR_0->extradata_size || !VAR_0->extradata) return -1;", "VAR_0->pix_fmt = PIX_FMT_YUV420P;", "v->s.VAR_0 = VAR_0;", "if(ff_h263_decode_init(VAR_0) < 0)\nreturn ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 51 ], [ 55 ], [ 59 ], [ 61, 63 ], [ 65, 67 ...
8,034
yuv2rgb48_2_c_template(SwsContext *c, const int32_t *buf[2], const int32_t *ubuf[2], const int32_t *vbuf[2], const int32_t *abuf[2], uint16_t *dest, int dstW, int yalpha, int uvalpha, int y, enum PixelFormat target) { ...
true
FFmpeg
4860625236475da20d0da954017e8c7fe412dea2
yuv2rgb48_2_c_template(SwsContext *c, const int32_t *buf[2], const int32_t *ubuf[2], const int32_t *vbuf[2], const int32_t *abuf[2], uint16_t *dest, int dstW, int yalpha, int uvalpha, int y, enum PixelFormat target) { ...
{ "code": [ " int yalpha1 = 4095 - yalpha;", " int yalpha1 = 4095 - yalpha;", " int uvalpha1 = 4095 - uvalpha;", " int yalpha1 = 4095 - yalpha;", " int uvalpha1 = 4095 - uvalpha;", " int yalpha1 = 4095 - yalpha;", " int uvalpha1 = 4095 - uvalpha;" ], "line_no":...
FUNC_0(SwsContext *VAR_0, const int32_t *VAR_1[2], const int32_t *VAR_2[2], const int32_t *VAR_3[2], const int32_t *VAR_4[2], uint16_t *VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, enum PixelFormat VAR_10) { cons...
[ "FUNC_0(SwsContext *VAR_0, const int32_t *VAR_1[2],\nconst int32_t *VAR_2[2], const int32_t *VAR_3[2],\nconst int32_t *VAR_4[2], uint16_t *VAR_5, int VAR_6,\nint VAR_7, int VAR_8, int VAR_9,\nenum PixelFormat VAR_10)\n{", "const int32_t *VAR_11 = VAR_1[0], *buf1 = VAR_1[1],\n*ubuf0 = VAR_2[0], *ubuf1 = VAR_2[1...
[ 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
8,035
void memory_region_init_alias(MemoryRegion *mr, Object *owner, const char *name, MemoryRegion *orig, hwaddr offset, uint64_t size) { memory_region_init(mr, own...
true
qemu
52c91dac6bd891656f297dab76da51fc8bc61309
void memory_region_init_alias(MemoryRegion *mr, Object *owner, const char *name, MemoryRegion *orig, hwaddr offset, uint64_t size) { memory_region_init(mr, own...
{ "code": [ " memory_region_ref(orig);", " mr->destructor = memory_region_destructor_alias;" ], "line_no": [ 17, 19 ] }
void FUNC_0(MemoryRegion *VAR_0, Object *VAR_1, const char *VAR_2, MemoryRegion *VAR_3, hwaddr VAR_4, uint64_t VAR_5) { memory_region_init(VAR_0, VAR_1, VAR_2,...
[ "void FUNC_0(MemoryRegion *VAR_0,\nObject *VAR_1,\nconst char *VAR_2,\nMemoryRegion *VAR_3,\nhwaddr VAR_4,\nuint64_t VAR_5)\n{", "memory_region_init(VAR_0, VAR_1, VAR_2, VAR_5);", "memory_region_ref(VAR_3);", "VAR_0->destructor = memory_region_destructor_alias;", "VAR_0->alias = VAR_3;", "VAR_0->alias_off...
[ 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
8,036
static void monitor_protocol_event_handler(void *opaque) { MonitorEventState *evstate = opaque; int64_t now = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); qemu_mutex_lock(&monitor_event_state_lock); trace_monitor_protocol_event_handler(evstate->event, evstat...
true
qemu
c20b7fa4b2fedd979bcb0cc974bb5d08a10e3448
static void monitor_protocol_event_handler(void *opaque) { MonitorEventState *evstate = opaque; int64_t now = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); qemu_mutex_lock(&monitor_event_state_lock); trace_monitor_protocol_event_handler(evstate->event, evstat...
{ "code": [ " qemu_mutex_lock(&monitor_event_state_lock);", " qemu_mutex_unlock(&monitor_event_state_lock);", " qemu_mutex_lock(&monitor_event_state_lock);", " qemu_mutex_unlock(&monitor_event_state_lock);" ], "line_no": [ 11, 35, 11, 35 ] }
static void FUNC_0(void *VAR_0) { MonitorEventState *evstate = VAR_0; int64_t now = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); qemu_mutex_lock(&monitor_event_state_lock); trace_monitor_protocol_event_handler(evstate->event, evstate->data, ...
[ "static void FUNC_0(void *VAR_0)\n{", "MonitorEventState *evstate = VAR_0;", "int64_t now = qemu_clock_get_ns(QEMU_CLOCK_REALTIME);", "qemu_mutex_lock(&monitor_event_state_lock);", "trace_monitor_protocol_event_handler(evstate->event,\nevstate->data,\nevstate->last,\nnow);", "if (evstate->data) {", "mon...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17, 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
8,037
static coroutine_fn int qcow2_co_pdiscard(BlockDriverState *bs, int64_t offset, int count) { int ret; BDRVQcow2State *s = bs->opaque; if (!QEMU_IS_ALIGNED(offset | count, s->cluster_size)) { assert(count < s->cluster_size); return -ENOTSUP; ...
true
qemu
048c5fd1bfc787adcb1b726ce997e87fe44545fd
static coroutine_fn int qcow2_co_pdiscard(BlockDriverState *bs, int64_t offset, int count) { int ret; BDRVQcow2State *s = bs->opaque; if (!QEMU_IS_ALIGNED(offset | count, s->cluster_size)) { assert(count < s->cluster_size); return -ENOTSUP; ...
{ "code": [ " return -ENOTSUP;" ], "line_no": [ 17 ] }
static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t offset, int count) { int VAR_0; BDRVQcow2State *s = bs->opaque; if (!QEMU_IS_ALIGNED(offset | count, s->cluster_size)) { assert(count < s->cluster_size); return -ENOTSUP; } ...
[ "static coroutine_fn int FUNC_0(BlockDriverState *bs,\nint64_t offset, int count)\n{", "int VAR_0;", "BDRVQcow2State *s = bs->opaque;", "if (!QEMU_IS_ALIGNED(offset | count, s->cluster_size)) {", "assert(count < s->cluster_size);", "return -ENOTSUP;", "}", "qemu_co_mutex_lock(&s->lock);", "VAR_0 = q...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ] ]
8,038
void stb_tce(VIOsPAPRDevice *dev, uint64_t taddr, uint8_t val) { spapr_tce_dma_write(dev, taddr, &val, sizeof(val)); }
true
qemu
ad0ebb91cd8b5fdc4a583b03645677771f420a46
void stb_tce(VIOsPAPRDevice *dev, uint64_t taddr, uint8_t val) { spapr_tce_dma_write(dev, taddr, &val, sizeof(val)); }
{ "code": [ "void stb_tce(VIOsPAPRDevice *dev, uint64_t taddr, uint8_t val)", " spapr_tce_dma_write(dev, taddr, &val, sizeof(val));", " spapr_tce_dma_write(dev, taddr, &val, sizeof(val));", " spapr_tce_dma_write(dev, taddr, &val, sizeof(val));", " spapr_tce_dma_write(dev, taddr, &val, ...
void FUNC_0(VIOsPAPRDevice *VAR_0, uint64_t VAR_1, uint8_t VAR_2) { spapr_tce_dma_write(VAR_0, VAR_1, &VAR_2, sizeof(VAR_2)); }
[ "void FUNC_0(VIOsPAPRDevice *VAR_0, uint64_t VAR_1, uint8_t VAR_2)\n{", "spapr_tce_dma_write(VAR_0, VAR_1, &VAR_2, sizeof(VAR_2));", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
8,039
static void to_meta_with_crop(AVCodecContext *avctx, AVFrame *p, int *dest) { int blockx, blocky, x, y; int luma = 0; int height = FFMIN(avctx->height, C64YRES); int width = FFMIN(avctx->width , C64XRES); uint8_t *src = p->data[0]; for (blocky = 0; blocky < C64YRES; blocky += 8) { ...
true
FFmpeg
87513d654546a99f8ddb045ca4fa5d33778a617e
static void to_meta_with_crop(AVCodecContext *avctx, AVFrame *p, int *dest) { int blockx, blocky, x, y; int luma = 0; int height = FFMIN(avctx->height, C64YRES); int width = FFMIN(avctx->width , C64XRES); uint8_t *src = p->data[0]; for (blocky = 0; blocky < C64YRES; blocky += 8) { ...
{ "code": [ " luma = (src[(x + 0 + y * p->linesize[0])] +", " src[(x + 1 + y * p->linesize[0])]) / 2;" ], "line_no": [ 29, 31 ] }
static void FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6; int VAR_7 = 0; int VAR_8 = FFMIN(VAR_0->VAR_8, C64YRES); int VAR_9 = FFMIN(VAR_0->VAR_9 , C64XRES); uint8_t *src = VAR_1->data[0]; for (VAR_4 = 0; VAR_4 < C64YRES; VAR_4 += 8) { ...
[ "static void FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6;", "int VAR_7 = 0;", "int VAR_8 = FFMIN(VAR_0->VAR_8, C64YRES);", "int VAR_9 = FFMIN(VAR_0->VAR_9 , C64XRES);", "uint8_t *src = VAR_1->data[0];", "for (VAR_4 = 0; VAR_4 < C64YRES; VAR_4 += 8) {",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
8,040
static int mxf_read_packet_old(AVFormatContext *s, AVPacket *pkt) { KLVPacket klv; MXFContext *mxf = s->priv_data; int ret; while ((ret = klv_read_packet(&klv, s->pb)) == 0) { PRINT_KEY(s, "read packet", klv.key); av_log(s, AV_LOG_TRACE, "size %"PRIu64" offset %#"PRIx64"\n", klv...
true
FFmpeg
fdb8c455b637f86e2e85503b7e090fa448164398
static int mxf_read_packet_old(AVFormatContext *s, AVPacket *pkt) { KLVPacket klv; MXFContext *mxf = s->priv_data; int ret; while ((ret = klv_read_packet(&klv, s->pb)) == 0) { PRINT_KEY(s, "read packet", klv.key); av_log(s, AV_LOG_TRACE, "size %"PRIu64" offset %#"PRIx64"\n", klv...
{ "code": [ " } else if (track->intra_only) {" ], "line_no": [ 159 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { KLVPacket klv; MXFContext *mxf = VAR_0->priv_data; int VAR_2; while ((VAR_2 = klv_read_packet(&klv, VAR_0->pb)) == 0) { PRINT_KEY(VAR_0, "read packet", klv.key); av_log(VAR_0, AV_LOG_TRACE, "size %"PRIu64" offset %#"PR...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "KLVPacket klv;", "MXFContext *mxf = VAR_0->priv_data;", "int VAR_2;", "while ((VAR_2 = klv_read_packet(&klv, VAR_0->pb)) == 0) {", "PRINT_KEY(VAR_0, \"read packet\", klv.key);", "av_log(VAR_0, AV_LOG_TRACE, \"size %\"PRIu64\" offset %#\"P...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ...
8,041
static int vorbis_floor1_decode(vorbis_context *vc, vorbis_floor_data *vfu, float *vec) { vorbis_floor1 *vf = &vfu->t1; GetBitContext *gb = &vc->gb; uint16_t range_v[4] = { 256, 128, 86, 64 }; unsigned range = range_v[vf->multiplier - 1]; uint16_t floor1_Y[258]...
false
FFmpeg
709cae2bcbc0ea2c5d46c932b3d8301cf8f98e6b
static int vorbis_floor1_decode(vorbis_context *vc, vorbis_floor_data *vfu, float *vec) { vorbis_floor1 *vf = &vfu->t1; GetBitContext *gb = &vc->gb; uint16_t range_v[4] = { 256, 128, 86, 64 }; unsigned range = range_v[vf->multiplier - 1]; uint16_t floor1_Y[258]...
{ "code": [], "line_no": [] }
static int FUNC_0(vorbis_context *VAR_0, vorbis_floor_data *VAR_1, float *VAR_2) { vorbis_floor1 *vf = &VAR_1->t1; GetBitContext *gb = &VAR_0->gb; uint16_t range_v[4] = { 256, 128, 86, 64 }; unsigned VAR_3 = range_v[vf->multiplier - 1]; uint16_t floor1_Y[258]; ...
[ "static int FUNC_0(vorbis_context *VAR_0,\nvorbis_floor_data *VAR_1, float *VAR_2)\n{", "vorbis_floor1 *vf = &VAR_1->t1;", "GetBitContext *gb = &VAR_0->gb;", "uint16_t range_v[4] = { 256, 128, 86, 64 };", "unsigned VAR_3 = range_v[vf->multiplier - 1];", "uint16_t floor1_Y[258];", "uint16_t floor1_Y_fina...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29, 31 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
8,042
static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, enum PixelFormat srcFormat, enum PixelFormat dstFormat, int srcW, int srcH, int dstW, int dstH, int flags) { static enum PixelFormat cur_srcFormat; static int cur_srcW, cur_srcH; static uint8_t *src[...
false
FFmpeg
4bf44785982278fae086d25063439cfa343382d7
static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, enum PixelFormat srcFormat, enum PixelFormat dstFormat, int srcW, int srcH, int dstW, int dstH, int flags) { static enum PixelFormat cur_srcFormat; static int cur_srcW, cur_srcH; static uint8_t *src[...
{ "code": [], "line_no": [] }
static int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int VAR_2, int VAR_3, enum PixelFormat VAR_4, enum PixelFormat VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10) { static enum PixelFormat VAR_11; static int VAR_12, VAR_13; static uint8_t *VAR_14[4]; ...
[ "static int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int VAR_2, int VAR_3,\nenum PixelFormat VAR_4, enum PixelFormat VAR_5,\nint VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10)\n{", "static enum PixelFormat VAR_11;", "static int VAR_12, VAR_13;", "static uint8_t *VAR_14[4];", "static int VAR_15[4];", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [...
8,043
static uint64_t pl061_read(void *opaque, hwaddr offset, unsigned size) { PL061State *s = (PL061State *)opaque; if (offset >= 0xfd0 && offset < 0x1000) { return s->id[(offset - 0xfd0) >> 2]; } if (offset < 0x400) { return s->data & (offset >> 2); ...
false
qemu
09aa3bf382243151e77682b2e89f997349b306d8
static uint64_t pl061_read(void *opaque, hwaddr offset, unsigned size) { PL061State *s = (PL061State *)opaque; if (offset >= 0xfd0 && offset < 0x1000) { return s->id[(offset - 0xfd0) >> 2]; } if (offset < 0x400) { return s->data & (offset >> 2); ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, hwaddr offset, unsigned size) { PL061State *s = (PL061State *)opaque; if (offset >= 0xfd0 && offset < 0x1000) { return s->id[(offset - 0xfd0) >> 2]; } if (offset < 0x400) { return s->data & (offset >> 2); } ...
[ "static uint64_t FUNC_0(void *opaque, hwaddr offset,\nunsigned size)\n{", "PL061State *s = (PL061State *)opaque;", "if (offset >= 0xfd0 && offset < 0x1000) {", "return s->id[(offset - 0xfd0) >> 2];", "}", "if (offset < 0x400) {", "return s->data & (offset >> 2);", "}", "switch (offset) {", "case 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [ 45, 47 ], [ 49, 51...
8,045
void address_space_unmap(AddressSpace *as, void *buffer, hwaddr len, int is_write, hwaddr access_len) { if (buffer != bounce.buffer) { MemoryRegion *mr; ram_addr_t addr1; mr = qemu_ram_addr_from_host(buffer, &addr1); assert(mr != NULL); if (...
false
qemu
6886867e9880830d735d8ae6f6cc63ed9eb2be0c
void address_space_unmap(AddressSpace *as, void *buffer, hwaddr len, int is_write, hwaddr access_len) { if (buffer != bounce.buffer) { MemoryRegion *mr; ram_addr_t addr1; mr = qemu_ram_addr_from_host(buffer, &addr1); assert(mr != NULL); if (...
{ "code": [], "line_no": [] }
void FUNC_0(AddressSpace *VAR_0, void *VAR_1, hwaddr VAR_2, int VAR_3, hwaddr VAR_4) { if (VAR_1 != bounce.VAR_1) { MemoryRegion *mr; ram_addr_t addr1; mr = qemu_ram_addr_from_host(VAR_1, &addr1); assert(mr != NULL); if (VAR_3) { ...
[ "void FUNC_0(AddressSpace *VAR_0, void *VAR_1, hwaddr VAR_2,\nint VAR_3, hwaddr VAR_4)\n{", "if (VAR_1 != bounce.VAR_1) {", "MemoryRegion *mr;", "ram_addr_t addr1;", "mr = qemu_ram_addr_from_host(VAR_1, &addr1);", "assert(mr != NULL);", "if (VAR_3) {", "while (VAR_4) {", "unsigned VAR_5;", "VAR_5 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
8,047
int qemu_savevm_state_complete(Monitor *mon, QEMUFile *f) { SaveStateEntry *se; cpu_synchronize_all_states(); QTAILQ_FOREACH(se, &savevm_handlers, entry) { if (se->save_live_state == NULL) continue; /* Section type */ qemu_put_byte(f, QEMU_VM_SECTION_END); ...
false
qemu
2975725f6b3d634dbe924ea9d9f4d86b8a5b217d
int qemu_savevm_state_complete(Monitor *mon, QEMUFile *f) { SaveStateEntry *se; cpu_synchronize_all_states(); QTAILQ_FOREACH(se, &savevm_handlers, entry) { if (se->save_live_state == NULL) continue; qemu_put_byte(f, QEMU_VM_SECTION_END); qemu_put_b...
{ "code": [], "line_no": [] }
int FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1) { SaveStateEntry *se; cpu_synchronize_all_states(); QTAILQ_FOREACH(se, &savevm_handlers, entry) { if (se->save_live_state == NULL) continue; qemu_put_byte(VAR_1, QEMU_VM_SECTION_END); qemu_put_be32(VAR_1,...
[ "int FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1)\n{", "SaveStateEntry *se;", "cpu_synchronize_all_states();", "QTAILQ_FOREACH(se, &savevm_handlers, entry) {", "if (se->save_live_state == NULL)\ncontinue;", "qemu_put_byte(VAR_1, QEMU_VM_SECTION_END);", "qemu_put_be32(VAR_1, se->section_id);", "se->save_liv...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 49 ], [ 51 ], [ 57 ], [ 59 ], [ 61 ], [ 65 ], [ 67...
8,048
clk_setup_cb cpu_ppc_tb_init (CPUState *env, uint32_t freq) { ppc_tb_t *tb_env; tb_env = qemu_mallocz(sizeof(ppc_tb_t)); if (tb_env == NULL) return NULL; env->tb_env = tb_env; /* Create new timer */ tb_env->decr_timer = qemu_new_timer(vm_clock, &cpu_ppc_decr_cb, env); #if defi...
false
qemu
b172c56a6d849554f7e43adc95983a9d6c042689
clk_setup_cb cpu_ppc_tb_init (CPUState *env, uint32_t freq) { ppc_tb_t *tb_env; tb_env = qemu_mallocz(sizeof(ppc_tb_t)); if (tb_env == NULL) return NULL; env->tb_env = tb_env; tb_env->decr_timer = qemu_new_timer(vm_clock, &cpu_ppc_decr_cb, env); #if defined(TARGET_PPC64H) ...
{ "code": [], "line_no": [] }
clk_setup_cb FUNC_0 (CPUState *env, uint32_t freq) { ppc_tb_t *tb_env; tb_env = qemu_mallocz(sizeof(ppc_tb_t)); if (tb_env == NULL) return NULL; env->tb_env = tb_env; tb_env->decr_timer = qemu_new_timer(vm_clock, &cpu_ppc_decr_cb, env); #if defined(TARGET_PPC64H) tb_env-...
[ "clk_setup_cb FUNC_0 (CPUState *env, uint32_t freq)\n{", "ppc_tb_t *tb_env;", "tb_env = qemu_mallocz(sizeof(ppc_tb_t));", "if (tb_env == NULL)\nreturn NULL;", "env->tb_env = tb_env;", "tb_env->decr_timer = qemu_new_timer(vm_clock, &cpu_ppc_decr_cb, env);", "#if defined(TARGET_PPC64H)\ntb_env->hdecr_time...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 31 ], [ 33 ] ]
8,050
bool qemu_clock_has_timers(QEMUClockType type) { return timerlist_has_timers( main_loop_tlg.tl[type]); }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
bool qemu_clock_has_timers(QEMUClockType type) { return timerlist_has_timers( main_loop_tlg.tl[type]); }
{ "code": [], "line_no": [] }
bool FUNC_0(QEMUClockType type) { return timerlist_has_timers( main_loop_tlg.tl[type]); }
[ "bool FUNC_0(QEMUClockType type)\n{", "return timerlist_has_timers(\nmain_loop_tlg.tl[type]);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
8,051
static uint64_t pxa2xx_i2c_read(void *opaque, hwaddr addr, unsigned size) { PXA2xxI2CState *s = (PXA2xxI2CState *) opaque; I2CSlave *slave; addr -= s->offset; switch (addr) { case ICR: return s->control; case ISR: return s->status | (i2...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static uint64_t pxa2xx_i2c_read(void *opaque, hwaddr addr, unsigned size) { PXA2xxI2CState *s = (PXA2xxI2CState *) opaque; I2CSlave *slave; addr -= s->offset; switch (addr) { case ICR: return s->control; case ISR: return s->status | (i2...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned size) { PXA2xxI2CState *s = (PXA2xxI2CState *) opaque; I2CSlave *slave; addr -= s->offset; switch (addr) { case ICR: return s->control; case ISR: return s->status | (i2c_bus_bus...
[ "static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{", "PXA2xxI2CState *s = (PXA2xxI2CState *) opaque;", "I2CSlave *slave;", "addr -= s->offset;", "switch (addr) {", "case ICR:\nreturn s->control;", "case ISR:\nreturn s->status | (i2c_bus_busy(s->bus) << 2);", "case ISAR:\nslave = I2C...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35, 37, 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [...
8,052
uint32_t ide_ioport_read(void *opaque, uint32_t addr1) { IDEBus *bus = opaque; IDEState *s = idebus_active_if(bus); uint32_t addr; int ret, hob; addr = addr1 & 7; /* FIXME: HOB readback uses bit 7, but it's always set right now */ //hob = s->select & (1 << 7); hob = 0; sw...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
uint32_t ide_ioport_read(void *opaque, uint32_t addr1) { IDEBus *bus = opaque; IDEState *s = idebus_active_if(bus); uint32_t addr; int ret, hob; addr = addr1 & 7; hob = 0; switch(addr) { case 0: ret = 0xff; break; case 1: if ((!bus->...
{ "code": [], "line_no": [] }
uint32_t FUNC_0(void *opaque, uint32_t addr1) { IDEBus *bus = opaque; IDEState *s = idebus_active_if(bus); uint32_t addr; int VAR_0, VAR_1; addr = addr1 & 7; VAR_1 = 0; switch(addr) { case 0: VAR_0 = 0xff; break; case 1: if ((!bus->i...
[ "uint32_t FUNC_0(void *opaque, uint32_t addr1)\n{", "IDEBus *bus = opaque;", "IDEState *s = idebus_active_if(bus);", "uint32_t addr;", "int VAR_0, VAR_1;", "addr = addr1 & 7;", "VAR_1 = 0;", "switch(addr) {", "case 0:\nVAR_0 = 0xff;", "break;", "case 1:\nif ((!bus->ifs[0].bs && !bus->ifs[1].bs) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33, 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49, 51, 53 ], [ 55,...
8,053
static void disas_fp_2src(DisasContext *s, uint32_t insn) { unsupported_encoding(s, insn); }
false
qemu
459cc34290b2823403f9820345c8a83f66495e1d
static void disas_fp_2src(DisasContext *s, uint32_t insn) { unsupported_encoding(s, insn); }
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1) { unsupported_encoding(VAR_0, VAR_1); }
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{", "unsupported_encoding(VAR_0, VAR_1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
8,054
static const char *io_port_to_string(uint32_t io_port) { if (io_port >= QXL_IO_RANGE_SIZE) { return "out of range"; } static const char *io_port_to_string[QXL_IO_RANGE_SIZE + 1] = { [QXL_IO_NOTIFY_CMD] = "QXL_IO_NOTIFY_CMD", [QXL_IO_NOTIFY_CURSOR] = "QXL_I...
false
qemu
4295e15aa730a95003a3639d6dad2eb1e65a59e2
static const char *io_port_to_string(uint32_t io_port) { if (io_port >= QXL_IO_RANGE_SIZE) { return "out of range"; } static const char *io_port_to_string[QXL_IO_RANGE_SIZE + 1] = { [QXL_IO_NOTIFY_CMD] = "QXL_IO_NOTIFY_CMD", [QXL_IO_NOTIFY_CURSOR] = "QXL_I...
{ "code": [], "line_no": [] }
static const char *VAR_1(uint32_t VAR_0) { if (VAR_0 >= QXL_IO_RANGE_SIZE) { return "out of range"; } static const char *VAR_1[QXL_IO_RANGE_SIZE + 1] = { [QXL_IO_NOTIFY_CMD] = "QXL_IO_NOTIFY_CMD", [QXL_IO_NOTIFY_CURSOR] = "QXL_IO_NOTIFY_CURSOR", [...
[ "static const char *VAR_1(uint32_t VAR_0)\n{", "if (VAR_0 >= QXL_IO_RANGE_SIZE) {", "return \"out of range\";", "}", "static const char *VAR_1[QXL_IO_RANGE_SIZE + 1] = {", "[QXL_IO_NOTIFY_CMD] = \"QXL_IO_NOTIFY_CMD\",\n[QXL_IO_NOTIFY_CURSOR] = \"QXL_IO_NOTIFY_CURSOR\",\n[QXL_IO_UPDATE...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67 ], [...
8,055
static int timer_load(QEMUFile *f, void *opaque, int version_id) { if (version_id != 1 && version_id != 2) return -EINVAL; if (cpu_ticks_enabled) { return -EINVAL; } cpu_ticks_offset=qemu_get_be64(f); ticks_per_sec=qemu_get_be64(f); if (version_id == 2) { cpu_cl...
false
qemu
b03b2e48cb322cb695ff7a6666b25712140ea3c9
static int timer_load(QEMUFile *f, void *opaque, int version_id) { if (version_id != 1 && version_id != 2) return -EINVAL; if (cpu_ticks_enabled) { return -EINVAL; } cpu_ticks_offset=qemu_get_be64(f); ticks_per_sec=qemu_get_be64(f); if (version_id == 2) { cpu_cl...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2) { if (VAR_2 != 1 && VAR_2 != 2) return -EINVAL; if (cpu_ticks_enabled) { return -EINVAL; } cpu_ticks_offset=qemu_get_be64(VAR_0); ticks_per_sec=qemu_get_be64(VAR_0); if (VAR_2 == 2) { cpu_clock_offset=qe...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{", "if (VAR_2 != 1 && VAR_2 != 2)\nreturn -EINVAL;", "if (cpu_ticks_enabled) {", "return -EINVAL;", "}", "cpu_ticks_offset=qemu_get_be64(VAR_0);", "ticks_per_sec=qemu_get_be64(VAR_0);", "if (VAR_2 == 2) {", "cpu_clock_offset=qemu_get_be64...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
8,056
void omap_uwire_attach(struct omap_uwire_s *s, uWireSlave *slave, int chipselect) { if (chipselect < 0 || chipselect > 3) { fprintf(stderr, "%s: Bad chipselect %i\n", __FUNCTION__, chipselect); exit(-1); } s->chip[chipselect] = slave; }
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
void omap_uwire_attach(struct omap_uwire_s *s, uWireSlave *slave, int chipselect) { if (chipselect < 0 || chipselect > 3) { fprintf(stderr, "%s: Bad chipselect %i\n", __FUNCTION__, chipselect); exit(-1); } s->chip[chipselect] = slave; }
{ "code": [], "line_no": [] }
void FUNC_0(struct omap_uwire_s *VAR_0, uWireSlave *VAR_1, int VAR_2) { if (VAR_2 < 0 || VAR_2 > 3) { fprintf(stderr, "%VAR_0: Bad VAR_2 %i\n", __FUNCTION__, VAR_2); exit(-1); } VAR_0->chip[VAR_2] = VAR_1; }
[ "void FUNC_0(struct omap_uwire_s *VAR_0,\nuWireSlave *VAR_1, int VAR_2)\n{", "if (VAR_2 < 0 || VAR_2 > 3) {", "fprintf(stderr, \"%VAR_0: Bad VAR_2 %i\\n\", __FUNCTION__, VAR_2);", "exit(-1);", "}", "VAR_0->chip[VAR_2] = VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ] ]
8,057
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max){ AVRational a0={0,1}, a1={1,0}; int sign= (num<0) ^ (den<0); int64_t gcd= av_gcd(FFABS(num), FFABS(den)); if(gcd){ num = FFABS(num)/gcd; den = FFABS(den)/gcd; } if(num<=max && den<=max){ ...
false
FFmpeg
b926b6282d3b9fc8115660ae013f74f4f8c06d30
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max){ AVRational a0={0,1}, a1={1,0}; int sign= (num<0) ^ (den<0); int64_t gcd= av_gcd(FFABS(num), FFABS(den)); if(gcd){ num = FFABS(num)/gcd; den = FFABS(den)/gcd; } if(num<=max && den<=max){ ...
{ "code": [], "line_no": [] }
int FUNC_0(int *VAR_0, int *VAR_1, int64_t VAR_2, int64_t VAR_3, int64_t VAR_4){ AVRational a0={0,1}, a1={1,0}; int VAR_5= (VAR_2<0) ^ (VAR_3<0); int64_t gcd= av_gcd(FFABS(VAR_2), FFABS(VAR_3)); if(gcd){ VAR_2 = FFABS(VAR_2)/gcd; VAR_3 = FFABS(VAR_3)/gcd; } if(VAR_2<=VA...
[ "int FUNC_0(int *VAR_0, int *VAR_1, int64_t VAR_2, int64_t VAR_3, int64_t VAR_4){", "AVRational a0={0,1}, a1={1,0};", "int VAR_5= (VAR_2<0) ^ (VAR_3<0);", "int64_t gcd= av_gcd(FFABS(VAR_2), FFABS(VAR_3));", "if(gcd){", "VAR_2 = FFABS(VAR_2)/gcd;", "VAR_3 = FFABS(VAR_3)/gcd;", "}", "if(VAR_2<=VAR_4 &...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], ...
8,058
static void sigp_cpu_restart(void *arg) { CPUState *cs = arg; S390CPU *cpu = S390_CPU(cs); struct kvm_s390_irq irq = { .type = KVM_S390_RESTART, }; kvm_s390_vcpu_interrupt(cpu, &irq); s390_cpu_set_state(CPU_STATE_OPERATING, cpu); }
false
qemu
6eb8f212d2686ed9b17077d554465df7ae06f805
static void sigp_cpu_restart(void *arg) { CPUState *cs = arg; S390CPU *cpu = S390_CPU(cs); struct kvm_s390_irq irq = { .type = KVM_S390_RESTART, }; kvm_s390_vcpu_interrupt(cpu, &irq); s390_cpu_set_state(CPU_STATE_OPERATING, cpu); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { CPUState *cs = VAR_0; S390CPU *cpu = S390_CPU(cs); struct kvm_s390_irq VAR_1 = { .type = KVM_S390_RESTART, }; kvm_s390_vcpu_interrupt(cpu, &VAR_1); s390_cpu_set_state(CPU_STATE_OPERATING, cpu); }
[ "static void FUNC_0(void *VAR_0)\n{", "CPUState *cs = VAR_0;", "S390CPU *cpu = S390_CPU(cs);", "struct kvm_s390_irq VAR_1 = {", ".type = KVM_S390_RESTART,\n};", "kvm_s390_vcpu_interrupt(cpu, &VAR_1);", "s390_cpu_set_state(CPU_STATE_OPERATING, cpu);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ] ]
8,059
print_insn_arg (const char *d, unsigned char *buffer, unsigned char *p0, bfd_vma addr, disassemble_info *info) { int val = 0; int place = d[1]; unsigned char *p = p0; int regno; const char *regname; unsigned char *p1; double flval; int flt_p; bfd_signed_vma disp; unsigned int ...
false
qemu
d14a68b6dc0cc01ddd4c1c7c5907b95c3938679c
print_insn_arg (const char *d, unsigned char *buffer, unsigned char *p0, bfd_vma addr, disassemble_info *info) { int val = 0; int place = d[1]; unsigned char *p = p0; int regno; const char *regname; unsigned char *p1; double flval; int flt_p; bfd_signed_vma disp; unsigned int ...
{ "code": [], "line_no": [] }
FUNC_0 (const char *VAR_0, unsigned char *VAR_1, unsigned char *VAR_2, bfd_vma VAR_3, disassemble_info *VAR_4) { int VAR_20 = 0; int VAR_6 = VAR_0[1]; unsigned char *VAR_7 = VAR_2; int VAR_8; const char *VAR_9; unsigned char *VAR_10; double VAR_11; int VAR_12; bfd_signed_vma disp...
[ "FUNC_0 (const char *VAR_0,\nunsigned char *VAR_1,\nunsigned char *VAR_2,\nbfd_vma VAR_3,\ndisassemble_info *VAR_4)\n{", "int VAR_20 = 0;", "int VAR_6 = VAR_0[1];", "unsigned char *VAR_7 = VAR_2;", "int VAR_8;", "const char *VAR_9;", "unsigned char *VAR_10;", "double VAR_11;", "int VAR_12;", "bfd_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
8,060
static bool migration_object_check(MigrationState *ms, Error **errp) { if (!migrate_params_check(&ms->parameters, errp)) { return false; } return true; }
false
qemu
6b19a7d91c8de9904c67b87203a46e55db4181ab
static bool migration_object_check(MigrationState *ms, Error **errp) { if (!migrate_params_check(&ms->parameters, errp)) { return false; } return true; }
{ "code": [], "line_no": [] }
static bool FUNC_0(MigrationState *ms, Error **errp) { if (!migrate_params_check(&ms->parameters, errp)) { return false; } return true; }
[ "static bool FUNC_0(MigrationState *ms, Error **errp)\n{", "if (!migrate_params_check(&ms->parameters, errp)) {", "return false;", "}", "return true;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ] ]
8,061
static MigrationState *migrate_init(Monitor *mon, int detach, int blk, int inc) { MigrationState *s = migrate_get_current(); int64_t bandwidth_limit = s->bandwidth_limit; memset(s, 0, sizeof(*s)); s->bandwidth_limit = bandwidth_limit; s->blk = blk; s->shared = inc; /* s->mon is u...
false
qemu
e1c37d0e94048502f9874e6356ce7136d4b05bdb
static MigrationState *migrate_init(Monitor *mon, int detach, int blk, int inc) { MigrationState *s = migrate_get_current(); int64_t bandwidth_limit = s->bandwidth_limit; memset(s, 0, sizeof(*s)); s->bandwidth_limit = bandwidth_limit; s->blk = blk; s->shared = inc; s-...
{ "code": [], "line_no": [] }
static MigrationState *FUNC_0(Monitor *mon, int detach, int blk, int inc) { MigrationState *s = migrate_get_current(); int64_t bandwidth_limit = s->bandwidth_limit; memset(s, 0, sizeof(*s)); s->bandwidth_limit = bandwidth_limit; s->blk = blk; s->shared = inc; s->mon =...
[ "static MigrationState *FUNC_0(Monitor *mon, int detach, int blk, int inc)\n{", "MigrationState *s = migrate_get_current();", "int64_t bandwidth_limit = s->bandwidth_limit;", "memset(s, 0, sizeof(*s));", "s->bandwidth_limit = bandwidth_limit;", "s->blk = blk;", "s->shared = inc;", "s->mon = mon;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
8,062
static int find_pte64(CPUPPCState *env, mmu_ctx_t *ctx, int h, int rw, int type, int target_page_bits) { hwaddr pteg_off; target_ulong pte0, pte1; int i, good = -1; int ret, r; ret = -1; /* No entry found */ pteg_off = get_pteg_offset(env, ctx->hash[h], HASH_PTE_S...
false
qemu
496272a7018ba01aa2b87a1a5ed866ff85133401
static int find_pte64(CPUPPCState *env, mmu_ctx_t *ctx, int h, int rw, int type, int target_page_bits) { hwaddr pteg_off; target_ulong pte0, pte1; int i, good = -1; int ret, r; ret = -1; pteg_off = get_pteg_offset(env, ctx->hash[h], HASH_PTE_SIZE_64); for (i...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { hwaddr pteg_off; target_ulong pte0, pte1; int VAR_6, VAR_7 = -1; int VAR_8, VAR_9; VAR_8 = -1; pteg_off = get_pteg_offset(VAR_0, VAR_1->hash[VAR_2], HASH_PTE_SIZ...
[ "static int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{", "hwaddr pteg_off;", "target_ulong pte0, pte1;", "int VAR_6, VAR_7 = -1;", "int VAR_8, VAR_9;", "VAR_8 = -1;", "pteg_off = get_pteg_offset(VAR_0, VAR_1->hash[VAR_2], HASH_PTE_SIZE_64);", "for (VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43, 45, 47 ], [ 49 ...
8,063
static int qcow2_mark_dirty(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; uint64_t val; int ret; assert(s->qcow_version >= 3); if (s->incompatible_features & QCOW2_INCOMPAT_DIRTY) { return 0; /* already dirty */ } val = cpu_to_be64(s->incompatible_features | Q...
false
qemu
280d373579558f73a8b70e329d9a6206933d3809
static int qcow2_mark_dirty(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; uint64_t val; int ret; assert(s->qcow_version >= 3); if (s->incompatible_features & QCOW2_INCOMPAT_DIRTY) { return 0; } val = cpu_to_be64(s->incompatible_features | QCOW2_INCOMPAT_DIRTY...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0) { BDRVQcowState *s = VAR_0->opaque; uint64_t val; int VAR_1; assert(s->qcow_version >= 3); if (s->incompatible_features & QCOW2_INCOMPAT_DIRTY) { return 0; } val = cpu_to_be64(s->incompatible_features | QCOW2_INCOMPAT_DIRTY);...
[ "static int FUNC_0(BlockDriverState *VAR_0)\n{", "BDRVQcowState *s = VAR_0->opaque;", "uint64_t val;", "int VAR_1;", "assert(s->qcow_version >= 3);", "if (s->incompatible_features & QCOW2_INCOMPAT_DIRTY) {", "return 0;", "}", "val = cpu_to_be64(s->incompatible_features | QCOW2_INCOMPAT_DIRTY);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [...
8,064
static void decode_sigpass(Jpeg2000T1Context *t1, int width, int height, int bpno, int bandno) { int mask = 3 << (bpno - 1), y0, x, y; for (y0 = 0; y0 < height; y0 += 4) for (x = 0; x < width; x++) for (y = y0; y < height && y < y0 + 4; y++) ...
false
FFmpeg
64f6570c6e2c5a0344383e89c7897809f0c6e1f1
static void decode_sigpass(Jpeg2000T1Context *t1, int width, int height, int bpno, int bandno) { int mask = 3 << (bpno - 1), y0, x, y; for (y0 = 0; y0 < height; y0 += 4) for (x = 0; x < width; x++) for (y = y0; y < height && y < y0 + 4; y++) ...
{ "code": [], "line_no": [] }
static void FUNC_0(Jpeg2000T1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5 = 3 << (VAR_3 - 1), VAR_6, VAR_7, VAR_8; for (VAR_6 = 0; VAR_6 < VAR_2; VAR_6 += 4) for (VAR_7 = 0; VAR_7 < VAR_1; VAR_7++) for (VAR_8 = VAR_6; VAR_8 < VAR_...
[ "static void FUNC_0(Jpeg2000T1Context *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{", "int VAR_5 = 3 << (VAR_3 - 1), VAR_6, VAR_7, VAR_8;", "for (VAR_6 = 0; VAR_6 < VAR_2; VAR_6 += 4)", "for (VAR_7 = 0; VAR_7 < VAR_1; VAR_7++)", "for (VAR_8 = VAR_6; VAR_8 < VAR_2 && VAR_8 < VAR_6 + 4; VAR_8++)", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23, 25, 27 ], [ 29, 31 ], [ 35, 37, 39, 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ] ]
8,066
static uint8_t get_tlm(Jpeg2000DecoderContext *s, int n) { uint8_t Stlm, ST, SP, tile_tlm, i; bytestream_get_byte(&s->buf); /* Ztlm: skipped */ Stlm = bytestream_get_byte(&s->buf); // too complex ? ST = ((Stlm >> 4) & 0x01) + ((Stlm >> 4) & 0x02); ST = (Stlm >> 4) & 0x03; ...
false
FFmpeg
0b42631641d998e509cde6fa344edc6ab5cb4ac8
static uint8_t get_tlm(Jpeg2000DecoderContext *s, int n) { uint8_t Stlm, ST, SP, tile_tlm, i; bytestream_get_byte(&s->buf); Stlm = bytestream_get_byte(&s->buf); ST = (Stlm >> 4) & 0x03; SP = (Stlm >> 6) & 0x01; tile_tlm = (n - 4) / ((SP + 1) * 2 + ST); ...
{ "code": [], "line_no": [] }
static uint8_t FUNC_0(Jpeg2000DecoderContext *s, int n) { uint8_t Stlm, ST, SP, tile_tlm, i; bytestream_get_byte(&s->buf); Stlm = bytestream_get_byte(&s->buf); ST = (Stlm >> 4) & 0x03; SP = (Stlm >> 6) & 0x01; tile_tlm = (n - 4) / ((SP + 1) * 2 + ST); ...
[ "static uint8_t FUNC_0(Jpeg2000DecoderContext *s, int n)\n{", "uint8_t Stlm, ST, SP, tile_tlm, i;", "bytestream_get_byte(&s->buf);", "Stlm = bytestream_get_byte(&s->buf);", "ST = (Stlm >> 4) & 0x03;", "SP = (Stlm >> 6) & 0x01;", "tile_tlm = (n - 4) / ((SP + 1) * 2 + ST);", "for (i = 0; i < tile_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ...
8,067
static void esp_pci_io_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned int size) { PCIESPState *pci = opaque; if (size < 4 || addr & 3) { /* need to upgrade request: we only support 4-bytes accesses */ uint32_t current = 0, mask; ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void esp_pci_io_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned int size) { PCIESPState *pci = opaque; if (size < 4 || addr & 3) { uint32_t current = 0, mask; int shift; if (addr < 0x40) { current =...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned int VAR_3) { PCIESPState *pci = VAR_0; if (VAR_3 < 4 || VAR_1 & 3) { uint32_t current = 0, mask; int VAR_4; if (VAR_1 < 0x40) { current = pci-...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned int VAR_3)\n{", "PCIESPState *pci = VAR_0;", "if (VAR_3 < 4 || VAR_1 & 3) {", "uint32_t current = 0, mask;", "int VAR_4;", "if (VAR_1 < 0x40) {", "current = pci->esp.wregs[VAR_1 >> 2];", "} else if (VAR_1 < 0x60) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
8,068
static void spice_update_buttons(QemuSpicePointer *pointer, int wheel, uint32_t button_mask) { static uint32_t bmap[INPUT_BUTTON__MAX] = { [INPUT_BUTTON_LEFT] = 0x01, [INPUT_BUTTON_MIDDLE] = 0x04, [INPUT_BUTTON_RIGHT] = 0x02, ...
false
qemu
d20a580bc0eac9d489884f6d2ed28105880532b6
static void spice_update_buttons(QemuSpicePointer *pointer, int wheel, uint32_t button_mask) { static uint32_t bmap[INPUT_BUTTON__MAX] = { [INPUT_BUTTON_LEFT] = 0x01, [INPUT_BUTTON_MIDDLE] = 0x04, [INPUT_BUTTON_RIGHT] = 0x02, ...
{ "code": [], "line_no": [] }
static void FUNC_0(QemuSpicePointer *VAR_0, int VAR_1, uint32_t VAR_2) { static uint32_t VAR_3[INPUT_BUTTON__MAX] = { [INPUT_BUTTON_LEFT] = 0x01, [INPUT_BUTTON_MIDDLE] = 0x04, [INPUT_BUTTON_RIGHT] = 0x02, [INPUT_BUTTON_WHEEL_U...
[ "static void FUNC_0(QemuSpicePointer *VAR_0,\nint VAR_1, uint32_t VAR_2)\n{", "static uint32_t VAR_3[INPUT_BUTTON__MAX] = {", "[INPUT_BUTTON_LEFT] = 0x01,\n[INPUT_BUTTON_MIDDLE] = 0x04,\n[INPUT_BUTTON_RIGHT] = 0x02,\n[INPUT_BUTTON_WHEEL_UP] = 0x10,\n[INPUT_BUTTON_WHEEL_DOWN] = 0x20,\n};", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11, 13, 15, 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
8,069
Slirp *slirp_init(int restricted, struct in_addr vnetwork, struct in_addr vnetmask, struct in_addr vhost, const char *vhostname, const char *tftp_path, const char *bootfile, struct in_addr vdhcp_start, struct in_addr vnameserver, void *opaque) ...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
Slirp *slirp_init(int restricted, struct in_addr vnetwork, struct in_addr vnetmask, struct in_addr vhost, const char *vhostname, const char *tftp_path, const char *bootfile, struct in_addr vdhcp_start, struct in_addr vnameserver, void *opaque) ...
{ "code": [], "line_no": [] }
Slirp *FUNC_0(int restricted, struct in_addr vnetwork, struct in_addr vnetmask, struct in_addr vhost, const char *vhostname, const char *tftp_path, const char *bootfile, struct in_addr vdhcp_start, struct in_addr vnameserver, void *opaque) { ...
[ "Slirp *FUNC_0(int restricted, struct in_addr vnetwork,\nstruct in_addr vnetmask, struct in_addr vhost,\nconst char *vhostname, const char *tftp_path,\nconst char *bootfile, struct in_addr vdhcp_start,\nstruct in_addr vnameserver, void *opaque)\n{", "Slirp *slirp = qemu_mallocz(sizeof(Slirp));", "slirp_init_onc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [...
8,070
BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState *bs, int granularity, Error **errp) { int64_t bitmap_size; BdrvDirtyBitmap *bitmap; assert((granularity & (granularity - 1)) == 0); granularity >>= BDRV_SECTOR_BITS; assert(granularity); ...
false
qemu
786a4ea82ec9c87e3a895cf41081029b285a5fe5
BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState *bs, int granularity, Error **errp) { int64_t bitmap_size; BdrvDirtyBitmap *bitmap; assert((granularity & (granularity - 1)) == 0); granularity >>= BDRV_SECTOR_BITS; assert(granularity); ...
{ "code": [], "line_no": [] }
BdrvDirtyBitmap *FUNC_0(BlockDriverState *bs, int granularity, Error **errp) { int64_t bitmap_size; BdrvDirtyBitmap *bitmap; assert((granularity & (granularity - 1)) == 0); granularity >>= BDRV_SECTOR_BITS; assert(granularity); bitmap_size = ...
[ "BdrvDirtyBitmap *FUNC_0(BlockDriverState *bs, int granularity,\nError **errp)\n{", "int64_t bitmap_size;", "BdrvDirtyBitmap *bitmap;", "assert((granularity & (granularity - 1)) == 0);", "granularity >>= BDRV_SECTOR_BITS;", "assert(granularity);", "bitmap_size = bdrv_nb_sectors(bs);", "if (bitmap_size...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
8,072
static void mch_update_pciexbar(MCHPCIState *mch) { PCIDevice *pci_dev = PCI_DEVICE(mch); BusState *bus = qdev_get_parent_bus(DEVICE(mch)); PCIExpressHost *pehb = PCIE_HOST_BRIDGE(bus->parent); uint64_t pciexbar; int enable; uint64_t addr; uint64_t addr_mask; uint32_t length; ...
false
qemu
a0efbf16604770b9d805bcf210ec29942321134f
static void mch_update_pciexbar(MCHPCIState *mch) { PCIDevice *pci_dev = PCI_DEVICE(mch); BusState *bus = qdev_get_parent_bus(DEVICE(mch)); PCIExpressHost *pehb = PCIE_HOST_BRIDGE(bus->parent); uint64_t pciexbar; int enable; uint64_t addr; uint64_t addr_mask; uint32_t length; ...
{ "code": [], "line_no": [] }
static void FUNC_0(MCHPCIState *VAR_0) { PCIDevice *pci_dev = PCI_DEVICE(VAR_0); BusState *bus = qdev_get_parent_bus(DEVICE(VAR_0)); PCIExpressHost *pehb = PCIE_HOST_BRIDGE(bus->parent); uint64_t pciexbar; int VAR_1; uint64_t addr; uint64_t addr_mask; uint32_t length; p...
[ "static void FUNC_0(MCHPCIState *VAR_0)\n{", "PCIDevice *pci_dev = PCI_DEVICE(VAR_0);", "BusState *bus = qdev_get_parent_bus(DEVICE(VAR_0));", "PCIExpressHost *pehb = PCIE_HOST_BRIDGE(bus->parent);", "uint64_t pciexbar;", "int VAR_1;", "uint64_t addr;", "uint64_t addr_mask;", "uint32_t length;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [...
8,074
static int get_cluster_duration(MOVTrack *track, int cluster_idx) { int64_t next_dts; if (cluster_idx >= track->entry) return 0; if (cluster_idx + 1 == track->entry) next_dts = track->track_duration + track->start_dts; else next_dts = track->cluster[cluster_idx + 1].d...
false
FFmpeg
20fa3fb93d0f3d3eab2b1f63a03168f492fae047
static int get_cluster_duration(MOVTrack *track, int cluster_idx) { int64_t next_dts; if (cluster_idx >= track->entry) return 0; if (cluster_idx + 1 == track->entry) next_dts = track->track_duration + track->start_dts; else next_dts = track->cluster[cluster_idx + 1].d...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVTrack *VAR_0, int VAR_1) { int64_t next_dts; if (VAR_1 >= VAR_0->entry) return 0; if (VAR_1 + 1 == VAR_0->entry) next_dts = VAR_0->track_duration + VAR_0->start_dts; else next_dts = VAR_0->cluster[VAR_1 + 1].dts; return next_dts - VAR_0->cl...
[ "static int FUNC_0(MOVTrack *VAR_0, int VAR_1)\n{", "int64_t next_dts;", "if (VAR_1 >= VAR_0->entry)\nreturn 0;", "if (VAR_1 + 1 == VAR_0->entry)\nnext_dts = VAR_0->track_duration + VAR_0->start_dts;", "else\nnext_dts = VAR_0->cluster[VAR_1 + 1].dts;", "return next_dts - VAR_0->cluster[VAR_1].dts;", "}"...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15, 17 ], [ 19, 21 ], [ 25 ], [ 27 ] ]
8,075
static inline int tcg_temp_new_internal(TCGType type, int temp_local) { TCGContext *s = &tcg_ctx; TCGTemp *ts; int idx, k; k = type + (temp_local ? TCG_TYPE_COUNT : 0); idx = find_first_bit(s->free_temps[k].l, TCG_MAX_TEMPS); if (idx < TCG_MAX_TEMPS) { /* There is already an av...
false
qemu
f6aa2f7dee920f6f06fefe122cf2a58cabe3cac0
static inline int tcg_temp_new_internal(TCGType type, int temp_local) { TCGContext *s = &tcg_ctx; TCGTemp *ts; int idx, k; k = type + (temp_local ? TCG_TYPE_COUNT : 0); idx = find_first_bit(s->free_temps[k].l, TCG_MAX_TEMPS); if (idx < TCG_MAX_TEMPS) { clear_bit(idx, ...
{ "code": [], "line_no": [] }
static inline int FUNC_0(TCGType VAR_0, int VAR_1) { TCGContext *s = &tcg_ctx; TCGTemp *ts; int VAR_2, VAR_3; VAR_3 = VAR_0 + (VAR_1 ? TCG_TYPE_COUNT : 0); VAR_2 = find_first_bit(s->free_temps[VAR_3].l, TCG_MAX_TEMPS); if (VAR_2 < TCG_MAX_TEMPS) { clear_bit(VAR_2, s->...
[ "static inline int FUNC_0(TCGType VAR_0, int VAR_1)\n{", "TCGContext *s = &tcg_ctx;", "TCGTemp *ts;", "int VAR_2, VAR_3;", "VAR_3 = VAR_0 + (VAR_1 ? TCG_TYPE_COUNT : 0);", "VAR_2 = find_first_bit(s->free_temps[VAR_3].l, TCG_MAX_TEMPS);", "if (VAR_2 < TCG_MAX_TEMPS) {", "clear_bit(VAR_2, s->free_temps[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
8,076
static void tcg_out_r(TCGContext *s, TCGArg t0) { assert(t0 < TCG_TARGET_NB_REGS); tcg_out8(s, t0); }
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static void tcg_out_r(TCGContext *s, TCGArg t0) { assert(t0 < TCG_TARGET_NB_REGS); tcg_out8(s, t0); }
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGArg VAR_1) { assert(VAR_1 < TCG_TARGET_NB_REGS); tcg_out8(VAR_0, VAR_1); }
[ "static void FUNC_0(TCGContext *VAR_0, TCGArg VAR_1)\n{", "assert(VAR_1 < TCG_TARGET_NB_REGS);", "tcg_out8(VAR_0, VAR_1);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
8,077
ISADevice *pc_find_fdc0(void) { int i; Object *container; CheckFdcState state = { 0 }; for (i = 0; i < ARRAY_SIZE(fdc_container_path); i++) { container = container_get(qdev_get_machine(), fdc_container_path[i]); object_child_foreach(container, check_fdc, &state); } i...
false
qemu
3dc6f8693694a649a9c83f1e2746565b47683923
ISADevice *pc_find_fdc0(void) { int i; Object *container; CheckFdcState state = { 0 }; for (i = 0; i < ARRAY_SIZE(fdc_container_path); i++) { container = container_get(qdev_get_machine(), fdc_container_path[i]); object_child_foreach(container, check_fdc, &state); } i...
{ "code": [], "line_no": [] }
ISADevice *FUNC_0(void) { int VAR_0; Object *container; CheckFdcState state = { 0 }; for (VAR_0 = 0; VAR_0 < ARRAY_SIZE(fdc_container_path); VAR_0++) { container = container_get(qdev_get_machine(), fdc_container_path[VAR_0]); object_child_foreach(container, check_fdc, &state); ...
[ "ISADevice *FUNC_0(void)\n{", "int VAR_0;", "Object *container;", "CheckFdcState state = { 0 };", "for (VAR_0 = 0; VAR_0 < ARRAY_SIZE(fdc_container_path); VAR_0++) {", "container = container_get(qdev_get_machine(), fdc_container_path[VAR_0]);", "object_child_foreach(container, check_fdc, &state);", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 37 ], [ 39 ] ]
8,079
static void qvirtio_scsi_start(const char *extra_opts) { char *cmdline; cmdline = g_strdup_printf( "-drive id=drv0,if=none,file=/dev/null,format=raw " "-device virtio-scsi-pci,id=vs0 " "-device scsi-hd,bus=vs0.0,drive=drv0 %s", extra_opts ...
false
qemu
a980f7f2c2f4d7e9a1eba4f804cd66dbd458b6d4
static void qvirtio_scsi_start(const char *extra_opts) { char *cmdline; cmdline = g_strdup_printf( "-drive id=drv0,if=none,file=/dev/null,format=raw " "-device virtio-scsi-pci,id=vs0 " "-device scsi-hd,bus=vs0.0,drive=drv0 %s", extra_opts ...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { char *VAR_1; VAR_1 = g_strdup_printf( "-drive id=drv0,if=none,file=/dev/null,format=raw " "-device virtio-scsi-pci,id=vs0 " "-device scsi-hd,bus=vs0.0,drive=drv0 %s", VAR_0 ? : ""); qtest_start(...
[ "static void FUNC_0(const char *VAR_0)\n{", "char *VAR_1;", "VAR_1 = g_strdup_printf(\n\"-drive id=drv0,if=none,file=/dev/null,format=raw \"\n\"-device virtio-scsi-pci,id=vs0 \"\n\"-device scsi-hd,bus=vs0.0,drive=drv0 %s\",\nVAR_0 ? : \"\");", "qtest_start(VAR_1);", "g_free(VAR_1);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
8,080
static int kvm_s390_io_adapter_map(S390FLICState *fs, uint32_t id, uint64_t map_addr, bool do_map) { struct kvm_s390_io_adapter_req req = { .id = id, .type = do_map ? KVM_S390_IO_ADAPTER_MAP : KVM_S390_IO_ADAPTER_UNMAP, .addr = map_addr, }; ...
false
qemu
4cbd6c41fa3aa901e12e8158e8d22dd8f70f7a90
static int kvm_s390_io_adapter_map(S390FLICState *fs, uint32_t id, uint64_t map_addr, bool do_map) { struct kvm_s390_io_adapter_req req = { .id = id, .type = do_map ? KVM_S390_IO_ADAPTER_MAP : KVM_S390_IO_ADAPTER_UNMAP, .addr = map_addr, }; ...
{ "code": [], "line_no": [] }
static int FUNC_0(S390FLICState *VAR_0, uint32_t VAR_1, uint64_t VAR_2, bool VAR_3) { struct kvm_s390_io_adapter_req VAR_4 = { .VAR_1 = VAR_1, .type = VAR_3 ? KVM_S390_IO_ADAPTER_MAP : KVM_S390_IO_ADAPTER_UNMAP, .addr = VAR_2, }; struct kvm_...
[ "static int FUNC_0(S390FLICState *VAR_0, uint32_t VAR_1,\nuint64_t VAR_2, bool VAR_3)\n{", "struct kvm_s390_io_adapter_req VAR_4 = {", ".VAR_1 = VAR_1,\n.type = VAR_3 ? KVM_S390_IO_ADAPTER_MAP : KVM_S390_IO_ADAPTER_UNMAP,\n.addr = VAR_2,\n};", "struct kvm_device_attr VAR_5 = {", ".group = KVM_DEV_FLIC_ADAPT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11, 13, 15 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ] ]
8,082
uint32_t HELPER(get_r13_banked)(CPUState *env, uint32_t mode) { return env->banked_r13[bank_number(mode)]; }
false
qemu
39ea3d4eaf1ff300ee55946108394729bc053dfa
uint32_t HELPER(get_r13_banked)(CPUState *env, uint32_t mode) { return env->banked_r13[bank_number(mode)]; }
{ "code": [], "line_no": [] }
uint32_t FUNC_0(get_r13_banked)(CPUState *env, uint32_t mode) { return env->banked_r13[bank_number(mode)]; }
[ "uint32_t FUNC_0(get_r13_banked)(CPUState *env, uint32_t mode)\n{", "return env->banked_r13[bank_number(mode)];", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
8,083
static void usb_msd_set_bootindex(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { USBDevice *dev = USB_DEVICE(obj); MSDState *s = USB_STORAGE_DEV(dev); int32_t boot_index; Error *local_err = NULL; visit_type_int32(v, name, &boot_ind...
false
qemu
621ff94d5074d88253a5818c6b9c4db718fbfc65
static void usb_msd_set_bootindex(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { USBDevice *dev = USB_DEVICE(obj); MSDState *s = USB_STORAGE_DEV(dev); int32_t boot_index; Error *local_err = NULL; visit_type_int32(v, name, &boot_ind...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2, void *VAR_3, Error **VAR_4) { USBDevice *dev = USB_DEVICE(VAR_0); MSDState *s = USB_STORAGE_DEV(dev); int32_t boot_index; Error *local_err = NULL; visit_type_int32(VAR_1, VAR_2, &boot_inde...
[ "static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2,\nvoid *VAR_3, Error **VAR_4)\n{", "USBDevice *dev = USB_DEVICE(VAR_0);", "MSDState *s = USB_STORAGE_DEV(dev);", "int32_t boot_index;", "Error *local_err = NULL;", "visit_type_int32(VAR_1, VAR_2, &boot_index, &local_err);", "if (local_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51, 53 ], [...
8,084
static void e100_pci_reset(EEPRO100State * s, E100PCIDeviceInfo *e100_device) { uint32_t device = s->device; uint8_t *pci_conf = s->dev.config; TRACE(OTHER, logout("%p\n", s)); /* PCI Vendor ID */ pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); /* PCI Device ID */ pci_co...
false
qemu
ad03502b3fa1c7e3046775077965030cc595b36e
static void e100_pci_reset(EEPRO100State * s, E100PCIDeviceInfo *e100_device) { uint32_t device = s->device; uint8_t *pci_conf = s->dev.config; TRACE(OTHER, logout("%p\n", s)); pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); pci_config_set_device_id(pci_conf, e100_devi...
{ "code": [], "line_no": [] }
static void FUNC_0(EEPRO100State * VAR_0, E100PCIDeviceInfo *VAR_1) { uint32_t device = VAR_0->device; uint8_t *pci_conf = VAR_0->dev.config; TRACE(OTHER, logout("%p\n", VAR_0)); pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); pci_config_set_device_id(pci_conf, VAR_1->...
[ "static void FUNC_0(EEPRO100State * VAR_0, E100PCIDeviceInfo *VAR_1)\n{", "uint32_t device = VAR_0->device;", "uint8_t *pci_conf = VAR_0->dev.config;", "TRACE(OTHER, logout(\"%p\\n\", VAR_0));", "pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);", "pci_config_set_device_id(pci_conf, VAR_1->device_i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 17 ], [ 21 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 37 ], [ 45 ], [ 49 ], [ 53 ], [ 57 ], [ 59 ], [ 63 ], [ 65, 67, 69, 71, 73, 75...
8,087
int net_init_bridge(const NetClientOptions *opts, const char *name, NetClientState *peer, Error **errp) { /* FIXME error_setg(errp, ...) on failure */ const NetdevBridgeOptions *bridge; const char *helper, *br; TAPState *s; int fd, vnet_hdr; assert(opts->kind == NET...
true
qemu
a8a21be9855e0bb0947a7325d0d1741a8814f21e
int net_init_bridge(const NetClientOptions *opts, const char *name, NetClientState *peer, Error **errp) { const NetdevBridgeOptions *bridge; const char *helper, *br; TAPState *s; int fd, vnet_hdr; assert(opts->kind == NET_CLIENT_OPTIONS_KIND_BRIDGE); bridge = ...
{ "code": [ " fd = net_bridge_run_helper(helper, br);" ], "line_no": [ 31 ] }
int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1, NetClientState *VAR_2, Error **VAR_3) { const NetdevBridgeOptions *VAR_4; const char *VAR_5, *VAR_6; TAPState *s; int VAR_7, VAR_8; assert(VAR_0->kind == NET_CLIENT_OPTIONS_KIND_BRIDGE); VAR_4 = VAR_...
[ "int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,\nNetClientState *VAR_2, Error **VAR_3)\n{", "const NetdevBridgeOptions *VAR_4;", "const char *VAR_5, *VAR_6;", "TAPState *s;", "int VAR_7, VAR_8;", "assert(VAR_0->kind == NET_CLIENT_OPTIONS_KIND_BRIDGE);", "VAR_4 = VAR_0->VAR_4;", "VAR_5 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 55 ], [ 57...
8,089
static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah, int Al, const uint8_t *mb_bitmask, int mb_bitmask_size, const AVFrame *reference) { int i, mb_x, mb_y; uint8_t *data[MAX_COMPONENTS]; c...
true
FFmpeg
08509c8f86626815a3e9e68d600d1aacbb8df4bf
static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah, int Al, const uint8_t *mb_bitmask, int mb_bitmask_size, const AVFrame *reference) { int i, mb_x, mb_y; uint8_t *data[MAX_COMPONENTS]; c...
{ "code": [ " ptr = data[c] + block_offset;", " if (copy_mb)", " mjpeg_copy_block(s, ptr, reference_data[c] + block_offset,", " linesize[c], s->avctx->lowres);", " ...
static int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, const uint8_t *VAR_4, int VAR_5, const AVFrame *VAR_6) { int VAR_7, VAR_8, VAR_9; uint8_t *data[MAX_COMPONENTS]; const uint8_t *VAR_10[M...
[ "static int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, const uint8_t *VAR_4,\nint VAR_5,\nconst AVFrame *VAR_6)\n{", "int VAR_7, VAR_8, VAR_9;", "uint8_t *data[MAX_COMPONENTS];", "const uint8_t *VAR_10[MAX_COMPONENTS];", "int VAR_11[MAX_COMPONENTS];", "GetBitContext mb_bitmask_gb ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
8,090
int kvm_cpu_exec(CPUState *cpu) { struct kvm_run *run = cpu->kvm_run; int ret, run_ret; DPRINTF("kvm_cpu_exec()\n"); if (kvm_arch_process_async_events(cpu)) { cpu->exit_request = 0; return EXCP_HLT; } qemu_mutex_unlock_iothread(); do { MemTxAttrs at...
true
qemu
d187e08dc4d0793dab1a9747b72b17a1cf0d3e43
int kvm_cpu_exec(CPUState *cpu) { struct kvm_run *run = cpu->kvm_run; int ret, run_ret; DPRINTF("kvm_cpu_exec()\n"); if (kvm_arch_process_async_events(cpu)) { cpu->exit_request = 0; return EXCP_HLT; } qemu_mutex_unlock_iothread(); do { MemTxAttrs at...
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0) { struct kvm_run *VAR_1 = VAR_0->kvm_run; int VAR_2, VAR_3; DPRINTF("FUNC_0()\n"); if (kvm_arch_process_async_events(VAR_0)) { VAR_0->exit_request = 0; return EXCP_HLT; } qemu_mutex_unlock_iothread(); do { MemTxAttrs attr...
[ "int FUNC_0(CPUState *VAR_0)\n{", "struct kvm_run *VAR_1 = VAR_0->kvm_run;", "int VAR_2, VAR_3;", "DPRINTF(\"FUNC_0()\\n\");", "if (kvm_arch_process_async_events(VAR_0)) {", "VAR_0->exit_request = 0;", "return EXCP_HLT;", "}", "qemu_mutex_unlock_iothread();", "do {", "MemTxAttrs attrs;", "if (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 61 ], [ 63...
8,091
static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *pb = s->pb; AVCodecContext *codec = s->streams[pkt->stream_index]->codec; int keyframe = !!(pkt->flags & AV_PKT_FLAG_KEY); int duration = pkt->duration; int ret; ...
false
FFmpeg
b1f517f503139ab9d0c406228b53663e86a128df
static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *pb = s->pb; AVCodecContext *codec = s->streams[pkt->stream_index]->codec; int keyframe = !!(pkt->flags & AV_PKT_FLAG_KEY); int duration = pkt->duration; int ret; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MatroskaMuxContext *mkv = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; AVCodecContext *codec = VAR_0->streams[VAR_1->stream_index]->codec; int VAR_2 = !!(VAR_1->flags & AV_PKT_FLAG_KEY); int VAR_3 = VAR_1->VAR_3; int VAR_4; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "MatroskaMuxContext *mkv = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "AVCodecContext *codec = VAR_0->streams[VAR_1->stream_index]->codec;", "int VAR_2 = !!(VAR_1->flags & AV_PKT_FLAG_KEY);", "int VAR_3 = VAR_1->VAR_3;", "int VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...
8,092
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { ADPCMContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; int block_predictor[2]; short *samples; uint8_t *src; int st; /* stereo */ ...
false
FFmpeg
5c69a4fd682ae479f0921361b7953e6163bd3064
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { ADPCMContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; int block_predictor[2]; short *samples; uint8_t *src; int st; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { ADPCMContext *c = VAR_0->priv_data; ADPCMChannelStatus *cs; int VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9[2]; short *VAR_10; uint8_t *src; int VAR_11; unsigned cha...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "ADPCMContext *c = VAR_0->priv_data;", "ADPCMChannelStatus *cs;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9[2];", "short *VAR_10;", "uint8_t *src;", "int VAR_11;", "unsigned char VAR_12 = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49, 51 ], [ 53 ], [...
8,094
static int jp2_find_codestream(Jpeg2000DecoderContext *s) { int32_t atom_size; int found_codestream = 0, search_range = 10; // Skip JPEG 2000 signature atom. s->buf += 12; while (!found_codestream && search_range) { atom_size = AV_RB32(s->buf); if (AV_RB32(s->buf + 4) == ...
false
FFmpeg
0b42631641d998e509cde6fa344edc6ab5cb4ac8
static int jp2_find_codestream(Jpeg2000DecoderContext *s) { int32_t atom_size; int found_codestream = 0, search_range = 10; s->buf += 12; while (!found_codestream && search_range) { atom_size = AV_RB32(s->buf); if (AV_RB32(s->buf + 4) == JP2_CODESTREAM) { fo...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0) { int32_t atom_size; int VAR_1 = 0, VAR_2 = 10; VAR_0->buf += 12; while (!VAR_1 && VAR_2) { atom_size = AV_RB32(VAR_0->buf); if (AV_RB32(VAR_0->buf + 4) == JP2_CODESTREAM) { VAR_1 = 1; VAR_0->buf ...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0)\n{", "int32_t atom_size;", "int VAR_1 = 0, VAR_2 = 10;", "VAR_0->buf += 12;", "while (!VAR_1 && VAR_2) {", "atom_size = AV_RB32(VAR_0->buf);", "if (AV_RB32(VAR_0->buf + 4) == JP2_CODESTREAM) {", "VAR_1 = 1;", "VAR_0->buf += 8;", "} else {", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ] ]
8,096
parallel_ioport_write_sw(void *opaque, uint32_t addr, uint32_t val) { ParallelState *s = opaque; pdebug("write addr=0x%02x val=0x%02x\n", addr, val); addr &= 7; switch(addr) { case PARA_REG_DATA: s->dataw = val; parallel_update_irq(s); break; case PARA_REG_C...
true
qemu
6ab3fc32ea640026726bc5f9f4db622d0954fb8a
parallel_ioport_write_sw(void *opaque, uint32_t addr, uint32_t val) { ParallelState *s = opaque; pdebug("write addr=0x%02x val=0x%02x\n", addr, val); addr &= 7; switch(addr) { case PARA_REG_DATA: s->dataw = val; parallel_update_irq(s); break; case PARA_REG_C...
{ "code": [ " qemu_chr_fe_write(s->chr, &s->dataw, 1);" ], "line_no": [ 49 ] }
FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { ParallelState *s = VAR_0; pdebug("write VAR_1=0x%02x VAR_2=0x%02x\n", VAR_1, VAR_2); VAR_1 &= 7; switch(VAR_1) { case PARA_REG_DATA: s->dataw = VAR_2; parallel_update_irq(s); break; case PARA_REG_CTR: ...
[ "FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "ParallelState *s = VAR_0;", "pdebug(\"write VAR_1=0x%02x VAR_2=0x%02x\\n\", VAR_1, VAR_2);", "VAR_1 &= 7;", "switch(VAR_1) {", "case PARA_REG_DATA:\ns->dataw = VAR_2;", "parallel_update_irq(s);", "break;", "case PARA_REG_CTR:\nVAR_2 |= 0xc0;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...