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
15,691
static int decode_block_progressive(MJpegDecodeContext *s, int16_t *block, uint8_t *last_nnz, int ac_index, uint16_t *quant_matrix, int ss, int se, int Al, int *EOBRUN) { int code, i, j, level, val, run;...
true
FFmpeg
a78ae465fda902565ed041d93403e04490b4be0d
static int decode_block_progressive(MJpegDecodeContext *s, int16_t *block, uint8_t *last_nnz, int ac_index, uint16_t *quant_matrix, int ss, int se, int Al, int *EOBRUN) { int code, i, j, level, val, run;...
{ "code": [ " int code, i, j, level, val, run;" ], "line_no": [ 11 ] }
static int FUNC_0(MJpegDecodeContext *VAR_0, int16_t *VAR_1, uint8_t *VAR_2, int VAR_3, uint16_t *VAR_4, int VAR_5, int VAR_6, int VAR_7, int *VAR_8) { int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14; ...
[ "static int FUNC_0(MJpegDecodeContext *VAR_0, int16_t *VAR_1,\nuint8_t *VAR_2, int VAR_3,\nuint16_t *VAR_4,\nint VAR_5, int VAR_6, int VAR_7, int *VAR_8)\n{", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14;", "if (*VAR_8) {", "(*VAR_8)--;", "return 0;", "}", "{", "OPEN_READER(re, &VAR_0->gb);", ...
[ 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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 51 ], [ 53 ...
15,692
static int asf_read_header(AVFormatContext *s) { ASFContext *asf = s->priv_data; ff_asf_guid g; AVIOContext *pb = s->pb; int i; int64_t gsize; ff_get_guid(pb, &g); if (ff_guidcmp(&g, &ff_asf_header)) return AVERROR_INVALIDDATA; avio_rl64(pb); avio_rl32(pb); ...
false
FFmpeg
c8eca438a953b4a8ee3b863abac38491357b46a1
static int asf_read_header(AVFormatContext *s) { ASFContext *asf = s->priv_data; ff_asf_guid g; AVIOContext *pb = s->pb; int i; int64_t gsize; ff_get_guid(pb, &g); if (ff_guidcmp(&g, &ff_asf_header)) return AVERROR_INVALIDDATA; avio_rl64(pb); avio_rl32(pb); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { ASFContext *asf = VAR_0->priv_data; ff_asf_guid g; AVIOContext *pb = VAR_0->pb; int VAR_1; int64_t gsize; ff_get_guid(pb, &g); if (ff_guidcmp(&g, &ff_asf_header)) return AVERROR_INVALIDDATA; avio_rl64(pb); avio_rl32(pb)...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "ASFContext *asf = VAR_0->priv_data;", "ff_asf_guid g;", "AVIOContext *pb = VAR_0->pb;", "int VAR_1;", "int64_t gsize;", "ff_get_guid(pb, &g);", "if (ff_guidcmp(&g, &ff_asf_header))\nreturn AVERROR_INVALIDDATA;", "avio_rl64(pb);", "avio_rl32(pb);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
15,694
int ff_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush) { AVPacketList *pktl; int stream_count = 0; int i; if (pkt) { ff_interleave_add_packet(s, pkt, interleave_compare_dts); } if (s->max_interleave_delt...
false
FFmpeg
324ff59444ff5470bb325ff1e2be7c4b054fc944
int ff_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush) { AVPacketList *pktl; int stream_count = 0; int i; if (pkt) { ff_interleave_add_packet(s, pkt, interleave_compare_dts); } if (s->max_interleave_delt...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, AVPacket *VAR_2, int VAR_3) { AVPacketList *pktl; int VAR_4 = 0; int VAR_5; if (VAR_2) { ff_interleave_add_packet(VAR_0, VAR_2, interleave_compare_dts); } if (VAR_0->max_interleave_delta > 0...
[ "int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1,\nAVPacket *VAR_2, int VAR_3)\n{", "AVPacketList *pktl;", "int VAR_4 = 0;", "int VAR_5;", "if (VAR_2) {", "ff_interleave_add_packet(VAR_0, VAR_2, interleave_compare_dts);", "}", "if (VAR_0->max_interleave_delta > 0 && VAR_0->packet_buffer && !VAR_3) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 51, 53, 55 ], [ 57 ...
15,695
static int svq3_decode_mb(SVQ3Context *s, unsigned int mb_type) { H264Context *h = &s->h; int i, j, k, m, dir, mode; int cbp = 0; uint32_t vlc; int8_t *top, *left; const int mb_xy = h->mb_xy; const int b_xy = 4 * h->mb_x + 4 * h->mb_y * h->b_stride; h->top_sam...
false
FFmpeg
019eb2c77b7c315580200a5dbe6dabb1c97a3764
static int svq3_decode_mb(SVQ3Context *s, unsigned int mb_type) { H264Context *h = &s->h; int i, j, k, m, dir, mode; int cbp = 0; uint32_t vlc; int8_t *top, *left; const int mb_xy = h->mb_xy; const int b_xy = 4 * h->mb_x + 4 * h->mb_y * h->b_stride; h->top_sam...
{ "code": [], "line_no": [] }
static int FUNC_0(SVQ3Context *VAR_0, unsigned int VAR_1) { H264Context *h = &VAR_0->h; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8 = 0; uint32_t vlc; int8_t *top, *left; const int VAR_9 = h->VAR_9; const int VAR_10 = 4 * h->mb_x + 4 * h->mb_y * h->b_stri...
[ "static int FUNC_0(SVQ3Context *VAR_0, unsigned int VAR_1)\n{", "H264Context *h = &VAR_0->h;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8 = 0;", "uint32_t vlc;", "int8_t *top, *left;", "const int VAR_9 = h->VAR_9;", "const int VAR_10 = 4 * h->mb_x + 4 * h->mb_y * h->b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 41, 43, 45 ], [ 49 ], [ 51 ], [ 53 ...
15,697
static void do_getfd(Monitor *mon, const QDict *qdict) { const char *fdname = qdict_get_str(qdict, "fdname"); mon_fd_t *monfd; int fd; fd = qemu_chr_get_msgfd(mon->chr); if (fd == -1) { monitor_printf(mon, "getfd: no file descriptor supplied via SCM_RIGHTS\n"); return; ...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static void do_getfd(Monitor *mon, const QDict *qdict) { const char *fdname = qdict_get_str(qdict, "fdname"); mon_fd_t *monfd; int fd; fd = qemu_chr_get_msgfd(mon->chr); if (fd == -1) { monitor_printf(mon, "getfd: no file descriptor supplied via SCM_RIGHTS\n"); return; ...
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2"); mon_fd_t *monfd; int VAR_3; VAR_3 = qemu_chr_get_msgfd(VAR_0->chr); if (VAR_3 == -1) { monitor_printf(VAR_0, "getfd: no file descriptor supplied via SCM_RIGHTS\n"); r...
[ "static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");", "mon_fd_t *monfd;", "int VAR_3;", "VAR_3 = qemu_chr_get_msgfd(VAR_0->chr);", "if (VAR_3 == -1) {", "monitor_printf(VAR_0, \"getfd: no file descriptor supplied via SCM_RIGHTS\\n\");", "r...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [...
15,698
hwaddr get_pteg_offset32(PowerPCCPU *cpu, hwaddr hash) { CPUPPCState *env = &cpu->env; return (hash * HASH_PTEG_SIZE_32) & env->htab_mask; }
false
qemu
36778660d7fd0748a6129916e47ecedd67bdb758
hwaddr get_pteg_offset32(PowerPCCPU *cpu, hwaddr hash) { CPUPPCState *env = &cpu->env; return (hash * HASH_PTEG_SIZE_32) & env->htab_mask; }
{ "code": [], "line_no": [] }
hwaddr FUNC_0(PowerPCCPU *cpu, hwaddr hash) { CPUPPCState *env = &cpu->env; return (hash * HASH_PTEG_SIZE_32) & env->htab_mask; }
[ "hwaddr FUNC_0(PowerPCCPU *cpu, hwaddr hash)\n{", "CPUPPCState *env = &cpu->env;", "return (hash * HASH_PTEG_SIZE_32) & env->htab_mask;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
15,699
static void mv88w8618_register_devices(void) { #ifdef HAS_AUDIO sysbus_register_withprop(&mv88w8618_audio_info); #endif }
false
qemu
738012bec4c67e697e766edadab3f522c552a04d
static void mv88w8618_register_devices(void) { #ifdef HAS_AUDIO sysbus_register_withprop(&mv88w8618_audio_info); #endif }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { #ifdef HAS_AUDIO sysbus_register_withprop(&mv88w8618_audio_info); #endif }
[ "static void FUNC_0(void)\n{", "#ifdef HAS_AUDIO\nsysbus_register_withprop(&mv88w8618_audio_info);", "#endif\n}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ] ]
15,700
static int vfio_get_device(VFIOGroup *group, const char *name, VFIODevice *vdev) { struct vfio_device_info dev_info = { .argsz = sizeof(dev_info) }; struct vfio_region_info reg_info = { .argsz = sizeof(reg_info) }; struct vfio_irq_info irq_info = { .argsz = sizeof(irq_info) }; int ret, i; re...
false
qemu
6f864e6ec8812d5a5525a7861ca599c6bcabdebe
static int vfio_get_device(VFIOGroup *group, const char *name, VFIODevice *vdev) { struct vfio_device_info dev_info = { .argsz = sizeof(dev_info) }; struct vfio_region_info reg_info = { .argsz = sizeof(reg_info) }; struct vfio_irq_info irq_info = { .argsz = sizeof(irq_info) }; int ret, i; re...
{ "code": [], "line_no": [] }
static int FUNC_0(VFIOGroup *VAR_0, const char *VAR_1, VFIODevice *VAR_2) { struct vfio_device_info VAR_3 = { .argsz = sizeof(VAR_3) }; struct vfio_region_info VAR_4 = { .argsz = sizeof(VAR_4) }; struct vfio_irq_info VAR_5 = { .argsz = sizeof(VAR_5) }; int VAR_6, VAR_7; VAR_6 = ioctl(VAR_0->...
[ "static int FUNC_0(VFIOGroup *VAR_0, const char *VAR_1, VFIODevice *VAR_2)\n{", "struct vfio_device_info VAR_3 = { .argsz = sizeof(VAR_3) };", "struct vfio_region_info VAR_4 = { .argsz = sizeof(VAR_4) };", "struct vfio_irq_info VAR_5 = { .argsz = sizeof(VAR_5) };", "int VAR_6, VAR_7;", "VAR_6 = ioctl(VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
15,701
static void loop_filter(H264Context *h, H264SliceContext *sl, int start_x, int end_x) { uint8_t *dest_y, *dest_cb, *dest_cr; int linesize, uvlinesize, mb_x, mb_y; const int end_mb_y = h->mb_y + FRAME_MBAFF(h); const int old_slice_type = sl->slice_type; const int pixel_shift = h->pixel...
false
FFmpeg
e6c90ce94f1b07f50cea2babf7471af455cca0ff
static void loop_filter(H264Context *h, H264SliceContext *sl, int start_x, int end_x) { uint8_t *dest_y, *dest_cb, *dest_cr; int linesize, uvlinesize, mb_x, mb_y; const int end_mb_y = h->mb_y + FRAME_MBAFF(h); const int old_slice_type = sl->slice_type; const int pixel_shift = h->pixel...
{ "code": [], "line_no": [] }
static void FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1, int VAR_2, int VAR_3) { uint8_t *dest_y, *dest_cb, *dest_cr; int VAR_4, VAR_5, VAR_6, VAR_7; const int VAR_8 = VAR_0->VAR_7 + FRAME_MBAFF(VAR_0); const int VAR_9 = VAR_1->slice_type; const int VAR_10 = VAR_0->VAR_10; ...
[ "static void FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1, int VAR_2, int VAR_3)\n{", "uint8_t *dest_y, *dest_cb, *dest_cr;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "const int VAR_8 = VAR_0->VAR_7 + FRAME_MBAFF(VAR_0);", "const int VAR_9 = VAR_1->slice_type;", "const int VAR_10 = VAR_0->VAR_10;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39, 41 ], [ 45 ], [ 47 ], [ 49,...
15,702
static void xenfb_update(void *opaque) { struct XenFB *xenfb = opaque; DisplaySurface *surface; int i; if (xenfb->c.xendev.be_state != XenbusStateConnected) return; if (!xenfb->feature_update) { /* we don't get update notifications, thus use the * sledge hammer ...
false
qemu
9f2130f58d5dd4e1fcb435cca08bf77e7c32e6c6
static void xenfb_update(void *opaque) { struct XenFB *xenfb = opaque; DisplaySurface *surface; int i; if (xenfb->c.xendev.be_state != XenbusStateConnected) return; if (!xenfb->feature_update) { xenfb->up_fullscreen = 1; } if (xenfb->do_resiz...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { struct XenFB *VAR_1 = VAR_0; DisplaySurface *surface; int VAR_2; if (VAR_1->c.xendev.be_state != XenbusStateConnected) return; if (!VAR_1->feature_update) { VAR_1->up_fullscreen = 1; } if (VAR_1->do_resize) {...
[ "static void FUNC_0(void *VAR_0)\n{", "struct XenFB *VAR_1 = VAR_0;", "DisplaySurface *surface;", "int VAR_2;", "if (VAR_1->c.xendev.be_state != XenbusStateConnected)\nreturn;", "if (!VAR_1->feature_update) {", "VAR_1->up_fullscreen = 1;", "}", "if (VAR_1->do_resize) {", "pixman_format_code_t form...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43, 45, 49 ], [ 51, 53, 55 ], [ 57 ], [ 59, 63 ], [ 65 ...
15,703
petalogix_s3adsp1800_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; DeviceState *dev; MicroBlazeCPU *cpu; DriveInfo *dinfo; int i; hwaddr ddr_base = MEMORY_BASEADDR; MemoryRegion *phys_lmb_bram = g_new(MemoryReg...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
petalogix_s3adsp1800_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; DeviceState *dev; MicroBlazeCPU *cpu; DriveInfo *dinfo; int i; hwaddr ddr_base = MEMORY_BASEADDR; MemoryRegion *phys_lmb_bram = g_new(MemoryReg...
{ "code": [], "line_no": [] }
FUNC_0(MachineState *VAR_0) { ram_addr_t ram_size = VAR_0->ram_size; const char *VAR_1 = VAR_0->VAR_1; DeviceState *dev; MicroBlazeCPU *cpu; DriveInfo *dinfo; int VAR_2; hwaddr ddr_base = MEMORY_BASEADDR; MemoryRegion *phys_lmb_bram = g_new(MemoryRegion, 1); MemoryRegion *p...
[ "FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "const char *VAR_1 = VAR_0->VAR_1;", "DeviceState *dev;", "MicroBlazeCPU *cpu;", "DriveInfo *dinfo;", "int VAR_2;", "hwaddr ddr_base = MEMORY_BASEADDR;", "MemoryRegion *phys_lmb_bram = g_new(MemoryRegion, 1);", "MemoryRegi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43, 45, 47 ], [ 49 ], [ 51 ...
15,704
static void mainstone_common_init(ram_addr_t ram_size, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model, enum mainstone_model_e model, int arm_id) { uint32_t sector_len = 256 * 1024; target_phys_addr...
false
qemu
e1f8c729fa890c67bb4532f22c22ace6fb0e1aaf
static void mainstone_common_init(ram_addr_t ram_size, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model, enum mainstone_model_e model, int arm_id) { uint32_t sector_len = 256 * 1024; target_phys_addr...
{ "code": [], "line_no": [] }
static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, enum mainstone_model_e VAR_5, int VAR_6) { uint32_t sector_len = 256 * 1024; target_phys_addr_t mainstone_flash_base[] = { MST_FLASH_0, MST_FLASH...
[ "static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, enum mainstone_model_e VAR_5, int VAR_6)\n{", "uint32_t sector_len = 256 * 1024;", "target_phys_addr_t mainstone_flash_base[] = { MST_FLASH_0, MST_FLASH_1 };", "PXA2xxState *cpu;", "DeviceSta...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37, 39, 41 ], [ 45, 47 ], [ 49, 51 ], [ 53, 57 ], [ 59 ], [...
15,705
static void vmxnet3_pci_realize(PCIDevice *pci_dev, Error **errp) { DeviceState *dev = DEVICE(pci_dev); VMXNET3State *s = VMXNET3(pci_dev); int ret; VMW_CBPRN("Starting init..."); memory_region_init_io(&s->bar0, OBJECT(s), &b0_ops, s, "vmxnet3-b0", VMXNET3_PT_REG...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static void vmxnet3_pci_realize(PCIDevice *pci_dev, Error **errp) { DeviceState *dev = DEVICE(pci_dev); VMXNET3State *s = VMXNET3(pci_dev); int ret; VMW_CBPRN("Starting init..."); memory_region_init_io(&s->bar0, OBJECT(s), &b0_ops, s, "vmxnet3-b0", VMXNET3_PT_REG...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1) { DeviceState *dev = DEVICE(VAR_0); VMXNET3State *s = VMXNET3(VAR_0); int VAR_2; VMW_CBPRN("Starting init..."); memory_region_init_io(&s->bar0, OBJECT(s), &b0_ops, s, "vmxnet3-b0", VMXNET3_PT_REG_SIZE); pci...
[ "static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{", "DeviceState *dev = DEVICE(VAR_0);", "VMXNET3State *s = VMXNET3(VAR_0);", "int VAR_2;", "VMW_CBPRN(\"Starting init...\");", "memory_region_init_io(&s->bar0, OBJECT(s), &b0_ops, s,\n\"vmxnet3-b0\", VMXNET3_PT_REG_SIZE);", "pci_register_bar(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 27, 29 ], [ 31, 33 ], [ 37, 39 ], [ 41, 43 ], [ 47 ], [ 53 ], [ 57, 59 ], [ 65 ], [ 69 ], [...
15,706
static void sctlr_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { ARMCPU *cpu = arm_env_get_cpu(env); if (env->cp15.c1_sys == value) { /* Skip the TLB flush if nothing actually changed; Linux likes * to do a lot of pointless SCTLR writes. ...
false
qemu
8d5c773e323b22402abdd0beef4c7d2fc91dd0eb
static void sctlr_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { ARMCPU *cpu = arm_env_get_cpu(env); if (env->cp15.c1_sys == value) { return; } env->cp15.c1_sys = value; tlb_flush(CPU(cpu), 1); }
{ "code": [], "line_no": [] }
static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2) { ARMCPU *cpu = arm_env_get_cpu(VAR_0); if (VAR_0->cp15.c1_sys == VAR_2) { return; } VAR_0->cp15.c1_sys = VAR_2; tlb_flush(CPU(cpu), 1); }
[ "static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1,\nuint64_t VAR_2)\n{", "ARMCPU *cpu = arm_env_get_cpu(VAR_0);", "if (VAR_0->cp15.c1_sys == VAR_2) {", "return;", "}", "VAR_0->cp15.c1_sys = VAR_2;", "tlb_flush(CPU(cpu), 1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 19 ], [ 21 ], [ 25 ], [ 31 ], [ 33 ] ]
15,707
static Visitor *validate_test_init_internal(TestInputVisitorData *data, const char *json_string, va_list *ap) { validate_teardown(data, NULL); data->obj = qobject_from_jsonv(json_string, ap); g_assert(data->obj);...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static Visitor *validate_test_init_internal(TestInputVisitorData *data, const char *json_string, va_list *ap) { validate_teardown(data, NULL); data->obj = qobject_from_jsonv(json_string, ap); g_assert(data->obj);...
{ "code": [], "line_no": [] }
static Visitor *FUNC_0(TestInputVisitorData *data, const char *json_string, va_list *ap) { validate_teardown(data, NULL); data->obj = qobject_from_jsonv(json_string, ap); g_assert(data->obj); data->qiv = q...
[ "static Visitor *FUNC_0(TestInputVisitorData *data,\nconst char *json_string,\nva_list *ap)\n{", "validate_teardown(data, NULL);", "data->obj = qobject_from_jsonv(json_string, ap);", "g_assert(data->obj);", "data->qiv = qmp_input_visitor_new(data->obj, true);", "g_assert(data->qiv);", "return data->qiv;...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
15,708
static void monitor_find_completion(Monitor *mon, const char *cmdline) { char *args[MAX_ARGS]; int nb_args, len; /* 1. parse the cmdline */ if (parse_cmdline(cmdline, &nb_args, args) < 0) { return; } #ifdef DEBUG_COMPLETION for (i = 0; i < ...
false
qemu
c60bf3391bf4cb79b7adc6650094e21671ddaabd
static void monitor_find_completion(Monitor *mon, const char *cmdline) { char *args[MAX_ARGS]; int nb_args, len; if (parse_cmdline(cmdline, &nb_args, args) < 0) { return; } #ifdef DEBUG_COMPLETION for (i = 0; i < nb_args; i++) { m...
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0, const char *VAR_1) { char *VAR_2[MAX_ARGS]; int VAR_3, VAR_4; if (parse_cmdline(VAR_1, &VAR_3, VAR_2) < 0) { return; } #ifdef DEBUG_COMPLETION for (i = 0; i < VAR_3; i++) { monitor_printf(VAR_0, ...
[ "static void FUNC_0(Monitor *VAR_0,\nconst char *VAR_1)\n{", "char *VAR_2[MAX_ARGS];", "int VAR_3, VAR_4;", "if (parse_cmdline(VAR_1, &VAR_3, VAR_2) < 0) {", "return;", "}", "#ifdef DEBUG_COMPLETION\nfor (i = 0; i < VAR_3; i++) {", "monitor_printf(VAR_0, \"arg%d = '%s'\\n\", i, VAR_2[i]);", "}", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 55 ], [ 59, 61 ...
15,709
static void gdb_set_cpu_pc(GDBState *s, target_ulong pc) { #if defined(TARGET_I386) cpu_synchronize_state(s->c_cpu); s->c_cpu->eip = pc; #elif defined (TARGET_PPC) s->c_cpu->nip = pc; #elif defined (TARGET_SPARC) s->c_cpu->pc = pc; s->c_cpu->npc = pc + 4; #elif defined (TARGET_ARM) s-...
false
qemu
ff1d1977ffe1c276f5937a6ad4b6a5b6d2b1c6ae
static void gdb_set_cpu_pc(GDBState *s, target_ulong pc) { #if defined(TARGET_I386) cpu_synchronize_state(s->c_cpu); s->c_cpu->eip = pc; #elif defined (TARGET_PPC) s->c_cpu->nip = pc; #elif defined (TARGET_SPARC) s->c_cpu->pc = pc; s->c_cpu->npc = pc + 4; #elif defined (TARGET_ARM) s-...
{ "code": [], "line_no": [] }
static void FUNC_0(GDBState *VAR_0, target_ulong VAR_1) { #if defined(TARGET_I386) cpu_synchronize_state(VAR_0->c_cpu); VAR_0->c_cpu->eip = VAR_1; #elif defined (TARGET_PPC) VAR_0->c_cpu->nip = VAR_1; #elif defined (TARGET_SPARC) VAR_0->c_cpu->VAR_1 = VAR_1; VAR_0->c_cpu->npc = VAR_1 + 4; ...
[ "static void FUNC_0(GDBState *VAR_0, target_ulong VAR_1)\n{", "#if defined(TARGET_I386)\ncpu_synchronize_state(VAR_0->c_cpu);", "VAR_0->c_cpu->eip = VAR_1;", "#elif defined (TARGET_PPC)\nVAR_0->c_cpu->nip = VAR_1;", "#elif defined (TARGET_SPARC)\nVAR_0->c_cpu->VAR_1 = VAR_1;", "VAR_0->c_cpu->npc = VAR_1 +...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51,...
15,710
bool hvf_inject_interrupts(CPUState *cpu_state) { int allow_nmi = !(rvmcs(cpu_state->hvf_fd, VMCS_GUEST_INTERRUPTIBILITY) & VMCS_INTERRUPTIBILITY_NMI_BLOCKING); X86CPU *x86cpu = X86_CPU(cpu_state); CPUX86State *env = &x86cpu->env; uint64_t idt_info = rvmcs(cpu_state->hvf_fd, VMCS...
false
qemu
b7394c8394d38cb38b6db14eb431cac7a91e7140
bool hvf_inject_interrupts(CPUState *cpu_state) { int allow_nmi = !(rvmcs(cpu_state->hvf_fd, VMCS_GUEST_INTERRUPTIBILITY) & VMCS_INTERRUPTIBILITY_NMI_BLOCKING); X86CPU *x86cpu = X86_CPU(cpu_state); CPUX86State *env = &x86cpu->env; uint64_t idt_info = rvmcs(cpu_state->hvf_fd, VMCS...
{ "code": [], "line_no": [] }
bool FUNC_0(CPUState *cpu_state) { int VAR_0 = !(rvmcs(cpu_state->hvf_fd, VMCS_GUEST_INTERRUPTIBILITY) & VMCS_INTERRUPTIBILITY_NMI_BLOCKING); X86CPU *x86cpu = X86_CPU(cpu_state); CPUX86State *env = &x86cpu->env; uint64_t idt_info = rvmcs(cpu_state->hvf_fd, VMCS_IDT_VECTORING_INFO...
[ "bool FUNC_0(CPUState *cpu_state)\n{", "int VAR_0 = !(rvmcs(cpu_state->hvf_fd, VMCS_GUEST_INTERRUPTIBILITY) &\nVMCS_INTERRUPTIBILITY_NMI_BLOCKING);", "X86CPU *x86cpu = X86_CPU(cpu_state);", "CPUX86State *env = &x86cpu->env;", "uint64_t idt_info = rvmcs(cpu_state->hvf_fd, VMCS_IDT_VECTORING_INFO);", "uint6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49, 51 ], [...
15,711
static void jpeg_prepare_row(VncState *vs, uint8_t *dst, int x, int y, int count) { if (vs->tight_pixel24) jpeg_prepare_row24(vs, dst, x, y, count); else if (ds_get_bytes_per_pixel(vs->ds) == 4) jpeg_prepare_row32(vs, dst, x, y, count); else ...
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
static void jpeg_prepare_row(VncState *vs, uint8_t *dst, int x, int y, int count) { if (vs->tight_pixel24) jpeg_prepare_row24(vs, dst, x, y, count); else if (ds_get_bytes_per_pixel(vs->ds) == 4) jpeg_prepare_row32(vs, dst, x, y, count); else ...
{ "code": [], "line_no": [] }
static void FUNC_0(VncState *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4) { if (VAR_0->tight_pixel24) jpeg_prepare_row24(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4); else if (ds_get_bytes_per_pixel(VAR_0->ds) == 4) jpeg_prepare_row32(VAR_0, VAR_1, V...
[ "static void FUNC_0(VncState *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3,\nint VAR_4)\n{", "if (VAR_0->tight_pixel24)\njpeg_prepare_row24(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);", "else if (ds_get_bytes_per_pixel(VAR_0->ds) == 4)\njpeg_prepare_row32(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);", "else\njpeg_prepare_row16...
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ] ]
15,712
static int detect_stream_specific(AVFormatContext *avf, int idx) { ConcatContext *cat = avf->priv_data; AVStream *st = cat->avf->streams[idx]; ConcatStream *cs = &cat->cur_file->streams[idx]; AVBitStreamFilterContext *bsf; int ret; if (cat->auto_convert && st->codecpar->codec_id == AV_C...
false
FFmpeg
b4330a0e02fcbef61d630a369abe5f4421ced659
static int detect_stream_specific(AVFormatContext *avf, int idx) { ConcatContext *cat = avf->priv_data; AVStream *st = cat->avf->streams[idx]; ConcatStream *cs = &cat->cur_file->streams[idx]; AVBitStreamFilterContext *bsf; int ret; if (cat->auto_convert && st->codecpar->codec_id == AV_C...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1) { ConcatContext *cat = VAR_0->priv_data; AVStream *st = cat->VAR_0->streams[VAR_1]; ConcatStream *cs = &cat->cur_file->streams[VAR_1]; AVBitStreamFilterContext *bsf; int VAR_2; if (cat->auto_convert && st->codecpar->codec_id == AV_COD...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "ConcatContext *cat = VAR_0->priv_data;", "AVStream *st = cat->VAR_0->streams[VAR_1];", "ConcatStream *cs = &cat->cur_file->streams[VAR_1];", "AVBitStreamFilterContext *bsf;", "int VAR_2;", "if (cat->auto_convert && st->codecpar->codec_id == AV_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 53 ], [ 55 ], [ 59 ...
15,713
void pc_basic_device_init(qemu_irq *isa_irq, FDCtrl **floppy_controller, ISADevice **rtc_state) { int i; DriveInfo *fd[MAX_FD]; PITState *pit; qemu_irq rtc_irq = NULL; qemu_irq *a20_line; ISADevice *i8042, *port92, *vmmouse; qemu_...
false
qemu
63ffb564dca94f8bda01ed6d209784104630a4d2
void pc_basic_device_init(qemu_irq *isa_irq, FDCtrl **floppy_controller, ISADevice **rtc_state) { int i; DriveInfo *fd[MAX_FD]; PITState *pit; qemu_irq rtc_irq = NULL; qemu_irq *a20_line; ISADevice *i8042, *port92, *vmmouse; qemu_...
{ "code": [], "line_no": [] }
void FUNC_0(qemu_irq *VAR_0, FDCtrl **VAR_1, ISADevice **VAR_2) { int VAR_3; DriveInfo *fd[MAX_FD]; PITState *pit; qemu_irq rtc_irq = NULL; qemu_irq *a20_line; ISADevice *i8042, *port92, *vmmouse; qemu_irq *cpu_exit_irq; re...
[ "void FUNC_0(qemu_irq *VAR_0,\nFDCtrl **VAR_1,\nISADevice **VAR_2)\n{", "int VAR_3;", "DriveInfo *fd[MAX_FD];", "PITState *pit;", "qemu_irq rtc_irq = NULL;", "qemu_irq *a20_line;", "ISADevice *i8042, *port92, *vmmouse;", "qemu_irq *cpu_exit_irq;", "register_ioport_write(0x80, 1, 1, ioport80_write, N...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
15,714
static void dump_json_image_check(ImageCheck *check, bool quiet) { QString *str; QObject *obj; Visitor *v = qmp_output_visitor_new(&obj); visit_type_ImageCheck(v, NULL, &check, &error_abort); visit_complete(v, &obj); str = qobject_to_json_pretty(obj); assert(str != NULL); qpri...
false
qemu
7d5e199ade76c53ec316ab6779800581bb47c50a
static void dump_json_image_check(ImageCheck *check, bool quiet) { QString *str; QObject *obj; Visitor *v = qmp_output_visitor_new(&obj); visit_type_ImageCheck(v, NULL, &check, &error_abort); visit_complete(v, &obj); str = qobject_to_json_pretty(obj); assert(str != NULL); qpri...
{ "code": [], "line_no": [] }
static void FUNC_0(ImageCheck *VAR_0, bool VAR_1) { QString *str; QObject *obj; Visitor *v = qmp_output_visitor_new(&obj); visit_type_ImageCheck(v, NULL, &VAR_0, &error_abort); visit_complete(v, &obj); str = qobject_to_json_pretty(obj); assert(str != NULL); qprintf(VAR_1, "%s\...
[ "static void FUNC_0(ImageCheck *VAR_0, bool VAR_1)\n{", "QString *str;", "QObject *obj;", "Visitor *v = qmp_output_visitor_new(&obj);", "visit_type_ImageCheck(v, NULL, &VAR_0, &error_abort);", "visit_complete(v, &obj);", "str = qobject_to_json_pretty(obj);", "assert(str != NULL);", "qprintf(VAR_1, \...
[ 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 ] ]
15,715
INLINE bits32 extractFloat32Frac( float32 a ) { return a & 0x007FFFFF; }
false
qemu
f090c9d4ad5812fb92843d6470a1111c15190c4c
INLINE bits32 extractFloat32Frac( float32 a ) { return a & 0x007FFFFF; }
{ "code": [], "line_no": [] }
INLINE VAR_0 extractFloat32Frac( float32 a ) { return a & 0x007FFFFF; }
[ "INLINE VAR_0 extractFloat32Frac( float32 a )\n{", "return a & 0x007FFFFF;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 11 ] ]
15,716
int rom_load_fw(void *fw_cfg) { Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (!rom->fw_file) { continue; } fw_cfg_add_file(fw_cfg, rom->fw_dir, rom->fw_file, rom->data, rom->romsize); } return 0; }
false
qemu
8832cb805dcb65009b979cd8e17d75ac4b03c7e4
int rom_load_fw(void *fw_cfg) { Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (!rom->fw_file) { continue; } fw_cfg_add_file(fw_cfg, rom->fw_dir, rom->fw_file, rom->data, rom->romsize); } return 0; }
{ "code": [], "line_no": [] }
int FUNC_0(void *VAR_0) { Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (!rom->fw_file) { continue; } fw_cfg_add_file(VAR_0, rom->fw_dir, rom->fw_file, rom->data, rom->romsize); } return 0; }
[ "int FUNC_0(void *VAR_0)\n{", "Rom *rom;", "QTAILQ_FOREACH(rom, &roms, next) {", "if (!rom->fw_file) {", "continue;", "}", "fw_cfg_add_file(VAR_0, rom->fw_dir, rom->fw_file, rom->data, rom->romsize);", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
15,717
static inline void gen_branch2(DisasContext *dc, target_ulong pc1, target_ulong pc2, TCGv r_cond) { int l1; l1 = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_EQ, r_cond, 0, l1); gen_goto_tb(dc, 0, pc1, pc1 + 4); gen_set_label(l1); gen_goto_tb(dc, 1,...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static inline void gen_branch2(DisasContext *dc, target_ulong pc1, target_ulong pc2, TCGv r_cond) { int l1; l1 = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_EQ, r_cond, 0, l1); gen_goto_tb(dc, 0, pc1, pc1 + 4); gen_set_label(l1); gen_goto_tb(dc, 1,...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, target_ulong VAR_1, target_ulong VAR_2, TCGv VAR_3) { int VAR_4; VAR_4 = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_EQ, VAR_3, 0, VAR_4); gen_goto_tb(VAR_0, 0, VAR_1, VAR_1 + 4); gen_set_label(VAR_4); ...
[ "static inline void FUNC_0(DisasContext *VAR_0, target_ulong VAR_1,\ntarget_ulong VAR_2, TCGv VAR_3)\n{", "int VAR_4;", "VAR_4 = gen_new_label();", "tcg_gen_brcondi_tl(TCG_COND_EQ, VAR_3, 0, VAR_4);", "gen_goto_tb(VAR_0, 0, VAR_1, VAR_1 + 4);", "gen_set_label(VAR_4);", "gen_goto_tb(VAR_0, 1, VAR_2, VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ] ]
15,718
static int u3_agp_pci_host_init(PCIDevice *d) { pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE); pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_U3_AGP); /* revision */ d->config[0x08] = 0x00; pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST); /* cache line size */ ...
false
qemu
d7b61ecc61f84d23f98f1ee270fb48b41834ca00
static int u3_agp_pci_host_init(PCIDevice *d) { pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE); pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_U3_AGP); d->config[0x08] = 0x00; pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST); d->config[0x0C] = 0x08; ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_APPLE); pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_APPLE_U3_AGP); VAR_0->config[0x08] = 0x00; pci_config_set_class(VAR_0->config, PCI_CLASS_BRIDGE_HOST); VAR_0->config[0x0C] = 0x0...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_APPLE);", "pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_APPLE_U3_AGP);", "VAR_0->config[0x08] = 0x00;", "pci_config_set_class(VAR_0->config, PCI_CLASS_BRIDGE_HOST);", "VAR_0->config[0x0C] = 0x08;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ] ]
15,720
static void nographic_update(void *opaque) { uint64_t interval = GUI_REFRESH_INTERVAL; qemu_flush_coalesced_mmio_buffer(); qemu_mod_timer(nographic_timer, interval + qemu_get_clock(rt_clock)); }
false
qemu
7bd427d801e1e3293a634d3c83beadaa90ffb911
static void nographic_update(void *opaque) { uint64_t interval = GUI_REFRESH_INTERVAL; qemu_flush_coalesced_mmio_buffer(); qemu_mod_timer(nographic_timer, interval + qemu_get_clock(rt_clock)); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { uint64_t interval = GUI_REFRESH_INTERVAL; qemu_flush_coalesced_mmio_buffer(); qemu_mod_timer(nographic_timer, interval + qemu_get_clock(rt_clock)); }
[ "static void FUNC_0(void *VAR_0)\n{", "uint64_t interval = GUI_REFRESH_INTERVAL;", "qemu_flush_coalesced_mmio_buffer();", "qemu_mod_timer(nographic_timer, interval + qemu_get_clock(rt_clock));", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
15,721
static coroutine_fn int qcow2_co_readv(BlockDriverState *bs, int64_t sector_num, int remaining_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int index_in_cluster, n1; int ret; int cur_nr_sectors; /* number of sectors in current iteration */ uint64_t c...
false
qemu
381b487d54ba18c73df9db8452028a330058c505
static coroutine_fn int qcow2_co_readv(BlockDriverState *bs, int64_t sector_num, int remaining_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int index_in_cluster, n1; int ret; int cur_nr_sectors; uint64_t cluster_offset = 0; uint64_t bytes_done ...
{ "code": [], "line_no": [] }
static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num, int remaining_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int VAR_0, VAR_1; int VAR_2; int VAR_3; uint64_t cluster_offset = 0; uint64_t bytes_done = 0; QEMUIOVector ...
[ "static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num,\nint remaining_sectors, QEMUIOVector *qiov)\n{", "BDRVQcowState *s = bs->opaque;", "int VAR_0, VAR_1;", "int VAR_2;", "int VAR_3;", "uint64_t cluster_offset = 0;", "uint64_t bytes_done = 0;", "QEMUIOVector hd_qiov;", "uint8_t ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 33 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51, 53 ], [ 55 ], [...
15,722
static int sh_pci_init_device(SysBusDevice *dev) { SHPCIState *s; int i; s = FROM_SYSBUS(SHPCIState, dev); for (i = 0; i < 4; i++) { sysbus_init_irq(dev, &s->irq[i]); } s->bus = pci_register_bus(&s->busdev.qdev, "pci", sh_pci_set_irq, sh_pci_map_i...
false
qemu
73c92f9aecc099aa81ee05a2bdb30bb43184cc28
static int sh_pci_init_device(SysBusDevice *dev) { SHPCIState *s; int i; s = FROM_SYSBUS(SHPCIState, dev); for (i = 0; i < 4; i++) { sysbus_init_irq(dev, &s->irq[i]); } s->bus = pci_register_bus(&s->busdev.qdev, "pci", sh_pci_set_irq, sh_pci_map_i...
{ "code": [], "line_no": [] }
static int FUNC_0(SysBusDevice *VAR_0) { SHPCIState *s; int VAR_1; s = FROM_SYSBUS(SHPCIState, VAR_0); for (VAR_1 = 0; VAR_1 < 4; VAR_1++) { sysbus_init_irq(VAR_0, &s->irq[VAR_1]); } s->bus = pci_register_bus(&s->busdev.qdev, "pci", sh_pci_set_irq...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "SHPCIState *s;", "int VAR_1;", "s = FROM_SYSBUS(SHPCIState, VAR_0);", "for (VAR_1 = 0; VAR_1 < 4; VAR_1++) {", "sysbus_init_irq(VAR_0, &s->irq[VAR_1]);", "}", "s->bus = pci_register_bus(&s->busdev.qdev, \"pci\",\nsh_pci_set_irq, sh_pci_map_irq,\ns->irq,\ng...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25, 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
15,724
static uint64_t pxa2xx_lcdc_read(void *opaque, hwaddr offset, unsigned size) { PXA2xxLCDState *s = (PXA2xxLCDState *) opaque; int ch; switch (offset) { case LCCR0: return s->control[0]; case LCCR1: return s->control[1]; case LCCR2: ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static uint64_t pxa2xx_lcdc_read(void *opaque, hwaddr offset, unsigned size) { PXA2xxLCDState *s = (PXA2xxLCDState *) opaque; int ch; switch (offset) { case LCCR0: return s->control[0]; case LCCR1: return s->control[1]; case LCCR2: ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, hwaddr offset, unsigned size) { PXA2xxLCDState *s = (PXA2xxLCDState *) opaque; int VAR_0; switch (offset) { case LCCR0: return s->control[0]; case LCCR1: return s->control[1]; case LCCR2: r...
[ "static uint64_t FUNC_0(void *opaque, hwaddr offset,\nunsigned size)\n{", "PXA2xxLCDState *s = (PXA2xxLCDState *) opaque;", "int VAR_0;", "switch (offset) {", "case LCCR0:\nreturn s->control[0];", "case LCCR1:\nreturn s->control[1];", "case LCCR2:\nreturn s->control[2];", "case LCCR3:\nreturn s->contr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 41, 43 ], [ 45, 47 ], [ 49, 51 ], [ 53, 55 ], [...
15,725
int main_loop(void) { #ifndef _WIN32 struct pollfd ufds[MAX_IO_HANDLERS + 1], *pf; IOHandlerRecord *ioh, *ioh_next; uint8_t buf[4096]; int n, max_size; #endif int ret, timeout; CPUState *env = global_env; for(;;) { if (vm_running) { ret = cpu_exec(env); ...
false
qemu
5905b2e5fd051b046bf531c9b251fd6559145497
int main_loop(void) { #ifndef _WIN32 struct pollfd ufds[MAX_IO_HANDLERS + 1], *pf; IOHandlerRecord *ioh, *ioh_next; uint8_t buf[4096]; int n, max_size; #endif int ret, timeout; CPUState *env = global_env; for(;;) { if (vm_running) { ret = cpu_exec(env); ...
{ "code": [], "line_no": [] }
int FUNC_0(void) { #ifndef _WIN32 struct pollfd VAR_0[MAX_IO_HANDLERS + 1], *pf; IOHandlerRecord *ioh, *ioh_next; uint8_t buf[4096]; int VAR_1, VAR_2; #endif int VAR_3, VAR_4; CPUState *env = global_env; for(;;) { if (vm_running) { VAR_3 = cpu_exec(env); ...
[ "int FUNC_0(void)\n{", "#ifndef _WIN32\nstruct pollfd VAR_0[MAX_IO_HANDLERS + 1], *pf;", "IOHandlerRecord *ioh, *ioh_next;", "uint8_t buf[4096];", "int VAR_1, VAR_2;", "#endif\nint VAR_3, VAR_4;", "CPUState *env = global_env;", "for(;;) {", "if (vm_running) {", "VAR_3 = cpu_exec(env);", "if (shu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
15,726
static void intel_hda_corb_run(IntelHDAState *d) { hwaddr addr; uint32_t rp, verb; if (d->ics & ICH6_IRS_BUSY) { dprint(d, 2, "%s: [icw] verb 0x%08x\n", __FUNCTION__, d->icw); intel_hda_send_command(d, d->icw); return; } for (;;) { if (!(d->corb_ctl & IC...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void intel_hda_corb_run(IntelHDAState *d) { hwaddr addr; uint32_t rp, verb; if (d->ics & ICH6_IRS_BUSY) { dprint(d, 2, "%s: [icw] verb 0x%08x\n", __FUNCTION__, d->icw); intel_hda_send_command(d, d->icw); return; } for (;;) { if (!(d->corb_ctl & IC...
{ "code": [], "line_no": [] }
static void FUNC_0(IntelHDAState *VAR_0) { hwaddr addr; uint32_t rp, verb; if (VAR_0->ics & ICH6_IRS_BUSY) { dprint(VAR_0, 2, "%s: [icw] verb 0x%08x\n", __FUNCTION__, VAR_0->icw); intel_hda_send_command(VAR_0, VAR_0->icw); return; } for (;;) { if (!(VAR_...
[ "static void FUNC_0(IntelHDAState *VAR_0)\n{", "hwaddr addr;", "uint32_t rp, verb;", "if (VAR_0->ics & ICH6_IRS_BUSY) {", "dprint(VAR_0, 2, \"%s: [icw] verb 0x%08x\\n\", __FUNCTION__, VAR_0->icw);", "intel_hda_send_command(VAR_0, VAR_0->icw);", "return;", "}", "for (;;) {", "if (!(VAR_0->corb_ctl ...
[ 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
15,727
static inline int valid_flags(int flag) { if (flag & O_NOCTTY || flag & O_NONBLOCK || flag & O_ASYNC || flag & O_CLOEXEC) return 0; else return 1; }
false
qemu
630c26893d6dc7713c0fcfc3c09d6bfe536a6ce3
static inline int valid_flags(int flag) { if (flag & O_NOCTTY || flag & O_NONBLOCK || flag & O_ASYNC || flag & O_CLOEXEC) return 0; else return 1; }
{ "code": [], "line_no": [] }
static inline int FUNC_0(int VAR_0) { if (VAR_0 & O_NOCTTY || VAR_0 & O_NONBLOCK || VAR_0 & O_ASYNC || VAR_0 & O_CLOEXEC) return 0; else return 1; }
[ "static inline int FUNC_0(int VAR_0)\n{", "if (VAR_0 & O_NOCTTY || VAR_0 & O_NONBLOCK || VAR_0 & O_ASYNC ||\nVAR_0 & O_CLOEXEC)\nreturn 0;", "else\nreturn 1;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11, 13 ], [ 15 ] ]
15,729
static void vfio_map_bar(VFIOPCIDevice *vdev, int nr) { VFIOBAR *bar = &vdev->bars[nr]; uint64_t size = bar->region.size; char name[64]; uint32_t pci_bar; uint8_t type; int ret; /* Skip both unimplemented BARs and the upper half of 64bit BARS. */ if (!size) { return; ...
false
qemu
7df9381b7aa56c897e344f3bfe43bf5848bbd3e0
static void vfio_map_bar(VFIOPCIDevice *vdev, int nr) { VFIOBAR *bar = &vdev->bars[nr]; uint64_t size = bar->region.size; char name[64]; uint32_t pci_bar; uint8_t type; int ret; if (!size) { return; } snprintf(name, sizeof(name), "VFIO %04x:%02x:%02x.%x B...
{ "code": [], "line_no": [] }
static void FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1) { VFIOBAR *bar = &VAR_0->bars[VAR_1]; uint64_t size = bar->region.size; char VAR_2[64]; uint32_t pci_bar; uint8_t type; int VAR_3; if (!size) { return; } snprintf(VAR_2, sizeof(VAR_2), "VFIO %04x:%02x:%0...
[ "static void FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1)\n{", "VFIOBAR *bar = &VAR_0->bars[VAR_1];", "uint64_t size = bar->region.size;", "char VAR_2[64];", "uint32_t pci_bar;", "uint8_t type;", "int VAR_3;", "if (!size) {", "return;", "}", "snprintf(VAR_2, sizeof(VAR_2), \"VFIO %04x:%02x:%02x.%x BA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31, 33 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [...
15,730
static void ich9_cc_write(void *opaque, hwaddr addr, uint64_t val, unsigned len) { ICH9LPCState *lpc = (ICH9LPCState *)opaque; ich9_cc_addr_len(&addr, &len); memcpy(lpc->chip_config + addr, &val, len); pci_bus_fire_intx_routing_notifier(lpc->d.bus); ich9_cc_update(...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static void ich9_cc_write(void *opaque, hwaddr addr, uint64_t val, unsigned len) { ICH9LPCState *lpc = (ICH9LPCState *)opaque; ich9_cc_addr_len(&addr, &len); memcpy(lpc->chip_config + addr, &val, len); pci_bus_fire_intx_routing_notifier(lpc->d.bus); ich9_cc_update(...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { ICH9LPCState *lpc = (ICH9LPCState *)VAR_0; ich9_cc_addr_len(&VAR_1, &VAR_3); memcpy(lpc->chip_config + VAR_1, &VAR_2, VAR_3); pci_bus_fire_intx_routing_notifier(lpc->d.bus); ich9_cc_upd...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "ICH9LPCState *lpc = (ICH9LPCState *)VAR_0;", "ich9_cc_addr_len(&VAR_1, &VAR_3);", "memcpy(lpc->chip_config + VAR_1, &VAR_2, VAR_3);", "pci_bus_fire_intx_routing_notifier(lpc->d.bus);", "ich9_cc_update(lpc);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
15,732
opts_type_int(Visitor *v, int64_t *obj, const char *name, Error **errp) { OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, v); const QemuOpt *opt; const char *str; long long val; char *endptr; if (ov->list_mode == LM_SIGNED_INTERVAL) { *obj = ov->range_next.s; return;...
false
qemu
15a849be100b54776bcf63193c3fea598666030f
opts_type_int(Visitor *v, int64_t *obj, const char *name, Error **errp) { OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, v); const QemuOpt *opt; const char *str; long long val; char *endptr; if (ov->list_mode == LM_SIGNED_INTERVAL) { *obj = ov->range_next.s; return;...
{ "code": [], "line_no": [] }
FUNC_0(Visitor *VAR_0, int64_t *VAR_1, const char *VAR_2, Error **VAR_3) { OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, VAR_0); const QemuOpt *VAR_4; const char *VAR_5; long long VAR_6; char *VAR_7; if (ov->list_mode == LM_SIGNED_INTERVAL) { *VAR_1 = ov->range_next.s; ...
[ "FUNC_0(Visitor *VAR_0, int64_t *VAR_1, const char *VAR_2, Error **VAR_3)\n{", "OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, VAR_0);", "const QemuOpt *VAR_4;", "const char *VAR_5;", "long long VAR_6;", "char *VAR_7;", "if (ov->list_mode == LM_SIGNED_INTERVAL) {", "*VAR_1 = ov->range_next.s;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
15,733
float32 HELPER(ucf64_df2sf)(float64 x, CPUUniCore32State *env) { return float64_to_float32(x, &env->ucf64.fp_status); }
false
qemu
e8ede0a8bb5298a6979bcf7ed84ef64a64a4e3fe
float32 HELPER(ucf64_df2sf)(float64 x, CPUUniCore32State *env) { return float64_to_float32(x, &env->ucf64.fp_status); }
{ "code": [], "line_no": [] }
float32 FUNC_0(ucf64_df2sf)(float64 x, CPUUniCore32State *env) { return float64_to_float32(x, &env->ucf64.fp_status); }
[ "float32 FUNC_0(ucf64_df2sf)(float64 x, CPUUniCore32State *env)\n{", "return float64_to_float32(x, &env->ucf64.fp_status);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
15,734
static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb, AVStream *st, int read_all) { RMDemuxContext *rm = s->priv_data; char buf[256]; uint32_t version; int i; /* ra type header */ version = get_be32(pb); /* version */ if (...
false
FFmpeg
b9b2b8c93b40a2d96f25362e9c8d7611d0adc3c7
static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb, AVStream *st, int read_all) { RMDemuxContext *rm = s->priv_data; char buf[256]; uint32_t version; int i; version = get_be32(pb); if (((version >> 16) & 0xff) == 3) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, ByteIOContext *VAR_1, AVStream *VAR_2, int VAR_3) { RMDemuxContext *rm = VAR_0->priv_data; char VAR_4[256]; uint32_t version; int VAR_11; version = get_be32(VAR_1); if (((version >> 16) & 0xff) == 3) ...
[ "static int FUNC_0(AVFormatContext *VAR_0, ByteIOContext *VAR_1,\nAVStream *VAR_2, int VAR_3)\n{", "RMDemuxContext *rm = VAR_0->priv_data;", "char VAR_4[256];", "uint32_t version;", "int VAR_11;", "version = get_be32(VAR_1);", "if (((version >> 16) & 0xff) == 3) {", "int64_t startpos = url_ftell(VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ...
15,735
void ff_rv10_encode_picture_header(MpegEncContext *s, int picture_number) { int full_frame= 0; avpriv_align_put_bits(&s->pb); put_bits(&s->pb, 1, 1); /* marker */ put_bits(&s->pb, 1, (s->pict_type == AV_PICTURE_TYPE_P)); put_bits(&s->pb, 1, 0); /* not PB frame */ put_bit...
false
FFmpeg
2578a546183da09d49d5bba8ab5e982dece1dede
void ff_rv10_encode_picture_header(MpegEncContext *s, int picture_number) { int full_frame= 0; avpriv_align_put_bits(&s->pb); put_bits(&s->pb, 1, 1); put_bits(&s->pb, 1, (s->pict_type == AV_PICTURE_TYPE_P)); put_bits(&s->pb, 1, 0); put_bits(&s->pb, 5, s->qscale); ...
{ "code": [], "line_no": [] }
void FUNC_0(MpegEncContext *VAR_0, int VAR_1) { int VAR_2= 0; avpriv_align_put_bits(&VAR_0->pb); put_bits(&VAR_0->pb, 1, 1); put_bits(&VAR_0->pb, 1, (VAR_0->pict_type == AV_PICTURE_TYPE_P)); put_bits(&VAR_0->pb, 1, 0); put_bits(&VAR_0->pb, 5, VAR_0->qscale); if ...
[ "void FUNC_0(MpegEncContext *VAR_0, int VAR_1)\n{", "int VAR_2= 0;", "avpriv_align_put_bits(&VAR_0->pb);", "put_bits(&VAR_0->pb, 1, 1);", "put_bits(&VAR_0->pb, 1, (VAR_0->pict_type == AV_PICTURE_TYPE_P));", "put_bits(&VAR_0->pb, 1, 0);", "put_bits(&VAR_0->pb, 5, VAR_0->qscale);", "if (VAR_0->pict_type...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 21 ], [ 25 ], [ 29 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ] ]
15,736
int ff_cmap_read_palette(AVCodecContext *avctx, uint32_t *pal) { int count, i; if (avctx->bits_per_coded_sample > 8) { av_log(avctx, AV_LOG_ERROR, "bit_per_coded_sample > 8 not supported\n"); return AVERROR_INVALIDDATA; } count = 1 << avctx->bits_per_coded_sample; if (avc...
false
FFmpeg
473147bed01c0c6c82d85fd79d3e1c1d65542663
int ff_cmap_read_palette(AVCodecContext *avctx, uint32_t *pal) { int count, i; if (avctx->bits_per_coded_sample > 8) { av_log(avctx, AV_LOG_ERROR, "bit_per_coded_sample > 8 not supported\n"); return AVERROR_INVALIDDATA; } count = 1 << avctx->bits_per_coded_sample; if (avc...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, uint32_t *VAR_1) { int VAR_2, VAR_3; if (VAR_0->bits_per_coded_sample > 8) { av_log(VAR_0, AV_LOG_ERROR, "bit_per_coded_sample > 8 not supported\n"); return AVERROR_INVALIDDATA; } VAR_2 = 1 << VAR_0->bits_per_coded_sample; if (VAR_0->extr...
[ "int FUNC_0(AVCodecContext *VAR_0, uint32_t *VAR_1)\n{", "int VAR_2, VAR_3;", "if (VAR_0->bits_per_coded_sample > 8) {", "av_log(VAR_0, AV_LOG_ERROR, \"bit_per_coded_sample > 8 not supported\\n\");", "return AVERROR_INVALIDDATA;", "}", "VAR_2 = 1 << VAR_0->bits_per_coded_sample;", "if (VAR_0->extradat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
15,737
static CharDriverState* create_eventfd_chr_device(IVShmemState *s, EventNotifier *n, int vector) { /* create a event character device based on the passed eventfd */ PCIDevice *pdev = PCI_DEVICE(s); int ...
true
qemu
47213eb1104709bf238c8d16db20aa47d37b1c59
static CharDriverState* create_eventfd_chr_device(IVShmemState *s, EventNotifier *n, int vector) { PCIDevice *pdev = PCI_DEVICE(s); int eventfd = event_notifier_get_fd(n); CharDriverState *chr; ...
{ "code": [ " PCIDevice *pdev = PCI_DEVICE(s);", " s->msi_vectors[vector].pdev = pdev;" ], "line_no": [ 11, 19 ] }
static CharDriverState* FUNC_0(IVShmemState *s, EventNotifier *n, int vector) { PCIDevice *pdev = PCI_DEVICE(s); int VAR_0 = event_notifier_get_fd(n); CharDriverState *chr; s->msi_vectors[v...
[ "static CharDriverState* FUNC_0(IVShmemState *s,\nEventNotifier *n,\nint vector)\n{", "PCIDevice *pdev = PCI_DEVICE(s);", "int VAR_0 = event_notifier_get_fd(n);", "CharDriverState *chr;", "s->msi_vectors[vector].pdev = pdev;", "chr = qemu_chr_open_eventfd(VAR_0);", "if (chr == NULL) {", "error_report(...
[ 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [ 53, 55 ], [ 57 ], [ 61...
15,738
void ff_hcscale_fast_mmxext(SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) { int32_t *filterPos = c->hChrFilterPos; int16_t *filter = c->hChrFilter; void *m...
true
FFmpeg
319438e2f206036ee0cddf401dd50f3b2a3ae117
void ff_hcscale_fast_mmxext(SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) { int32_t *filterPos = c->hChrFilterPos; int16_t *filter = c->hChrFilter; void *m...
{ "code": [ "#if defined(PIC)", "#if defined(PIC)", "#if defined(PIC)", "#if defined(PIC)", "#if ARCH_X86_64 || !defined(PIC)", "#if defined(PIC)", "#if defined(PIC)", "#if defined(PIC)", "#if defined(PIC)", "#if ARCH_X86_64 || !defined(PIC)" ], "line_no": [ 23, 23,...
void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int16_t *VAR_2, int VAR_3, const uint8_t *VAR_4, const uint8_t *VAR_5, int VAR_6, int VAR_7) { int32_t *filterPos = VAR_0->hChrFilterPos; int16_t *filter = VAR_0->hChrFilter; void *VA...
[ "void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int16_t *VAR_2,\nint VAR_3, const uint8_t *VAR_4,\nconst uint8_t *VAR_5, int VAR_6, int VAR_7)\n{", "int32_t *filterPos = VAR_0->hChrFilterPos;", "int16_t *filter = VAR_0->hChrFilter;", "void *VAR_8 = VAR_0->chrMmxextFilterCode;", "int VAR_9;", "#if AR...
[ 0, 0, 0, 0, 0, 0, 1, 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,...
15,739
static always_inline void gen_sradi (DisasContext *ctx, int n) { int sh = SH(ctx->opcode) + (n << 5); if (sh != 0) { int l1, l2; TCGv t0; l1 = gen_new_label(); l2 = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_GE, cpu_gpr[rS(ctx->opcode)], 0, l1); t0 = tc...
true
qemu
a973001797221b0fd7be55cb6513c72a01f4b639
static always_inline void gen_sradi (DisasContext *ctx, int n) { int sh = SH(ctx->opcode) + (n << 5); if (sh != 0) { int l1, l2; TCGv t0; l1 = gen_new_label(); l2 = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_GE, cpu_gpr[rS(ctx->opcode)], 0, l1); t0 = tc...
{ "code": [ " } else {", " t0 = tcg_temp_new(TCG_TYPE_TL);" ], "line_no": [ 37, 19 ] }
static always_inline void FUNC_0 (DisasContext *ctx, int n) { int VAR_0 = SH(ctx->opcode) + (n << 5); if (VAR_0 != 0) { int VAR_1, VAR_2; TCGv t0; VAR_1 = gen_new_label(); VAR_2 = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_GE, cpu_gpr[rS(ctx->opcode)], 0, VAR_1)...
[ "static always_inline void FUNC_0 (DisasContext *ctx, int n)\n{", "int VAR_0 = SH(ctx->opcode) + (n << 5);", "if (VAR_0 != 0) {", "int VAR_1, VAR_2;", "TCGv t0;", "VAR_1 = gen_new_label();", "VAR_2 = gen_new_label();", "tcg_gen_brcondi_tl(TCG_COND_GE, cpu_gpr[rS(ctx->opcode)], 0, VAR_1);", "t0 = tcg...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
15,740
static inline int wnv1_get_code(WNV1Context *w, int base_value) { int v = get_vlc2(&w->gb, code_vlc.table, CODE_VLC_BITS, 1); if (v == 15) return ff_reverse[get_bits(&w->gb, 8 - w->shift)]; else return base_value + ((v - 7) << w->shift); }
true
FFmpeg
9fac508ca46f93450ec232299dfd15ac70b6f326
static inline int wnv1_get_code(WNV1Context *w, int base_value) { int v = get_vlc2(&w->gb, code_vlc.table, CODE_VLC_BITS, 1); if (v == 15) return ff_reverse[get_bits(&w->gb, 8 - w->shift)]; else return base_value + ((v - 7) << w->shift); }
{ "code": [ " return base_value + ((v - 7) << w->shift);" ], "line_no": [ 15 ] }
static inline int FUNC_0(WNV1Context *VAR_0, int VAR_1) { int VAR_2 = get_vlc2(&VAR_0->gb, code_vlc.table, CODE_VLC_BITS, 1); if (VAR_2 == 15) return ff_reverse[get_bits(&VAR_0->gb, 8 - VAR_0->shift)]; else return VAR_1 + ((VAR_2 - 7) << VAR_0->shift); }
[ "static inline int FUNC_0(WNV1Context *VAR_0, int VAR_1)\n{", "int VAR_2 = get_vlc2(&VAR_0->gb, code_vlc.table, CODE_VLC_BITS, 1);", "if (VAR_2 == 15)\nreturn ff_reverse[get_bits(&VAR_0->gb, 8 - VAR_0->shift)];", "else\nreturn VAR_1 + ((VAR_2 - 7) << VAR_0->shift);", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17 ] ]
15,741
static void cirrus_mem_writeb_mode4and5_16bpp(CirrusVGAState * s, unsigned mode, unsigned offset, uint32_t mem_value) { int x; unsigned val = mem_value; uint8_t *dst; dst = s->vram_ptr + offset; for (x = 0; x < 8; x++) { if (val & 0x80) { *dst = s-...
true
qemu
b2eb849d4b1fdb6f35d5c46958c7f703cf64cfef
static void cirrus_mem_writeb_mode4and5_16bpp(CirrusVGAState * s, unsigned mode, unsigned offset, uint32_t mem_value) { int x; unsigned val = mem_value; uint8_t *dst; dst = s->vram_ptr + offset; for (x = 0; x < 8; x++) { if (val & 0x80) { *dst = s-...
{ "code": [ " dst = s->vram_ptr + offset;", " dst = s->vram_ptr + offset;" ], "line_no": [ 19, 19 ] }
static void FUNC_0(CirrusVGAState * VAR_0, unsigned VAR_1, unsigned VAR_2, uint32_t VAR_3) { int VAR_4; unsigned VAR_5 = VAR_3; uint8_t *dst; dst = VAR_0->vram_ptr + VAR_2; for (VAR_4 = 0; VAR_4 < 8; VAR_4++) { if (VAR_5 & 0x80) { *dst = VAR_0->cir...
[ "static void FUNC_0(CirrusVGAState * VAR_0,\nunsigned VAR_1,\nunsigned VAR_2,\nuint32_t VAR_3)\n{", "int VAR_4;", "unsigned VAR_5 = VAR_3;", "uint8_t *dst;", "dst = VAR_0->vram_ptr + VAR_2;", "for (VAR_4 = 0; VAR_4 < 8; VAR_4++) {", "if (VAR_5 & 0x80) {", "*dst = VAR_0->cirrus_shadow_gr1;", "*(dst +...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
15,742
static void raw_refresh_limits(BlockDriverState *bs, Error **errp) { BDRVRawState *s = bs->opaque; struct stat st; if (!fstat(s->fd, &st)) { if (S_ISBLK(st.st_mode) || S_ISCHR(st.st_mode)) { int ret = hdev_get_max_transfer_length(bs, s->fd); if (ret > 0 && ret <= BDR...
true
qemu
9103f1ceb46614b150bcbc3c9a4fbc72b47fedcc
static void raw_refresh_limits(BlockDriverState *bs, Error **errp) { BDRVRawState *s = bs->opaque; struct stat st; if (!fstat(s->fd, &st)) { if (S_ISBLK(st.st_mode) || S_ISCHR(st.st_mode)) { int ret = hdev_get_max_transfer_length(bs, s->fd); if (ret > 0 && ret <= BDR...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1) { BDRVRawState *s = VAR_0->opaque; struct stat VAR_2; if (!fstat(s->fd, &VAR_2)) { if (S_ISBLK(VAR_2.st_mode) || S_ISCHR(VAR_2.st_mode)) { int VAR_3 = hdev_get_max_transfer_length(VAR_0, s->fd); if (VAR_3 > 0...
[ "static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)\n{", "BDRVRawState *s = VAR_0->opaque;", "struct stat VAR_2;", "if (!fstat(s->fd, &VAR_2)) {", "if (S_ISBLK(VAR_2.st_mode) || S_ISCHR(VAR_2.st_mode)) {", "int VAR_3 = hdev_get_max_transfer_length(VAR_0, s->fd);", "if (VAR_3 > 0 && VAR_3 <= BDRV...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 31 ], [ 33 ], [ 35 ] ]
15,743
int av_image_get_linesize(enum PixelFormat pix_fmt, int width, int plane) { const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt]; int max_step [4]; /* max pixel step for each plane */ int max_step_comp[4]; /* the component for each plane which has the max pixel step */ ...
true
FFmpeg
10931720cd55d83e0b933b8a9bb0795fd9e48875
int av_image_get_linesize(enum PixelFormat pix_fmt, int width, int plane) { const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt]; int max_step [4]; int max_step_comp[4]; int s; if (desc->flags & PIX_FMT_BITSTREAM) return (width * (desc->comp[0].step_mi...
{ "code": [ " int s;", " if (desc->flags & PIX_FMT_BITSTREAM)", " return (width * (desc->comp[0].step_minus1+1) + 7) >> 3;", " return max_step[plane] * (((width + (1 << s) - 1)) >> s);" ], "line_no": [ 11, 15, 17, 25 ] }
int FUNC_0(enum PixelFormat VAR_0, int VAR_1, int VAR_2) { const AVPixFmtDescriptor *VAR_3 = &av_pix_fmt_descriptors[VAR_0]; int VAR_4 [4]; int VAR_5[4]; int VAR_6; if (VAR_3->flags & PIX_FMT_BITSTREAM) return (VAR_1 * (VAR_3->comp[0].step_minus1+1) + 7) >> 3; ...
[ "int FUNC_0(enum PixelFormat VAR_0, int VAR_1, int VAR_2)\n{", "const AVPixFmtDescriptor *VAR_3 = &av_pix_fmt_descriptors[VAR_0];", "int VAR_4 [4];", "int VAR_5[4];", "int VAR_6;", "if (VAR_3->flags & PIX_FMT_BITSTREAM)\nreturn (VAR_1 * (VAR_3->comp[0].step_minus1+1) + 7) >> 3;", "av_image_fill_max_...
[ 0, 0, 0, 0, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
15,744
rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t rtp_seq, int flags) { int seq = 1, res; AVIOContext pb; if (!rdt->rmctx) return AVERROR(EINVAL); if...
true
FFmpeg
078d43e23a7a3d64aafee8a58b380d3e139b3020
rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t rtp_seq, int flags) { int seq = 1, res; AVIOContext pb; if (!rdt->rmctx) return AVERROR(EINVAL); if...
{ "code": [ " if (!rdt->rmctx)", " return AVERROR(EINVAL);", " return AVERROR(EINVAL);" ], "line_no": [ 15, 17, 17 ] }
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 = 1, VAR_10; AVIOContext pb; if (!VAR_1->rmctx) return AVERROR(EINVAL); ...
[ "FUNC_0 (AVFormatContext *VAR_0, PayloadContext *VAR_1, AVStream *VAR_2,\nAVPacket *VAR_3, uint32_t *VAR_4,\nconst uint8_t *VAR_5, int VAR_6, uint16_t VAR_7, int VAR_8)\n{", "int VAR_9 = 1, VAR_10;", "AVIOContext pb;", "if (!VAR_1->rmctx)\nreturn AVERROR(EINVAL);", "if (VAR_1->audio_pkt_cnt == 0) {", "int...
[ 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 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ...
15,745
static BlockBackend *img_open_file(const char *filename, QDict *options, const char *fmt, int flags, bool writethrough, bool quiet, bool force_share) { BlockBackend *blk;...
true
qemu
788cf9f8c8cbda53843e060540f3e91a060eb744
static BlockBackend *img_open_file(const char *filename, QDict *options, const char *fmt, int flags, bool writethrough, bool quiet, bool force_share) { BlockBackend *blk;...
{ "code": [ " Error *local_err = NULL;", " BlockBackend *blk;", " if (!blk) {", " blk_unref(blk);", " return NULL;", " if (img_open_password(blk, filename, flags, quiet) < 0) {", " blk_unref(blk);", " return NULL;", " Error *local_err = NU...
static BlockBackend *FUNC_0(const char *filename, QDict *options, const char *fmt, int flags, bool writethrough, bool quiet, bool force_share) { BlockBackend *blk; E...
[ "static BlockBackend *FUNC_0(const char *filename,\nQDict *options,\nconst char *fmt, int flags,\nbool writethrough, bool quiet,\nbool force_share)\n{", "BlockBackend *blk;", "Error *local_err = NULL;", "if (!options) {", "options = qdict_new();", "}", "if (fmt) {", "qdict_put_str(options, \"driver\",...
[ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
15,746
ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb, AVStream *st, RMStream *ast, AVPacket *pkt) { RMDemuxContext *rm = s->priv_data; assert (rm->audio_pkt_cnt > 0); if (ast->deint_id == DEINT_ID_VBRF || ast->deint_id == DEINT_ID_VBRS) av_get_packet(pb,...
false
FFmpeg
7207dd8f829baee58b4df6c97c19ffde77039e8d
ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb, AVStream *st, RMStream *ast, AVPacket *pkt) { RMDemuxContext *rm = s->priv_data; assert (rm->audio_pkt_cnt > 0); if (ast->deint_id == DEINT_ID_VBRF || ast->deint_id == DEINT_ID_VBRS) av_get_packet(pb,...
{ "code": [], "line_no": [] }
FUNC_0 (AVFormatContext *VAR_0, AVIOContext *VAR_1, AVStream *VAR_2, RMStream *VAR_3, AVPacket *VAR_4) { RMDemuxContext *rm = VAR_0->priv_data; assert (rm->audio_pkt_cnt > 0); if (VAR_3->deint_id == DEINT_ID_VBRF || VAR_3->deint_id == DEINT_ID_VBRS) av_get_pa...
[ "FUNC_0 (AVFormatContext *VAR_0, AVIOContext *VAR_1,\nAVStream *VAR_2, RMStream *VAR_3, AVPacket *VAR_4)\n{", "RMDemuxContext *rm = VAR_0->priv_data;", "assert (rm->audio_pkt_cnt > 0);", "if (VAR_3->deint_id == DEINT_ID_VBRF ||\nVAR_3->deint_id == DEINT_ID_VBRS)\nav_get_packet(VAR_1, VAR_4, VAR_3->sub_packet_...
[ 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ] ]
15,747
int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt) { if (!pkt) { ctx->internal->eof = 1; return 0; } if (ctx->internal->eof) { av_log(ctx, AV_LOG_ERROR, "A non-NULL packet sent after an EOF.\n"); return AVERROR(EINVAL); } if (ctx->internal->buffer_...
false
FFmpeg
f92e1af844208eb34fc0cdb2e38959c3a92165c9
int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt) { if (!pkt) { ctx->internal->eof = 1; return 0; } if (ctx->internal->eof) { av_log(ctx, AV_LOG_ERROR, "A non-NULL packet sent after an EOF.\n"); return AVERROR(EINVAL); } if (ctx->internal->buffer_...
{ "code": [], "line_no": [] }
int FUNC_0(AVBSFContext *VAR_0, AVPacket *VAR_1) { if (!VAR_1) { VAR_0->internal->eof = 1; return 0; } if (VAR_0->internal->eof) { av_log(VAR_0, AV_LOG_ERROR, "A non-NULL packet sent after an EOF.\n"); return AVERROR(EINVAL); } if (VAR_0->internal->buffe...
[ "int FUNC_0(AVBSFContext *VAR_0, AVPacket *VAR_1)\n{", "if (!VAR_1) {", "VAR_0->internal->eof = 1;", "return 0;", "}", "if (VAR_0->internal->eof) {", "av_log(VAR_0, AV_LOG_ERROR, \"A non-NULL packet sent after an EOF.\\n\");", "return AVERROR(EINVAL);", "}", "if (VAR_0->internal->buffer_pkt->data ...
[ 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 ], [ 33 ], [ 37 ], [ 39 ] ]
15,749
static int refresh_thread(void *opaque) { VideoState *is= opaque; while (!is->abort_request) { SDL_Event event; event.type = FF_REFRESH_EVENT; event.user.data1 = opaque; if (!is->refresh && (!is->paused || is->force_refresh)) { is->refresh = 1; SD...
false
FFmpeg
b853cfe7eaf13b7d4ff3ceba7098544ccc049df8
static int refresh_thread(void *opaque) { VideoState *is= opaque; while (!is->abort_request) { SDL_Event event; event.type = FF_REFRESH_EVENT; event.user.data1 = opaque; if (!is->refresh && (!is->paused || is->force_refresh)) { is->refresh = 1; SD...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0) { VideoState *is= VAR_0; while (!is->abort_request) { SDL_Event event; event.type = FF_REFRESH_EVENT; event.user.data1 = VAR_0; if (!is->refresh && (!is->paused || is->force_refresh)) { is->refresh = 1; SDL_PushEvent...
[ "static int FUNC_0(void *VAR_0)\n{", "VideoState *is= VAR_0;", "while (!is->abort_request) {", "SDL_Event event;", "event.type = FF_REFRESH_EVENT;", "event.user.data1 = VAR_0;", "if (!is->refresh && (!is->paused || is->force_refresh)) {", "is->refresh = 1;", "SDL_PushEvent(&event);", "}", "av_us...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
15,751
void ff_hpeldsp_init_x86(HpelDSPContext *c, int flags) { int cpu_flags = av_get_cpu_flags(); if (INLINE_MMX(cpu_flags)) hpeldsp_init_mmx(c, flags, cpu_flags); if (EXTERNAL_MMXEXT(cpu_flags)) hpeldsp_init_mmxext(c, flags, cpu_flags); if (EXTERNAL_AMD3DNOW(cpu_flags)) ...
false
FFmpeg
3d7c84747d4b68f3929c98a6e09efea8e53634dc
void ff_hpeldsp_init_x86(HpelDSPContext *c, int flags) { int cpu_flags = av_get_cpu_flags(); if (INLINE_MMX(cpu_flags)) hpeldsp_init_mmx(c, flags, cpu_flags); if (EXTERNAL_MMXEXT(cpu_flags)) hpeldsp_init_mmxext(c, flags, cpu_flags); if (EXTERNAL_AMD3DNOW(cpu_flags)) ...
{ "code": [], "line_no": [] }
void FUNC_0(HpelDSPContext *VAR_0, int VAR_1) { int VAR_2 = av_get_cpu_flags(); if (INLINE_MMX(VAR_2)) hpeldsp_init_mmx(VAR_0, VAR_1, VAR_2); if (EXTERNAL_MMXEXT(VAR_2)) hpeldsp_init_mmxext(VAR_0, VAR_1, VAR_2); if (EXTERNAL_AMD3DNOW(VAR_2)) hpeldsp_init_3dnow(VAR_0...
[ "void FUNC_0(HpelDSPContext *VAR_0, int VAR_1)\n{", "int VAR_2 = av_get_cpu_flags();", "if (INLINE_MMX(VAR_2))\nhpeldsp_init_mmx(VAR_0, VAR_1, VAR_2);", "if (EXTERNAL_MMXEXT(VAR_2))\nhpeldsp_init_mmxext(VAR_0, VAR_1, VAR_2);", "if (EXTERNAL_AMD3DNOW(VAR_2))\nhpeldsp_init_3dnow(VAR_0, VAR_1, VAR_2);", "if ...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15, 17 ], [ 21, 23 ], [ 27, 29 ], [ 31 ] ]
15,752
int av_opt_get(void *obj, const char *name, int search_flags, uint8_t **out_val) { void *dst, *target_obj; const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj); uint8_t *bin, buf[128]; int len, i, ret; if (!o || !target_obj) return AVERROR_OPTION_NOT_FOUND...
false
FFmpeg
b1306823d0b3ae998c8e10ad832004eb13bdd93e
int av_opt_get(void *obj, const char *name, int search_flags, uint8_t **out_val) { void *dst, *target_obj; const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj); uint8_t *bin, buf[128]; int len, i, ret; if (!o || !target_obj) return AVERROR_OPTION_NOT_FOUND...
{ "code": [], "line_no": [] }
int FUNC_0(void *VAR_0, const char *VAR_1, int VAR_2, uint8_t **VAR_3) { void *VAR_4, *VAR_5; const AVOption *VAR_6 = av_opt_find2(VAR_0, VAR_1, NULL, 0, VAR_2, &VAR_5); uint8_t *bin, buf[128]; int VAR_7, VAR_8, VAR_9; if (!VAR_6 || !VAR_5) return AVERROR_OPTION_NOT_FOUND; VA...
[ "int FUNC_0(void *VAR_0, const char *VAR_1, int VAR_2, uint8_t **VAR_3)\n{", "void *VAR_4, *VAR_5;", "const AVOption *VAR_6 = av_opt_find2(VAR_0, VAR_1, NULL, 0, VAR_2, &VAR_5);", "uint8_t *bin, buf[128];", "int VAR_7, VAR_8, VAR_9;", "if (!VAR_6 || !VAR_5)\nreturn AVERROR_OPTION_NOT_FOUND;", "VAR_4 = (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43, 45 ], [ 47, 49 ], [ 51 ...
15,753
static int alac_set_info(ALACContext *alac) { const unsigned char *ptr = alac->avctx->extradata; ptr += 4; /* size */ ptr += 4; /* alac */ ptr += 4; /* 0 ? */ if(AV_RB32(ptr) >= UINT_MAX/4){ av_log(alac->avctx, AV_LOG_ERROR, "setinfo_max_samples_per_frame too large\n"); r...
true
FFmpeg
53df079a730043cd0aa330c9aba7950034b1424f
static int alac_set_info(ALACContext *alac) { const unsigned char *ptr = alac->avctx->extradata; ptr += 4; ptr += 4; ptr += 4; if(AV_RB32(ptr) >= UINT_MAX/4){ av_log(alac->avctx, AV_LOG_ERROR, "setinfo_max_samples_per_frame too large\n"); return -1; } ...
{ "code": [ "static int alac_set_info(ALACContext *alac)", " const unsigned char *ptr = alac->avctx->extradata;", " if(AV_RB32(ptr) >= UINT_MAX/4){", " av_log(alac->avctx, AV_LOG_ERROR, \"setinfo_max_samples_per_frame too large\\n\");", " return -1;", " alac->setinfo_max...
static int FUNC_0(ALACContext *VAR_0) { const unsigned char *VAR_1 = VAR_0->avctx->extradata; VAR_1 += 4; VAR_1 += 4; VAR_1 += 4; if(AV_RB32(VAR_1) >= UINT_MAX/4){ av_log(VAR_0->avctx, AV_LOG_ERROR, "setinfo_max_samples_per_frame too large\n"); return -1; } ...
[ "static int FUNC_0(ALACContext *VAR_0)\n{", "const unsigned char *VAR_1 = VAR_0->avctx->extradata;", "VAR_1 += 4;", "VAR_1 += 4;", "VAR_1 += 4;", "if(AV_RB32(VAR_1) >= UINT_MAX/4){", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"setinfo_max_samples_per_frame too large\\n\");", "return -1;", "}", "VAR_0->s...
[ 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
15,755
int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile) { int mbn, blk, num_blocks, num_coeffs, blk_size, scan_pos, run, val, pos, is_intra, mc_type, mv_x, mv_y, col_mask; uint8_t col_flags[8]; int32_t prev_dc, trvec[64]; uint32_t cbp, sym, ...
true
FFmpeg
b1563d0cf99a6ac1dd66d8baabe60b1c859a735a
int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile) { int mbn, blk, num_blocks, num_coeffs, blk_size, scan_pos, run, val, pos, is_intra, mc_type, mv_x, mv_y, col_mask; uint8_t col_flags[8]; int32_t prev_dc, trvec[64]; uint32_t cbp, sym, ...
{ "code": [ " pos, is_intra, mc_type, mv_x, mv_y, col_mask;", " if (!band->is_halfpel) {", " } else {" ], "line_no": [ 7, 87, 91 ] }
int FUNC_0(GetBitContext *VAR_0, IVIBandDesc *VAR_1, IVITile *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_22, VAR_14, VAR_15, VAR_16; uint8_t col_flags[8]; int32_t prev_dc, trvec[64]; uint32_t cbp, sym, lo, hi, quant,...
[ "int FUNC_0(GetBitContext *VAR_0, IVIBandDesc *VAR_1, IVITile *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10,\nVAR_11, VAR_12, VAR_22, VAR_14, VAR_15, VAR_16;", "uint8_t col_flags[8];", "int32_t prev_dc, trvec[64];", "uint32_t cbp, sym, lo, hi, quant, buf_offs, ...
[ 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, 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...
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
15,756
void test_clone(void) { uint8_t *stack1, *stack2; int pid1, pid2, status1, status2; stack1 = malloc(STACK_SIZE); pid1 = chk_error(clone(thread1_func, stack1 + STACK_SIZE, CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, "hello1")); stack2 = malloc(STACK_SIZE); ...
true
qemu
8da91fffeaffba5f014dfdcc88b672590e83b7fc
void test_clone(void) { uint8_t *stack1, *stack2; int pid1, pid2, status1, status2; stack1 = malloc(STACK_SIZE); pid1 = chk_error(clone(thread1_func, stack1 + STACK_SIZE, CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, "hello1")); stack2 = malloc(STACK_SIZE); ...
{ "code": [], "line_no": [] }
void FUNC_0(void) { uint8_t *stack1, *stack2; int VAR_0, VAR_1, VAR_2, VAR_3; stack1 = malloc(STACK_SIZE); VAR_0 = chk_error(clone(thread1_func, stack1 + STACK_SIZE, CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, "hello1")); stack2 = malloc(STACK_SIZE); VAR_1...
[ "void FUNC_0(void)\n{", "uint8_t *stack1, *stack2;", "int VAR_0, VAR_1, VAR_2, VAR_3;", "stack1 = malloc(STACK_SIZE);", "VAR_0 = chk_error(clone(thread1_func, stack1 + STACK_SIZE,\nCLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, \"hello1\"));", "stack2 = malloc(STACK_SIZE);", "VAR_1 = chk_error(clone(threa...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 30 ], [ 33, 35, 37 ], [ 39 ] ]
15,757
static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket * pkt, uint32_t * timestamp, const uint8_t * buf, ...
true
FFmpeg
de26a4b6993ff3dc91f17d110326736c96bfc9ec
static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket * pkt, uint32_t * timestamp, const uint8_t * buf, ...
{ "code": [ " uint8_t nal = buf[0];", " uint8_t type = (nal & 0x1f);" ], "line_no": [ 17, 19 ] }
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, ...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nPayloadContext *VAR_1,\nAVStream *VAR_2,\nAVPacket * VAR_3,\nuint32_t * VAR_4,\nconst uint8_t * VAR_5,\nint VAR_6, int VAR_7)\n{", "uint8_t nal = VAR_5[0];", "uint8_t type = (nal & 0x1f);", "int VAR_8= 0;", "uint8_t start_sequence[] = { 0, 0, 0, 1 };", "#ifdef D...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39, 41 ], [ 43 ], [ 45, 47, 49 ], [ 51 ], [ 53 ], [ 55, 57 ...
15,758
static void wiener_denoise(WMAVoiceContext *s, int fcb_type, float *synth_pf, int size, const float *lpcs) { int remainder, lim, n; if (fcb_type != FCB_TYPE_SILENCE) { float *tilted_lpcs = s->tilted_lpcs_pf, *coeffs = s->denois...
true
FFmpeg
1302ccc1a771d6e713a28fbbf70fc6cd6ae93b07
static void wiener_denoise(WMAVoiceContext *s, int fcb_type, float *synth_pf, int size, const float *lpcs) { int remainder, lim, n; if (fcb_type != FCB_TYPE_SILENCE) { float *tilted_lpcs = s->tilted_lpcs_pf, *coeffs = s->denois...
{ "code": [ " for (n = 1; n < 128; n++) {" ], "line_no": [ 63 ] }
static void FUNC_0(WMAVoiceContext *VAR_0, int VAR_1, float *VAR_2, int VAR_3, const float *VAR_4) { int VAR_5, VAR_6, VAR_7; if (VAR_1 != FCB_TYPE_SILENCE) { float *VAR_8 = VAR_0->tilted_lpcs_pf, *VAR_9 = VAR_0->denoise_coeffs...
[ "static void FUNC_0(WMAVoiceContext *VAR_0, int VAR_1,\nfloat *VAR_2, int VAR_3,\nconst float *VAR_4)\n{", "int VAR_5, VAR_6, VAR_7;", "if (VAR_1 != FCB_TYPE_SILENCE) {", "float *VAR_8 = VAR_0->tilted_lpcs_pf,\n*VAR_9 = VAR_0->denoise_coeffs_pf, VAR_10 = 0;", "VAR_8[0] = 1.0;", "memcpy(&VAR_8[1]...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 43 ], [ 45 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [...
15,759
static av_always_inline int check_4block_inter(SnowContext *s, int mb_x, int mb_y, int p0, int p1, int ref, int *best_rd){ const int b_stride= s->b_width << s->block_max_depth; BlockNode *block= &s->block[mb_x + mb_y * b_stride]; BlockNode backup[4]= {block[0], block[1], block[b_stride], block[b_stride+1...
true
FFmpeg
8540dcfd7af14da4080770dfbfa997cffdd0878b
static av_always_inline int check_4block_inter(SnowContext *s, int mb_x, int mb_y, int p0, int p1, int ref, int *best_rd){ const int b_stride= s->b_width << s->block_max_depth; BlockNode *block= &s->block[mb_x + mb_y * b_stride]; BlockNode backup[4]= {block[0], block[1], block[b_stride], block[b_stride+1...
{ "code": [ " int rd, index, value;", " int rd, index, value;" ], "line_no": [ 9, 9 ] }
static av_always_inline int FUNC_0(SnowContext *s, int mb_x, int mb_y, int p0, int p1, int ref, int *best_rd){ const int VAR_0= s->b_width << s->block_max_depth; BlockNode *block= &s->block[mb_x + mb_y * VAR_0]; BlockNode backup[4]= {block[0], block[1], block[VAR_0], block[VAR_0+1]}; int VAR_1, VAR_...
[ "static av_always_inline int FUNC_0(SnowContext *s, int mb_x, int mb_y, int p0, int p1, int ref, int *best_rd){", "const int VAR_0= s->b_width << s->block_max_depth;", "BlockNode *block= &s->block[mb_x + mb_y * VAR_0];", "BlockNode backup[4]= {block[0], block[1], block[VAR_0], block[VAR_0+1]};", "int VAR_1,...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 51 ], [ 53 ...
15,760
int qemu_signalfd(const sigset_t *mask) { #if defined(CONFIG_signalfd) int ret; ret = syscall(SYS_signalfd, -1, mask, _NSIG / 8); if (ret != -1) return ret; #endif return qemu_signalfd_compat(mask); }
true
qemu
9e472e101f37233f4e32d181d2fee29014c1cf2f
int qemu_signalfd(const sigset_t *mask) { #if defined(CONFIG_signalfd) int ret; ret = syscall(SYS_signalfd, -1, mask, _NSIG / 8); if (ret != -1) return ret; #endif return qemu_signalfd_compat(mask); }
{ "code": [ "int qemu_signalfd(const sigset_t *mask)", "#if defined(CONFIG_signalfd)", " int ret;", " ret = syscall(SYS_signalfd, -1, mask, _NSIG / 8);", " if (ret != -1)", " return ret;", "#endif", " return qemu_signalfd_compat(mask);", " int ret;", "#end...
int FUNC_0(const sigset_t *VAR_0) { #if defined(CONFIG_signalfd) int ret; ret = syscall(SYS_signalfd, -1, VAR_0, _NSIG / 8); if (ret != -1) return ret; #endif return qemu_signalfd_compat(VAR_0); }
[ "int FUNC_0(const sigset_t *VAR_0)\n{", "#if defined(CONFIG_signalfd)\nint ret;", "ret = syscall(SYS_signalfd, -1, VAR_0, _NSIG / 8);", "if (ret != -1)\nreturn ret;", "#endif\nreturn qemu_signalfd_compat(VAR_0);", "}" ]
[ 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13, 15 ], [ 17, 21 ], [ 23 ] ]
15,761
static int vtd_dev_to_context_entry(IntelIOMMUState *s, uint8_t bus_num, uint8_t devfn, VTDContextEntry *ce) { VTDRootEntry re; int ret_fr; ret_fr = vtd_get_root_entry(s, bus_num, &re); if (ret_fr) { return ret_fr; } if (!vtd_root_entry_pr...
true
qemu
f80c98740e8da9fa0e4056f174ca66a3afb1d15b
static int vtd_dev_to_context_entry(IntelIOMMUState *s, uint8_t bus_num, uint8_t devfn, VTDContextEntry *ce) { VTDRootEntry re; int ret_fr; ret_fr = vtd_get_root_entry(s, bus_num, &re); if (ret_fr) { return ret_fr; } if (!vtd_root_entry_pr...
{ "code": [ " } else if (re.rsvd || (re.val & VTD_ROOT_ENTRY_RSVD)) {", " } else if ((ce->hi & VTD_CONTEXT_ENTRY_RSVD_HI) ||", " (ce->lo & VTD_CONTEXT_ENTRY_RSVD_LO)) {", " } else {", " switch (vtd_ce_get_type(ce)) {", " case VTD_CONTEXT_TT_MULTI_LEVEL:", ...
static int FUNC_0(IntelIOMMUState *VAR_0, uint8_t VAR_1, uint8_t VAR_2, VTDContextEntry *VAR_3) { VTDRootEntry re; int VAR_4; VAR_4 = vtd_get_root_entry(VAR_0, VAR_1, &re); if (VAR_4) { return VAR_4; } if (!vtd_root_entry_present(&re)) { ...
[ "static int FUNC_0(IntelIOMMUState *VAR_0, uint8_t VAR_1,\nuint8_t VAR_2, VTDContextEntry *VAR_3)\n{", "VTDRootEntry re;", "int VAR_4;", "VAR_4 = vtd_get_root_entry(VAR_0, VAR_1, &re);", "if (VAR_4) {", "return VAR_4;", "}", "if (!vtd_root_entry_present(&re)) {", "trace_vtd_re_not_present(VAR_1);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
15,762
static int get_buffer(AVCodecContext *avctx, AVFrame *pic) { pic->type = FF_BUFFER_TYPE_USER; pic->data[0] = (void *)1; return 0; }
true
FFmpeg
c7269e3a2697c189c907832b8a36341cbb40936c
static int get_buffer(AVCodecContext *avctx, AVFrame *pic) { pic->type = FF_BUFFER_TYPE_USER; pic->data[0] = (void *)1; return 0; }
{ "code": [ "static int get_buffer(AVCodecContext *avctx, AVFrame *pic)", " pic->type = FF_BUFFER_TYPE_USER;", " pic->data[0] = (void *)1;", " return 0;" ], "line_no": [ 1, 5, 7, 9 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1) { VAR_1->type = FF_BUFFER_TYPE_USER; VAR_1->data[0] = (void *)1; return 0; }
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{", "VAR_1->type = FF_BUFFER_TYPE_USER;", "VAR_1->data[0] = (void *)1;", "return 0;", "}" ]
[ 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
15,763
uint32_t HELPER(v7m_mrs)(CPUARMState *env, uint32_t reg) { ARMCPU *cpu = arm_env_get_cpu(env); switch (reg) { case 0: /* APSR */ return xpsr_read(env) & 0xf8000000; case 1: /* IAPSR */ return xpsr_read(env) & 0xf80001ff; case 2: /* EAPSR */ return xpsr_read(env) & ...
true
qemu
58117c9bb429cd9552d998687aa99088eb1d8528
uint32_t HELPER(v7m_mrs)(CPUARMState *env, uint32_t reg) { ARMCPU *cpu = arm_env_get_cpu(env); switch (reg) { case 0: return xpsr_read(env) & 0xf8000000; case 1: return xpsr_read(env) & 0xf80001ff; case 2: return xpsr_read(env) & 0xff00fc00; case 3: ...
{ "code": [ " ARMCPU *cpu = arm_env_get_cpu(env);", " return xpsr_read(env) & 0xf8000000;", " return xpsr_read(env) & 0xf80001ff;", " return xpsr_read(env) & 0xff00fc00;", " return xpsr_read(env) & 0xff00fdff;", " return xpsr_read(env) & 0x000001ff;", ...
uint32_t FUNC_0(v7m_mrs)(CPUARMState *env, uint32_t reg) { ARMCPU *cpu = arm_env_get_cpu(env); switch (reg) { case 0: return xpsr_read(env) & 0xf8000000; case 1: return xpsr_read(env) & 0xf80001ff; case 2: return xpsr_read(env) & 0xff00fc00; case 3: ...
[ "uint32_t FUNC_0(v7m_mrs)(CPUARMState *env, uint32_t reg)\n{", "ARMCPU *cpu = arm_env_get_cpu(env);", "switch (reg) {", "case 0:\nreturn xpsr_read(env) & 0xf8000000;", "case 1:\nreturn xpsr_read(env) & 0xf80001ff;", "case 2:\nreturn xpsr_read(env) & 0xff00fc00;", "case 3:\nreturn xpsr_read(env) & 0xff00...
[ 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 47, 49 ], [ 51, 53, 55...
15,764
static inline int RENAME(yuv420_rgb32)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ int y, h_size; if(c->srcFormat == PIX_FMT_YUV422P){ srcStride[1] *= 2; srcStride[2] *= 2; } h_size= (c->dstW+7)&~7; if(h_s...
false
FFmpeg
20da77449d4427a7152b80e4f9acce6a8c93ee7d
static inline int RENAME(yuv420_rgb32)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ int y, h_size; if(c->srcFormat == PIX_FMT_YUV422P){ srcStride[1] *= 2; srcStride[2] *= 2; } h_size= (c->dstW+7)&~7; if(h_s...
{ "code": [], "line_no": [] }
static inline int FUNC_0(yuv420_rgb32)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ int VAR_0, VAR_1; if(c->srcFormat == PIX_FMT_YUV422P){ srcStride[1] *= 2; srcStride[2] *= 2; } VAR_1= (c->dstW+7)&~7; if(V...
[ "static inline int FUNC_0(yuv420_rgb32)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,\nint srcSliceH, uint8_t* dst[], int dstStride[]){", "int VAR_0, VAR_1;", "if(c->srcFormat == PIX_FMT_YUV422P){", "srcStride[1] *= 2;", "srcStride[2] *= 2;", "}", "VAR_1= (c->dstW+7)&~7;", "if(VAR_1*4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 47, 51 ], [ 53 ], [ 55 ], [ 59, 61...
15,765
static void qmp_tmp105_set_temperature(const char *id, int value) { QDict *response; response = qmp("{ 'execute': 'qom-set', 'arguments': { 'path': '%s', " "'property': 'temperature', 'value': %d } }", id, value); g_assert(qdict_haskey(response, "return")); QDECREF(response); ...
true
qemu
563890c7c7e977842e2a35afe7a24d06d2103242
static void qmp_tmp105_set_temperature(const char *id, int value) { QDict *response; response = qmp("{ 'execute': 'qom-set', 'arguments': { 'path': '%s', " "'property': 'temperature', 'value': %d } }", id, value); g_assert(qdict_haskey(response, "return")); QDECREF(response); ...
{ "code": [ " response = qmp(\"{ 'execute': 'qom-set', 'arguments': { 'path': '%s', \"" ], "line_no": [ 9 ] }
static void FUNC_0(const char *VAR_0, int VAR_1) { QDict *response; response = qmp("{ 'execute': 'qom-set', 'arguments': { 'path': '%s', " "'property': 'temperature', 'VAR_1': %d } }", VAR_0, VAR_1); g_assert(qdict_haskey(response, "return")); QDECREF(response); }
[ "static void FUNC_0(const char *VAR_0, int VAR_1)\n{", "QDict *response;", "response = qmp(\"{ 'execute': 'qom-set', 'arguments': { 'path': '%s', \"", "\"'property': 'temperature', 'VAR_1': %d } }\", VAR_0, VAR_1);", "g_assert(qdict_haskey(response, \"return\"));", "QDECREF(response);", "}" ]
[ 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
15,766
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { struct capture_callback *cb; for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { cb->ops.destroy (cb_opaque); QLIST_REMOVE (cb, entries); g_free (cb); ...
true
qemu
3268a845f41253fb55852a8429c32b50f36f349a
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { struct capture_callback *cb; for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { cb->ops.destroy (cb_opaque); QLIST_REMOVE (cb, entries); g_free (cb); ...
{ "code": [], "line_no": [] }
void FUNC_0 (CaptureVoiceOut *VAR_0, void *VAR_1) { struct capture_callback *VAR_2; for (VAR_2 = VAR_0->cb_head.lh_first; VAR_2; VAR_2 = VAR_2->entries.le_next) { if (VAR_2->opaque == VAR_1) { VAR_2->ops.destroy (VAR_1); QLIST_REMOVE (VAR_2, entries); g_free ...
[ "void FUNC_0 (CaptureVoiceOut *VAR_0, void *VAR_1)\n{", "struct capture_callback *VAR_2;", "for (VAR_2 = VAR_0->cb_head.lh_first; VAR_2; VAR_2 = VAR_2->entries.le_next) {", "if (VAR_2->opaque == VAR_1) {", "VAR_2->ops.destroy (VAR_1);", "QLIST_REMOVE (VAR_2, entries);", "g_free (VAR_2);", "if (!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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
15,767
struct omap_sdrc_s *omap_sdrc_init(MemoryRegion *sysmem, hwaddr base) { struct omap_sdrc_s *s = (struct omap_sdrc_s *) g_malloc0(sizeof(struct omap_sdrc_s)); omap_sdrc_reset(s); memory_region_init_io(&s->iomem, NULL, &omap_sdrc_ops, s, "omap.sdrc", 0x...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
struct omap_sdrc_s *omap_sdrc_init(MemoryRegion *sysmem, hwaddr base) { struct omap_sdrc_s *s = (struct omap_sdrc_s *) g_malloc0(sizeof(struct omap_sdrc_s)); omap_sdrc_reset(s); memory_region_init_io(&s->iomem, NULL, &omap_sdrc_ops, s, "omap.sdrc", 0x...
{ "code": [ " struct omap_sdrc_s *s = (struct omap_sdrc_s *)", " g_malloc0(sizeof(struct omap_sdrc_s));" ], "line_no": [ 7, 9 ] }
struct omap_sdrc_s *FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1) { struct omap_sdrc_s *VAR_2 = (struct omap_sdrc_s *) g_malloc0(sizeof(struct omap_sdrc_s)); omap_sdrc_reset(VAR_2); memory_region_init_io(&VAR_2->iomem, NULL, &omap_sdrc_ops, VAR_2, "omap.s...
[ "struct omap_sdrc_s *FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1)\n{", "struct omap_sdrc_s *VAR_2 = (struct omap_sdrc_s *)\ng_malloc0(sizeof(struct omap_sdrc_s));", "omap_sdrc_reset(VAR_2);", "memory_region_init_io(&VAR_2->iomem, NULL, &omap_sdrc_ops, VAR_2, \"omap.sdrc\", 0x1000);", "memory_region_add_subreg...
[ 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
15,769
static int oggvorbis_decode_init(AVCodecContext *avccontext) { OggVorbisDecContext *context = avccontext->priv_data ; uint8_t *p= avccontext->extradata; int i, hsizes[3]; unsigned char *headers[3], *extradata = avccontext->extradata; vorbis_info_init(&context->vi) ; vorbis_comment_init(&...
true
FFmpeg
bceabbdabab3e75b4dbccfafcd1758f40897a29a
static int oggvorbis_decode_init(AVCodecContext *avccontext) { OggVorbisDecContext *context = avccontext->priv_data ; uint8_t *p= avccontext->extradata; int i, hsizes[3]; unsigned char *headers[3], *extradata = avccontext->extradata; vorbis_info_init(&context->vi) ; vorbis_comment_init(&...
{ "code": [ " int i, hsizes[3];", " vorbis_info_init(&context->vi) ;", " vorbis_comment_init(&context->vc) ;", " return -1;", " return -1;", " return -1;" ], "line_no": [ 7, 13, 15, 67, 23, 121 ] }
static int FUNC_0(AVCodecContext *VAR_0) { OggVorbisDecContext *context = VAR_0->priv_data ; uint8_t *p= VAR_0->VAR_4; int VAR_1, VAR_2[3]; unsigned char *VAR_3[3], *VAR_4 = VAR_0->VAR_4; vorbis_info_init(&context->vi) ; vorbis_comment_init(&context->vc) ; if(! VAR_0->extradata_si...
[ "static int FUNC_0(AVCodecContext *VAR_0) {", "OggVorbisDecContext *context = VAR_0->priv_data ;", "uint8_t *p= VAR_0->VAR_4;", "int VAR_1, VAR_2[3];", "unsigned char *VAR_3[3], *VAR_4 = VAR_0->VAR_4;", "vorbis_info_init(&context->vi) ;", "vorbis_comment_init(&context->vc) ;", "if(! VAR_0->extradata_s...
[ 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
15,770
static CharDriverState *qemu_chr_open_pipe(QemuOpts *opts) { int fd_in, fd_out; char filename_in[256], filename_out[256]; const char *filename = qemu_opt_get(opts, "path"); if (filename == NULL) { fprintf(stderr, "chardev: pipe: no filename given\n"); return NULL; } ...
true
qemu
40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4
static CharDriverState *qemu_chr_open_pipe(QemuOpts *opts) { int fd_in, fd_out; char filename_in[256], filename_out[256]; const char *filename = qemu_opt_get(opts, "path"); if (filename == NULL) { fprintf(stderr, "chardev: pipe: no filename given\n"); return NULL; } ...
{ "code": [ " TFR(fd_in = open(filename_in, O_RDWR | O_BINARY));", " TFR(fd_out = open(filename_out, O_RDWR | O_BINARY));" ], "line_no": [ 27, 29 ] }
static CharDriverState *FUNC_0(QemuOpts *opts) { int VAR_0, VAR_1; char VAR_2[256], VAR_3[256]; const char *VAR_4 = qemu_opt_get(opts, "path"); if (VAR_4 == NULL) { fprintf(stderr, "chardev: pipe: no VAR_4 given\n"); return NULL; } snprintf(VAR_2, 256, "%s.in", VAR_4...
[ "static CharDriverState *FUNC_0(QemuOpts *opts)\n{", "int VAR_0, VAR_1;", "char VAR_2[256], VAR_3[256];", "const char *VAR_4 = qemu_opt_get(opts, \"path\");", "if (VAR_4 == NULL) {", "fprintf(stderr, \"chardev: pipe: no VAR_4 given\\n\");", "return NULL;", "}", "snprintf(VAR_2, 256, \"%s.in\", VAR_4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
15,771
yuv2rgb48_2_c_template(SwsContext *c, const int32_t *buf[2], const int32_t *ubuf[2], const int32_t *vbuf[2], const int32_t *abuf[2], uint16_t *dest, int dstW, int yalpha, int uvalpha, int y, enum AVPixelFormat target) { ...
false
FFmpeg
f56fa95cd13f627891a1bfb66bf61b971b9e0238
yuv2rgb48_2_c_template(SwsContext *c, const int32_t *buf[2], const int32_t *ubuf[2], const int32_t *vbuf[2], const int32_t *abuf[2], uint16_t *dest, int dstW, int yalpha, int uvalpha, int y, enum AVPixelFormat target) { ...
{ "code": [], "line_no": [] }
FUNC_0(SwsContext *VAR_0, const int32_t *VAR_1[2], const int32_t *VAR_2[2], const int32_t *VAR_3[2], const int32_t *VAR_4[2], uint16_t *VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, enum AVPixelFormat VAR_10) { co...
[ "FUNC_0(SwsContext *VAR_0, const int32_t *VAR_1[2],\nconst int32_t *VAR_2[2], const int32_t *VAR_3[2],\nconst int32_t *VAR_4[2], uint16_t *VAR_5, int VAR_6,\nint VAR_7, int VAR_8, int VAR_9,\nenum AVPixelFormat VAR_10)\n{", "const int32_t *VAR_11 = VAR_1[0], *buf1 = VAR_1[1],\n*ubuf0 = VAR_2[0], *ubuf1 = 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 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
15,772
static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) { MpegEncContext * const s = &h->s; const int mb_xy= mb_x + mb_y*s->mb_stride; const int mb_type = s->current_picture.mb_type[mb_xy]; const int...
false
FFmpeg
c32867b5b604b9d39c72014a380aafedb8681f40
static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) { MpegEncContext * const s = &h->s; const int mb_xy= mb_x + mb_y*s->mb_stride; const int mb_type = s->current_picture.mb_type[mb_xy]; const int...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5, unsigned int VAR_6, unsigned int VAR_7) { MpegEncContext * const s = &VAR_0->s; const int VAR_8= VAR_1 + VAR_2*s->mb_stride; const int VAR_9 = s->current_picture.VAR_9[VAR_8]; const int VAR_...
[ "static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5, unsigned int VAR_6, unsigned int VAR_7) {", "MpegEncContext * const s = &VAR_0->s;", "const int VAR_8= VAR_1 + VAR_2*s->mb_stride;", "const int VAR_9 = s->current_picture.VAR_9[VAR_8];", "const int...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 45, 49, 53 ], [ 61 ], [ 63 ], [ 65 ...
15,773
static int twolame_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { TWOLAMEContext *s = avctx->priv_data; int ret; if ((ret = ff_alloc_packet(avpkt, MPA_MAX_CODED_FRAME_SIZE)) < 0) return ret; if (frame) ...
false
FFmpeg
2df0c32ea12ddfa72ba88309812bfb13b674130f
static int twolame_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { TWOLAMEContext *s = avctx->priv_data; int ret; if ((ret = ff_alloc_packet(avpkt, MPA_MAX_CODED_FRAME_SIZE)) < 0) return ret; if (frame) ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { TWOLAMEContext *s = VAR_0->priv_data; int VAR_4; if ((VAR_4 = ff_alloc_packet(VAR_1, MPA_MAX_CODED_FRAME_SIZE)) < 0) return VAR_4; if (VAR_2) { switch...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "TWOLAMEContext *s = VAR_0->priv_data;", "int VAR_4;", "if ((VAR_4 = ff_alloc_packet(VAR_1, MPA_MAX_CODED_FRAME_SIZE)) < 0)\nreturn VAR_4;", "if (VAR_2) {", "switch (VAR_0->sample_fmt) {", "case AV_SAMPLE_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23, 25, 27, 29, 31, 33 ], [ 35 ], [ 37, 39, 41, 43, 45, 47 ], [ 49 ], [ 51, 53, 55, 57, 59 ], [ 61 ...
15,774
av_cold void ff_vc1dsp_init_x86(VC1DSPContext *dsp) { int cpu_flags = av_get_cpu_flags(); if (INLINE_MMX(cpu_flags)) ff_vc1dsp_init_mmx(dsp); if (INLINE_MMXEXT(cpu_flags)) ff_vc1dsp_init_mmxext(dsp); #define ASSIGN_LF(EXT) \ dsp->vc1_v_loop_filter4 = ff_vc1_v_loop_filt...
false
FFmpeg
6369ba3c9cc74becfaad2a8882dff3dd3e7ae3c0
av_cold void ff_vc1dsp_init_x86(VC1DSPContext *dsp) { int cpu_flags = av_get_cpu_flags(); if (INLINE_MMX(cpu_flags)) ff_vc1dsp_init_mmx(dsp); if (INLINE_MMXEXT(cpu_flags)) ff_vc1dsp_init_mmxext(dsp); #define ASSIGN_LF(EXT) \ dsp->vc1_v_loop_filter4 = ff_vc1_v_loop_filt...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(VC1DSPContext *dsp) { int VAR_0 = av_get_cpu_flags(); if (INLINE_MMX(VAR_0)) ff_vc1dsp_init_mmx(dsp); if (INLINE_MMXEXT(VAR_0)) ff_vc1dsp_init_mmxext(dsp); #define ASSIGN_LF(EXT) \ dsp->vc1_v_loop_filter4 = ff_vc1_v_loop_filter4_ ## EXT; \ ...
[ "av_cold void FUNC_0(VC1DSPContext *dsp)\n{", "int VAR_0 = av_get_cpu_flags();", "if (INLINE_MMX(VAR_0))\nff_vc1dsp_init_mmx(dsp);", "if (INLINE_MMXEXT(VAR_0))\nff_vc1dsp_init_mmxext(dsp);", "#define ASSIGN_LF(EXT) \\\ndsp->vc1_v_loop_filter4 = ff_vc1_v_loop_filter4_ ## EXT; \\", "dsp->vc1_h_loop_filter4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], ...
15,776
static inline void neon_store_reg64(TCGv var, int reg) { tcg_gen_st_i64(var, cpu_env, vfp_reg_offset(1, reg)); }
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static inline void neon_store_reg64(TCGv var, int reg) { tcg_gen_st_i64(var, cpu_env, vfp_reg_offset(1, reg)); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGv VAR_0, int VAR_1) { tcg_gen_st_i64(VAR_0, cpu_env, vfp_reg_offset(1, VAR_1)); }
[ "static inline void FUNC_0(TCGv VAR_0, int VAR_1)\n{", "tcg_gen_st_i64(VAR_0, cpu_env, vfp_reg_offset(1, VAR_1));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
15,777
static DisplaySurface *qemu_create_message_surface(int w, int h, const char *msg) { DisplaySurface *surface = qemu_create_displaysurface(w, h); pixman_color_t bg = color_table_rgb[0][COLOR_BLACK]; pixman_color_t fg = color_table_rgb[0][COLOR_WHITE]; ...
false
qemu
4083733db5e4120939acee57019ff52db1f45b9d
static DisplaySurface *qemu_create_message_surface(int w, int h, const char *msg) { DisplaySurface *surface = qemu_create_displaysurface(w, h); pixman_color_t bg = color_table_rgb[0][COLOR_BLACK]; pixman_color_t fg = color_table_rgb[0][COLOR_WHITE]; ...
{ "code": [], "line_no": [] }
static DisplaySurface *FUNC_0(int w, int h, const char *msg) { DisplaySurface *surface = qemu_create_displaysurface(w, h); pixman_color_t bg = color_table_rgb[0][COLOR_BLACK]; pixman_color_t fg = color_table_rgb[0][COLOR_WHITE]; pixman_image_t *gl...
[ "static DisplaySurface *FUNC_0(int w, int h,\nconst char *msg)\n{", "DisplaySurface *surface = qemu_create_displaysurface(w, h);", "pixman_color_t bg = color_table_rgb[0][COLOR_BLACK];", "pixman_color_t fg = color_table_rgb[0][COLOR_WHITE];", "pixman_image_t *glyph;", "int VAR_0, VAR_1, VAR_2, VAR_3;", ...
[ 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 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
15,780
static bool vregs_needed(void *opaque) { #ifdef CONFIG_KVM if (kvm_enabled()) { return kvm_check_extension(kvm_state, KVM_CAP_S390_VECTOR_REGISTERS); } #endif return 0; }
false
qemu
7c72ac49ae9f38fa0125296e05988655157decb5
static bool vregs_needed(void *opaque) { #ifdef CONFIG_KVM if (kvm_enabled()) { return kvm_check_extension(kvm_state, KVM_CAP_S390_VECTOR_REGISTERS); } #endif return 0; }
{ "code": [], "line_no": [] }
static bool FUNC_0(void *opaque) { #ifdef CONFIG_KVM if (kvm_enabled()) { return kvm_check_extension(kvm_state, KVM_CAP_S390_VECTOR_REGISTERS); } #endif return 0; }
[ "static bool FUNC_0(void *opaque)\n{", "#ifdef CONFIG_KVM\nif (kvm_enabled()) {", "return kvm_check_extension(kvm_state, KVM_CAP_S390_VECTOR_REGISTERS);", "}", "#endif\nreturn 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ] ]
15,781
static unsigned int dec_abs_r(DisasContext *dc) { TCGv t0; DIS(fprintf (logfile, "abs $r%u, $r%u\n", dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZ); t0 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_sari_tl(t0, cpu_R[dc->op1], 31); tcg_gen_xor_tl(cpu_R[dc->op2], cpu_R[dc->op1], t0); tcg_gen_sub_tl(cpu...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static unsigned int dec_abs_r(DisasContext *dc) { TCGv t0; DIS(fprintf (logfile, "abs $r%u, $r%u\n", dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZ); t0 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_sari_tl(t0, cpu_R[dc->op1], 31); tcg_gen_xor_tl(cpu_R[dc->op2], cpu_R[dc->op1], t0); tcg_gen_sub_tl(cpu...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { TCGv t0; DIS(fprintf (logfile, "abs $r%u, $r%u\n", VAR_0->op1, VAR_0->op2)); cris_cc_mask(VAR_0, CC_MASK_NZ); t0 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_sari_tl(t0, cpu_R[VAR_0->op1], 31); tcg_gen_xor_tl(cpu_R[VAR_0->op2], cpu_R[VAR_0->op1], t0); ...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "TCGv t0;", "DIS(fprintf (logfile, \"abs $r%u, $r%u\\n\",\nVAR_0->op1, VAR_0->op2));", "cris_cc_mask(VAR_0, CC_MASK_NZ);", "t0 = tcg_temp_new(TCG_TYPE_TL);", "tcg_gen_sari_tl(t0, cpu_R[VAR_0->op1], 31);", "tcg_gen_xor_tl(cpu_R[VAR_0->op2], cpu_R[VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35 ] ]
15,782
static int calculate_new_instance_id(const char *idstr) { SaveStateEntry *se; int instance_id = 0; TAILQ_FOREACH(se, &savevm_handlers, entry) { if (strcmp(idstr, se->idstr) == 0 && instance_id <= se->instance_id) { instance_id = se->instance_id + 1; } }...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static int calculate_new_instance_id(const char *idstr) { SaveStateEntry *se; int instance_id = 0; TAILQ_FOREACH(se, &savevm_handlers, entry) { if (strcmp(idstr, se->idstr) == 0 && instance_id <= se->instance_id) { instance_id = se->instance_id + 1; } }...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0) { SaveStateEntry *se; int VAR_1 = 0; TAILQ_FOREACH(se, &savevm_handlers, entry) { if (strcmp(VAR_0, se->VAR_0) == 0 && VAR_1 <= se->VAR_1) { VAR_1 = se->VAR_1 + 1; } } return VAR_1; }
[ "static int FUNC_0(const char *VAR_0)\n{", "SaveStateEntry *se;", "int VAR_1 = 0;", "TAILQ_FOREACH(se, &savevm_handlers, entry) {", "if (strcmp(VAR_0, se->VAR_0) == 0\n&& VAR_1 <= se->VAR_1) {", "VAR_1 = se->VAR_1 + 1;", "}", "}", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
15,783
static int resample(ResampleContext *c, void *dst, const void *src, int *consumed, int src_size, int dst_size, int update_ctx, int nearest_neighbour) { int dst_index; int index = c->index; int frac = c->frac; int dst_incr_frac = c->dst_incr...
false
FFmpeg
be394968c81019887ef996a78a526bdd85d1e216
static int resample(ResampleContext *c, void *dst, const void *src, int *consumed, int src_size, int dst_size, int update_ctx, int nearest_neighbour) { int dst_index; int index = c->index; int frac = c->frac; int dst_incr_frac = c->dst_incr...
{ "code": [], "line_no": [] }
static int FUNC_0(ResampleContext *VAR_0, void *VAR_1, const void *VAR_2, int *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { int VAR_8; int VAR_9 = VAR_0->VAR_9; int VAR_10 = VAR_0->VAR_10; int VAR_11 = VAR_0->VAR_12 % VAR_0->src_inc...
[ "static int FUNC_0(ResampleContext *VAR_0, void *VAR_1, const void *VAR_2,\nint *VAR_3, int VAR_4, int VAR_5, int VAR_6,\nint VAR_7)\n{", "int VAR_8;", "int VAR_9 = VAR_0->VAR_9;", "int VAR_10 = VAR_0->VAR_10;", "int VAR_11 = VAR_0->VAR_12 % VAR_0->src_incr;", "int VAR_12 = VAR_0->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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
15,784
static void l2cap_frame_in(struct l2cap_instance_s *l2cap, const l2cap_hdr *frame) { uint16_t cid = le16_to_cpu(frame->cid); uint16_t len = le16_to_cpu(frame->len); if (unlikely(cid >= L2CAP_CID_MAX || !l2cap->cid[cid])) { fprintf(stderr, "%s: frame addressed to a non-existen...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void l2cap_frame_in(struct l2cap_instance_s *l2cap, const l2cap_hdr *frame) { uint16_t cid = le16_to_cpu(frame->cid); uint16_t len = le16_to_cpu(frame->len); if (unlikely(cid >= L2CAP_CID_MAX || !l2cap->cid[cid])) { fprintf(stderr, "%s: frame addressed to a non-existen...
{ "code": [], "line_no": [] }
static void FUNC_0(struct l2cap_instance_s *VAR_0, const l2cap_hdr *VAR_1) { uint16_t cid = le16_to_cpu(VAR_1->cid); uint16_t len = le16_to_cpu(VAR_1->len); if (unlikely(cid >= L2CAP_CID_MAX || !VAR_0->cid[cid])) { fprintf(stderr, "%s: VAR_1 addressed to a non-existent L2CAP ...
[ "static void FUNC_0(struct l2cap_instance_s *VAR_0,\nconst l2cap_hdr *VAR_1)\n{", "uint16_t cid = le16_to_cpu(VAR_1->cid);", "uint16_t len = le16_to_cpu(VAR_1->len);", "if (unlikely(cid >= L2CAP_CID_MAX || !VAR_0->cid[cid])) {", "fprintf(stderr, \"%s: VAR_1 addressed to a non-existent L2CAP \"\n\"channel %0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
15,785
static uint32_t superio_ioport_readb(void *opaque, uint32_t addr) { SuperIOConfig *superio_conf = opaque; DPRINTF("superio_ioport_readb address 0x%x \n", addr); return (superio_conf->config[superio_conf->index]); }
false
qemu
b2bedb214469af55179d907a60cd67fed6b0779e
static uint32_t superio_ioport_readb(void *opaque, uint32_t addr) { SuperIOConfig *superio_conf = opaque; DPRINTF("superio_ioport_readb address 0x%x \n", addr); return (superio_conf->config[superio_conf->index]); }
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, uint32_t addr) { SuperIOConfig *superio_conf = opaque; DPRINTF("FUNC_0 address 0x%x \n", addr); return (superio_conf->config[superio_conf->index]); }
[ "static uint32_t FUNC_0(void *opaque, uint32_t addr)\n{", "SuperIOConfig *superio_conf = opaque;", "DPRINTF(\"FUNC_0 address 0x%x \\n\", addr);", "return (superio_conf->config[superio_conf->index]);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
15,786
void aio_notify_accept(AioContext *ctx) { if (atomic_xchg(&ctx->notified, false)) { event_notifier_test_and_clear(&ctx->notifier); } }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
void aio_notify_accept(AioContext *ctx) { if (atomic_xchg(&ctx->notified, false)) { event_notifier_test_and_clear(&ctx->notifier); } }
{ "code": [], "line_no": [] }
void FUNC_0(AioContext *VAR_0) { if (atomic_xchg(&VAR_0->notified, false)) { event_notifier_test_and_clear(&VAR_0->notifier); } }
[ "void FUNC_0(AioContext *VAR_0)\n{", "if (atomic_xchg(&VAR_0->notified, false)) {", "event_notifier_test_and_clear(&VAR_0->notifier);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
15,787
static inline void code_gen_alloc(size_t tb_size) { code_gen_buffer_size = size_code_gen_buffer(tb_size); code_gen_buffer = alloc_code_gen_buffer(); if (code_gen_buffer == NULL) { fprintf(stderr, "Could not allocate dynamic translator buffer\n"); exit(1); } map_exec(code_ge...
false
qemu
4438c8a9469d79fa2c58189418befb506da54d97
static inline void code_gen_alloc(size_t tb_size) { code_gen_buffer_size = size_code_gen_buffer(tb_size); code_gen_buffer = alloc_code_gen_buffer(); if (code_gen_buffer == NULL) { fprintf(stderr, "Could not allocate dynamic translator buffer\n"); exit(1); } map_exec(code_ge...
{ "code": [], "line_no": [] }
static inline void FUNC_0(size_t VAR_0) { code_gen_buffer_size = size_code_gen_buffer(VAR_0); code_gen_buffer = alloc_code_gen_buffer(); if (code_gen_buffer == NULL) { fprintf(stderr, "Could not allocate dynamic translator buffer\n"); exit(1); } map_exec(code_gen_prologue, ...
[ "static inline void FUNC_0(size_t VAR_0)\n{", "code_gen_buffer_size = size_code_gen_buffer(VAR_0);", "code_gen_buffer = alloc_code_gen_buffer();", "if (code_gen_buffer == NULL) {", "fprintf(stderr, \"Could not allocate dynamic translator buffer\\n\");", "exit(1);", "}", "map_exec(code_gen_prologue, si...
[ 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 ] ]
15,789
static void qemu_chr_parse_parallel(QemuOpts *opts, ChardevBackend *backend, Error **errp) { const char *device = qemu_opt_get(opts, "path"); if (device == NULL) { error_setg(errp, "chardev: parallel: no device path given"); return; } backend...
false
qemu
130257dc443574a9da91dc293665be2cfc40245a
static void qemu_chr_parse_parallel(QemuOpts *opts, ChardevBackend *backend, Error **errp) { const char *device = qemu_opt_get(opts, "path"); if (device == NULL) { error_setg(errp, "chardev: parallel: no device path given"); return; } backend...
{ "code": [], "line_no": [] }
static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1, Error **VAR_2) { const char *VAR_3 = qemu_opt_get(VAR_0, "path"); if (VAR_3 == NULL) { error_setg(VAR_2, "chardev: parallel: no VAR_3 path given"); return; } VAR_1->parallel = g_new0(...
[ "static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,\nError **VAR_2)\n{", "const char *VAR_3 = qemu_opt_get(VAR_0, \"path\");", "if (VAR_3 == NULL) {", "error_setg(VAR_2, \"chardev: parallel: no VAR_3 path given\");", "return;", "}", "VAR_1->parallel = g_new0(ChardevHostdev, 1);", "VAR_1->paral...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
15,790
static void guess_chs_for_size(BlockDriverState *bs, uint32_t *pcyls, uint32_t *pheads, uint32_t *psecs) { uint64_t nb_sectors; int cylinders; bdrv_get_geometry(bs, &nb_sectors); cylinders = nb_sectors / (16 * 63); if (cylinders > 16383) { cylinders = 16383; ...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void guess_chs_for_size(BlockDriverState *bs, uint32_t *pcyls, uint32_t *pheads, uint32_t *psecs) { uint64_t nb_sectors; int cylinders; bdrv_get_geometry(bs, &nb_sectors); cylinders = nb_sectors / (16 * 63); if (cylinders > 16383) { cylinders = 16383; ...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, uint32_t *VAR_1, uint32_t *VAR_2, uint32_t *VAR_3) { uint64_t nb_sectors; int VAR_4; bdrv_get_geometry(VAR_0, &nb_sectors); VAR_4 = nb_sectors / (16 * 63); if (VAR_4 > 16383) { VAR_4 = 16383; } else if (VAR_4 < 2) {...
[ "static void FUNC_0(BlockDriverState *VAR_0,\nuint32_t *VAR_1, uint32_t *VAR_2, uint32_t *VAR_3)\n{", "uint64_t nb_sectors;", "int VAR_4;", "bdrv_get_geometry(VAR_0, &nb_sectors);", "VAR_4 = nb_sectors / (16 * 63);", "if (VAR_4 > 16383) {", "VAR_4 = 16383;", "} else if (VAR_4 < 2) {", "VAR_4 = 2;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
15,792
static void disas_xtensa_insn(DisasContext *dc) { #define HAS_OPTION_BITS(opt) do { \ if (!option_bits_enabled(dc, opt)) { \ qemu_log("Option is not enabled %s:%d\n", \ __FILE__, __LINE__); \ goto invalid_opcode; \ } \ } while (0) #define HAS_OP...
false
qemu
b18b37f7c5bc96dabdb08bcfb699b339a76104bf
static void disas_xtensa_insn(DisasContext *dc) { #define HAS_OPTION_BITS(opt) do { \ if (!option_bits_enabled(dc, opt)) { \ qemu_log("Option is not enabled %s:%d\n", \ __FILE__, __LINE__); \ goto invalid_opcode; \ } \ } while (0) #define HAS_OP...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0) { #define HAS_OPTION_BITS(opt) do { \ if (!option_bits_enabled(VAR_0, opt)) { \ qemu_log("Option is not enabled %s:%d\n", \ __FILE__, __LINE__); \ goto invalid_opcode; \ } \ } while (0) #define HAS_OPTION(...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#define HAS_OPTION_BITS(opt) do { \\", "if (!option_bits_enabled(VAR_0, opt)) { \\", "qemu_log(\"Option is not enabled %s:%d\\n\", \\\n__FILE__, __LINE__); \\", "goto invalid_opcode; \\", "} \\", "} while (0)", "#define HAS_OPTION(opt) HAS_OPTION_BITS(XTE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65,...
15,793
static TCGReg tcg_out_tlb_read(TCGContext *s, TCGMemOp opc, TCGReg addrlo, TCGReg addrhi, int mem_index, bool is_read) { int cmp_off = (is_read ? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read) : offsetof(CP...
false
qemu
1f00b27f17518a1bcb4cedca49eaec96a4d560bd
static TCGReg tcg_out_tlb_read(TCGContext *s, TCGMemOp opc, TCGReg addrlo, TCGReg addrhi, int mem_index, bool is_read) { int cmp_off = (is_read ? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read) : offsetof(CP...
{ "code": [], "line_no": [] }
static TCGReg FUNC_0(TCGContext *s, TCGMemOp opc, TCGReg addrlo, TCGReg addrhi, int mem_index, bool is_read) { int VAR_0 = (is_read ? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read) : offsetof(CPUArchState, ...
[ "static TCGReg FUNC_0(TCGContext *s, TCGMemOp opc,\nTCGReg addrlo, TCGReg addrhi,\nint mem_index, bool is_read)\n{", "int VAR_0\n= (is_read\n? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read)\n: offsetof(CPUArchState, tlb_table[mem_index][0].addr_write));", "int VAR_1 = offsetof(CPUArchState, tlb_table...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 51 ], [ 59, 61, 63 ], [ 65 ...
15,794
static av_always_inline int dnxhd_decode_dct_block(const DNXHDContext *ctx, RowContext *row, int n, int index_bits, ...
false
FFmpeg
2ff61c3c1a0a7d8de741ba37c7662dedb6ad4b60
static av_always_inline int dnxhd_decode_dct_block(const DNXHDContext *ctx, RowContext *row, int n, int index_bits, ...
{ "code": [], "line_no": [] }
static av_always_inline int FUNC_0(const DNXHDContext *ctx, RowContext *row, int n, int index_bits, int level_bi...
[ "static av_always_inline int FUNC_0(const DNXHDContext *ctx,\nRowContext *row,\nint n,\nint index_bits,\nint level_bias,\nint level_shift,\nint dc_shift)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6, VAR_7, VAR_8;", "const int *VAR_9;", "const uint8_t *VAR_10;", "const uint8_t *VAR_11 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
15,795
static uint64_t build_channel_report_mcic(void) { uint64_t mcic; /* subclass: indicate channel report pending */ mcic = MCIC_SC_CP | /* subclass modifiers: none */ /* storage errors: none */ /* validity bits: no damage */ MCIC_VB_WP | MCIC_VB_MS | MCIC_VB_PM | MCIC_VB_IA | MCIC...
false
qemu
b700d75eda81c371c575b759de8e260d9f147494
static uint64_t build_channel_report_mcic(void) { uint64_t mcic; mcic = MCIC_SC_CP | MCIC_VB_WP | MCIC_VB_MS | MCIC_VB_PM | MCIC_VB_IA | MCIC_VB_FP | MCIC_VB_GR | MCIC_VB_CR | MCIC_VB_ST | MCIC_VB_AR | MCIC_VB_PR | MCIC_VB_FC | MCIC_VB_CT | MCIC_VB_CC; ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void) { uint64_t mcic; mcic = MCIC_SC_CP | MCIC_VB_WP | MCIC_VB_MS | MCIC_VB_PM | MCIC_VB_IA | MCIC_VB_FP | MCIC_VB_GR | MCIC_VB_CR | MCIC_VB_ST | MCIC_VB_AR | MCIC_VB_PR | MCIC_VB_FC | MCIC_VB_CT | MCIC_VB_CC; if (s390_has_feat...
[ "static uint64_t FUNC_0(void)\n{", "uint64_t mcic;", "mcic = MCIC_SC_CP |\nMCIC_VB_WP | MCIC_VB_MS | MCIC_VB_PM | MCIC_VB_IA | MCIC_VB_FP |\nMCIC_VB_GR | MCIC_VB_CR | MCIC_VB_ST | MCIC_VB_AR | MCIC_VB_PR |\nMCIC_VB_FC | MCIC_VB_CT | MCIC_VB_CC;", "if (s390_has_feat(S390_FEAT_VECTOR)) {", "mcic |= MCIC_VB_VR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11, 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
15,796
static int do_virtio_net_can_receive(VirtIONet *n, int bufsize) { if (!virtio_queue_ready(n->rx_vq) || !(n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) return 0; if (virtio_queue_empty(n->rx_vq) || (n->mergeable_rx_bufs && !virtqueue_avail_bytes(n->rx_vq, bufsize, 0))) { ...
false
qemu
cdd5cc12ba8cf0c068da319370bdd3ba45eaf7ac
static int do_virtio_net_can_receive(VirtIONet *n, int bufsize) { if (!virtio_queue_ready(n->rx_vq) || !(n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) return 0; if (virtio_queue_empty(n->rx_vq) || (n->mergeable_rx_bufs && !virtqueue_avail_bytes(n->rx_vq, bufsize, 0))) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(VirtIONet *VAR_0, int VAR_1) { if (!virtio_queue_ready(VAR_0->rx_vq) || !(VAR_0->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) return 0; if (virtio_queue_empty(VAR_0->rx_vq) || (VAR_0->mergeable_rx_bufs && !virtqueue_avail_bytes(VAR_0->rx_vq, VAR_1, 0))) {...
[ "static int FUNC_0(VirtIONet *VAR_0, int VAR_1)\n{", "if (!virtio_queue_ready(VAR_0->rx_vq) ||\n!(VAR_0->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK))\nreturn 0;", "if (virtio_queue_empty(VAR_0->rx_vq) ||\n(VAR_0->mergeable_rx_bufs &&\n!virtqueue_avail_bytes(VAR_0->rx_vq, VAR_1, 0))) {", "virtio_queue_set_notific...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ] ]
15,797
static inline void gen_bcond(DisasContext *ctx, int type) { uint32_t bo = BO(ctx->opcode); int l1; TCGv target; ctx->exception = POWERPC_EXCP_BRANCH; if (type == BCOND_LR || type == BCOND_CTR || type == BCOND_TAR) { target = tcg_temp_local_new(); if (type == BCOND_CTR) ...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static inline void gen_bcond(DisasContext *ctx, int type) { uint32_t bo = BO(ctx->opcode); int l1; TCGv target; ctx->exception = POWERPC_EXCP_BRANCH; if (type == BCOND_LR || type == BCOND_CTR || type == BCOND_TAR) { target = tcg_temp_local_new(); if (type == BCOND_CTR) ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1) { uint32_t bo = BO(VAR_0->opcode); int VAR_2; TCGv target; VAR_0->exception = POWERPC_EXCP_BRANCH; if (VAR_1 == BCOND_LR || VAR_1 == BCOND_CTR || VAR_1 == BCOND_TAR) { target = tcg_temp_local_new(); if (VAR_1 == BCON...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1)\n{", "uint32_t bo = BO(VAR_0->opcode);", "int VAR_2;", "TCGv target;", "VAR_0->exception = POWERPC_EXCP_BRANCH;", "if (VAR_1 == BCOND_LR || VAR_1 == BCOND_CTR || VAR_1 == BCOND_TAR) {", "target = tcg_temp_local_new();", "if (VAR_1 == BCOND_CTR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 47 ], [ 49 ...
15,798
static void menelaus_pre_save(void *opaque) { MenelausState *s = opaque; /* Should be <= 1000 */ s->rtc_next_vmstate = s->rtc.next - qemu_get_clock(rt_clock); }
false
qemu
7bd427d801e1e3293a634d3c83beadaa90ffb911
static void menelaus_pre_save(void *opaque) { MenelausState *s = opaque; s->rtc_next_vmstate = s->rtc.next - qemu_get_clock(rt_clock); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { MenelausState *s = VAR_0; s->rtc_next_vmstate = s->rtc.next - qemu_get_clock(rt_clock); }
[ "static void FUNC_0(void *VAR_0)\n{", "MenelausState *s = VAR_0;", "s->rtc_next_vmstate = s->rtc.next - qemu_get_clock(rt_clock);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
15,799
static inline uint64_t bdrv_get_align(BlockDriverState *bs) { /* TODO Lift BDRV_SECTOR_SIZE restriction in BlockDriver interface */ return MAX(BDRV_SECTOR_SIZE, bs->request_alignment); }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static inline uint64_t bdrv_get_align(BlockDriverState *bs) { return MAX(BDRV_SECTOR_SIZE, bs->request_alignment); }
{ "code": [], "line_no": [] }
static inline uint64_t FUNC_0(BlockDriverState *bs) { return MAX(BDRV_SECTOR_SIZE, bs->request_alignment); }
[ "static inline uint64_t FUNC_0(BlockDriverState *bs)\n{", "return MAX(BDRV_SECTOR_SIZE, bs->request_alignment);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ] ]
15,800
static int mipsnet_can_receive(void *opaque) { MIPSnetState *s = opaque; if (s->busy) return 0; return !mipsnet_buffer_full(s); }
false
qemu
e3f5ec2b5e92706e3b807059f79b1fb5d936e567
static int mipsnet_can_receive(void *opaque) { MIPSnetState *s = opaque; if (s->busy) return 0; return !mipsnet_buffer_full(s); }
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0) { MIPSnetState *s = VAR_0; if (s->busy) return 0; return !mipsnet_buffer_full(s); }
[ "static int FUNC_0(void *VAR_0)\n{", "MIPSnetState *s = VAR_0;", "if (s->busy)\nreturn 0;", "return !mipsnet_buffer_full(s);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ] ]
15,801
void hmp_host_net_remove(Monitor *mon, const QDict *qdict) { NetClientState *nc; int vlan_id = qdict_get_int(qdict, "vlan_id"); const char *device = qdict_get_str(qdict, "device"); nc = net_hub_find_client_by_name(vlan_id, device); if (!nc) { error_report("Host network device '%s' o...
false
qemu
7fb439115de7354b3ac2becf24457acaf828296b
void hmp_host_net_remove(Monitor *mon, const QDict *qdict) { NetClientState *nc; int vlan_id = qdict_get_int(qdict, "vlan_id"); const char *device = qdict_get_str(qdict, "device"); nc = net_hub_find_client_by_name(vlan_id, device); if (!nc) { error_report("Host network device '%s' o...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { NetClientState *nc; int VAR_2 = qdict_get_int(VAR_1, "VAR_2"); const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3"); nc = net_hub_find_client_by_name(VAR_2, VAR_3); if (!nc) { error_report("Host network VAR_3 '%s' on hub '%d' not found"...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "NetClientState *nc;", "int VAR_2 = qdict_get_int(VAR_1, \"VAR_2\");", "const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");", "nc = net_hub_find_client_by_name(VAR_2, VAR_3);", "if (!nc) {", "error_report(\"Host network VAR_3 '%s' on hub '%d' not fo...
[ 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 ], [ 35 ], [ 37 ], [ 39 ] ]
15,802
static int ssd0303_init(I2CSlave *i2c) { ssd0303_state *s = FROM_I2C_SLAVE(ssd0303_state, i2c); s->con = graphic_console_init(ssd0303_update_display, ssd0303_invalidate_display, NULL, NULL, s); qemu_console_resize(s->con, 96 * MAGNI...
false
qemu
2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5
static int ssd0303_init(I2CSlave *i2c) { ssd0303_state *s = FROM_I2C_SLAVE(ssd0303_state, i2c); s->con = graphic_console_init(ssd0303_update_display, ssd0303_invalidate_display, NULL, NULL, s); qemu_console_resize(s->con, 96 * MAGNI...
{ "code": [], "line_no": [] }
static int FUNC_0(I2CSlave *VAR_0) { ssd0303_state *s = FROM_I2C_SLAVE(ssd0303_state, VAR_0); s->con = graphic_console_init(ssd0303_update_display, ssd0303_invalidate_display, NULL, NULL, s); qemu_console_resize(s->con, 96 * MAGNIFY...
[ "static int FUNC_0(I2CSlave *VAR_0)\n{", "ssd0303_state *s = FROM_I2C_SLAVE(ssd0303_state, VAR_0);", "s->con = graphic_console_init(ssd0303_update_display,\nssd0303_invalidate_display,\nNULL, NULL, s);", "qemu_console_resize(s->con, 96 * MAGNIFY, 16 * MAGNIFY);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ] ]
15,803
static enum AVPixelFormat webp_get_format(AVCodecContext *avctx, const enum AVPixelFormat *formats) { WebPContext *s = avctx->priv_data; if (s->has_alpha) return AV_PIX_FMT_YUVA420P; else return AV_PIX_FMT_YUV420P; }
false
FFmpeg
57623cba1301ee7874687dd7e04c611051638e9d
static enum AVPixelFormat webp_get_format(AVCodecContext *avctx, const enum AVPixelFormat *formats) { WebPContext *s = avctx->priv_data; if (s->has_alpha) return AV_PIX_FMT_YUVA420P; else return AV_PIX_FMT_YUV420P; }
{ "code": [], "line_no": [] }
static enum AVPixelFormat FUNC_0(AVCodecContext *VAR_0, const enum AVPixelFormat *VAR_1) { WebPContext *s = VAR_0->priv_data; if (s->has_alpha) return AV_PIX_FMT_YUVA420P; else return AV_PIX_FMT_YUV420P; }
[ "static enum AVPixelFormat FUNC_0(AVCodecContext *VAR_0,\nconst enum AVPixelFormat *VAR_1)\n{", "WebPContext *s = VAR_0->priv_data;", "if (s->has_alpha)\nreturn AV_PIX_FMT_YUVA420P;", "else\nreturn AV_PIX_FMT_YUV420P;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ] ]
15,805
static void coded_frame_add(void *list, struct FrameListData *cx_frame) { struct FrameListData **p = list; while (*p != NULL) p = &(*p)->next; *p = cx_frame; cx_frame->next = NULL; }
false
FFmpeg
4b1f5e5090abed6c618c8ba380cd7d28d140f867
static void coded_frame_add(void *list, struct FrameListData *cx_frame) { struct FrameListData **p = list; while (*p != NULL) p = &(*p)->next; *p = cx_frame; cx_frame->next = NULL; }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, struct FrameListData *VAR_1) { struct FrameListData **VAR_2 = VAR_0; while (*VAR_2 != NULL) VAR_2 = &(*VAR_2)->next; *VAR_2 = VAR_1; VAR_1->next = NULL; }
[ "static void FUNC_0(void *VAR_0, struct FrameListData *VAR_1)\n{", "struct FrameListData **VAR_2 = VAR_0;", "while (*VAR_2 != NULL)\nVAR_2 = &(*VAR_2)->next;", "*VAR_2 = VAR_1;", "VAR_1->next = NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ] ]
15,806
void swri_resample_dsp_x86_init(ResampleContext *c) { int av_unused mm_flags = av_get_cpu_flags(); switch(c->format){ case AV_SAMPLE_FMT_S16P: if (ARCH_X86_32 && HAVE_MMXEXT_EXTERNAL && mm_flags & AV_CPU_FLAG_MMX2) { c->dsp.resample = c->linear ? ff_resample_linear_int16_mmxext ...
false
FFmpeg
9937362c54be085e75c90c55dad443329be59e69
void swri_resample_dsp_x86_init(ResampleContext *c) { int av_unused mm_flags = av_get_cpu_flags(); switch(c->format){ case AV_SAMPLE_FMT_S16P: if (ARCH_X86_32 && HAVE_MMXEXT_EXTERNAL && mm_flags & AV_CPU_FLAG_MMX2) { c->dsp.resample = c->linear ? ff_resample_linear_int16_mmxext ...
{ "code": [], "line_no": [] }
void FUNC_0(ResampleContext *VAR_0) { int VAR_1 mm_flags = av_get_cpu_flags(); switch(VAR_0->format){ case AV_SAMPLE_FMT_S16P: if (ARCH_X86_32 && HAVE_MMXEXT_EXTERNAL && mm_flags & AV_CPU_FLAG_MMX2) { VAR_0->dsp.resample = VAR_0->linear ? ff_resample_linear_int16_mmxext ...
[ "void FUNC_0(ResampleContext *VAR_0)\n{", "int VAR_1 mm_flags = av_get_cpu_flags();", "switch(VAR_0->format){", "case AV_SAMPLE_FMT_S16P:\nif (ARCH_X86_32 && HAVE_MMXEXT_EXTERNAL && mm_flags & AV_CPU_FLAG_MMX2) {", "VAR_0->dsp.resample = VAR_0->linear ? ff_resample_linear_int16_mmxext\n: ff_resample_common_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49...