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
17,467
static int fourxm_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; unsigned int fourcc_tag; unsigned int size; int header_size; FourxmDemuxContext *fourxm = s->priv_data; unsigned char *header; int i, ret; AVStream *st; fourxm->track_count = 0; fourxm->trac...
true
FFmpeg
1b8741a6843f3f4667c81c2d63d3182858aa534f
static int fourxm_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; unsigned int fourcc_tag; unsigned int size; int header_size; FourxmDemuxContext *fourxm = s->priv_data; unsigned char *header; int i, ret; AVStream *st; fourxm->track_count = 0; fourxm->trac...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { AVIOContext *pb = VAR_0->pb; unsigned int VAR_1; unsigned int VAR_2; int VAR_3; FourxmDemuxContext *fourxm = VAR_0->priv_data; unsigned char *VAR_4; int VAR_5, VAR_6; AVStream *st; fourxm->track_count = 0; fourxm->tracks = ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVIOContext *pb = VAR_0->pb;", "unsigned int VAR_1;", "unsigned int VAR_2;", "int VAR_3;", "FourxmDemuxContext *fourxm = VAR_0->priv_data;", "unsigned char *VAR_4;", "int VAR_5, VAR_6;", "AVStream *st;", "fourxm->track_count = 0;", "fourxm->tracks...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 51 ], [ 53, 55 ], [ 57 ...
17,468
static int virtio_ccw_rng_init(VirtioCcwDevice *ccw_dev) { VirtIORNGCcw *dev = VIRTIO_RNG_CCW(ccw_dev); DeviceState *vdev = DEVICE(&dev->vdev); qdev_set_parent_bus(vdev, BUS(&ccw_dev->bus)); if (qdev_init(vdev) < 0) { return -1; } object_property_set_link(OBJECT(dev), ...
true
qemu
5b456438f5bb395ed6b1eec95e18ce7a7a884a0a
static int virtio_ccw_rng_init(VirtioCcwDevice *ccw_dev) { VirtIORNGCcw *dev = VIRTIO_RNG_CCW(ccw_dev); DeviceState *vdev = DEVICE(&dev->vdev); qdev_set_parent_bus(vdev, BUS(&ccw_dev->bus)); if (qdev_init(vdev) < 0) { return -1; } object_property_set_link(OBJECT(dev), ...
{ "code": [ " OBJECT(dev->vdev.conf.default_backend), \"rng\",", " OBJECT(dev->vdev.conf.default_backend), \"rng\"," ], "line_no": [ 23, 23 ] }
static int FUNC_0(VirtioCcwDevice *VAR_0) { VirtIORNGCcw *dev = VIRTIO_RNG_CCW(VAR_0); DeviceState *vdev = DEVICE(&dev->vdev); qdev_set_parent_bus(vdev, BUS(&VAR_0->bus)); if (qdev_init(vdev) < 0) { return -1; } object_property_set_link(OBJECT(dev), ...
[ "static int FUNC_0(VirtioCcwDevice *VAR_0)\n{", "VirtIORNGCcw *dev = VIRTIO_RNG_CCW(VAR_0);", "DeviceState *vdev = DEVICE(&dev->vdev);", "qdev_set_parent_bus(vdev, BUS(&VAR_0->bus));", "if (qdev_init(vdev) < 0) {", "return -1;", "}", "object_property_set_link(OBJECT(dev),\nOBJECT(dev->vdev.conf.defaul...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23, 25 ], [ 29 ], [ 31 ] ]
17,469
static bool cmd_smart(IDEState *s, uint8_t cmd) { int n; if (s->hcyl != 0xc2 || s->lcyl != 0x4f) { goto abort_cmd; } if (!s->smart_enabled && s->feature != SMART_ENABLE) { goto abort_cmd; } switch (s->feature) { case SMART_DISABLE: s->smart_enabled = ...
true
qemu
940973ae0b45c9b6817bab8e4cf4df99a9ef83d7
static bool cmd_smart(IDEState *s, uint8_t cmd) { int n; if (s->hcyl != 0xc2 || s->lcyl != 0x4f) { goto abort_cmd; } if (!s->smart_enabled && s->feature != SMART_ENABLE) { goto abort_cmd; } switch (s->feature) { case SMART_DISABLE: s->smart_enabled = ...
{ "code": [ " s->smart_selftest_count = 0;" ], "line_no": [ 303 ] }
static bool FUNC_0(IDEState *s, uint8_t cmd) { int VAR_0; if (s->hcyl != 0xc2 || s->lcyl != 0x4f) { goto abort_cmd; } if (!s->smart_enabled && s->feature != SMART_ENABLE) { goto abort_cmd; } switch (s->feature) { case SMART_DISABLE: s->smart_enabled =...
[ "static bool FUNC_0(IDEState *s, uint8_t cmd)\n{", "int VAR_0;", "if (s->hcyl != 0xc2 || s->lcyl != 0x4f) {", "goto abort_cmd;", "}", "if (!s->smart_enabled && s->feature != SMART_ENABLE) {", "goto abort_cmd;", "}", "switch (s->feature) {", "case SMART_DISABLE:\ns->smart_enabled = 0;", "return 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 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 47, 49 ], [ 51 ], [ 53, 55 ], ...
17,470
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) { TiffEncoderContext *s = avctx->priv_data; const AVFrame *const p = pict; int i; uint8_t *ptr; uint8_t *offset; uint32_t strips; uint32_t *strip_sizes = NUL...
true
FFmpeg
10d4c5e55e5b23e165aa4c7723073ebe2c2e7da0
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) { TiffEncoderContext *s = avctx->priv_data; const AVFrame *const p = pict; int i; uint8_t *ptr; uint8_t *offset; uint32_t strips; uint32_t *strip_sizes = NUL...
{ "code": [ " if (check_size(s, 8))" ], "line_no": [ 205 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { TiffEncoderContext *s = VAR_0->priv_data; const AVFrame *const VAR_4 = VAR_2; int VAR_5; uint8_t *ptr; uint8_t *offset; uint32_t strips; uint32_t *strip_sizes = NU...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "TiffEncoderContext *s = VAR_0->priv_data;", "const AVFrame *const VAR_4 = VAR_2;", "int VAR_5;", "uint8_t *ptr;", "uint8_t *offset;", "uint32_t strips;", "uint32_t *strip_sizes = NULL;", "uint32_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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [...
17,471
static void vmxnet3_pci_realize(PCIDevice *pci_dev, Error **errp) { DeviceState *dev = DEVICE(pci_dev); VMXNET3State *s = VMXNET3(pci_dev); VMW_CBPRN("Starting init..."); memory_region_init_io(&s->bar0, OBJECT(s), &b0_ops, s, "vmxnet3-b0", VMXNET3_PT_REG_SIZE); p...
true
qemu
1108b2f8a939fb5778d384149e2f1b99062a72da
static void vmxnet3_pci_realize(PCIDevice *pci_dev, Error **errp) { DeviceState *dev = DEVICE(pci_dev); VMXNET3State *s = VMXNET3(pci_dev); VMW_CBPRN("Starting init..."); memory_region_init_io(&s->bar0, OBJECT(s), &b0_ops, s, "vmxnet3-b0", VMXNET3_PT_REG_SIZE); p...
{ "code": [ " if (!vmxnet3_init_msi(s)) {", " VMW_WRPRN(\"Failed to initialize MSI, configuration is inconsistent.\");" ], "line_no": [ 63, 65 ] }
static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1) { DeviceState *dev = DEVICE(VAR_0); VMXNET3State *s = VMXNET3(VAR_0); VMW_CBPRN("Starting init..."); memory_region_init_io(&s->bar0, OBJECT(s), &b0_ops, s, "vmxnet3-b0", VMXNET3_PT_REG_SIZE); pci_register_bar(VA...
[ "static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{", "DeviceState *dev = DEVICE(VAR_0);", "VMXNET3State *s = VMXNET3(VAR_0);", "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, VMXNET3_BAR0_IDX...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 19, 21 ], [ 25, 27 ], [ 29, 31 ], [ 35, 37 ], [ 39, 41 ], [ 45 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ], [ 65...
17,472
void virtio_blk_data_plane_start(VirtIOBlockDataPlane *s) { BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s->vdev))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOBlock *vblk = VIRTIO_BLK(s->vdev); int r; if (vblk->dataplane_started || s->starting) { return; } ...
true
qemu
8a2fad57eb124ec0633f6f2b1c74c991fc7501bd
void virtio_blk_data_plane_start(VirtIOBlockDataPlane *s) { BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s->vdev))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOBlock *vblk = VIRTIO_BLK(s->vdev); int r; if (vblk->dataplane_started || s->starting) { return; } ...
{ "code": [], "line_no": [] }
void FUNC_0(VirtIOBlockDataPlane *VAR_0) { BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_0->vdev))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOBlock *vblk = VIRTIO_BLK(VAR_0->vdev); int VAR_1; if (vblk->dataplane_started || VAR_0->starting) { return; } ...
[ "void FUNC_0(VirtIOBlockDataPlane *VAR_0)\n{", "BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_0->vdev)));", "VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);", "VirtIOBlock *vblk = VIRTIO_BLK(VAR_0->vdev);", "int VAR_1;", "if (vblk->dataplane_started || VAR_0->starting) {", "return;", "}", "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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [...
17,473
int do_subchannel_work_passthrough(SubchDev *sch) { int ret = 0; SCSW *s = &sch->curr_status.scsw; if (s->ctrl & SCSW_FCTL_CLEAR_FUNC) { /* TODO: Clear handling */ sch_handle_clear_func(sch); } else if (s->ctrl & SCSW_FCTL_HALT_FUNC) { /* TODO: Halt handling */ ...
true
qemu
66dc50f7057b9a0191f54e55764412202306858d
int do_subchannel_work_passthrough(SubchDev *sch) { int ret = 0; SCSW *s = &sch->curr_status.scsw; if (s->ctrl & SCSW_FCTL_CLEAR_FUNC) { sch_handle_clear_func(sch); } else if (s->ctrl & SCSW_FCTL_HALT_FUNC) { sch_handle_halt_func(sch); } else if (s->ctrl...
{ "code": [ " return ret;", "int do_subchannel_work_passthrough(SubchDev *sch)", " int ret = 0;", " ret = sch_handle_start_func_passthrough(sch);", " return ret;", " return ret;", " return ret;" ], "line_no": [ 31, 1, 5, 25, 31, 31, 31 ...
int FUNC_0(SubchDev *VAR_0) { int VAR_1 = 0; SCSW *s = &VAR_0->curr_status.scsw; if (s->ctrl & SCSW_FCTL_CLEAR_FUNC) { sch_handle_clear_func(VAR_0); } else if (s->ctrl & SCSW_FCTL_HALT_FUNC) { sch_handle_halt_func(VAR_0); } else if (s->ctrl & SCSW_FCTL_S...
[ "int FUNC_0(SubchDev *VAR_0)\n{", "int VAR_1 = 0;", "SCSW *s = &VAR_0->curr_status.scsw;", "if (s->ctrl & SCSW_FCTL_CLEAR_FUNC) {", "sch_handle_clear_func(VAR_0);", "} else if (s->ctrl & SCSW_FCTL_HALT_FUNC) {", "sch_handle_halt_func(VAR_0);", "} else if (s->ctrl & SCSW_FCTL_START_FUNC) {", "VAR_1 =...
[ 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
17,474
static void icp_control_init(uint32_t base) { int iomemtype; icp_control_state *s; s = (icp_control_state *)qemu_mallocz(sizeof(icp_control_state)); iomemtype = cpu_register_io_memory(0, icp_control_readfn, icp_control_writefn, s); cpu_register_physica...
true
qemu
187337f8b0ec0813dd3876d1efe37d415fb81c2e
static void icp_control_init(uint32_t base) { int iomemtype; icp_control_state *s; s = (icp_control_state *)qemu_mallocz(sizeof(icp_control_state)); iomemtype = cpu_register_io_memory(0, icp_control_readfn, icp_control_writefn, s); cpu_register_physica...
{ "code": [ " cpu_register_physical_memory(base, 0x007fffff, iomemtype);", " cpu_register_physical_memory(base, 0x007fffff, iomemtype);" ], "line_no": [ 17, 17 ] }
static void FUNC_0(uint32_t VAR_0) { int VAR_1; icp_control_state *s; s = (icp_control_state *)qemu_mallocz(sizeof(icp_control_state)); VAR_1 = cpu_register_io_memory(0, icp_control_readfn, icp_control_writefn, s); cpu_register_physical_memory(VAR_0, 0...
[ "static void FUNC_0(uint32_t VAR_0)\n{", "int VAR_1;", "icp_control_state *s;", "s = (icp_control_state *)qemu_mallocz(sizeof(icp_control_state));", "VAR_1 = cpu_register_io_memory(0, icp_control_readfn,\nicp_control_writefn, s);", "cpu_register_physical_memory(VAR_0, 0x007fffff, VAR_1);", "s->VAR_0 = V...
[ 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ] ]
17,475
static int nsv_parse_NSVf_header(AVFormatContext *s, AVFormatParameters *ap) { NSVContext *nsv = s->priv_data; ByteIOContext *pb = &s->pb; uint32_t tag, tag1, handler; int codec_type, stream_index, frame_period, bit_rate, scale, rate; unsigned int file_size, size, nb_frames; int64_t durat...
true
FFmpeg
568e18b15e2ddf494fd8926707d34ca08c8edce5
static int nsv_parse_NSVf_header(AVFormatContext *s, AVFormatParameters *ap) { NSVContext *nsv = s->priv_data; ByteIOContext *pb = &s->pb; uint32_t tag, tag1, handler; int codec_type, stream_index, frame_period, bit_rate, scale, rate; unsigned int file_size, size, nb_frames; int64_t durat...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { NSVContext *nsv = VAR_0->priv_data; ByteIOContext *pb = &VAR_0->pb; uint32_t tag, tag1, handler; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; unsigned int VAR_8, VAR_9, VAR_10; int64_t duration; int VAR_11; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "NSVContext *nsv = VAR_0->priv_data;", "ByteIOContext *pb = &VAR_0->pb;", "uint32_t tag, tag1, handler;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "unsigned int VAR_8, VAR_9, VAR_10;", "int64_t duration;", "int 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 ], [ 31 ], [ 35 ], [ 39 ], [ 41, 44 ], [ 50 ], [ 52 ], [...
17,476
PPC_OP(srw) { if (T1 & 0x20) { T0 = 0; } else { T0 = T0 >> T1; } RETURN(); }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
PPC_OP(srw) { if (T1 & 0x20) { T0 = 0; } else { T0 = T0 >> T1; } RETURN(); }
{ "code": [ " RETURN();", " } else {", " } else {", " } else {", "PPC_OP(srw)", " T0 = T0 >> T1;", " } else {", " } else {", " } else {", " } else {", " } else {", " RETURN();", " } else {", " } else {" ], "line_no"...
FUNC_0(VAR_0) { if (T1 & 0x20) { T0 = 0; } else { T0 = T0 >> T1; } RETURN(); }
[ "FUNC_0(VAR_0)\n{", "if (T1 & 0x20) {", "T0 = 0;", "} else {", "T0 = T0 >> T1;", "}", "RETURN();", "}" ]
[ 1, 0, 0, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
17,477
SCSIRequest *scsi_req_alloc(const SCSIReqOps *reqops, SCSIDevice *d, uint32_t tag, uint32_t lun, void *hba_private) { SCSIRequest *req; SCSIBus *bus = scsi_bus_from_device(d); BusState *qbus = BUS(bus); req = g_malloc0(reqops->size); req->refcount = 1; req->...
true
qemu
61e68b3fbd3e2b7beb636bc56f78d9c1ca25e8f9
SCSIRequest *scsi_req_alloc(const SCSIReqOps *reqops, SCSIDevice *d, uint32_t tag, uint32_t lun, void *hba_private) { SCSIRequest *req; SCSIBus *bus = scsi_bus_from_device(d); BusState *qbus = BUS(bus); req = g_malloc0(reqops->size); req->refcount = 1; req->...
{ "code": [ " req = g_malloc0(reqops->size);", " req->sense_len = 0;" ], "line_no": [ 15, 31 ] }
SCSIRequest *FUNC_0(const SCSIReqOps *reqops, SCSIDevice *d, uint32_t tag, uint32_t lun, void *hba_private) { SCSIRequest *req; SCSIBus *bus = scsi_bus_from_device(d); BusState *qbus = BUS(bus); req = g_malloc0(reqops->size); req->refcount = 1; req->bus = bu...
[ "SCSIRequest *FUNC_0(const SCSIReqOps *reqops, SCSIDevice *d,\nuint32_t tag, uint32_t lun, void *hba_private)\n{", "SCSIRequest *req;", "SCSIBus *bus = scsi_bus_from_device(d);", "BusState *qbus = BUS(bus);", "req = g_malloc0(reqops->size);", "req->refcount = 1;", "req->bus = bus;", "req->dev = d;", ...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
17,479
static void setup_rt_frame(int sig, struct target_sigaction *ka, target_siginfo_t *info, target_sigset_t *set, CPUM68KState *env) { struct target_rt_sigframe *frame; abi_ulong frame_addr; abi_ulong retcode_addr; abi_ulong info_addr; abi_u...
true
qemu
0188fadb7fe460d8c4c743372b1f7b25773e183e
static void setup_rt_frame(int sig, struct target_sigaction *ka, target_siginfo_t *info, target_sigset_t *set, CPUM68KState *env) { struct target_rt_sigframe *frame; abi_ulong frame_addr; abi_ulong retcode_addr; abi_ulong info_addr; abi_u...
{ "code": [ " unlock_user_struct(frame, frame_addr, 1);", " int err = 0;", " if (err)", " if (err)", " unlock_user_struct(frame, frame_addr, 1);", " goto give_sigsegv;", " goto give_sigsegv;", " unlock_user_struct(frame, frame_addr, 1);", " ...
static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1, target_siginfo_t *VAR_2, target_sigset_t *VAR_3, CPUM68KState *VAR_4) { struct target_rt_sigframe *VAR_5; abi_ulong frame_addr; abi_ulong retcode_addr; abi_ulong info_addr; abi...
[ "static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,\ntarget_siginfo_t *VAR_2,\ntarget_sigset_t *VAR_3, CPUM68KState *VAR_4)\n{", "struct target_rt_sigframe *VAR_5;", "abi_ulong frame_addr;", "abi_ulong retcode_addr;", "abi_ulong info_addr;", "abi_ulong uc_addr;", "int VAR_6 = 0;", "int VAR_...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 57 ], [ 59 ], [...
17,481
static int flush_packet(AVFormatContext *ctx, int stream_index, int64_t pts, int64_t dts, int64_t scr, int trailer_size) { MpegMuxContext *s = ctx->priv_data; StreamInfo *stream = ctx->streams[stream_index]->priv_data; uint8_t *buf_ptr; int size, payload_size, startcode, id, stu...
true
FFmpeg
29d27b54251fe250f6fe512b7759a1405362ae67
static int flush_packet(AVFormatContext *ctx, int stream_index, int64_t pts, int64_t dts, int64_t scr, int trailer_size) { MpegMuxContext *s = ctx->priv_data; StreamInfo *stream = ctx->streams[stream_index]->priv_data; uint8_t *buf_ptr; int size, payload_size, startcode, id, stu...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int64_t VAR_3, int64_t VAR_4, int VAR_5) { MpegMuxContext *s = VAR_0->priv_data; StreamInfo *stream = VAR_0->streams[VAR_1]->priv_data; uint8_t *buf_ptr; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t VAR_2, int64_t VAR_3, int64_t VAR_4, int VAR_5)\n{", "MpegMuxContext *s = VAR_0->priv_data;", "StreamInfo *stream = VAR_0->streams[VAR_1]->priv_data;", "uint8_t *buf_ptr;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "int VAR_13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 20 ], [ 21 ], [ 22 ], [ ...
17,483
static int mov_read_replaygain(MOVContext *c, AVIOContext *pb, int size) { int64_t end = avio_tell(pb) + size; uint8_t *key = NULL, *val = NULL; int i; for (i = 0; i < 2; i++) { uint8_t **p; uint32_t len, tag; if (end - avio_tell(pb) <= 12) break; ...
true
FFmpeg
5c720657c23afd798ae0db7c7362eb859a89ab3d
static int mov_read_replaygain(MOVContext *c, AVIOContext *pb, int size) { int64_t end = avio_tell(pb) + size; uint8_t *key = NULL, *val = NULL; int i; for (i = 0; i < 2; i++) { uint8_t **p; uint32_t len, tag; if (end - avio_tell(pb) <= 12) break; ...
{ "code": [ " avio_read(pb, *p, len);" ], "line_no": [ 67 ] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, int VAR_2) { int64_t end = avio_tell(VAR_1) + VAR_2; uint8_t *key = NULL, *val = NULL; int VAR_3; for (VAR_3 = 0; VAR_3 < 2; VAR_3++) { uint8_t **p; uint32_t len, tag; if (end - avio_tell(VAR_1) <= 12) ...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, int VAR_2)\n{", "int64_t end = avio_tell(VAR_1) + VAR_2;", "uint8_t *key = NULL, *val = NULL;", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < 2; VAR_3++) {", "uint8_t **p;", "uint32_t len, tag;", "if (end - avio_tell(VAR_1) <= 12)\nbreak;", "len = a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
17,484
type_init(vmgenid_register_types) GuidInfo *qmp_query_vm_generation_id(Error **errp) { GuidInfo *info; VmGenIdState *vms; Object *obj = find_vmgenid_dev(); if (!obj) { return NULL; } vms = VMGENID(obj); info = g_malloc0(sizeof(*info)); info->guid = qemu_uuid_unp...
true
qemu
72d9196f1ef588c19821d0a4fb563836fdb2a0b7
type_init(vmgenid_register_types) GuidInfo *qmp_query_vm_generation_id(Error **errp) { GuidInfo *info; VmGenIdState *vms; Object *obj = find_vmgenid_dev(); if (!obj) { return NULL; } vms = VMGENID(obj); info = g_malloc0(sizeof(*info)); info->guid = qemu_uuid_unp...
{ "code": [], "line_no": [] }
type_init(vmgenid_register_types) GuidInfo *qmp_query_vm_generation_id(Error **errp) { GuidInfo *info; VmGenIdState *vms; Object *obj = find_vmgenid_dev(); if (!obj) { return NULL; } vms = VMGENID(obj); info = g_malloc0(sizeof(*info)); info->guid = qemu_uuid_unp...
[ "type_init(vmgenid_register_types)\nGuidInfo *qmp_query_vm_generation_id(Error **errp)\n{", "GuidInfo *info;", "VmGenIdState *vms;", "Object *obj = find_vmgenid_dev();", "if (!obj) {", "return NULL;", "}", "vms = VMGENID(obj);", "info = g_malloc0(sizeof(*info));", "info->guid = qemu_uuid_unparse_s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 20 ], [ 22 ], [ 24 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ] ]
17,485
int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, int log_offset, void *log_ctx) { FileLogContext file_log_ctx = { &file_log_ctx_class, log_offset, log_ctx }; int err, fd = open(filename, O_RDONLY); struct stat st; av_unused void *ptr; off_t off_size; ...
true
FFmpeg
d0989bed226578a8f37ca90c78abc97abafb9794
int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, int log_offset, void *log_ctx) { FileLogContext file_log_ctx = { &file_log_ctx_class, log_offset, log_ctx }; int err, fd = open(filename, O_RDONLY); struct stat st; av_unused void *ptr; off_t off_size; ...
{ "code": [ " if ((int)(ptr) == -1) {" ], "line_no": [ 75 ] }
int FUNC_0(const char *VAR_0, uint8_t **VAR_1, size_t *VAR_2, int VAR_3, void *VAR_4) { FileLogContext file_log_ctx = { &file_log_ctx_class, VAR_3, VAR_4 }; int VAR_5, VAR_6 = open(VAR_0, O_RDONLY); struct stat VAR_7; av_unused void *ptr; off_t off_size; char VAR_8[128]; ...
[ "int FUNC_0(const char *VAR_0, uint8_t **VAR_1, size_t *VAR_2,\nint VAR_3, void *VAR_4)\n{", "FileLogContext file_log_ctx = { &file_log_ctx_class, VAR_3, VAR_4 };", "int VAR_5, VAR_6 = open(VAR_0, O_RDONLY);", "struct stat VAR_7;", "av_unused void *ptr;", "off_t off_size;", "char VAR_8[128];", "*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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
17,486
static void gen_op_iwmmxt_setpsr_nz(void) { TCGv tmp = new_tmp(); gen_helper_iwmmxt_setpsr_nz(tmp, cpu_M0); store_cpu_field(tmp, iwmmxt.cregs[ARM_IWMMXT_wCASF]); }
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static void gen_op_iwmmxt_setpsr_nz(void) { TCGv tmp = new_tmp(); gen_helper_iwmmxt_setpsr_nz(tmp, cpu_M0); store_cpu_field(tmp, iwmmxt.cregs[ARM_IWMMXT_wCASF]); }
{ "code": [ " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " ...
static void FUNC_0(void) { TCGv tmp = new_tmp(); gen_helper_iwmmxt_setpsr_nz(tmp, cpu_M0); store_cpu_field(tmp, iwmmxt.cregs[ARM_IWMMXT_wCASF]); }
[ "static void FUNC_0(void)\n{", "TCGv tmp = new_tmp();", "gen_helper_iwmmxt_setpsr_nz(tmp, cpu_M0);", "store_cpu_field(tmp, iwmmxt.cregs[ARM_IWMMXT_wCASF]);", "}" ]
[ 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
17,487
int ff_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, i, err; AVStream *st; for (;;) { AVPacketList *pktl = s->internal->raw_packet_buffer; if (pktl) { *pkt = pktl->pkt; st = s->streams[pkt->stream_index]; if (s->internal->raw_packet_buffer_re...
true
FFmpeg
e936c8d176efd1a0a41e22df24564b1178c79ea9
int ff_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, i, err; AVStream *st; for (;;) { AVPacketList *pktl = s->internal->raw_packet_buffer; if (pktl) { *pkt = pktl->pkt; st = s->streams[pkt->stream_index]; if (s->internal->raw_packet_buffer_re...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { int VAR_2, VAR_3, VAR_4; AVStream *st; for (;;) { AVPacketList *pktl = VAR_0->internal->raw_packet_buffer; if (pktl) { *VAR_1 = pktl->VAR_1; st = VAR_0->streams[VAR_1->stream_index]; if (VAR_0->intern...
[ "int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "AVStream *st;", "for (;;) {", "AVPacketList *pktl = VAR_0->internal->raw_packet_buffer;", "if (pktl) {", "*VAR_1 = pktl->VAR_1;", "st = VAR_0->streams[VAR_1->stream_index];", "if (VAR_0->internal->raw_packet_buf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10, 11, 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ],...
17,488
static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac, uint8_t (*layout_map)[3], GetBitContext *gb) { int num_front, num_side, num_back, num_lfe, num_assoc_data, num_cc, sampling_index; int comment_len; int tags; skip_bits(gb, 2); // ob...
true
FFmpeg
dbe29db8cb09fb39bd8dc5b25934e92279d0aa8d
static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac, uint8_t (*layout_map)[3], GetBitContext *gb) { int num_front, num_side, num_back, num_lfe, num_assoc_data, num_cc, sampling_index; int comment_len; int tags; skip_bits(gb, 2); ...
{ "code": [ " av_log(avctx, AV_LOG_ERROR, overread_err);", " av_log(avctx, AV_LOG_ERROR, overread_err);" ], "line_no": [ 61, 61 ] }
static int FUNC_0(AVCodecContext *VAR_0, MPEG4AudioConfig *VAR_1, VAR_2 (*layout_map)[3], GetBitContext *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; int VAR_11; int VAR_12; skip_bits(VAR_3, 2); VAR_10 = get_bits(VAR_3, 4); ...
[ "static int FUNC_0(AVCodecContext *VAR_0, MPEG4AudioConfig *VAR_1,\nVAR_2 (*layout_map)[3],\nGetBitContext *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "int VAR_11;", "int VAR_12;", "skip_bits(VAR_3, 2);", "VAR_10 = get_bits(VAR_3, 4);", "if (VAR_1->VAR_10 != VAR_10)\nav_log(VAR...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47, 49 ], [ 53, 55 ], [ 59 ...
17,489
print_insn_sparc (bfd_vma memaddr, disassemble_info *info) { FILE *stream = info->stream; bfd_byte buffer[4]; unsigned long insn; sparc_opcode_hash *op; /* Nonzero of opcode table has been initialized. */ static int opcodes_initialized = 0; /* bfd mach number of last call. */ static unsigned ...
true
qemu
345ce423dd58b3ddc3cfbcbb1ca2eee25546e8be
print_insn_sparc (bfd_vma memaddr, disassemble_info *info) { FILE *stream = info->stream; bfd_byte buffer[4]; unsigned long insn; sparc_opcode_hash *op; static int opcodes_initialized = 0; static unsigned long current_mach = 0; bfd_vma (*getword) (const unsigned char *); if (!opcodes_...
{ "code": [ " (*info->fprintf_func) (stream, _(\"unknown\"));" ], "line_no": [ 1135 ] }
FUNC_0 (bfd_vma VAR_0, disassemble_info *VAR_1) { FILE *stream = VAR_1->stream; bfd_byte buffer[4]; unsigned long VAR_2; sparc_opcode_hash *op; static int VAR_3 = 0; static unsigned long VAR_4 = 0; bfd_vma (*getword) (const unsigned char *); if (!VAR_3 || VAR_1->mach != VAR_4) ...
[ "FUNC_0 (bfd_vma VAR_0, disassemble_info *VAR_1)\n{", "FILE *stream = VAR_1->stream;", "bfd_byte buffer[4];", "unsigned long VAR_2;", "sparc_opcode_hash *op;", "static int VAR_3 = 0;", "static unsigned long VAR_4 = 0;", "bfd_vma (*getword) (const unsigned char *);", "if (!VAR_3\n|| VAR_1->mach != VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 25, 27, 29 ], [ 31 ], [ 35 ], [ 39, 41, 43 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 57 ], [ 59 ], [...
17,490
static int vmstate_subsection_load(QEMUFile *f, const VMStateDescription *vmsd, void *opaque) { while (qemu_peek_byte(f, 0) == QEMU_VM_SUBSECTION) { char idstr[256]; int ret; uint8_t version_id, len, size; const VMStateDescription *sub_vmsd; ...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int vmstate_subsection_load(QEMUFile *f, const VMStateDescription *vmsd, void *opaque) { while (qemu_peek_byte(f, 0) == QEMU_VM_SUBSECTION) { char idstr[256]; int ret; uint8_t version_id, len, size; const VMStateDescription *sub_vmsd; ...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, const VMStateDescription *VAR_1, void *VAR_2) { while (qemu_peek_byte(VAR_0, 0) == QEMU_VM_SUBSECTION) { char VAR_3[256]; int VAR_4; uint8_t version_id, len, size; const VMStateDescription *VAR_5; ...
[ "static int FUNC_0(QEMUFile *VAR_0, const VMStateDescription *VAR_1,\nvoid *VAR_2)\n{", "while (qemu_peek_byte(VAR_0, 0) == QEMU_VM_SUBSECTION) {", "char VAR_3[256];", "int VAR_4;", "uint8_t version_id, len, size;", "const VMStateDescription *VAR_5;", "len = qemu_peek_byte(VAR_0, 1);", "if (len < strl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
17,491
static int decode_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) { H264Context *h = dst->priv_data, *h1 = src->priv_data; int inited = h->context_initialized, err = 0; int context_reinitialized = 0; int i, ret; if (dst == src ||...
false
FFmpeg
a553c6a347d3d28d7ee44c3df3d5c4ee780dba23
static int decode_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) { H264Context *h = dst->priv_data, *h1 = src->priv_data; int inited = h->context_initialized, err = 0; int context_reinitialized = 0; int i, ret; if (dst == src ||...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const AVCodecContext *VAR_1) { H264Context *h = VAR_0->priv_data, *h1 = VAR_1->priv_data; int VAR_2 = h->context_initialized, VAR_3 = 0; int VAR_4 = 0; int VAR_5, VAR_6; if (VAR_0 == VAR_1 || !h1->context_initi...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst AVCodecContext *VAR_1)\n{", "H264Context *h = VAR_0->priv_data, *h1 = VAR_1->priv_data;", "int VAR_2 = h->context_initialized, VAR_3 = 0;", "int VAR_4 = 0;", "int VAR_5, VAR_6;", "if (VAR_0 == VAR_1 || !h1->context_initialized)\nreturn 0;", "if (VAR_2 &&\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23, 25, 27, 29, 31, 33, 35, 37 ], [ 47 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [...
17,493
static av_cold void sws_init_swscale(SwsContext *c) { enum AVPixelFormat srcFormat = c->srcFormat; ff_sws_init_output_funcs(c, &c->yuv2plane1, &c->yuv2planeX, &c->yuv2nv12cX, &c->yuv2packed1, &c->yuv2packed2, &c->yuv2packedX, &c->yuv2anyX); ...
false
FFmpeg
e87a501e7d03ac68b58520108fe24ad9d0b36765
static av_cold void sws_init_swscale(SwsContext *c) { enum AVPixelFormat srcFormat = c->srcFormat; ff_sws_init_output_funcs(c, &c->yuv2plane1, &c->yuv2planeX, &c->yuv2nv12cX, &c->yuv2packed1, &c->yuv2packed2, &c->yuv2packedX, &c->yuv2anyX); ...
{ "code": [], "line_no": [] }
static av_cold void FUNC_0(SwsContext *c) { enum AVPixelFormat VAR_0 = c->VAR_0; ff_sws_init_output_funcs(c, &c->yuv2plane1, &c->yuv2planeX, &c->yuv2nv12cX, &c->yuv2packed1, &c->yuv2packed2, &c->yuv2packedX, &c->yuv2anyX); ff_sws_init_input...
[ "static av_cold void FUNC_0(SwsContext *c)\n{", "enum AVPixelFormat VAR_0 = c->VAR_0;", "ff_sws_init_output_funcs(c, &c->yuv2plane1, &c->yuv2planeX,\n&c->yuv2nv12cX, &c->yuv2packed1,\n&c->yuv2packed2, &c->yuv2packedX, &c->yuv2anyX);", "ff_sws_init_input_funcs(c);", "if (c->srcBpc == 8) {", "if (c->dstBpc ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51 ], ...
17,494
static target_ulong h_enter(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { CPUPPCState *env = &cpu->env; target_ulong flags = args[0]; target_ulong pte_index = args[1]; target_ulong pteh = args[2]; target_ulong ptel = args[3];...
true
qemu
c117590769ea863da3ac082863e6c2ee1cce3eca
static target_ulong h_enter(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { CPUPPCState *env = &cpu->env; target_ulong flags = args[0]; target_ulong pte_index = args[1]; target_ulong pteh = args[2]; target_ulong ptel = args[3];...
{ "code": [ " if ((ptel & (HPTE64_R_W | HPTE64_R_I | HPTE64_R_M)) != HPTE64_R_I) {" ], "line_no": [ 63 ] }
static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { CPUPPCState *env = &cpu->env; target_ulong flags = args[0]; target_ulong pte_index = args[1]; target_ulong pteh = args[2]; target_ulong ptel = args[3]; ...
[ "static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPRMachineState *spapr,\ntarget_ulong opcode, target_ulong *args)\n{", "CPUPPCState *env = &cpu->env;", "target_ulong flags = args[0];", "target_ulong pte_index = args[1];", "target_ulong pteh = args[2];", "target_ulong ptel = args[3];", "unsigned VAR_0, VA...
[ 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, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [...
17,495
static void coroutine_fn sd_finish_aiocb(SheepdogAIOCB *acb) { qemu_coroutine_enter(acb->coroutine, NULL); qemu_aio_unref(acb); }
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static void coroutine_fn sd_finish_aiocb(SheepdogAIOCB *acb) { qemu_coroutine_enter(acb->coroutine, NULL); qemu_aio_unref(acb); }
{ "code": [ " qemu_coroutine_enter(acb->coroutine, NULL);", " qemu_coroutine_enter(acb->coroutine, NULL);" ], "line_no": [ 5, 5 ] }
static void VAR_0 sd_finish_aiocb(SheepdogAIOCB *acb) { qemu_coroutine_enter(acb->coroutine, NULL); qemu_aio_unref(acb); }
[ "static void VAR_0 sd_finish_aiocb(SheepdogAIOCB *acb)\n{", "qemu_coroutine_enter(acb->coroutine, NULL);", "qemu_aio_unref(acb);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
17,496
static void vp9_superframe_close(AVBSFContext *ctx) { VP9BSFContext *s = ctx->priv_data; int n; // free cached data for (n = 0; n < s->n_cache; n++) av_packet_free(&s->cache[n]); }
true
FFmpeg
5c22c90c1d5050f1206e46494b193320ac2397cb
static void vp9_superframe_close(AVBSFContext *ctx) { VP9BSFContext *s = ctx->priv_data; int n; for (n = 0; n < s->n_cache; n++) av_packet_free(&s->cache[n]); }
{ "code": [ " av_packet_free(&s->cache[n]);", " for (n = 0; n < s->n_cache; n++)" ], "line_no": [ 15, 13 ] }
static void FUNC_0(AVBSFContext *VAR_0) { VP9BSFContext *s = VAR_0->priv_data; int VAR_1; for (VAR_1 = 0; VAR_1 < s->n_cache; VAR_1++) av_packet_free(&s->cache[VAR_1]); }
[ "static void FUNC_0(AVBSFContext *VAR_0)\n{", "VP9BSFContext *s = VAR_0->priv_data;", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < s->n_cache; VAR_1++)", "av_packet_free(&s->cache[VAR_1]);", "}" ]
[ 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ] ]
17,497
static int decode_i_frame(FourXContext *f, AVFrame *frame, const uint8_t *buf, int length) { int x, y, ret; const int width = f->avctx->width; const int height = f->avctx->height; const unsigned int bitstream_size = AV_RL32(buf); int token_count av_unused; unsigned int prestream_size; ...
true
FFmpeg
59d7bb99b6a963b7e11c637228b2203adf535eee
static int decode_i_frame(FourXContext *f, AVFrame *frame, const uint8_t *buf, int length) { int x, y, ret; const int width = f->avctx->width; const int height = f->avctx->height; const unsigned int bitstream_size = AV_RL32(buf); int token_count av_unused; unsigned int prestream_size; ...
{ "code": [ " || bitstream_size > (1 << 26)" ], "line_no": [ 41 ] }
static int FUNC_0(FourXContext *VAR_0, AVFrame *VAR_1, const uint8_t *VAR_2, int VAR_3) { int VAR_4, VAR_5, VAR_6; const int VAR_7 = VAR_0->avctx->VAR_7; const int VAR_8 = VAR_0->avctx->VAR_8; const unsigned int VAR_9 = AV_RL32(VAR_2); int VAR_10 av_unused; unsigned int VAR_11; cons...
[ "static int FUNC_0(FourXContext *VAR_0, AVFrame *VAR_1, const uint8_t *VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5, VAR_6;", "const int VAR_7 = VAR_0->avctx->VAR_7;", "const int VAR_8 = VAR_0->avctx->VAR_8;", "const unsigned int VAR_9 = AV_RL32(VAR_2);", "int VAR_10 av_unused;", "unsigned int VAR_11;", ...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41, 43 ], [ 45, 47 ], [ 49 ], [...
17,498
void virtio_scsi_exit(VirtIODevice *vdev) { virtio_cleanup(vdev); }
true
qemu
eb2fa76418402c8b26e1ab4cb53498ee0f4e52ef
void virtio_scsi_exit(VirtIODevice *vdev) { virtio_cleanup(vdev); }
{ "code": [], "line_no": [] }
void FUNC_0(VirtIODevice *VAR_0) { virtio_cleanup(VAR_0); }
[ "void FUNC_0(VirtIODevice *VAR_0)\n{", "virtio_cleanup(VAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ] ]
17,499
static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { AACEncContext *s = avctx->priv_data; float **samples = s->planar_samples, *samples2, *la, *overlap; ChannelElement *cpe; SingleChannelElement *sce; int ...
true
FFmpeg
01ecb7172b684f1c4b3e748f95c5a9a494ca36ec
static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { AACEncContext *s = avctx->priv_data; float **samples = s->planar_samples, *samples2, *la, *overlap; ChannelElement *cpe; SingleChannelElement *sce; int ...
{ "code": [ " } else {", " int target_bits, too_many_bits, too_few_bits;", " target_bits += s->psy.bitres.alloc;", " for (w = 0; w < 128; w++)", " cpe->ms_mask[w] = cpe->is_mask[w] ? 0 : cpe->ms_mask[w];", " target_bits ...
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { AACEncContext *s = VAR_0->priv_data; float **VAR_4 = s->planar_samples, *VAR_5, *VAR_6, *VAR_7; ChannelElement *cpe; SingleChannelElement *sce; int VAR_8, VAR_9, VAR_10, V...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "AACEncContext *s = VAR_0->priv_data;", "float **VAR_4 = s->planar_samples, *VAR_5, *VAR_6, *VAR_7;", "ChannelElement *cpe;", "SingleChannelElement *sce;", "int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 27 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 51, 53 ], [ 57 ], [...
17,500
PCIDevice *pci_nic_init_nofail(NICInfo *nd, PCIBus *rootbus, const char *default_model, const char *default_devaddr) { Error *err = NULL; PCIDevice *res; if (qemu_show_nic_models(nd->model, pci_nic_models)) exit(0); res = ...
true
qemu
4d0ecde44ae6dab3aa9d10c23e61d9d43789731a
PCIDevice *pci_nic_init_nofail(NICInfo *nd, PCIBus *rootbus, const char *default_model, const char *default_devaddr) { Error *err = NULL; PCIDevice *res; if (qemu_show_nic_models(nd->model, pci_nic_models)) exit(0); res = ...
{ "code": [ " error_report_err(err);" ], "line_no": [ 25 ] }
PCIDevice *FUNC_0(NICInfo *nd, PCIBus *rootbus, const char *default_model, const char *default_devaddr) { Error *err = NULL; PCIDevice *res; if (qemu_show_nic_models(nd->model, pci_nic_models)) exit(0); res = pci_nic_init(...
[ "PCIDevice *FUNC_0(NICInfo *nd, PCIBus *rootbus,\nconst char *default_model,\nconst char *default_devaddr)\n{", "Error *err = NULL;", "PCIDevice *res;", "if (qemu_show_nic_models(nd->model, pci_nic_models))\nexit(0);", "res = pci_nic_init(nd, rootbus, default_model, default_devaddr, &err);", "if (!res) {"...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
17,501
static int decode_dsw1(uint8_t *frame, int width, int height, const uint8_t *src, const uint8_t *src_end) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; int mask = 0x10000, bitbuf = 0; int v, offset, count, segments; segment...
true
FFmpeg
d38345878cbb89e4d8d33bd79f47836d4e9cd637
static int decode_dsw1(uint8_t *frame, int width, int height, const uint8_t *src, const uint8_t *src_end) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; int mask = 0x10000, bitbuf = 0; int v, offset, count, segments; segment...
{ "code": [ " if (frame - offset < frame_start || frame_end - frame < count)", " if (frame - offset < frame_start || frame_end - frame < count)" ], "line_no": [ 45, 45 ] }
static int FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, const uint8_t *VAR_4) { const uint8_t *VAR_5 = VAR_0; const uint8_t *VAR_6 = VAR_0 + VAR_1 * VAR_2; int VAR_7 = 0x10000, VAR_8 = 0; int VAR_9, VAR_10, VAR_11, VAR_12; VAR_12 = bytestream_g...
[ "static int FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,\nconst uint8_t *VAR_3, const uint8_t *VAR_4)\n{", "const uint8_t *VAR_5 = VAR_0;", "const uint8_t *VAR_6 = VAR_0 + VAR_1 * VAR_2;", "int VAR_7 = 0x10000, VAR_8 = 0;", "int VAR_9, VAR_10, VAR_11, VAR_12;", "VAR_12 = bytestream_get_le16(&VAR_3);", ...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ...
17,502
static void draw_slice(HYuvContext *s, AVFrame *frame, int y) { int h, cy, i; int offset[AV_NUM_DATA_POINTERS]; if (s->avctx->draw_horiz_band == NULL) return; h = y - s->last_slice_end; y -= h; if (s->bitstream_bpp == 12) cy = y >> 1; else cy = y; ...
false
FFmpeg
f929ab0569ff31ed5a59b0b0adb7ce09df3fca39
static void draw_slice(HYuvContext *s, AVFrame *frame, int y) { int h, cy, i; int offset[AV_NUM_DATA_POINTERS]; if (s->avctx->draw_horiz_band == NULL) return; h = y - s->last_slice_end; y -= h; if (s->bitstream_bpp == 12) cy = y >> 1; else cy = y; ...
{ "code": [], "line_no": [] }
static void FUNC_0(HYuvContext *VAR_0, AVFrame *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5; int VAR_6[AV_NUM_DATA_POINTERS]; if (VAR_0->avctx->draw_horiz_band == NULL) return; VAR_3 = VAR_2 - VAR_0->last_slice_end; VAR_2 -= VAR_3; if (VAR_0->bitstream_bpp == 12) ...
[ "static void FUNC_0(HYuvContext *VAR_0, AVFrame *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5;", "int VAR_6[AV_NUM_DATA_POINTERS];", "if (VAR_0->avctx->draw_horiz_band == NULL)\nreturn;", "VAR_3 = VAR_2 - VAR_0->last_slice_end;", "VAR_2 -= VAR_3;", "if (VAR_0->bitstream_bpp == 12)\nVAR_4 = VAR_2 >> ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [ 53 ] ]
17,503
static av_cold int asink_init(AVFilterContext *ctx, const char *args, void *opaque) { BufferSinkContext *buf = ctx->priv; AVABufferSinkParams *params; if (!opaque) { av_log(ctx, AV_LOG_ERROR, "No opaque field provided, an AVABufferSinkParams struct is required\n"); re...
false
FFmpeg
386aee6864c5cfc438785d2421b2f056450da014
static av_cold int asink_init(AVFilterContext *ctx, const char *args, void *opaque) { BufferSinkContext *buf = ctx->priv; AVABufferSinkParams *params; if (!opaque) { av_log(ctx, AV_LOG_ERROR, "No opaque field provided, an AVABufferSinkParams struct is required\n"); re...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVFilterContext *ctx, const char *args, void *opaque) { BufferSinkContext *buf = ctx->priv; AVABufferSinkParams *params; if (!opaque) { av_log(ctx, AV_LOG_ERROR, "No opaque field provided, an AVABufferSinkParams struct is required\n"); return...
[ "static av_cold int FUNC_0(AVFilterContext *ctx, const char *args, void *opaque)\n{", "BufferSinkContext *buf = ctx->priv;", "AVABufferSinkParams *params;", "if (!opaque) {", "av_log(ctx, AV_LOG_ERROR,\n\"No opaque field provided, an AVABufferSinkParams struct is required\\n\");", "return AVERROR(EINVAL);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
17,504
void ff_vc1_mc_4mv_luma(VC1Context *v, int n, int dir, int avg) { MpegEncContext *s = &v->s; uint8_t *srcY; int dxy, mx, my, src_x, src_y; int off; int fieldmv = (v->fcm == ILACE_FRAME) ? v->blk_mv_type[s->block_index[n]] : 0; int v_edge_pos = s->v_edge_pos >> v->field_mode; uint8_t ...
false
FFmpeg
2c98dc75f2802a2fe91922d4a11b698b66420e5b
void ff_vc1_mc_4mv_luma(VC1Context *v, int n, int dir, int avg) { MpegEncContext *s = &v->s; uint8_t *srcY; int dxy, mx, my, src_x, src_y; int off; int fieldmv = (v->fcm == ILACE_FRAME) ? v->blk_mv_type[s->block_index[n]] : 0; int v_edge_pos = s->v_edge_pos >> v->field_mode; uint8_t ...
{ "code": [], "line_no": [] }
void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3) { MpegEncContext *s = &VAR_0->s; uint8_t *srcY; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9; int VAR_10 = (VAR_0->fcm == ILACE_FRAME) ? VAR_0->blk_mv_type[s->block_index[VAR_1]] : 0; int VAR_11 = s->VAR_11 >> VAR_0->fiel...
[ "void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "MpegEncContext *s = &VAR_0->s;", "uint8_t *srcY;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9;", "int VAR_10 = (VAR_0->fcm == ILACE_FRAME) ? VAR_0->blk_mv_type[s->block_index[VAR_1]] : 0;", "int VAR_11 = s->VAR_11 >> 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, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25, 27, 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
17,506
static int open_f(BlockBackend *blk, int argc, char **argv) { int flags = BDRV_O_UNMAP; int readonly = 0; bool writethrough = true; int c; QemuOpts *qopts; QDict *opts; bool force_share = false; while ((c = getopt(argc, argv, "snro:kt:d:U")) != -1) { switch (c) { ...
true
qemu
64ebf556486af39024cc9e7a8c88303a7b37c465
static int open_f(BlockBackend *blk, int argc, char **argv) { int flags = BDRV_O_UNMAP; int readonly = 0; bool writethrough = true; int c; QemuOpts *qopts; QDict *opts; bool force_share = false; while ((c = getopt(argc, argv, "snro:kt:d:U")) != -1) { switch (c) { ...
{ "code": [ " return openfile(argv[optind], flags, writethrough, force_share, opts);", " return openfile(NULL, flags, writethrough, force_share, opts);", " return qemuio_command_usage(&open_cmd);" ], "line_no": [ 153, 157, 163 ] }
static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2) { int VAR_3 = BDRV_O_UNMAP; int VAR_4 = 0; bool writethrough = true; int VAR_5; QemuOpts *qopts; QDict *opts; bool force_share = false; while ((VAR_5 = getopt(VAR_1, VAR_2, "snro:kt:d:U")) != -1) { switch...
[ "static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2)\n{", "int VAR_3 = BDRV_O_UNMAP;", "int VAR_4 = 0;", "bool writethrough = true;", "int VAR_5;", "QemuOpts *qopts;", "QDict *opts;", "bool force_share = false;", "while ((VAR_5 = getopt(VAR_1, VAR_2, \"snro:kt:d:U\")) != -1) {", "switc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ...
17,507
int vp78_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr, int is_vp7) { VP8Context *s = avctx->priv_data; VP8ThreadData *td = &s->thread_data[jobnr]; VP8ThreadData *next_td = NULL, *prev_td = NULL; VP8Frame *curframe = s->curframe; ...
true
FFmpeg
fed92adbb3fc6cbf735e3df9a2f7d0a2917fcfbd
int vp78_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr, int is_vp7) { VP8Context *s = avctx->priv_data; VP8ThreadData *td = &s->thread_data[jobnr]; VP8ThreadData *next_td = NULL, *prev_td = NULL; VP8Frame *curframe = s->curframe; ...
{ "code": [ " s->mv_min.y -= 64;", " s->mv_max.y -= 64;", " s->mv_min.y -= 64;", " s->mv_max.y -= 64;" ], "line_no": [ 45, 47, 45, 47 ] }
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3, int VAR_4) { VP8Context *s = VAR_0->priv_data; VP8ThreadData *td = &s->thread_data[VAR_2]; VP8ThreadData *next_td = NULL, *prev_td = NULL; VP8Frame *curframe = s->curframe; int VAR_5, VAR_6 = s-...
[ "int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{", "VP8Context *s = VAR_0->priv_data;", "VP8ThreadData *td = &s->thread_data[VAR_2];", "VP8ThreadData *next_td = NULL, *prev_td = NULL;", "VP8Frame *curframe = s->curframe;", "int VAR_5, VAR_6 = s->VAR_6;", "int VAR_7;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 45 ], [ 47 ...
17,508
static void blkverify_aio_bh(void *opaque) { BlkverifyAIOCB *acb = opaque; if (acb->buf) { qemu_iovec_destroy(&acb->raw_qiov); qemu_vfree(acb->buf); } acb->common.cb(acb->common.opaque, acb->ret); qemu_aio_unref(acb); }
true
qemu
44b6789299a8acca3f25331bc411055cafc7bb06
static void blkverify_aio_bh(void *opaque) { BlkverifyAIOCB *acb = opaque; if (acb->buf) { qemu_iovec_destroy(&acb->raw_qiov); qemu_vfree(acb->buf); } acb->common.cb(acb->common.opaque, acb->ret); qemu_aio_unref(acb); }
{ "code": [ "static void blkverify_aio_bh(void *opaque)", " BlkverifyAIOCB *acb = opaque;", " if (acb->buf) {", " qemu_iovec_destroy(&acb->raw_qiov);", " qemu_vfree(acb->buf);", " acb->common.cb(acb->common.opaque, acb->ret);", " qemu_aio_unref(acb);", " Bl...
static void FUNC_0(void *VAR_0) { BlkverifyAIOCB *acb = VAR_0; if (acb->buf) { qemu_iovec_destroy(&acb->raw_qiov); qemu_vfree(acb->buf); } acb->common.cb(acb->common.VAR_0, acb->ret); qemu_aio_unref(acb); }
[ "static void FUNC_0(void *VAR_0)\n{", "BlkverifyAIOCB *acb = VAR_0;", "if (acb->buf) {", "qemu_iovec_destroy(&acb->raw_qiov);", "qemu_vfree(acb->buf);", "}", "acb->common.cb(acb->common.VAR_0, acb->ret);", "qemu_aio_unref(acb);", "}" ]
[ 1, 1, 1, 1, 1, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
17,509
static void vhost_dev_sync_region(struct vhost_dev *dev, uint64_t mfirst, uint64_t mlast, uint64_t rfirst, uint64_t rlast) { uint64_t start = MAX(mfirst, rfirst); uint64_t end = MIN(mlast, rlast); vhost_log_chunk_t *from = dev->log + ...
true
qemu
7b67b18adf921c77aa8443f3b4cddab87908ee1e
static void vhost_dev_sync_region(struct vhost_dev *dev, uint64_t mfirst, uint64_t mlast, uint64_t rfirst, uint64_t rlast) { uint64_t start = MAX(mfirst, rfirst); uint64_t end = MIN(mlast, rlast); vhost_log_chunk_t *from = dev->log + ...
{ "code": [ " cpu_physical_memory_set_dirty(addr + bit * VHOST_LOG_PAGE);" ], "line_no": [ 65 ] }
static void FUNC_0(struct vhost_dev *VAR_0, uint64_t VAR_1, uint64_t VAR_2, uint64_t VAR_3, uint64_t VAR_4) { uint64_t start = MAX(VAR_1, VAR_3); uint64_t end = MIN(VAR_2, VAR_4); vhost_log_chunk_t *from = VAR_0->log + start / VHOST_L...
[ "static void FUNC_0(struct vhost_dev *VAR_0,\nuint64_t VAR_1, uint64_t VAR_2,\nuint64_t VAR_3, uint64_t VAR_4)\n{", "uint64_t start = MAX(VAR_1, VAR_3);", "uint64_t end = MIN(VAR_2, VAR_4);", "vhost_log_chunk_t *from = VAR_0->log + start / VHOST_LOG_CHUNK;", "vhost_log_chunk_t *to = VAR_0->log + end / VHOST...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 57 ...
17,510
void hmp_chardev_add(Monitor *mon, const QDict *qdict) { const char *args = qdict_get_str(qdict, "args"); Error *err = NULL; QemuOpts *opts; opts = qemu_opts_parse_noisily(qemu_find_opts("chardev"), args, true); if (opts == NULL) { error_setg(&err, "Parsing chardev args failed"); ...
true
qemu
0a73336d96397c80881219d080518fac6f1ecacb
void hmp_chardev_add(Monitor *mon, const QDict *qdict) { const char *args = qdict_get_str(qdict, "args"); Error *err = NULL; QemuOpts *opts; opts = qemu_opts_parse_noisily(qemu_find_opts("chardev"), args, true); if (opts == NULL) { error_setg(&err, "Parsing chardev args failed"); ...
{ "code": [ " QemuOpts *opts;", " } else {", " } else {" ], "line_no": [ 9, 19, 19 ] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2"); Error *err = NULL; QemuOpts *opts; opts = qemu_opts_parse_noisily(qemu_find_opts("chardev"), VAR_2, true); if (opts == NULL) { error_setg(&err, "Parsing chardev VAR_2 failed"); ...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");", "Error *err = NULL;", "QemuOpts *opts;", "opts = qemu_opts_parse_noisily(qemu_find_opts(\"chardev\"), VAR_2, true);", "if (opts == NULL) {", "error_setg(&err, \"Parsing chardev VAR_2 failed\");"...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 24 ], [ 26 ], [ 28 ] ]
17,511
void memory_mapping_filter(MemoryMappingList *list, int64_t begin, int64_t length) { MemoryMapping *cur, *next; QTAILQ_FOREACH_SAFE(cur, &list->head, next, next) { if (cur->phys_addr >= begin + length || cur->phys_addr + cur->length <= begin) { ...
true
qemu
22c3aea8dbaac8616db71b6adf18dee801a24fde
void memory_mapping_filter(MemoryMappingList *list, int64_t begin, int64_t length) { MemoryMapping *cur, *next; QTAILQ_FOREACH_SAFE(cur, &list->head, next, next) { if (cur->phys_addr >= begin + length || cur->phys_addr + cur->length <= begin) { ...
{ "code": [], "line_no": [] }
void FUNC_0(MemoryMappingList *VAR_0, int64_t VAR_1, int64_t VAR_2) { MemoryMapping *cur, *next; QTAILQ_FOREACH_SAFE(cur, &VAR_0->head, next, next) { if (cur->phys_addr >= VAR_1 + VAR_2 || cur->phys_addr + cur->VAR_2 <= VAR_1) { QTAILQ_REMOVE(&...
[ "void FUNC_0(MemoryMappingList *VAR_0, int64_t VAR_1,\nint64_t VAR_2)\n{", "MemoryMapping *cur, *next;", "QTAILQ_FOREACH_SAFE(cur, &VAR_0->head, next, next) {", "if (cur->phys_addr >= VAR_1 + VAR_2 ||\ncur->phys_addr + cur->VAR_2 <= VAR_1) {", "QTAILQ_REMOVE(&VAR_0->head, cur, next);", "VAR_0->num--;", ...
[ 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 ], [ 20 ], [ 22 ], [ 24 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 44 ], [ 46 ], [ 48 ], [ 50...
17,512
static int Rgb16ToPlanarRgb16Wrapper(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[]) { uint16_t *dst2013[] = { (uint16_t *)dst[2], (uint16_t *)dst[0], (uint16_t *)dst[1]...
true
FFmpeg
b5deacfb1fece3406ef0bb790c1614a7096513b4
static int Rgb16ToPlanarRgb16Wrapper(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[]) { uint16_t *dst2013[] = { (uint16_t *)dst[2], (uint16_t *)dst[0], (uint16_t *)dst[1]...
{ "code": [ " packed16togbra16(src[0] + srcSliceY * srcStride[0], srcStride[0],", " packed16togbra16(src[0] + srcSliceY * srcStride[0], srcStride[0]," ], "line_no": [ 63, 63 ] }
static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_1[], int VAR_2[], int VAR_3, int VAR_4, uint8_t *VAR_5[], int VAR_6[]) { uint16_t *dst2013[] = { (uint16_t *)VAR_5[2], (uint16_t *)VAR_5[0], (uint16_t *)VAR_5[1], (uint16_t *)VAR_5[3...
[ "static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_1[],\nint VAR_2[], int VAR_3, int VAR_4,\nuint8_t *VAR_5[], int VAR_6[])\n{", "uint16_t *dst2013[] = { (uint16_t *)VAR_5[2], (uint16_t *)VAR_5[0], (uint16_t *)VAR_5[1], (uint16_t *)VAR_5[3] };", "uint16_t *dst1023[] = { (uint16_t *)VAR_5[1], (uint16_t *)V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 33, 35, 37 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51 ...
17,514
int ff_load_image(uint8_t *data[4], int linesize[4], int *w, int *h, enum AVPixelFormat *pix_fmt, const char *filename, void *log_ctx) { AVInputFormat *iformat = NULL; AVFormatContext *format_ctx = NULL; AVCodec *codec; AVCodecContext *codec_ctx; AVFrame *...
false
FFmpeg
657998b5ee46719ff873ce34ae953385377b0280
int ff_load_image(uint8_t *data[4], int linesize[4], int *w, int *h, enum AVPixelFormat *pix_fmt, const char *filename, void *log_ctx) { AVInputFormat *iformat = NULL; AVFormatContext *format_ctx = NULL; AVCodec *codec; AVCodecContext *codec_ctx; AVFrame *...
{ "code": [], "line_no": [] }
int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int *VAR_2, int *VAR_3, enum AVPixelFormat *VAR_4, const char *VAR_5, void *VAR_6) { AVInputFormat *iformat = NULL; AVFormatContext *format_ctx = NULL; AVCodec *codec; AVCodecContext *codec_ctx; AVFrame *frame; ...
[ "int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4],\nint *VAR_2, int *VAR_3, enum AVPixelFormat *VAR_4,\nconst char *VAR_5, void *VAR_6)\n{", "AVInputFormat *iformat = NULL;", "AVFormatContext *format_ctx = NULL;", "AVCodec *codec;", "AVCodecContext *codec_ctx;", "AVFrame *frame;", "int VAR_7, VAR_8 = 0;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
17,515
static void sha512_transform(uint64_t *state, const uint8_t buffer[128]) { uint64_t a, b, c, d, e, f, g, h; uint64_t block[80]; uint64_t T1; int i; a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; f = state[5]; g = state[6]; h = state[7...
false
FFmpeg
bbcaf25d4d2130fa9c34c314628f9fd2f706b61b
static void sha512_transform(uint64_t *state, const uint8_t buffer[128]) { uint64_t a, b, c, d, e, f, g, h; uint64_t block[80]; uint64_t T1; int i; a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; f = state[5]; g = state[6]; h = state[7...
{ "code": [], "line_no": [] }
static void FUNC_0(uint64_t *VAR_0, const uint8_t VAR_1[128]) { uint64_t a, b, c, d, e, f, g, h; uint64_t block[80]; uint64_t T1; int VAR_2; a = VAR_0[0]; b = VAR_0[1]; c = VAR_0[2]; d = VAR_0[3]; e = VAR_0[4]; f = VAR_0[5]; g = VAR_0[6]; h = VAR_0[7]; #if...
[ "static void FUNC_0(uint64_t *VAR_0, const uint8_t VAR_1[128])\n{", "uint64_t a, b, c, d, e, f, g, h;", "uint64_t block[80];", "uint64_t T1;", "int VAR_2;", "a = VAR_0[0];", "b = VAR_0[1];", "c = VAR_0[2];", "d = VAR_0[3];", "e = VAR_0[4];", "f = VAR_0[5];", "g = VAR_0[6];", "h = VAR_0[7];",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [...
17,516
static attribute_align_arg void *frame_worker_thread(void *arg) { PerThreadContext *p = arg; FrameThreadContext *fctx = p->parent; AVCodecContext *avctx = p->avctx; const AVCodec *codec = avctx->codec; pthread_mutex_lock(&p->mutex); while (1) { while (p->state == STATE_INPU...
false
FFmpeg
94b3a666fa87f96c4ed2b469bbc28e1ac4e67785
static attribute_align_arg void *frame_worker_thread(void *arg) { PerThreadContext *p = arg; FrameThreadContext *fctx = p->parent; AVCodecContext *avctx = p->avctx; const AVCodec *codec = avctx->codec; pthread_mutex_lock(&p->mutex); while (1) { while (p->state == STATE_INPU...
{ "code": [], "line_no": [] }
static attribute_align_arg void *FUNC_0(void *arg) { PerThreadContext *p = arg; FrameThreadContext *fctx = p->parent; AVCodecContext *avctx = p->avctx; const AVCodec *VAR_0 = avctx->VAR_0; pthread_mutex_lock(&p->mutex); while (1) { while (p->state == STATE_INPUT_READY && !f...
[ "static attribute_align_arg void *FUNC_0(void *arg)\n{", "PerThreadContext *p = arg;", "FrameThreadContext *fctx = p->parent;", "AVCodecContext *avctx = p->avctx;", "const AVCodec *VAR_0 = avctx->VAR_0;", "pthread_mutex_lock(&p->mutex);", "while (1) {", "while (p->state == STATE_INPUT_READY && !fctx->...
[ 0, 0, 0, 0, 0, 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 ], [ 29, 31, 33, 35, 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 55 ], [ 59 ], [ 63 ], [ 65,...
17,517
static int vnc_client_io_error(VncState *vs, int ret, int last_errno) { if (ret == 0 || ret == -1) { if (ret == -1) { switch (last_errno) { case EINTR: case EAGAIN: #ifdef _WIN32 case WSAEWOULDBLOCK: #endif return 0; ...
true
qemu
2f9606b3736c3be4dbd606c46525c7b770ced119
static int vnc_client_io_error(VncState *vs, int ret, int last_errno) { if (ret == 0 || ret == -1) { if (ret == -1) { switch (last_errno) { case EINTR: case EAGAIN: #ifdef _WIN32 case WSAEWOULDBLOCK: #endif return 0; ...
{ "code": [ "static int vnc_client_io_error(VncState *vs, int ret, int last_errno)", "#endif", "#endif" ], "line_no": [ 1, 19, 19 ] }
static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2) { if (VAR_1 == 0 || VAR_1 == -1) { if (VAR_1 == -1) { switch (VAR_2) { case EINTR: case EAGAIN: #ifdef _WIN32 case WSAEWOULDBLOCK: #endif return 0; ...
[ "static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2)\n{", "if (VAR_1 == 0 || VAR_1 == -1) {", "if (VAR_1 == -1) {", "switch (VAR_2) {", "case EINTR:\ncase EAGAIN:\n#ifdef _WIN32\ncase WSAEWOULDBLOCK:\n#endif\nreturn 0;", "default:\nbreak;", "}", "}", "VNC_DEBUG(\"Closing down client sock %d %d\...
[ 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13, 15, 17, 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [...
17,519
void pvpanic_init(ISABus *bus) { isa_create_simple(bus, TYPE_ISA_PVPANIC_DEVICE); }
true
qemu
7839ff593be03a7de3c6760e0b50c565ea751d36
void pvpanic_init(ISABus *bus) { isa_create_simple(bus, TYPE_ISA_PVPANIC_DEVICE); }
{ "code": [ "void pvpanic_init(ISABus *bus)", " isa_create_simple(bus, TYPE_ISA_PVPANIC_DEVICE);" ], "line_no": [ 1, 5 ] }
void FUNC_0(ISABus *VAR_0) { isa_create_simple(VAR_0, TYPE_ISA_PVPANIC_DEVICE); }
[ "void FUNC_0(ISABus *VAR_0)\n{", "isa_create_simple(VAR_0, TYPE_ISA_PVPANIC_DEVICE);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
17,520
static void xa_decode(short *out, const unsigned char *in, ADPCMChannelStatus *left, ADPCMChannelStatus *right, int inc) { int i, j; int shift,filter,f0,f1; int s_1,s_2; int d,s,t; for(i=0;i<4;i++) { shift = 12 - (in[4+i*2] & 15); filter = in[4+i*2] >> 4; f...
true
FFmpeg
86020073dbb9a3a9d1fbb76345b2ca29ba1f13d2
static void xa_decode(short *out, const unsigned char *in, ADPCMChannelStatus *left, ADPCMChannelStatus *right, int inc) { int i, j; int shift,filter,f0,f1; int s_1,s_2; int d,s,t; for(i=0;i<4;i++) { shift = 12 - (in[4+i*2] & 15); filter = in[4+i*2] >> 4; f...
{ "code": [ "static void xa_decode(short *out, const unsigned char *in,", " ADPCMChannelStatus *left, ADPCMChannelStatus *right, int inc)" ], "line_no": [ 1, 3 ] }
static void FUNC_0(short *VAR_0, const unsigned char *VAR_1, ADPCMChannelStatus *VAR_2, ADPCMChannelStatus *VAR_3, int VAR_4) { int VAR_5, VAR_6; int VAR_7,VAR_8,VAR_9,VAR_10; int VAR_11,VAR_12; int VAR_13,VAR_14,VAR_15; for(VAR_5=0;VAR_5<4;VAR_5++) { VAR_7 = 12 - (VAR_1[4+V...
[ "static void FUNC_0(short *VAR_0, const unsigned char *VAR_1,\nADPCMChannelStatus *VAR_2, ADPCMChannelStatus *VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6;", "int VAR_7,VAR_8,VAR_9,VAR_10;", "int VAR_11,VAR_12;", "int VAR_13,VAR_14,VAR_15;", "for(VAR_5=0;VAR_5<4;VAR_5++) {", "VAR_7 = 12 - (VAR_1[4+VAR_5*2]...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
17,521
int qemu_fdt_setprop_sized_cells_from_array(void *fdt, const char *node_path, const char *property, int numvalues, uint64_t *values) { ...
true
qemu
2bf9febc95e5bcef8edb10ebc967325917b9c958
int qemu_fdt_setprop_sized_cells_from_array(void *fdt, const char *node_path, const char *property, int numvalues, uint64_t *values) { ...
{ "code": [ " return -1;", " return -1;", " return qemu_fdt_setprop(fdt, node_path, property, propcells,", " cellnum * sizeof(uint32_t));" ], "line_no": [ 35, 35, 59, 61 ] }
int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2, int VAR_3, uint64_t *VAR_4) { uint32_t *propcells; uint64_t value; ...
[ "int FUNC_0(void *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nint VAR_3,\nuint64_t *VAR_4)\n{", "uint32_t *propcells;", "uint64_t value;", "int VAR_5, VAR_6, VAR_7;", "uint32_t hival;", "propcells = g_new0(uint32_t, VAR_3 * 2);", "VAR_5 = 0;", "for (VAR_6 = 0; VAR_6 < VAR_3; VAR_6++) {", "VAR_7 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
17,522
void spapr_core_pre_plug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { MachineState *machine = MACHINE(OBJECT(hotplug_dev)); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(OBJECT(hotplug_dev)); sPAPRMachineState *spapr = SPAPR_MACHINE(OBJECT(hotplug_dev)); ...
true
qemu
c8721d35994fd3731e592f81ba2f9c08e7dc8c31
void spapr_core_pre_plug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { MachineState *machine = MACHINE(OBJECT(hotplug_dev)); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(OBJECT(hotplug_dev)); sPAPRMachineState *spapr = SPAPR_MACHINE(OBJECT(hotplug_dev)); ...
{ "code": [ " if (strcmp(base_core_type, type)) {", " error_setg(&local_err, \"CPU core type should be %s\", base_core_type);", " if (!smc->dr_cpu_enabled && dev->hotplugged) {", " error_setg(&local_err, \"CPU hotplug not supported for this machine\");" ], "line_no": [ 27, ...
void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1, Error **VAR_2) { MachineState *machine = MACHINE(OBJECT(VAR_0)); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(OBJECT(VAR_0)); sPAPRMachineState *spapr = SPAPR_MACHINE(OBJECT(VAR_0)); int VAR_3 = max_cpus / smp_thre...
[ "void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1,\nError **VAR_2)\n{", "MachineState *machine = MACHINE(OBJECT(VAR_0));", "sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(OBJECT(VAR_0));", "sPAPRMachineState *spapr = SPAPR_MACHINE(OBJECT(VAR_0));", "int VAR_3 = max_cpus / smp_threads;", "int VAR_4;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
17,523
static void complete_request_vring(VirtIOBlockReq *req, unsigned char status) { stb_p(&req->in->status, status); vring_push(&req->dev->dataplane->vring, req->elem, req->qiov.size + sizeof(*req->in)); notify_guest(req->dev->dataplane); }
true
qemu
f897bf751fbd95e4015b95d202c706548586813a
static void complete_request_vring(VirtIOBlockReq *req, unsigned char status) { stb_p(&req->in->status, status); vring_push(&req->dev->dataplane->vring, req->elem, req->qiov.size + sizeof(*req->in)); notify_guest(req->dev->dataplane); }
{ "code": [ " vring_push(&req->dev->dataplane->vring, req->elem," ], "line_no": [ 9 ] }
static void FUNC_0(VirtIOBlockReq *VAR_0, unsigned char VAR_1) { stb_p(&VAR_0->in->VAR_1, VAR_1); vring_push(&VAR_0->dev->dataplane->vring, VAR_0->elem, VAR_0->qiov.size + sizeof(*VAR_0->in)); notify_guest(VAR_0->dev->dataplane); }
[ "static void FUNC_0(VirtIOBlockReq *VAR_0, unsigned char VAR_1)\n{", "stb_p(&VAR_0->in->VAR_1, VAR_1);", "vring_push(&VAR_0->dev->dataplane->vring, VAR_0->elem,\nVAR_0->qiov.size + sizeof(*VAR_0->in));", "notify_guest(VAR_0->dev->dataplane);", "}" ]
[ 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ] ]
17,524
static void aux_register_types(void) { type_register_static(&aux_bus_info); type_register_static(&aux_slave_type_info); type_register_static(&aux_to_i2c_type_info); }
true
qemu
e0dadc1e9ef1f35208e5d2af9c7740c18a0b769f
static void aux_register_types(void) { type_register_static(&aux_bus_info); type_register_static(&aux_slave_type_info); type_register_static(&aux_to_i2c_type_info); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { type_register_static(&aux_bus_info); type_register_static(&aux_slave_type_info); type_register_static(&aux_to_i2c_type_info); }
[ "static void FUNC_0(void)\n{", "type_register_static(&aux_bus_info);", "type_register_static(&aux_slave_type_info);", "type_register_static(&aux_to_i2c_type_info);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
17,526
static inline void RENAME(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, int width, int height, int lumStride, int chromStride, int srcStride) { int y; const x86_reg chromWidth= width>>1; for (...
true
FFmpeg
a37fd7f9578d2dfbe20a109aae91e5f0a4b58874
static inline void RENAME(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, int width, int height, int lumStride, int chromStride, int srcStride) { int y; const x86_reg chromWidth= width>>1; for (...
{ "code": [ " int lumStride, int chromStride, int srcStride)", " rgb24toyv12_c(src, ydst, udst, vdst, width, height-y, lumStride, chromStride, srcStride);" ], "line_no": [ 5, 481 ] }
static inline void FUNC_0(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, int width, int height, int lumStride, int chromStride, int srcStride) { int VAR_0; const x86_reg VAR_1= width>>1; for (V...
[ "static inline void FUNC_0(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\nint width, int height,\nint lumStride, int chromStride, int srcStride)\n{", "int VAR_0;", "const x86_reg VAR_1= width>>1;", "for (VAR_0=0; VAR_0<height-2; VAR_0+=2) {", "int i;", "for (i=0; i<2; i++) ...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67,...
17,527
void helper_stsw(CPUPPCState *env, target_ulong addr, uint32_t nb, uint32_t reg) { int sh; for (; nb > 3; nb -= 4) { cpu_stl_data(env, addr, env->gpr[reg]); reg = (reg + 1) % 32; addr = addr_add(env, addr, 4); } if (unlikely(nb > 0)) { for (sh...
true
qemu
e41029b378b4a65a0b89b5a8dc087aca6b5d012d
void helper_stsw(CPUPPCState *env, target_ulong addr, uint32_t nb, uint32_t reg) { int sh; for (; nb > 3; nb -= 4) { cpu_stl_data(env, addr, env->gpr[reg]); reg = (reg + 1) % 32; addr = addr_add(env, addr, 4); } if (unlikely(nb > 0)) { for (sh...
{ "code": [ " cpu_stl_data(env, addr, env->gpr[reg]);", " cpu_stb_data(env, addr, (env->gpr[reg] >> sh) & 0xFF);" ], "line_no": [ 13, 25 ] }
void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, uint32_t VAR_2, uint32_t VAR_3) { int VAR_4; for (; VAR_2 > 3; VAR_2 -= 4) { cpu_stl_data(VAR_0, VAR_1, VAR_0->gpr[VAR_3]); VAR_3 = (VAR_3 + 1) % 32; VAR_1 = addr_add(VAR_0, VAR_1, 4); } if (unlikely(...
[ "void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, uint32_t VAR_2,\nuint32_t VAR_3)\n{", "int VAR_4;", "for (; VAR_2 > 3; VAR_2 -= 4) {", "cpu_stl_data(VAR_0, VAR_1, VAR_0->gpr[VAR_3]);", "VAR_3 = (VAR_3 + 1) % 32;", "VAR_1 = addr_add(VAR_0, VAR_1, 4);", "}", "if (unlikely(VAR_2 > 0)) {", "for (VA...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
17,528
static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int height, int stride, const uint8_t *buf, int buf_size, int step) { RICEContext rc; int val; int i, j; if(buf_size<=0) return -1; init_get_bits8(&rc.gb, buf, buf_size); rc.s...
false
FFmpeg
5ba62e89dfca540db03997668a8ec4571068d9e0
static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int height, int stride, const uint8_t *buf, int buf_size, int step) { RICEContext rc; int val; int i, j; if(buf_size<=0) return -1; init_get_bits8(&rc.gb, buf, buf_size); rc.s...
{ "code": [], "line_no": [] }
static int FUNC_0(LOCOContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, const uint8_t *VAR_5, int VAR_6, int VAR_7) { RICEContext rc; int VAR_8; int VAR_9, VAR_10; if(VAR_6<=0) return -1; init_get_bits8(&rc.gb, VAR_5, VAR_6); rc.sa...
[ "static int FUNC_0(LOCOContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3,\nint VAR_4, const uint8_t *VAR_5, int VAR_6, int VAR_7)\n{", "RICEContext rc;", "int VAR_8;", "int VAR_9, VAR_10;", "if(VAR_6<=0)\nreturn -1;", "init_get_bits8(&rc.gb, VAR_5, VAR_6);", "rc.save = 0;", "rc.run = 0;", "rc....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
17,529
void * g_malloc0(size_t size) { return g_malloc(size); }
true
qemu
b7b5233ad7fdd9985bb6d05b7919f3a20723ff2c
void * g_malloc0(size_t size) { return g_malloc(size); }
{ "code": [ "void * g_malloc0(size_t size)", " return g_malloc(size);" ], "line_no": [ 1, 5 ] }
void * FUNC_0(size_t VAR_0) { return g_malloc(VAR_0); }
[ "void * FUNC_0(size_t VAR_0)\n{", "return g_malloc(VAR_0);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
17,530
static int decode_cabac_residual( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff) { const int mb_xy = h->s.mb_x + h->s.mb_y*h->s.mb_stride; static const int significant_coeff_flag_offset[2][6] = { { 105+0, 105+15, 105+29, 105+44, 105+47, 4...
false
FFmpeg
eb73bf723d7657bd5bbaaeb63dd9b77f21048a87
static int decode_cabac_residual( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff) { const int mb_xy = h->s.mb_x + h->s.mb_y*h->s.mb_stride; static const int significant_coeff_flag_offset[2][6] = { { 105+0, 105+15, 105+29, 105+44, 105+47, 4...
{ "code": [], "line_no": [] }
static int FUNC_0( H264Context *VAR_0, DCTELEM *VAR_1, int VAR_2, int VAR_3, const uint8_t *VAR_4, const uint32_t *VAR_5, int VAR_6) { const int VAR_7 = VAR_0->s.mb_x + VAR_0->s.mb_y*VAR_0->s.mb_stride; static const int VAR_8[2][6] = { { 105+0, 105+15, 105+29, 105+44, 105+47, 402 }, { 277+0, 27...
[ "static int FUNC_0( H264Context *VAR_0, DCTELEM *VAR_1, int VAR_2, int VAR_3, const uint8_t *VAR_4, const uint32_t *VAR_5, int VAR_6) {", "const int VAR_7 = VAR_0->s.mb_x + VAR_0->s.mb_y*VAR_0->s.mb_stride;", "static const int VAR_8[2][6] = {", "{ 105+0, 105+15, 105+29, 105+44, 105+47, 402 },", "{ 277+0, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ...
17,531
static void copy_bits(PutBitContext *pb, UINT8 *src, int length) { #if 1 int bytes= length>>4; int bits= length&15; int i; for(i=0; i<bytes; i++) put_bits(pb, 16, be2me_16(((uint16_t*)src)[i])); put_bits(pb, bits, be2me_16(((uint16_t*)src)[i])>>(16-bits)); #else int bytes= length>>3; ...
false
FFmpeg
7f2fe444a39bca733d390b6608801c5f002bfd31
static void copy_bits(PutBitContext *pb, UINT8 *src, int length) { #if 1 int bytes= length>>4; int bits= length&15; int i; for(i=0; i<bytes; i++) put_bits(pb, 16, be2me_16(((uint16_t*)src)[i])); put_bits(pb, bits, be2me_16(((uint16_t*)src)[i])>>(16-bits)); #else int bytes= length>>3; ...
{ "code": [], "line_no": [] }
static void FUNC_0(PutBitContext *VAR_0, UINT8 *VAR_1, int VAR_2) { #if 1 int VAR_3= VAR_2>>4; int VAR_4= VAR_2&15; int VAR_5; for(VAR_5=0; VAR_5<VAR_3; VAR_5++) put_bits(VAR_0, 16, be2me_16(((uint16_t*)VAR_1)[VAR_5])); put_bits(VAR_0, VAR_4, be2me_16(((uint16_t*)VAR_1)[VAR_5])>>(16-VAR_4))...
[ "static void FUNC_0(PutBitContext *VAR_0, UINT8 *VAR_1, int VAR_2)\n{", "#if 1\nint VAR_3= VAR_2>>4;", "int VAR_4= VAR_2&15;", "int VAR_5;", "for(VAR_5=0; VAR_5<VAR_3; VAR_5++) put_bits(VAR_0, 16, be2me_16(((uint16_t*)VAR_1)[VAR_5]));", "put_bits(VAR_0, VAR_4, be2me_16(((uint16_t*)VAR_1)[VAR_5])>>(16-VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ] ]
17,532
static void vb_decode_palette(VBDecContext *c) { int start, size, i; start = bytestream_get_byte(&c->stream); size = (bytestream_get_byte(&c->stream) - 1) & 0xFF; if(start + size > 255){ av_log(c->avctx, AV_LOG_ERROR, "Palette change runs beyond entry 256\n"); return; } ...
false
FFmpeg
57835fc1aeaf0b3bbc0816b123a931ea39de758b
static void vb_decode_palette(VBDecContext *c) { int start, size, i; start = bytestream_get_byte(&c->stream); size = (bytestream_get_byte(&c->stream) - 1) & 0xFF; if(start + size > 255){ av_log(c->avctx, AV_LOG_ERROR, "Palette change runs beyond entry 256\n"); return; } ...
{ "code": [], "line_no": [] }
static void FUNC_0(VBDecContext *VAR_0) { int VAR_1, VAR_2, VAR_3; VAR_1 = bytestream_get_byte(&VAR_0->stream); VAR_2 = (bytestream_get_byte(&VAR_0->stream) - 1) & 0xFF; if(VAR_1 + VAR_2 > 255){ av_log(VAR_0->avctx, AV_LOG_ERROR, "Palette change runs beyond entry 256\n"); return...
[ "static void FUNC_0(VBDecContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3;", "VAR_1 = bytestream_get_byte(&VAR_0->stream);", "VAR_2 = (bytestream_get_byte(&VAR_0->stream) - 1) & 0xFF;", "if(VAR_1 + VAR_2 > 255){", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"Palette change runs beyond entry 256\\n\");", "return;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
17,533
void sws_freeContext(SwsContext *c) { int i; if (!c) return; if (c->lumPixBuf) { for (i=0; i<c->vLumBufSize; i++) av_freep(&c->lumPixBuf[i]); av_freep(&c->lumPixBuf); } if (c->chrPixBuf) { for (i=0; i<c->vChrBufSize; i++) av_freep(&c->ch...
false
FFmpeg
f684f3c58a77a20f18b80f888d69c2bacb53ca9b
void sws_freeContext(SwsContext *c) { int i; if (!c) return; if (c->lumPixBuf) { for (i=0; i<c->vLumBufSize; i++) av_freep(&c->lumPixBuf[i]); av_freep(&c->lumPixBuf); } if (c->chrPixBuf) { for (i=0; i<c->vChrBufSize; i++) av_freep(&c->ch...
{ "code": [], "line_no": [] }
void FUNC_0(SwsContext *VAR_0) { int VAR_1; if (!VAR_0) return; if (VAR_0->lumPixBuf) { for (VAR_1=0; VAR_1<VAR_0->vLumBufSize; VAR_1++) av_freep(&VAR_0->lumPixBuf[VAR_1]); av_freep(&VAR_0->lumPixBuf); } if (VAR_0->chrPixBuf) { for (VAR_1=0; VAR_1<VA...
[ "void FUNC_0(SwsContext *VAR_0)\n{", "int VAR_1;", "if (!VAR_0) return;", "if (VAR_0->lumPixBuf) {", "for (VAR_1=0; VAR_1<VAR_0->vLumBufSize; VAR_1++)", "av_freep(&VAR_0->lumPixBuf[VAR_1]);", "av_freep(&VAR_0->lumPixBuf);", "}", "if (VAR_0->chrPixBuf) {", "for (VAR_1=0; VAR_1<VAR_0->vChrBufSize; V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49...
17,535
static void pollfds_poll(GArray *pollfds, int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds) { int i; for (i = 0; i < pollfds->len; i++) { GPollFD *pfd = &g_array_index(pollfds, GPollFD, i); int fd = pfd->fd; int revents = 0; if (FD_ISSET(fd,...
true
qemu
8db165b36ef893ac69af0452f20eeb78e7b26b5a
static void pollfds_poll(GArray *pollfds, int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds) { int i; for (i = 0; i < pollfds->len; i++) { GPollFD *pfd = &g_array_index(pollfds, GPollFD, i); int fd = pfd->fd; int revents = 0; if (FD_ISSET(fd,...
{ "code": [ " revents |= G_IO_IN | G_IO_HUP | G_IO_ERR;", " revents |= G_IO_OUT | G_IO_ERR;" ], "line_no": [ 23, 29 ] }
static void FUNC_0(GArray *VAR_0, int VAR_1, fd_set *VAR_2, fd_set *VAR_3, fd_set *VAR_4) { int VAR_5; for (VAR_5 = 0; VAR_5 < VAR_0->len; VAR_5++) { GPollFD *pfd = &g_array_index(VAR_0, GPollFD, VAR_5); int fd = pfd->fd; int revents = 0; if (...
[ "static void FUNC_0(GArray *VAR_0, int VAR_1, fd_set *VAR_2,\nfd_set *VAR_3, fd_set *VAR_4)\n{", "int VAR_5;", "for (VAR_5 = 0; VAR_5 < VAR_0->len; VAR_5++) {", "GPollFD *pfd = &g_array_index(VAR_0, GPollFD, VAR_5);", "int fd = pfd->fd;", "int revents = 0;", "if (FD_ISSET(fd, VAR_2)) {", "revents |= G...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
17,536
static void decode_v1_vector(CinepakEncContext *s, AVPicture *sub_pict, mb_info *mb, strip_info *info) { int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4; sub_pict->data[0][0] = sub_pict->data[0][1] = sub_pict->data[0][ sub_pict->linesize[0]] = sub_pict->d...
true
FFmpeg
7da9f4523159670d577a2808d4481e64008a8894
static void decode_v1_vector(CinepakEncContext *s, AVPicture *sub_pict, mb_info *mb, strip_info *info) { int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4; sub_pict->data[0][0] = sub_pict->data[0][1] = sub_pict->data[0][ sub_pict->linesize[0]] = sub_pict->d...
{ "code": [ " if(s->pix_fmt == AV_PIX_FMT_YUV420P) {", " int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;", " if(s->pix_fmt == AV_PIX_FMT_YUV420P) {", "static void decode_v1_vector(CinepakEncContext *s, AVPicture *sub_pict, mb_info *mb, strip_info *info)", " int entry_size = ...
static void FUNC_0(CinepakEncContext *VAR_0, AVPicture *VAR_1, mb_info *VAR_2, strip_info *VAR_3) { int VAR_4 = VAR_0->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4; VAR_1->data[0][0] = VAR_1->data[0][1] = VAR_1->data[0][ VAR_1->linesize[0]] = VAR_1->data[0][1+ VAR_1->lin...
[ "static void FUNC_0(CinepakEncContext *VAR_0, AVPicture *VAR_1, mb_info *VAR_2, strip_info *VAR_3)\n{", "int VAR_4 = VAR_0->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;", "VAR_1->data[0][0] =\nVAR_1->data[0][1] =\nVAR_1->data[0][ VAR_1->linesize[0]] =\nVAR_1->data[0][1+ VAR_1->linesize[0]] = VAR_3->v1_codebook[VA...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13, 15 ], [ 19, 21, 23, 25 ], [ 29, 31, 33, 35 ], [ 39, 41, 43, 45 ], [ 49 ], [ 51, 53, 55, 57 ], [ 61, 63, 65, 67 ], [ 69 ], [ 71...
17,537
static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type) { OutputStream *ost; AVStream *st = avformat_new_stream(oc, NULL); int idx = oc->nb_streams - 1, ret = 0; char *bsf = NULL, *next, *codec_tag = NULL; AVBitStreamFilterContext *bsfc, *bsfc...
true
FFmpeg
4e61a38aa038b7027c5ed423635168d463515d24
static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type) { OutputStream *ost; AVStream *st = avformat_new_stream(oc, NULL); int idx = oc->nb_streams - 1, ret = 0; char *bsf = NULL, *next, *codec_tag = NULL; AVBitStreamFilterContext *bsfc, *bsfc...
{ "code": [ " char *buf = NULL, *arg = NULL, *preset = NULL;", " AVIOContext *s = NULL;", " MATCH_PER_STREAM_OPT(presets, str, preset, oc, st);", " if (preset && (!(ret = get_preset_file_2(preset, ost->enc->name, &s)))) {", " do {", " buf = get_line(s);", " ...
static OutputStream *FUNC_0(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type) { OutputStream *ost; AVStream *st = avformat_new_stream(oc, NULL); int VAR_0 = oc->nb_streams - 1, VAR_1 = 0; char *VAR_2 = NULL, *VAR_3, *VAR_4 = NULL; AVBitStreamFilterContext *bsfc, *bsfc_prev = ...
[ "static OutputStream *FUNC_0(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type)\n{", "OutputStream *ost;", "AVStream *st = avformat_new_stream(oc, NULL);", "int VAR_0 = oc->nb_streams - 1, VAR_1 = 0;", "char *VAR_2 = NULL, *VAR_3, *VAR_4 = NULL;", "AVBitStreamFilterContext *bsfc, *bsfc_pr...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 51 ], [...
17,538
static av_always_inline void avcodec_thread_park_workers(ThreadContext *c, int thread_count) { pthread_cond_wait(&c->last_job_cond, &c->current_job_lock); pthread_mutex_unlock(&c->current_job_lock); }
true
FFmpeg
e3329474a366de066b25e86f35f5abf9c5a4b7b2
static av_always_inline void avcodec_thread_park_workers(ThreadContext *c, int thread_count) { pthread_cond_wait(&c->last_job_cond, &c->current_job_lock); pthread_mutex_unlock(&c->current_job_lock); }
{ "code": [ " pthread_cond_wait(&c->last_job_cond, &c->current_job_lock);" ], "line_no": [ 5 ] }
static av_always_inline void FUNC_0(ThreadContext *c, int thread_count) { pthread_cond_wait(&c->last_job_cond, &c->current_job_lock); pthread_mutex_unlock(&c->current_job_lock); }
[ "static av_always_inline void FUNC_0(ThreadContext *c, int thread_count)\n{", "pthread_cond_wait(&c->last_job_cond, &c->current_job_lock);", "pthread_mutex_unlock(&c->current_job_lock);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
17,540
static int xan_decode_frame_type1(AVCodecContext *avctx, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; XanContext *s = avctx->priv_data; uint8_t *ybuf, *src = s->scratch_buffer; int cur, last; int i, j; int ret; if ((ret = xan_decode_chroma(avctx, avpkt)) != 0) retu...
true
FFmpeg
55188278169c3a1838334d7aa47a1f7a40741690
static int xan_decode_frame_type1(AVCodecContext *avctx, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; XanContext *s = avctx->priv_data; uint8_t *ybuf, *src = s->scratch_buffer; int cur, last; int i, j; int ret; if ((ret = xan_decode_chroma(avctx, avpkt)) != 0) retu...
{ "code": [ " const uint8_t *buf = avpkt->data;", " const uint8_t *buf = avpkt->data;", " if ((ret = xan_decode_chroma(avctx, avpkt)) != 0)", "static int xan_decode_frame_type1(AVCodecContext *avctx, AVPacket *avpkt)", " const uint8_t *buf = avpkt->data;", " if ((ret = xan_decod...
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1) { const uint8_t *VAR_2 = VAR_1->data; XanContext *s = VAR_0->priv_data; uint8_t *ybuf, *src = s->scratch_buffer; int VAR_3, VAR_4; int VAR_5, VAR_6; int VAR_7; if ((VAR_7 = xan_decode_chroma(VAR_0, VAR_1)) != 0) ret...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1)\n{", "const uint8_t *VAR_2 = VAR_1->data;", "XanContext *s = VAR_0->priv_data;", "uint8_t *ybuf, *src = s->scratch_buffer;", "int VAR_3, VAR_4;", "int VAR_5, VAR_6;", "int VAR_7;", "if ((VAR_7 = xan_decode_chroma(VAR_0, VAR_1)) != 0)\nreturn V...
[ 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
17,541
void ff_compute_frame_duration(AVFormatContext *s, int *pnum, int *pden, AVStream *st, AVCodecParserContext *pc, AVPacket *pkt) { AVRational codec_framerate = s->iformat ? st->codec->framerate : av_inv_q(st->codec->time_base); int...
true
FFmpeg
a92192d2e4f7ff3078b128592f6673089b221cc4
void ff_compute_frame_duration(AVFormatContext *s, int *pnum, int *pden, AVStream *st, AVCodecParserContext *pc, AVPacket *pkt) { AVRational codec_framerate = s->iformat ? st->codec->framerate : av_inv_q(st->codec->time_base); int...
{ "code": [ " *pnum = codec_framerate.den;", " *pden = codec_framerate.num;", " *pden *= st->codec->ticks_per_frame;", " if (*pnum > INT_MAX / (1 + pc->repeat_pict))", " *pden /= 1 + pc->repeat_pict;", " *pnu...
void FUNC_0(AVFormatContext *VAR_0, int *VAR_1, int *VAR_2, AVStream *VAR_3, AVCodecParserContext *VAR_4, AVPacket *VAR_5) { AVRational codec_framerate = VAR_0->iformat ? VAR_3->codec->framerate : av_inv_q(VAR_3->codec->time_base); ...
[ "void FUNC_0(AVFormatContext *VAR_0, int *VAR_1, int *VAR_2, AVStream *VAR_3,\nAVCodecParserContext *VAR_4, AVPacket *VAR_5)\n{", "AVRational codec_framerate = VAR_0->iformat ? VAR_3->codec->framerate :\nav_inv_q(VAR_3->codec->time_base);", "int VAR_6;", "*VAR_1 = 0;", "*VAR_2 = 0;", "switch (VAR_3->codec...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...
17,542
static int vmdk_create(const char *filename, QemuOpts *opts, Error **errp) { int idx = 0; BlockBackend *new_blk = NULL; Error *local_err = NULL; char *desc = NULL; int64_t total_size = 0, filesize; char *adapter_type = NULL; char *backing_file = NULL; char *hw_version = NULL; ...
true
qemu
9877860e7bd1e26ee70ab9bb5ebc34c92bf23bf5
static int vmdk_create(const char *filename, QemuOpts *opts, Error **errp) { int idx = 0; BlockBackend *new_blk = NULL; Error *local_err = NULL; char *desc = NULL; int64_t total_size = 0, filesize; char *adapter_type = NULL; char *backing_file = NULL; char *hw_version = NULL; ...
{ "code": [ " parent_cid = vmdk_read_cid(blk_bs(blk), 0);" ], "line_no": [ 301 ] }
static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2) { int VAR_3 = 0; BlockBackend *new_blk = NULL; Error *local_err = NULL; char *VAR_4 = NULL; int64_t total_size = 0, filesize; char *VAR_5 = NULL; char *VAR_6 = NULL; char *VAR_7 = NULL; char *VAR_8 = NULL;...
[ "static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2)\n{", "int VAR_3 = 0;", "BlockBackend *new_blk = NULL;", "Error *local_err = NULL;", "char *VAR_4 = NULL;", "int64_t total_size = 0, filesize;", "char *VAR_5 = NULL;", "char *VAR_6 = NULL;", "char *VAR_7 = NULL;", "char *VAR_8 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
17,543
static inline void RENAME(rgb24to16)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*src):"memory"); ...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
static inline void RENAME(rgb24to16)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*src):"memory"); ...
{ "code": [ "static inline void RENAME(rgb24to16)(const uint8_t *src, uint8_t *dst, unsigned src_size)" ], "line_no": [ 1 ] }
static inline void FUNC_0(rgb24to16)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint8_t *VAR_0 = src; const uint8_t *VAR_1; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*src):"...
[ "static inline void FUNC_0(rgb24to16)(const uint8_t *src, uint8_t *dst, unsigned src_size)\n{", "const uint8_t *VAR_0 = src;", "const uint8_t *VAR_1;", "#ifdef HAVE_MMX\nconst uint8_t *mm_end;", "#endif\nuint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "#ifdef HAVE_MMX\n__asm __volatile(PRE...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33, 35 ], [ 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59,...
17,545
static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt) { int stream_index = pkt->stream_index; int size = pkt->size; uint8_t *buf = pkt->data; MpegMuxContext *s = ctx->priv_data; AVStream *st = ctx->streams[stream_index]; StreamInfo *stream = st->priv_data;...
true
FFmpeg
9b9e4a71c57261b6b690d9649b8e7a347df6a78b
static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt) { int stream_index = pkt->stream_index; int size = pkt->size; uint8_t *buf = pkt->data; MpegMuxContext *s = ctx->priv_data; AVStream *st = ctx->streams[stream_index]; StreamInfo *stream = st->priv_data;...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { int VAR_2 = VAR_1->VAR_2; int VAR_3 = VAR_1->VAR_3; uint8_t *buf = VAR_1->data; MpegMuxContext *s = VAR_0->priv_data; AVStream *st = VAR_0->streams[VAR_2]; StreamInfo *stream = st->priv_data; int64_t pts, d...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2 = VAR_1->VAR_2;", "int VAR_3 = VAR_1->VAR_3;", "uint8_t *buf = VAR_1->data;", "MpegMuxContext *s = VAR_0->priv_data;", "AVStream *st = VAR_0->streams[VAR_2];", "StreamInfo *stream = st->priv_data;", "int64_t p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ...
17,546
static int image_probe(AVProbeData *p) { if (av_str2id(img_tags, p->filename)) { if (av_filename_number_test(p->filename)) return AVPROBE_SCORE_MAX; else return AVPROBE_SCORE_MAX/2; } return 0; }
true
FFmpeg
e825b5009f88a2ac78d05f960a747ddc6ad4ed22
static int image_probe(AVProbeData *p) { if (av_str2id(img_tags, p->filename)) { if (av_filename_number_test(p->filename)) return AVPROBE_SCORE_MAX; else return AVPROBE_SCORE_MAX/2; } return 0; }
{ "code": [ " if (av_str2id(img_tags, p->filename)) {" ], "line_no": [ 5 ] }
static int FUNC_0(AVProbeData *VAR_0) { if (av_str2id(img_tags, VAR_0->filename)) { if (av_filename_number_test(VAR_0->filename)) return AVPROBE_SCORE_MAX; else return AVPROBE_SCORE_MAX/2; } return 0; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if (av_str2id(img_tags, VAR_0->filename)) {", "if (av_filename_number_test(VAR_0->filename))\nreturn AVPROBE_SCORE_MAX;", "else\nreturn AVPROBE_SCORE_MAX/2;", "}", "return 0;", "}" ]
[ 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ] ]
17,547
static double bessel(double x){ double v=1; double lastv=0; double t=1; int i; static const double inv[100]={ 1.0/( 1* 1), 1.0/( 2* 2), 1.0/( 3* 3), 1.0/( 4* 4), 1.0/( 5* 5), 1.0/( 6* 6), 1.0/( 7* 7), 1.0/( 8* 8), 1.0/( 9* 9), 1.0/(10*10), 1.0/(11*11), 1.0/(12*12), 1.0/(13*13), 1.0/(14*14),...
true
FFmpeg
4ec03d138622b77887974a254861a425a57e02c3
static double bessel(double x){ double v=1; double lastv=0; double t=1; int i; static const double inv[100]={ 1.0/( 1* 1), 1.0/( 2* 2), 1.0/( 3* 3), 1.0/( 4* 4), 1.0/( 5* 5), 1.0/( 6* 6), 1.0/( 7* 7), 1.0/( 8* 8), 1.0/( 9* 9), 1.0/(10*10), 1.0/(11*11), 1.0/(12*12), 1.0/(13*13), 1.0/(14*14),...
{ "code": [], "line_no": [] }
static double FUNC_0(double VAR_0){ double VAR_1=1; double VAR_2=0; double VAR_3=1; int VAR_4; static const double VAR_5[100]={ 1.0/( 1* 1), 1.0/( 2* 2), 1.0/( 3* 3), 1.0/( 4* 4), 1.0/( 5* 5), 1.0/( 6* 6), 1.0/( 7* 7), 1.0/( 8* 8), 1.0/( 9* 9), 1.0/(10*10), 1.0/(11*11), 1.0/(12*12), 1.0/(13...
[ "static double FUNC_0(double VAR_0){", "double VAR_1=1;", "double VAR_2=0;", "double VAR_3=1;", "int VAR_4;", "static const double VAR_5[100]={", "1.0/( 1* 1), 1.0/( 2* 2), 1.0/( 3* 3), 1.0/( 4* 4), 1.0/( 5* 5), 1.0/( 6* 6), 1.0/( 7* 7), 1.0/( 8* 8), 1.0/( 9* 9), 1.0/(10*10),\n1.0/(11*11), 1.0/(12*12), ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 48 ], [ 50 ], [ 52 ] ]
17,549
uint8_t *av_packet_pack_dictionary(AVDictionary *dict, int *size) { AVDictionaryEntry *t = NULL; uint8_t *data = NULL; *size = 0; if (!dict) return NULL; while ((t = av_dict_get(dict, "", t, AV_DICT_IGNORE_SUFFIX))) { const int keylen = strlen(t->key); const int ...
true
FFmpeg
fcb1b0078d3810aa2d9270e1095c8b5835fc5667
uint8_t *av_packet_pack_dictionary(AVDictionary *dict, int *size) { AVDictionaryEntry *t = NULL; uint8_t *data = NULL; *size = 0; if (!dict) return NULL; while ((t = av_dict_get(dict, "", t, AV_DICT_IGNORE_SUFFIX))) { const int keylen = strlen(t->key); const int ...
{ "code": [ " const int keylen = strlen(t->key);", " const int valuelen = strlen(t->value);", " if (!new_data)" ], "line_no": [ 21, 23, 31 ] }
uint8_t *FUNC_0(AVDictionary *dict, int *size) { AVDictionaryEntry *t = NULL; uint8_t *data = NULL; *size = 0; if (!dict) return NULL; while ((t = av_dict_get(dict, "", t, AV_DICT_IGNORE_SUFFIX))) { const int VAR_0 = strlen(t->key); const int VAR_1 = strlen(t->va...
[ "uint8_t *FUNC_0(AVDictionary *dict, int *size)\n{", "AVDictionaryEntry *t = NULL;", "uint8_t *data = NULL;", "*size = 0;", "if (!dict)\nreturn NULL;", "while ((t = av_dict_get(dict, \"\", t, AV_DICT_IGNORE_SUFFIX))) {", "const int VAR_0 = strlen(t->key);", "const int VAR_1 = strlen(t->value);", "co...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 55, 57 ], [...
17,550
int ff_celp_lp_synthesis_filter(int16_t *out, const int16_t *filter_coeffs, const int16_t *in, int buffer_length, int filter_length, int stop_on_overflow, int shift, int rounder) { int i,n; for (n = 0; n < bu...
true
FFmpeg
fb75ad79cb8a00d42857b252e0049a0bbe90da66
int ff_celp_lp_synthesis_filter(int16_t *out, const int16_t *filter_coeffs, const int16_t *in, int buffer_length, int filter_length, int stop_on_overflow, int shift, int rounder) { int i,n; for (n = 0; n < bu...
{ "code": [ " sum += filter_coeffs[i-1] * out[n-i];" ], "line_no": [ 21 ] }
int FUNC_0(int16_t *VAR_0, const int16_t *VAR_1, const int16_t *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { int VAR_8,VAR_9; for (VAR_9 = 0; VAR_9 < VAR_3; VAR_9++) { int VAR_10 =...
[ "int FUNC_0(int16_t *VAR_0, const int16_t *VAR_1,\nconst int16_t *VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint VAR_6, int VAR_7)\n{", "int VAR_8,VAR_9;", "for (VAR_9 = 0; VAR_9 < VAR_3; VAR_9++) {", "int VAR_10 = -VAR_7, VAR_11;", "for (VAR_8 = 1; VAR_8 <= VAR_4; VAR_8++)", "VAR_10 += VAR_1[VAR_8-1] * VA...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
17,551
uint32_t ide_data_readw(void *opaque, uint32_t addr) { IDEBus *bus = opaque; IDEState *s = idebus_active_if(bus); uint8_t *p; int ret; /* PIO data access allowed only when DRQ bit is set. The result of a read * during PIO in is indeterminate, return 0 and don't move forward. */ if...
true
qemu
cb72cba83021fa42719e73a5249c12096a4d1cfc
uint32_t ide_data_readw(void *opaque, uint32_t addr) { IDEBus *bus = opaque; IDEState *s = idebus_active_if(bus); uint8_t *p; int ret; if (!(s->status & DRQ_STAT) || !ide_is_pio_out(s)) { return 0; } p = s->data_ptr; if (p + 2 > s->data_end) { retur...
{ "code": [ " if (p >= s->data_end)", " if (p >= s->data_end)", " if (p >= s->data_end)", " if (p >= s->data_end)" ], "line_no": [ 43, 43, 43, 43 ] }
uint32_t FUNC_0(void *opaque, uint32_t addr) { IDEBus *bus = opaque; IDEState *s = idebus_active_if(bus); uint8_t *p; int VAR_0; if (!(s->status & DRQ_STAT) || !ide_is_pio_out(s)) { return 0; } p = s->data_ptr; if (p + 2 > s->data_end) { return 0; ...
[ "uint32_t FUNC_0(void *opaque, uint32_t addr)\n{", "IDEBus *bus = opaque;", "IDEState *s = idebus_active_if(bus);", "uint8_t *p;", "int VAR_0;", "if (!(s->status & DRQ_STAT) || !ide_is_pio_out(s)) {", "return 0;", "}", "p = s->data_ptr;", "if (p + 2 > s->data_end) {", "return 0;", "}", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ] ]
17,552
int bdrv_open_backing_file(BlockDriverState *bs, QDict *options, Error **errp) { char backing_filename[PATH_MAX]; int back_flags, ret; BlockDriver *back_drv = NULL; Error *local_err = NULL; if (bs->backing_hd != NULL) { QDECREF(options); return 0; } /* NULL mean...
true
qemu
61ed2684539f7f31304e193d7c0e68d57ce6be88
int bdrv_open_backing_file(BlockDriverState *bs, QDict *options, Error **errp) { char backing_filename[PATH_MAX]; int back_flags, ret; BlockDriver *back_drv = NULL; Error *local_err = NULL; if (bs->backing_hd != NULL) { QDECREF(options); return 0; } if (op...
{ "code": [ " pstrcpy(bs->backing_file, sizeof(bs->backing_file),", " bs->backing_hd->file->filename);" ], "line_no": [ 81, 83 ] }
int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, Error **VAR_2) { char VAR_3[PATH_MAX]; int VAR_4, VAR_5; BlockDriver *back_drv = NULL; Error *local_err = NULL; if (VAR_0->backing_hd != NULL) { QDECREF(VAR_1); return 0; } if (VAR_1 == NULL) { VAR...
[ "int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, Error **VAR_2)\n{", "char VAR_3[PATH_MAX];", "int VAR_4, VAR_5;", "BlockDriver *back_drv = NULL;", "Error *local_err = NULL;", "if (VAR_0->backing_hd != NULL) {", "QDECREF(VAR_1);", "return 0;", "}", "if (VAR_1 == NULL) {", "VAR_1 = qdict_new();...
[ 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49,...
17,555
static int do_readlink(struct iovec *iovec, struct iovec *out_iovec) { char *buffer; int size, retval; V9fsString target, path; v9fs_string_init(&path); retval = proxy_unmarshal(iovec, PROXY_HDR_SZ, "sd", &path, &size); if (retval < 0) { v9fs_string_free(&path); return...
true
qemu
d77f7779b4d74354b3444ceb0f93105ced3c26c8
static int do_readlink(struct iovec *iovec, struct iovec *out_iovec) { char *buffer; int size, retval; V9fsString target, path; v9fs_string_init(&path); retval = proxy_unmarshal(iovec, PROXY_HDR_SZ, "sd", &path, &size); if (retval < 0) { v9fs_string_free(&path); return...
{ "code": [ " retval = readlink(path.data, buffer, size);" ], "line_no": [ 29 ] }
static int FUNC_0(struct VAR_0 *VAR_0, struct VAR_0 *VAR_1) { char *VAR_2; int VAR_3, VAR_4; V9fsString target, path; v9fs_string_init(&path); VAR_4 = proxy_unmarshal(VAR_0, PROXY_HDR_SZ, "sd", &path, &VAR_3); if (VAR_4 < 0) { v9fs_string_free(&path); return VAR_4; ...
[ "static int FUNC_0(struct VAR_0 *VAR_0, struct VAR_0 *VAR_1)\n{", "char *VAR_2;", "int VAR_3, VAR_4;", "V9fsString target, path;", "v9fs_string_init(&path);", "VAR_4 = proxy_unmarshal(VAR_0, PROXY_HDR_SZ, \"sd\", &path, &VAR_3);", "if (VAR_4 < 0) {", "v9fs_string_free(&path);", "return VAR_4;", "}...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
17,556
static int build_table(VLC *vlc, int table_nb_bits, int nb_codes, const void *bits, int bits_wrap, int bits_size, const void *codes, int codes_wrap, int codes_size, const void *symbols, int symbols_wrap, int symbols_size, ...
true
FFmpeg
4c4e746566a98340e229831624f74a5636b62b65
static int build_table(VLC *vlc, int table_nb_bits, int nb_codes, const void *bits, int bits_wrap, int bits_size, const void *codes, int codes_wrap, int codes_size, const void *symbols, int symbols_wrap, int symbols_size, ...
{ "code": [ " if (n > 0 && code_prefix2 == code_prefix) {" ], "line_no": [ 93 ] }
static int FUNC_0(VLC *VAR_0, int VAR_1, int VAR_2, const void *VAR_3, int VAR_4, int VAR_5, const void *VAR_6, int VAR_7, int VAR_8, const void *VAR_9, int VAR_10, int VAR_11, uint32_t VAR_12, int VA...
[ "static int FUNC_0(VLC *VAR_0, int VAR_1,\nint VAR_2,\nconst void *VAR_3, int VAR_4, int VAR_5,\nconst void *VAR_6, int VAR_7, int VAR_8,\nconst void *VAR_9, int VAR_10, int VAR_11,\nuint32_t VAR_12, int VAR_13, int VAR_14)\n{", "int VAR_15, VAR_16, VAR_17, VAR_18, VAR_19, VAR_20, VAR_21, VAR_22, VAR_23, VAR_24, ...
[ 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, 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 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ], [...
17,557
static int mp_decode_layer3(MPADecodeContext *s) { int nb_granules, main_data_begin; int gr, ch, blocksplit_flag, i, j, k, n, bits_pos; GranuleDef *g; int16_t exponents[576]; //FIXME try INTFLOAT /* read side info */ if (s->lsf) { main_data_begin = get_bits(&s->gb, 8); ...
true
FFmpeg
03fafdec82a4dbe0cf1a7d4d3bb59c42d5019941
static int mp_decode_layer3(MPADecodeContext *s) { int nb_granules, main_data_begin; int gr, ch, blocksplit_flag, i, j, k, n, bits_pos; GranuleDef *g; int16_t exponents[576]; if (s->lsf) { main_data_begin = get_bits(&s->gb, 8); skip_bits(&s->gb, s->nb_channels); ...
{ "code": [ " for (gr = 0, ch = 0; gr < nb_granules && (s->last_buf_size >> 3) < main_data_begin; gr++, ch = 0) {", " for (; ch < s->nb_channels && (s->last_buf_size >> 3) < main_data_begin; ch++) {", " skip_bits_long(&s->gb, s->last_buf_size - 8 * main_data_begin);", " ...
static int FUNC_0(MPADecodeContext *VAR_0) { int VAR_1, VAR_2; int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; GranuleDef *g; int16_t exponents[576]; if (VAR_0->lsf) { VAR_2 = get_bits(&VAR_0->gb, 8); skip_bits(&VAR_0->gb, VAR_0->nb_channels); V...
[ "static int FUNC_0(MPADecodeContext *VAR_0)\n{", "int VAR_1, VAR_2;", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "GranuleDef *g;", "int16_t exponents[576];", "if (VAR_0->lsf) {", "VAR_2 = get_bits(&VAR_0->gb, 8);", "skip_bits(&VAR_0->gb, VAR_0->nb_channels);", "VAR_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, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
17,559
static inline void RENAME(yuy2ToY)(uint8_t *dst, uint8_t *src, long width) { #ifdef HAVE_MMX asm volatile( "movq "MANGLE(bm01010101)", %%mm2\n\t" "mov %0, %%"REG_a" \n\t" "1: \n\t" "movq (%1, %%"REG_a",2), %%mm0 \n\t" "movq 8(%1, %%"REG_a",2), %%mm1 \n\t" "pand %%mm2, %%mm0 \n\t" "pand %%m...
true
FFmpeg
2da0d70d5eebe42f9fcd27ee554419ebe2a5da06
static inline void RENAME(yuy2ToY)(uint8_t *dst, uint8_t *src, long width) { #ifdef HAVE_MMX asm volatile( "movq "MANGLE(bm01010101)", %%mm2\n\t" "mov %0, %%"REG_a" \n\t" "1: \n\t" "movq (%1, %%"REG_a",2), %%mm0 \n\t" "movq 8(%1, %%"REG_a",2), %%mm1 \n\t" "pand %%mm2, %%mm0 \n\t" "pand %%m...
{ "code": [ "\tasm volatile(", "\t\t: \"%\"REG_a", "\t);", "\tint i;", "#endif", "#endif", "#endif", "#endif", "#endif", "\tint i;", "#endif", "#endif", "#endif", "#endif", "\tint i;", "#endif", "#endif", "#endif", "#endif", "#endif", ...
static inline void FUNC_0(yuy2ToY)(uint8_t *dst, uint8_t *src, long width) { #ifdef HAVE_MMX asm volatile( "movq "MANGLE(bm01010101)", %%mm2\n\t" "mov %0, %%"REG_a" \n\t" "1: \n\t" "movq (%1, %%"REG_a",2), %%mm0 \n\t" "movq 8(%1, %%"REG_a",2), %%mm1 \n\t" "pand %%mm2, %%mm0 \n\t" "pand %%m...
[ "static inline void FUNC_0(yuy2ToY)(uint8_t *dst, uint8_t *src, long width)\n{", "#ifdef HAVE_MMX\nasm volatile(\n\"movq \"MANGLE(bm01010101)\", %%mm2\\n\\t\"\n\"mov %0, %%\"REG_a\"\t\t\\n\\t\"\n\"1:\t\t\t\t\\n\\t\"\n\"movq (%1, %%\"REG_a\",2), %%mm0\t\\n\\t\"\n\"movq 8(%1, %%\"REG_a\",2), %%mm1\t\\n\\t\"\n\"pand...
[ 0, 1, 1, 1, 1, 1 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45, 47 ] ]
17,560
BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState *bs, int granularity, Error **errp) { int64_t bitmap_size; BdrvDirtyBitmap *bitmap; assert((granularity & (granularity - 1)) == 0); granularity >>= BDRV_SECTOR_BITS; assert(granularity); ...
true
qemu
5839e53bbc0fec56021d758aab7610df421ed8c8
BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState *bs, int granularity, Error **errp) { int64_t bitmap_size; BdrvDirtyBitmap *bitmap; assert((granularity & (granularity - 1)) == 0); granularity >>= BDRV_SECTOR_BITS; assert(granularity); ...
{ "code": [ " bitmap = g_malloc0(sizeof(BdrvDirtyBitmap));" ], "line_no": [ 33 ] }
BdrvDirtyBitmap *FUNC_0(BlockDriverState *bs, int granularity, Error **errp) { int64_t bitmap_size; BdrvDirtyBitmap *bitmap; assert((granularity & (granularity - 1)) == 0); granularity >>= BDRV_SECTOR_BITS; assert(granularity); bitmap_size = ...
[ "BdrvDirtyBitmap *FUNC_0(BlockDriverState *bs, int granularity,\nError **errp)\n{", "int64_t bitmap_size;", "BdrvDirtyBitmap *bitmap;", "assert((granularity & (granularity - 1)) == 0);", "granularity >>= BDRV_SECTOR_BITS;", "assert(granularity);", "bitmap_size = bdrv_nb_sectors(bs);", "if (bitmap_size...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
17,561
static void FUNC(put_hevc_pel_bi_w_pixels)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, int denom, int wx0, int wx1, int ox0, int ox...
true
FFmpeg
c225da68cffbea11270a758ff42859194c980863
static void FUNC(put_hevc_pel_bi_w_pixels)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, int denom, int wx0, int wx1, int ox0, int ox...
{ "code": [ " dst[x] = av_clip_pixel(( (src[x] << (14 - BIT_DEPTH)) * wx1 + src2[x] * wx0 + ((ox0 + ox1 + 1) << log2Wd)) >> (log2Wd + 1));" ], "line_no": [ 37 ] }
static void FUNC_0(put_hevc_pel_bi_w_pixels)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, int denom, int wx0, int wx1, int ox0, int ...
[ "static void FUNC_0(put_hevc_pel_bi_w_pixels)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride,\nint16_t *src2,\nint height, int denom, int wx0, int wx1,\nint ox0, int ox1, intptr_t mx, intptr_t my, int width)\n{", "int VAR_0, VAR_1;", "pixel *src = (pixel *)_src;", "ptrdiff_t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
17,563
static int compat_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, const AVPacket *pkt) { AVCodecInternal *avci = avctx->internal; int ret; av_assert0(avci->compat_decode_consumed == 0); *got_frame = 0; avci->compat_decode = 1; if (avci->compat...
true
FFmpeg
960b4d47612ec89cfdf0ff8b83bc7424ad4c754a
static int compat_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, const AVPacket *pkt) { AVCodecInternal *avci = avctx->internal; int ret; av_assert0(avci->compat_decode_consumed == 0); *got_frame = 0; avci->compat_decode = 1; if (avci->compat...
{ "code": [ " int ret;" ], "line_no": [ 9 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2, const AVPacket *VAR_3) { AVCodecInternal *avci = VAR_0->internal; int VAR_4; av_assert0(avci->compat_decode_consumed == 0); *VAR_2 = 0; avci->FUNC_0 = 1; if (avci->compat_decode_partial_si...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,\nint *VAR_2, const AVPacket *VAR_3)\n{", "AVCodecInternal *avci = VAR_0->internal;", "int VAR_4;", "av_assert0(avci->compat_decode_consumed == 0);", "*VAR_2 = 0;", "avci->FUNC_0 = 1;", "if (avci->compat_decode_partial_size > 0 &&\navci->compat_de...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 53 ], [ 55 ], [ 57 ...
17,564
static av_cold void common_init(MpegEncContext * s) { static int initialized=0; switch(s->msmpeg4_version){ case 1: case 2: s->y_dc_scale_table= s->c_dc_scale_table= ff_mpeg1_dc_scale_table; break; case 3: if(s->workaround_bugs){ s->y_dc_scale...
false
FFmpeg
9be6f0d2f8393100a11c8527c7ba18c1dc2f1450
static av_cold void common_init(MpegEncContext * s) { static int initialized=0; switch(s->msmpeg4_version){ case 1: case 2: s->y_dc_scale_table= s->c_dc_scale_table= ff_mpeg1_dc_scale_table; break; case 3: if(s->workaround_bugs){ s->y_dc_scale...
{ "code": [], "line_no": [] }
static av_cold void FUNC_0(MpegEncContext * s) { static int VAR_0=0; switch(s->msmpeg4_version){ case 1: case 2: s->y_dc_scale_table= s->c_dc_scale_table= ff_mpeg1_dc_scale_table; break; case 3: if(s->workaround_bugs){ s->y_dc_scale_table= old...
[ "static av_cold void FUNC_0(MpegEncContext * s)\n{", "static int VAR_0=0;", "switch(s->msmpeg4_version){", "case 1:\ncase 2:\ns->y_dc_scale_table=\ns->c_dc_scale_table= ff_mpeg1_dc_scale_table;", "break;", "case 3:\nif(s->workaround_bugs){", "s->y_dc_scale_table= old_ff_y_dc_scale_table;", "s->c_dc_sc...
[ 0, 0, 0, 0, 0, 0, 0, 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...
17,565
LF_FUNC (h, luma, sse2) LF_IFUNC(h, luma_intra, sse2) LF_FUNC (v, luma, sse2) LF_IFUNC(v, luma_intra, sse2) /***********************************/ /* weighted prediction */ #define H264_WEIGHT(W, H, OPT) \ void ff_h264_weight_ ## W ## x ## H ## _ ## OPT(uint8_t *dst, \ int stride,...
false
FFmpeg
1d16a1cf99488f16492b1bb48e023f4da8377e07
LF_FUNC (h, luma, sse2) LF_IFUNC(h, luma_intra, sse2) LF_FUNC (v, luma, sse2) LF_IFUNC(v, luma_intra, sse2) #define H264_WEIGHT(W, H, OPT) \ void ff_h264_weight_ ## W ## x ## H ## _ ## OPT(uint8_t *dst, \ int stride, int log2_denom, int weight, int offset); #define H264_BIWE...
{ "code": [], "line_no": [] }
LF_FUNC (h, luma, sse2) LF_IFUNC(h, luma_intra, sse2) LF_FUNC (v, luma, sse2) LF_IFUNC(v, luma_intra, sse2) #define H264_WEIGHT(W, H, OPT) \ void ff_h264_weight_ ## W ## x ## H ## _ ## OPT(uint8_t *dst, \ int stride, int log2_denom, int weight, int offset); #define H264_BIWE...
[ "LF_FUNC (h, luma, sse2)\nLF_IFUNC(h, luma_intra, sse2)\nLF_FUNC (v, luma, sse2)\nLF_IFUNC(v, luma_intra, sse2)\n#define H264_WEIGHT(W, H, OPT) \\\nvoid ff_h264_weight_ ## W ## x ## H ## _ ## OPT(uint8_t *dst, \\\nint stride, int log2_denom, int weight, int offset);", "#define H264_BIWEIGH...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17, 19, 21 ], [ 25, 27, 29, 31 ], [ 35, 37, 39, 43, 45, 47, 49, 51, 55, 57, 59, 61, 63, 65, 67, 69, 73, 75 ], [ 77 ], [ 81 ], [ 83, 85 ], [ 87...
17,566
static av_cold int libwebp_anim_encode_init(AVCodecContext *avctx) { int ret = ff_libwebp_encode_init_common(avctx); if (!ret) { LibWebPAnimContext *s = avctx->priv_data; WebPAnimEncoderOptions enc_options; WebPAnimEncoderOptionsInit(&enc_options); // TODO(urvang): Expose ...
false
FFmpeg
626b6b769ced6d3e55d2661985ab2a1cb89f481e
static av_cold int libwebp_anim_encode_init(AVCodecContext *avctx) { int ret = ff_libwebp_encode_init_common(avctx); if (!ret) { LibWebPAnimContext *s = avctx->priv_data; WebPAnimEncoderOptions enc_options; WebPAnimEncoderOptionsInit(&enc_options); s->enc = WebPA...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { int VAR_0 = ff_libwebp_encode_init_common(avctx); if (!VAR_0) { LibWebPAnimContext *s = avctx->priv_data; WebPAnimEncoderOptions enc_options; WebPAnimEncoderOptionsInit(&enc_options); s->enc = WebPAnimEncoderNew(...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "int VAR_0 = ff_libwebp_encode_init_common(avctx);", "if (!VAR_0) {", "LibWebPAnimContext *s = avctx->priv_data;", "WebPAnimEncoderOptions enc_options;", "WebPAnimEncoderOptionsInit(&enc_options);", "s->enc = WebPAnimEncoderNew(avctx->width, avctx->...
[ 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 ] ]
17,567
static int sls_flag_use_localtime_filename(AVFormatContext *oc, HLSContext *c, VariantStream *vs) { if (c->flags & HLS_SECOND_LEVEL_SEGMENT_INDEX) { char * filename = av_strdup(oc->filename); // %%d will be %d after strftime if (!filename) return AVERROR(ENOMEM); if (repla...
false
FFmpeg
dc5d1515681b57a257443ba72bb81fb3e6e6621b
static int sls_flag_use_localtime_filename(AVFormatContext *oc, HLSContext *c, VariantStream *vs) { if (c->flags & HLS_SECOND_LEVEL_SEGMENT_INDEX) { char * filename = av_strdup(oc->filename); if (!filename) return AVERROR(ENOMEM); if (replace_int_data_in_filename(oc->file...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, HLSContext *VAR_1, VariantStream *VAR_2) { if (VAR_1->flags & HLS_SECOND_LEVEL_SEGMENT_INDEX) { char * VAR_4 = av_strdup(VAR_0->VAR_4); if (!VAR_4) return AVERROR(ENOMEM); if (replace_int_data_in_filename(VAR_0->VAR_4, sizeof(VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0, HLSContext *VAR_1, VariantStream *VAR_2)\n{", "if (VAR_1->flags & HLS_SECOND_LEVEL_SEGMENT_INDEX) {", "char * VAR_4 = av_strdup(VAR_0->VAR_4);", "if (!VAR_4)\nreturn AVERROR(ENOMEM);", "if (replace_int_data_in_filename(VAR_0->VAR_4, sizeof(VAR_0->VAR_4),\n#if FF_AP...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15, 17 ], [ 19, 21 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ...
17,568
static bool e1000_full_mac_needed(void *opaque) { E1000State *s = opaque; return s->compat_flags & E1000_FLAG_MAC; }
false
qemu
bc0f0674f037a01f2ce0870ad6270a356a7a8347
static bool e1000_full_mac_needed(void *opaque) { E1000State *s = opaque; return s->compat_flags & E1000_FLAG_MAC; }
{ "code": [], "line_no": [] }
static bool FUNC_0(void *opaque) { E1000State *s = opaque; return s->compat_flags & E1000_FLAG_MAC; }
[ "static bool FUNC_0(void *opaque)\n{", "E1000State *s = opaque;", "return s->compat_flags & E1000_FLAG_MAC;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
17,569
void qemu_bh_delete(QEMUBH *bh) { qemu_free(bh); }
false
qemu
4e59b545868a5ee5f59b346337f0c44209929334
void qemu_bh_delete(QEMUBH *bh) { qemu_free(bh); }
{ "code": [], "line_no": [] }
void FUNC_0(QEMUBH *VAR_0) { qemu_free(VAR_0); }
[ "void FUNC_0(QEMUBH *VAR_0)\n{", "qemu_free(VAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
17,570
static void net_socket_receive(void *opaque, const uint8_t *buf, size_t size) { NetSocketState *s = opaque; uint32_t len; len = htonl(size); send_all(s->fd, (const uint8_t *)&len, sizeof(len)); send_all(s->fd, buf, size); }
false
qemu
e3f5ec2b5e92706e3b807059f79b1fb5d936e567
static void net_socket_receive(void *opaque, const uint8_t *buf, size_t size) { NetSocketState *s = opaque; uint32_t len; len = htonl(size); send_all(s->fd, (const uint8_t *)&len, sizeof(len)); send_all(s->fd, buf, size); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2) { NetSocketState *s = VAR_0; uint32_t len; len = htonl(VAR_2); send_all(s->fd, (const uint8_t *)&len, sizeof(len)); send_all(s->fd, VAR_1, VAR_2); }
[ "static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)\n{", "NetSocketState *s = VAR_0;", "uint32_t len;", "len = htonl(VAR_2);", "send_all(s->fd, (const uint8_t *)&len, sizeof(len));", "send_all(s->fd, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ] ]
17,572
static void *rcu_read_stress_test(void *arg) { int i; int itercnt = 0; struct rcu_stress *p; int pc; long long n_reads_local = 0; volatile int garbage = 0; rcu_register_thread(); *(struct rcu_reader_data **)arg = &rcu_reader; while (goflag == GOFLAG_INIT) { g_u...
false
qemu
8a5956ad6392f115521dad774055c737c49fb0dd
static void *rcu_read_stress_test(void *arg) { int i; int itercnt = 0; struct rcu_stress *p; int pc; long long n_reads_local = 0; volatile int garbage = 0; rcu_register_thread(); *(struct rcu_reader_data **)arg = &rcu_reader; while (goflag == GOFLAG_INIT) { g_u...
{ "code": [], "line_no": [] }
static void *FUNC_0(void *VAR_0) { int VAR_1; int VAR_2 = 0; struct rcu_stress *VAR_3; int VAR_4; long long VAR_5 = 0; volatile int VAR_6 = 0; rcu_register_thread(); *(struct rcu_reader_data **)VAR_0 = &rcu_reader; while (goflag == GOFLAG_INIT) { g_usleep(1000)...
[ "static void *FUNC_0(void *VAR_0)\n{", "int VAR_1;", "int VAR_2 = 0;", "struct rcu_stress *VAR_3;", "int VAR_4;", "long long VAR_5 = 0;", "volatile int VAR_6 = 0;", "rcu_register_thread();", "*(struct rcu_reader_data **)VAR_0 = &rcu_reader;", "while (goflag == GOFLAG_INIT) {", "g_usleep(1000);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
17,573
static void rtc_realizefn(DeviceState *dev, Error **errp) { ISADevice *isadev = ISA_DEVICE(dev); RTCState *s = MC146818_RTC(dev); int base = 0x70; s->cmos_data[RTC_REG_A] = 0x26; s->cmos_data[RTC_REG_B] = 0x02; s->cmos_data[RTC_REG_C] = 0x00; s->cmos_data[RTC_REG_D] = 0x80; ...
false
qemu
8e099d14f5233f330c4a6f03ff655219cd789c8f
static void rtc_realizefn(DeviceState *dev, Error **errp) { ISADevice *isadev = ISA_DEVICE(dev); RTCState *s = MC146818_RTC(dev); int base = 0x70; s->cmos_data[RTC_REG_A] = 0x26; s->cmos_data[RTC_REG_B] = 0x02; s->cmos_data[RTC_REG_C] = 0x00; s->cmos_data[RTC_REG_D] = 0x80; ...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { ISADevice *isadev = ISA_DEVICE(VAR_0); RTCState *s = MC146818_RTC(VAR_0); int VAR_2 = 0x70; s->cmos_data[RTC_REG_A] = 0x26; s->cmos_data[RTC_REG_B] = 0x02; s->cmos_data[RTC_REG_C] = 0x00; s->cmos_data[RTC_REG_D] = 0x80; ...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "ISADevice *isadev = ISA_DEVICE(VAR_0);", "RTCState *s = MC146818_RTC(VAR_0);", "int VAR_2 = 0x70;", "s->cmos_data[RTC_REG_A] = 0x26;", "s->cmos_data[RTC_REG_B] = 0x02;", "s->cmos_data[RTC_REG_C] = 0x00;", "s->cmos_data[RTC_REG_D] = 0x80;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51, 53 ], [ 55, 57, 59 ], [ 61 ], [ 63, 65 ], [ 67, 69 ], [...
17,574
static int decode_init(AVCodecContext *avctx) { HYuvContext *s = avctx->priv_data; int width, height; s->avctx= avctx; s->flags= avctx->flags; dsputil_init(&s->dsp, avctx); memset(s->vlc, 0, 3*sizeof(VLC)); width= s->width= avctx->width; height= s->height= avct...
false
FFmpeg
42dd22c4a5c8463488d442eeb234b822bcc39625
static int decode_init(AVCodecContext *avctx) { HYuvContext *s = avctx->priv_data; int width, height; s->avctx= avctx; s->flags= avctx->flags; dsputil_init(&s->dsp, avctx); memset(s->vlc, 0, 3*sizeof(VLC)); width= s->width= avctx->width; height= s->height= avct...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { HYuvContext *s = VAR_0->priv_data; int VAR_1, VAR_2; s->VAR_0= VAR_0; s->flags= VAR_0->flags; dsputil_init(&s->dsp, VAR_0); memset(s->vlc, 0, 3*sizeof(VLC)); VAR_1= s->VAR_1= VAR_0->VAR_1; VAR_2= s->VAR_2= VAR_0->VAR_2...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "HYuvContext *s = VAR_0->priv_data;", "int VAR_1, VAR_2;", "s->VAR_0= VAR_0;", "s->flags= VAR_0->flags;", "dsputil_init(&s->dsp, VAR_0);", "memset(s->vlc, 0, 3*sizeof(VLC));", "VAR_1= s->VAR_1= VAR_0->VAR_1;", "VAR_2= s->VAR_2= VAR_0->VAR_2;", "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, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57...
17,575
static void palmte_init(ram_addr_t ram_size, int vga_ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { struct omap_mpu_state_s *cpu; int flash_size = 0x00800000; ...
false
qemu
a0b753dfd3920df146a5f4d05e442e3c522900c7
static void palmte_init(ram_addr_t ram_size, int vga_ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { struct omap_mpu_state_s *cpu; int flash_size = 0x00800000; ...
{ "code": [], "line_no": [] }
static void FUNC_0(ram_addr_t VAR_0, int VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5, const char *VAR_6) { struct omap_mpu_state_s *VAR_7; int VAR_8 = 0x00800000; int VAR_9 = palmte_binfo.VAR_0; int VAR_10; ...
[ "static void FUNC_0(ram_addr_t VAR_0, int VAR_1,\nconst char *VAR_2,\nconst char *VAR_3, const char *VAR_4,\nconst char *VAR_5, const char *VAR_6)\n{", "struct omap_mpu_state_s *VAR_7;", "int VAR_8 = 0x00800000;", "int VAR_9 = palmte_binfo.VAR_0;", "int VAR_10;", "static uint32_t VAR_11 = 0xffffffff;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 53,...
17,577
static void menelaus_save(QEMUFile *f, void *opaque) { MenelausState *s = (MenelausState *) opaque; qemu_put_be32(f, s->firstbyte); qemu_put_8s(f, &s->reg); qemu_put_8s(f, &s->vcore[0]); qemu_put_8s(f, &s->vcore[1]); qemu_put_8s(f, &s->vcore[2]); qemu_put_8s(f, &s->vcore[3]); ...
false
qemu
f0495f56c9f4574140c392bdbad42721ba692d19
static void menelaus_save(QEMUFile *f, void *opaque) { MenelausState *s = (MenelausState *) opaque; qemu_put_be32(f, s->firstbyte); qemu_put_8s(f, &s->reg); qemu_put_8s(f, &s->vcore[0]); qemu_put_8s(f, &s->vcore[1]); qemu_put_8s(f, &s->vcore[2]); qemu_put_8s(f, &s->vcore[3]); ...
{ "code": [], "line_no": [] }
static void FUNC_0(QEMUFile *VAR_0, void *VAR_1) { MenelausState *s = (MenelausState *) VAR_1; qemu_put_be32(VAR_0, s->firstbyte); qemu_put_8s(VAR_0, &s->reg); qemu_put_8s(VAR_0, &s->vcore[0]); qemu_put_8s(VAR_0, &s->vcore[1]); qemu_put_8s(VAR_0, &s->vcore[2]); qemu_put_8s(VAR_0,...
[ "static void FUNC_0(QEMUFile *VAR_0, void *VAR_1)\n{", "MenelausState *s = (MenelausState *) VAR_1;", "qemu_put_be32(VAR_0, s->firstbyte);", "qemu_put_8s(VAR_0, &s->reg);", "qemu_put_8s(VAR_0, &s->vcore[0]);", "qemu_put_8s(VAR_0, &s->vcore[1]);", "qemu_put_8s(VAR_0, &s->vcore[2]);", "qemu_put_8s(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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
17,578
static void pc_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); PCMachineClass *pcmc = PC_MACHINE_CLASS(oc); HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); NMIClass *nc = NMI_CLASS(oc); pcmc->get_hotplug_handler = mc->get_hotplug_handler; pcm...
false
qemu
c7f8d0f3a52b5ef8fdcd305cce438f67d7e06a9f
static void pc_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); PCMachineClass *pcmc = PC_MACHINE_CLASS(oc); HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); NMIClass *nc = NMI_CLASS(oc); pcmc->get_hotplug_handler = mc->get_hotplug_handler; pcm...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { MachineClass *mc = MACHINE_CLASS(VAR_0); PCMachineClass *pcmc = PC_MACHINE_CLASS(VAR_0); HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(VAR_0); NMIClass *nc = NMI_CLASS(VAR_0); pcmc->get_hotplug_handler = mc->get_hotplug_handler; pc...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "MachineClass *mc = MACHINE_CLASS(VAR_0);", "PCMachineClass *pcmc = PC_MACHINE_CLASS(VAR_0);", "HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(VAR_0);", "NMIClass *nc = NMI_CLASS(VAR_0);", "pcmc->get_hotplug_handler = mc->get_hotplug_handler;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
17,579
static uint64_t mips_qemu_read (void *opaque, target_phys_addr_t addr, unsigned size) { return 0; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t mips_qemu_read (void *opaque, target_phys_addr_t addr, unsigned size) { return 0; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0 (void *opaque, target_phys_addr_t addr, unsigned size) { return 0; }
[ "static uint64_t FUNC_0 (void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "return 0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
17,580
int vfio_mmap_region(Object *obj, VFIORegion *region, MemoryRegion *mem, MemoryRegion *submem, void **map, size_t size, off_t offset, const char *name) { int ret = 0; VFIODevice *vbasedev = region->vbasedev; if (vbasedev->allow_mmap && ...
false
qemu
5e15d79b8681c7f4e2079833288785708e7520d3
int vfio_mmap_region(Object *obj, VFIORegion *region, MemoryRegion *mem, MemoryRegion *submem, void **map, size_t size, off_t offset, const char *name) { int ret = 0; VFIODevice *vbasedev = region->vbasedev; if (vbasedev->allow_mmap && ...
{ "code": [], "line_no": [] }
int FUNC_0(Object *VAR_0, VFIORegion *VAR_1, MemoryRegion *VAR_2, MemoryRegion *VAR_3, void **VAR_4, size_t VAR_5, off_t VAR_6, const char *VAR_7) { int VAR_8 = 0; VFIODevice *vbasedev = VAR_1->vbasedev; if (vbasedev->allow_mmap && VAR_...
[ "int FUNC_0(Object *VAR_0, VFIORegion *VAR_1,\nMemoryRegion *VAR_2, MemoryRegion *VAR_3,\nvoid **VAR_4, size_t VAR_5, off_t VAR_6,\nconst char *VAR_7)\n{", "int VAR_8 = 0;", "VFIODevice *vbasedev = VAR_1->vbasedev;", "if (vbasedev->allow_mmap && VAR_5 && VAR_1->flags &\nVFIO_REGION_INFO_FLAG_MMAP) {", "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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
17,582
read_insn_microblaze (bfd_vma memaddr, struct disassemble_info *info, struct op_code_struct **opr) { unsigned char ibytes[4]; int status; struct op_code_struct * op; unsigned long inst; status = info->read_memory_func (memaddr, ibytes, 4, info); if (status...
false
qemu
1d153a3388b150b8aeedde32242db86b79c45473
read_insn_microblaze (bfd_vma memaddr, struct disassemble_info *info, struct op_code_struct **opr) { unsigned char ibytes[4]; int status; struct op_code_struct * op; unsigned long inst; status = info->read_memory_func (memaddr, ibytes, 4, info); if (status...
{ "code": [], "line_no": [] }
FUNC_0 (bfd_vma VAR_0, struct disassemble_info *VAR_1, struct op_code_struct **VAR_2) { unsigned char VAR_3[4]; int VAR_4; struct op_code_struct * VAR_5; unsigned long VAR_6; VAR_4 = VAR_1->read_memory_func (VAR_0, VAR_3, 4, VAR_1); if (VAR_4 != 0) {...
[ "FUNC_0 (bfd_vma VAR_0,\nstruct disassemble_info *VAR_1,\nstruct op_code_struct **VAR_2)\n{", "unsigned char VAR_3[4];", "int VAR_4;", "struct op_code_struct * VAR_5;", "unsigned long VAR_6;", "VAR_4 = VAR_1->read_memory_func (VAR_0, VAR_3, 4, VAR_1);", "if (VAR_4 != 0)\n{", "VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 51 ], [ 53, 55 ], [ 59 ], [...
17,583
bool bdrv_qiov_is_aligned(BlockDriverState *bs, QEMUIOVector *qiov) { int i; size_t alignment = bdrv_opt_mem_align(bs); for (i = 0; i < qiov->niov; i++) { if ((uintptr_t) qiov->iov[i].iov_base % alignment) { return false; } if (qiov->iov[i].iov_len % alignment) ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
bool bdrv_qiov_is_aligned(BlockDriverState *bs, QEMUIOVector *qiov) { int i; size_t alignment = bdrv_opt_mem_align(bs); for (i = 0; i < qiov->niov; i++) { if ((uintptr_t) qiov->iov[i].iov_base % alignment) { return false; } if (qiov->iov[i].iov_len % alignment) ...
{ "code": [], "line_no": [] }
bool FUNC_0(BlockDriverState *bs, QEMUIOVector *qiov) { int VAR_0; size_t alignment = bdrv_opt_mem_align(bs); for (VAR_0 = 0; VAR_0 < qiov->niov; VAR_0++) { if ((uintptr_t) qiov->iov[VAR_0].iov_base % alignment) { return false; } if (qiov->iov[VAR_0].iov_len % a...
[ "bool FUNC_0(BlockDriverState *bs, QEMUIOVector *qiov)\n{", "int VAR_0;", "size_t alignment = bdrv_opt_mem_align(bs);", "for (VAR_0 = 0; VAR_0 < qiov->niov; VAR_0++) {", "if ((uintptr_t) qiov->iov[VAR_0].iov_base % alignment) {", "return false;", "}", "if (qiov->iov[VAR_0].iov_len % alignment) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ] ]
17,584
iscsi_process_write(void *arg) { IscsiLun *iscsilun = arg; struct iscsi_context *iscsi = iscsilun->iscsi; aio_context_acquire(iscsilun->aio_context); iscsi_service(iscsi, POLLOUT); iscsi_set_events(iscsilun); aio_context_release(iscsilun->aio_context); }
false
qemu
d045c466d9e62b4321fadf586d024d54ddfd8bd4
iscsi_process_write(void *arg) { IscsiLun *iscsilun = arg; struct iscsi_context *iscsi = iscsilun->iscsi; aio_context_acquire(iscsilun->aio_context); iscsi_service(iscsi, POLLOUT); iscsi_set_events(iscsilun); aio_context_release(iscsilun->aio_context); }
{ "code": [], "line_no": [] }
FUNC_0(void *VAR_0) { IscsiLun *iscsilun = VAR_0; struct iscsi_context *VAR_1 = iscsilun->VAR_1; aio_context_acquire(iscsilun->aio_context); iscsi_service(VAR_1, POLLOUT); iscsi_set_events(iscsilun); aio_context_release(iscsilun->aio_context); }
[ "FUNC_0(void *VAR_0)\n{", "IscsiLun *iscsilun = VAR_0;", "struct iscsi_context *VAR_1 = iscsilun->VAR_1;", "aio_context_acquire(iscsilun->aio_context);", "iscsi_service(VAR_1, POLLOUT);", "iscsi_set_events(iscsilun);", "aio_context_release(iscsilun->aio_context);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
17,586
static void vc1_decode_b_mb(VC1Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &s->gb; int i, j; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; int cbp = 0; /* cbp decoding stuff */ int mqdiff, mquant; /* MB quantization */ int ttmb = v->ttfrm; /* MB Transform type */ ...
false
FFmpeg
f8bed30d8b176fa030f6737765338bb4a2bcabc9
static void vc1_decode_b_mb(VC1Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &s->gb; int i, j; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; int cbp = 0; int mqdiff, mquant; int ttmb = v->ttfrm; int mb_has_coeffs = 0; int index, index1; int val, si...
{ "code": [], "line_no": [] }
static void FUNC_0(VC1Context *VAR_0) { MpegEncContext *s = &VAR_0->s; GetBitContext *gb = &s->gb; int VAR_1, VAR_2; int VAR_3 = s->mb_x + s->mb_y * s->mb_stride; int VAR_4 = 0; int VAR_5, VAR_6; int VAR_7 = VAR_0->ttfrm; int VAR_8 = 0; int VAR_9, VAR_10; int VAR_...
[ "static void FUNC_0(VC1Context *VAR_0)\n{", "MpegEncContext *s = &VAR_0->s;", "GetBitContext *gb = &s->gb;", "int VAR_1, VAR_2;", "int VAR_3 = s->mb_x + s->mb_y * s->mb_stride;", "int VAR_4 = 0;", "int VAR_5, VAR_6;", "int VAR_7 = VAR_0->ttfrm;", "int VAR_8 = 0;", "int VAR_9, VAR_10;", "int VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43, 45 ], [...