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
3,916
MigrationParameters *qmp_query_migrate_parameters(Error **errp) { MigrationParameters *params; MigrationState *s = migrate_get_current(); params = g_malloc0(sizeof(*params)); params->compress_level = s->parameters.compress_level; params->compress_threads = s->parameters.compress_threads; ...
true
qemu
69ef1f36b0f882fc5ba9491fb272fa5f83ac1d3d
MigrationParameters *qmp_query_migrate_parameters(Error **errp) { MigrationParameters *params; MigrationState *s = migrate_get_current(); params = g_malloc0(sizeof(*params)); params->compress_level = s->parameters.compress_level; params->compress_threads = s->parameters.compress_threads; ...
{ "code": [], "line_no": [] }
MigrationParameters *FUNC_0(Error **errp) { MigrationParameters *params; MigrationState *s = migrate_get_current(); params = g_malloc0(sizeof(*params)); params->compress_level = s->parameters.compress_level; params->compress_threads = s->parameters.compress_threads; params->decompress_t...
[ "MigrationParameters *FUNC_0(Error **errp)\n{", "MigrationParameters *params;", "MigrationState *s = migrate_get_current();", "params = g_malloc0(sizeof(*params));", "params->compress_level = s->parameters.compress_level;", "params->compress_threads = s->parameters.compress_threads;", "params->decompres...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ] ]
3,918
static int kvm_ppc_register_host_cpu_type(void) { TypeInfo type_info = { .name = TYPE_HOST_POWERPC_CPU, .instance_init = kvmppc_host_cpu_initfn, .class_init = kvmppc_host_cpu_class_init, }; PowerPCCPUClass *pvr_pcc; DeviceClass *dc; pvr_pcc = kvm_ppc_get_host_cpu_c...
false
qemu
7ebaf7955603cc50988e0eafd5e6074320fefc70
static int kvm_ppc_register_host_cpu_type(void) { TypeInfo type_info = { .name = TYPE_HOST_POWERPC_CPU, .instance_init = kvmppc_host_cpu_initfn, .class_init = kvmppc_host_cpu_class_init, }; PowerPCCPUClass *pvr_pcc; DeviceClass *dc; pvr_pcc = kvm_ppc_get_host_cpu_c...
{ "code": [], "line_no": [] }
static int FUNC_0(void) { TypeInfo type_info = { .name = TYPE_HOST_POWERPC_CPU, .instance_init = kvmppc_host_cpu_initfn, .class_init = kvmppc_host_cpu_class_init, }; PowerPCCPUClass *pvr_pcc; DeviceClass *dc; pvr_pcc = kvm_ppc_get_host_cpu_class(); if (pvr_pcc...
[ "static int FUNC_0(void)\n{", "TypeInfo type_info = {", ".name = TYPE_HOST_POWERPC_CPU,\n.instance_init = kvmppc_host_cpu_initfn,\n.class_init = kvmppc_host_cpu_class_init,\n};", "PowerPCCPUClass *pvr_pcc;", "DeviceClass *dc;", "pvr_pcc = kvm_ppc_get_host_cpu_class();", "if (pvr_pcc == NULL) {", "retu...
[ 0, 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 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 53,...
3,919
static inline int tcg_gen_code_common(TCGContext *s, tcg_insn_unit *gen_code_buf, long search_pc) { int oi, oi_next; #ifdef DEBUG_DISAS if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) { qemu_log("OP:\n"); tcg_...
false
qemu
bec1631100323fac0900aea71043d5c4e22fc2fa
static inline int tcg_gen_code_common(TCGContext *s, tcg_insn_unit *gen_code_buf, long search_pc) { int oi, oi_next; #ifdef DEBUG_DISAS if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) { qemu_log("OP:\n"); tcg_...
{ "code": [], "line_no": [] }
static inline int FUNC_0(TCGContext *VAR_0, tcg_insn_unit *VAR_1, long VAR_2) { int VAR_3, VAR_4; #ifdef DEBUG_DISAS if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) { qemu_log("OP:\n"); tcg_dump_ops(VAR_0); ...
[ "static inline int FUNC_0(TCGContext *VAR_0,\ntcg_insn_unit *VAR_1,\nlong VAR_2)\n{", "int VAR_3, VAR_4;", "#ifdef DEBUG_DISAS\nif (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) {", "qemu_log(\"OP:\\n\");", "tcg_dump_ops(VAR_0);", "qemu_log(\"\\n\");", "}", "#endif\n#ifdef CONFIG_PROFILER\nVAR_0->opt_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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 29, 31 ], [ 33, 37, 39 ], [ 41, 45, 47 ], [ 49 ], [ 51, 55 ], [ 59, 61 ], [ 63, 67,...
3,922
void timer_mod_anticipate_ns(QEMUTimer *ts, int64_t expire_time) { QEMUTimerList *timer_list = ts->timer_list; bool rearm; qemu_mutex_lock(&timer_list->active_timers_lock); if (ts->expire_time == -1 || ts->expire_time > expire_time) { if (ts->expire_time != -1) { timer_del_l...
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
void timer_mod_anticipate_ns(QEMUTimer *ts, int64_t expire_time) { QEMUTimerList *timer_list = ts->timer_list; bool rearm; qemu_mutex_lock(&timer_list->active_timers_lock); if (ts->expire_time == -1 || ts->expire_time > expire_time) { if (ts->expire_time != -1) { timer_del_l...
{ "code": [], "line_no": [] }
void FUNC_0(QEMUTimer *VAR_0, int64_t VAR_1) { QEMUTimerList *timer_list = VAR_0->timer_list; bool rearm; qemu_mutex_lock(&timer_list->active_timers_lock); if (VAR_0->VAR_1 == -1 || VAR_0->VAR_1 > VAR_1) { if (VAR_0->VAR_1 != -1) { timer_del_locked(timer_list, VAR_0); ...
[ "void FUNC_0(QEMUTimer *VAR_0, int64_t VAR_1)\n{", "QEMUTimerList *timer_list = VAR_0->timer_list;", "bool rearm;", "qemu_mutex_lock(&timer_list->active_timers_lock);", "if (VAR_0->VAR_1 == -1 || VAR_0->VAR_1 > VAR_1) {", "if (VAR_0->VAR_1 != -1) {", "timer_del_locked(timer_list, VAR_0);", "}", "rea...
[ 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
3,923
static void pxa2xx_rtc_write(void *opaque, hwaddr addr, uint64_t value64, unsigned size) { PXA2xxRTCState *s = (PXA2xxRTCState *) opaque; uint32_t value = value64; switch (addr) { case RTTR: if (!(s->rttr & (1U << 31))) { pxa2xx_rtc_hzupdate(s);...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void pxa2xx_rtc_write(void *opaque, hwaddr addr, uint64_t value64, unsigned size) { PXA2xxRTCState *s = (PXA2xxRTCState *) opaque; uint32_t value = value64; switch (addr) { case RTTR: if (!(s->rttr & (1U << 31))) { pxa2xx_rtc_hzupdate(s);...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { PXA2xxRTCState *s = (PXA2xxRTCState *) VAR_0; uint32_t value = VAR_2; switch (VAR_1) { case RTTR: if (!(s->rttr & (1U << 31))) { pxa2xx_rtc_hzupdate(s); ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "PXA2xxRTCState *s = (PXA2xxRTCState *) VAR_0;", "uint32_t value = VAR_2;", "switch (VAR_1) {", "case RTTR:\nif (!(s->rttr & (1U << 31))) {", "pxa2xx_rtc_hzupdate(s);", "s->rttr = value;", "pxa2xx_rtc_alarm_update(s, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33, 35 ], [ 39, 41 ], [ 45, 47 ], [ 51 ], [ 53 ], [ 55 ], [ 59,...
3,925
static void omap_disc_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { struct omap_dss_s *s = (struct omap_dss_s *) opaque; if (size != 4) { omap_badwidth_write32(opaque, addr, value); return; } switch (addr) { case 0x010: /* ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void omap_disc_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { struct omap_dss_s *s = (struct omap_dss_s *) opaque; if (size != 4) { omap_badwidth_write32(opaque, addr, value); return; } switch (addr) { case 0x010: ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { struct omap_dss_s *VAR_4 = (struct omap_dss_s *) VAR_0; if (VAR_3 != 4) { omap_badwidth_write32(VAR_0, VAR_1, VAR_2); return; } switch (VAR_1) { case 0x010: ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "struct omap_dss_s *VAR_4 = (struct omap_dss_s *) VAR_0;", "if (VAR_3 != 4) {", "omap_badwidth_write32(VAR_0, VAR_1, VAR_2);", "return;", "}", "switch (VAR_1) {", "case 0x010:\nif (VAR_2 & 2)\nomap_dss_reset(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, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 55, 57...
3,927
static void bdrv_replace_child(BdrvChild *child, BlockDriverState *new_bs, bool check_new_perm) { BlockDriverState *old_bs = child->bs; uint64_t perm, shared_perm; if (old_bs) { /* Update permissions for old node. This is guaranteed to succeed * becau...
false
qemu
466787fbca9b25b47365b3d2c09d308df67a61db
static void bdrv_replace_child(BdrvChild *child, BlockDriverState *new_bs, bool check_new_perm) { BlockDriverState *old_bs = child->bs; uint64_t perm, shared_perm; if (old_bs) { bdrv_get_cumulative_perm(old_bs, &perm, &shared_perm); bdrv_...
{ "code": [], "line_no": [] }
static void FUNC_0(BdrvChild *VAR_0, BlockDriverState *VAR_1, bool VAR_2) { BlockDriverState *old_bs = VAR_0->bs; uint64_t perm, shared_perm; if (old_bs) { bdrv_get_cumulative_perm(old_bs, &perm, &shared_perm); bdrv_check_perm(old_bs, per...
[ "static void FUNC_0(BdrvChild *VAR_0, BlockDriverState *VAR_1,\nbool VAR_2)\n{", "BlockDriverState *old_bs = VAR_0->bs;", "uint64_t perm, shared_perm;", "if (old_bs) {", "bdrv_get_cumulative_perm(old_bs, &perm, &shared_perm);", "bdrv_check_perm(old_bs, perm, shared_perm, NULL, &error_abort);", "bdrv_set...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
3,928
void cpu_exec_init(CPUState *cpu, Error **errp) { CPUClass *cc = CPU_GET_CLASS(cpu); int cpu_index; Error *local_err = NULL; #ifndef CONFIG_USER_ONLY cpu->as = &address_space_memory; cpu->thread_id = qemu_get_thread_id(); #endif #if defined(CONFIG_USER_ONLY) cpu_list_lock(); #endi...
false
qemu
56943e8cc14b7eeeab67d1942fa5d8bcafe3e53f
void cpu_exec_init(CPUState *cpu, Error **errp) { CPUClass *cc = CPU_GET_CLASS(cpu); int cpu_index; Error *local_err = NULL; #ifndef CONFIG_USER_ONLY cpu->as = &address_space_memory; cpu->thread_id = qemu_get_thread_id(); #endif #if defined(CONFIG_USER_ONLY) cpu_list_lock(); #endi...
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, Error **VAR_1) { CPUClass *cc = CPU_GET_CLASS(VAR_0); int VAR_2; Error *local_err = NULL; #ifndef CONFIG_USER_ONLY VAR_0->as = &address_space_memory; VAR_0->thread_id = qemu_get_thread_id(); #endif #if defined(CONFIG_USER_ONLY) cpu_list_lock(); #endif ...
[ "void FUNC_0(CPUState *VAR_0, Error **VAR_1)\n{", "CPUClass *cc = CPU_GET_CLASS(VAR_0);", "int VAR_2;", "Error *local_err = NULL;", "#ifndef CONFIG_USER_ONLY\nVAR_0->as = &address_space_memory;", "VAR_0->thread_id = qemu_get_thread_id();", "#endif\n#if defined(CONFIG_USER_ONLY)\ncpu_list_lock();", "#e...
[ 0, 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, 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51, 53 ...
3,929
static int ide_qdev_init(DeviceState *qdev) { IDEDevice *dev = IDE_DEVICE(qdev); IDEDeviceClass *dc = IDE_DEVICE_GET_CLASS(dev); IDEBus *bus = DO_UPCAST(IDEBus, qbus, qdev->parent_bus); if (!dev->conf.bs) { error_report("No drive specified"); goto err; } if (dev->unit ...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static int ide_qdev_init(DeviceState *qdev) { IDEDevice *dev = IDE_DEVICE(qdev); IDEDeviceClass *dc = IDE_DEVICE_GET_CLASS(dev); IDEBus *bus = DO_UPCAST(IDEBus, qbus, qdev->parent_bus); if (!dev->conf.bs) { error_report("No drive specified"); goto err; } if (dev->unit ...
{ "code": [], "line_no": [] }
static int FUNC_0(DeviceState *VAR_0) { IDEDevice *dev = IDE_DEVICE(VAR_0); IDEDeviceClass *dc = IDE_DEVICE_GET_CLASS(dev); IDEBus *bus = DO_UPCAST(IDEBus, qbus, VAR_0->parent_bus); if (!dev->conf.bs) { error_report("No drive specified"); goto err; } if (dev->unit == -...
[ "static int FUNC_0(DeviceState *VAR_0)\n{", "IDEDevice *dev = IDE_DEVICE(VAR_0);", "IDEDeviceClass *dc = IDE_DEVICE_GET_CLASS(dev);", "IDEBus *bus = DO_UPCAST(IDEBus, qbus, VAR_0->parent_bus);", "if (!dev->conf.bs) {", "error_report(\"No drive specified\");", "goto err;", "}", "if (dev->unit == -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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ...
3,930
static int default_fdset_dup_fd_remove(int dup_fd) { return -1; }
false
qemu
1f001dc7bc9e435bf231a5b0edcad1c7c2bd6214
static int default_fdset_dup_fd_remove(int dup_fd) { return -1; }
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0) { return -1; }
[ "static int FUNC_0(int VAR_0)\n{", "return -1;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
3,931
void pc_hot_add_cpu(const int64_t id, Error **errp) { X86CPU *cpu; ObjectClass *oc; PCMachineState *pcms = PC_MACHINE(qdev_get_machine()); int64_t apic_id = x86_cpu_apic_id_from_index(id); Error *local_err = NULL; if (id < 0) { error_setg(errp, "Invalid CPU id: %" PRIi64, id); ...
false
qemu
4ec60c76d5ab513e375f17b043d2b9cb849adf6c
void pc_hot_add_cpu(const int64_t id, Error **errp) { X86CPU *cpu; ObjectClass *oc; PCMachineState *pcms = PC_MACHINE(qdev_get_machine()); int64_t apic_id = x86_cpu_apic_id_from_index(id); Error *local_err = NULL; if (id < 0) { error_setg(errp, "Invalid CPU id: %" PRIi64, id); ...
{ "code": [], "line_no": [] }
void FUNC_0(const int64_t VAR_0, Error **VAR_1) { X86CPU *cpu; ObjectClass *oc; PCMachineState *pcms = PC_MACHINE(qdev_get_machine()); int64_t apic_id = x86_cpu_apic_id_from_index(VAR_0); Error *local_err = NULL; if (VAR_0 < 0) { error_setg(VAR_1, "Invalid CPU VAR_0: %" PRIi64,...
[ "void FUNC_0(const int64_t VAR_0, Error **VAR_1)\n{", "X86CPU *cpu;", "ObjectClass *oc;", "PCMachineState *pcms = PC_MACHINE(qdev_get_machine());", "int64_t apic_id = x86_cpu_apic_id_from_index(VAR_0);", "Error *local_err = NULL;", "if (VAR_0 < 0) {", "error_setg(VAR_1, \"Invalid CPU VAR_0: %\" PRIi64...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ...
3,932
static void show_packet(AVFormatContext *fmt_ctx, AVPacket *pkt) { char val_str[128]; AVStream *st = fmt_ctx->streams[pkt->stream_index]; printf("[PACKET]\n"); printf("codec_type=%s\n", media_type_string(st->codec->codec_type)); printf("stream_index=%d\n", pkt->stream_index); printf("pt...
false
FFmpeg
3a8c95f730732b9f1ffacdbfbf79a01b202a67af
static void show_packet(AVFormatContext *fmt_ctx, AVPacket *pkt) { char val_str[128]; AVStream *st = fmt_ctx->streams[pkt->stream_index]; printf("[PACKET]\n"); printf("codec_type=%s\n", media_type_string(st->codec->codec_type)); printf("stream_index=%d\n", pkt->stream_index); printf("pt...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { char VAR_2[128]; AVStream *st = VAR_0->streams[VAR_1->stream_index]; printf("[PACKET]\n"); printf("codec_type=%s\n", media_type_string(st->codec->codec_type)); printf("stream_index=%d\n", VAR_1->stream_index); printf("pts=%s\...
[ "static void FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "char VAR_2[128];", "AVStream *st = VAR_0->streams[VAR_1->stream_index];", "printf(\"[PACKET]\\n\");", "printf(\"codec_type=%s\\n\", media_type_string(st->codec->codec_type));", "printf(\"stream_index=%d\\n\", VAR_1->stream_index);", "pri...
[ 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...
3,934
BusState *qbus_create(BusInfo *info, DeviceState *parent, const char *name) { BusState *bus; char *buf; int i,len; bus = qemu_mallocz(info->size); bus->info = info; bus->parent = parent; if (name) { /* use supplied name */ bus->name = qemu_strdup(name); } e...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
BusState *qbus_create(BusInfo *info, DeviceState *parent, const char *name) { BusState *bus; char *buf; int i,len; bus = qemu_mallocz(info->size); bus->info = info; bus->parent = parent; if (name) { bus->name = qemu_strdup(name); } else if (parent && paren...
{ "code": [], "line_no": [] }
BusState *FUNC_0(BusInfo *info, DeviceState *parent, const char *name) { BusState *bus; char *VAR_0; int VAR_1,VAR_2; bus = qemu_mallocz(info->size); bus->info = info; bus->parent = parent; if (name) { bus->name = qemu_strdup(name); } else if (parent && pa...
[ "BusState *FUNC_0(BusInfo *info, DeviceState *parent, const char *name)\n{", "BusState *bus;", "char *VAR_0;", "int VAR_1,VAR_2;", "bus = qemu_mallocz(info->size);", "bus->info = info;", "bus->parent = parent;", "if (name) {", "bus->name = qemu_strdup(name);", "} else if (parent && parent->id) {",...
[ 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [...
3,935
static int64_t coroutine_fn iscsi_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { IscsiLun *iscsilun = bs->opaque; struct scsi_get_lba_status *lbas = NULL; str...
false
qemu
67a0fd2a9bca204d2b39f910a97c7137636a0715
static int64_t coroutine_fn iscsi_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { IscsiLun *iscsilun = bs->opaque; struct scsi_get_lba_status *lbas = NULL; str...
{ "code": [], "line_no": [] }
static int64_t VAR_0 iscsi_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { IscsiLun *iscsilun = bs->opaque; struct scsi_get_lba_status *lbas = NULL; struct scs...
[ "static int64_t VAR_0 iscsi_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num,\nint nb_sectors, int *pnum)\n{", "IscsiLun *iscsilun = bs->opaque;", "struct scsi_get_lba_status *lbas = NULL;", "struct scsi_lba_status_descriptor *lbasd = NULL;", "struct IscsiTask iTask;", "int64_t ret;", "iscs...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 55, 57, 59,...
3,936
static inline void assert_fp_access_checked(DisasContext *s) { #ifdef CONFIG_DEBUG_TCG if (unlikely(!s->fp_access_checked || !s->cpacr_fpen)) { fprintf(stderr, "target-arm: FP access check missing for " "instruction 0x%08x\n", s->insn); abort(); } #endif }
false
qemu
9dbbc748d671c70599101836cd1c2719d92f3017
static inline void assert_fp_access_checked(DisasContext *s) { #ifdef CONFIG_DEBUG_TCG if (unlikely(!s->fp_access_checked || !s->cpacr_fpen)) { fprintf(stderr, "target-arm: FP access check missing for " "instruction 0x%08x\n", s->insn); abort(); } #endif }
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0) { #ifdef CONFIG_DEBUG_TCG if (unlikely(!VAR_0->fp_access_checked || !VAR_0->cpacr_fpen)) { fprintf(stderr, "target-arm: FP access check missing for " "instruction 0x%08x\n", VAR_0->insn); abort(); } #endif }
[ "static inline void FUNC_0(DisasContext *VAR_0)\n{", "#ifdef CONFIG_DEBUG_TCG\nif (unlikely(!VAR_0->fp_access_checked || !VAR_0->cpacr_fpen)) {", "fprintf(stderr, \"target-arm: FP access check missing for \"\n\"instruction 0x%08x\\n\", VAR_0->insn);", "abort();", "}", "#endif\n}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17, 19 ] ]
3,937
static void dp8393x_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { dp8393xState *s = opaque; int reg; if ((addr & ((1 << s->it_shift) - 1)) != 0) { return; } reg = addr >> s->it_shift; write_register(s, reg, (uint16_t)val); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void dp8393x_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { dp8393xState *s = opaque; int reg; if ((addr & ((1 << s->it_shift) - 1)) != 0) { return; } reg = addr >> s->it_shift; write_register(s, reg, (uint16_t)val); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { dp8393xState *s = VAR_0; int VAR_3; if ((VAR_1 & ((1 << s->it_shift) - 1)) != 0) { return; } VAR_3 = VAR_1 >> s->it_shift; write_register(s, VAR_3, (uint16_t)VAR_2); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "dp8393xState *s = VAR_0;", "int VAR_3;", "if ((VAR_1 & ((1 << s->it_shift) - 1)) != 0) {", "return;", "}", "VAR_3 = VAR_1 >> s->it_shift;", "write_register(s, VAR_3, (uint16_t)VAR_2);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ] ]
3,938
socket_sockaddr_to_address_vsock(struct sockaddr_storage *sa, socklen_t salen, Error **errp) { SocketAddressLegacy *addr; VsockSocketAddress *vaddr; struct sockaddr_vm *svm = (struct sockaddr_vm *)sa; addr = g_new0(SocketAddressL...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
socket_sockaddr_to_address_vsock(struct sockaddr_storage *sa, socklen_t salen, Error **errp) { SocketAddressLegacy *addr; VsockSocketAddress *vaddr; struct sockaddr_vm *svm = (struct sockaddr_vm *)sa; addr = g_new0(SocketAddressL...
{ "code": [], "line_no": [] }
FUNC_0(struct sockaddr_storage *VAR_0, socklen_t VAR_1, Error **VAR_2) { SocketAddressLegacy *addr; VsockSocketAddress *vaddr; struct sockaddr_vm *VAR_3 = (struct sockaddr_vm *)VAR_0; addr = g_new0(SocketAddressLegacy, 1); a...
[ "FUNC_0(struct sockaddr_storage *VAR_0,\nsocklen_t VAR_1,\nError **VAR_2)\n{", "SocketAddressLegacy *addr;", "VsockSocketAddress *vaddr;", "struct sockaddr_vm *VAR_3 = (struct sockaddr_vm *)VAR_0;", "addr = g_new0(SocketAddressLegacy, 1);", "addr->type = SOCKET_ADDRESS_LEGACY_KIND_VSOCK;", "addr->u.vsoc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ] ]
3,939
QObject *object_property_get_qobject(Object *obj, const char *name, Error **errp) { QObject *ret = NULL; Error *local_err = NULL; Visitor *v; v = qmp_output_visitor_new(&ret); object_property_get(obj, v, name, &local_err); if (!local_err) { ...
false
qemu
7d5e199ade76c53ec316ab6779800581bb47c50a
QObject *object_property_get_qobject(Object *obj, const char *name, Error **errp) { QObject *ret = NULL; Error *local_err = NULL; Visitor *v; v = qmp_output_visitor_new(&ret); object_property_get(obj, v, name, &local_err); if (!local_err) { ...
{ "code": [], "line_no": [] }
QObject *FUNC_0(Object *obj, const char *name, Error **errp) { QObject *ret = NULL; Error *local_err = NULL; Visitor *v; v = qmp_output_visitor_new(&ret); object_property_get(obj, v, name, &local_err); if (!local_err) { visit_complete(v, &r...
[ "QObject *FUNC_0(Object *obj, const char *name,\nError **errp)\n{", "QObject *ret = NULL;", "Error *local_err = NULL;", "Visitor *v;", "v = qmp_output_visitor_new(&ret);", "object_property_get(obj, v, name, &local_err);", "if (!local_err) {", "visit_complete(v, &ret);", "}", "error_propagate(errp,...
[ 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 ] ]
3,940
static KVMSlot *kvm_alloc_slot(KVMState *s) { int i; for (i = 0; i < ARRAY_SIZE(s->slots); i++) { /* KVM private memory slots */ if (i >= 8 && i < 12) continue; if (s->slots[i].memory_size == 0) return &s->slots[i]; } fprintf(stderr, "%s: no ...
false
qemu
a426e122173f36f05ea2cb72dcff77b7408546ce
static KVMSlot *kvm_alloc_slot(KVMState *s) { int i; for (i = 0; i < ARRAY_SIZE(s->slots); i++) { if (i >= 8 && i < 12) continue; if (s->slots[i].memory_size == 0) return &s->slots[i]; } fprintf(stderr, "%s: no free slot available\n", __func...
{ "code": [], "line_no": [] }
static KVMSlot *FUNC_0(KVMState *s) { int VAR_0; for (VAR_0 = 0; VAR_0 < ARRAY_SIZE(s->slots); VAR_0++) { if (VAR_0 >= 8 && VAR_0 < 12) continue; if (s->slots[VAR_0].memory_size == 0) return &s->slots[VAR_0]; } fprintf(stderr, "%s: no free s...
[ "static KVMSlot *FUNC_0(KVMState *s)\n{", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < ARRAY_SIZE(s->slots); VAR_0++) {", "if (VAR_0 >= 8 && VAR_0 < 12)\ncontinue;", "if (s->slots[VAR_0].memory_size == 0)\nreturn &s->slots[VAR_0];", "}", "fprintf(stderr, \"%s: no free slot available\\n\", __func__);", "abor...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ] ]
3,941
static void virtio_scsi_handle_event(VirtIODevice *vdev, VirtQueue *vq) { VirtIOSCSI *s = VIRTIO_SCSI(vdev); if (s->ctx) { virtio_scsi_dataplane_start(s); if (!s->dataplane_fenced) { return; } } virtio_scsi_handle_event_vq(s, vq); }
false
qemu
ad07cd69ecaffbaa015459a46975ab32e50df805
static void virtio_scsi_handle_event(VirtIODevice *vdev, VirtQueue *vq) { VirtIOSCSI *s = VIRTIO_SCSI(vdev); if (s->ctx) { virtio_scsi_dataplane_start(s); if (!s->dataplane_fenced) { return; } } virtio_scsi_handle_event_vq(s, vq); }
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1) { VirtIOSCSI *s = VIRTIO_SCSI(VAR_0); if (s->ctx) { virtio_scsi_dataplane_start(s); if (!s->dataplane_fenced) { return; } } virtio_scsi_handle_event_vq(s, VAR_1); }
[ "static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{", "VirtIOSCSI *s = VIRTIO_SCSI(VAR_0);", "if (s->ctx) {", "virtio_scsi_dataplane_start(s);", "if (!s->dataplane_fenced) {", "return;", "}", "}", "virtio_scsi_handle_event_vq(s, VAR_1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
3,942
static void mirror_do_zero_or_discard(MirrorBlockJob *s, int64_t sector_num, int nb_sectors, bool is_discard) { MirrorOp *op; /* Allocate a MirrorOp that is used as an AIO callback. The qiov...
false
qemu
b436982f04fb33bb29fcdea190bd1fdc97dc65ef
static void mirror_do_zero_or_discard(MirrorBlockJob *s, int64_t sector_num, int nb_sectors, bool is_discard) { MirrorOp *op; op = g_new0(MirrorOp, 1); op->s = s; op->secto...
{ "code": [], "line_no": [] }
static void FUNC_0(MirrorBlockJob *VAR_0, int64_t VAR_1, int VAR_2, bool VAR_3) { MirrorOp *op; op = g_new0(MirrorOp, 1); op->VAR_0 = VAR_0; op->VAR_1 = VAR_1; op->VAR...
[ "static void FUNC_0(MirrorBlockJob *VAR_0,\nint64_t VAR_1,\nint VAR_2,\nbool VAR_3)\n{", "MirrorOp *op;", "op = g_new0(MirrorOp, 1);", "op->VAR_0 = VAR_0;", "op->VAR_1 = VAR_1;", "op->VAR_2 = VAR_2;", "VAR_0->in_flight++;", "VAR_0->sectors_in_flight += VAR_2;", "if (VAR_3) {", "blk_aio_pdiscard(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43, 45, 47, 49 ], [ 51 ], [ 53 ] ]
3,943
static int encode_individual_channel(AVCodecContext *avctx, AACEncContext *s, SingleChannelElement *sce, int common_window) { put_bits(&s->pb, 8, sce->sf_idx[0]); if (!common_window) { put_ics_info(s, &sce->ics); if...
false
FFmpeg
f20b67173ca6a05b8c3dee02dad3b7243b96292b
static int encode_individual_channel(AVCodecContext *avctx, AACEncContext *s, SingleChannelElement *sce, int common_window) { put_bits(&s->pb, 8, sce->sf_idx[0]); if (!common_window) { put_ics_info(s, &sce->ics); if...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AACEncContext *VAR_1, SingleChannelElement *VAR_2, int VAR_3) { put_bits(&VAR_1->pb, 8, VAR_2->sf_idx[0]); if (!VAR_3) { put_ics_info(VAR_1, &VAR_2->ics); if (VAR_1->coder->e...
[ "static int FUNC_0(AVCodecContext *VAR_0, AACEncContext *VAR_1,\nSingleChannelElement *VAR_2,\nint VAR_3)\n{", "put_bits(&VAR_1->pb, 8, VAR_2->sf_idx[0]);", "if (!VAR_3) {", "put_ics_info(VAR_1, &VAR_2->ics);", "if (VAR_1->coder->encode_main_pred)\nVAR_1->coder->encode_main_pred(VAR_1, VAR_2);", "}", "e...
[ 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, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
3,944
int float32_eq_signaling( float32 a, float32 b STATUS_PARAM ) { if ( ( ( extractFloat32Exp( a ) == 0xFF ) && extractFloat32Frac( a ) ) || ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) ) ) { float_raise( float_flag_invalid STATUS_VAR); return 0; } ...
false
qemu
f090c9d4ad5812fb92843d6470a1111c15190c4c
int float32_eq_signaling( float32 a, float32 b STATUS_PARAM ) { if ( ( ( extractFloat32Exp( a ) == 0xFF ) && extractFloat32Frac( a ) ) || ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) ) ) { float_raise( float_flag_invalid STATUS_VAR); return 0; } ...
{ "code": [], "line_no": [] }
int FUNC_0( float32 VAR_0, float32 VAR_1 STATUS_PARAM ) { if ( ( ( extractFloat32Exp( VAR_0 ) == 0xFF ) && extractFloat32Frac( VAR_0 ) ) || ( ( extractFloat32Exp( VAR_1 ) == 0xFF ) && extractFloat32Frac( VAR_1 ) ) ) { float_raise( float_flag_invalid STATUS_VAR); return 0; ...
[ "int FUNC_0( float32 VAR_0, float32 VAR_1 STATUS_PARAM )\n{", "if ( ( ( extractFloat32Exp( VAR_0 ) == 0xFF ) && extractFloat32Frac( VAR_0 ) )\n|| ( ( extractFloat32Exp( VAR_1 ) == 0xFF ) && extractFloat32Frac( VAR_1 ) )\n) {", "float_raise( float_flag_invalid STATUS_VAR);", "return 0;", "}", "return ( ...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ] ]
3,945
static void ich9_lpc_update_pic(ICH9LPCState *lpc, int gsi) { int i, pic_level; assert(gsi < ICH9_LPC_PIC_NUM_PINS); /* The pic level is the logical OR of all the PCI irqs mapped to it */ pic_level = 0; for (i = 0; i < ICH9_LPC_NB_PIRQS; i++) { int tmp_irq; int tmp_dis; ...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static void ich9_lpc_update_pic(ICH9LPCState *lpc, int gsi) { int i, pic_level; assert(gsi < ICH9_LPC_PIC_NUM_PINS); pic_level = 0; for (i = 0; i < ICH9_LPC_NB_PIRQS; i++) { int tmp_irq; int tmp_dis; ich9_lpc_pic_irq(lpc, i, &tmp_irq, &tmp_dis); if (!tm...
{ "code": [], "line_no": [] }
static void FUNC_0(ICH9LPCState *VAR_0, int VAR_1) { int VAR_2, VAR_3; assert(VAR_1 < ICH9_LPC_PIC_NUM_PINS); VAR_3 = 0; for (VAR_2 = 0; VAR_2 < ICH9_LPC_NB_PIRQS; VAR_2++) { int tmp_irq; int tmp_dis; ich9_lpc_pic_irq(VAR_0, VAR_2, &tmp_irq, &tmp_dis); ...
[ "static void FUNC_0(ICH9LPCState *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3;", "assert(VAR_1 < ICH9_LPC_PIC_NUM_PINS);", "VAR_3 = 0;", "for (VAR_2 = 0; VAR_2 < ICH9_LPC_NB_PIRQS; VAR_2++) {", "int tmp_irq;", "int tmp_dis;", "ich9_lpc_pic_irq(VAR_0, VAR_2, &tmp_irq, &tmp_dis);", "if (!tmp_dis && tmp_i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ] ]
3,947
static void FUNCC(pred8x8_top_dc)(uint8_t *_src, int stride){ int i; int dc0, dc1; pixel4 dc0splat, dc1splat; pixel *src = (pixel*)_src; stride /= sizeof(pixel); dc0=dc1=0; for(i=0;i<4; i++){ dc0+= src[i-stride]; dc1+= src[4+i-stride]; } dc0splat = PIXEL_...
true
FFmpeg
2caf19e90f270abe1e80a3e85acaf0eb5c9d0aac
static void FUNCC(pred8x8_top_dc)(uint8_t *_src, int stride){ int i; int dc0, dc1; pixel4 dc0splat, dc1splat; pixel *src = (pixel*)_src; stride /= sizeof(pixel); dc0=dc1=0; for(i=0;i<4; i++){ dc0+= src[i-stride]; dc1+= src[4+i-stride]; } dc0splat = PIXEL_...
{ "code": [ " ((pixel4*)(src+i*stride))[0]= dc0splat;", " ((pixel4*)(src+i*stride))[1]= dc1splat;", " ((pixel4*)(src+i*stride))[0]= dc0splat;", " ((pixel4*)(src+i*stride))[1]= dc1splat;", " ((pixel4*)(src+i*stride))[0]= dc0splat;", " ((pixel4*)(src+i*s...
static void FUNC_0(pred8x8_top_dc)(uint8_t *_src, int stride){ int VAR_0; int VAR_1, VAR_2; pixel4 dc0splat, dc1splat; pixel *src = (pixel*)_src; stride /= sizeof(pixel); VAR_1=VAR_2=0; for(VAR_0=0;VAR_0<4; VAR_0++){ VAR_1+= src[VAR_0-stride]; VAR_2+= src[4+VAR_0-s...
[ "static void FUNC_0(pred8x8_top_dc)(uint8_t *_src, int stride){", "int VAR_0;", "int VAR_1, VAR_2;", "pixel4 dc0splat, dc1splat;", "pixel *src = (pixel*)_src;", "stride /= sizeof(pixel);", "VAR_1=VAR_2=0;", "for(VAR_0=0;VAR_0<4; VAR_0++){", "VAR_1+= src[VAR_0-stride];", "VAR_2+= src[4+VAR_0-stride...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
3,948
static uint64_t strongarm_gpio_read(void *opaque, hwaddr offset, unsigned size) { StrongARMGPIOInfo *s = opaque; switch (offset) { case GPDR: /* GPIO Pin-Direction registers */ return s->dir; case GPSR: /* GPIO Pin-Output Set registers...
true
qemu
92335a0d4021a3b44ccc88c9fc6c0fd2113f1882
static uint64_t strongarm_gpio_read(void *opaque, hwaddr offset, unsigned size) { StrongARMGPIOInfo *s = opaque; switch (offset) { case GPDR: return s->dir; case GPSR: DPRINTF("%s: Read from a write-only register 0x" TARGET_...
{ "code": [ " DPRINTF(\"%s: Read from a write-only register 0x\" TARGET_FMT_plx \"\\n\",", " __func__, offset);", " DPRINTF(\"%s: Read from a write-only register 0x\" TARGET_FMT_plx \"\\n\",", " __func__, offset);" ], "line_no": [ 21,...
static uint64_t FUNC_0(void *opaque, hwaddr offset, unsigned size) { StrongARMGPIOInfo *s = opaque; switch (offset) { case GPDR: return s->dir; case GPSR: DPRINTF("%s: Read from a write-only register 0x" TARGET_FMT_plx "\n",...
[ "static uint64_t FUNC_0(void *opaque, hwaddr offset,\nunsigned size)\n{", "StrongARMGPIOInfo *s = opaque;", "switch (offset) {", "case GPDR:\nreturn s->dir;", "case GPSR:\nDPRINTF(\"%s: Read from a write-only register 0x\" TARGET_FMT_plx \"\\n\",\n__func__, offset);", "return s->gpsr;", "case GPCR:\nDPR...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19, 21, 23 ], [ 25 ], [ 29, 31, 33 ], [ 35 ], [ 39, 41 ], [ 45, 47 ], [ 51, 53 ], [ 57, 59, 61 ], [ 65, 67 ], [ 71...
3,949
static int draw_glyphs(DrawTextContext *dtext, AVFilterBufferRef *picref, int width, int height, const uint8_t rgbcolor[4], const uint8_t yuvcolor[4], int x, int y) { char *text = dtext->text; uint32_t code = 0; int i; uint8_t *p; Glyph *glyph = NULL; for (i = 0,...
true
FFmpeg
efc8c709c93875dffa4c4181fa9b56fa6d20d4c7
static int draw_glyphs(DrawTextContext *dtext, AVFilterBufferRef *picref, int width, int height, const uint8_t rgbcolor[4], const uint8_t yuvcolor[4], int x, int y) { char *text = dtext->text; uint32_t code = 0; int i; uint8_t *p; Glyph *glyph = NULL; for (i = 0,...
{ "code": [ " char *text = dtext->text;" ], "line_no": [ 7 ] }
static int FUNC_0(DrawTextContext *VAR_0, AVFilterBufferRef *VAR_1, int VAR_2, int VAR_3, const uint8_t VAR_4[4], const uint8_t VAR_5[4], int VAR_6, int VAR_7) { char *VAR_8 = VAR_0->VAR_8; uint32_t code = 0; int VAR_9; uint8_t *p; Glyph *glyph = NULL; for (VAR_9...
[ "static int FUNC_0(DrawTextContext *VAR_0, AVFilterBufferRef *VAR_1,\nint VAR_2, int VAR_3, const uint8_t VAR_4[4], const uint8_t VAR_5[4], int VAR_6, int VAR_7)\n{", "char *VAR_8 = VAR_0->VAR_8;", "uint32_t code = 0;", "int VAR_9;", "uint8_t *p;", "Glyph *glyph = NULL;", "for (VAR_9 = 0, p = VAR_8; *p;...
[ 0, 1, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 41, 43, 45 ], [ 49 ], [ 51, 53, 55 ], [ 57 ], [ 59,...
3,950
static void text_console_resize(QemuConsole *s) { TextCell *cells, *c, *c1; int w1, x, y, last_width; last_width = s->width; s->width = surface_width(s->surface) / FONT_WIDTH; s->height = surface_height(s->surface) / FONT_HEIGHT; w1 = last_width; if (s->width < w1) w1 = ...
true
qemu
fedf0d35aafc4f1f1e5f6dbc80cb23ae1ae49f0b
static void text_console_resize(QemuConsole *s) { TextCell *cells, *c, *c1; int w1, x, y, last_width; last_width = s->width; s->width = surface_width(s->surface) / FONT_WIDTH; s->height = surface_height(s->surface) / FONT_HEIGHT; w1 = last_width; if (s->width < w1) w1 = ...
{ "code": [ " cells = g_malloc(s->width * s->total_height * sizeof(TextCell));" ], "line_no": [ 27 ] }
static void FUNC_0(QemuConsole *VAR_0) { TextCell *cells, *c, *c1; int VAR_1, VAR_2, VAR_3, VAR_4; VAR_4 = VAR_0->width; VAR_0->width = surface_width(VAR_0->surface) / FONT_WIDTH; VAR_0->height = surface_height(VAR_0->surface) / FONT_HEIGHT; VAR_1 = VAR_4; if (VAR_0->width < VAR_...
[ "static void FUNC_0(QemuConsole *VAR_0)\n{", "TextCell *cells, *c, *c1;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "VAR_4 = VAR_0->width;", "VAR_0->width = surface_width(VAR_0->surface) / FONT_WIDTH;", "VAR_0->height = surface_height(VAR_0->surface) / FONT_HEIGHT;", "VAR_1 = VAR_4;", "if (VAR_0->width < VAR...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
3,951
static int qcow_create(const char *filename, QemuOpts *opts, Error **errp) { int header_size, backing_filename_len, l1_size, shift, i; QCowHeader header; uint8_t *tmp; int64_t total_size = 0; char *backing_file = NULL; Error *local_err = NULL; int ret; BlockBackend *qcow_blk; ...
true
qemu
0696ae2c9236a3589f5eaf5b00c12868b6f30a17
static int qcow_create(const char *filename, QemuOpts *opts, Error **errp) { int header_size, backing_filename_len, l1_size, shift, i; QCowHeader header; uint8_t *tmp; int64_t total_size = 0; char *backing_file = NULL; Error *local_err = NULL; int ret; BlockBackend *qcow_blk; ...
{ "code": [ " const char *encryptfmt = NULL;", " encryptfmt = \"aes\";", " const char *encryptfmt = NULL;", " encryptfmt = \"aes\";" ], "line_no": [ 21, 71, 21, 71 ] }
static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; QCowHeader header; uint8_t *tmp; int64_t total_size = 0; char *VAR_8 = NULL; Error *local_err = NULL; int VAR_9; BlockBackend *qcow_blk; const char *VAR_10 = NULL; ...
[ "static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "QCowHeader header;", "uint8_t *tmp;", "int64_t total_size = 0;", "char *VAR_8 = NULL;", "Error *local_err = NULL;", "int VAR_9;", "BlockBackend *qcow_blk;", "const char *VAR_10 = N...
[ 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, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
3,952
static int hls_append_segment(struct AVFormatContext *s, HLSContext *hls, double duration, int64_t pos, int64_t size) { HLSSegment *en = av_malloc(sizeof(*en)); const char *filename; int ret; if (!en) return AVERROR(ENOMEM); if ((hls->flags & (HLS_S...
true
FFmpeg
93593674bc8d85a40e0648f21a7cdbf3554f21ff
static int hls_append_segment(struct AVFormatContext *s, HLSContext *hls, double duration, int64_t pos, int64_t size) { HLSSegment *en = av_malloc(sizeof(*en)); const char *filename; int ret; if (!en) return AVERROR(ENOMEM); if ((hls->flags & (HLS_S...
{ "code": [ " if (!filename)", " if (!filename)" ], "line_no": [ 33, 33 ] }
static int FUNC_0(struct AVFormatContext *VAR_0, HLSContext *VAR_1, double VAR_2, int64_t VAR_3, int64_t VAR_4) { HLSSegment *en = av_malloc(sizeof(*en)); const char *VAR_8; int VAR_6; if (!en) return AVERROR(ENOMEM); if ((VAR_1->flags & (HLS_SECOND...
[ "static int FUNC_0(struct AVFormatContext *VAR_0, HLSContext *VAR_1, double VAR_2,\nint64_t VAR_3, int64_t VAR_4)\n{", "HLSSegment *en = av_malloc(sizeof(*en));", "const char *VAR_8;", "int VAR_6;", "if (!en)\nreturn AVERROR(ENOMEM);", "if ((VAR_1->flags & (HLS_SECOND_LEVEL_SEGMENT_SIZE | HLS_SECOND_LEVE...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43, 45, 47 ], [ 49 ], [ 51 ], [ 53 ...
3,953
static int x8_decode_intra_mb(IntraX8Context* const w, const int chroma){ MpegEncContext * const s= w->s; uint8_t * scantable; int final,run,level; int ac_mode,dc_mode,est_run,dc_level; int pos,n; int zeros_only; int use_quant_matrix; int sign; assert(w->orient<12); ...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static int x8_decode_intra_mb(IntraX8Context* const w, const int chroma){ MpegEncContext * const s= w->s; uint8_t * scantable; int final,run,level; int ac_mode,dc_mode,est_run,dc_level; int pos,n; int zeros_only; int use_quant_matrix; int sign; assert(w->orient<12); ...
{ "code": [ " s->dest[chroma], s->current_picture.f.linesize[!!chroma]);", " dsp_x8_put_solidcolor(w->predicted_dc, s->dest[chroma], s->current_picture.f.linesize[!!chroma]);", " s->current_picture.f.linesize[!!chroma] );"...
static int FUNC_0(IntraX8Context* const VAR_0, const int VAR_1){ MpegEncContext * const s= VAR_0->s; uint8_t * scantable; int VAR_2,VAR_3,VAR_4; int VAR_5,VAR_6,VAR_7,VAR_8; int VAR_9,VAR_10; int VAR_11; int VAR_12; int VAR_13; assert(VAR_0->orient<12); s->dsp.clear...
[ "static int FUNC_0(IntraX8Context* const VAR_0, const int VAR_1){", "MpegEncContext * const s= VAR_0->s;", "uint8_t * scantable;", "int VAR_2,VAR_3,VAR_4;", "int VAR_5,VAR_6,VAR_7,VAR_8;", "int VAR_9,VAR_10;", "int VAR_11;", "int VAR_12;", "int VAR_13;", "assert(VAR_0->orient<12);", "s->dsp.clea...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
3,954
static void pci_device_reset(PCIDevice *dev) { int r; memset(dev->irq_state, 0, sizeof dev->irq_state); dev->config[PCI_COMMAND] &= ~(PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); dev->config[PCI_CACHE_LINE_SIZE] = 0x0; dev->config[PCI_INTERRUP...
true
qemu
d036bb215e0ac1d1fd467239f1d3b7d904cac90a
static void pci_device_reset(PCIDevice *dev) { int r; memset(dev->irq_state, 0, sizeof dev->irq_state); dev->config[PCI_COMMAND] &= ~(PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); dev->config[PCI_CACHE_LINE_SIZE] = 0x0; dev->config[PCI_INTERRUP...
{ "code": [ " memset(dev->irq_state, 0, sizeof dev->irq_state);" ], "line_no": [ 9 ] }
static void FUNC_0(PCIDevice *VAR_0) { int VAR_1; memset(VAR_0->irq_state, 0, sizeof VAR_0->irq_state); VAR_0->config[PCI_COMMAND] &= ~(PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); VAR_0->config[PCI_CACHE_LINE_SIZE] = 0x0; VAR_0->config[PCI_IN...
[ "static void FUNC_0(PCIDevice *VAR_0)\n{", "int VAR_1;", "memset(VAR_0->irq_state, 0, sizeof VAR_0->irq_state);", "VAR_0->config[PCI_COMMAND] &= ~(PCI_COMMAND_IO | PCI_COMMAND_MEMORY |\nPCI_COMMAND_MASTER);", "VAR_0->config[PCI_CACHE_LINE_SIZE] = 0x0;", "VAR_0->config[PCI_INTERRUPT_LINE] = 0x0;", "for (...
[ 0, 0, 1, 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 ] ]
3,957
static int mov_read_stts(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; int64_t duration=0; int64_t total_sample_count=0; print_atom("stts", atom); ...
true
FFmpeg
568e18b15e2ddf494fd8926707d34ca08c8edce5
static int mov_read_stts(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; int entries, i; int64_t duration=0; int64_t total_sample_count=0; print_atom("stts", atom); get_byte(pb); get_byte(pb); get_byte(pb); get_byte(...
{ "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]; int VAR_3, VAR_4; int64_t duration=0; int64_t total_sample_count=0; print_atom("stts", VAR_2); get_byte(VAR_1); get_byte(VAR_1); get_b...
[ "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];", "int VAR_3, VAR_4;", "int64_t duration=0;", "int64_t total_sample_count=0;", "print_atom(\"stts\", VAR_2);", "get_byte(VAR_1);", "get_byte(VAR_1); get_byte(...
[ 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
3,958
static int window(venc_context_t * venc, signed short * audio, int samples) { int i, j, channel; const float * win = venc->win[0]; int window_len = 1 << (venc->blocksize[0] - 1); float n = (float)(1 << venc->blocksize[0]) / 4.; // FIXME use dsp if (!venc->have_saved && !samples) return 0...
true
FFmpeg
af1cb7ee4c6fb68904e94dc4cf243ba26b3cbb47
static int window(venc_context_t * venc, signed short * audio, int samples) { int i, j, channel; const float * win = venc->win[0]; int window_len = 1 << (venc->blocksize[0] - 1); float n = (float)(1 << venc->blocksize[0]) / 4.; if (!venc->have_saved && !samples) return 0; if (ven...
{ "code": [ " offset[i] = audio[j] / 32768. * win[window_len - i] / n;", " offset[i] = audio[j] / 32768. * win[i] / n;" ], "line_no": [ 49, 83 ] }
static int FUNC_0(venc_context_t * VAR_0, signed short * VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5; const float * VAR_6 = VAR_0->VAR_6[0]; int VAR_7 = 1 << (VAR_0->blocksize[0] - 1); float VAR_8 = (float)(1 << VAR_0->blocksize[0]) / 4.; if (!VAR_0->have_saved && !VAR_2) return 0; ...
[ "static int FUNC_0(venc_context_t * VAR_0, signed short * VAR_1, int VAR_2) {", "int VAR_3, VAR_4, VAR_5;", "const float * VAR_6 = VAR_0->VAR_6[0];", "int VAR_7 = 1 << (VAR_0->blocksize[0] - 1);", "float VAR_8 = (float)(1 << VAR_0->blocksize[0]) / 4.;", "if (!VAR_0->have_saved && !VAR_2) return 0;", "if...
[ 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, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
3,959
DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi, int *fatal_error) { const char *buf; const char *file = NULL; char devname[128]; const char *serial; const char *mediastr = ""; BlockInterfaceType type; enum { MEDIA_DISK, MEDIA_CDROM } media; int bus_id, unit_id; i...
true
qemu
653dbec7c97cb51d19636423902719e5850da265
DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi, int *fatal_error) { const char *buf; const char *file = NULL; char devname[128]; const char *serial; const char *mediastr = ""; BlockInterfaceType type; enum { MEDIA_DISK, MEDIA_CDROM } media; int bus_id, unit_id; i...
{ "code": [ " strncpy(dinfo->serial, serial, sizeof(serial));" ], "line_no": [ 579 ] }
DriveInfo *FUNC_0(QemuOpts *opts, int default_to_scsi, int *fatal_error) { const char *VAR_0; const char *VAR_1 = NULL; char VAR_2[128]; const char *VAR_3; const char *VAR_4 = ""; BlockInterfaceType type; enum { MEDIA_DISK, MEDIA_CDROM } VAR_5; int VAR_6, VAR_7; int VAR_8, ...
[ "DriveInfo *FUNC_0(QemuOpts *opts, int default_to_scsi, int *fatal_error)\n{", "const char *VAR_0;", "const char *VAR_1 = NULL;", "char VAR_2[128];", "const char *VAR_3;", "const char *VAR_4 = \"\";", "BlockInterfaceType type;", "enum { MEDIA_DISK, MEDIA_CDROM } VAR_5;", "int VAR_6, VAR_7;", "int ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
3,961
static int rtsp_read_play(AVFormatContext *s) { RTSPState *rt = s->priv_data; RTSPMessageHeader reply1, *reply = &reply1; int i; char cmd[1024]; av_log(s, AV_LOG_DEBUG, "hello state=%d\n", rt->state); if (!(rt->server_type == RTSP_SERVER_REAL && rt->need_subscription)) { if (...
true
FFmpeg
8d168a9207f231c22a04a5a2b252d0ab89477b02
static int rtsp_read_play(AVFormatContext *s) { RTSPState *rt = s->priv_data; RTSPMessageHeader reply1, *reply = &reply1; int i; char cmd[1024]; av_log(s, AV_LOG_DEBUG, "hello state=%d\n", rt->state); if (!(rt->server_type == RTSP_SERVER_REAL && rt->need_subscription)) { if (...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { RTSPState *rt = VAR_0->priv_data; RTSPMessageHeader reply1, *reply = &reply1; int VAR_1; char VAR_2[1024]; av_log(VAR_0, AV_LOG_DEBUG, "hello state=%d\n", rt->state); if (!(rt->server_type == RTSP_SERVER_REAL && rt->need_subscription)) { ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "RTSPState *rt = VAR_0->priv_data;", "RTSPMessageHeader reply1, *reply = &reply1;", "int VAR_1;", "char VAR_2[1024];", "av_log(VAR_0, AV_LOG_DEBUG, \"hello state=%d\\n\", rt->state);", "if (!(rt->server_type == RTSP_SERVER_REAL && rt->need_subscription)) {...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
3,962
static int aiff_read_header(AVFormatContext *s) { int size, filesize; int64_t offset = 0; uint32_t tag; unsigned version = AIFF_C_VERSION1; AVIOContext *pb = s->pb; AVStream * st; AIFFInputContext *aiff = s->priv_data; /* check FORM header */ filesize = get_tag(pb, &tag);...
false
FFmpeg
83548fe894cdb455cc127f754d09905b6d23c173
static int aiff_read_header(AVFormatContext *s) { int size, filesize; int64_t offset = 0; uint32_t tag; unsigned version = AIFF_C_VERSION1; AVIOContext *pb = s->pb; AVStream * st; AIFFInputContext *aiff = s->priv_data; filesize = get_tag(pb, &tag); if (filesize < 0 ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { int VAR_1, VAR_2; int64_t offset = 0; uint32_t tag; unsigned VAR_3 = AIFF_C_VERSION1; AVIOContext *pb = VAR_0->pb; AVStream * st; AIFFInputContext *aiff = VAR_0->priv_data; VAR_2 = get_tag(pb, &tag); if (VAR_2 < 0 || tag !...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1, VAR_2;", "int64_t offset = 0;", "uint32_t tag;", "unsigned VAR_3 = AIFF_C_VERSION1;", "AVIOContext *pb = VAR_0->pb;", "AVStream * st;", "AIFFInputContext *aiff = VAR_0->priv_data;", "VAR_2 = get_tag(pb, &tag);", "if (VAR_2 < 0 || tag != M...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 45 ], [ 49 ], [ 51, 53 ], [ 57 ], [ 61 ...
3,963
static void piix4_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->no_hotplug = 1; k->init = piix4_initfn; k->vendor_id = PCI_VENDOR_ID_INTEL; k->device_id = PCI_DEVICE_ID_INTEL_82371AB_0; k->class_i...
true
qemu
efec3dd631d94160288392721a5f9c39e50fb2bc
static void piix4_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->no_hotplug = 1; k->init = piix4_initfn; k->vendor_id = PCI_VENDOR_ID_INTEL; k->device_id = PCI_DEVICE_ID_INTEL_82371AB_0; k->class_i...
{ "code": [ " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;"...
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0); k->no_hotplug = 1; k->init = piix4_initfn; k->vendor_id = PCI_VENDOR_ID_INTEL; k->device_id = PCI_DEVICE_ID_INTEL_82371AB_0; k->class_id = PCI_C...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0);", "k->no_hotplug = 1;", "k->init = piix4_initfn;", "k->vendor_id = PCI_VENDOR_ID_INTEL;", "k->device_id = PCI_DEVICE_ID_INTEL_82371AB_0;", "k->class_id = PC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
3,964
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; int res, mflags, len_...
true
FFmpeg
ba9a7e0d71bd34f8b89ae99322b62a310be163a6
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) { AVIOContext *pb = &asf->pb; int res, mflags, len_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, PayloadContext *VAR_1, AVStream *VAR_2, AVPacket *VAR_3, uint32_t *VAR_4, const uint8_t *VAR_5, int VAR_6, int VAR_7) { AVIOContext *pb = &VAR_1->pb; int VAR_8, VAR_9, VAR...
[ "static int FUNC_0(AVFormatContext *VAR_0, PayloadContext *VAR_1,\nAVStream *VAR_2, AVPacket *VAR_3,\nuint32_t *VAR_4,\nconst uint8_t *VAR_5, int VAR_6, int VAR_7)\n{", "AVIOContext *pb = &VAR_1->pb;", "int VAR_8, VAR_9, VAR_10;", "RTSPState *rt = VAR_0->priv_data;", "if (!rt->asf_ctx)\nif (VAR_6 > 0) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19, 24 ], [ 26 ], [ 30, 35 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 57, 59 ], [ 61, 63 ], [ 65,...
3,965
int match_ext(const char *filename, const char *extensions) { const char *ext, *p; char ext1[32], *q; if(!filename) return 0; ext = strrchr(filename, '.'); if (ext) { ext++; p = extensions; for(;;) { q = ext1; while (*p != '...
true
FFmpeg
0ecca7a49f8e254c12a3a1de048d738bfbb614c6
int match_ext(const char *filename, const char *extensions) { const char *ext, *p; char ext1[32], *q; if(!filename) return 0; ext = strrchr(filename, '.'); if (ext) { ext++; p = extensions; for(;;) { q = ext1; while (*p != '...
{ "code": [ " while (*p != '\\0' && *p != ',') " ], "line_no": [ 29 ] }
int FUNC_0(const char *VAR_0, const char *VAR_1) { const char *VAR_2, *VAR_3; char VAR_4[32], *VAR_5; if(!VAR_0) return 0; VAR_2 = strrchr(VAR_0, '.'); if (VAR_2) { VAR_2++; VAR_3 = VAR_1; for(;;) { VAR_5 = VAR_4; while (*VA...
[ "int FUNC_0(const char *VAR_0, const char *VAR_1)\n{", "const char *VAR_2, *VAR_3;", "char VAR_4[32], *VAR_5;", "if(!VAR_0)\nreturn 0;", "VAR_2 = strrchr(VAR_0, '.');", "if (VAR_2) {", "VAR_2++;", "VAR_3 = VAR_1;", "for(;;) {", "VAR_5 = VAR_4;", "while (*VAR_3 != '\\0' && *VAR_3 != ',')\n*VAR_5+...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
3,966
static int avi_read_header(AVFormatContext *s) { AVIContext *avi = s->priv_data; AVIOContext *pb = s->pb; unsigned int tag, tag1, handler; int codec_type, stream_index, frame_period; unsigned int size; int i; AVStream *st; AVIStream *ast = NULL; int avih_width = 0...
true
FFmpeg
2c908f22c2af0775a6ffe3466aad174a0ace00dd
static int avi_read_header(AVFormatContext *s) { AVIContext *avi = s->priv_data; AVIOContext *pb = s->pb; unsigned int tag, tag1, handler; int codec_type, stream_index, frame_period; unsigned int size; int i; AVStream *st; AVIStream *ast = NULL; int avih_width = 0...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { AVIContext *avi = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; unsigned int VAR_1, VAR_2, VAR_3; int VAR_4, VAR_5, VAR_6; unsigned int VAR_7; int VAR_8; AVStream *st; AVIStream *ast = NULL; int VAR_9 = 0, VAR_10 = 0; ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVIContext *avi = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "unsigned int VAR_1, VAR_2, VAR_3;", "int VAR_4, VAR_5, VAR_6;", "unsigned int VAR_7;", "int VAR_8;", "AVStream *st;", "AVIStream *ast = NULL;", "int VAR_9 = 0, 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 47 ], [...
3,967
static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) { int y; int off_cur; int off_cur_end; for (y = 0; y < lines; y++) { off_cur = off_begin; off_cur_end = off_cur + bytesperline; off_cur &= TARGET_PAGE_MASK...
true
qemu
b2eb849d4b1fdb6f35d5c46958c7f703cf64cfef
static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) { int y; int off_cur; int off_cur_end; for (y = 0; y < lines; y++) { off_cur = off_begin; off_cur_end = off_cur + bytesperline; off_cur &= TARGET_PAGE_MASK...
{ "code": [ "\toff_cur_end = off_cur + bytesperline;" ], "line_no": [ 21 ] }
static void FUNC_0(CirrusVGAState * VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5; int VAR_6; int VAR_7; for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) { VAR_6 = VAR_1; VAR_7 = VAR_6 + VAR_3; VAR_6 &= TARGET_PAGE_MASK; while (VAR_6 < VAR_7) { cpu_physic...
[ "static void FUNC_0(CirrusVGAState * VAR_0, int VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4)\n{", "int VAR_5;", "int VAR_6;", "int VAR_7;", "for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) {", "VAR_6 = VAR_1;", "VAR_7 = VAR_6 + VAR_3;", "VAR_6 &= TARGET_PAGE_MASK;", "while (VAR_6 < VAR_7) {", "cpu_physical_m...
[ 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
3,972
static inline float to_float(uint8_t exp, int16_t mantissa) { return ((float) (mantissa * scale_factors[exp])); }
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline float to_float(uint8_t exp, int16_t mantissa) { return ((float) (mantissa * scale_factors[exp])); }
{ "code": [], "line_no": [] }
static inline float FUNC_0(uint8_t VAR_0, int16_t VAR_1) { return ((float) (VAR_1 * scale_factors[VAR_0])); }
[ "static inline float FUNC_0(uint8_t VAR_0, int16_t VAR_1)\n{", "return ((float) (VAR_1 * scale_factors[VAR_0]));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
3,973
static int encode_init(AVCodecContext *avctx) { HYuvContext *s = avctx->priv_data; int i, j, width, height; s->avctx= avctx; s->flags= avctx->flags; dsputil_init(&s->dsp, avctx); width= s->width= avctx->width; height= s->height= avctx->height; assert(widt...
false
FFmpeg
42dd22c4a5c8463488d442eeb234b822bcc39625
static int encode_init(AVCodecContext *avctx) { HYuvContext *s = avctx->priv_data; int i, j, width, height; s->avctx= avctx; s->flags= avctx->flags; dsputil_init(&s->dsp, avctx); width= s->width= avctx->width; height= s->height= avctx->height; assert(widt...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { HYuvContext *s = VAR_0->priv_data; int VAR_1, VAR_2, VAR_3, VAR_4; s->VAR_0= VAR_0; s->flags= VAR_0->flags; dsputil_init(&s->dsp, VAR_0); VAR_3= s->VAR_3= VAR_0->VAR_3; VAR_4= s->VAR_4= VAR_0->VAR_4; assert(VAR_3...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "HYuvContext *s = VAR_0->priv_data;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "s->VAR_0= VAR_0;", "s->flags= VAR_0->flags;", "dsputil_init(&s->dsp, VAR_0);", "VAR_3= s->VAR_3= VAR_0->VAR_3;", "VAR_4= s->VAR_4= VAR_0->VAR_4;", "assert(VAR_3 && VAR_4);", "VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 57...
3,975
void error_set_win32(Error **errp, int win32_err, ErrorClass err_class, const char *fmt, ...) { va_list ap; char *msg1, *msg2; if (errp == NULL) { return; } va_start(ap, fmt); error_setv(errp, err_class, fmt, ap); va_end(ap); if (win32_err !=...
true
qemu
e7cf59e84767e30b507b6bd7c1347072ec12b636
void error_set_win32(Error **errp, int win32_err, ErrorClass err_class, const char *fmt, ...) { va_list ap; char *msg1, *msg2; if (errp == NULL) { return; } va_start(ap, fmt); error_setv(errp, err_class, fmt, ap); va_end(ap); if (win32_err !=...
{ "code": [ "void error_set_win32(Error **errp, int win32_err, ErrorClass err_class,", "void error_set_win32(Error **errp, int win32_err, ErrorClass err_class,", " const char *fmt, ...)", " error_setv(errp, err_class, fmt, ap);" ], "line_no": [ 1, 1, 3, 23 ...
void FUNC_0(Error **VAR_0, int VAR_1, ErrorClass VAR_2, const char *VAR_3, ...) { va_list ap; char *VAR_4, *VAR_5; if (VAR_0 == NULL) { return; } va_start(ap, VAR_3); error_setv(VAR_0, VAR_2, VAR_3, ap); va_end(ap); if (VAR_1 != 0) { ...
[ "void FUNC_0(Error **VAR_0, int VAR_1, ErrorClass VAR_2,\nconst char *VAR_3, ...)\n{", "va_list ap;", "char *VAR_4, *VAR_5;", "if (VAR_0 == NULL) {", "return;", "}", "va_start(ap, VAR_3);", "error_setv(VAR_0, VAR_2, VAR_3, ap);", "va_end(ap);", "if (VAR_1 != 0) {", "VAR_4 = (*VAR_0)->msg;", "V...
[ 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
3,976
av_cold void ff_dither_init_x86(DitherDSPContext *ddsp, enum AVResampleDitherMethod method) { int cpu_flags = av_get_cpu_flags(); if (EXTERNAL_SSE2(cpu_flags)) { ddsp->quantize = ff_quantize_sse2; ddsp->ptr_align = 16; ddsp->samples_align...
false
FFmpeg
d68c05380cebf563915412182643a8be04ef890b
av_cold void ff_dither_init_x86(DitherDSPContext *ddsp, enum AVResampleDitherMethod method) { int cpu_flags = av_get_cpu_flags(); if (EXTERNAL_SSE2(cpu_flags)) { ddsp->quantize = ff_quantize_sse2; ddsp->ptr_align = 16; ddsp->samples_align...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(DitherDSPContext *ddsp, enum AVResampleDitherMethod method) { int VAR_0 = av_get_cpu_flags(); if (EXTERNAL_SSE2(VAR_0)) { ddsp->quantize = ff_quantize_sse2; ddsp->ptr_align = 16; ddsp->samples_align = 8; } ...
[ "av_cold void FUNC_0(DitherDSPContext *ddsp,\nenum AVResampleDitherMethod method)\n{", "int VAR_0 = av_get_cpu_flags();", "if (EXTERNAL_SSE2(VAR_0)) {", "ddsp->quantize = ff_quantize_sse2;", "ddsp->ptr_align = 16;", "ddsp->samples_align = 8;", "}", "if (method == AV_RESAMPLE_DITHER_RECTANGULA...
[ 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...
3,978
static int qio_channel_socket_dgram_worker(QIOTask *task, Error **errp, gpointer opaque) { QIOChannelSocket *ioc = QIO_CHANNEL_SOCKET(qio_task_get_source(task)); struct QIOChannelSocketDGramWorkerData *data = opaque; ...
true
qemu
937470bb5470825e781ae50e92ff973a6b54d80f
static int qio_channel_socket_dgram_worker(QIOTask *task, Error **errp, gpointer opaque) { QIOChannelSocket *ioc = QIO_CHANNEL_SOCKET(qio_task_get_source(task)); struct QIOChannelSocketDGramWorkerData *data = opaque; ...
{ "code": [ " object_unref(OBJECT(ioc));", " object_unref(OBJECT(ioc));", " object_unref(OBJECT(ioc));" ], "line_no": [ 29, 29, 29 ] }
static int FUNC_0(QIOTask *VAR_0, Error **VAR_1, gpointer VAR_2) { QIOChannelSocket *ioc = QIO_CHANNEL_SOCKET(qio_task_get_source(VAR_0)); struct QIOChannelSocketDGramWorkerData *VAR_3 = VAR_2; int VAR_4; ...
[ "static int FUNC_0(QIOTask *VAR_0,\nError **VAR_1,\ngpointer VAR_2)\n{", "QIOChannelSocket *ioc = QIO_CHANNEL_SOCKET(qio_task_get_source(VAR_0));", "struct QIOChannelSocketDGramWorkerData *VAR_3 = VAR_2;", "int VAR_4;", "VAR_4 = qio_channel_socket_dgram_sync(ioc,\nVAR_3->localAddr,\nVAR_3->remoteAddr,\nVAR_...
[ 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19, 21, 23, 25 ], [ 29 ], [ 31 ], [ 33 ] ]
3,979
static void acpi_dsdt_add_cpus(Aml *scope, int smp_cpus) { uint16_t i; for (i = 0; i < smp_cpus; i++) { Aml *dev = aml_device("C%03x", i); aml_append(dev, aml_name_decl("_HID", aml_string("ACPI0007"))); aml_append(dev, aml_name_decl("_UID", aml_int(i))); aml_append(scope...
true
qemu
f460be435f8750d5d1484d3d8b9e5b2c334f0e20
static void acpi_dsdt_add_cpus(Aml *scope, int smp_cpus) { uint16_t i; for (i = 0; i < smp_cpus; i++) { Aml *dev = aml_device("C%03x", i); aml_append(dev, aml_name_decl("_HID", aml_string("ACPI0007"))); aml_append(dev, aml_name_decl("_UID", aml_int(i))); aml_append(scope...
{ "code": [ " Aml *dev = aml_device(\"C%03x\", i);" ], "line_no": [ 11 ] }
static void FUNC_0(Aml *VAR_0, int VAR_1) { uint16_t i; for (i = 0; i < VAR_1; i++) { Aml *dev = aml_device("C%03x", i); aml_append(dev, aml_name_decl("_HID", aml_string("ACPI0007"))); aml_append(dev, aml_name_decl("_UID", aml_int(i))); aml_append(VAR_0, dev); } }
[ "static void FUNC_0(Aml *VAR_0, int VAR_1)\n{", "uint16_t i;", "for (i = 0; i < VAR_1; i++) {", "Aml *dev = aml_device(\"C%03x\", i);", "aml_append(dev, aml_name_decl(\"_HID\", aml_string(\"ACPI0007\")));", "aml_append(dev, aml_name_decl(\"_UID\", aml_int(i)));", "aml_append(VAR_0, dev);", "}", "}" ...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
3,980
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s=avctx->priv_data; uint8_t *current, *previous; int ...
true
FFmpeg
6e24b9488e67849a28e64a8056e05f83cf439229
static int svq1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s=avctx->priv_data; uint8_t *current, *previous; int ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MpegEncContext *s=VAR_0->priv_data; uint8_t *current, *previous; int VAR_6, VA...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MpegEncContext *s=VAR_0->priv_data;", "uint8_t *current, *previous;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "AVF...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 37, 39 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [...
3,981
static int parse_object_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { PGSSubContext *ctx = avctx->priv_data; PGSSubObject *object; uint8_t sequence_desc; unsigned int rle_bitmap_len, width, height; int id; if (buf_size <= 4) ...
true
FFmpeg
ebf5264cd6bbda6c0c379dfeaaba3b9afc3279a8
static int parse_object_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { PGSSubContext *ctx = avctx->priv_data; PGSSubObject *object; uint8_t sequence_desc; unsigned int rle_bitmap_len, width, height; int id; if (buf_size <= 4) ...
{ "code": [ " if (avctx->width < width || avctx->height < height) {", " av_log(avctx, AV_LOG_ERROR, \"Bitmap dimensions larger than video.\\n\");" ], "line_no": [ 125, 127 ] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { PGSSubContext *ctx = VAR_0->priv_data; PGSSubObject *object; uint8_t sequence_desc; unsigned int VAR_3, VAR_4, VAR_5; int VAR_6; if (VAR_2 <= 4) return AVERROR_INVAL...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{", "PGSSubContext *ctx = VAR_0->priv_data;", "PGSSubObject *object;", "uint8_t sequence_desc;", "unsigned int VAR_3, VAR_4, VAR_5;", "int VAR_6;", "if (VAR_2 <= 4)\nreturn AVERROR_INVALIDDATA;", "VAR_2 -= 4;", "VAR_6 = byt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ...
3,982
static int ram_load_postcopy(QEMUFile *f) { int flags = 0, ret = 0; bool place_needed = false; bool matching_page_sizes = qemu_host_page_size == TARGET_PAGE_SIZE; MigrationIncomingState *mis = migration_incoming_get_current(); /* Temporary page that is later 'placed' */ void *postcopy_hos...
true
qemu
c53b7ddc61198c4af8290d6310592e48e3507c47
static int ram_load_postcopy(QEMUFile *f) { int flags = 0, ret = 0; bool place_needed = false; bool matching_page_sizes = qemu_host_page_size == TARGET_PAGE_SIZE; MigrationIncomingState *mis = migration_incoming_get_current(); void *postcopy_host_page = postcopy_get_tmp_page(mis); v...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0) { int VAR_1 = 0, VAR_2 = 0; bool place_needed = false; bool matching_page_sizes = qemu_host_page_size == TARGET_PAGE_SIZE; MigrationIncomingState *mis = migration_incoming_get_current(); void *VAR_3 = postcopy_get_tmp_page(mis); void *VAR_4 = NULL;...
[ "static int FUNC_0(QEMUFile *VAR_0)\n{", "int VAR_1 = 0, VAR_2 = 0;", "bool place_needed = false;", "bool matching_page_sizes = qemu_host_page_size == TARGET_PAGE_SIZE;", "MigrationIncomingState *mis = migration_incoming_get_current();", "void *VAR_3 = postcopy_get_tmp_page(mis);", "void *VAR_4 = NULL;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
3,983
static bool virtio_scsi_handle_cmd_req_prepare(VirtIOSCSI *s, VirtIOSCSIReq *req) { VirtIOSCSICommon *vs = &s->parent_obj; SCSIDevice *d; int rc; rc = virtio_scsi_parse_req(req, sizeof(VirtIOSCSICmdReq) + vs->cdb_size, sizeof(VirtIOSCSICmdResp) + vs->sense_size); ...
true
qemu
661e32fb3cb71c7e019daee375be4bb487b9917c
static bool virtio_scsi_handle_cmd_req_prepare(VirtIOSCSI *s, VirtIOSCSIReq *req) { VirtIOSCSICommon *vs = &s->parent_obj; SCSIDevice *d; int rc; rc = virtio_scsi_parse_req(req, sizeof(VirtIOSCSICmdReq) + vs->cdb_size, sizeof(VirtIOSCSICmdResp) + vs->sense_size); ...
{ "code": [ " virtio_scsi_bad_req();", " virtio_scsi_bad_req();", "static bool virtio_scsi_handle_cmd_req_prepare(VirtIOSCSI *s, VirtIOSCSIReq *req)", " virtio_scsi_bad_req();", " return false;", " return false;", " return false;", ...
static bool FUNC_0(VirtIOSCSI *s, VirtIOSCSIReq *req) { VirtIOSCSICommon *vs = &s->parent_obj; SCSIDevice *d; int VAR_0; VAR_0 = virtio_scsi_parse_req(req, sizeof(VirtIOSCSICmdReq) + vs->cdb_size, sizeof(VirtIOSCSICmdResp) + vs->sense_size); if (VAR_0 < 0) { ...
[ "static bool FUNC_0(VirtIOSCSI *s, VirtIOSCSIReq *req)\n{", "VirtIOSCSICommon *vs = &s->parent_obj;", "SCSIDevice *d;", "int VAR_0;", "VAR_0 = virtio_scsi_parse_req(req, sizeof(VirtIOSCSICmdReq) + vs->cdb_size,\nsizeof(VirtIOSCSICmdResp) + vs->sense_size);", "if (VAR_0 < 0) {", "if (VAR_0 == -ENOTSUP) {...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
3,985
static void calc_sums(int pmin, int pmax, uint32_t *data, int n, int pred_order, uint32_t sums[][MAX_PARTITIONS]) { int i, j; int parts; uint32_t *res, *res_end; /* sums for highest level */ parts = (1 << pmax); res = &data[pred_order]; res_end = &data[...
true
FFmpeg
5ff998a233d759d0de83ea6f95c383d03d25d88e
static void calc_sums(int pmin, int pmax, uint32_t *data, int n, int pred_order, uint32_t sums[][MAX_PARTITIONS]) { int i, j; int parts; uint32_t *res, *res_end; parts = (1 << pmax); res = &data[pred_order]; res_end = &data[n >> pmax]; for (i = 0;...
{ "code": [ " uint32_t sums[][MAX_PARTITIONS])", " uint32_t sum = 0;" ], "line_no": [ 3, 25 ] }
static void FUNC_0(int VAR_0, int VAR_1, uint32_t *VAR_2, int VAR_3, int VAR_4, uint32_t VAR_5[][MAX_PARTITIONS]) { int VAR_6, VAR_7; int VAR_8; uint32_t *res, *res_end; VAR_8 = (1 << VAR_1); res = &VAR_2[VAR_4]; res_end = &VAR_2[VAR_3 >> VAR_1]; ...
[ "static void FUNC_0(int VAR_0, int VAR_1, uint32_t *VAR_2, int VAR_3, int VAR_4,\nuint32_t VAR_5[][MAX_PARTITIONS])\n{", "int VAR_6, VAR_7;", "int VAR_8;", "uint32_t *res, *res_end;", "VAR_8 = (1 << VAR_1);", "res = &VAR_2[VAR_4];", "res_end = &VAR_2[VAR_3 >> VAR_1];", "for (VAR_6 = 0; VAR_6 < V...
[ 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
3,986
static MTPData *usb_mtp_get_object(MTPState *s, MTPControl *c, MTPObject *o) { MTPData *d = usb_mtp_data_alloc(c); trace_usb_mtp_op_get_object(s->dev.addr, o->handle, o->path); d->fd = open(o->path, O_RDONLY); if (d->fd == -1) { return NULL; } ...
true
qemu
2dc7fdf33d28940255f171b8ea4b692d9d5b7a7d
static MTPData *usb_mtp_get_object(MTPState *s, MTPControl *c, MTPObject *o) { MTPData *d = usb_mtp_data_alloc(c); trace_usb_mtp_op_get_object(s->dev.addr, o->handle, o->path); d->fd = open(o->path, O_RDONLY); if (d->fd == -1) { return NULL; } ...
{ "code": [], "line_no": [] }
static MTPData *FUNC_0(MTPState *s, MTPControl *c, MTPObject *o) { MTPData *d = usb_mtp_data_alloc(c); trace_usb_mtp_op_get_object(s->dev.addr, o->handle, o->path); d->fd = open(o->path, O_RDONLY); if (d->fd == -1) { return NULL; } d->leng...
[ "static MTPData *FUNC_0(MTPState *s, MTPControl *c,\nMTPObject *o)\n{", "MTPData *d = usb_mtp_data_alloc(c);", "trace_usb_mtp_op_get_object(s->dev.addr, o->handle, o->path);", "d->fd = open(o->path, O_RDONLY);", "if (d->fd == -1) {", "return NULL;", "}", "d->length = o->stat.st_size;", "d->alloc = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 20 ], [ 22 ], [ 24 ], [ 26 ], [ 28 ], [ 30 ], [ 32 ] ]
3,987
static void init_block_index(VC1Context *v) { MpegEncContext *s = &v->s; ff_init_block_index(s); if (v->field_mode && !(v->second_field ^ v->tff)) { s->dest[0] += s->current_picture_ptr->f.linesize[0]; s->dest[1] += s->current_picture_ptr->f.linesize[1]; s->dest[2] += s->curre...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static void init_block_index(VC1Context *v) { MpegEncContext *s = &v->s; ff_init_block_index(s); if (v->field_mode && !(v->second_field ^ v->tff)) { s->dest[0] += s->current_picture_ptr->f.linesize[0]; s->dest[1] += s->current_picture_ptr->f.linesize[1]; s->dest[2] += s->curre...
{ "code": [ " s->dest[0] += s->current_picture_ptr->f.linesize[0];", " s->dest[1] += s->current_picture_ptr->f.linesize[1];", " s->dest[2] += s->current_picture_ptr->f.linesize[2];" ], "line_no": [ 11, 13, 15 ] }
static void FUNC_0(VC1Context *VAR_0) { MpegEncContext *s = &VAR_0->s; ff_init_block_index(s); if (VAR_0->field_mode && !(VAR_0->second_field ^ VAR_0->tff)) { s->dest[0] += s->current_picture_ptr->f.linesize[0]; s->dest[1] += s->current_picture_ptr->f.linesize[1]; s->dest[2] +...
[ "static void FUNC_0(VC1Context *VAR_0)\n{", "MpegEncContext *s = &VAR_0->s;", "ff_init_block_index(s);", "if (VAR_0->field_mode && !(VAR_0->second_field ^ VAR_0->tff)) {", "s->dest[0] += s->current_picture_ptr->f.linesize[0];", "s->dest[1] += s->current_picture_ptr->f.linesize[1];", "s->dest[2] += s->cu...
[ 0, 0, 0, 0, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
3,989
bool qvirtio_wait_queue_isr(const QVirtioBus *bus, QVirtioDevice *d, QVirtQueue *vq, uint64_t timeout) { do { clock_step(100); if (bus->get_queue_isr_status(d, vq)) { break; /* It has ended */ } } while (--timeout); r...
true
qemu
70556264a89a268efba1d7e8e341adcdd7881eb4
bool qvirtio_wait_queue_isr(const QVirtioBus *bus, QVirtioDevice *d, QVirtQueue *vq, uint64_t timeout) { do { clock_step(100); if (bus->get_queue_isr_status(d, vq)) { break; } } while (--timeout); return timeout != 0...
{ "code": [ "bool qvirtio_wait_queue_isr(const QVirtioBus *bus, QVirtioDevice *d,", " QVirtQueue *vq, uint64_t timeout)", " do {", " } while (--timeout);", " return timeout != 0;", " do {", " } while (--timeout);", " return t...
bool FUNC_0(const QVirtioBus *bus, QVirtioDevice *d, QVirtQueue *vq, uint64_t timeout) { do { clock_step(100); if (bus->get_queue_isr_status(d, vq)) { break; } } while (--timeout); return timeout != 0; }
[ "bool FUNC_0(const QVirtioBus *bus, QVirtioDevice *d,\nQVirtQueue *vq, uint64_t timeout)\n{", "do {", "clock_step(100);", "if (bus->get_queue_isr_status(d, vq)) {", "break;", "}", "} while (--timeout);", "return timeout != 0;", "}" ]
[ 1, 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
3,990
static int64_t mkv_write_cues(AVIOContext *pb, mkv_cues *cues, int num_tracks) { ebml_master cues_element; int64_t currentpos; int i, j; currentpos = avio_tell(pb); cues_element = start_ebml_master(pb, MATROSKA_ID_CUES, 0); for (i = 0; i < cues->num_entries; i++) { ebml_maste...
true
FFmpeg
eddd580b743692bc930692cb0c5a3e930ab45ad4
static int64_t mkv_write_cues(AVIOContext *pb, mkv_cues *cues, int num_tracks) { ebml_master cues_element; int64_t currentpos; int i, j; currentpos = avio_tell(pb); cues_element = start_ebml_master(pb, MATROSKA_ID_CUES, 0); for (i = 0; i < cues->num_entries; i++) { ebml_maste...
{ "code": [ " av_free(cues->entries);", " av_free(cues);" ], "line_no": [ 61, 63 ] }
static int64_t FUNC_0(AVIOContext *pb, mkv_cues *cues, int num_tracks) { ebml_master cues_element; int64_t currentpos; int VAR_0, VAR_1; currentpos = avio_tell(pb); cues_element = start_ebml_master(pb, MATROSKA_ID_CUES, 0); for (VAR_0 = 0; VAR_0 < cues->num_entries; VAR_0++) { ...
[ "static int64_t FUNC_0(AVIOContext *pb, mkv_cues *cues, int num_tracks)\n{", "ebml_master cues_element;", "int64_t currentpos;", "int VAR_0, VAR_1;", "currentpos = avio_tell(pb);", "cues_element = start_ebml_master(pb, MATROSKA_ID_CUES, 0);", "for (VAR_0 = 0; VAR_0 < cues->num_entries; VAR_0++) {", "e...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
3,991
static int dxva2_device_create9ex(AVHWDeviceContext *ctx, UINT adapter) { DXVA2DevicePriv *priv = ctx->user_opaque; D3DPRESENT_PARAMETERS d3dpp = dxva2_present_params; D3DDISPLAYMODEEX modeex = {0}; IDirect3D9Ex *d3d9ex = NULL; IDirect3DDevice9Ex *exdev = NULL; HRESULT hr; pDirect3DC...
true
FFmpeg
59b126f92225316e0cd77bb952d630553801dc85
static int dxva2_device_create9ex(AVHWDeviceContext *ctx, UINT adapter) { DXVA2DevicePriv *priv = ctx->user_opaque; D3DPRESENT_PARAMETERS d3dpp = dxva2_present_params; D3DDISPLAYMODEEX modeex = {0}; IDirect3D9Ex *d3d9ex = NULL; IDirect3DDevice9Ex *exdev = NULL; HRESULT hr; pDirect3DC...
{ "code": [ " IDirect3D9Ex_GetAdapterDisplayModeEx(d3d9ex, adapter, &modeex, NULL);" ], "line_no": [ 33 ] }
static int FUNC_0(AVHWDeviceContext *VAR_0, UINT VAR_1) { DXVA2DevicePriv *priv = VAR_0->user_opaque; D3DPRESENT_PARAMETERS d3dpp = dxva2_present_params; D3DDISPLAYMODEEX modeex = {0}; IDirect3D9Ex *d3d9ex = NULL; IDirect3DDevice9Ex *exdev = NULL; HRESULT hr; pDirect3DCreate9Ex *crea...
[ "static int FUNC_0(AVHWDeviceContext *VAR_0, UINT VAR_1)\n{", "DXVA2DevicePriv *priv = VAR_0->user_opaque;", "D3DPRESENT_PARAMETERS d3dpp = dxva2_present_params;", "D3DDISPLAYMODEEX modeex = {0};", "IDirect3D9Ex *d3d9ex = NULL;", "IDirect3DDevice9Ex *exdev = NULL;", "HRESULT hr;", "pDirect3DCreate9Ex ...
[ 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 37 ], [ 41, 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
3,993
static void mov_metadata_creation_time(AVDictionary **metadata, int64_t time) { if (time) { if(time >= 2082844800) time -= 2082844800; /* seconds between 1904-01-01 and Epoch */ avpriv_dict_set_timestamp(metadata, "creation_time", time * 1000000);
true
FFmpeg
39ee3ddff87a12e108fc4e0d36f756d0ca080472
static void mov_metadata_creation_time(AVDictionary **metadata, int64_t time) { if (time) { if(time >= 2082844800) time -= 2082844800; avpriv_dict_set_timestamp(metadata, "creation_time", time * 1000000);
{ "code": [], "line_no": [] }
static void FUNC_0(AVDictionary **VAR_0, int64_t VAR_1) { if (VAR_1) { if(VAR_1 >= 2082844800) VAR_1 -= 2082844800; avpriv_dict_set_timestamp(VAR_0, "creation_time", VAR_1 * 1000000);
[ "static void FUNC_0(AVDictionary **VAR_0, int64_t VAR_1)\n{", "if (VAR_1) {", "if(VAR_1 >= 2082844800)\nVAR_1 -= 2082844800;", "avpriv_dict_set_timestamp(VAR_0, \"creation_time\", VAR_1 * 1000000);" ]
[ 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4, 5 ], [ 6 ] ]
3,995
static void register_all(void) { /* hardware accelerators */ REGISTER_HWACCEL(H263_VAAPI, h263_vaapi); REGISTER_HWACCEL(H263_VIDEOTOOLBOX, h263_videotoolbox); REGISTER_HWACCEL(H264_CUVID, h264_cuvid); REGISTER_HWACCEL(H264_D3D11VA, h264_d3d11va); REGISTER_HWACCEL(H264_D...
true
FFmpeg
7c9f739d864c0ed8f1b433d6a7d9f674edda9cf5
static void register_all(void) { REGISTER_HWACCEL(H263_VAAPI, h263_vaapi); REGISTER_HWACCEL(H263_VIDEOTOOLBOX, h263_videotoolbox); REGISTER_HWACCEL(H264_CUVID, h264_cuvid); REGISTER_HWACCEL(H264_D3D11VA, h264_d3d11va); REGISTER_HWACCEL(H264_D3D11VA2, h264_d3d11va2)...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { REGISTER_HWACCEL(H263_VAAPI, h263_vaapi); REGISTER_HWACCEL(H263_VIDEOTOOLBOX, h263_videotoolbox); REGISTER_HWACCEL(H264_CUVID, h264_cuvid); REGISTER_HWACCEL(H264_D3D11VA, h264_d3d11va); REGISTER_HWACCEL(H264_D3D11VA2, h264_d3d11va2); ...
[ "static void FUNC_0(void)\n{", "REGISTER_HWACCEL(H263_VAAPI, h263_vaapi);", "REGISTER_HWACCEL(H263_VIDEOTOOLBOX, h263_videotoolbox);", "REGISTER_HWACCEL(H264_CUVID, h264_cuvid);", "REGISTER_HWACCEL(H264_D3D11VA, h264_d3d11va);", "REGISTER_HWACCEL(H264_D3D11VA2, h264_d3d11va2);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
3,996
void load_psw(CPUS390XState *env, uint64_t mask, uint64_t addr) { uint64_t old_mask = env->psw.mask; env->psw.addr = addr; env->psw.mask = mask; if (tcg_enabled()) { env->cc_op = (mask >> 44) & 3; } if ((old_mask ^ mask) & PSW_MASK_PER) { s390_cpu_recompute_watchpoin...
true
qemu
83f7f32901c630f4fc01acd0d9082da466b17102
void load_psw(CPUS390XState *env, uint64_t mask, uint64_t addr) { uint64_t old_mask = env->psw.mask; env->psw.addr = addr; env->psw.mask = mask; if (tcg_enabled()) { env->cc_op = (mask >> 44) & 3; } if ((old_mask ^ mask) & PSW_MASK_PER) { s390_cpu_recompute_watchpoin...
{ "code": [ " S390CPU *cpu = s390_env_get_cpu(env);", " if (s390_cpu_halt(cpu) == 0) {", "#ifndef CONFIG_USER_ONLY", " qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);", "#endif" ], "line_no": [ 31, 33, 35, 37, 39 ] }
void FUNC_0(CPUS390XState *VAR_0, uint64_t VAR_1, uint64_t VAR_2) { uint64_t old_mask = VAR_0->psw.VAR_1; VAR_0->psw.VAR_2 = VAR_2; VAR_0->psw.VAR_1 = VAR_1; if (tcg_enabled()) { VAR_0->cc_op = (VAR_1 >> 44) & 3; } if ((old_mask ^ VAR_1) & PSW_MASK_PER) { s390_cpu_re...
[ "void FUNC_0(CPUS390XState *VAR_0, uint64_t VAR_1, uint64_t VAR_2)\n{", "uint64_t old_mask = VAR_0->psw.VAR_1;", "VAR_0->psw.VAR_2 = VAR_2;", "VAR_0->psw.VAR_1 = VAR_1;", "if (tcg_enabled()) {", "VAR_0->cc_op = (VAR_1 >> 44) & 3;", "}", "if ((old_mask ^ VAR_1) & PSW_MASK_PER) {", "s390_cpu_recompute...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ] ]
3,997
static int amr_read_packet(AVFormatContext *s, AVPacket *pkt) { AVCodecContext *enc = s->streams[0]->codec; int read, size = 0, toc, mode; int64_t pos = avio_tell(s->pb); if (url_feof(s->pb)) { return AVERROR(EIO); } // FIXME this is wrong, this should rather be in a AVParset...
false
FFmpeg
d87ff555025e90ef285425216c29be95034e2485
static int amr_read_packet(AVFormatContext *s, AVPacket *pkt) { AVCodecContext *enc = s->streams[0]->codec; int read, size = 0, toc, mode; int64_t pos = avio_tell(s->pb); if (url_feof(s->pb)) { return AVERROR(EIO); } toc = avio_r8(s->pb); mode = (toc >> 3) & 0x0F;...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { AVCodecContext *enc = VAR_0->streams[0]->codec; int VAR_2, VAR_3 = 0, VAR_4, VAR_5; int64_t pos = avio_tell(VAR_0->pb); if (url_feof(VAR_0->pb)) { return AVERROR(EIO); } VAR_4 = avio_r8(VAR_0->pb); VAR_5...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "AVCodecContext *enc = VAR_0->streams[0]->codec;", "int VAR_2, VAR_3 = 0, VAR_4, VAR_5;", "int64_t pos = avio_tell(VAR_0->pb);", "if (url_feof(VAR_0->pb)) {", "return AVERROR(EIO);", "}", "VAR_4 = avio_r8(VAR_0->pb);", "VAR_5 = (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 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 51 ], [ 53 ], [ 55 ...
3,998
static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size) { uint8_t *buf1; RMContext *rm = s->priv_data; ByteIOContext *pb = &s->pb; StreamInfo *stream = rm->audio_stream; int i; /* XXX: suppress this malloc */ buf1= (uint8_t*) av_malloc( size * sizeof(uint8_t) );...
false
FFmpeg
3c895fc098f7637f6d5ec3a9d6766e724a8b9e41
static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size) { uint8_t *buf1; RMContext *rm = s->priv_data; ByteIOContext *pb = &s->pb; StreamInfo *stream = rm->audio_stream; int i; buf1= (uint8_t*) av_malloc( size * sizeof(uint8_t) ); write_packet_header...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { uint8_t *buf1; RMContext *rm = VAR_0->priv_data; ByteIOContext *pb = &VAR_0->pb; StreamInfo *stream = rm->audio_stream; int VAR_3; buf1= (uint8_t*) av_malloc( VAR_2 * sizeof(uint8_t) ); write_p...
[ "static int FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "uint8_t *buf1;", "RMContext *rm = VAR_0->priv_data;", "ByteIOContext *pb = &VAR_0->pb;", "StreamInfo *stream = rm->audio_stream;", "int VAR_3;", "buf1= (uint8_t*) av_malloc( VAR_2 * sizeof(uint8_t) );", "write_packet_hea...
[ 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 ], [ 19 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
3,999
static inline void RENAME(bgr24ToY)(uint8_t *dst, const uint8_t *src, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX RENAME(bgr24ToY_mmx)(dst, src, width, PIX_FMT_BGR24); #else int i; for (i=0; i<width; i++) { int b= src[i*3+0]; int g= src[i*3+1]; int r= src[i*3+2]...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(bgr24ToY)(uint8_t *dst, const uint8_t *src, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX RENAME(bgr24ToY_mmx)(dst, src, width, PIX_FMT_BGR24); #else int i; for (i=0; i<width; i++) { int b= src[i*3+0]; int g= src[i*3+1]; int r= src[i*3+2]...
{ "code": [], "line_no": [] }
static inline void FUNC_0(bgr24ToY)(uint8_t *dst, const uint8_t *src, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX FUNC_0(bgr24ToY_mmx)(dst, src, width, PIX_FMT_BGR24); #else int VAR_0; for (VAR_0=0; VAR_0<width; VAR_0++) { int b= src[VAR_0*3+0]; int g= src[VAR_0*3+1]; ...
[ "static inline void FUNC_0(bgr24ToY)(uint8_t *dst, const uint8_t *src, long width, uint32_t *unused)\n{", "#if COMPILE_TEMPLATE_MMX\nFUNC_0(bgr24ToY_mmx)(dst, src, width, PIX_FMT_BGR24);", "#else\nint VAR_0;", "for (VAR_0=0; VAR_0<width; VAR_0++) {", "int b= src[VAR_0*3+0];", "int g= src[VAR_0*3+1];", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27, 29 ] ]
4,000
void ff_put_h264_qpel8_mc30_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_qrt_8w_msa(src - 2, stride, dst, stride, 8, 1); }
false
FFmpeg
b5da07d4340a8e8e40dcd1900977a76ff31fbb84
void ff_put_h264_qpel8_mc30_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_qrt_8w_msa(src - 2, stride, dst, stride, 8, 1); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_hz_qrt_8w_msa(VAR_1 - 2, VAR_2, VAR_0, VAR_2, 8, 1); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_hz_qrt_8w_msa(VAR_1 - 2, VAR_2, VAR_0, VAR_2, 8, 1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
4,001
static int bmp_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; BMPContext *s = avctx->priv_data; AVFrame *picture = data; AVFrame *p = &s->...
false
FFmpeg
353a2d2164c09740e42f33014c4773b93e96a0d2
static int bmp_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; BMPContext *s = avctx->priv_data; AVFrame *picture = data; AVFrame *p = &s->...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; BMPContext *s = VAR_0->priv_data; AVFrame *picture = VAR_1; AVFrame *p = &s->picture; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "BMPContext *s = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "AVFrame *p = &s->picture;", "unsigned int VAR_6, VAR_7;", "int VAR_8, VAR_9;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ...
4,002
static int pcm_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size, bps; // AVStream *st = s->streams[0]; size= RAW_SAMPLES*s->streams[0]->codec->block_align; ret= av_get_packet(s->pb, pkt, size); pkt->stream_index = 0; if (ret < 0) return ret; bps= av_...
false
FFmpeg
38893dc028e458eaf3f906833d4ee515689edb7e
static int pcm_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size, bps; size= RAW_SAMPLES*s->streams[0]->codec->block_align; ret= av_get_packet(s->pb, pkt, size); pkt->stream_index = 0; if (ret < 0) return ret; bps= av_get_bits_per_sample(s->streams[0]->...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { int VAR_2, VAR_3, VAR_4; VAR_3= RAW_SAMPLES*VAR_0->streams[0]->codec->block_align; VAR_2= av_get_packet(VAR_0->pb, VAR_1, VAR_3); VAR_1->stream_index = 0; if (VAR_2 < 0) return VAR_2; VAR_4= av_get_bits_pe...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "VAR_3= RAW_SAMPLES*VAR_0->streams[0]->codec->block_align;", "VAR_2= av_get_packet(VAR_0->pb, VAR_1, VAR_3);", "VAR_1->stream_index = 0;", "if (VAR_2 < 0)\nreturn VAR_2;", "VAR_4= av_get_bits_per_sample(VAR_0->s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ] ]
4,003
static void dump_stream_format(AVFormatContext *ic, int i, int index, int is_output) { char buf[256]; int flags = (is_output ? ic->oformat->flags : ic->iformat->flags); AVStream *st = ic->streams[i]; AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NUL...
true
FFmpeg
d1bdaf3fb2c45020f72a378bb64eab1bf136581c
static void dump_stream_format(AVFormatContext *ic, int i, int index, int is_output) { char buf[256]; int flags = (is_output ? ic->oformat->flags : ic->iformat->flags); AVStream *st = ic->streams[i]; AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NUL...
{ "code": [ " st->codec->width * st->sample_aspect_ratio.num,", " st->codec->height * st->sample_aspect_ratio.den," ], "line_no": [ 65, 67 ] }
static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, int VAR_2, int VAR_3) { char VAR_4[256]; int VAR_5 = (VAR_3 ? VAR_0->oformat->VAR_5 : VAR_0->iformat->VAR_5); AVStream *st = VAR_0->streams[VAR_1]; AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", N...
[ "static void FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint VAR_2, int VAR_3)\n{", "char VAR_4[256];", "int VAR_5 = (VAR_3 ? VAR_0->oformat->VAR_5 : VAR_0->iformat->VAR_5);", "AVStream *st = VAR_0->streams[VAR_1];", "AVDictionaryEntry *lang = av_dict_get(st->metadata, \"language\", NULL, 0);", "char *VAR_...
[ 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, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 41, 43 ], [ 45, 47 ], [ 49, 51 ], [ 53 ], [ 57,...
4,004
static av_cold int encode_close(AVCodecContext *avctx) { if (avctx->priv_data) { DCAEncContext *c = avctx->priv_data; subband_bufer_free(c); ff_dcaadpcm_free(&c->adpcm_ctx); } return 0; }
true
FFmpeg
56e11ebf55a5e51a8a7131d382c2020e35d34f42
static av_cold int encode_close(AVCodecContext *avctx) { if (avctx->priv_data) { DCAEncContext *c = avctx->priv_data; subband_bufer_free(c); ff_dcaadpcm_free(&c->adpcm_ctx); } return 0; }
{ "code": [ " if (avctx->priv_data) {", " DCAEncContext *c = avctx->priv_data;", " subband_bufer_free(c);", " ff_dcaadpcm_free(&c->adpcm_ctx);" ], "line_no": [ 5, 7, 9, 11 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { if (avctx->priv_data) { DCAEncContext *c = avctx->priv_data; subband_bufer_free(c); ff_dcaadpcm_free(&c->adpcm_ctx); } return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "if (avctx->priv_data) {", "DCAEncContext *c = avctx->priv_data;", "subband_bufer_free(c);", "ff_dcaadpcm_free(&c->adpcm_ctx);", "}", "return 0;", "}" ]
[ 0, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
4,005
static int bdrv_read_em(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { int async_ret; BlockDriverAIOCB *acb; async_ret = NOT_DONE; qemu_aio_wait_start(); acb = bdrv_aio_read(bs, sector_num, buf, nb_sectors, bdrv_rw_...
true
qemu
baf35cb90204d75404892aa4e52628ae7a00669b
static int bdrv_read_em(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { int async_ret; BlockDriverAIOCB *acb; async_ret = NOT_DONE; qemu_aio_wait_start(); acb = bdrv_aio_read(bs, sector_num, buf, nb_sectors, bdrv_rw_...
{ "code": [ " qemu_aio_wait_start();", " qemu_aio_wait_end();", " qemu_aio_wait_start();", " if (acb == NULL) {", " qemu_aio_wait_end();", " qemu_aio_wait_end();", " qemu_aio_wait_start();", " if (acb == NULL) {", " qemu_aio_wait_end();", " ...
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, uint8_t *VAR_2, int VAR_3) { int VAR_4; BlockDriverAIOCB *acb; VAR_4 = NOT_DONE; qemu_aio_wait_start(); acb = bdrv_aio_read(VAR_0, VAR_1, VAR_2, VAR_3, bdrv_rw_em_cb, &VAR_4); if ...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nuint8_t *VAR_2, int VAR_3)\n{", "int VAR_4;", "BlockDriverAIOCB *acb;", "VAR_4 = NOT_DONE;", "qemu_aio_wait_start();", "acb = bdrv_aio_read(VAR_0, VAR_1, VAR_2, VAR_3,\nbdrv_rw_em_cb, &VAR_4);", "if (acb == NULL) {", "qemu_aio_wait_end();", ...
[ 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
4,007
void hmp_info_cpus(Monitor *mon, const QDict *qdict) { CpuInfoList *cpu_list, *cpu; cpu_list = qmp_query_cpus(NULL); for (cpu = cpu_list; cpu; cpu = cpu->next) { int active = ' '; if (cpu->value->CPU == monitor_get_cpu_index()) { active = '*'; } m...
true
qemu
544a3731591f5d53e15f22de00ce5ac758d490b3
void hmp_info_cpus(Monitor *mon, const QDict *qdict) { CpuInfoList *cpu_list, *cpu; cpu_list = qmp_query_cpus(NULL); for (cpu = cpu_list; cpu; cpu = cpu->next) { int active = ' '; if (cpu->value->CPU == monitor_get_cpu_index()) { active = '*'; } m...
{ "code": [ " monitor_printf(mon, \" pc=0x%016\" PRIx64, cpu->value->u.x86->pc);", " monitor_printf(mon, \" nip=0x%016\" PRIx64, cpu->value->u.ppc->nip);", " cpu->value->u.q_sparc->pc);", " cpu->value->u.q_sparc->npc);", " ...
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { CpuInfoList *cpu_list, *cpu; cpu_list = qmp_query_cpus(NULL); for (cpu = cpu_list; cpu; cpu = cpu->next) { int active = ' '; if (cpu->value->CPU == monitor_get_cpu_index()) { active = '*'; } monito...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "CpuInfoList *cpu_list, *cpu;", "cpu_list = qmp_query_cpus(NULL);", "for (cpu = cpu_list; cpu; cpu = cpu->next) {", "int active = ' ';", "if (cpu->value->CPU == monitor_get_cpu_index()) {", "active = '*';", "}", "monitor_printf(VAR_0, \"%c CPU #%...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47, 49 ], [ 51, 53 ], [ 55 ], ...
4,008
MemTxResult memory_region_dispatch_write(MemoryRegion *mr, hwaddr addr, uint64_t data, unsigned size, MemTxAttrs attrs) { if (!memory_region_access_vali...
true
qemu
8c56c1a592b5092d91da8d8943c17777d6462a6f
MemTxResult memory_region_dispatch_write(MemoryRegion *mr, hwaddr addr, uint64_t data, unsigned size, MemTxAttrs attrs) { if (!memory_region_access_vali...
{ "code": [], "line_no": [] }
MemTxResult FUNC_0(MemoryRegion *mr, hwaddr addr, uint64_t data, unsigned size, MemTxAttrs attrs) { if (!memory_region_access_valid(mr, addr, size, true...
[ "MemTxResult FUNC_0(MemoryRegion *mr,\nhwaddr addr,\nuint64_t data,\nunsigned size,\nMemTxAttrs attrs)\n{", "if (!memory_region_access_valid(mr, addr, size, true)) {", "unassigned_mem_write(mr, addr, data, size);", "return MEMTX_DECODE_ERROR;", "adjust_endianness(mr, &data, size);", "if (mr->ops->write) {...
[ 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, 22, 23 ], [ 24 ], [ 25, 26, 27 ] ]
4,010
static int svq3_decode_mb(SVQ3Context *svq3, unsigned int mb_type) { H264Context *h = &svq3->h; int i, j, k, m, dir, mode; int cbp = 0; uint32_t vlc; int8_t *top, *left; MpegEncContext *const s = (MpegEncContext *) h; const int mb_xy = h->mb_xy; const int b_xy = 4*s->mb_x + 4*s...
false
FFmpeg
979bea13003ef489d95d2538ac2fb1c26c6f103b
static int svq3_decode_mb(SVQ3Context *svq3, unsigned int mb_type) { H264Context *h = &svq3->h; int i, j, k, m, dir, mode; int cbp = 0; uint32_t vlc; int8_t *top, *left; MpegEncContext *const s = (MpegEncContext *) h; const int mb_xy = h->mb_xy; const int b_xy = 4*s->mb_x + 4*s...
{ "code": [], "line_no": [] }
static int FUNC_0(SVQ3Context *VAR_0, unsigned int VAR_1) { H264Context *h = &VAR_0->h; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8 = 0; uint32_t vlc; int8_t *top, *left; MpegEncContext *const s = (MpegEncContext *) h; const int VAR_9 = h->VAR_9; const int VAR_10 = ...
[ "static int FUNC_0(SVQ3Context *VAR_0, unsigned int VAR_1)\n{", "H264Context *h = &VAR_0->h;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8 = 0;", "uint32_t vlc;", "int8_t *top, *left;", "MpegEncContext *const s = (MpegEncContext *) h;", "const int VAR_9 = h->VAR_9;", "const int 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
4,011
static int amv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic_arg, int *got_packet) { MpegEncContext *s = avctx->priv_data; AVFrame *pic; int i, ret; int chroma_h_shift, chroma_v_shift; av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt,...
false
FFmpeg
a26e9c1040afeecf9013da742b0dec7009445f2b
static int amv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic_arg, int *got_packet) { MpegEncContext *s = avctx->priv_data; AVFrame *pic; int i, ret; int chroma_h_shift, chroma_v_shift; av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt,...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { MpegEncContext *s = VAR_0->priv_data; AVFrame *pic; int VAR_4, VAR_5; int VAR_6, VAR_7; av_pix_fmt_get_chroma_sub_sample(VAR_0->pix_fmt, &VAR_6, &VAR_7); ...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "MpegEncContext *s = VAR_0->priv_data;", "AVFrame *pic;", "int VAR_4, VAR_5;", "int VAR_6, VAR_7;", "av_pix_fmt_get_chroma_sub_sample(VAR_0->pix_fmt, &VAR_6, &VAR_7);", "if(s->VAR_0->flags & CODEC_FLAG_EMU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 25, 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], ...
4,012
static int mpeg1_decode_sequence(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int width, height; int i, v, j; init_get_bits(&s->gb, buf, buf_size * 8); width =...
false
FFmpeg
37d93fdbf0fec0eac885974c01fba99826ae7763
static int mpeg1_decode_sequence(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int width, height; int i, v, j; init_get_bits(&s->gb, buf, buf_size * 8); width =...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { Mpeg1Context *s1 = VAR_0->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int VAR_3, VAR_4; int VAR_5, VAR_6, VAR_8; init_get_bits(&s->gb, VAR_1, VAR_2 * 8); VAR_3 = get_b...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{", "Mpeg1Context *s1 = VAR_0->priv_data;", "MpegEncContext *s = &s1->mpeg_enc_ctx;", "int VAR_3, VAR_4;", "int VAR_5, VAR_6, VAR_8;", "init_get_bits(&s->gb, VAR_1, VAR_2 * 8);", "VAR_3 = get_bits(&s->gb, 12);", "VAR_4 = ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ...
4,013
static int build_table(VLC *vlc, int table_nb_bits, int nb_codes, const void *bits, int bits_wrap, int bits_size, const void *codes, int codes_wrap, int codes_size, uint32_t code_prefix, int n_prefix) { int i, j, k, n,...
true
FFmpeg
073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1
static int build_table(VLC *vlc, int table_nb_bits, int nb_codes, const void *bits, int bits_wrap, int bits_size, const void *codes, int codes_wrap, int codes_size, uint32_t code_prefix, int n_prefix) { int i, j, k, n,...
{ "code": [ " uint32_t code_prefix, int n_prefix)", " table_index = alloc_table(vlc, table_size);", " n_prefix + table_nb_bits);" ], "line_no": [ 9, 23, 169 ] }
static int FUNC_0(VLC *VAR_0, int VAR_1, int VAR_2, const void *VAR_3, int VAR_4, int VAR_5, const void *VAR_6, int VAR_7, int VAR_8, uint32_t VAR_9, int VAR_10) { int VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VA...
[ "static int FUNC_0(VLC *VAR_0, int VAR_1,\nint VAR_2,\nconst void *VAR_3, int VAR_4, int VAR_5,\nconst void *VAR_6, int VAR_7, int VAR_8,\nuint32_t VAR_9, int VAR_10)\n{", "int VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17, VAR_18, VAR_19;", "uint32_t code;", "VLC_TYPE (*table)[2];", "VAR_15 = 1 <<...
[ 1, 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, 0, 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 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27, 29 ], [ 31, 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [ 55 ], [ 57 ...
4,014
av_cold static int lavfi_read_header(AVFormatContext *avctx) { LavfiContext *lavfi = avctx->priv_data; AVFilterInOut *input_links = NULL, *output_links = NULL, *inout; AVFilter *buffersink, *abuffersink; int *pix_fmts = create_all_formats(AV_PIX_FMT_NB); enum AVMediaType type; int ret = 0...
true
FFmpeg
b19bfd6c9f42588c7a172bb019e27696972b8d2c
av_cold static int lavfi_read_header(AVFormatContext *avctx) { LavfiContext *lavfi = avctx->priv_data; AVFilterInOut *input_links = NULL, *output_links = NULL, *inout; AVFilter *buffersink, *abuffersink; int *pix_fmts = create_all_formats(AV_PIX_FMT_NB); enum AVMediaType type; int ret = 0...
{ "code": [ " return AVERROR(EINVAL);", " return ret;", " return AVERROR(ENOMEM);" ], "line_no": [ 45, 63, 75 ] }
av_cold static int FUNC_0(AVFormatContext *avctx) { LavfiContext *lavfi = avctx->priv_data; AVFilterInOut *input_links = NULL, *output_links = NULL, *inout; AVFilter *buffersink, *abuffersink; int *VAR_0 = create_all_formats(AV_PIX_FMT_NB); enum AVMediaType VAR_1; int VAR_2 = 0, VAR_3, VA...
[ "av_cold static int FUNC_0(AVFormatContext *avctx)\n{", "LavfiContext *lavfi = avctx->priv_data;", "AVFilterInOut *input_links = NULL, *output_links = NULL, *inout;", "AVFilter *buffersink, *abuffersink;", "int *VAR_0 = create_all_formats(AV_PIX_FMT_NB);", "enum AVMediaType VAR_1;", "int VAR_2 = 0, VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 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, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ...
4,015
static gboolean register_signal_handlers(void) { struct sigaction sigact, sigact_chld; int ret; memset(&sigact, 0, sizeof(struct sigaction)); sigact.sa_handler = quit_handler; ret = sigaction(SIGINT, &sigact, NULL); if (ret == -1) { g_error("error configuring signal handler: ...
true
qemu
dc8764f06155a7b3e635e02281b747a9e292127e
static gboolean register_signal_handlers(void) { struct sigaction sigact, sigact_chld; int ret; memset(&sigact, 0, sizeof(struct sigaction)); sigact.sa_handler = quit_handler; ret = sigaction(SIGINT, &sigact, NULL); if (ret == -1) { g_error("error configuring signal handler: ...
{ "code": [ " struct sigaction sigact, sigact_chld;", " memset(&sigact_chld, 0, sizeof(struct sigaction));", " sigact_chld.sa_handler = child_handler;", " sigact_chld.sa_flags = SA_NOCLDSTOP;", " ret = sigaction(SIGCHLD, &sigact_chld, NULL);", " if (ret == -1) {", " ...
static gboolean FUNC_0(void) { struct sigaction VAR_0, VAR_1; int VAR_2; memset(&VAR_0, 0, sizeof(struct sigaction)); VAR_0.sa_handler = quit_handler; VAR_2 = sigaction(SIGINT, &VAR_0, NULL); if (VAR_2 == -1) { g_error("error configuring signal handler: %s", strerror(errno));...
[ "static gboolean FUNC_0(void)\n{", "struct sigaction VAR_0, VAR_1;", "int VAR_2;", "memset(&VAR_0, 0, sizeof(struct sigaction));", "VAR_0.sa_handler = quit_handler;", "VAR_2 = sigaction(SIGINT, &VAR_0, NULL);", "if (VAR_2 == -1) {", "g_error(\"error configuring signal handler: %s\", strerror(errno));"...
[ 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
4,016
static void sch_handle_start_func_virtual(SubchDev *sch) { PMCW *p = &sch->curr_status.pmcw; SCSW *s = &sch->curr_status.scsw; int path; int ret; bool suspend_allowed; /* Path management: In our simple css, we always choose the only path. */ path = 0x80; if (!(s->ctrl & SC...
true
qemu
248b920df95a5e3df10c16be63b017653c7ba730
static void sch_handle_start_func_virtual(SubchDev *sch) { PMCW *p = &sch->curr_status.pmcw; SCSW *s = &sch->curr_status.scsw; int path; int ret; bool suspend_allowed; path = 0x80; if (!(s->ctrl & SCSW_ACTL_SUSP)) { ORB *orb = &sch->orb; s->cst...
{ "code": [ " case -EFAULT:", " s->ctrl &= ~SCSW_ACTL_START_PEND;", " s->cstat = SCSW_CSTAT_DATA_CHECK;", " s->ctrl &= ~SCSW_CTRL_MASK_STCTL;", " s->ctrl |= SCSW_STCTL_PRIMARY | SCSW_STCTL_SECONDARY |", " SCSW_STCTL_ALERT | ...
static void FUNC_0(SubchDev *VAR_0) { PMCW *p = &VAR_0->curr_status.pmcw; SCSW *s = &VAR_0->curr_status.scsw; int VAR_1; int VAR_2; bool suspend_allowed; VAR_1 = 0x80; if (!(s->ctrl & SCSW_ACTL_SUSP)) { ORB *orb = &VAR_0->orb; s->cstat = 0; ...
[ "static void FUNC_0(SubchDev *VAR_0)\n{", "PMCW *p = &VAR_0->curr_status.pmcw;", "SCSW *s = &VAR_0->curr_status.scsw;", "int VAR_1;", "int VAR_2;", "bool suspend_allowed;", "VAR_1 = 0x80;", "if (!(s->ctrl & SCSW_ACTL_SUSP)) {", "ORB *orb = &VAR_0->orb;", "s->cstat = 0;", "s->dstat = 0;", "p->i...
[ 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, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
4,018
static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int nb_samples = insamples->audio->nb_samples; AVFilterBufferRef *outpicref = showwaves->o...
true
FFmpeg
7afd42d9f26be1e95f15cbcfa0e09308a6591036
static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int nb_samples = insamples->audio->nb_samples; AVFilterBufferRef *outpicref = showwaves->o...
{ "code": [ " outlink->out_buf = outpicref;" ], "line_no": [ 53 ] }
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterContext *ctx = VAR_0->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int VAR_2 = VAR_1->audio->VAR_2; AVFilterBufferRef *outpicref = showwaves->outpicref; int VAR_3 = o...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "AVFilterLink *outlink = ctx->outputs[0];", "ShowWavesContext *showwaves = ctx->priv;", "const int VAR_2 = VAR_1->audio->VAR_2;", "AVFilterBufferRef *outpicref = showwaves->outpicref;", "int VAR_...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45, 47, 49 ...
4,019
int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options) { int ret = 0; AVDictionary *tmp = NULL; if (avcodec_is_open(avctx)) return 0; if ((!codec && !avctx->codec)) { av_log(avctx, AV_LOG_ERROR, "No codec provided to avcodec_open2().\n"...
true
FFmpeg
e62ff72fc1052273deb708ba715f73e5187281d4
int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options) { int ret = 0; AVDictionary *tmp = NULL; if (avcodec_is_open(avctx)) return 0; if ((!codec && !avctx->codec)) { av_log(avctx, AV_LOG_ERROR, "No codec provided to avcodec_open2().\n"...
{ "code": [], "line_no": [] }
int VAR_0 avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options) { int ret = 0; AVDictionary *tmp = NULL; if (avcodec_is_open(avctx)) return 0; if ((!codec && !avctx->codec)) { av_log(avctx, AV_LOG_ERROR, "No codec provided to avcodec_open2().\n"); ret...
[ "int VAR_0 avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options)\n{", "int ret = 0;", "AVDictionary *tmp = NULL;", "if (avcodec_is_open(avctx))\nreturn 0;", "if ((!codec && !avctx->codec)) {", "av_log(avctx, AV_LOG_ERROR, \"No codec provided to avcodec_open2().\\n\");", "ret...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 22 ], [ 23, 24 ], [ 25 ],...
4,020
DECLARE_LOOP_FILTER(mmxext) DECLARE_LOOP_FILTER(sse2) DECLARE_LOOP_FILTER(ssse3) DECLARE_LOOP_FILTER(sse4) #endif /* HAVE_YASM */ #define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \ c->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \ c->put_vp8_epel_pixels_tab[IDX][2][0] = ff_put...
false
FFmpeg
6f40e9f070f7a6ccf745561409ddbcc2be5e47e5
DECLARE_LOOP_FILTER(mmxext) DECLARE_LOOP_FILTER(sse2) DECLARE_LOOP_FILTER(ssse3) DECLARE_LOOP_FILTER(sse4) #endif #define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \ c->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \ c->put_vp8_epel_pixels_tab[IDX][2][0] = ff_put_vp8_epel ## SI...
{ "code": [], "line_no": [] }
DECLARE_LOOP_FILTER(mmxext) DECLARE_LOOP_FILTER(sse2) DECLARE_LOOP_FILTER(ssse3) DECLARE_LOOP_FILTER(sse4) #endif #define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \ c->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \ c->put_vp8_epel_pixels_tab[IDX][2][0] = ff_put_vp8_epel ## SI...
[ "DECLARE_LOOP_FILTER(mmxext)\nDECLARE_LOOP_FILTER(sse2)\nDECLARE_LOOP_FILTER(ssse3)\nDECLARE_LOOP_FILTER(sse4)\n#endif\n#define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \\\nc->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \\", "c->put_vp8_epel_pixels_tab[IDX][2][0] = ff_put_vp8_epel ## 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57, 63...
4,021
static av_always_inline int get_dst_color_err(PaletteUseContext *s, uint32_t c, int *er, int *eg, int *eb, const enum color_search_method search_method) { const uint8_t a = c >> 24 & 0xff; const uint8_t r = c >> 16 ...
false
FFmpeg
237ccd8a165d2128e8c6bcb14c8c6c3e793cfe05
static av_always_inline int get_dst_color_err(PaletteUseContext *s, uint32_t c, int *er, int *eg, int *eb, const enum color_search_method search_method) { const uint8_t a = c >> 24 & 0xff; const uint8_t r = c >> 16 ...
{ "code": [], "line_no": [] }
static av_always_inline int FUNC_0(PaletteUseContext *s, uint32_t c, int *er, int *eg, int *eb, const enum color_search_method search_method) { const uint8_t VAR_0 = c >> 24 & 0xff; const uint8_t VAR_1 = c >> 16 & 0...
[ "static av_always_inline int FUNC_0(PaletteUseContext *s,\nuint32_t c, int *er, int *eg, int *eb,\nconst enum color_search_method search_method)\n{", "const uint8_t VAR_0 = c >> 24 & 0xff;", "const uint8_t VAR_1 = c >> 16 & 0xff;", "const uint8_t VAR_2 = c >> 8 & 0xff;", "const uint8_t VAR_3 = c & 0x...
[ 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 ] ]
4,022
static inline void put_symbol_inline(RangeCoder *c, uint8_t *state, int v, int is_signed){ int i; if(v){ const int a= FFABS(v); const int e= av_log2(a); put_rac(c, state+0, 0); assert(e<=9); for(i=0; i<e; i++){ put_rac(c, state+1+i, 1); //1..10 ...
false
FFmpeg
68f8d33becbd73b4d0aa277f472a6e8e72ea6849
static inline void put_symbol_inline(RangeCoder *c, uint8_t *state, int v, int is_signed){ int i; if(v){ const int a= FFABS(v); const int e= av_log2(a); put_rac(c, state+0, 0); assert(e<=9); for(i=0; i<e; i++){ put_rac(c, state+1+i, 1); ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(RangeCoder *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3){ int VAR_4; if(VAR_2){ const int VAR_5= FFABS(VAR_2); const int VAR_6= av_log2(VAR_5); put_rac(VAR_0, VAR_1+0, 0); assert(VAR_6<=9); for(VAR_4=0; VAR_4<VAR_6; VAR_4++){ ...
[ "static inline void FUNC_0(RangeCoder *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3){", "int VAR_4;", "if(VAR_2){", "const int VAR_5= FFABS(VAR_2);", "const int VAR_6= av_log2(VAR_5);", "put_rac(VAR_0, VAR_1+0, 0);", "assert(VAR_6<=9);", "for(VAR_4=0; VAR_4<VAR_6; VAR_4++){", "put_rac(VAR_0, VAR_1+1+...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
4,023
static void rgb24_to_rgb555(AVPicture *dst, AVPicture *src, int width, int height) { const unsigned char *p; unsigned char *q; int r, g, b, dst_wrap, src_wrap; int x, y; p = src->data[0]; src_wrap = src->linesize[0] - 3 * width; q = dst->data[0]; ...
false
FFmpeg
7e7e59409294af9caa63808e56c5cc824c98b4fc
static void rgb24_to_rgb555(AVPicture *dst, AVPicture *src, int width, int height) { const unsigned char *p; unsigned char *q; int r, g, b, dst_wrap, src_wrap; int x, y; p = src->data[0]; src_wrap = src->linesize[0] - 3 * width; q = dst->data[0]; ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVPicture *VAR_0, AVPicture *VAR_1, int VAR_2, int VAR_3) { const unsigned char *VAR_4; unsigned char *VAR_5; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; int VAR_11, VAR_12; VAR_4 = VAR_1->data[0]; VAR_10 = VAR_1->linesize[0] - 3 * VAR_2; ...
[ "static void FUNC_0(AVPicture *VAR_0, AVPicture *VAR_1,\nint VAR_2, int VAR_3)\n{", "const unsigned char *VAR_4;", "unsigned char *VAR_5;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "int VAR_11, VAR_12;", "VAR_4 = VAR_1->data[0];", "VAR_10 = VAR_1->linesize[0] - 3 * VAR_2;", "VAR_5 = VAR_0->data[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 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
4,024
static void avc_wgt_8width_msa(uint8_t *data, int32_t stride, int32_t height, int32_t log2_denom, int32_t src_weight, int32_t offset_in) { uint8_t cnt; ...
false
FFmpeg
bcd7bf7eeb09a395cc01698842d1b8be9af483fc
static void avc_wgt_8width_msa(uint8_t *data, int32_t stride, int32_t height, int32_t log2_denom, int32_t src_weight, int32_t offset_in) { uint8_t cnt; ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int32_t VAR_1, int32_t VAR_2, int32_t VAR_3, int32_t VAR_4, int32_t VAR_5) { uint8_t cnt; v16u8 zero = { 0 }; ...
[ "static void FUNC_0(uint8_t *VAR_0,\nint32_t VAR_1,\nint32_t VAR_2,\nint32_t VAR_3,\nint32_t VAR_4,\nint32_t VAR_5)\n{", "uint8_t cnt;", "v16u8 zero = { 0 };", "v16u8 src0, src1, src2, src3;", "v8u16 src0_r, src1_r, src2_r, src3_r;", "v8u16 temp0, temp1, temp2, temp3;", "v8u16 wgt, denom, offset;", "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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55, 57 ...
4,027
static void opt_frame_pad_left(const char *arg) { frame_padleft = atoi(arg); if (frame_padleft < 0) { fprintf(stderr, "Incorrect left pad size\n"); av_exit(1); } }
false
FFmpeg
0c22311b56e66115675c4a96e4c78547886a4171
static void opt_frame_pad_left(const char *arg) { frame_padleft = atoi(arg); if (frame_padleft < 0) { fprintf(stderr, "Incorrect left pad size\n"); av_exit(1); } }
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { frame_padleft = atoi(VAR_0); if (frame_padleft < 0) { fprintf(stderr, "Incorrect left pad size\n"); av_exit(1); } }
[ "static void FUNC_0(const char *VAR_0)\n{", "frame_padleft = atoi(VAR_0);", "if (frame_padleft < 0) {", "fprintf(stderr, \"Incorrect left pad size\\n\");", "av_exit(1);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
4,028
ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size = 8; /* "CORE" or "QEMU" rounded */ size_t elf_note_size = 0; int note_head_size; const NoteFuncDesc *nf; assert(class == ELFCLASS64); assert(machine == EM_S390); note_head_size = sizeof(Elf64_Nhdr); ...
true
qemu
5f706fdc164b20b48254eadf7bd413edace34499
ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size = 8; size_t elf_note_size = 0; int note_head_size; const NoteFuncDesc *nf; assert(class == ELFCLASS64); assert(machine == EM_S390); note_head_size = sizeof(Elf64_Nhdr); for (nf = note_func; nf-...
{ "code": [ " for (nf = note_func; nf->note_contents_func; nf++) {", " for (nf = note_func; nf->note_contents_func; nf++) {" ], "line_no": [ 25, 25 ] }
ssize_t FUNC_0(int class, int machine, int nr_cpus) { int VAR_0 = 8; size_t elf_note_size = 0; int VAR_1; const NoteFuncDesc *VAR_2; assert(class == ELFCLASS64); assert(machine == EM_S390); VAR_1 = sizeof(Elf64_Nhdr); for (VAR_2 = note_func; VAR_2->note_contents_func; VAR...
[ "ssize_t FUNC_0(int class, int machine, int nr_cpus)\n{", "int VAR_0 = 8;", "size_t elf_note_size = 0;", "int VAR_1;", "const NoteFuncDesc *VAR_2;", "assert(class == ELFCLASS64);", "assert(machine == EM_S390);", "VAR_1 = sizeof(Elf64_Nhdr);", "for (VAR_2 = note_func; VAR_2->note_contents_func; VAR_2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ] ]
4,031
static void add_query_tests(QmpSchema *schema) { SchemaInfoList *tail; SchemaInfo *si, *arg_type, *ret_type; const char *test_name; /* Test the query-like commands */ for (tail = schema->list; tail; tail = tail->next) { si = tail->value; if (si->meta_type != SCHEMA_META_TYP...
true
qemu
e313d5cec564a9b708bad1bb44c291530a5a4935
static void add_query_tests(QmpSchema *schema) { SchemaInfoList *tail; SchemaInfo *si, *arg_type, *ret_type; const char *test_name; for (tail = schema->list; tail; tail = tail->next) { si = tail->value; if (si->meta_type != SCHEMA_META_TYPE_COMMAND) { continue...
{ "code": [ " const char *test_name;" ], "line_no": [ 9 ] }
static void FUNC_0(QmpSchema *VAR_0) { SchemaInfoList *tail; SchemaInfo *si, *arg_type, *ret_type; const char *VAR_1; for (tail = VAR_0->list; tail; tail = tail->next) { si = tail->value; if (si->meta_type != SCHEMA_META_TYPE_COMMAND) { continue; } ...
[ "static void FUNC_0(QmpSchema *VAR_0)\n{", "SchemaInfoList *tail;", "SchemaInfo *si, *arg_type, *ret_type;", "const char *VAR_1;", "for (tail = VAR_0->list; tail; tail = tail->next) {", "si = tail->value;", "if (si->meta_type != SCHEMA_META_TYPE_COMMAND) {", "continue;", "}", "if (query_is_blackli...
[ 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 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51 ], [...
4,032
static void cpu_handle_guest_debug(CPUState *env) { gdb_set_stop_cpu(env); qemu_system_debug_request(); #ifdef CONFIG_IOTHREAD env->stopped = 1; #endif }
true
qemu
12d4536f7d911b6d87a766ad7300482ea663cea2
static void cpu_handle_guest_debug(CPUState *env) { gdb_set_stop_cpu(env); qemu_system_debug_request(); #ifdef CONFIG_IOTHREAD env->stopped = 1; #endif }
{ "code": [ "#ifdef CONFIG_IOTHREAD", "#endif", "#ifdef CONFIG_IOTHREAD", "#endif", "#endif", "#ifdef CONFIG_IOTHREAD", "#endif", "#ifdef CONFIG_IOTHREAD", "#endif", "#ifdef CONFIG_IOTHREAD", "#endif", "#endif", "#endif", "#endif", "#ifdef CONFIG_IOTHREAD", ...
static void FUNC_0(CPUState *VAR_0) { gdb_set_stop_cpu(VAR_0); qemu_system_debug_request(); #ifdef CONFIG_IOTHREAD VAR_0->stopped = 1; #endif }
[ "static void FUNC_0(CPUState *VAR_0)\n{", "gdb_set_stop_cpu(VAR_0);", "qemu_system_debug_request();", "#ifdef CONFIG_IOTHREAD\nVAR_0->stopped = 1;", "#endif\n}" ]
[ 0, 0, 0, 1, 1 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ] ]
4,033
vmxnet3_io_bar1_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { VMXNET3State *s = opaque; switch (addr) { /* Vmxnet3 Revision Report Selection */ case VMXNET3_REG_VRRS: VMW_CBPRN("Write BAR1 [VMXNET3_REG...
true
qemu
aa4a3dce1c88ed51b616806b8214b7c8428b7470
vmxnet3_io_bar1_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { VMXNET3State *s = opaque; switch (addr) { case VMXNET3_REG_VRRS: VMW_CBPRN("Write BAR1 [VMXNET3_REG_VRRS] = %" PRIx64 ", size %d", ...
{ "code": [ " s->device_active = false;" ], "line_no": [ 61 ] }
FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { VMXNET3State *s = VAR_0; switch (VAR_1) { case VMXNET3_REG_VRRS: VMW_CBPRN("Write BAR1 [VMXNET3_REG_VRRS] = %" PRIx64 ", VAR_3 %d", ...
[ "FUNC_0(void *VAR_0,\nhwaddr VAR_1,\nuint64_t VAR_2,\nunsigned VAR_3)\n{", "VMXNET3State *s = VAR_0;", "switch (VAR_1) {", "case VMXNET3_REG_VRRS:\nVMW_CBPRN(\"Write BAR1 [VMXNET3_REG_VRRS] = %\" PRIx64 \", VAR_3 %d\",\nVAR_2, VAR_3);", "break;", "case VMXNET3_REG_UVRS:\nVMW_CBPRN(\"Write BAR1 [VMXNET3_RE...
[ 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, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 19, 21, 23 ], [ 25 ], [ 31, 33, 35 ], [ 37 ], [ 43, 45, 47 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [ 69 ], [ 75, 77,...
4,035
static int64_t alloc_block(BlockDriverState* bs, int64_t offset) { BDRVVPCState *s = bs->opaque; int64_t bat_offset; uint32_t index, bat_value; int ret; uint8_t bitmap[s->bitmap_size]; /* Check if sector_num is valid */ if ((offset < 0) || (offset > bs->total_sectors * BDRV_SECTOR_...
true
qemu
cfc87e00c22ab4ea0262c9771c803ed03d754001
static int64_t alloc_block(BlockDriverState* bs, int64_t offset) { BDRVVPCState *s = bs->opaque; int64_t bat_offset; uint32_t index, bat_value; int ret; uint8_t bitmap[s->bitmap_size]; if ((offset < 0) || (offset > bs->total_sectors * BDRV_SECTOR_SIZE)) { return -EINVAL; ...
{ "code": [ " return get_image_offset(bs, offset, false);" ], "line_no": [ 79 ] }
static int64_t FUNC_0(BlockDriverState* bs, int64_t offset) { BDRVVPCState *s = bs->opaque; int64_t bat_offset; uint32_t index, bat_value; int VAR_0; uint8_t bitmap[s->bitmap_size]; if ((offset < 0) || (offset > bs->total_sectors * BDRV_SECTOR_SIZE)) { return -EINVAL; ...
[ "static int64_t FUNC_0(BlockDriverState* bs, int64_t offset)\n{", "BDRVVPCState *s = bs->opaque;", "int64_t bat_offset;", "uint32_t index, bat_value;", "int VAR_0;", "uint8_t bitmap[s->bitmap_size];", "if ((offset < 0) || (offset > bs->total_sectors * BDRV_SECTOR_SIZE)) {", "return -EINVAL;", "}", ...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ], [...
4,036
static inline void RENAME(rgb32tobgr16)(const uint8_t *src, uint8_t *dst, unsigned int src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*src):"memor...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
static inline void RENAME(rgb32tobgr16)(const uint8_t *src, uint8_t *dst, unsigned int src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*src):"memor...
{ "code": [ "static inline void RENAME(rgb32tobgr16)(const uint8_t *src, uint8_t *dst, unsigned int src_size)" ], "line_no": [ 1 ] }
static inline void FUNC_0(rgb32tobgr16)(const uint8_t *VAR_2, uint8_t *dst, unsigned int src_size) { const uint8_t *VAR_0 = VAR_2; const uint8_t *VAR_1; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::...
[ "static inline void FUNC_0(rgb32tobgr16)(const uint8_t *VAR_2, uint8_t *dst, unsigned int src_size)\n{", "const uint8_t *VAR_0 = VAR_2;", "const uint8_t *VAR_1;", "#ifdef HAVE_MMX\nconst uint8_t *mm_end;", "#endif\nuint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "#ifdef HAVE_MMX\n__asm __v...
[ 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 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33, 35 ], [ 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59,...
4,037
int ff_h264_decode_mb_cavlc(const H264Context *h, H264SliceContext *sl) { int mb_xy; int partition_count; unsigned int mb_type, cbp; int dct8x8_allowed= h->ps.pps->transform_8x8_mode; int decode_chroma = h->ps.sps->chroma_format_idc == 1 || h->ps.sps->chroma_format_idc == 2; const int pix...
true
FFmpeg
fc8cff96ed45dfdb91ed03e9942845f28be0e770
int ff_h264_decode_mb_cavlc(const H264Context *h, H264SliceContext *sl) { int mb_xy; int partition_count; unsigned int mb_type, cbp; int dct8x8_allowed= h->ps.pps->transform_8x8_mode; int decode_chroma = h->ps.sps->chroma_format_idc == 1 || h->ps.sps->chroma_format_idc == 2; const int pix...
{ "code": [ " sl->qscale += dquant;" ], "line_no": [ 827 ] }
int FUNC_0(const H264Context *VAR_0, H264SliceContext *VAR_1) { int VAR_2; int VAR_3; unsigned int VAR_4, VAR_5; int VAR_6= VAR_0->ps.pps->transform_8x8_mode; int VAR_7 = VAR_0->ps.sps->chroma_format_idc == 1 || VAR_0->ps.sps->chroma_format_idc == 2; const int VAR_8 = VAR_0->VAR_8; ...
[ "int FUNC_0(const H264Context *VAR_0, H264SliceContext *VAR_1)\n{", "int VAR_2;", "int VAR_3;", "unsigned int VAR_4, VAR_5;", "int VAR_6= VAR_0->ps.pps->transform_8x8_mode;", "int VAR_7 = VAR_0->ps.sps->chroma_format_idc == 1 || VAR_0->ps.sps->chroma_format_idc == 2;", "const int VAR_8 = VAR_0->VAR_8;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
4,038
static void client_close(NBDClient *client) { if (client->closing) { return; } client->closing = true; /* Force requests to finish. They will drop their own references, * then we'll close the socket and free the NBDClient. */ qio_channel_shutdown(client->ioc, QIO_CHAN...
true
qemu
0c9390d978cbf61e8f16c9f580fa96b305c43568
static void client_close(NBDClient *client) { if (client->closing) { return; } client->closing = true; qio_channel_shutdown(client->ioc, QIO_CHANNEL_SHUTDOWN_BOTH, NULL); if (client->close) { client->close(client); } }
{ "code": [ "static void client_close(NBDClient *client)", " if (client->close) {", " client->close(client);" ], "line_no": [ 1, 31, 33 ] }
static void FUNC_0(NBDClient *VAR_0) { if (VAR_0->closing) { return; } VAR_0->closing = true; qio_channel_shutdown(VAR_0->ioc, QIO_CHANNEL_SHUTDOWN_BOTH, NULL); if (VAR_0->close) { VAR_0->close(VAR_0); } }
[ "static void FUNC_0(NBDClient *VAR_0)\n{", "if (VAR_0->closing) {", "return;", "}", "VAR_0->closing = true;", "qio_channel_shutdown(VAR_0->ioc, QIO_CHANNEL_SHUTDOWN_BOTH,\nNULL);", "if (VAR_0->close) {", "VAR_0->close(VAR_0);", "}", "}" ]
[ 1, 0, 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 23, 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
4,039
static int init_tile(Jpeg2000DecoderContext *s, int tileno) { int compno; int tilex = tileno % s->numXtiles; int tiley = tileno / s->numXtiles; Jpeg2000Tile *tile = s->tile + tileno; if (!tile->comp) return AVERROR(ENOMEM); tile->coord[0][0] = FFMAX(tilex * s->tile_widt...
false
FFmpeg
43492ff3ab68a343c1264801baa1d5a02de10167
static int init_tile(Jpeg2000DecoderContext *s, int tileno) { int compno; int tilex = tileno % s->numXtiles; int tiley = tileno / s->numXtiles; Jpeg2000Tile *tile = s->tile + tileno; if (!tile->comp) return AVERROR(ENOMEM); tile->coord[0][0] = FFMAX(tilex * s->tile_widt...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1) { int VAR_2; int VAR_3 = VAR_1 % VAR_0->numXtiles; int VAR_4 = VAR_1 / VAR_0->numXtiles; Jpeg2000Tile *tile = VAR_0->tile + VAR_1; if (!tile->comp) return AVERROR(ENOMEM); tile->coord[0][0] = FFMAX(VAR_3 * VAR_...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1)\n{", "int VAR_2;", "int VAR_3 = VAR_1 % VAR_0->numXtiles;", "int VAR_4 = VAR_1 / VAR_0->numXtiles;", "Jpeg2000Tile *tile = VAR_0->tile + VAR_1;", "if (!tile->comp)\nreturn AVERROR(ENOMEM);", "tile->coord[0][0] = FFMAX(VAR_3 * VAR_0->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, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
4,040
void ff_avg_h264_qpel8_mc11_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_8x8_msa(src - 2, src - (stride * 2), stride, dst, stride); }
false
FFmpeg
1181d93231e9b807965724587d363c1cfd5a1d0d
void ff_avg_h264_qpel8_mc11_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_8x8_msa(src - 2, src - (stride * 2), stride, dst, stride); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_hv_qrt_and_aver_dst_8x8_msa(VAR_1 - 2, VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_hv_qrt_and_aver_dst_8x8_msa(VAR_1 - 2,\nVAR_1 - (VAR_2 * 2),\nVAR_2, VAR_0, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11 ], [ 13 ] ]
4,042
int ff_h264_decode_picture_parameter_set(GetBitContext *gb, AVCodecContext *avctx, H264ParamSets *ps, int bit_length) { AVBufferRef *pps_buf; const SPS *sps; unsigned int pps_id = get_ue_golomb(gb); PPS *pps; int qp_bd_offset; int bits_left; ...
true
FFmpeg
9568b2e425f127031ddc91dd78cb9b9f2cae206d
int ff_h264_decode_picture_parameter_set(GetBitContext *gb, AVCodecContext *avctx, H264ParamSets *ps, int bit_length) { AVBufferRef *pps_buf; const SPS *sps; unsigned int pps_id = get_ue_golomb(gb); PPS *pps; int qp_bd_offset; int bits_left; ...
{ "code": [], "line_no": [] }
int FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1, H264ParamSets *VAR_2, int VAR_3) { AVBufferRef *pps_buf; const SPS *VAR_4; unsigned int VAR_5 = get_ue_golomb(VAR_0); PPS *pps; int VAR_6; int VAR_7; int VAR_8; if (VAR_5 >= MAX_P...
[ "int FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1,\nH264ParamSets *VAR_2, int VAR_3)\n{", "AVBufferRef *pps_buf;", "const SPS *VAR_4;", "unsigned int VAR_5 = get_ue_golomb(VAR_0);", "PPS *pps;", "int VAR_6;", "int VAR_7;", "int VAR_8;", "if (VAR_5 >= MAX_PPS_COUNT) {", "av_log(VAR_1, AV_LOG_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 32 ], [ 34, 36 ], [ 38 ], [ 42 ], [ 44 ], [ 46, 48, 50 ], [ 52 ...
4,043
static int vmdk_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { BDRVVmdkState *s = bs->opaque; int index_in_cluster, n, ret; uint64_t cluster_offset; while (nb_sectors > 0) { cluster_offset = get_cluster_offset(bs, sector_num << 9, 0);...
true
qemu
630530a6529bc3da9ab8aead7053dc753cb9ac77
static int vmdk_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { BDRVVmdkState *s = bs->opaque; int index_in_cluster, n, ret; uint64_t cluster_offset; while (nb_sectors > 0) { cluster_offset = get_cluster_offset(bs, sector_num << 9, 0);...
{ "code": [ " cluster_offset = get_cluster_offset(bs, sector_num << 9, 0);" ], "line_no": [ 17 ] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, uint8_t *VAR_2, int VAR_3) { BDRVVmdkState *s = VAR_0->opaque; int VAR_4, VAR_5, VAR_6; uint64_t cluster_offset; while (VAR_3 > 0) { cluster_offset = get_cluster_offset(VAR_0, VAR_1 << 9, 0); VAR_4 =...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nuint8_t *VAR_2, int VAR_3)\n{", "BDRVVmdkState *s = VAR_0->opaque;", "int VAR_4, VAR_5, VAR_6;", "uint64_t cluster_offset;", "while (VAR_3 > 0) {", "cluster_offset = get_cluster_offset(VAR_0, VAR_1 << 9, 0);", "VAR_4 = VAR_1 % s->cluster_sector...
[ 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 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
4,044
int32_t ff_mlp_pack_output(int32_t lossless_check_data, uint16_t blockpos, int32_t (*sample_buffer)[MAX_CHANNELS], void *data, uint8_t *ch_assign, int8_t *output_shift, ...
true
FFmpeg
74dc728a2c2cc353da20cdc09b8cdfbbe14b7be8
int32_t ff_mlp_pack_output(int32_t lossless_check_data, uint16_t blockpos, int32_t (*sample_buffer)[MAX_CHANNELS], void *data, uint8_t *ch_assign, int8_t *output_shift, ...
{ "code": [ " int32_t sample = sample_buffer[i][mat_ch]", " << output_shift[mat_ch];" ], "line_no": [ 33, 35 ] }
int32_t FUNC_0(int32_t lossless_check_data, uint16_t blockpos, int32_t (*sample_buffer)[MAX_CHANNELS], void *data, uint8_t *ch_assign, int8_t *output_shift, ...
[ "int32_t FUNC_0(int32_t lossless_check_data,\nuint16_t blockpos,\nint32_t (*sample_buffer)[MAX_CHANNELS],\nvoid *data,\nuint8_t *ch_assign,\nint8_t *output_shift,\nuint8_t max_matrix_channel,\nint is32)\n{", "unsigned int VAR_0, VAR_1 = 0;", "int32_t *data_32 = data;", "int16_t *data_16 = data;", "for (VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...