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
23,231
static void test_visitor_in_wrong_type(TestInputVisitorData *data, const void *unused) { TestStruct *p = NULL; Visitor *v; strList *q = NULL; int64_t i; Error *err = NULL; /* Make sure arrays and structs cannot be confused */ v = visitor_in...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_visitor_in_wrong_type(TestInputVisitorData *data, const void *unused) { TestStruct *p = NULL; Visitor *v; strList *q = NULL; int64_t i; Error *err = NULL; v = visitor_input_test_init(data, "[]"); visit_type_TestStruct...
{ "code": [], "line_no": [] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { TestStruct *p = NULL; Visitor *v; strList *q = NULL; int64_t i; Error *err = NULL; v = visitor_input_test_init(VAR_0, "[]"); visit_type_TestStruct(v, NULL, &p, &err)...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "TestStruct *p = NULL;", "Visitor *v;", "strList *q = NULL;", "int64_t i;", "Error *err = NULL;", "v = visitor_input_test_init(VAR_0, \"[]\");", "visit_type_TestStruct(v, NULL, &p, &err);", "error_free_or_abort(&err);", "g_a...
[ 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [...
23,232
static int buffered_close(void *opaque) { MigrationState *s = opaque; DPRINTF("closing\n"); s->xfer_limit = INT_MAX; while (!qemu_file_get_error(s->file) && s->buffer_size) { buffered_flush(s); } return migrate_fd_close(s); }
false
qemu
a3fa1d78cbae2259491b17689812edcb643a3b30
static int buffered_close(void *opaque) { MigrationState *s = opaque; DPRINTF("closing\n"); s->xfer_limit = INT_MAX; while (!qemu_file_get_error(s->file) && s->buffer_size) { buffered_flush(s); } return migrate_fd_close(s); }
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0) { MigrationState *s = VAR_0; DPRINTF("closing\n"); s->xfer_limit = INT_MAX; while (!qemu_file_get_error(s->file) && s->buffer_size) { buffered_flush(s); } return migrate_fd_close(s); }
[ "static int FUNC_0(void *VAR_0)\n{", "MigrationState *s = VAR_0;", "DPRINTF(\"closing\\n\");", "s->xfer_limit = INT_MAX;", "while (!qemu_file_get_error(s->file) && s->buffer_size) {", "buffered_flush(s);", "}", "return migrate_fd_close(s);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
23,233
static int blk_mig_save_bulked_block(Monitor *mon, QEMUFile *f) { int64_t completed_sector_sum = 0; BlkMigDevState *bmds; int progress; int ret = 0; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { if (bmds->bulk_completed == 0) { if (mig_save_device_bulk(mon...
false
qemu
539de1246d355d3b8aa33fb7cde732352d8827c7
static int blk_mig_save_bulked_block(Monitor *mon, QEMUFile *f) { int64_t completed_sector_sum = 0; BlkMigDevState *bmds; int progress; int ret = 0; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { if (bmds->bulk_completed == 0) { if (mig_save_device_bulk(mon...
{ "code": [], "line_no": [] }
static int FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1) { int64_t completed_sector_sum = 0; BlkMigDevState *bmds; int VAR_2; int VAR_3 = 0; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { if (bmds->bulk_completed == 0) { if (mig_save_device_bulk(VAR_0, VAR_1, bmd...
[ "static int FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1)\n{", "int64_t completed_sector_sum = 0;", "BlkMigDevState *bmds;", "int VAR_2;", "int VAR_3 = 0;", "QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {", "if (bmds->bulk_completed == 0) {", "if (mig_save_device_bulk(VAR_0, VAR_1, bmds) == 1) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [...
23,234
static void vfio_msi_enable(VFIOPCIDevice *vdev) { int ret, i; vfio_disable_interrupts(vdev); vdev->nr_vectors = msi_nr_vectors_allocated(&vdev->pdev); retry: vdev->msi_vectors = g_malloc0(vdev->nr_vectors * sizeof(VFIOMSIVector)); for (i = 0; i < vdev->nr_vectors; i++) { VFIOM...
false
qemu
46746dbaa8c2c421b9bda78193caad57d7fb1136
static void vfio_msi_enable(VFIOPCIDevice *vdev) { int ret, i; vfio_disable_interrupts(vdev); vdev->nr_vectors = msi_nr_vectors_allocated(&vdev->pdev); retry: vdev->msi_vectors = g_malloc0(vdev->nr_vectors * sizeof(VFIOMSIVector)); for (i = 0; i < vdev->nr_vectors; i++) { VFIOM...
{ "code": [], "line_no": [] }
static void FUNC_0(VFIOPCIDevice *VAR_0) { int VAR_1, VAR_2; vfio_disable_interrupts(VAR_0); VAR_0->nr_vectors = msi_nr_vectors_allocated(&VAR_0->pdev); retry: VAR_0->msi_vectors = g_malloc0(VAR_0->nr_vectors * sizeof(VFIOMSIVector)); for (VAR_2 = 0; VAR_2 < VAR_0->nr_vectors; VAR_2++) ...
[ "static void FUNC_0(VFIOPCIDevice *VAR_0)\n{", "int VAR_1, VAR_2;", "vfio_disable_interrupts(VAR_0);", "VAR_0->nr_vectors = msi_nr_vectors_allocated(&VAR_0->pdev);", "retry:\nVAR_0->msi_vectors = g_malloc0(VAR_0->nr_vectors * sizeof(VFIOMSIVector));", "for (VAR_2 = 0; VAR_2 < VAR_0->nr_vectors; VAR_2++) {...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 59 ], [ 61 ], [ 67 ], [ 71...
23,235
build_madt(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info) { int madt_start = table_data->len; const MemMapEntry *memmap = guest_info->memmap; const int *irqmap = guest_info->irqmap; AcpiMultipleApicTable *madt; AcpiMadtGenericDistributor *gicd; AcpiMadtGenericMsiFrame *gic...
false
qemu
0e9b9edae7bebfd31fdbead4ccbbce03876a7edd
build_madt(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info) { int madt_start = table_data->len; const MemMapEntry *memmap = guest_info->memmap; const int *irqmap = guest_info->irqmap; AcpiMultipleApicTable *madt; AcpiMadtGenericDistributor *gicd; AcpiMadtGenericMsiFrame *gic...
{ "code": [], "line_no": [] }
FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2) { int VAR_3 = VAR_0->len; const MemMapEntry *VAR_4 = VAR_2->VAR_4; const int *VAR_5 = VAR_2->VAR_5; AcpiMultipleApicTable *madt; AcpiMadtGenericDistributor *gicd; AcpiMadtGenericMsiFrame *gic_msi; int VAR_6; madt = acp...
[ "FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2)\n{", "int VAR_3 = VAR_0->len;", "const MemMapEntry *VAR_4 = VAR_2->VAR_4;", "const int *VAR_5 = VAR_2->VAR_5;", "AcpiMultipleApicTable *madt;", "AcpiMadtGenericDistributor *gicd;", "AcpiMadtGenericMsiFrame *gic_msi;", "int VAR_6;", "madt = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
23,236
void stl_phys_notdirty(target_phys_addr_t addr, uint32_t val) { uint8_t *ptr; MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS); if (!memory_region_is_ram(section->mr) || section->readonly) { addr = memory_region_section_add...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void stl_phys_notdirty(target_phys_addr_t addr, uint32_t val) { uint8_t *ptr; MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS); if (!memory_region_is_ram(section->mr) || section->readonly) { addr = memory_region_section_add...
{ "code": [], "line_no": [] }
void FUNC_0(target_phys_addr_t VAR_0, uint32_t VAR_1) { uint8_t *ptr; MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, VAR_0 >> TARGET_PAGE_BITS); if (!memory_region_is_ram(section->mr) || section->readonly) { VAR_0 = memory_region_section_addr(sect...
[ "void FUNC_0(target_phys_addr_t VAR_0, uint32_t VAR_1)\n{", "uint8_t *ptr;", "MemoryRegionSection *section;", "section = phys_page_find(address_space_memory.dispatch, VAR_0 >> TARGET_PAGE_BITS);", "if (!memory_region_is_ram(section->mr) || section->readonly) {", "VAR_0 = memory_region_section_addr(section...
[ 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 51, 53 ], ...
23,238
static void compare_pri_rs_finalize(SocketReadState *pri_rs) { CompareState *s = container_of(pri_rs, CompareState, pri_rs); if (packet_enqueue(s, PRIMARY_IN)) { trace_colo_compare_main("primary: unsupported packet in"); compare_chr_send(s, pri_rs->buf, ...
false
qemu
8ec14402029d783720f4312ed8a925548e1dad61
static void compare_pri_rs_finalize(SocketReadState *pri_rs) { CompareState *s = container_of(pri_rs, CompareState, pri_rs); if (packet_enqueue(s, PRIMARY_IN)) { trace_colo_compare_main("primary: unsupported packet in"); compare_chr_send(s, pri_rs->buf, ...
{ "code": [], "line_no": [] }
static void FUNC_0(SocketReadState *VAR_0) { CompareState *s = container_of(VAR_0, CompareState, VAR_0); if (packet_enqueue(s, PRIMARY_IN)) { trace_colo_compare_main("primary: unsupported packet in"); compare_chr_send(s, VAR_0->buf, VAR_...
[ "static void FUNC_0(SocketReadState *VAR_0)\n{", "CompareState *s = container_of(VAR_0, CompareState, VAR_0);", "if (packet_enqueue(s, PRIMARY_IN)) {", "trace_colo_compare_main(\"primary: unsupported packet in\");", "compare_chr_send(s,\nVAR_0->buf,\nVAR_0->packet_len,\nVAR_0->vnet_hdr_len);", "} else {",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15, 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ] ]
23,239
static int opt_default(const char *opt, const char *arg){ int type; const AVOption *o= NULL; int opt_types[]={AV_OPT_FLAG_VIDEO_PARAM, AV_OPT_FLAG_AUDIO_PARAM, 0, AV_OPT_FLAG_SUBTITLE_PARAM, 0}; for(type=0; type<CODEC_TYPE_NB; type++){ const AVOption *o2 = av_find_opt(avctx_opts[0], opt, ...
false
FFmpeg
3438d82d4b3bd987304975961e2a42e82767107d
static int opt_default(const char *opt, const char *arg){ int type; const AVOption *o= NULL; int opt_types[]={AV_OPT_FLAG_VIDEO_PARAM, AV_OPT_FLAG_AUDIO_PARAM, 0, AV_OPT_FLAG_SUBTITLE_PARAM, 0}; for(type=0; type<CODEC_TYPE_NB; type++){ const AVOption *o2 = av_find_opt(avctx_opts[0], opt, ...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, const char *VAR_1){ int VAR_2; const AVOption *VAR_3= NULL; int VAR_4[]={AV_OPT_FLAG_VIDEO_PARAM, AV_OPT_FLAG_AUDIO_PARAM, 0, AV_OPT_FLAG_SUBTITLE_PARAM, 0}; for(VAR_2=0; VAR_2<CODEC_TYPE_NB; VAR_2++){ const AVOption *o2 = av_find_opt(avctx_opts[0], VA...
[ "static int FUNC_0(const char *VAR_0, const char *VAR_1){", "int VAR_2;", "const AVOption *VAR_3= NULL;", "int VAR_4[]={AV_OPT_FLAG_VIDEO_PARAM, AV_OPT_FLAG_AUDIO_PARAM, 0, AV_OPT_FLAG_SUBTITLE_PARAM, 0};", "for(VAR_2=0; VAR_2<CODEC_TYPE_NB; VAR_2++){", "const AVOption *o2 = av_find_opt(avctx_opts[0], VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 57...
23,240
static void test_qemu_strtoul_overflow(void) { const char *str = "99999999999999999999999999999999999999999999"; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, -ERANGE); g_assert_cm...
false
qemu
bc7c08a2c375acb7ae4d433054415588b176d34c
static void test_qemu_strtoul_overflow(void) { const char *str = "99999999999999999999999999999999999999999999"; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, -ERANGE); g_assert_cm...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { const char *VAR_0 = "99999999999999999999999999999999999999999999"; char VAR_1 = 'X'; const char *VAR_2 = &VAR_1; unsigned long VAR_3 = 999; int VAR_4; VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 0, &VAR_3); g_assert_cmpint(VAR_4, ==, -ERANGE); g_assert_cm...
[ "static void FUNC_0(void)\n{", "const char *VAR_0 = \"99999999999999999999999999999999999999999999\";", "char VAR_1 = 'X';", "const char *VAR_2 = &VAR_1;", "unsigned long VAR_3 = 999;", "int VAR_4;", "VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 0, &VAR_3);", "g_assert_cmpint(VAR_4, ==, -ERANGE);", "g_assert...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
23,241
int qdev_prop_parse(DeviceState *dev, const char *name, const char *value) { Property *prop; int ret; prop = qdev_prop_find(dev, name); if (!prop) { fprintf(stderr, "property \"%s.%s\" not found\n", dev->info->name, name); return -1; } if (!prop->info-...
false
qemu
036f7166c73a9e0cc1b2f10c03763e61894a1033
int qdev_prop_parse(DeviceState *dev, const char *name, const char *value) { Property *prop; int ret; prop = qdev_prop_find(dev, name); if (!prop) { fprintf(stderr, "property \"%s.%s\" not found\n", dev->info->name, name); return -1; } if (!prop->info-...
{ "code": [], "line_no": [] }
int FUNC_0(DeviceState *VAR_0, const char *VAR_1, const char *VAR_2) { Property *prop; int VAR_3; prop = qdev_prop_find(VAR_0, VAR_1); if (!prop) { fprintf(stderr, "property \"%s.%s\" not found\n", VAR_0->info->VAR_1, VAR_1); return -1; } if (!prop->in...
[ "int FUNC_0(DeviceState *VAR_0, const char *VAR_1, const char *VAR_2)\n{", "Property *prop;", "int VAR_3;", "prop = qdev_prop_find(VAR_0, VAR_1);", "if (!prop) {", "fprintf(stderr, \"property \\\"%s.%s\\\" not found\\n\",\nVAR_0->info->VAR_1, VAR_1);", "return -1;", "}", "if (!prop->info->parse) {",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47...
23,242
uint32_t ldub_phys(target_phys_addr_t addr) { uint8_t val; cpu_physical_memory_read(addr, &val, 1); return val; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
uint32_t ldub_phys(target_phys_addr_t addr) { uint8_t val; cpu_physical_memory_read(addr, &val, 1); return val; }
{ "code": [], "line_no": [] }
uint32_t FUNC_0(target_phys_addr_t addr) { uint8_t val; cpu_physical_memory_read(addr, &val, 1); return val; }
[ "uint32_t FUNC_0(target_phys_addr_t addr)\n{", "uint8_t val;", "cpu_physical_memory_read(addr, &val, 1);", "return val;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
23,243
static int get_physical_address_data(CPUState *env, target_phys_addr_t *physical, int *prot, target_ulong address, int rw, int mmu_idx) { unsigned int i; uint64_t context; int is_user = (mmu_idx == MMU_USER_IDX || ...
false
qemu
b8e9fc0625c49404d63b4391f6dc5cf27be8b45b
static int get_physical_address_data(CPUState *env, target_phys_addr_t *physical, int *prot, target_ulong address, int rw, int mmu_idx) { unsigned int i; uint64_t context; int is_user = (mmu_idx == MMU_USER_IDX || ...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0, target_phys_addr_t *VAR_1, int *VAR_2, target_ulong VAR_3, int VAR_4, int VAR_5) { unsigned int VAR_6; uint64_t context; int VAR_7 = (VAR_5 == MMU_USER_IDX || VAR_5 == MMU...
[ "static int FUNC_0(CPUState *VAR_0,\ntarget_phys_addr_t *VAR_1, int *VAR_2,\ntarget_ulong VAR_3, int VAR_4, int VAR_5)\n{", "unsigned int VAR_6;", "uint64_t context;", "int VAR_7 = (VAR_5 == MMU_USER_IDX ||\nVAR_5 == MMU_USER_SECONDARY_IDX);", "if ((VAR_0->lsu & DMMU_E) == 0) {", "*VAR_1 = ultrasparc_trun...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 51, 53, 55 ], [...
23,246
static void vfio_pci_reset(DeviceState *dev) { PCIDevice *pdev = DO_UPCAST(PCIDevice, qdev, dev); VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev); if (!vdev->reset_works) { return; } if (ioctl(vdev->fd, VFIO_DEVICE_RESET)) { error_report("vfio: Error unable to reset ...
false
qemu
5834a83f4803de88949162346e6dfa2060d3fca6
static void vfio_pci_reset(DeviceState *dev) { PCIDevice *pdev = DO_UPCAST(PCIDevice, qdev, dev); VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev); if (!vdev->reset_works) { return; } if (ioctl(vdev->fd, VFIO_DEVICE_RESET)) { error_report("vfio: Error unable to reset ...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0) { PCIDevice *pdev = DO_UPCAST(PCIDevice, qdev, VAR_0); VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev); if (!vdev->reset_works) { return; } if (ioctl(vdev->fd, VFIO_DEVICE_RESET)) { error_report("vfio: Error unable to reset phys...
[ "static void FUNC_0(DeviceState *VAR_0)\n{", "PCIDevice *pdev = DO_UPCAST(PCIDevice, qdev, VAR_0);", "VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev);", "if (!vdev->reset_works) {", "return;", "}", "if (ioctl(vdev->fd, VFIO_DEVICE_RESET)) {", "error_report(\"vfio: Error unable to reset physical d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ] ]
23,248
void tcg_profile_snapshot(TCGProfile *prof, bool counters, bool table) { unsigned int i; for (i = 0; i < n_tcg_ctxs; i++) { const TCGProfile *orig = &tcg_ctxs[i]->prof; if (counters) { PROF_ADD(prof, orig, tb_count1); PROF_ADD(prof, orig, tb_count); ...
false
qemu
3468b59e18b179bc63c7ce934de912dfa9596122
void tcg_profile_snapshot(TCGProfile *prof, bool counters, bool table) { unsigned int i; for (i = 0; i < n_tcg_ctxs; i++) { const TCGProfile *orig = &tcg_ctxs[i]->prof; if (counters) { PROF_ADD(prof, orig, tb_count1); PROF_ADD(prof, orig, tb_count); ...
{ "code": [], "line_no": [] }
void FUNC_0(TCGProfile *VAR_0, bool VAR_1, bool VAR_2) { unsigned int VAR_3; for (VAR_3 = 0; VAR_3 < n_tcg_ctxs; VAR_3++) { const TCGProfile *orig = &tcg_ctxs[VAR_3]->VAR_0; if (VAR_1) { PROF_ADD(VAR_0, orig, tb_count1); PROF_ADD(VAR_0, orig, tb_count); ...
[ "void FUNC_0(TCGProfile *VAR_0, bool VAR_1, bool VAR_2)\n{", "unsigned int VAR_3;", "for (VAR_3 = 0; VAR_3 < n_tcg_ctxs; VAR_3++) {", "const TCGProfile *orig = &tcg_ctxs[VAR_3]->VAR_0;", "if (VAR_1) {", "PROF_ADD(VAR_0, orig, tb_count1);", "PROF_ADD(VAR_0, orig, tb_count);", "PROF_ADD(VAR_0, orig, op_...
[ 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
23,252
static int configure_output_video_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out) { char *pix_fmts; OutputStream *ost = ofilter->ost; OutputFile *of = output_files[ost->file_index]; AVFilterContext *last_filter = out->filter_ctx; int pad_idx = out->pad_idx; int ret; ...
false
FFmpeg
bd31c61cf94d01dbe1051cf65874e7b2c0ac5454
static int configure_output_video_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out) { char *pix_fmts; OutputStream *ost = ofilter->ost; OutputFile *of = output_files[ost->file_index]; AVFilterContext *last_filter = out->filter_ctx; int pad_idx = out->pad_idx; int ret; ...
{ "code": [], "line_no": [] }
static int FUNC_0(FilterGraph *VAR_0, OutputFilter *VAR_1, AVFilterInOut *VAR_2) { char *VAR_3; OutputStream *ost = VAR_1->ost; OutputFile *of = output_files[ost->file_index]; AVFilterContext *last_filter = VAR_2->filter_ctx; int VAR_4 = VAR_2->VAR_4; int VAR_5; char VAR_6[255]; ...
[ "static int FUNC_0(FilterGraph *VAR_0, OutputFilter *VAR_1, AVFilterInOut *VAR_2)\n{", "char *VAR_3;", "OutputStream *ost = VAR_1->ost;", "OutputFile *of = output_files[ost->file_index];", "AVFilterContext *last_filter = VAR_2->filter_ctx;", "int VAR_4 = VAR_2->VAR_4;", "int VAR_5;", "char VAR_6[25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45, 47 ], [ 49, 51 ], [ 53,...
23,253
static void vfio_exitfn(PCIDevice *pdev) { VFIOPCIDevice *vdev = DO_UPCAST(VFIOPCIDevice, pdev, pdev); VFIOGroup *group = vdev->vbasedev.group; vfio_unregister_err_notifier(vdev); pci_device_set_intx_routing_notifier(&vdev->pdev, NULL); vfio_disable_interrupts(vdev); if (vdev->intx.mmap...
true
qemu
77a10d04d033484a913a5ee76eed31a9acc57bae
static void vfio_exitfn(PCIDevice *pdev) { VFIOPCIDevice *vdev = DO_UPCAST(VFIOPCIDevice, pdev, pdev); VFIOGroup *group = vdev->vbasedev.group; vfio_unregister_err_notifier(vdev); pci_device_set_intx_routing_notifier(&vdev->pdev, NULL); vfio_disable_interrupts(vdev); if (vdev->intx.mmap...
{ "code": [ " VFIOGroup *group = vdev->vbasedev.group;", " g_free(vdev->emulated_config_bits);", " g_free(vdev->rom);", " vfio_put_device(vdev);", " vfio_put_group(group);" ], "line_no": [ 7, 27, 29, 31, 33 ] }
static void FUNC_0(PCIDevice *VAR_0) { VFIOPCIDevice *vdev = DO_UPCAST(VFIOPCIDevice, VAR_0, VAR_0); VFIOGroup *group = vdev->vbasedev.group; vfio_unregister_err_notifier(vdev); pci_device_set_intx_routing_notifier(&vdev->VAR_0, NULL); vfio_disable_interrupts(vdev); if (vdev->intx.mmap_...
[ "static void FUNC_0(PCIDevice *VAR_0)\n{", "VFIOPCIDevice *vdev = DO_UPCAST(VFIOPCIDevice, VAR_0, VAR_0);", "VFIOGroup *group = vdev->vbasedev.group;", "vfio_unregister_err_notifier(vdev);", "pci_device_set_intx_routing_notifier(&vdev->VAR_0, NULL);", "vfio_disable_interrupts(vdev);", "if (vdev->intx.mm...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
23,254
static void FUNCC(pred4x4_left_dc)(uint8_t *_src, const uint8_t *topright, int _stride){ pixel *src = (pixel*)_src; int stride = _stride/sizeof(pixel); const int dc= ( src[-1+0*stride] + src[-1+1*stride] + src[-1+2*stride] + src[-1+3*stride] + 2) >>2; ((pixel4*)(src+0*stride))[0]= ((pixel4*)...
true
FFmpeg
2caf19e90f270abe1e80a3e85acaf0eb5c9d0aac
static void FUNCC(pred4x4_left_dc)(uint8_t *_src, const uint8_t *topright, int _stride){ pixel *src = (pixel*)_src; int stride = _stride/sizeof(pixel); const int dc= ( src[-1+0*stride] + src[-1+1*stride] + src[-1+2*stride] + src[-1+3*stride] + 2) >>2; ((pixel4*)(src+0*stride))[0]= ((pixel4*)...
{ "code": [ " ((pixel4*)(src+0*stride))[0]=", " ((pixel4*)(src+1*stride))[0]=", " ((pixel4*)(src+2*stride))[0]=", " ((pixel4*)(src+3*stride))[0]= PIXEL_SPLAT_X4(dc);", " ((pixel4*)(src+0*stride))[0]=", " ((pixel4*)(src+1*stride))[0]=", " ((pixel4*)(src+2*stride))[0]=",...
static void FUNC_0(pred4x4_left_dc)(uint8_t *_src, const uint8_t *topright, int _stride){ pixel *src = (pixel*)_src; int VAR_0 = _stride/sizeof(pixel); const int VAR_1= ( src[-1+0*VAR_0] + src[-1+1*VAR_0] + src[-1+2*VAR_0] + src[-1+3*VAR_0] + 2) >>2; ((pixel4*)(src+0*VAR_0))[0]= ((pixel4*)(s...
[ "static void FUNC_0(pred4x4_left_dc)(uint8_t *_src, const uint8_t *topright, int _stride){", "pixel *src = (pixel*)_src;", "int VAR_0 = _stride/sizeof(pixel);", "const int VAR_1= ( src[-1+0*VAR_0] + src[-1+1*VAR_0] + src[-1+2*VAR_0] + src[-1+3*VAR_0] + 2) >>2;", "((pixel4*)(src+0*VAR_0))[0]=\n((pixel4*)(sr...
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11, 13, 15, 17 ], [ 19 ] ]
23,255
static void decode_nal_sei_decoded_picture_hash(HEVCContext *s) { int cIdx, i; uint8_t hash_type; //uint16_t picture_crc; //uint32_t picture_checksum; GetBitContext *gb = &s->HEVClc->gb; hash_type = get_bits(gb, 8); for (cIdx = 0; cIdx < 3/*((s->sps->chroma_format_idc == 0) ? 1 : 3...
true
FFmpeg
5183fac92fc5c574a053dd06b84e735a1ec1cfa6
static void decode_nal_sei_decoded_picture_hash(HEVCContext *s) { int cIdx, i; uint8_t hash_type; GetBitContext *gb = &s->HEVClc->gb; hash_type = get_bits(gb, 8); for (cIdx = 0; cIdx < 3; cIdx++) { if (hash_type == 0) { s->is_md5 = 1; for (i = 0...
{ "code": [], "line_no": [] }
static void FUNC_0(HEVCContext *VAR_0) { int VAR_1, VAR_2; uint8_t hash_type; GetBitContext *gb = &VAR_0->HEVClc->gb; hash_type = get_bits(gb, 8); for (VAR_1 = 0; VAR_1 < 3; VAR_1++) { if (hash_type == 0) { VAR_0->is_md5 = 1; for (VAR_2 = 0; VAR...
[ "static void FUNC_0(HEVCContext *VAR_0)\n{", "int VAR_1, VAR_2;", "uint8_t hash_type;", "GetBitContext *gb = &VAR_0->HEVClc->gb;", "hash_type = get_bits(gb, 8);", "for (VAR_1 = 0; VAR_1 < 3; VAR_1++) {", "if (hash_type == 0) {", "VAR_0->is_md5 = 1;", "for (VAR_2 = 0; VAR_2 < 16; VAR_2++)", "VAR_0-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
23,257
static av_cold void dcadec_flush(AVCodecContext *avctx) { DCAContext *s = avctx->priv_data; ff_dca_core_flush(&s->core); ff_dca_xll_flush(&s->xll); ff_dca_lbr_flush(&s->lbr); s->core_residual_valid = 0; }
false
FFmpeg
801dbf0269b1bb5bc70c550e971491e0aea9eb70
static av_cold void dcadec_flush(AVCodecContext *avctx) { DCAContext *s = avctx->priv_data; ff_dca_core_flush(&s->core); ff_dca_xll_flush(&s->xll); ff_dca_lbr_flush(&s->lbr); s->core_residual_valid = 0; }
{ "code": [], "line_no": [] }
static av_cold void FUNC_0(AVCodecContext *avctx) { DCAContext *s = avctx->priv_data; ff_dca_core_flush(&s->core); ff_dca_xll_flush(&s->xll); ff_dca_lbr_flush(&s->lbr); s->core_residual_valid = 0; }
[ "static av_cold void FUNC_0(AVCodecContext *avctx)\n{", "DCAContext *s = avctx->priv_data;", "ff_dca_core_flush(&s->core);", "ff_dca_xll_flush(&s->xll);", "ff_dca_lbr_flush(&s->lbr);", "s->core_residual_valid = 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ] ]
23,258
static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vstream, const char *key, int64_t max_pos, int depth) { AVCodecContext *acodec, *vcodec; FLVContext *flv = s->priv_data; AVIOContext *ioc; AMFDataType amf_type; ...
false
FFmpeg
93c04e095dc37ebdab22174e88cfa91e24940866
static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vstream, const char *key, int64_t max_pos, int depth) { AVCodecContext *acodec, *vcodec; FLVContext *flv = s->priv_data; AVIOContext *ioc; AMFDataType amf_type; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, AVStream *VAR_2, const char *VAR_3, int64_t VAR_4, int VAR_5) { AVCodecContext *acodec, *vcodec; FLVContext *flv = VAR_0->priv_data; AVIOContext *ioc; AMFDataType amf_type; char...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,\nAVStream *VAR_2, const char *VAR_3,\nint64_t VAR_4, int VAR_5)\n{", "AVCodecContext *acodec, *vcodec;", "FLVContext *flv = VAR_0->priv_data;", "AVIOContext *ioc;", "AMFDataType amf_type;", "char VAR_6[256];", "double VAR_7;", "VAR_7 = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47, 49 ], [ 51 ...
23,261
static int check(AVIOContext *pb, int64_t pos, int64_t *out_pos) { MPADecodeHeader mh = { 0 }; int i; uint32_t header; int64_t off = 0; for (i = 0; i < SEEK_PACKETS; i++) { off = avio_seek(pb, pos + mh.frame_size, SEEK_SET); if (off < 0) break; hea...
false
FFmpeg
955aec3c7c7be39b659197e1ec379a09f2b7c41c
static int check(AVIOContext *pb, int64_t pos, int64_t *out_pos) { MPADecodeHeader mh = { 0 }; int i; uint32_t header; int64_t off = 0; for (i = 0; i < SEEK_PACKETS; i++) { off = avio_seek(pb, pos + mh.frame_size, SEEK_SET); if (off < 0) break; hea...
{ "code": [], "line_no": [] }
static int FUNC_0(AVIOContext *VAR_0, int64_t VAR_1, int64_t *VAR_2) { MPADecodeHeader mh = { 0 }; int VAR_3; uint32_t header; int64_t off = 0; for (VAR_3 = 0; VAR_3 < SEEK_PACKETS; VAR_3++) { off = avio_seek(VAR_0, VAR_1 + mh.frame_size, SEEK_SET); if (off < 0) ...
[ "static int FUNC_0(AVIOContext *VAR_0, int64_t VAR_1, int64_t *VAR_2)\n{", "MPADecodeHeader mh = { 0 };", "int VAR_3;", "uint32_t header;", "int64_t off = 0;", "for (VAR_3 = 0; VAR_3 < SEEK_PACKETS; VAR_3++) {", "off = avio_seek(VAR_0, VAR_1 + mh.frame_size, SEEK_SET);", "if (off < 0)\nbreak;", "hea...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
23,262
int av_read_play(AVFormatContext *s) { if (s->iformat->read_play) return s->iformat->read_play(s); if (s->pb && s->pb->read_pause) return av_url_read_fpause(s->pb, 0); return AVERROR(ENOSYS); }
false
FFmpeg
fd2982a0a01942091b2f08e17486ff4562f675a6
int av_read_play(AVFormatContext *s) { if (s->iformat->read_play) return s->iformat->read_play(s); if (s->pb && s->pb->read_pause) return av_url_read_fpause(s->pb, 0); return AVERROR(ENOSYS); }
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0) { if (VAR_0->iformat->read_play) return VAR_0->iformat->read_play(VAR_0); if (VAR_0->pb && VAR_0->pb->read_pause) return av_url_read_fpause(VAR_0->pb, 0); return AVERROR(ENOSYS); }
[ "int FUNC_0(AVFormatContext *VAR_0)\n{", "if (VAR_0->iformat->read_play)\nreturn VAR_0->iformat->read_play(VAR_0);", "if (VAR_0->pb && VAR_0->pb->read_pause)\nreturn av_url_read_fpause(VAR_0->pb, 0);", "return AVERROR(ENOSYS);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ] ]
23,264
int ff_hevc_extract_rbsp(HEVCContext *s, const uint8_t *src, int length, HEVCNAL *nal) { int i, si, di; uint8_t *dst; if (s) nal->skipped_bytes = 0; #define STARTCODE_TEST \ if (i + 2 < length && src[i + 1] =...
false
FFmpeg
4791a910c0dc3dd5861d38202457c9fb9bf1154c
int ff_hevc_extract_rbsp(HEVCContext *s, const uint8_t *src, int length, HEVCNAL *nal) { int i, si, di; uint8_t *dst; if (s) nal->skipped_bytes = 0; #define STARTCODE_TEST \ if (i + 2 < length && src[i + 1] =...
{ "code": [], "line_no": [] }
int FUNC_0(HEVCContext *VAR_0, const uint8_t *VAR_1, int VAR_2, HEVCNAL *VAR_3) { int VAR_4, VAR_5, VAR_6; uint8_t *dst; if (VAR_0) VAR_3->skipped_bytes = 0; #define STARTCODE_TEST \ if (VAR_4 + 2 < VAR_2 && ...
[ "int FUNC_0(HEVCContext *VAR_0, const uint8_t *VAR_1, int VAR_2,\nHEVCNAL *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6;", "uint8_t *dst;", "if (VAR_0)\nVAR_3->skipped_bytes = 0;", "#define STARTCODE_TEST \\\nif (VAR_4 + 2 < VAR_2 && VAR_1[VAR_4 + 1] == 0 && VAR_1[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 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37, 39 ], [ 41, 43, 45, 47 ], [ 49, 51, 53, 55 ], [...
23,265
static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *buf, const uint8_t *end_buf) { unsigned tag, type, count, off, value = 0; int i, j; int ret; uint32_t *pal; const uint8_t *rp, *gp, *bp; double *dp; if (end_buf - buf < 12) ...
false
FFmpeg
1ec83d9a9e472f485897ac92bad9631d551a8c5b
static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *buf, const uint8_t *end_buf) { unsigned tag, type, count, off, value = 0; int i, j; int ret; uint32_t *pal; const uint8_t *rp, *gp, *bp; double *dp; if (end_buf - buf < 12) ...
{ "code": [], "line_no": [] }
static int FUNC_0(TiffContext *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, const uint8_t *VAR_3) { unsigned VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0; int VAR_9, VAR_10; int VAR_11; uint32_t *pal; const uint8_t *VAR_12, *gp, *bp; double *VAR_13; if (V...
[ "static int FUNC_0(TiffContext *VAR_0, const uint8_t *VAR_1,\nconst uint8_t *VAR_2, const uint8_t *VAR_3)\n{", "unsigned VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0;", "int VAR_9, VAR_10;", "int VAR_11;", "uint32_t *pal;", "const uint8_t *VAR_12, *gp, *bp;", "double *VAR_13;", "if (VAR_3 - VAR_2 < 12)\nretu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
23,266
static int bit_allocation(IMCContext *q, IMCChannel *chctx, int stream_format_code, int freebits, int flag) { int i, j; const float limit = -1.e20; float highest = 0.0; int indx; int t1 = 0; int t2 = 1; float summa = 0.0; int iacc = 0; int summer ...
false
FFmpeg
3e0c78bac63c213649c3e8c2fa49e9f3c9848d5a
static int bit_allocation(IMCContext *q, IMCChannel *chctx, int stream_format_code, int freebits, int flag) { int i, j; const float limit = -1.e20; float highest = 0.0; int indx; int t1 = 0; int t2 = 1; float summa = 0.0; int iacc = 0; int summer ...
{ "code": [], "line_no": [] }
static int FUNC_0(IMCContext *VAR_0, IMCChannel *VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5, VAR_6; const float VAR_7 = -1.e20; float VAR_8 = 0.0; int VAR_9; int VAR_10 = 0; int VAR_11 = 1; float VAR_12 = 0.0; int VAR_13 = 0; int VAR_14 =...
[ "static int FUNC_0(IMCContext *VAR_0, IMCChannel *VAR_1,\nint VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6;", "const float VAR_7 = -1.e20;", "float VAR_8 = 0.0;", "int VAR_9;", "int VAR_10 = 0;", "int VAR_11 = 1;", "float VAR_12 = 0.0;", "int VAR_13 = 0;", "int VAR_14 = 0;", "int VAR_15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 45 ], [...
23,267
static av_cold int g722_decode_init(AVCodecContext * avctx) { G722Context *c = avctx->priv_data; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "Only mono tracks are allowed.\n"); return AVERROR_INVALIDDATA; } avctx->sample_fmt = AV_SAMPLE_FMT_S16; c->band[0].sca...
false
FFmpeg
ec2694d25905c217e5815947cda896aa25398388
static av_cold int g722_decode_init(AVCodecContext * avctx) { G722Context *c = avctx->priv_data; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "Only mono tracks are allowed.\n"); return AVERROR_INVALIDDATA; } avctx->sample_fmt = AV_SAMPLE_FMT_S16; c->band[0].sca...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext * avctx) { G722Context *c = avctx->priv_data; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "Only mono tracks are allowed.\n"); return AVERROR_INVALIDDATA; } avctx->sample_fmt = AV_SAMPLE_FMT_S16; c->band[0].scale_factor ...
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "G722Context *c = avctx->priv_data;", "if (avctx->channels != 1) {", "av_log(avctx, AV_LOG_ERROR, \"Only mono tracks are allowed.\\n\");", "return AVERROR_INVALIDDATA;", "}", "avctx->sample_fmt = AV_SAMPLE_FMT_S16;", "c->band[0].scale_factor = 8;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
23,268
static int handle_packet(MpegTSContext *ts, const uint8_t *packet) { AVFormatContext *s = ts->stream; MpegTSFilter *tss; int len, pid, cc, cc_ok, afc, is_start; const uint8_t *p, *p_end; int64_t pos; pid = AV_RB16(packet + 1) & 0x1fff; if(pid && discard_pid(ts, pid)) retur...
false
FFmpeg
b3f9f7a33337e9b64e6044b0010e2722fa0b2f9c
static int handle_packet(MpegTSContext *ts, const uint8_t *packet) { AVFormatContext *s = ts->stream; MpegTSFilter *tss; int len, pid, cc, cc_ok, afc, is_start; const uint8_t *p, *p_end; int64_t pos; pid = AV_RB16(packet + 1) & 0x1fff; if(pid && discard_pid(ts, pid)) retur...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegTSContext *VAR_0, const uint8_t *VAR_1) { AVFormatContext *s = VAR_0->stream; MpegTSFilter *tss; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; const uint8_t *VAR_8, *p_end; int64_t pos; VAR_3 = AV_RB16(VAR_1 + 1) & 0x1fff; if(VAR_3 && discard_pid(VAR_0, VAR_3)...
[ "static int FUNC_0(MpegTSContext *VAR_0, const uint8_t *VAR_1)\n{", "AVFormatContext *s = VAR_0->stream;", "MpegTSFilter *tss;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "const uint8_t *VAR_8, *p_end;", "int64_t pos;", "VAR_3 = AV_RB16(VAR_1 + 1) & 0x1fff;", "if(VAR_3 && discard_pid(VAR_0, VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ...
23,269
static void buffer_release(void *opaque, uint8_t *data) { *(uint8_t*)opaque = 0; }
false
FFmpeg
03cef34aa66662e2ab3681d290e7c5a6634f4058
static void buffer_release(void *opaque, uint8_t *data) { *(uint8_t*)opaque = 0; }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, uint8_t *VAR_1) { *(uint8_t*)VAR_0 = 0; }
[ "static void FUNC_0(void *VAR_0, uint8_t *VAR_1)\n{", "*(uint8_t*)VAR_0 = 0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
23,270
static void float_to_int16_3dnow(int16_t *dst, const float *src, int len){ // not bit-exact: pf2id uses different rounding than C and SSE int i; for(i=0; i<len; i+=4) { asm volatile( "pf2id %1, %%mm0 \n\t" "pf2id %2, %%mm1 \n\t" "packssdw %%mm1,...
false
FFmpeg
63b737d4f9c118853a4f8d9af641335629bdf3ab
static void float_to_int16_3dnow(int16_t *dst, const float *src, int len){ int i; for(i=0; i<len; i+=4) { asm volatile( "pf2id %1, %%mm0 \n\t" "pf2id %2, %%mm1 \n\t" "packssdw %%mm1, %%mm0 \n\t" "movq %%mm0, %0 \n\t" ...
{ "code": [], "line_no": [] }
static void FUNC_0(int16_t *VAR_0, const float *VAR_1, int VAR_2){ int VAR_3; for(VAR_3=0; VAR_3<VAR_2; VAR_3+=4) { asm volatile( "pf2id %1, %%mm0 \n\t" "pf2id %2, %%mm1 \n\t" "packssdw %%mm1, %%mm0 \n\t" "movq %%mm0, %0 \n\...
[ "static void FUNC_0(int16_t *VAR_0, const float *VAR_1, int VAR_2){", "int VAR_3;", "for(VAR_3=0; VAR_3<VAR_2; VAR_3+=4) {", "asm volatile(\n\"pf2id %1, %%mm0 \\n\\t\"\n\"pf2id %2, %%mm1 \\n\\t\"\n\"packssdw %%mm1, %%mm0 \\n\\t\"\n\"movq %%mm0, %0 \\n\\t\"\n:\"=m\"(VAR_0[VAR_3])\n:\"m\"(VAR...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 5 ], [ 7 ], [ 9, 11, 13, 15, 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ] ]
23,271
static int add_shorts_metadata(const uint8_t **buf, int count, const char *name, const char *sep, TiffContext *s) { char *ap; int i; int *sp = av_malloc(count * sizeof(int)); if (!sp) return AVERROR(ENOMEM); for (i = 0; i < count; i++) sp[i] ...
false
FFmpeg
1ec83d9a9e472f485897ac92bad9631d551a8c5b
static int add_shorts_metadata(const uint8_t **buf, int count, const char *name, const char *sep, TiffContext *s) { char *ap; int i; int *sp = av_malloc(count * sizeof(int)); if (!sp) return AVERROR(ENOMEM); for (i = 0; i < count; i++) sp[i] ...
{ "code": [], "line_no": [] }
static int FUNC_0(const uint8_t **VAR_0, int VAR_1, const char *VAR_2, const char *VAR_3, TiffContext *VAR_4) { char *VAR_5; int VAR_6; int *VAR_7 = av_malloc(VAR_1 * sizeof(int)); if (!VAR_7) return AVERROR(ENOMEM); for (VAR_6 = 0; VAR_6 < VAR_1; VAR...
[ "static int FUNC_0(const uint8_t **VAR_0, int VAR_1, const char *VAR_2,\nconst char *VAR_3, TiffContext *VAR_4)\n{", "char *VAR_5;", "int VAR_6;", "int *VAR_7 = av_malloc(VAR_1 * sizeof(int));", "if (!VAR_7)\nreturn AVERROR(ENOMEM);", "for (VAR_6 = 0; VAR_6 < VAR_1; VAR_6++)", "VAR_7[VAR_6] = tget_short...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ] ]
23,272
int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask, const AVFrame *reference) { int len, nb_components, i, h, v, predictor, point_transform; int index, id; const int block_size= s->lossless ? 1 : 8; int ilv, prev_shift; /* XXX: verify len field ...
false
FFmpeg
15b219fae9da1691dfb264f51637805e1ca63d1a
int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask, const AVFrame *reference) { int len, nb_components, i, h, v, predictor, point_transform; int index, id; const int block_size= s->lossless ? 1 : 8; int ilv, prev_shift; len = get_bits(&s->...
{ "code": [], "line_no": [] }
int FUNC_0(MJpegDecodeContext *VAR_0, const uint8_t *VAR_1, const AVFrame *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11; const int VAR_12= VAR_0->lossless ? 1 : 8; int VAR_13, VAR_14; VAR_3 = get_bits(&VAR_0->gb, 16); VA...
[ "int FUNC_0(MJpegDecodeContext *VAR_0,\nconst uint8_t *VAR_1, const AVFrame *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11;", "const int VAR_12= VAR_0->lossless ? 1 : 8;", "int VAR_13, VAR_14;", "VAR_3 = get_bits(&VAR_0->gb, 16);", "VAR_4 = get_bits(&VAR_0->gb, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
23,273
static int is_intra_more_likely(MpegEncContext *s){ int is_intra_likely, i, j, undamaged_count, skip_amount, mb_x, mb_y; if (!s->last_picture_ptr || !s->last_picture_ptr->f.data[0]) return 1; //no previous frame available -> use spatial prediction undamaged_count=0; for(i=0; i<s->mb_num; i++){ ...
false
FFmpeg
e1d5bbeb39501a3271c6422390d13bf9391872d1
static int is_intra_more_likely(MpegEncContext *s){ int is_intra_likely, i, j, undamaged_count, skip_amount, mb_x, mb_y; if (!s->last_picture_ptr || !s->last_picture_ptr->f.data[0]) return 1; undamaged_count=0; for(i=0; i<s->mb_num; i++){ const int mb_xy= s->mb_index2xy[i]; co...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext *VAR_0){ int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; if (!VAR_0->last_picture_ptr || !VAR_0->last_picture_ptr->f.data[0]) return 1; VAR_4=0; for(VAR_2=0; VAR_2<VAR_0->mb_num; VAR_2++){ const int mb_xy= VAR_0->mb_index2xy[VAR_2]; const ...
[ "static int FUNC_0(MpegEncContext *VAR_0){", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "if (!VAR_0->last_picture_ptr || !VAR_0->last_picture_ptr->f.data[0]) return 1;", "VAR_4=0;", "for(VAR_2=0; VAR_2<VAR_0->mb_num; VAR_2++){", "const int mb_xy= VAR_0->mb_index2xy[VAR_2];", "const int erro...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 39 ], [ 45, 47 ], [ 51 ], [ 53 ], [ 57 ], [ 5...
23,275
I2CAdapter *omap_i2c_create(uint64_t addr) { OMAPI2C *s = g_malloc0(sizeof(*s)); I2CAdapter *i2c = (I2CAdapter *)s; uint16_t data; s->addr = addr; i2c->send = omap_i2c_send; i2c->recv = omap_i2c_recv; /* verify the mmio address by looking for a known signature */ memread(a...
true
qemu
d0bce760e04b1658a3b4ac95be2839ae20fd86db
I2CAdapter *omap_i2c_create(uint64_t addr) { OMAPI2C *s = g_malloc0(sizeof(*s)); I2CAdapter *i2c = (I2CAdapter *)s; uint16_t data; s->addr = addr; i2c->send = omap_i2c_send; i2c->recv = omap_i2c_recv; memread(addr + OMAP_I2C_REV, &data, 2); g_assert_cmphex(data, ==, ...
{ "code": [ " memread(addr + OMAP_I2C_REV, &data, 2);" ], "line_no": [ 25 ] }
I2CAdapter *FUNC_0(uint64_t addr) { OMAPI2C *s = g_malloc0(sizeof(*s)); I2CAdapter *i2c = (I2CAdapter *)s; uint16_t data; s->addr = addr; i2c->send = omap_i2c_send; i2c->recv = omap_i2c_recv; memread(addr + OMAP_I2C_REV, &data, 2); g_assert_cmphex(data, ==, 0x34); ...
[ "I2CAdapter *FUNC_0(uint64_t addr)\n{", "OMAPI2C *s = g_malloc0(sizeof(*s));", "I2CAdapter *i2c = (I2CAdapter *)s;", "uint16_t data;", "s->addr = addr;", "i2c->send = omap_i2c_send;", "i2c->recv = omap_i2c_recv;", "memread(addr + OMAP_I2C_REV, &data, 2);", "g_assert_cmphex(data, ==, 0x34);", "retu...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
23,276
void ff_hevc_luma_mv_mvp_mode(HEVCContext *s, int x0, int y0, int nPbW, int nPbH, int log2_cb_size, int part_idx, int merge_idx, MvField *mv, int mvp_lx_flag, int LX) { HEVCLocalContext *lc = s->HEVClc; MvField *tab_...
true
FFmpeg
84bc45880ae14277cb804569401ddd34274f4764
void ff_hevc_luma_mv_mvp_mode(HEVCContext *s, int x0, int y0, int nPbW, int nPbH, int log2_cb_size, int part_idx, int merge_idx, MvField *mv, int mvp_lx_flag, int LX) { HEVCLocalContext *lc = s->HEVClc; MvField *tab_...
{ "code": [ " xB1 = x0 + nPbW - 1;", " yB1 = y0 - 1;", " is_available_b1 = AVAILABLE(cand_up, B1);", " xB2 = x0 - 1;", " yB2 = y0 - 1;", " is_available_b2 = AVAILABLE(cand_up_left, B2);" ], "line_no": [ 231, 233, 237, 261, 263, 265 ] }
void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, MvField *VAR_8, int VAR_9, int VAR_10) { HEVCLocalContext *lc = VAR_0->HEVClc; MvField *tab_mvf = VAR_0->re...
[ "void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6,\nint VAR_7, MvField *VAR_8,\nint VAR_9, int VAR_10)\n{", "HEVCLocalContext *lc = VAR_0->HEVClc;", "MvField *tab_mvf = VAR_0->ref->tab_mvf;", "int VAR_11 = 0;", "int VAR_12 = 1;", "int VAR_13 = 1;", "int V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
23,278
static void gen_ove_cyov(DisasContext *dc, TCGv cy, TCGv ov) { if (dc->tb_flags & SR_OVE) { TCGv t0 = tcg_temp_new(); tcg_gen_or_tl(t0, cy, ov); gen_helper_ove(cpu_env, t0); tcg_temp_free(t0); } }
true
qemu
9745807191a81c45970f780166f44a7f93b18653
static void gen_ove_cyov(DisasContext *dc, TCGv cy, TCGv ov) { if (dc->tb_flags & SR_OVE) { TCGv t0 = tcg_temp_new(); tcg_gen_or_tl(t0, cy, ov); gen_helper_ove(cpu_env, t0); tcg_temp_free(t0); } }
{ "code": [ "static void gen_ove_cyov(DisasContext *dc, TCGv cy, TCGv ov)", " TCGv t0 = tcg_temp_new();", " tcg_gen_or_tl(t0, cy, ov);", " gen_helper_ove(cpu_env, t0);", " tcg_temp_free(t0);" ], "line_no": [ 1, 7, 9, 11, 13 ] }
static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2) { if (VAR_0->tb_flags & SR_OVE) { TCGv t0 = tcg_temp_new(); tcg_gen_or_tl(t0, VAR_1, VAR_2); gen_helper_ove(cpu_env, t0); tcg_temp_free(t0); } }
[ "static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2)\n{", "if (VAR_0->tb_flags & SR_OVE) {", "TCGv t0 = tcg_temp_new();", "tcg_gen_or_tl(t0, VAR_1, VAR_2);", "gen_helper_ove(cpu_env, t0);", "tcg_temp_free(t0);", "}", "}" ]
[ 1, 0, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
23,280
static void put_uint16(QEMUFile *f, void *pv, size_t size) { uint16_t *v = pv; qemu_put_be16s(f, v); }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void put_uint16(QEMUFile *f, void *pv, size_t size) { uint16_t *v = pv; qemu_put_be16s(f, v); }
{ "code": [], "line_no": [] }
static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2) { uint16_t *v = VAR_1; qemu_put_be16s(VAR_0, v); }
[ "static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{", "uint16_t *v = VAR_1;", "qemu_put_be16s(VAR_0, v);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
23,281
static int vqa_decode_chunk(VqaContext *s) { unsigned int chunk_type; unsigned int chunk_size; int byte_skip; unsigned int index = 0; int i; unsigned char r, g, b; int index_shift; int res; int cbf0_chunk = -1; int cbfz_chunk = -1; int cbp0_chunk = -1; int ...
true
FFmpeg
b12d92efd6c0d48665383a9baecc13e7ebbd8a22
static int vqa_decode_chunk(VqaContext *s) { unsigned int chunk_type; unsigned int chunk_size; int byte_skip; unsigned int index = 0; int i; unsigned char r, g, b; int index_shift; int res; int cbf0_chunk = -1; int cbfz_chunk = -1; int cbp0_chunk = -1; int ...
{ "code": [ " s->palette[i] = 0xFF << 24 | r << 16 | g << 8 | b;" ], "line_no": [ 221 ] }
static int FUNC_0(VqaContext *VAR_0) { unsigned int VAR_1; unsigned int VAR_2; int VAR_3; unsigned int VAR_4 = 0; int VAR_5; unsigned char VAR_6, VAR_7, VAR_8; int VAR_9; int VAR_10; int VAR_11 = -1; int VAR_12 = -1; int VAR_13 = -1; int VAR_14 = -1; i...
[ "static int FUNC_0(VqaContext *VAR_0)\n{", "unsigned int VAR_1;", "unsigned int VAR_2;", "int VAR_3;", "unsigned int VAR_4 = 0;", "int VAR_5;", "unsigned char VAR_6, VAR_7, VAR_8;", "int VAR_9;", "int VAR_10;", "int VAR_11 = -1;", "int VAR_12 = -1;", "int VAR_13 = -1;", "int VAR_14 = -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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
23,282
static int hls_read(URLContext *h, uint8_t *buf, int size) { HLSContext *s = h->priv_data; const char *url; int ret; int64_t reload_interval; start: if (s->seg_hd) { ret = ffurl_read(s->seg_hd, buf, size); if (ret > 0) return ret; } if (s->seg_hd) { ...
true
FFmpeg
8fb8d539a4c594a58df226bc1bd7a4d149f39424
static int hls_read(URLContext *h, uint8_t *buf, int size) { HLSContext *s = h->priv_data; const char *url; int ret; int64_t reload_interval; start: if (s->seg_hd) { ret = ffurl_read(s->seg_hd, buf, size); if (ret > 0) return ret; } if (s->seg_hd) { ...
{ "code": [ " reload_interval = s->target_duration * 500000;" ], "line_no": [ 63 ] }
static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2) { HLSContext *s = VAR_0->priv_data; const char *VAR_3; int VAR_4; int64_t reload_interval; start: if (s->seg_hd) { VAR_4 = ffurl_read(s->seg_hd, VAR_1, VAR_2); if (VAR_4 > 0) return VAR_4; } ...
[ "static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "HLSContext *s = VAR_0->priv_data;", "const char *VAR_3;", "int VAR_4;", "int64_t reload_interval;", "start:\nif (s->seg_hd) {", "VAR_4 = ffurl_read(s->seg_hd, VAR_1, VAR_2);", "if (VAR_4 > 0)\nreturn VAR_4;", "}", "if (s->seg_h...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45, 47 ], [...
23,283
static inline void ff_h264_biweight_WxH_mmx2(uint8_t *dst, uint8_t *src, int stride, int log2_denom, int weightd, int weights, int offsetd, int offsets, int w, int h) { int x, y; int offset = ((offsets + offsetd + 1) | 1) << log2_denom; asm volatile( "movd %0, %%mm3 \n\t" "mo...
true
FFmpeg
cec939597722663f322941b4c12e00a583e63504
static inline void ff_h264_biweight_WxH_mmx2(uint8_t *dst, uint8_t *src, int stride, int log2_denom, int weightd, int weights, int offsetd, int offsets, int w, int h) { int x, y; int offset = ((offsets + offsetd + 1) | 1) << log2_denom; asm volatile( "movd %0, %%mm3 \n\t" "mo...
{ "code": [ " \"paddw %%mm5, %%mm0 \\n\\t\"", " \"paddw %%mm5, %%mm0 \\n\\t\"", " \"paddw %%mm1, %%mm0 \\n\\t\"" ], "line_no": [ 49, 49, 51 ] }
static inline void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9) { int VAR_10, VAR_11; int VAR_12 = ((VAR_7 + VAR_6 + 1) | 1) << VAR_3; asm volatile( "movd %0, %%mm3 \n\t" "movd %1, %%mm4 ...
[ "static inline void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9)\n{", "int VAR_10, VAR_11;", "int VAR_12 = ((VAR_7 + VAR_6 + 1) | 1) << VAR_3;", "asm volatile(\n\"movd %0, %%mm3 \\n\\t\"\n\"movd %1, %%mm4 \\n...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63 ], [ 65 ...
23,284
static int dpx_probe(AVProbeData *p) { const uint8_t *b = p->buf; if (AV_RN32(b) == AV_RN32("SDPX") || AV_RN32(b) == AV_RN32("XPDS")) return AVPROBE_SCORE_EXTENSION + 1; return 0; }
true
FFmpeg
41ee459e88093a0b7ae13b8539ed9ccd0ebd0f0b
static int dpx_probe(AVProbeData *p) { const uint8_t *b = p->buf; if (AV_RN32(b) == AV_RN32("SDPX") || AV_RN32(b) == AV_RN32("XPDS")) return AVPROBE_SCORE_EXTENSION + 1; return 0; }
{ "code": [ " if (AV_RN32(b) == AV_RN32(\"SDPX\") || AV_RN32(b) == AV_RN32(\"XPDS\"))" ], "line_no": [ 9 ] }
static int FUNC_0(AVProbeData *VAR_0) { const uint8_t *VAR_1 = VAR_0->buf; if (AV_RN32(VAR_1) == AV_RN32("SDPX") || AV_RN32(VAR_1) == AV_RN32("XPDS")) return AVPROBE_SCORE_EXTENSION + 1; return 0; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "const uint8_t *VAR_1 = VAR_0->buf;", "if (AV_RN32(VAR_1) == AV_RN32(\"SDPX\") || AV_RN32(VAR_1) == AV_RN32(\"XPDS\"))\nreturn AVPROBE_SCORE_EXTENSION + 1;", "return 0;", "}" ]
[ 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ] ]
23,285
static int yop_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { YopDecContext *yop = s->priv_data; int64_t frame_pos, pos_min, pos_max; int frame_count; av_free_packet(&yop->video_packet); if (!stream_index) return -1; ...
true
FFmpeg
b69c2e0e6dab87bb90fece1d0de47c28394aa8e6
static int yop_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { YopDecContext *yop = s->priv_data; int64_t frame_pos, pos_min, pos_max; int frame_count; av_free_packet(&yop->video_packet); if (!stream_index) return -1; ...
{ "code": [ " av_free_packet(&yop->video_packet);", " avio_seek(s->pb, frame_pos, SEEK_SET);" ], "line_no": [ 15, 43 ] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { YopDecContext *yop = VAR_0->priv_data; int64_t frame_pos, pos_min, pos_max; int VAR_4; av_free_packet(&yop->video_packet); if (!VAR_1) return -1; pos_min = VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t VAR_2, int VAR_3)\n{", "YopDecContext *yop = VAR_0->priv_data;", "int64_t frame_pos, pos_min, pos_max;", "int VAR_4;", "av_free_packet(&yop->video_packet);", "if (!VAR_1)\nreturn -1;", "pos_min = VAR_0->data_offset;", "pos_max ...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ] ]
23,287
static int film_read_packet(AVFormatContext *s, AVPacket *pkt) { FilmDemuxContext *film = s->priv_data; AVIOContext *pb = s->pb; film_sample *sample; int ret = 0; int i; int left, right; if (film->current_sample >= film->sample_count) return AV...
false
FFmpeg
ded5957d75def70d2f1fc1c1eae079230004974b
static int film_read_packet(AVFormatContext *s, AVPacket *pkt) { FilmDemuxContext *film = s->priv_data; AVIOContext *pb = s->pb; film_sample *sample; int ret = 0; int i; int left, right; if (film->current_sample >= film->sample_count) return AV...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { FilmDemuxContext *film = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; film_sample *sample; int VAR_2 = 0; int VAR_3; int VAR_4, VAR_5; if (film->current_sample >= film->sample_count) ...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{", "FilmDemuxContext *film = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "film_sample *sample;", "int VAR_2 = 0;", "int VAR_3;", "int VAR_4, VAR_5;", "if (film->current_sample >= film->sample_count)\nreturn AVERROR(EIO);", "sampl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 33 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 61, 63 ...
23,288
void qdist_init(struct qdist *dist) { dist->entries = g_malloc(sizeof(*dist->entries)); dist->size = 1; dist->n = 0; }
true
qemu
071d4054770205ddb8a58a9e2735069d8fe52af1
void qdist_init(struct qdist *dist) { dist->entries = g_malloc(sizeof(*dist->entries)); dist->size = 1; dist->n = 0; }
{ "code": [ " dist->entries = g_malloc(sizeof(*dist->entries));" ], "line_no": [ 5 ] }
void FUNC_0(struct qdist *VAR_0) { VAR_0->entries = g_malloc(sizeof(*VAR_0->entries)); VAR_0->size = 1; VAR_0->n = 0; }
[ "void FUNC_0(struct qdist *VAR_0)\n{", "VAR_0->entries = g_malloc(sizeof(*VAR_0->entries));", "VAR_0->size = 1;", "VAR_0->n = 0;", "}" ]
[ 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
23,289
void arm_v7m_cpu_do_interrupt(CPUState *cs) { ARMCPU *cpu = ARM_CPU(cs); CPUARMState *env = &cpu->env; uint32_t lr; arm_log_exception(cs->exception_index); /* For exceptions we just mark as pending on the NVIC, and let that handle it. */ switch (cs->exception_index) { ca...
true
qemu
d3392718e1fcf0859fb7c0774a8e946bacb8419c
void arm_v7m_cpu_do_interrupt(CPUState *cs) { ARMCPU *cpu = ARM_CPU(cs); CPUARMState *env = &cpu->env; uint32_t lr; arm_log_exception(cs->exception_index); switch (cs->exception_index) { case EXCP_UDEF: armv7m_nvic_set_pending(env->nvic, ARMV7M_EXCP_USAGE, env->v7m.se...
{ "code": [ " lr = R_V7M_EXCRET_RES1_MASK |", " R_V7M_EXCRET_S_MASK |", " R_V7M_EXCRET_DCRS_MASK |", " R_V7M_EXCRET_FTYPE_MASK |", " R_V7M_EXCRET_ES_MASK;", " if (env->v7m.control[env->v7m.secure] & R_V7M_CONTROL_SPSEL_MASK) {", " lr |= R_V7M_EXCRET...
void FUNC_0(CPUState *VAR_0) { ARMCPU *cpu = ARM_CPU(VAR_0); CPUARMState *env = &cpu->env; uint32_t lr; arm_log_exception(VAR_0->exception_index); switch (VAR_0->exception_index) { case EXCP_UDEF: armv7m_nvic_set_pending(env->nvic, ARMV7M_EXCP_USAGE, env->v7m.secure);...
[ "void FUNC_0(CPUState *VAR_0)\n{", "ARMCPU *cpu = ARM_CPU(VAR_0);", "CPUARMState *env = &cpu->env;", "uint32_t lr;", "arm_log_exception(VAR_0->exception_index);", "switch (VAR_0->exception_index) {", "case EXCP_UDEF:\narmv7m_nvic_set_pending(env->nvic, ARMV7M_EXCP_USAGE, env->v7m.secure);", "env->v7m....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47, 51 ], [ 53 ], [ 55,...
23,290
static void socket_sendf(int fd, const char *fmt, va_list ap) { gchar *str; size_t size, offset; str = g_strdup_vprintf(fmt, ap); size = strlen(str); offset = 0; while (offset < size) { ssize_t len; len = write(fd, str + offset, size - offset); if (len == ...
true
qemu
563890c7c7e977842e2a35afe7a24d06d2103242
static void socket_sendf(int fd, const char *fmt, va_list ap) { gchar *str; size_t size, offset; str = g_strdup_vprintf(fmt, ap); size = strlen(str); offset = 0; while (offset < size) { ssize_t len; len = write(fd, str + offset, size - offset); if (len == ...
{ "code": [ "static void socket_sendf(int fd, const char *fmt, va_list ap)", " gchar *str;", " size_t size, offset;", " str = g_strdup_vprintf(fmt, ap);", " size = strlen(str);", " len = write(fd, str + offset, size - offset);" ], "line_no": [ 1, 5, 7, 11...
static void FUNC_0(int VAR_0, const char *VAR_1, va_list VAR_2) { gchar *str; size_t size, offset; str = g_strdup_vprintf(VAR_1, VAR_2); size = strlen(str); offset = 0; while (offset < size) { ssize_t len; len = write(VAR_0, str + offset, size - offset); i...
[ "static void FUNC_0(int VAR_0, const char *VAR_1, va_list VAR_2)\n{", "gchar *str;", "size_t size, offset;", "str = g_strdup_vprintf(VAR_1, VAR_2);", "size = strlen(str);", "offset = 0;", "while (offset < size) {", "ssize_t len;", "len = write(VAR_0, str + offset, size - offset);", "if (len == -1 ...
[ 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ] ]
23,291
int vhost_dev_init(struct vhost_dev *hdev, int devfd, bool force) { uint64_t features; int r; if (devfd >= 0) { hdev->control = devfd; } else { hdev->control = open("/dev/vhost-net", O_RDWR); if (hdev->control < 0) { return -errno; } } r = ...
true
qemu
04097f7c5957273c578f72b9bd603ba6b1d69e33
int vhost_dev_init(struct vhost_dev *hdev, int devfd, bool force) { uint64_t features; int r; if (devfd >= 0) { hdev->control = devfd; } else { hdev->control = open("/dev/vhost-net", O_RDWR); if (hdev->control < 0) { return -errno; } } r = ...
{ "code": [ " hdev->client.set_memory = vhost_client_set_memory;", " hdev->client.sync_dirty_bitmap = vhost_client_sync_dirty_bitmap;", " hdev->client.migration_log = vhost_client_migration_log;", " hdev->client.log_start = NULL;", " hdev->client.log_stop = NULL;", " cpu_regi...
int FUNC_0(struct vhost_dev *VAR_0, int VAR_1, bool VAR_2) { uint64_t features; int VAR_3; if (VAR_1 >= 0) { VAR_0->control = VAR_1; } else { VAR_0->control = open("/dev/vhost-net", O_RDWR); if (VAR_0->control < 0) { return -errno; } } VAR_...
[ "int FUNC_0(struct vhost_dev *VAR_0, int VAR_1, bool VAR_2)\n{", "uint64_t features;", "int VAR_3;", "if (VAR_1 >= 0) {", "VAR_0->control = VAR_1;", "} else {", "VAR_0->control = open(\"/dev/vhost-net\", O_RDWR);", "if (VAR_0->control < 0) {", "return -errno;", "}", "}", "VAR_3 = ioctl(VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
23,293
static inline void RENAME(hcscale_fast)(SwsContext *c, int16_t *dst, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) { #if ARCH_X86 #if COMPILE_TEMPLATE_MMX2 int32_t *filterPos = c->hChrFilterPos; ...
true
FFmpeg
c3ab0004ae4dffc32494ae84dd15cfaa909a7884
static inline void RENAME(hcscale_fast)(SwsContext *c, int16_t *dst, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) { #if ARCH_X86 #if COMPILE_TEMPLATE_MMX2 int32_t *filterPos = c->hChrFilterPos; ...
{ "code": [ " int dstWidth, const uint8_t *src1,", " x86_reg dstWidth_reg = dstWidth;", " :: \"m\" (src1), \"m\" (dst), \"g\" (dstWidth_reg), \"m\" (xInc_shr16), \"m\" (xInc_mask),", " :: \"m\" (src1), \"m\" (dst), \"m\" (dstWidth_reg...
static inline void FUNC_0(hcscale_fast)(SwsContext *c, int16_t *dst, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) { #if ARCH_X86 #if COMPILE_TEMPLATE_MMX2 int32_t *filterPos = c->hChrFilterPos; ...
[ "static inline void FUNC_0(hcscale_fast)(SwsContext *c, int16_t *dst,\nint dstWidth, const uint8_t *src1,\nconst uint8_t *src2, int srcW, int xInc)\n{", "#if ARCH_X86\n#if COMPILE_TEMPLATE_MMX2\nint32_t *filterPos = c->hChrFilterPos;", "int16_t *filter = c->hChrFilter;", "int canMMX2BeUsed = c->canMMX...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 59, 61, 63, 65,...
23,294
static int decode_mb_info(IVI45DecContext *ctx, IVIBandDesc *band, IVITile *tile, AVCodecContext *avctx) { int x, y, mv_x, mv_y, mv_delta, offs, mb_offset, mv_scale, blks_per_mb; IVIMbInfo *mb, *ref_mb; int row_offset = band->mb_size * band->pitch;...
true
FFmpeg
2d09cdbaf2f449ba23d54e97e94bd97ca22208c6
static int decode_mb_info(IVI45DecContext *ctx, IVIBandDesc *band, IVITile *tile, AVCodecContext *avctx) { int x, y, mv_x, mv_y, mv_delta, offs, mb_offset, mv_scale, blks_per_mb; IVIMbInfo *mb, *ref_mb; int row_offset = band->mb_size * band->pitch;...
{ "code": [], "line_no": [] }
static int FUNC_0(IVI45DecContext *VAR_0, IVIBandDesc *VAR_1, IVITile *VAR_2, AVCodecContext *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; IVIMbInfo *mb, *ref_mb; int VAR_13 = VAR_1->mb_size * VAR_1->pitch; mb ...
[ "static int FUNC_0(IVI45DecContext *VAR_0, IVIBandDesc *VAR_1,\nIVITile *VAR_2, AVCodecContext *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10,\nVAR_11, VAR_12;", "IVIMbInfo *mb, *ref_mb;", "int VAR_13 = VAR_1->mb_size * VAR_1->pitch;", "mb = VAR_2->mbs;", "ref_mb ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ], [ 24 ],...
23,295
static void decode_nal_sei_frame_packing_arrangement(HEVCContext *s) { GetBitContext *gb = &s->HEVClc->gb; int cancel, type, quincunx, content; get_ue_golomb(gb); // frame_packing_arrangement_id cancel = get_bits1(gb); // frame_packing_cancel_flag if (cancel == 0...
true
FFmpeg
180a0b1bcb522dab0ad828d8efb9673a6531d534
static void decode_nal_sei_frame_packing_arrangement(HEVCContext *s) { GetBitContext *gb = &s->HEVClc->gb; int cancel, type, quincunx, content; get_ue_golomb(gb); cancel = get_bits1(gb); if (cancel == 0) { type = get_bits(gb, 7); quin...
{ "code": [ " int cancel, type, quincunx, content;" ], "line_no": [ 7 ] }
static void FUNC_0(HEVCContext *VAR_0) { GetBitContext *gb = &VAR_0->HEVClc->gb; int VAR_1, VAR_2, VAR_3, VAR_4; get_ue_golomb(gb); VAR_1 = get_bits1(gb); if (VAR_1 == 0) { VAR_2 = get_bits(gb, 7); VAR_3 = get_bits1(gb); ...
[ "static void FUNC_0(HEVCContext *VAR_0)\n{", "GetBitContext *gb = &VAR_0->HEVClc->gb;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "get_ue_golomb(gb);", "VAR_1 = get_bits1(gb);", "if (VAR_1 == 0) {", "VAR_2 = get_bits(gb, 7);", "VAR_3 = get_bits1(gb);", "VAR_4 = get_bits(gb, 6);", "skip_bits(gb, 6);"...
[ 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 ], [ 17 ], [ 19 ], [ 21 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], ...
23,296
static int gdb_get_spe_reg(CPUState *env, uint8_t *mem_buf, int n) { if (n < 32) { #if defined(TARGET_PPC64) stl_p(mem_buf, env->gpr[n] >> 32); #else stl_p(mem_buf, env->gprh[n]); #endif return 4; } if (n == 33) { stq_p(mem_buf, env->spe_acc); return 8; ...
true
qemu
70976a7926b42d87e0c575412b85a8f5c1e48fad
static int gdb_get_spe_reg(CPUState *env, uint8_t *mem_buf, int n) { if (n < 32) { #if defined(TARGET_PPC64) stl_p(mem_buf, env->gpr[n] >> 32); #else stl_p(mem_buf, env->gprh[n]); #endif return 4; } if (n == 33) { stq_p(mem_buf, env->spe_acc); return 8; ...
{ "code": [ " if (n == 33) {", " if (n == 34) {", " if (n == 33) {", " if (n == 34) {", " if (n == 33) {", " if (n == 34) {", " if (n == 33) {", " if (n == 34) {" ], "line_no": [ 21, 29, 21, 29, 21, 29, 21, 29 ] }
static int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2) { if (VAR_2 < 32) { #if defined(TARGET_PPC64) stl_p(VAR_1, VAR_0->gpr[VAR_2] >> 32); #else stl_p(VAR_1, VAR_0->gprh[VAR_2]); #endif return 4; } if (VAR_2 == 33) { stq_p(VAR_1, VAR_0->spe_acc); r...
[ "static int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "if (VAR_2 < 32) {", "#if defined(TARGET_PPC64)\nstl_p(VAR_1, VAR_0->gpr[VAR_2] >> 32);", "#else\nstl_p(VAR_1, VAR_0->gprh[VAR_2]);", "#endif\nreturn 4;", "}", "if (VAR_2 == 33) {", "stq_p(VAR_1, VAR_0->spe_acc);", "return 8;", "}...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
23,297
static void virtio_pci_device_unplugged(DeviceState *d) { PCIDevice *pci_dev = PCI_DEVICE(d); VirtIOPCIProxy *proxy = VIRTIO_PCI(d); virtio_pci_stop_ioeventfd(proxy); msix_uninit_exclusive_bar(pci_dev); }
true
qemu
8b81bb3b069d4007bc44c8d5888d630b7f0b42ff
static void virtio_pci_device_unplugged(DeviceState *d) { PCIDevice *pci_dev = PCI_DEVICE(d); VirtIOPCIProxy *proxy = VIRTIO_PCI(d); virtio_pci_stop_ioeventfd(proxy); msix_uninit_exclusive_bar(pci_dev); }
{ "code": [ " PCIDevice *pci_dev = PCI_DEVICE(d);", " msix_uninit_exclusive_bar(pci_dev);" ], "line_no": [ 5, 13 ] }
static void FUNC_0(DeviceState *VAR_0) { PCIDevice *pci_dev = PCI_DEVICE(VAR_0); VirtIOPCIProxy *proxy = VIRTIO_PCI(VAR_0); virtio_pci_stop_ioeventfd(proxy); msix_uninit_exclusive_bar(pci_dev); }
[ "static void FUNC_0(DeviceState *VAR_0)\n{", "PCIDevice *pci_dev = PCI_DEVICE(VAR_0);", "VirtIOPCIProxy *proxy = VIRTIO_PCI(VAR_0);", "virtio_pci_stop_ioeventfd(proxy);", "msix_uninit_exclusive_bar(pci_dev);", "}" ]
[ 0, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
23,300
static int virtio_pci_stop_ioeventfd(VirtIOPCIProxy *proxy) { int n; if (!proxy->ioeventfd_started) { return 0; } for (n = 0; n < VIRTIO_PCI_QUEUE_MAX; n++) { if (!virtio_queue_get_num(proxy->vdev, n)) { continue; } virtio_pci_set_host_notifier...
true
qemu
b36e391441906c36ed0856b69de84001860402bf
static int virtio_pci_stop_ioeventfd(VirtIOPCIProxy *proxy) { int n; if (!proxy->ioeventfd_started) { return 0; } for (n = 0; n < VIRTIO_PCI_QUEUE_MAX; n++) { if (!virtio_queue_get_num(proxy->vdev, n)) { continue; } virtio_pci_set_host_notifier...
{ "code": [ " return 0;", " return 0;", " virtio_pci_set_host_notifier_internal(proxy, n, false);", "static int virtio_pci_stop_ioeventfd(VirtIOPCIProxy *proxy)", " return 0;", " virtio_pci_set_host_notifier_internal(proxy, n, false);", " return 0;" ], ...
static int FUNC_0(VirtIOPCIProxy *VAR_0) { int VAR_1; if (!VAR_0->ioeventfd_started) { return 0; } for (VAR_1 = 0; VAR_1 < VIRTIO_PCI_QUEUE_MAX; VAR_1++) { if (!virtio_queue_get_num(VAR_0->vdev, VAR_1)) { continue; } virtio_pci_set_host_notifie...
[ "static int FUNC_0(VirtIOPCIProxy *VAR_0)\n{", "int VAR_1;", "if (!VAR_0->ioeventfd_started) {", "return 0;", "}", "for (VAR_1 = 0; VAR_1 < VIRTIO_PCI_QUEUE_MAX; VAR_1++) {", "if (!virtio_queue_get_num(VAR_0->vdev, VAR_1)) {", "continue;", "}", "virtio_pci_set_host_notifier_fd_handler(VAR_0, VAR_1...
[ 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
23,301
static int ram_decompress_buf(RamDecompressState *s, uint8_t *buf, int len) { int ret, clen; s->zstream.avail_out = len; s->zstream.next_out = buf; while (s->zstream.avail_out > 0) { if (s->zstream.avail_in == 0) { if (qemu_get_be16(s->f) != RAM_CBLOCK_MAGIC) ...
true
qemu
94fb0909645de18481cc726ee0ec9b5afa861394
static int ram_decompress_buf(RamDecompressState *s, uint8_t *buf, int len) { int ret, clen; s->zstream.avail_out = len; s->zstream.next_out = buf; while (s->zstream.avail_out > 0) { if (s->zstream.avail_in == 0) { if (qemu_get_be16(s->f) != RAM_CBLOCK_MAGIC) ...
{ "code": [ " return 0;", "static int ram_decompress_buf(RamDecompressState *s, uint8_t *buf, int len)", " int ret, clen;", " s->zstream.avail_out = len;", " s->zstream.next_out = buf;", " while (s->zstream.avail_out > 0) {", " if (s->zstream.avail_in == 0) {", " ...
static int FUNC_0(RamDecompressState *VAR_0, uint8_t *VAR_1, int VAR_2) { int VAR_3, VAR_4; VAR_0->zstream.avail_out = VAR_2; VAR_0->zstream.next_out = VAR_1; while (VAR_0->zstream.avail_out > 0) { if (VAR_0->zstream.avail_in == 0) { if (qemu_get_be16(VAR_0->f) != RAM_CBLOCK...
[ "static int FUNC_0(RamDecompressState *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4;", "VAR_0->zstream.avail_out = VAR_2;", "VAR_0->zstream.next_out = VAR_1;", "while (VAR_0->zstream.avail_out > 0) {", "if (VAR_0->zstream.avail_in == 0) {", "if (qemu_get_be16(VAR_0->f) != RAM_CBLOCK_MAGIC)\n...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
23,302
void avfilter_free(AVFilterContext *filter) { int i; AVFilterLink *link; if (filter->filter->uninit) filter->filter->uninit(filter); for (i = 0; i < filter->input_count; i++) { if ((link = filter->inputs[i])) { if (link->src) link->src->outputs[li...
true
FFmpeg
e977ca2645cc6b23589ddf97ab08861064ba8792
void avfilter_free(AVFilterContext *filter) { int i; AVFilterLink *link; if (filter->filter->uninit) filter->filter->uninit(filter); for (i = 0; i < filter->input_count; i++) { if ((link = filter->inputs[i])) { if (link->src) link->src->outputs[li...
{ "code": [ " av_freep(&link);", " av_freep(&link);" ], "line_no": [ 31, 31 ] }
void FUNC_0(AVFilterContext *VAR_0) { int VAR_1; AVFilterLink *link; if (VAR_0->VAR_0->uninit) VAR_0->VAR_0->uninit(VAR_0); for (VAR_1 = 0; VAR_1 < VAR_0->input_count; VAR_1++) { if ((link = VAR_0->inputs[VAR_1])) { if (link->src) link->src->outpu...
[ "void FUNC_0(AVFilterContext *VAR_0)\n{", "int VAR_1;", "AVFilterLink *link;", "if (VAR_0->VAR_0->uninit)\nVAR_0->VAR_0->uninit(VAR_0);", "for (VAR_1 = 0; VAR_1 < VAR_0->input_count; VAR_1++) {", "if ((link = VAR_0->inputs[VAR_1])) {", "if (link->src)\nlink->src->outputs[link->srcpad - link->src->output...
[ 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 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], ...
23,303
void gtk_display_init(DisplayState *ds) { GtkDisplayState *s = g_malloc0(sizeof(*s)); gtk_init(NULL, NULL); ds->opaque = s; s->ds = ds; s->dcl.ops = &dcl_ops; s->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); #if GTK_CHECK_VERSION(3, 2, 0) s->vbox = gtk_box_new(GTK_ORIENTATION_...
true
qemu
21ef45d71221b4577330fe3aacfb06afad91ad46
void gtk_display_init(DisplayState *ds) { GtkDisplayState *s = g_malloc0(sizeof(*s)); gtk_init(NULL, NULL); ds->opaque = s; s->ds = ds; s->dcl.ops = &dcl_ops; s->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); #if GTK_CHECK_VERSION(3, 2, 0) s->vbox = gtk_box_new(GTK_ORIENTATION_...
{ "code": [ " ds->opaque = s;" ], "line_no": [ 13 ] }
void FUNC_0(DisplayState *VAR_0) { GtkDisplayState *s = g_malloc0(sizeof(*s)); gtk_init(NULL, NULL); VAR_0->opaque = s; s->VAR_0 = VAR_0; s->dcl.ops = &dcl_ops; s->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); #if GTK_CHECK_VERSION(3, 2, 0) s->vbox = gtk_box_new(GTK_ORIENTATIO...
[ "void FUNC_0(DisplayState *VAR_0)\n{", "GtkDisplayState *s = g_malloc0(sizeof(*s));", "gtk_init(NULL, NULL);", "VAR_0->opaque = s;", "s->VAR_0 = VAR_0;", "s->dcl.ops = &dcl_ops;", "s->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);", "#if GTK_CHECK_VERSION(3, 2, 0)\ns->vbox = gtk_box_new(GTK_ORIENTATION...
[ 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 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], ...
23,304
void vnc_display_init(DisplayState *ds) { VncDisplay *vs = g_malloc0(sizeof(*vs)); dcl = g_malloc0(sizeof(DisplayChangeListener)); ds->opaque = vs; dcl->idle = 1; vnc_display = vs; vs->lsock = -1; #ifdef CONFIG_VNC_WS vs->lwebsock = -1; #endif vs->ds = ds; QTAILQ_...
true
qemu
21ef45d71221b4577330fe3aacfb06afad91ad46
void vnc_display_init(DisplayState *ds) { VncDisplay *vs = g_malloc0(sizeof(*vs)); dcl = g_malloc0(sizeof(DisplayChangeListener)); ds->opaque = vs; dcl->idle = 1; vnc_display = vs; vs->lsock = -1; #ifdef CONFIG_VNC_WS vs->lwebsock = -1; #endif vs->ds = ds; QTAILQ_...
{ "code": [ " dcl = g_malloc0(sizeof(DisplayChangeListener));", " ds->opaque = vs;", " dcl->idle = 1;", " dcl->ops = &dcl_ops;", " register_displaychangelistener(ds, dcl);" ], "line_no": [ 9, 13, 15, 61, 63 ] }
void FUNC_0(DisplayState *VAR_0) { VncDisplay *vs = g_malloc0(sizeof(*vs)); dcl = g_malloc0(sizeof(DisplayChangeListener)); VAR_0->opaque = vs; dcl->idle = 1; vnc_display = vs; vs->lsock = -1; #ifdef CONFIG_VNC_WS vs->lwebsock = -1; #endif vs->VAR_0 = VAR_0; QTAIL...
[ "void FUNC_0(DisplayState *VAR_0)\n{", "VncDisplay *vs = g_malloc0(sizeof(*vs));", "dcl = g_malloc0(sizeof(DisplayChangeListener));", "VAR_0->opaque = vs;", "dcl->idle = 1;", "vnc_display = vs;", "vs->lsock = -1;", "#ifdef CONFIG_VNC_WS\nvs->lwebsock = -1;", "#endif\nvs->VAR_0 = VAR_0;", "QTAILQ_I...
[ 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27, 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43, 45 ], [ 49, 51 ], [ 55 ], [ 57 ], [ 61 ], ...
23,305
static int mpegts_handle_packet(AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags) { int ret; // We don't want ...
true
FFmpeg
078d43e23a7a3d64aafee8a58b380d3e139b3020
static int mpegts_handle_packet(AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags) { int ret; ...
{ "code": [ " return AVERROR(EINVAL);", " if (!data->ts)", " return AVERROR(EINVAL);" ], "line_no": [ 29, 27, 29 ] }
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, uint16_t VAR_7, int VAR_8) { int VAR_9; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, PayloadContext *VAR_1,\nAVStream *VAR_2, AVPacket *VAR_3, uint32_t *VAR_4,\nconst uint8_t *VAR_5, int VAR_6, uint16_t VAR_7,\nint VAR_8)\n{", "int VAR_9;", "*VAR_4 = RTP_NOTS_VALUE;", "if (!VAR_1->ts)\nreturn AVERROR(EINVAL);", "if (!VAR_5) {", "if (VAR_1->read_b...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 23 ], [ 27, 29 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49, 51 ], [ 53, 55 ], [ 57 ], [ 61 ], [ 69, 71 ], [ 73 ...
23,306
static int monitor_fdset_dup_fd_find_remove(int dup_fd, bool remove) { MonFdset *mon_fdset; MonFdsetFd *mon_fdset_fd_dup; QLIST_FOREACH(mon_fdset, &mon_fdsets, next) { QLIST_FOREACH(mon_fdset_fd_dup, &mon_fdset->dup_fds, next) { if (mon_fdset_fd_dup->fd == dup_fd) { ...
true
qemu
b3dd1b8c295636e64ceb14cdc4db6420d7319e38
static int monitor_fdset_dup_fd_find_remove(int dup_fd, bool remove) { MonFdset *mon_fdset; MonFdsetFd *mon_fdset_fd_dup; QLIST_FOREACH(mon_fdset, &mon_fdsets, next) { QLIST_FOREACH(mon_fdset_fd_dup, &mon_fdset->dup_fds, next) { if (mon_fdset_fd_dup->fd == dup_fd) { ...
{ "code": [ " return mon_fdset->id;", " return -1;" ], "line_no": [ 29, 37 ] }
static int FUNC_0(int VAR_0, bool VAR_1) { MonFdset *mon_fdset; MonFdsetFd *mon_fdset_fd_dup; QLIST_FOREACH(mon_fdset, &mon_fdsets, next) { QLIST_FOREACH(mon_fdset_fd_dup, &mon_fdset->dup_fds, next) { if (mon_fdset_fd_dup->fd == VAR_0) { if (VAR_1) { ...
[ "static int FUNC_0(int VAR_0, bool VAR_1)\n{", "MonFdset *mon_fdset;", "MonFdsetFd *mon_fdset_fd_dup;", "QLIST_FOREACH(mon_fdset, &mon_fdsets, next) {", "QLIST_FOREACH(mon_fdset_fd_dup, &mon_fdset->dup_fds, next) {", "if (mon_fdset_fd_dup->fd == VAR_0) {", "if (VAR_1) {", "QLIST_REMOVE(mon_fdset_fd_du...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
23,310
static always_inline void powerpc_excp (CPUState *env, int excp_model, int excp) { target_ulong msr, new_msr, vector; int srr0, srr1, asrr0, asrr1; #if defined(TARGET_PPC64H) int lpes0, lpes1, lev; lpes0 = (env->spr[SPR_LPCR] >> 1) & 1; lpes1 = (env-...
true
qemu
6f2d8978728c48ca46f5c01835438508aace5c64
static always_inline void powerpc_excp (CPUState *env, int excp_model, int excp) { target_ulong msr, new_msr, vector; int srr0, srr1, asrr0, asrr1; #if defined(TARGET_PPC64H) int lpes0, lpes1, lev; lpes0 = (env->spr[SPR_LPCR] >> 1) & 1; lpes1 = (env-...
{ "code": [ " if (vector == (target_ulong)-1) {" ], "line_no": [ 1203 ] }
static always_inline void FUNC_0 (CPUState *env, int excp_model, int excp) { target_ulong msr, new_msr, vector; int VAR_0, VAR_1, VAR_2, VAR_3; #if defined(TARGET_PPC64H) int lpes0, lpes1, lev; lpes0 = (env->spr[SPR_LPCR] >> 1) & 1; lpes1 = (env->spr...
[ "static always_inline void FUNC_0 (CPUState *env,\nint excp_model, int excp)\n{", "target_ulong msr, new_msr, vector;", "int VAR_0, VAR_1, VAR_2, VAR_3;", "#if defined(TARGET_PPC64H)\nint lpes0, lpes1, lev;", "lpes0 = (env->spr[SPR_LPCR] >> 1) & 1;", "lpes1 = (env->spr[SPR_LPCR] >> 2) & 1;", "#endif\nif...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49,...
23,311
static void compute_default_clut(AVSubtitleRect *rect, int w, int h) { uint8_t list[256] = {0}; uint8_t list_inv[256]; int counttab[256] = {0}; int count, i, x, y; #define V(x,y) rect->data[0][(x) + (y)*rect->linesize[0]] for (y = 0; y<h; y++) { for (x = 0; x<w; x++) { ...
true
FFmpeg
c82b8ef0e4f226423ddd644bfe37e6a15d070924
static void compute_default_clut(AVSubtitleRect *rect, int w, int h) { uint8_t list[256] = {0}; uint8_t list_inv[256]; int counttab[256] = {0}; int count, i, x, y; #define V(x,y) rect->data[0][(x) + (y)*rect->linesize[0]] for (y = 0; y<h; y++) { for (x = 0; x<w; x++) { ...
{ "code": [ " count = i - 1;" ], "line_no": [ 99 ] }
static void FUNC_0(AVSubtitleRect *VAR_0, int VAR_1, int VAR_2) { uint8_t list[256] = {0}; uint8_t list_inv[256]; int VAR_3[256] = {0}; int VAR_4, VAR_5, VAR_6, VAR_7; #define V(VAR_6,VAR_7) VAR_0->data[0][(VAR_6) + (VAR_7)*VAR_0->linesize[0]] for (VAR_7 = 0; VAR_7<VAR_2; VAR_7++) { ...
[ "static void FUNC_0(AVSubtitleRect *VAR_0, int VAR_1, int VAR_2)\n{", "uint8_t list[256] = {0};", "uint8_t list_inv[256];", "int VAR_3[256] = {0};", "int VAR_4, VAR_5, VAR_6, VAR_7;", "#define V(VAR_6,VAR_7) VAR_0->data[0][(VAR_6) + (VAR_7)*VAR_0->linesize[0]]\nfor (VAR_7 = 0; VAR_7<VAR_2; VAR_7++) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 41 ], [ 43 ], [ 45 ], [ 47 ...
23,312
static void qcow_close(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; g_free(s->l1_table); g_free(s->l2_cache); g_free(s->cluster_cache); g_free(s->cluster_data); migrate_del_blocker(s->migration_blocker); error_free(s->migration_blocker); }
true
qemu
0df93305f21712e975ab5df260cc5a91e5daafca
static void qcow_close(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; g_free(s->l1_table); g_free(s->l2_cache); g_free(s->cluster_cache); g_free(s->cluster_data); migrate_del_blocker(s->migration_blocker); error_free(s->migration_blocker); }
{ "code": [ " g_free(s->l2_cache);", " g_free(s->l2_cache);" ], "line_no": [ 11, 11 ] }
static void FUNC_0(BlockDriverState *VAR_0) { BDRVQcowState *s = VAR_0->opaque; g_free(s->l1_table); g_free(s->l2_cache); g_free(s->cluster_cache); g_free(s->cluster_data); migrate_del_blocker(s->migration_blocker); error_free(s->migration_blocker); }
[ "static void FUNC_0(BlockDriverState *VAR_0)\n{", "BDRVQcowState *s = VAR_0->opaque;", "g_free(s->l1_table);", "g_free(s->l2_cache);", "g_free(s->cluster_cache);", "g_free(s->cluster_data);", "migrate_del_blocker(s->migration_blocker);", "error_free(s->migration_blocker);", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ] ]
23,313
static int pvf_read_header(AVFormatContext *s) { char buffer[32]; AVStream *st; int bps, channels, sample_rate; avio_skip(s->pb, 5); ff_get_line(s->pb, buffer, sizeof(buffer)); if (sscanf(buffer, "%d %d %d", &channels, &sample_rate, &bps) ...
true
FFmpeg
169c1cfa928040b83f2ac8386333ec5e5cff3df7
static int pvf_read_header(AVFormatContext *s) { char buffer[32]; AVStream *st; int bps, channels, sample_rate; avio_skip(s->pb, 5); ff_get_line(s->pb, buffer, sizeof(buffer)); if (sscanf(buffer, "%d %d %d", &channels, &sample_rate, &bps) ...
{ "code": [ " if (channels <= 0 || bps <= 0 || sample_rate <= 0)" ], "line_no": [ 29 ] }
static int FUNC_0(AVFormatContext *VAR_0) { char VAR_1[32]; AVStream *st; int VAR_2, VAR_3, VAR_4; avio_skip(VAR_0->pb, 5); ff_get_line(VAR_0->pb, VAR_1, sizeof(VAR_1)); if (sscanf(VAR_1, "%d %d %d", &VAR_3, &VAR_4, &VAR_2) != 3) ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "char VAR_1[32];", "AVStream *st;", "int VAR_2, VAR_3, VAR_4;", "avio_skip(VAR_0->pb, 5);", "ff_get_line(VAR_0->pb, VAR_1, sizeof(VAR_1));", "if (sscanf(VAR_1, \"%d %d %d\",\n&VAR_3,\n&VAR_4,\n&VAR_2) != 3)\nreturn AVERROR_INVALIDDATA;", "if (VAR_3 <= 0 ...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23, 25 ], [ 29, 31 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ...
23,315
iscsi_readv_writev_bh_cb(void *p) { IscsiAIOCB *acb = p; qemu_bh_delete(acb->bh); if (!acb->canceled) { acb->common.cb(acb->common.opaque, acb->status); } qemu_aio_release(acb); if (acb->canceled) { return; } scsi_free_scsi_task(acb->task); acb->...
true
qemu
b20909195745c34a819aed14ae996b60ab0f591f
iscsi_readv_writev_bh_cb(void *p) { IscsiAIOCB *acb = p; qemu_bh_delete(acb->bh); if (!acb->canceled) { acb->common.cb(acb->common.opaque, acb->status); } qemu_aio_release(acb); if (acb->canceled) { return; } scsi_free_scsi_task(acb->task); acb->...
{ "code": [ " scsi_free_scsi_task(acb->task);", " acb->task = NULL;", " if (!acb->canceled) {", " if (acb->canceled) {", " scsi_free_scsi_task(acb->task);", " acb->task = NULL;", " if (acb->canceled) {", " if (acb->canceled) {", " if (acb->canceled) {", ...
FUNC_0(void *VAR_0) { IscsiAIOCB *acb = VAR_0; qemu_bh_delete(acb->bh); if (!acb->canceled) { acb->common.cb(acb->common.opaque, acb->status); } qemu_aio_release(acb); if (acb->canceled) { return; } scsi_free_scsi_task(acb->task); acb->task = NUL...
[ "FUNC_0(void *VAR_0)\n{", "IscsiAIOCB *acb = VAR_0;", "qemu_bh_delete(acb->bh);", "if (!acb->canceled) {", "acb->common.cb(acb->common.opaque, acb->status);", "}", "qemu_aio_release(acb);", "if (acb->canceled) {", "return;", "}", "scsi_free_scsi_task(acb->task);", "acb->task = NULL;", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ] ]
23,317
static void vmmouse_reset(DeviceState *d) { VMMouseState *s = container_of(d, VMMouseState, dev.qdev); s->status = 0xffff; s->queue_size = VMMOUSE_QUEUE_SIZE; }
true
qemu
069ab0eb8a46bc4ff6f4d4d81bf037d3441347da
static void vmmouse_reset(DeviceState *d) { VMMouseState *s = container_of(d, VMMouseState, dev.qdev); s->status = 0xffff; s->queue_size = VMMOUSE_QUEUE_SIZE; }
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0) { VMMouseState *s = container_of(VAR_0, VMMouseState, dev.qdev); s->status = 0xffff; s->queue_size = VMMOUSE_QUEUE_SIZE; }
[ "static void FUNC_0(DeviceState *VAR_0)\n{", "VMMouseState *s = container_of(VAR_0, VMMouseState, dev.qdev);", "s->status = 0xffff;", "s->queue_size = VMMOUSE_QUEUE_SIZE;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ] ]
23,318
static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, enum AVPixelFormat srcFormat, enum AVPixelFormat dstFormat, int srcW, int srcH, int dstW, int dstH, int flags, struct Results *r) { static enum AVPixelFormat cur_srcFormat; static int c...
true
FFmpeg
fac1ccbda1bb8441c7329a3ac18fbf04886da983
static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, enum AVPixelFormat srcFormat, enum AVPixelFormat dstFormat, int srcW, int srcH, int dstW, int dstH, int flags, struct Results *r) { static enum AVPixelFormat cur_srcFormat; static int c...
{ "code": [ " int dstStride[4];" ], "line_no": [ 23 ] }
static int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int VAR_2, int VAR_3, enum AVPixelFormat VAR_4, enum AVPixelFormat VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10, struct Results *VAR_11) { static enum AVPixelFormat VAR_12; static int ...
[ "static int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int VAR_2, int VAR_3,\nenum AVPixelFormat VAR_4, enum AVPixelFormat VAR_5,\nint VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10,\nstruct Results *VAR_11)\n{", "static enum AVPixelFormat VAR_12;", "static int VAR_13, VAR_14;", "static uint8_t *VAR_15[4];",...
[ 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, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
23,319
char *object_property_get_str(Object *obj, const char *name, Error **errp) { QObject *ret = object_property_get_qobject(obj, name, errp); QString *qstring; char *retval; if (!ret) { return NULL; } qstring = qobject_to_qstring(ret); if (!qstri...
true
qemu
560f19f162529d691619ac69ed032321c7f5f1fb
char *object_property_get_str(Object *obj, const char *name, Error **errp) { QObject *ret = object_property_get_qobject(obj, name, errp); QString *qstring; char *retval; if (!ret) { return NULL; } qstring = qobject_to_qstring(ret); if (!qstri...
{ "code": [ " QDECREF(qstring);" ], "line_no": [ 37 ] }
char *FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2) { QObject *ret = object_property_get_qobject(VAR_0, VAR_1, VAR_2); QString *qstring; char *VAR_3; if (!ret) { return NULL; } qstring = qobject_to_qstring(ret); if (!qstring) { ...
[ "char *FUNC_0(Object *VAR_0, const char *VAR_1,\nError **VAR_2)\n{", "QObject *ret = object_property_get_qobject(VAR_0, VAR_1, VAR_2);", "QString *qstring;", "char *VAR_3;", "if (!ret) {", "return NULL;", "}", "qstring = qobject_to_qstring(ret);", "if (!qstring) {", "error_setg(VAR_2, QERR_INVALID...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ] ]
23,320
ip_input(struct mbuf *m) { Slirp *slirp = m->slirp; register struct ip *ip; int hlen; DEBUG_CALL("ip_input"); DEBUG_ARG("m = %p", m); DEBUG_ARG("m_len = %d", m->m_len); if (m->m_len < sizeof (struct ip)) { return; } ip = mtod(m, struct ip *); if (ip->ip_v != IPVERSION) { goto bad; }...
true
qemu
99787f69cdd8147d0be67d71ec3058cce21e2444
ip_input(struct mbuf *m) { Slirp *slirp = m->slirp; register struct ip *ip; int hlen; DEBUG_CALL("ip_input"); DEBUG_ARG("m = %p", m); DEBUG_ARG("m_len = %d", m->m_len); if (m->m_len < sizeof (struct ip)) { return; } ip = mtod(m, struct ip *); if (ip->ip_v != IPVERSION) { goto bad; }...
{ "code": [], "line_no": [] }
FUNC_0(struct mbuf *VAR_0) { Slirp *slirp = VAR_0->slirp; register struct VAR_1 *VAR_1; int VAR_2; DEBUG_CALL("FUNC_0"); DEBUG_ARG("VAR_0 = %p", VAR_0); DEBUG_ARG("m_len = %d", VAR_0->m_len); if (VAR_0->m_len < sizeof (struct VAR_1)) { return; } VAR_1 = mtod(VAR_0, struct VAR_1 *); if (V...
[ "FUNC_0(struct mbuf *VAR_0)\n{", "Slirp *slirp = VAR_0->slirp;", "register struct VAR_1 *VAR_1;", "int VAR_2;", "DEBUG_CALL(\"FUNC_0\");", "DEBUG_ARG(\"VAR_0 = %p\", VAR_0);", "DEBUG_ARG(\"m_len = %d\", VAR_0->m_len);", "if (VAR_0->m_len < sizeof (struct VAR_1)) {", "return;", "}", "VAR_1 = mtod...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 59 ], [ 61 ...
23,321
static inline void RENAME(yuv2yuv1)(int16_t *lumSrc, int16_t *chrSrc, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW) { #ifdef HAVE_MMX if(uDest != NULL) { asm volatile( YSCALEYUV2YV121 :: "r" (chrSrc + chrDstW), "r" (uDest + chrDstW), "g" ((long)-chrDstW) : "...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
static inline void RENAME(yuv2yuv1)(int16_t *lumSrc, int16_t *chrSrc, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW) { #ifdef HAVE_MMX if(uDest != NULL) { asm volatile( YSCALEYUV2YV121 :: "r" (chrSrc + chrDstW), "r" (uDest + chrDstW), "g" ((long)-chrDstW) : "...
{ "code": [ "\t\t\t\t uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW)", "\t\t\t\t uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW)", "\t\t\t\t\"g\" ((long)-chrDstW)", "\t\t\t\t\"g\" ((long)-chrDstW)", "\t\t\"g\" ((long)-dstW)" ], "line_no": [ ...
static inline void FUNC_0(yuv2yuv1)(int16_t *lumSrc, int16_t *chrSrc, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW) { #ifdef HAVE_MMX if(uDest != NULL) { asm volatile( YSCALEYUV2YV121 :: "r" (chrSrc + chrDstW), "r" (uDest + chrDstW), "g" ((long)-chrDstW) : "...
[ "static inline void FUNC_0(yuv2yuv1)(int16_t *lumSrc, int16_t *chrSrc,\nuint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW)\n{", "#ifdef HAVE_MMX\nif(uDest != NULL)\n{", "asm volatile(\nYSCALEYUV2YV121\n:: \"r\" (chrSrc + chrDstW), \"r\" (uDest + chrDstW),\n\"g\" ((long)-chrDstW)\n: \"%\"REG_a...
[ 1, 0, 1, 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 ]
[ [ 1, 3, 5 ], [ 7, 9, 11 ], [ 13, 15, 17, 19, 21, 23 ], [ 27, 29, 31, 33, 35, 37 ], [ 39 ], [ 43, 45, 47, 49, 51, 53 ], [ 55, 57 ], [ 59 ], [ 61 ], [ 63 ], [...
23,322
static int read_dialogue(ASSContext *ass, AVBPrint *dst, const uint8_t *p, int64_t *start, int *duration) { int pos; int64_t end; int hh1, mm1, ss1, ms1; int hh2, mm2, ss2, ms2; if (sscanf(p, "Dialogue: %*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d,%n", &hh1, &...
true
FFmpeg
138902dfb60fbb87fb65a8c4800f8ac661394b72
static int read_dialogue(ASSContext *ass, AVBPrint *dst, const uint8_t *p, int64_t *start, int *duration) { int pos; int64_t end; int hh1, mm1, ss1, ms1; int hh2, mm2, ss2, ms2; if (sscanf(p, "Dialogue: %*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d,%n", &hh1, &...
{ "code": [ " int pos;", " &hh2, &mm2, &ss2, &ms2, &pos) >= 8) {" ], "line_no": [ 7, 21 ] }
static int FUNC_0(ASSContext *VAR_0, AVBPrint *VAR_1, const uint8_t *VAR_2, int64_t *VAR_3, int *VAR_4) { int VAR_5; int64_t end; int VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11, VAR_12, VAR_13; if (sscanf(VAR_2, "Dialogue: %*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d,%n",...
[ "static int FUNC_0(ASSContext *VAR_0, AVBPrint *VAR_1, const uint8_t *VAR_2,\nint64_t *VAR_3, int *VAR_4)\n{", "int VAR_5;", "int64_t end;", "int VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11, VAR_12, VAR_13;", "if (sscanf(VAR_2, \"Dialogue: %*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d,%n\",\n&VAR_6, &VAR_7, &V...
[ 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19, 21 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 53, 55, 57, 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ...
23,324
static void quantize_bands(int (*out)[2], const float *in, const float *scaled, int size, float Q34, int is_signed, int maxval) { int i; double qc; for (i = 0; i < size; i++) { qc = scaled[i] * Q34; out[i][0] = (int)FFMIN((int)qc, maxval); ...
true
FFmpeg
932e6a5a4c78250e3cab4f65215214fb0dbf51f7
static void quantize_bands(int (*out)[2], const float *in, const float *scaled, int size, float Q34, int is_signed, int maxval) { int i; double qc; for (i = 0; i < size; i++) { qc = scaled[i] * Q34; out[i][0] = (int)FFMIN((int)qc, maxval); ...
{ "code": [ " out[i][0] = (int)FFMIN((int)qc, maxval);", " out[i][1] = (int)FFMIN((int)(qc + 0.4054), maxval);" ], "line_no": [ 15, 17 ] }
static void FUNC_0(int (*VAR_0)[2], const float *VAR_1, const float *VAR_2, int VAR_3, float VAR_4, int VAR_5, int VAR_6) { int VAR_7; double VAR_8; for (VAR_7 = 0; VAR_7 < VAR_3; VAR_7++) { VAR_8 = VAR_2[VAR_7] * VAR_4; VAR_0[VAR_7][0] = (int)FFMIN((int)VAR...
[ "static void FUNC_0(int (*VAR_0)[2], const float *VAR_1, const float *VAR_2,\nint VAR_3, float VAR_4, int VAR_5, int VAR_6)\n{", "int VAR_7;", "double VAR_8;", "for (VAR_7 = 0; VAR_7 < VAR_3; VAR_7++) {", "VAR_8 = VAR_2[VAR_7] * VAR_4;", "VAR_0[VAR_7][0] = (int)FFMIN((int)VAR_8, VAR_6);", "VA...
[ 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
23,325
av_cold int vaapi_device_init(const char *device) { int err; err = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI, device, NULL, 0); if (err < 0) { av_log(&vaapi_log, AV_LOG_ERROR, "Failed to create a VAAPI device\n"); return err; } ret...
true
FFmpeg
df3b17eba47e635a694acb18b74e389194355f45
av_cold int vaapi_device_init(const char *device) { int err; err = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI, device, NULL, 0); if (err < 0) { av_log(&vaapi_log, AV_LOG_ERROR, "Failed to create a VAAPI device\n"); return err; } ret...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(const char *device) { int VAR_0; VAR_0 = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI, device, NULL, 0); if (VAR_0 < 0) { av_log(&vaapi_log, AV_LOG_ERROR, "Failed to create a VAAPI device\n"); return VAR_0; } return...
[ "av_cold int FUNC_0(const char *device)\n{", "int VAR_0;", "VAR_0 = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_VAAPI,\ndevice, NULL, 0);", "if (VAR_0 < 0) {", "av_log(&vaapi_log, AV_LOG_ERROR, \"Failed to create a VAAPI device\\n\");", "return VAR_0;", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4, 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ] ]
23,326
static int qemu_chr_open_pty(QemuOpts *opts, CharDriverState **_chr) { CharDriverState *chr; PtyCharDriver *s; struct termios tty; int slave_fd, len; #if defined(__OpenBSD__) || defined(__DragonFly__) char pty_name[PATH_MAX]; #define q_ptsname(x) pty_name #else char *pty_name = NULL; ...
true
qemu
a4e26048526d8d5b181f9a0a7d4f82b8441c5dfd
static int qemu_chr_open_pty(QemuOpts *opts, CharDriverState **_chr) { CharDriverState *chr; PtyCharDriver *s; struct termios tty; int slave_fd, len; #if defined(__OpenBSD__) || defined(__DragonFly__) char pty_name[PATH_MAX]; #define q_ptsname(x) pty_name #else char *pty_name = NULL; ...
{ "code": [ " int slave_fd, len;", " chr = g_malloc0(sizeof(CharDriverState));", " s = g_malloc0(sizeof(PtyCharDriver));", " if (openpty(&s->fd, &slave_fd, pty_name, NULL, NULL) < 0) {", " len = strlen(q_ptsname(s->fd)) + 5;", " snprintf(chr->filename, len, \"pty:%s\", q_ptsn...
static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1) { CharDriverState *chr; PtyCharDriver *s; struct termios VAR_2; int VAR_3, VAR_4; #if defined(__OpenBSD__) || defined(__DragonFly__) char VAR_5[PATH_MAX]; #define q_ptsname(x) VAR_5 #else char *VAR_5 = NULL; #define q_ptsname...
[ "static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)\n{", "CharDriverState *chr;", "PtyCharDriver *s;", "struct termios VAR_2;", "int VAR_3, VAR_4;", "#if defined(__OpenBSD__) || defined(__DragonFly__)\nchar VAR_5[PATH_MAX];", "#define q_ptsname(x) VAR_5\n#else\nchar *VAR_5 = NULL;", "#define ...
[ 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 19, 21 ], [ 23, 25, 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [...
23,327
static int smvjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const AVPixFmtDescriptor *desc; SMVJpegDecodeContext *s = avctx->priv_data; AVFrame* mjpeg_data = s->picture[0]; int i, cur_frame = 0, ret = 0; cur_frame = avpkt...
true
FFmpeg
df037fe107ccfae4b26ee0e46b638b052f6e49f8
static int smvjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const AVPixFmtDescriptor *desc; SMVJpegDecodeContext *s = avctx->priv_data; AVFrame* mjpeg_data = s->picture[0]; int i, cur_frame = 0, ret = 0; cur_frame = avpkt...
{ "code": [ " if (desc && mjpeg_data->height % (s->frames_per_jpeg << desc->log2_chroma_h)) {" ], "line_no": [ 45 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const AVPixFmtDescriptor *VAR_4; SMVJpegDecodeContext *s = VAR_0->priv_data; AVFrame* mjpeg_data = s->picture[0]; int VAR_5, VAR_6 = 0, VAR_7 = 0; VAR_6 = VAR_3->pts % s->frames_...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const AVPixFmtDescriptor *VAR_4;", "SMVJpegDecodeContext *s = VAR_0->priv_data;", "AVFrame* mjpeg_data = s->picture[0];", "int VAR_5, VAR_6 = 0, VAR_7 = 0;", "VAR_6 = VAR_3->pts % s->frames_per_jpeg;", "if (!VAR_6...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
23,328
static void tpm_display_backend_drivers(void) { int i; fprintf(stderr, "Supported TPM types (choose only one):\n"); for (i = 0; i < TPM_MAX_DRIVERS && be_drivers[i] != NULL; i++) { fprintf(stderr, "%12s %s\n", TpmType_lookup[be_drivers[i]->type], be_drivers[i]->desc()); ...
true
qemu
a9a72aeefbd3ef8bcbbeeccaf174ee10db2978ac
static void tpm_display_backend_drivers(void) { int i; fprintf(stderr, "Supported TPM types (choose only one):\n"); for (i = 0; i < TPM_MAX_DRIVERS && be_drivers[i] != NULL; i++) { fprintf(stderr, "%12s %s\n", TpmType_lookup[be_drivers[i]->type], be_drivers[i]->desc()); ...
{ "code": [ " int i;", " for (i = 0; i < TPM_MAX_DRIVERS && be_drivers[i] != NULL; i++) {", " int i;", " for (i = 0; i < TPM_MAX_DRIVERS && be_drivers[i] != NULL; i++) {", " TpmType_lookup[be_drivers[i]->type], be_drivers[i]->desc());", " int i;", " for (i ...
static void FUNC_0(void) { int VAR_0; fprintf(stderr, "Supported TPM types (choose only one):\n"); for (VAR_0 = 0; VAR_0 < TPM_MAX_DRIVERS && be_drivers[VAR_0] != NULL; VAR_0++) { fprintf(stderr, "%12s %s\n", TpmType_lookup[be_drivers[VAR_0]->type], be_drivers[VAR_0]->des...
[ "static void FUNC_0(void)\n{", "int VAR_0;", "fprintf(stderr, \"Supported TPM types (choose only one):\\n\");", "for (VAR_0 = 0; VAR_0 < TPM_MAX_DRIVERS && be_drivers[VAR_0] != NULL; VAR_0++) {", "fprintf(stderr, \"%12s %s\\n\",\nTpmType_lookup[be_drivers[VAR_0]->type], be_drivers[VAR_0]->desc());", "}"...
[ 0, 1, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
23,329
static void rtsp_parse_rtp_info(RTSPState *rt, const char *p) { int read = 0; char key[20], value[1024], url[1024] = ""; uint32_t seq = 0, rtptime = 0; for (;;) { p += strspn(p, SPACE_CHARS); if (!*p) break; get_word_sep(key, sizeof(key), "=", &p); ...
false
FFmpeg
907783f221ad9594a528681e30777705f11bf0b5
static void rtsp_parse_rtp_info(RTSPState *rt, const char *p) { int read = 0; char key[20], value[1024], url[1024] = ""; uint32_t seq = 0, rtptime = 0; for (;;) { p += strspn(p, SPACE_CHARS); if (!*p) break; get_word_sep(key, sizeof(key), "=", &p); ...
{ "code": [], "line_no": [] }
static void FUNC_0(RTSPState *VAR_0, const char *VAR_1) { int VAR_2 = 0; char VAR_3[20], VAR_4[1024], VAR_5[1024] = ""; uint32_t seq = 0, rtptime = 0; for (;;) { VAR_1 += strspn(VAR_1, SPACE_CHARS); if (!*VAR_1) break; get_word_sep(VAR_3, sizeof(VAR_3), "="...
[ "static void FUNC_0(RTSPState *VAR_0, const char *VAR_1)\n{", "int VAR_2 = 0;", "char VAR_3[20], VAR_4[1024], VAR_5[1024] = \"\";", "uint32_t seq = 0, rtptime = 0;", "for (;;) {", "VAR_1 += strspn(VAR_1, SPACE_CHARS);", "if (!*VAR_1)\nbreak;", "get_word_sep(VAR_3, sizeof(VAR_3), \"=\", &VAR_1);", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [...
23,330
static int bink_decode_plane(BinkContext *c, AVFrame *frame, BitstreamContext *bc, int plane_idx, int is_chroma) { int blk, ret; int i, j, bx, by; uint8_t *dst, *prev, *ref_start, *ref_end; int v, col[2]; const uint8_t *scan; LOCAL_ALIGNED_16(int16_t, block, ...
false
FFmpeg
fd92dafaff8844b5fedf94679b93d953939a7f7b
static int bink_decode_plane(BinkContext *c, AVFrame *frame, BitstreamContext *bc, int plane_idx, int is_chroma) { int blk, ret; int i, j, bx, by; uint8_t *dst, *prev, *ref_start, *ref_end; int v, col[2]; const uint8_t *scan; LOCAL_ALIGNED_16(int16_t, block, ...
{ "code": [], "line_no": [] }
static int FUNC_0(BinkContext *VAR_0, AVFrame *VAR_1, BitstreamContext *VAR_2, int VAR_3, int VAR_4) { int VAR_5, VAR_6; int VAR_7, VAR_8, VAR_9, VAR_10; uint8_t *dst, *prev, *ref_start, *ref_end; int VAR_11, VAR_12[2]; const uint8_t *VAR_13; LOCAL_ALIGNED_16...
[ "static int FUNC_0(BinkContext *VAR_0, AVFrame *VAR_1, BitstreamContext *VAR_2,\nint VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6;", "int VAR_7, VAR_8, VAR_9, VAR_10;", "uint8_t *dst, *prev, *ref_start, *ref_end;", "int VAR_11, VAR_12[2];", "const uint8_t *VAR_13;", "LOCAL_ALIGNED_16(int16_t, block, [64]);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49,...
23,331
static void opt_frame_pad_right(const char *arg) { frame_padright = atoi(arg); if (frame_padright < 0) { fprintf(stderr, "Incorrect right pad size\n"); av_exit(1); } }
false
FFmpeg
0c22311b56e66115675c4a96e4c78547886a4171
static void opt_frame_pad_right(const char *arg) { frame_padright = atoi(arg); if (frame_padright < 0) { fprintf(stderr, "Incorrect right pad size\n"); av_exit(1); } }
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { frame_padright = atoi(VAR_0); if (frame_padright < 0) { fprintf(stderr, "Incorrect right pad size\n"); av_exit(1); } }
[ "static void FUNC_0(const char *VAR_0)\n{", "frame_padright = atoi(VAR_0);", "if (frame_padright < 0) {", "fprintf(stderr, \"Incorrect right pad size\\n\");", "av_exit(1);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
23,332
static int dcadec_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { DCAContext *s = avctx->priv_data; AVFrame *frame = data; uint8_t *input = avpkt->data; int input_size = avpkt->size; int i, ret, prev_packet = s->packet; ...
false
FFmpeg
d1f558b3628d3ab99fd93a98b5758ef1be45a5da
static int dcadec_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { DCAContext *s = avctx->priv_data; AVFrame *frame = data; uint8_t *input = avpkt->data; int input_size = avpkt->size; int i, ret, prev_packet = s->packet; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { DCAContext *s = VAR_0->priv_data; AVFrame *frame = VAR_1; uint8_t *input = VAR_3->VAR_1; int VAR_4 = VAR_3->size; int VAR_5, VAR_6, VAR_7 = s->packet; if (VAR_4 < MIN_PAC...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "DCAContext *s = VAR_0->priv_data;", "AVFrame *frame = VAR_1;", "uint8_t *input = VAR_3->VAR_1;", "int VAR_4 = VAR_3->size;", "int VAR_5, VAR_6, VAR_7 = s->packet;", "if (VAR_4 < MIN_PACKET_SIZE || VAR_4 > MAX_PACK...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
23,333
static int iszero(const int16_t *c, int sz) { int n; for (n = 0; n < sz; n += 4) if (AV_RN32A(&c[n])) return 0; return 1; }
false
FFmpeg
69e456d7fbc5fff88acf747d135bf15c8e511c59
static int iszero(const int16_t *c, int sz) { int n; for (n = 0; n < sz; n += 4) if (AV_RN32A(&c[n])) return 0; return 1; }
{ "code": [], "line_no": [] }
static int FUNC_0(const int16_t *VAR_0, int VAR_1) { int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2 += 4) if (AV_RN32A(&VAR_0[VAR_2])) return 0; return 1; }
[ "static int FUNC_0(const int16_t *VAR_0, int VAR_1)\n{", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2 += 4)", "if (AV_RN32A(&VAR_0[VAR_2]))\nreturn 0;", "return 1;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ] ]
23,334
void avpriv_set_pts_info(AVStream *s, int pts_wrap_bits, unsigned int pts_num, unsigned int pts_den) { AVRational new_tb; if(av_reduce(&new_tb.num, &new_tb.den, pts_num, pts_den, INT_MAX)){ if(new_tb.num != pts_num) av_log(NULL, AV_LOG_DEBUG, "st:%d removing co...
false
FFmpeg
121d3875b692c83866928e271c4b6d20d680d1a6
void avpriv_set_pts_info(AVStream *s, int pts_wrap_bits, unsigned int pts_num, unsigned int pts_den) { AVRational new_tb; if(av_reduce(&new_tb.num, &new_tb.den, pts_num, pts_den, INT_MAX)){ if(new_tb.num != pts_num) av_log(NULL, AV_LOG_DEBUG, "st:%d removing co...
{ "code": [], "line_no": [] }
void FUNC_0(AVStream *VAR_0, int VAR_1, unsigned int VAR_2, unsigned int VAR_3) { AVRational new_tb; if(av_reduce(&new_tb.num, &new_tb.den, VAR_2, VAR_3, INT_MAX)){ if(new_tb.num != VAR_2) av_log(NULL, AV_LOG_DEBUG, "st:%d removing common factor %d from timebas...
[ "void FUNC_0(AVStream *VAR_0, int VAR_1,\nunsigned int VAR_2, unsigned int VAR_3)\n{", "AVRational new_tb;", "if(av_reduce(&new_tb.num, &new_tb.den, VAR_2, VAR_3, INT_MAX)){", "if(new_tb.num != VAR_2)\nav_log(NULL, AV_LOG_DEBUG, \"st:%d removing common factor %d from timebase\\n\", VAR_0->index, VAR_2/new_tb....
[ 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 ], [ 33 ] ]
23,335
static void pci_bridge_region_init(PCIBridge *br) { PCIBus *parent = br->dev.bus; uint16_t cmd = pci_get_word(br->dev.config + PCI_COMMAND); pci_bridge_init_alias(br, &br->alias_pref_mem, PCI_BASE_ADDRESS_MEM_PREFETCH, "pci_bridge_pref_mem", ...
true
qemu
b308c82cbda44e138ef990af64d44a5613c16092
static void pci_bridge_region_init(PCIBridge *br) { PCIBus *parent = br->dev.bus; uint16_t cmd = pci_get_word(br->dev.config + PCI_COMMAND); pci_bridge_init_alias(br, &br->alias_pref_mem, PCI_BASE_ADDRESS_MEM_PREFETCH, "pci_bridge_pref_mem", ...
{ "code": [ "static void pci_bridge_region_init(PCIBridge *br)", " pci_bridge_init_alias(br, &br->alias_pref_mem,", " pci_bridge_init_alias(br, &br->alias_mem,", " pci_bridge_init_alias(br, &br->alias_io," ], "line_no": [ 1, 11, 23, 35 ] }
static void FUNC_0(PCIBridge *VAR_0) { PCIBus *parent = VAR_0->dev.bus; uint16_t cmd = pci_get_word(VAR_0->dev.config + PCI_COMMAND); pci_bridge_init_alias(VAR_0, &VAR_0->alias_pref_mem, PCI_BASE_ADDRESS_MEM_PREFETCH, "pci_bridge_pref_mem", ...
[ "static void FUNC_0(PCIBridge *VAR_0)\n{", "PCIBus *parent = VAR_0->dev.bus;", "uint16_t cmd = pci_get_word(VAR_0->dev.config + PCI_COMMAND);", "pci_bridge_init_alias(VAR_0, &VAR_0->alias_pref_mem,\nPCI_BASE_ADDRESS_MEM_PREFETCH,\n\"pci_bridge_pref_mem\",\n&VAR_0->address_space_mem,\nparent->address_space_mem...
[ 1, 0, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15, 17, 19, 21 ], [ 23, 25, 27, 29, 31, 33 ], [ 35, 37, 39, 41, 43, 45 ], [ 49 ] ]
23,336
static void ecc_reset(void *opaque) { ECCState *s = opaque; int i; s->regs[ECC_MER] &= (ECC_MER_VER | ECC_MER_IMPL); s->regs[ECC_MER] |= ECC_MER_MRR; s->regs[ECC_MDR] = 0x20; s->regs[ECC_MFSR] = 0; s->regs[ECC_VCR] = 0; s->regs[ECC_MFAR0] = 0x07c00000; s->regs[ECC_MFAR1] ...
true
qemu
8f2ad0a3fc5e3569183d44bf1c7fcb95294be4c0
static void ecc_reset(void *opaque) { ECCState *s = opaque; int i; s->regs[ECC_MER] &= (ECC_MER_VER | ECC_MER_IMPL); s->regs[ECC_MER] |= ECC_MER_MRR; s->regs[ECC_MDR] = 0x20; s->regs[ECC_MFSR] = 0; s->regs[ECC_VCR] = 0; s->regs[ECC_MFAR0] = 0x07c00000; s->regs[ECC_MFAR1] ...
{ "code": [ " int i;", " for (i = 1; i < ECC_NREGS; i++)", " s->regs[i] = 0;" ], "line_no": [ 7, 33, 35 ] }
static void FUNC_0(void *VAR_0) { ECCState *s = VAR_0; int VAR_1; s->regs[ECC_MER] &= (ECC_MER_VER | ECC_MER_IMPL); s->regs[ECC_MER] |= ECC_MER_MRR; s->regs[ECC_MDR] = 0x20; s->regs[ECC_MFSR] = 0; s->regs[ECC_VCR] = 0; s->regs[ECC_MFAR0] = 0x07c00000; s->regs[ECC_MFAR1] =...
[ "static void FUNC_0(void *VAR_0)\n{", "ECCState *s = VAR_0;", "int VAR_1;", "s->regs[ECC_MER] &= (ECC_MER_VER | ECC_MER_IMPL);", "s->regs[ECC_MER] |= ECC_MER_MRR;", "s->regs[ECC_MDR] = 0x20;", "s->regs[ECC_MFSR] = 0;", "s->regs[ECC_VCR] = 0;", "s->regs[ECC_MFAR0] = 0x07c00000;", "s->regs[ECC_MFAR1...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ] ]
23,337
static inline int16_t mipsdsp_add_i16(int16_t a, int16_t b, CPUMIPSState *env) { int16_t tempI; tempI = a + b; if (MIPSDSP_OVERFLOW(a, b, tempI, 0x8000)) { set_DSPControl_overflow_flag(1, 20, env); } return tempI; }
true
qemu
20c334a797bf46a4ee59a6e42be6d5e7c3cda585
static inline int16_t mipsdsp_add_i16(int16_t a, int16_t b, CPUMIPSState *env) { int16_t tempI; tempI = a + b; if (MIPSDSP_OVERFLOW(a, b, tempI, 0x8000)) { set_DSPControl_overflow_flag(1, 20, env); } return tempI; }
{ "code": [ " if (MIPSDSP_OVERFLOW(a, b, tempI, 0x8000)) {" ], "line_no": [ 13 ] }
static inline int16_t FUNC_0(int16_t a, int16_t b, CPUMIPSState *env) { int16_t tempI; tempI = a + b; if (MIPSDSP_OVERFLOW(a, b, tempI, 0x8000)) { set_DSPControl_overflow_flag(1, 20, env); } return tempI; }
[ "static inline int16_t FUNC_0(int16_t a, int16_t b, CPUMIPSState *env)\n{", "int16_t tempI;", "tempI = a + b;", "if (MIPSDSP_OVERFLOW(a, b, tempI, 0x8000)) {", "set_DSPControl_overflow_flag(1, 20, env);", "}", "return tempI;", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
23,338
void cpu_loop(CPUMBState *env) { int trapnr, ret; target_siginfo_t info; while (1) { trapnr = cpu_mb_exec (env); switch (trapnr) { case 0xaa: { info.si_signo = SIGSEGV; info.si_errno = 0; /* XXX: check env->...
true
qemu
d7dce494769e47c9a1eec6f55578d3acdfab888b
void cpu_loop(CPUMBState *env) { int trapnr, ret; target_siginfo_t info; while (1) { trapnr = cpu_mb_exec (env); switch (trapnr) { case 0xaa: { info.si_signo = SIGSEGV; info.si_errno = 0; i...
{ "code": [ " env->sregs[SR_PC] = env->regs[14];" ], "line_no": [ 69 ] }
void FUNC_0(CPUMBState *VAR_0) { int VAR_1, VAR_2; target_siginfo_t info; while (1) { VAR_1 = cpu_mb_exec (VAR_0); switch (VAR_1) { case 0xaa: { info.si_signo = SIGSEGV; info.si_errno = 0; ...
[ "void FUNC_0(CPUMBState *VAR_0)\n{", "int VAR_1, VAR_2;", "target_siginfo_t info;", "while (1) {", "VAR_1 = cpu_mb_exec (VAR_0);", "switch (VAR_1) {", "case 0xaa:\n{", "info.si_signo = SIGSEGV;", "info.si_errno = 0;", "info.si_code = TARGET_SEGV_MAPERR;", "info._sifields._sigfault._addr = 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 41 ], [ 43, 47 ], [ 49, 51, 53, 55...
23,340
static void RENAME(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, uint8_t *dest, int width, int height, int src1Stride, int src2Stride, int dstStride) { int h; for (h=0; h < height; h++) { int w; if (w...
true
FFmpeg
80bfce35ccd11458e97f68f417fc094c5347070c
static void RENAME(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, uint8_t *dest, int width, int height, int src1Stride, int src2Stride, int dstStride) { int h; for (h=0; h < height; h++) { int w; if (w...
{ "code": [ " if (width >= 16)" ], "line_no": [ 19 ] }
static void FUNC_0(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, uint8_t *dest, int width, int height, int src1Stride, int src2Stride, int dstStride) { int VAR_0; for (VAR_0=0; VAR_0 < height; VAR_0++) { int w; ...
[ "static void FUNC_0(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, uint8_t *dest,\nint width, int height, int src1Stride,\nint src2Stride, int dstStride)\n{", "int VAR_0;", "for (VAR_0=0; VAR_0 < height; VAR_0++) {", "int w;", "if (width >= 16)\n#if COMPILE_TEMPLATE_SSE2\n__asm__(\n\"xor ...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57 ], [ 59, 61, 63, 65, 67, 69, 71, 73,...
23,341
static int dvbsub_parse_page_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size, AVSubtitle *sub, int *got_output) { DVBSubContext *ctx = avctx->priv_data; DVBSubRegionDisplay *display; DVBSubRegionDisplay *tmp_display_list, **tmp_ptr; const uint8_t *buf...
true
FFmpeg
7c10068da10aa288195f5eb5d7e34eb2d8ff7447
static int dvbsub_parse_page_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size, AVSubtitle *sub, int *got_output) { DVBSubContext *ctx = avctx->priv_data; DVBSubRegionDisplay *display; DVBSubRegionDisplay *tmp_display_list, **tmp_ptr; const uint8_t *buf...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2, AVSubtitle *VAR_3, int *VAR_4) { DVBSubContext *ctx = VAR_0->priv_data; DVBSubRegionDisplay *display; DVBSubRegionDisplay *tmp_display_list, **tmp_ptr; const uint8_t *VAR_5 = VAR_1 + VAR_2; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2, AVSubtitle *VAR_3, int *VAR_4)\n{", "DVBSubContext *ctx = VAR_0->priv_data;", "DVBSubRegionDisplay *display;", "DVBSubRegionDisplay *tmp_display_list, **tmp_ptr;", "const uint8_t *VAR_5 = VAR_1 + VAR_2;", "int VAR_6;", "int VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,342
static inline void ls_decode_line(JLSState *state, MJpegDecodeContext *s, void *last, void *dst, int last2, int w, int stride, int comp, int bits) { int i, x = 0; int Ra, Rb, Rc, Rd; int D0, D1, D2; while (x < w) { int err, pred...
true
FFmpeg
f80224ed19a4c012549fd460d529c7c04e68cf21
static inline void ls_decode_line(JLSState *state, MJpegDecodeContext *s, void *last, void *dst, int last2, int w, int stride, int comp, int bits) { int i, x = 0; int Ra, Rb, Rc, Rd; int D0, D1, D2; while (x < w) { int err, pred...
{ "code": [], "line_no": [] }
static inline void FUNC_0(JLSState *VAR_0, MJpegDecodeContext *VAR_1, void *VAR_2, void *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8) { int VAR_9, VAR_10 = 0; int VAR_11, VAR_12, VAR_13, VAR_14; int VAR_15, VAR_16, VAR_17; ...
[ "static inline void FUNC_0(JLSState *VAR_0, MJpegDecodeContext *VAR_1,\nvoid *VAR_2, void *VAR_3, int VAR_4, int VAR_5,\nint VAR_6, int VAR_7, int VAR_8)\n{", "int VAR_9, VAR_10 = 0;", "int VAR_11, VAR_12, VAR_13, VAR_14;", "int VAR_15, VAR_16, VAR_17;", "while (VAR_10 < VAR_5) {", "int VAR_18, VAR_19;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 19, 20, 21 ], [ 22 ], [ 23 ], [ 25 ], [ 26 ],...
23,343
static int finish_frame(AVCodecContext *avctx, AVFrame *pict) { RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; int got_picture = 0; ff_er_frame_end(s); ff_MPV_frame_end(s); if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME)) ff_thread_repo...
true
FFmpeg
5484170ac729d739b2747979408f47bd9aa31c7c
static int finish_frame(AVCodecContext *avctx, AVFrame *pict) { RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; int got_picture = 0; ff_er_frame_end(s); ff_MPV_frame_end(s); if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME)) ff_thread_repo...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1) { RV34DecContext *r = VAR_0->priv_data; MpegEncContext *s = &r->s; int VAR_2 = 0; ff_er_frame_end(s); ff_MPV_frame_end(s); if (HAVE_THREADS && (s->VAR_0->active_thread_type & FF_THREAD_FRAME)) ff_thread_report_progress...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{", "RV34DecContext *r = VAR_0->priv_data;", "MpegEncContext *s = &r->s;", "int VAR_2 = 0;", "ff_er_frame_end(s);", "ff_MPV_frame_end(s);", "if (HAVE_THREADS && (s->VAR_0->active_thread_type & FF_THREAD_FRAME))\nff_thread_report_progress(&s->cur...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 20, 22 ], [ 26 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 40, 42 ], [ 46 ], [ 48 ] ]
23,345
static int s337m_probe(AVProbeData *p) { uint64_t state = 0; int markers[3] = { 0 }; int i, sum, max, data_type, data_size, offset; uint8_t *buf; for (buf = p->buf; buf < p->buf + p->buf_size; buf++) { state = (state << 8) | *buf; if (!IS_LE_MARKER(state)) cont...
false
FFmpeg
6029b8a6bbc8bbf7799108582e71078ec0bde1cf
static int s337m_probe(AVProbeData *p) { uint64_t state = 0; int markers[3] = { 0 }; int i, sum, max, data_type, data_size, offset; uint8_t *buf; for (buf = p->buf; buf < p->buf + p->buf_size; buf++) { state = (state << 8) | *buf; if (!IS_LE_MARKER(state)) cont...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { uint64_t state = 0; int VAR_1[3] = { 0 }; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; uint8_t *buf; for (buf = VAR_0->buf; buf < VAR_0->buf + VAR_0->buf_size; buf++) { state = (state << 8) | *buf; if (!IS_LE_MARKER(state)) ...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "uint64_t state = 0;", "int VAR_1[3] = { 0 };", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "uint8_t *buf;", "for (buf = VAR_0->buf; buf < VAR_0->buf + VAR_0->buf_size; buf++) {", "state = (state << 8) | *buf;", "if (!IS_LE_MARKER(state))\ncontinue;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 51 ...
23,346
static inline void RENAME(yuv2nv12X)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, int dstW, int chrDstW, ...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(yuv2nv12X)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, int dstW, int chrDstW, ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(yuv2nv12X)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, int dstW, int chrDstW, ...
[ "static inline void FUNC_0(yuv2nv12X)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize,\nconst int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize,\nuint8_t *dest, uint8_t *uDest, int dstW, int chrDstW, enum PixelFormat dstFormat)\n{", "yuv2nv12XinC(lumFilter, lumSrc, l...
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11, 13 ], [ 15 ] ]
23,347
static int usb_bt_handle_control(USBDevice *dev, USBPacket *p, int request, int value, int index, int length, uint8_t *data) { struct USBBtState *s = (struct USBBtState *) dev->opaque; int ret; ret = usb_desc_handle_control(dev, p, request, value, index, length, data); if (ret >= ...
true
qemu
4f4321c11ff6e98583846bfd6f0e81954924b003
static int usb_bt_handle_control(USBDevice *dev, USBPacket *p, int request, int value, int index, int length, uint8_t *data) { struct USBBtState *s = (struct USBBtState *) dev->opaque; int ret; ret = usb_desc_handle_control(dev, p, request, value, index, length, data); if (ret >= ...
{ "code": [ " usb_bt_hci_cmd_complete, data, length);" ], "line_no": [ 121 ] }
static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, uint8_t *VAR_6) { struct USBBtState *VAR_7 = (struct USBBtState *) VAR_0->opaque; int VAR_8; VAR_8 = usb_desc_handle_control(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6); if (VAR_...
[ "static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5, uint8_t *VAR_6)\n{", "struct USBBtState *VAR_7 = (struct USBBtState *) VAR_0->opaque;", "int VAR_8;", "VAR_8 = usb_desc_handle_control(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6);", "if (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, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
23,348
int get_filtered_video_frame(AVFilterContext *ctx, AVFrame *frame, AVFilterBufferRef **picref_ptr, AVRational *tb) { int ret; AVFilterBufferRef *picref; if ((ret = avfilter_request_frame(ctx->inputs[0])) < 0) return ret; if (!(picref = ctx->inputs[0]->cur_b...
true
FFmpeg
0d65e0f8cb0f924be95650f50f3d05d0b223aceb
int get_filtered_video_frame(AVFilterContext *ctx, AVFrame *frame, AVFilterBufferRef **picref_ptr, AVRational *tb) { int ret; AVFilterBufferRef *picref; if ((ret = avfilter_request_frame(ctx->inputs[0])) < 0) return ret; if (!(picref = ctx->inputs[0]->cur_b...
{ "code": [], "line_no": [] }
int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1, AVFilterBufferRef **VAR_2, AVRational *VAR_3) { int VAR_4; AVFilterBufferRef *picref; if ((VAR_4 = avfilter_request_frame(VAR_0->inputs[0])) < 0) return VAR_4; if (!(picref = VAR_0->inputs[0]->cur_buf)) ...
[ "int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1,\nAVFilterBufferRef **VAR_2, AVRational *VAR_3)\n{", "int VAR_4;", "AVFilterBufferRef *picref;", "if ((VAR_4 = avfilter_request_frame(VAR_0->inputs[0])) < 0)\nreturn VAR_4;", "if (!(picref = VAR_0->inputs[0]->cur_buf))\nreturn AVERROR(ENOENT);", "*VAR_2 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 14, 16 ], [ 18, 20 ], [ 22 ], [ 24 ], [ 26 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 48 ], [ 50 ] ]
23,349
static int vmxnet3_post_load(void *opaque, int version_id) { VMXNET3State *s = opaque; PCIDevice *d = PCI_DEVICE(s); vmxnet_tx_pkt_init(&s->tx_pkt, s->max_tx_frags, s->peer_has_vhdr); vmxnet_rx_pkt_init(&s->rx_pkt, s->peer_has_vhdr); if (s->msix_used) { if (!vmxnet3_use_msix_vectors(s, VMXN...
true
qemu
3c99afc779c2c78718a565ad8c5e98de7c2c7484
static int vmxnet3_post_load(void *opaque, int version_id) { VMXNET3State *s = opaque; PCIDevice *d = PCI_DEVICE(s); vmxnet_tx_pkt_init(&s->tx_pkt, s->max_tx_frags, s->peer_has_vhdr); vmxnet_rx_pkt_init(&s->rx_pkt, s->peer_has_vhdr); if (s->msix_used) { if (!vmxnet3_use_msix_vectors(s, VMXN...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, int VAR_1) { VMXNET3State *s = VAR_0; PCIDevice *d = PCI_DEVICE(s); vmxnet_tx_pkt_init(&s->tx_pkt, s->max_tx_frags, s->peer_has_vhdr); vmxnet_rx_pkt_init(&s->rx_pkt, s->peer_has_vhdr); if (s->msix_used) { if (!vmxnet3_use_msix_vectors(s, VMXNET3_MAX_INTRS)) { ...
[ "static int FUNC_0(void *VAR_0, int VAR_1)\n{", "VMXNET3State *s = VAR_0;", "PCIDevice *d = PCI_DEVICE(s);", "vmxnet_tx_pkt_init(&s->tx_pkt, s->max_tx_frags, s->peer_has_vhdr);", "vmxnet_rx_pkt_init(&s->rx_pkt, s->peer_has_vhdr);", "if (s->msix_used) {", "if (!vmxnet3_use_msix_vectors(s, VMXNET3_MAX_IN...
[ 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 ] ]
23,350
static int hq_decode_block(HQContext *c, GetBitContext *gb, int16_t block[64], int qsel, int is_chroma, int is_hqa) { const int32_t *q; int val, pos = 1; memset(block, 0, 64 * sizeof(*block)); if (!is_hqa) { block[0] = get_sbits(gb, 9) * 64; q = ff_...
true
FFmpeg
3d9cb583c8f005a260d255853ef5f1c21e8599a0
static int hq_decode_block(HQContext *c, GetBitContext *gb, int16_t block[64], int qsel, int is_chroma, int is_hqa) { const int32_t *q; int val, pos = 1; memset(block, 0, 64 * sizeof(*block)); if (!is_hqa) { block[0] = get_sbits(gb, 9) * 64; q = ff_...
{ "code": [ " block[ff_zigzag_direct[pos]] = (ff_hq_ac_syms[val] * q[pos]) >> 12;" ], "line_no": [ 49 ] }
static int FUNC_0(HQContext *VAR_0, GetBitContext *VAR_1, int16_t VAR_2[64], int VAR_3, int VAR_4, int VAR_5) { const int32_t *VAR_6; int VAR_7, VAR_8 = 1; memset(VAR_2, 0, 64 * sizeof(*VAR_2)); if (!VAR_5) { VAR_2[0] = get_sbits(VAR_1, 9) * 64; VAR...
[ "static int FUNC_0(HQContext *VAR_0, GetBitContext *VAR_1, int16_t VAR_2[64],\nint VAR_3, int VAR_4, int VAR_5)\n{", "const int32_t *VAR_6;", "int VAR_7, VAR_8 = 1;", "memset(VAR_2, 0, 64 * sizeof(*VAR_2));", "if (!VAR_5) {", "VAR_2[0] = get_sbits(VAR_1, 9) * 64;", "VAR_6 = ff_hq_quants[VAR_3][VAR_4][ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [...
23,351
void dsputil_init_alpha(void) { put_pixels_tab[0][0] = put_pixels16_axp_asm; put_pixels_tab[0][1] = put_pixels16_x2_axp; put_pixels_tab[0][2] = put_pixels16_y2_axp; put_pixels_tab[0][3] = put_pixels16_xy2_axp; put_no_rnd_pixels_tab[0][0] = put_pixels16_axp_asm; put_no_rnd_pixels_tab[0][...
false
FFmpeg
af19f78f2fe2b969104d4419efd25fdee90a2814
void dsputil_init_alpha(void) { put_pixels_tab[0][0] = put_pixels16_axp_asm; put_pixels_tab[0][1] = put_pixels16_x2_axp; put_pixels_tab[0][2] = put_pixels16_y2_axp; put_pixels_tab[0][3] = put_pixels16_xy2_axp; put_no_rnd_pixels_tab[0][0] = put_pixels16_axp_asm; put_no_rnd_pixels_tab[0][...
{ "code": [], "line_no": [] }
void FUNC_0(void) { put_pixels_tab[0][0] = put_pixels16_axp_asm; put_pixels_tab[0][1] = put_pixels16_x2_axp; put_pixels_tab[0][2] = put_pixels16_y2_axp; put_pixels_tab[0][3] = put_pixels16_xy2_axp; put_no_rnd_pixels_tab[0][0] = put_pixels16_axp_asm; put_no_rnd_pixels_tab[0][1] = put_no_...
[ "void FUNC_0(void)\n{", "put_pixels_tab[0][0] = put_pixels16_axp_asm;", "put_pixels_tab[0][1] = put_pixels16_x2_axp;", "put_pixels_tab[0][2] = put_pixels16_y2_axp;", "put_pixels_tab[0][3] = put_pixels16_xy2_axp;", "put_no_rnd_pixels_tab[0][0] = put_pixels16_axp_asm;", "put_no_rnd_pixels_tab[0][1] = put_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
23,352
address_space_translate_for_iotlb(CPUState *cpu, int asidx, hwaddr addr, hwaddr *xlat, hwaddr *plen) { MemoryRegionSection *section; AddressSpaceDispatch *d = cpu->cpu_ases[asidx].memory_dispatch; section = address_space_translate_internal(d, addr, xlat, plen, false)...
true
qemu
f35e44e7645edbb08e35b111c10c2fc57e2905c7
address_space_translate_for_iotlb(CPUState *cpu, int asidx, hwaddr addr, hwaddr *xlat, hwaddr *plen) { MemoryRegionSection *section; AddressSpaceDispatch *d = cpu->cpu_ases[asidx].memory_dispatch; section = address_space_translate_internal(d, addr, xlat, plen, false)...
{ "code": [ " AddressSpaceDispatch *d = cpu->cpu_ases[asidx].memory_dispatch;" ], "line_no": [ 9 ] }
FUNC_0(CPUState *VAR_0, int VAR_1, hwaddr VAR_2, hwaddr *VAR_3, hwaddr *VAR_4) { MemoryRegionSection *section; AddressSpaceDispatch *d = VAR_0->cpu_ases[VAR_1].memory_dispatch; section = address_space_translate_internal(d, VAR_2, VAR_3, VAR_4, false); assert(!...
[ "FUNC_0(CPUState *VAR_0, int VAR_1, hwaddr VAR_2,\nhwaddr *VAR_3, hwaddr *VAR_4)\n{", "MemoryRegionSection *section;", "AddressSpaceDispatch *d = VAR_0->cpu_ases[VAR_1].memory_dispatch;", "section = address_space_translate_internal(d, VAR_2, VAR_3, VAR_4, false);", "assert(!section->mr->iommu_ops);", "ret...
[ 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ] ]
23,353
static struct pxa2xx_fir_s *pxa2xx_fir_init(target_phys_addr_t base, qemu_irq irq, struct pxa2xx_dma_state_s *dma, CharDriverState *chr) { int iomemtype; struct pxa2xx_fir_s *s = (struct pxa2xx_fir_s *) qemu_mallocz(sizeof(struct pxa2xx_fir_s)); s->base =...
true
qemu
187337f8b0ec0813dd3876d1efe37d415fb81c2e
static struct pxa2xx_fir_s *pxa2xx_fir_init(target_phys_addr_t base, qemu_irq irq, struct pxa2xx_dma_state_s *dma, CharDriverState *chr) { int iomemtype; struct pxa2xx_fir_s *s = (struct pxa2xx_fir_s *) qemu_mallocz(sizeof(struct pxa2xx_fir_s)); s->base =...
{ "code": [ " cpu_register_physical_memory(s->base, 0xfff, iomemtype);" ], "line_no": [ 35 ] }
static struct pxa2xx_fir_s *FUNC_0(target_phys_addr_t VAR_0, qemu_irq VAR_1, struct pxa2xx_dma_state_s *VAR_2, CharDriverState *VAR_3) { int VAR_4; struct pxa2xx_fir_s *VAR_5 = (struct pxa2xx_fir_s *) qemu_mallocz(sizeof(struct pxa2xx_fir_s)); VAR_5->VAR_...
[ "static struct pxa2xx_fir_s *FUNC_0(target_phys_addr_t VAR_0,\nqemu_irq VAR_1, struct pxa2xx_dma_state_s *VAR_2,\nCharDriverState *VAR_3)\n{", "int VAR_4;", "struct pxa2xx_fir_s *VAR_5 = (struct pxa2xx_fir_s *)\nqemu_mallocz(sizeof(struct pxa2xx_fir_s));", "VAR_5->VAR_0 = VAR_0;", "VAR_5->VAR_1 = VAR_1;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 39, 41, 43 ], [ 47 ], [ 51 ], [ 53 ] ]
23,355
static ssize_t nbd_co_receive_request(NBDRequest *req, struct nbd_request *request) { NBDClient *client = req->client; int csock = client->sock; ssize_t rc; client->recv_coroutine = qemu_coroutine_self(); if (nbd_receive_request(csock, request) < 0) { rc = -EIO; goto out; ...
true
qemu
7fe7b68b32ba609faeeee03556aac0eb1b187c91
static ssize_t nbd_co_receive_request(NBDRequest *req, struct nbd_request *request) { NBDClient *client = req->client; int csock = client->sock; ssize_t rc; client->recv_coroutine = qemu_coroutine_self(); if (nbd_receive_request(csock, request) < 0) { rc = -EIO; goto out; ...
{ "code": [ " if (nbd_receive_request(csock, request) < 0) {", " rc = -EIO;" ], "line_no": [ 15, 17 ] }
static ssize_t FUNC_0(NBDRequest *req, struct nbd_request *request) { NBDClient *client = req->client; int VAR_0 = client->sock; ssize_t rc; client->recv_coroutine = qemu_coroutine_self(); if (nbd_receive_request(VAR_0, request) < 0) { rc = -EIO; goto out; } if ...
[ "static ssize_t FUNC_0(NBDRequest *req, struct nbd_request *request)\n{", "NBDClient *client = req->client;", "int VAR_0 = client->sock;", "ssize_t rc;", "client->recv_coroutine = qemu_coroutine_self();", "if (nbd_receive_request(VAR_0, request) < 0) {", "rc = -EIO;", "goto out;", "}", "if (reques...
[ 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
23,356
ram_addr_t migration_bitmap_find_dirty(RAMState *rs, RAMBlock *rb, ram_addr_t start, ram_addr_t *ram_addr_abs) { unsigned long base = rb->offset >> TARGET_PAGE_BITS; unsigned long nr = base + (start >> TARGET_PAGE_BITS); uin...
true
qemu
06b106889a09277617fc8c542397a9f595ee605a
ram_addr_t migration_bitmap_find_dirty(RAMState *rs, RAMBlock *rb, ram_addr_t start, ram_addr_t *ram_addr_abs) { unsigned long base = rb->offset >> TARGET_PAGE_BITS; unsigned long nr = base + (start >> TARGET_PAGE_BITS); uin...
{ "code": [ " ram_addr_t *ram_addr_abs)", " *ram_addr_abs = next << TARGET_PAGE_BITS;" ], "line_no": [ 5, 39 ] }
ram_addr_t FUNC_0(RAMState *rs, RAMBlock *rb, ram_addr_t start, ram_addr_t *ram_addr_abs) { unsigned long VAR_0 = rb->offset >> TARGET_PAGE_BITS; unsigned long VAR_1 = VAR_0 + (start >> TARGET_PAGE_BITS); uint64_t rb_size = ...
[ "ram_addr_t FUNC_0(RAMState *rs, RAMBlock *rb,\nram_addr_t start,\nram_addr_t *ram_addr_abs)\n{", "unsigned long VAR_0 = rb->offset >> TARGET_PAGE_BITS;", "unsigned long VAR_1 = VAR_0 + (start >> TARGET_PAGE_BITS);", "uint64_t rb_size = rb->used_length;", "unsigned long VAR_2 = VAR_0 + (rb_size >> TARGET_PA...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ] ]
23,357
AVFrame *ff_framequeue_take(FFFrameQueue *fq) { FFFrameBucket *b; check_consistency(fq); av_assert1(fq->queued); b = bucket(fq, 0); fq->queued--; fq->tail++; fq->tail &= fq->allocated - 1; fq->total_frames_tail++; fq->total_samples_tail += b->frame->nb_samples; chec...
true
FFmpeg
fc3a03fcf9cd7eafe7342e2508e6128888efa0bb
AVFrame *ff_framequeue_take(FFFrameQueue *fq) { FFFrameBucket *b; check_consistency(fq); av_assert1(fq->queued); b = bucket(fq, 0); fq->queued--; fq->tail++; fq->tail &= fq->allocated - 1; fq->total_frames_tail++; fq->total_samples_tail += b->frame->nb_samples; chec...
{ "code": [], "line_no": [] }
AVFrame *FUNC_0(FFFrameQueue *fq) { FFFrameBucket *b; check_consistency(fq); av_assert1(fq->queued); b = bucket(fq, 0); fq->queued--; fq->tail++; fq->tail &= fq->allocated - 1; fq->total_frames_tail++; fq->total_samples_tail += b->frame->nb_samples; check_consistenc...
[ "AVFrame *FUNC_0(FFFrameQueue *fq)\n{", "FFFrameBucket *b;", "check_consistency(fq);", "av_assert1(fq->queued);", "b = bucket(fq, 0);", "fq->queued--;", "fq->tail++;", "fq->tail &= fq->allocated - 1;", "fq->total_frames_tail++;", "fq->total_samples_tail += b->frame->nb_samples;", "check_consiste...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 26 ], [ 28 ], [ 30 ] ]