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 |
|---|---|---|---|---|---|---|---|---|---|---|
11,452 | void qemu_mutex_init(QemuMutex *mutex)
{
int err;
pthread_mutexattr_t mutexattr;
pthread_mutexattr_init(&mutexattr);
pthread_mutexattr_settype(&mutexattr, PTHREAD_MUTEX_ERRORCHECK);
err = pthread_mutex_init(&mutex->lock, &mutexattr);
pthread_mutexattr_destroy(&mutexattr);
if (err)
... | true | qemu | 24fa90499f8b24bcba2960a3316d797f9b80b5e9 | void qemu_mutex_init(QemuMutex *mutex)
{
int err;
pthread_mutexattr_t mutexattr;
pthread_mutexattr_init(&mutexattr);
pthread_mutexattr_settype(&mutexattr, PTHREAD_MUTEX_ERRORCHECK);
err = pthread_mutex_init(&mutex->lock, &mutexattr);
pthread_mutexattr_destroy(&mutexattr);
if (err)
... | {
"code": [
" pthread_mutexattr_t mutexattr;",
" pthread_mutexattr_init(&mutexattr);",
" pthread_mutexattr_settype(&mutexattr, PTHREAD_MUTEX_ERRORCHECK);",
" err = pthread_mutex_init(&mutex->lock, &mutexattr);",
" pthread_mutexattr_destroy(&mutexattr);"
],
"line_no": [
7,
... | void FUNC_0(QemuMutex *VAR_0)
{
int VAR_1;
pthread_mutexattr_t mutexattr;
pthread_mutexattr_init(&mutexattr);
pthread_mutexattr_settype(&mutexattr, PTHREAD_MUTEX_ERRORCHECK);
VAR_1 = pthread_mutex_init(&VAR_0->lock, &mutexattr);
pthread_mutexattr_destroy(&mutexattr);
if (VAR_1)
... | [
"void FUNC_0(QemuMutex *VAR_0)\n{",
"int VAR_1;",
"pthread_mutexattr_t mutexattr;",
"pthread_mutexattr_init(&mutexattr);",
"pthread_mutexattr_settype(&mutexattr, PTHREAD_MUTEX_ERRORCHECK);",
"VAR_1 = pthread_mutex_init(&VAR_0->lock, &mutexattr);",
"pthread_mutexattr_destroy(&mutexattr);",
"if (VAR_1)\... | [
0,
0,
1,
1,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
]
] |
11,453 | static int old_codec47(SANMVideoContext *ctx, int top,
int left, int width, int height)
{
int i, j, seq, compr, new_rot, tbl_pos, skip;
int stride = ctx->pitch;
uint8_t *dst = ((uint8_t*)ctx->frm0) + left + top * stride;
uint8_t *prev1 = (uint8_t*)ctx->frm1;
uint8_t *pre... | true | FFmpeg | 7357ca900efcf829de4cce4cec6ddc286526d417 | static int old_codec47(SANMVideoContext *ctx, int top,
int left, int width, int height)
{
int i, j, seq, compr, new_rot, tbl_pos, skip;
int stride = ctx->pitch;
uint8_t *dst = ((uint8_t*)ctx->frm0) + left + top * stride;
uint8_t *prev1 = (uint8_t*)ctx->frm1;
uint8_t *pre... | {
"code": [],
"line_no": []
} | static int FUNC_0(SANMVideoContext *VAR_0, int VAR_1,
int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
int VAR_12 = VAR_0->pitch;
uint8_t *dst = ((uint8_t*)VAR_0->frm0) + VAR_2 + VAR_1 * VAR_12;
uint8_t *prev1 = (uint8_t*)VAR_0->frm1;... | [
"static int FUNC_0(SANMVideoContext *VAR_0, int VAR_1,\nint VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"int VAR_12 = VAR_0->pitch;",
"uint8_t *dst = ((uint8_t*)VAR_0->frm0) + VAR_2 + VAR_1 * VAR_12;",
"uint8_t *prev1 = (uint8_t*)VAR_0->frm1;",
"uint8_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],... |
11,454 | static av_cold int cinvideo_decode_end(AVCodecContext *avctx)
{
CinVideoContext *cin = avctx->priv_data;
int i;
if (cin->frame.data[0])
avctx->release_buffer(avctx, &cin->frame);
for (i = 0; i < 3; ++i)
av_free(cin->bitmap_table[i]);
return 0;
}
| true | FFmpeg | d8245c3bcdd162891825a52cf55e4e8173d85a18 | static av_cold int cinvideo_decode_end(AVCodecContext *avctx)
{
CinVideoContext *cin = avctx->priv_data;
int i;
if (cin->frame.data[0])
avctx->release_buffer(avctx, &cin->frame);
for (i = 0; i < 3; ++i)
av_free(cin->bitmap_table[i]);
return 0;
}
| {
"code": [
" int i;",
" for (i = 0; i < 3; ++i)",
" av_free(cin->bitmap_table[i]);"
],
"line_no": [
7,
17,
19
]
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
CinVideoContext *cin = avctx->priv_data;
int VAR_0;
if (cin->frame.data[0])
avctx->release_buffer(avctx, &cin->frame);
for (VAR_0 = 0; VAR_0 < 3; ++VAR_0)
av_free(cin->bitmap_table[VAR_0]);
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"CinVideoContext *cin = avctx->priv_data;",
"int VAR_0;",
"if (cin->frame.data[0])\navctx->release_buffer(avctx, &cin->frame);",
"for (VAR_0 = 0; VAR_0 < 3; ++VAR_0)",
"av_free(cin->bitmap_table[VAR_0]);",
"return 0;",
"}"
] | [
0,
0,
1,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
11,456 | static int vhost_virtqueue_start(struct vhost_dev *dev,
struct VirtIODevice *vdev,
struct vhost_virtqueue *vq,
unsigned idx)
{
BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));
VirtioBusState *vbus = VIR... | true | qemu | f1f9e6c5961ffb36fd4a81cd7edcded7bfad2ab2 | static int vhost_virtqueue_start(struct vhost_dev *dev,
struct VirtIODevice *vdev,
struct vhost_virtqueue *vq,
unsigned idx)
{
BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));
VirtioBusState *vbus = VIR... | {
"code": [
" s = l = virtio_queue_get_desc_size(vdev, idx);",
" a = virtio_queue_get_desc_addr(vdev, idx);",
" s = l = virtio_queue_get_avail_size(vdev, idx);",
" a = virtio_queue_get_avail_addr(vdev, idx);"
],
"line_no": [
87,
89,
101,
103
]
} | static int FUNC_0(struct vhost_dev *VAR_0,
struct VirtIODevice *VAR_1,
struct vhost_virtqueue *VAR_2,
unsigned VAR_3)
{
BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_1)));
VirtioBusState *vbus = VIRTIO_BU... | [
"static int FUNC_0(struct vhost_dev *VAR_0,\nstruct VirtIODevice *VAR_1,\nstruct vhost_virtqueue *VAR_2,\nunsigned VAR_3)\n{",
"BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_1)));",
"VirtioBusState *vbus = VIRTIO_BUS(qbus);",
"VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus);",
"hwaddr s, l, a;",
"int... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31,
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
11,458 | int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode,
const char *name, v9fs_synth_read read,
v9fs_synth_write write, void *arg)
{
int ret;
V9fsSynthNode *node, *tmp;
if (!v9fs_synth_fs) {
return EAGAIN;
}
if (!name... | true | qemu | a79b5f8b80890b402fdb0733b0a073695a7875b5 | int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode,
const char *name, v9fs_synth_read read,
v9fs_synth_write write, void *arg)
{
int ret;
V9fsSynthNode *node, *tmp;
if (!v9fs_synth_fs) {
return EAGAIN;
}
if (!name... | {
"code": [
" strncpy(node->name, name, sizeof(node->name));",
" strncpy(node->name, name, sizeof(node->name));"
],
"line_no": [
69,
69
]
} | int FUNC_0(V9fsSynthNode *VAR_0, int VAR_1,
const char *VAR_2, v9fs_synth_read VAR_3,
v9fs_synth_write VAR_4, void *VAR_5)
{
int VAR_6;
V9fsSynthNode *node, *tmp;
if (!v9fs_synth_fs) {
return EAGAIN;
}
if (!VAR_2 || (strlen... | [
"int FUNC_0(V9fsSynthNode *VAR_0, int VAR_1,\nconst char *VAR_2, v9fs_synth_read VAR_3,\nv9fs_synth_write VAR_4, void *VAR_5)\n{",
"int VAR_6;",
"V9fsSynthNode *node, *tmp;",
"if (!v9fs_synth_fs) {",
"return EAGAIN;",
"}",
"if (!VAR_2 || (strlen(VAR_2) >= NAME_MAX)) {",
"return EINVAL;",
"}",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
11,459 | PPC_OP(extsb)
{
T0 = (int32_t)((int8_t)(Ts0));
RETURN();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | PPC_OP(extsb)
{
T0 = (int32_t)((int8_t)(Ts0));
RETURN();
}
| {
"code": [
" RETURN();",
"PPC_OP(extsb)",
" T0 = (int32_t)((int8_t)(Ts0));",
" RETURN();"
],
"line_no": [
7,
1,
5,
7
]
} | FUNC_0(VAR_0)
{
T0 = (int32_t)((int8_t)(Ts0));
RETURN();
}
| [
"FUNC_0(VAR_0)\n{",
"T0 = (int32_t)((int8_t)(Ts0));",
"RETURN();",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
11,460 | static int qemu_rdma_broken_ipv6_kernel(Error **errp, struct ibv_context *verbs)
{
struct ibv_port_attr port_attr;
/* This bug only exists in linux, to our knowledge. */
#ifdef CONFIG_LINUX
/*
* Verbs are only NULL if management has bound to '[::]'.
*
* Let's iterate through all t... | true | qemu | 5b61d5752156dcbbe2bf1366c877a676ed9f8f51 | static int qemu_rdma_broken_ipv6_kernel(Error **errp, struct ibv_context *verbs)
{
struct ibv_port_attr port_attr;
#ifdef CONFIG_LINUX
int num_devices, x;
struct ibv_device ** dev_list = ibv_get_device_list(&num_devices);
bool roce_found = false;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(Error **VAR_0, struct ibv_context *VAR_1)
{
struct ibv_port_attr VAR_2;
#ifdef CONFIG_LINUX
int num_devices, x;
struct ibv_device ** dev_list = ibv_get_device_list(&num_devices);
bool roce_found = false;
bool ib_found = false;... | [
"static int FUNC_0(Error **VAR_0, struct ibv_context *VAR_1)\n{",
"struct ibv_port_attr VAR_2;",
"#ifdef CONFIG_LINUX\nint num_devices, x;",
"struct ibv_device ** dev_list = ibv_get_device_list(&num_devices);",
"bool roce_found = false;",
"bool ib_found = false;",
"for (x = 0; x < num_devices; x++) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11,
34
],
[
36
],
[
38
],
[
40
],
[
44
],
[
46
],
[
57
],
[
59
],
[
61
],
[
67
],
[
69
],
[
71
],
[
73
],
[
78
],
[
85
],
[
87
],
[
89,
9... |
11,461 | static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid,
unsigned int epid, unsigned int streamid)
{
XHCIStreamContext *stctx;
XHCIEPContext *epctx;
XHCIRing *ring;
USBEndpoint *ep = NULL;
uint64_t mfindex;
int length;
int i;
trace_usb_xhci_ep_k... | true | qemu | 4d7a81c06f5f17e019a2d3a18300500bd64f6f40 | static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid,
unsigned int epid, unsigned int streamid)
{
XHCIStreamContext *stctx;
XHCIEPContext *epctx;
XHCIRing *ring;
USBEndpoint *ep = NULL;
uint64_t mfindex;
int length;
int i;
trace_usb_xhci_ep_k... | {
"code": [
" if (xfer->iso_xfer) {",
" xhci_check_iso_kick(xhci, xfer, epctx, mfindex);",
" if (!xfer->iso_xfer) {"
],
"line_no": [
63,
69,
247
]
} | static void FUNC_0(XHCIState *VAR_0, unsigned int VAR_1,
unsigned int VAR_2, unsigned int VAR_3)
{
XHCIStreamContext *stctx;
XHCIEPContext *epctx;
XHCIRing *ring;
USBEndpoint *ep = NULL;
uint64_t mfindex;
int VAR_4;
int VAR_5;
trace_usb_xhci_ep_kick(V... | [
"static void FUNC_0(XHCIState *VAR_0, unsigned int VAR_1,\nunsigned int VAR_2, unsigned int VAR_3)\n{",
"XHCIStreamContext *stctx;",
"XHCIEPContext *epctx;",
"XHCIRing *ring;",
"USBEndpoint *ep = NULL;",
"uint64_t mfindex;",
"int VAR_4;",
"int VAR_5;",
"trace_usb_xhci_ep_kick(VAR_1, VAR_2, VAR_3);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
... |
11,462 | static int rv10_decode_init(AVCodecContext *avctx)
{
MpegEncContext *s = avctx->priv_data;
static int done=0;
MPV_decode_defaults(s);
s->avctx= avctx;
s->out_format = FMT_H263;
s->codec_id= avctx->codec_id;
s->width = avctx->width;
s->height = avctx->height;
swi... | true | FFmpeg | 073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1 | static int rv10_decode_init(AVCodecContext *avctx)
{
MpegEncContext *s = avctx->priv_data;
static int done=0;
MPV_decode_defaults(s);
s->avctx= avctx;
s->out_format = FMT_H263;
s->codec_id= avctx->codec_id;
s->width = avctx->width;
s->height = avctx->height;
swi... | {
"code": [
" if (!done) {",
" done = 1;",
" rv_lum_code, 2, 2);",
" rv_chrom_code, 2, 2);"
],
"line_no": [
119,
133,
125,
131
]
} | static int FUNC_0(AVCodecContext *VAR_0)
{
MpegEncContext *s = VAR_0->priv_data;
static int VAR_1=0;
MPV_decode_defaults(s);
s->VAR_0= VAR_0;
s->out_format = FMT_H263;
s->codec_id= VAR_0->codec_id;
s->width = VAR_0->width;
s->height = VAR_0->height;
switch(VAR_0... | [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"MpegEncContext *s = VAR_0->priv_data;",
"static int VAR_1=0;",
"MPV_decode_defaults(s);",
"s->VAR_0= VAR_0;",
"s->out_format = FMT_H263;",
"s->codec_id= VAR_0->codec_id;",
"s->width = VAR_0->width;",
"s->height = VAR_0->height;",
"switch(VAR_0->sub_i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51... |
11,463 | static uint64_t get_vb(ByteIOContext *bc){
uint64_t val=0;
int i= get_v(bc);
if(i>8)
return UINT64_MAX;
while(i--)
val = (val<<8) + get_byte(bc);
//av_log(NULL, AV_LOG_DEBUG, "get_vb()= %lld\n", val);
return val;
}
| true | FFmpeg | 568e18b15e2ddf494fd8926707d34ca08c8edce5 | static uint64_t get_vb(ByteIOContext *bc){
uint64_t val=0;
int i= get_v(bc);
if(i>8)
return UINT64_MAX;
while(i--)
val = (val<<8) + get_byte(bc);
return val;
}
| {
"code": [
" int i= get_v(bc);"
],
"line_no": [
5
]
} | static uint64_t FUNC_0(ByteIOContext *bc){
uint64_t val=0;
int VAR_0= get_v(bc);
if(VAR_0>8)
return UINT64_MAX;
while(VAR_0--)
val = (val<<8) + get_byte(bc);
return val;
}
| [
"static uint64_t FUNC_0(ByteIOContext *bc){",
"uint64_t val=0;",
"int VAR_0= get_v(bc);",
"if(VAR_0>8)\nreturn UINT64_MAX;",
"while(VAR_0--)\nval = (val<<8) + get_byte(bc);",
"return val;",
"}"
] | [
0,
0,
1,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
9,
11
],
[
15,
17
],
[
23
],
[
25
]
] |
11,464 | static void qvirtio_pci_virtqueue_kick(QVirtioDevice *d, QVirtQueue *vq)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
qpci_io_writew(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_NOTIFY, vq->index);
}
| true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | static void qvirtio_pci_virtqueue_kick(QVirtioDevice *d, QVirtQueue *vq)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
qpci_io_writew(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_NOTIFY, vq->index);
}
| {
"code": [
" qpci_io_writew(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_NOTIFY, vq->index);"
],
"line_no": [
7
]
} | static void FUNC_0(QVirtioDevice *VAR_0, QVirtQueue *VAR_1)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)VAR_0;
qpci_io_writew(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_NOTIFY, VAR_1->index);
}
| [
"static void FUNC_0(QVirtioDevice *VAR_0, QVirtQueue *VAR_1)\n{",
"QVirtioPCIDevice *dev = (QVirtioPCIDevice *)VAR_0;",
"qpci_io_writew(dev->pdev, dev->addr + VIRTIO_PCI_QUEUE_NOTIFY, VAR_1->index);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
11,465 | static av_always_inline void decode_bgr_1(HYuvContext *s, int count,
int decorrelate, int alpha)
{
int i;
OPEN_READER(re, &s->gb);
for (i = 0; i < count && get_bits_left(&s->gb) > 0; i++) {
unsigned int index;
int code, n;
UPDATE_... | true | FFmpeg | 5439959ef013670d8974e88acb85bd03055a6229 | static av_always_inline void decode_bgr_1(HYuvContext *s, int count,
int decorrelate, int alpha)
{
int i;
OPEN_READER(re, &s->gb);
for (i = 0; i < count && get_bits_left(&s->gb) > 0; i++) {
unsigned int index;
int code, n;
UPDATE_... | {
"code": [],
"line_no": []
} | static av_always_inline void FUNC_0(HYuvContext *s, int count,
int decorrelate, int alpha)
{
int VAR_0;
OPEN_READER(re, &s->gb);
for (VAR_0 = 0; VAR_0 < count && get_bits_left(&s->gb) > 0; VAR_0++) {
unsigned int index;
int code, n;
... | [
"static av_always_inline void FUNC_0(HYuvContext *s, int count,\nint decorrelate, int alpha)\n{",
"int VAR_0;",
"OPEN_READER(re, &s->gb);",
"for (VAR_0 = 0; VAR_0 < count && get_bits_left(&s->gb) > 0; VAR_0++) {",
"unsigned int index;",
"int code, n;",
"UPDATE_CACHE(re, &s->gb);",
"index = SHOW_UBITS(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
49
],
[
51
... |
11,466 | static void virtio_balloon_receive_stats(VirtIODevice *vdev, VirtQueue *vq)
{
VirtIOBalloon *s = VIRTIO_BALLOON(vdev);
VirtQueueElement *elem;
VirtIOBalloonStat stat;
size_t offset = 0;
qemu_timeval tv;
s->stats_vq_elem = elem = virtqueue_pop(vq, sizeof(VirtQueueElement));
if (!ele... | true | qemu | 4eae2a657d1ff5ada56eb9b4966eae0eff333b0b | static void virtio_balloon_receive_stats(VirtIODevice *vdev, VirtQueue *vq)
{
VirtIOBalloon *s = VIRTIO_BALLOON(vdev);
VirtQueueElement *elem;
VirtIOBalloonStat stat;
size_t offset = 0;
qemu_timeval tv;
s->stats_vq_elem = elem = virtqueue_pop(vq, sizeof(VirtQueueElement));
if (!ele... | {
"code": [
" s->stats_vq_elem = elem = virtqueue_pop(vq, sizeof(VirtQueueElement));"
],
"line_no": [
17
]
} | static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)
{
VirtIOBalloon *s = VIRTIO_BALLOON(VAR_0);
VirtQueueElement *elem;
VirtIOBalloonStat stat;
size_t offset = 0;
qemu_timeval tv;
s->stats_vq_elem = elem = virtqueue_pop(VAR_1, sizeof(VirtQueueElement));
if (!elem) {
... | [
"static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{",
"VirtIOBalloon *s = VIRTIO_BALLOON(VAR_0);",
"VirtQueueElement *elem;",
"VirtIOBalloonStat stat;",
"size_t offset = 0;",
"qemu_timeval tv;",
"s->stats_vq_elem = elem = virtqueue_pop(VAR_1, sizeof(VirtQueueElement));",
"if (!elem) {",
"g... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
49
],
[
51,
53
],
[
55
],
[
57
],
[
61
... |
11,467 | static int vmdk_write(BlockDriverState *bs, int64_t sector_num,
const uint8_t *buf, int nb_sectors)
{
BDRVVmdkState *s = bs->opaque;
VmdkExtent *extent = NULL;
int n, ret;
int64_t index_in_cluster;
uint64_t cluster_offset;
VmdkMetaData m_data;
if (sector_num >... | true | qemu | b1649fae49a899a222c3ac53c5009dd6f23349e1 | static int vmdk_write(BlockDriverState *bs, int64_t sector_num,
const uint8_t *buf, int nb_sectors)
{
BDRVVmdkState *s = bs->opaque;
VmdkExtent *extent = NULL;
int n, ret;
int64_t index_in_cluster;
uint64_t cluster_offset;
VmdkMetaData m_data;
if (sector_num >... | {
"code": [
" index_in_cluster = sector_num % extent->cluster_sectors;",
" index_in_cluster = sector_num % extent->cluster_sectors;"
],
"line_no": [
99,
99
]
} | static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,
const uint8_t *VAR_2, int VAR_3)
{
BDRVVmdkState *s = VAR_0->opaque;
VmdkExtent *extent = NULL;
int VAR_4, VAR_5;
int64_t index_in_cluster;
uint64_t cluster_offset;
VmdkMetaData m_data;
if (VAR_1 > VAR_... | [
"static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{",
"BDRVVmdkState *s = VAR_0->opaque;",
"VmdkExtent *extent = NULL;",
"int VAR_4, VAR_5;",
"int64_t index_in_cluster;",
"uint64_t cluster_offset;",
"VmdkMetaData m_data;",
"if (VAR_1 > VAR_0->total_sectors) ... | [
0,
0,
0,
0,
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25,
27,
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49,
51,... |
11,470 | av_cold void ff_fft_init_mmx(FFTContext *s)
{
#if HAVE_YASM
int has_vectors = av_get_cpu_flags();
#if ARCH_X86_32
if (has_vectors & AV_CPU_FLAG_3DNOW && HAVE_AMD3DNOW) {
/* 3DNow! for K6-2/3 */
s->imdct_calc = ff_imdct_calc_3dnow;
s->imdct_half = ff_imdct_half_3dnow;
s->... | false | FFmpeg | e0c6cce44729d94e2a5507a4b6d031f23e8bd7b6 | av_cold void ff_fft_init_mmx(FFTContext *s)
{
#if HAVE_YASM
int has_vectors = av_get_cpu_flags();
#if ARCH_X86_32
if (has_vectors & AV_CPU_FLAG_3DNOW && HAVE_AMD3DNOW) {
s->imdct_calc = ff_imdct_calc_3dnow;
s->imdct_half = ff_imdct_half_3dnow;
s->fft_calc = ff_fft_cal... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(FFTContext *s)
{
#if HAVE_YASM
int has_vectors = av_get_cpu_flags();
#if ARCH_X86_32
if (has_vectors & AV_CPU_FLAG_3DNOW && HAVE_AMD3DNOW) {
s->imdct_calc = ff_imdct_calc_3dnow;
s->imdct_half = ff_imdct_half_3dnow;
s->fft_calc = ff_fft_calc_3dnow;
... | [
"av_cold void FUNC_0(FFTContext *s)\n{",
"#if HAVE_YASM\nint has_vectors = av_get_cpu_flags();",
"#if ARCH_X86_32\nif (has_vectors & AV_CPU_FLAG_3DNOW && HAVE_AMD3DNOW) {",
"s->imdct_calc = ff_imdct_calc_3dnow;",
"s->imdct_half = ff_imdct_half_3dnow;",
"s->fft_calc = ff_fft_calc_3dnow;",
"}",
"if (h... | [
0,
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
11,471 | void put_no_rnd_pixels8_xy2_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h)
{
POWERPC_TBL_DECLARE(altivec_put_no_rnd_pixels8_xy2_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
int j;
POWERPC_TBL_START_COUNT(altivec_put_no_rnd_pixels8_xy2_num, 1);
for (j = 0; j < 2; j++) {
int i;
... | false | FFmpeg | e45a2872fafe631c14aee9f79d0963d68c4fc1fd | void put_no_rnd_pixels8_xy2_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h)
{
POWERPC_TBL_DECLARE(altivec_put_no_rnd_pixels8_xy2_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
int j;
POWERPC_TBL_START_COUNT(altivec_put_no_rnd_pixels8_xy2_num, 1);
for (j = 0; j < 2; j++) {
int i;
... | {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3)
{
POWERPC_TBL_DECLARE(altivec_put_no_rnd_pixels8_xy2_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
int j;
POWERPC_TBL_START_COUNT(altivec_put_no_rnd_pixels8_xy2_num, 1);
for (j = 0; j < 2; j++) {
int VAR_4;
const uint32_t... | [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3)\n{",
"POWERPC_TBL_DECLARE(altivec_put_no_rnd_pixels8_xy2_num, 1);",
"#ifdef ALTIVEC_USE_REFERENCE_C_CODE\nint j;",
"POWERPC_TBL_START_COUNT(altivec_put_no_rnd_pixels8_xy2_num, 1);",
"for (j = 0; j < 2; j++) {",
"int VAR_4;",
"const... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,... |
11,472 | static void put_subframe_samples(DCAEncContext *c, int ss, int band, int ch)
{
if (c->abits[band][ch] <= 7) {
int sum, i, j;
for (i = 0; i < 8; i += 4) {
sum = 0;
for (j = 3; j >= 0; j--) {
sum *= ff_dca_quant_levels[c->abits[band][ch]];
... | false | FFmpeg | a6191d098a03f94685ae4c072bfdf10afcd86223 | static void put_subframe_samples(DCAEncContext *c, int ss, int band, int ch)
{
if (c->abits[band][ch] <= 7) {
int sum, i, j;
for (i = 0; i < 8; i += 4) {
sum = 0;
for (j = 3; j >= 0; j--) {
sum *= ff_dca_quant_levels[c->abits[band][ch]];
... | {
"code": [],
"line_no": []
} | static void FUNC_0(DCAEncContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
if (VAR_0->abits[VAR_2][VAR_3] <= 7) {
int VAR_4, VAR_7, VAR_6;
for (VAR_7 = 0; VAR_7 < 8; VAR_7 += 4) {
VAR_4 = 0;
for (VAR_6 = 3; VAR_6 >= 0; VAR_6--) {
VAR_4 *= ff_dca_quant_... | [
"static void FUNC_0(DCAEncContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"if (VAR_0->abits[VAR_2][VAR_3] <= 7) {",
"int VAR_4, VAR_7, VAR_6;",
"for (VAR_7 = 0; VAR_7 < 8; VAR_7 += 4) {",
"VAR_4 = 0;",
"for (VAR_6 = 3; VAR_6 >= 0; VAR_6--) {",
"VAR_4 *= ff_dca_quant_levels[VAR_0->abits[VAR_2][VAR_... | [
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
... |
11,473 | static int sbr_make_f_master(AACContext *ac, SpectralBandReplication *sbr,
SpectrumParameters *spectrum)
{
unsigned int temp, max_qmf_subbands = 0;
unsigned int start_min, stop_min;
int k;
const int8_t *sbr_offset_ptr;
int16_t stop_dk[13];
if (sbr->sample_r... | false | FFmpeg | ba30b74686f0cb6c9dd465ac4820059c48bf9d08 | static int sbr_make_f_master(AACContext *ac, SpectralBandReplication *sbr,
SpectrumParameters *spectrum)
{
unsigned int temp, max_qmf_subbands = 0;
unsigned int start_min, stop_min;
int k;
const int8_t *sbr_offset_ptr;
int16_t stop_dk[13];
if (sbr->sample_r... | {
"code": [],
"line_no": []
} | static int FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1,
SpectrumParameters *VAR_2)
{
unsigned int VAR_3, VAR_4 = 0;
unsigned int VAR_5, VAR_6;
int VAR_7;
const int8_t *VAR_8;
int16_t stop_dk[13];
if (VAR_1->sample_rate < 32000) {
VAR_3... | [
"static int FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1,\nSpectrumParameters *VAR_2)\n{",
"unsigned int VAR_3, VAR_4 = 0;",
"unsigned int VAR_5, VAR_6;",
"int VAR_7;",
"const int8_t *VAR_8;",
"int16_t stop_dk[13];",
"if (VAR_1->sample_rate < 32000) {",
"VAR_3 = 3000;",
"} else if (VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[... |
11,474 | BlockDriverAIOCB *bdrv_aio_write(BlockDriverState *bs, int64_t sector_num,
const uint8_t *buf, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BlockDriver *drv = bs->drv;
BlockDriverAIOCB *ret;
if (!drv)
return... | true | qemu | b5eff355460643d09e533024360fe0522f368c07 | BlockDriverAIOCB *bdrv_aio_write(BlockDriverState *bs, int64_t sector_num,
const uint8_t *buf, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BlockDriver *drv = bs->drv;
BlockDriverAIOCB *ret;
if (!drv)
return... | {
"code": [
" if (bdrv_wr_badreq_sectors(bs, sector_num, nb_sectors))",
" if (bdrv_wr_badreq_sectors(bs, sector_num, nb_sectors))",
" return NULL;",
" if (bdrv_wr_badreq_sectors(bs, sector_num, nb_sectors))",
" return NULL;"
],
"line_no": [
23,
23,
17,
23... | BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num,
const uint8_t *buf, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BlockDriver *drv = bs->drv;
BlockDriverAIOCB *ret;
if (!drv)
return NULL;
... | [
"BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num,\nconst uint8_t *buf, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque)\n{",
"BlockDriver *drv = bs->drv;",
"BlockDriverAIOCB *ret;",
"if (!drv)\nreturn NULL;",
"if (bs->read_only)\nreturn NULL;",
"if (bdrv_wr_badreq_sectors(bs... | [
0,
0,
0,
1,
0,
1,
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
],
[
35
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
]
] |
11,475 | target_ulong helper_madd32_suov(CPUTriCoreState *env, target_ulong r1,
target_ulong r2, target_ulong r3)
{
uint64_t t1 = extract64(r1, 0, 32);
uint64_t t2 = extract64(r2, 0, 32);
uint64_t t3 = extract64(r3, 0, 32);
int64_t result;
result = t2 + (t1 * t3);
... | true | qemu | 85d604af5f96c32734af9974ec6ddb625b6716a2 | target_ulong helper_madd32_suov(CPUTriCoreState *env, target_ulong r1,
target_ulong r2, target_ulong r3)
{
uint64_t t1 = extract64(r1, 0, 32);
uint64_t t2 = extract64(r2, 0, 32);
uint64_t t3 = extract64(r3, 0, 32);
int64_t result;
result = t2 + (t1 * t3);
... | {
"code": [
" return suov32(env, result);",
" return suov32(env, result);",
" return suov32(env, result);",
" return suov32(env, result);",
" return suov32(env, result);"
],
"line_no": [
19,
19,
19,
19,
19
]
} | target_ulong FUNC_0(CPUTriCoreState *env, target_ulong r1,
target_ulong r2, target_ulong r3)
{
uint64_t t1 = extract64(r1, 0, 32);
uint64_t t2 = extract64(r2, 0, 32);
uint64_t t3 = extract64(r3, 0, 32);
int64_t result;
result = t2 + (t1 * t3);
return suo... | [
"target_ulong FUNC_0(CPUTriCoreState *env, target_ulong r1,\ntarget_ulong r2, target_ulong r3)\n{",
"uint64_t t1 = extract64(r1, 0, 32);",
"uint64_t t2 = extract64(r2, 0, 32);",
"uint64_t t3 = extract64(r3, 0, 32);",
"int64_t result;",
"result = t2 + (t1 * t3);",
"return suov32(env, result);",
"}"
] | [
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
]
] |
11,476 | void do_addmeo (void)
{
T1 = T0;
T0 += xer_ca + (-1);
if (likely(!((uint32_t)T1 &
((uint32_t)T1 ^ (uint32_t)T0) & (1UL << 31)))) {
xer_ov = 0;
} else {
xer_ov = 1;
xer_so = 1;
}
if (likely(T1 != 0))
xer_ca = 1;
}
| true | qemu | c3e10c7b4377c1cbc0a4fbc12312c2cf41c0cda7 | void do_addmeo (void)
{
T1 = T0;
T0 += xer_ca + (-1);
if (likely(!((uint32_t)T1 &
((uint32_t)T1 ^ (uint32_t)T0) & (1UL << 31)))) {
xer_ov = 0;
} else {
xer_ov = 1;
xer_so = 1;
}
if (likely(T1 != 0))
xer_ca = 1;
}
| {
"code": [
" xer_ov = 0;",
" } else {",
" xer_ov = 1;",
" xer_so = 1;",
" xer_ov = 0;",
" } else {",
" xer_ov = 1;",
" xer_so = 1;",
" xer_ov = 0;",
" } else {",
" xer_ov = 1;",
" xer_so = 1;",
... | void FUNC_0 (void)
{
T1 = T0;
T0 += xer_ca + (-1);
if (likely(!((uint32_t)T1 &
((uint32_t)T1 ^ (uint32_t)T0) & (1UL << 31)))) {
xer_ov = 0;
} else {
xer_ov = 1;
xer_so = 1;
}
if (likely(T1 != 0))
xer_ca = 1;
}
| [
"void FUNC_0 (void)\n{",
"T1 = T0;",
"T0 += xer_ca + (-1);",
"if (likely(!((uint32_t)T1 &\n((uint32_t)T1 ^ (uint32_t)T0) & (1UL << 31)))) {",
"xer_ov = 0;",
"} else {",
"xer_ov = 1;",
"xer_so = 1;",
"}",
"if (likely(T1 != 0))\nxer_ca = 1;",
"}"
] | [
0,
0,
0,
1,
1,
0,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
]
] |
11,477 | static void xtensa_cpu_realizefn(DeviceState *dev, Error **errp)
{
CPUState *cs = CPU(dev);
XtensaCPUClass *xcc = XTENSA_CPU_GET_CLASS(dev);
cs->gdb_num_regs = xcc->config->gdb_regmap.num_regs;
xcc->parent_realize(dev, errp);
} | true | qemu | 14a10fc39923b3af07c8c46d22cb20843bee3a72 | static void xtensa_cpu_realizefn(DeviceState *dev, Error **errp)
{
CPUState *cs = CPU(dev);
XtensaCPUClass *xcc = XTENSA_CPU_GET_CLASS(dev);
cs->gdb_num_regs = xcc->config->gdb_regmap.num_regs;
xcc->parent_realize(dev, errp);
} | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
CPUState *cs = CPU(VAR_0);
XtensaCPUClass *xcc = XTENSA_CPU_GET_CLASS(VAR_0);
cs->gdb_num_regs = xcc->config->gdb_regmap.num_regs;
xcc->parent_realize(VAR_0, VAR_1);
} | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"CPUState *cs = CPU(VAR_0);",
"XtensaCPUClass *xcc = XTENSA_CPU_GET_CLASS(VAR_0);",
"cs->gdb_num_regs = xcc->config->gdb_regmap.num_regs;",
"xcc->parent_realize(VAR_0, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
]
] |
11,478 | static void mov_build_index(MOVContext *mov, AVStream *st)
{
MOVStreamContext *sc = st->priv_data;
int64_t current_offset;
int64_t current_dts = 0;
unsigned int stts_index = 0;
unsigned int stsc_index = 0;
unsigned int stss_index = 0;
unsigned int stps_index = 0;
unsigned int i,... | true | FFmpeg | 69e7ad8dbc9896aff70f1f1125c726764f28455f | static void mov_build_index(MOVContext *mov, AVStream *st)
{
MOVStreamContext *sc = st->priv_data;
int64_t current_offset;
int64_t current_dts = 0;
unsigned int stts_index = 0;
unsigned int stsc_index = 0;
unsigned int stss_index = 0;
unsigned int stps_index = 0;
unsigned int i,... | {
"code": [
" if (sc->ctts_data && sc->stts_data &&"
],
"line_no": [
35
]
} | static void FUNC_0(MOVContext *VAR_0, AVStream *VAR_1)
{
MOVStreamContext *sc = VAR_1->priv_data;
int64_t current_offset;
int64_t current_dts = 0;
unsigned int VAR_2 = 0;
unsigned int VAR_3 = 0;
unsigned int VAR_4 = 0;
unsigned int VAR_5 = 0;
unsigned int VAR_6, VAR_7;
uint... | [
"static void FUNC_0(MOVContext *VAR_0, AVStream *VAR_1)\n{",
"MOVStreamContext *sc = VAR_1->priv_data;",
"int64_t current_offset;",
"int64_t current_dts = 0;",
"unsigned int VAR_2 = 0;",
"unsigned int VAR_3 = 0;",
"unsigned int VAR_4 = 0;",
"unsigned int VAR_5 = 0;",
"unsigned int VAR_6, VAR_7;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
43
],
[
45
],
[
47
],
[
49
],
[
55,... |
11,479 | int MPV_common_init(MpegEncContext *s)
{
int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y, threads;
s->mb_height = (s->height + 15) / 16;
if(s->avctx->thread_count > MAX_THREADS || (s->avctx->thread_count > s->mb_height && s->mb_height)){
av_log(s->avctx, AV_LOG_ERROR, "to... | true | FFmpeg | 79db7ac6ef235a06c3049d7792eda39da28ee3fd | int MPV_common_init(MpegEncContext *s)
{
int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y, threads;
s->mb_height = (s->height + 15) / 16;
if(s->avctx->thread_count > MAX_THREADS || (s->avctx->thread_count > s->mb_height && s->mb_height)){
av_log(s->avctx, AV_LOG_ERROR, "to... | {
"code": [
" threads = s->codec_id == CODEC_ID_H264 ? 1 : s->avctx->thread_count;"
],
"line_no": [
347
]
} | int FUNC_0(MpegEncContext *VAR_0)
{
int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
VAR_0->mb_height = (VAR_0->height + 15) / 16;
if(VAR_0->avctx->thread_count > MAX_THREADS || (VAR_0->avctx->thread_count > VAR_0->mb_height && VAR_0->mb_height)){
av_log(VAR_0->avctx, AV_L... | [
"int FUNC_0(MpegEncContext *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"VAR_0->mb_height = (VAR_0->height + 15) / 16;",
"if(VAR_0->avctx->thread_count > MAX_THREADS || (VAR_0->avctx->thread_count > VAR_0->mb_height && VAR_0->mb_height)){",
"av_log(VAR_0->avctx, AV_LOG_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
57,
59... |
11,480 | static void read_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)
{
ALSSpecificConfig *sconf = &ctx->sconf;
AVCodecContext *avctx = ctx->avctx;
GetBitContext *gb = &ctx->gb;
*bd->raw_samples = 0;
*bd->const_block = get_bits1(gb); // 1 = constant value, 0 = zero block (sile... | false | FFmpeg | 0ceca269b66ec12a23bf0907bd2c220513cdbf16 | static void read_const_block_data(ALSDecContext *ctx, ALSBlockData *bd)
{
ALSSpecificConfig *sconf = &ctx->sconf;
AVCodecContext *avctx = ctx->avctx;
GetBitContext *gb = &ctx->gb;
*bd->raw_samples = 0;
*bd->const_block = get_bits1(gb);
bd->js_blocks = get_bits1(gb);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)
{
ALSSpecificConfig *sconf = &VAR_0->sconf;
AVCodecContext *avctx = VAR_0->avctx;
GetBitContext *gb = &VAR_0->gb;
*VAR_1->raw_samples = 0;
*VAR_1->const_block = get_bits1(gb);
VAR_1->js_blocks = get_bits1(gb)... | [
"static void FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)\n{",
"ALSSpecificConfig *sconf = &VAR_0->sconf;",
"AVCodecContext *avctx = VAR_0->avctx;",
"GetBitContext *gb = &VAR_0->gb;",
"*VAR_1->raw_samples = 0;",
"*VAR_1->const_block = get_bits1(gb);",
"VAR_1->js_blocks = get_bits1(gb);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
]
] |
11,481 | static int MP3lame_encode_frame(AVCodecContext *avctx,
unsigned char *frame, int buf_size, void *data)
{
Mp3AudioContext *s = avctx->priv_data;
int len;
int lame_result;
/* lame 3.91 dies on '1-channel interleaved' data */
if(data){
if (s->stereo) ... | false | FFmpeg | 2083648383d93917d482e69dd33e46cbd8404d31 | static int MP3lame_encode_frame(AVCodecContext *avctx,
unsigned char *frame, int buf_size, void *data)
{
Mp3AudioContext *s = avctx->priv_data;
int len;
int lame_result;
if(data){
if (s->stereo) {
lame_result = lame_encode_buffer_inte... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
unsigned char *VAR_1, int VAR_2, void *VAR_3)
{
Mp3AudioContext *s = VAR_0->priv_data;
int VAR_4;
int VAR_5;
if(VAR_3){
if (s->stereo) {
VAR_5 = lame_encode_buffer_interleaved(
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nunsigned char *VAR_1, int VAR_2, void *VAR_3)\n{",
"Mp3AudioContext *s = VAR_0->priv_data;",
"int VAR_4;",
"int VAR_5;",
"if(VAR_3){",
"if (s->stereo) {",
"VAR_5 = lame_encode_buffer_interleaved(\ns->gfp,\nVAR_3,\nVAR_0->frame_size,\ns->buffer + s->buffer_index... | [
0,
0,
0,
0,
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
],
[
19
],
[
21
],
[
23,
25,
27,
29,
31,
33,
35
],
[
37
],
[
39,
41,
43,
45,
47,
49,
51,
53
],
[
55
],
[
57
],
[
59,
61,
63,... |
11,482 | static void lx_init(const LxBoardDesc *board, MachineState *machine)
{
#ifdef TARGET_WORDS_BIGENDIAN
int be = 1;
#else
int be = 0;
#endif
MemoryRegion *system_memory = get_system_memory();
XtensaCPU *cpu = NULL;
CPUXtensaState *env = NULL;
MemoryRegion *ram, *rom, *system_io;
Driv... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static void lx_init(const LxBoardDesc *board, MachineState *machine)
{
#ifdef TARGET_WORDS_BIGENDIAN
int be = 1;
#else
int be = 0;
#endif
MemoryRegion *system_memory = get_system_memory();
XtensaCPU *cpu = NULL;
CPUXtensaState *env = NULL;
MemoryRegion *ram, *rom, *system_io;
Driv... | {
"code": [
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" ... | static void FUNC_0(const LxBoardDesc *VAR_0, MachineState *VAR_1)
{
#ifdef TARGET_WORDS_BIGENDIAN
int VAR_2 = 1;
#else
int VAR_2 = 0;
#endif
MemoryRegion *system_memory = get_system_memory();
XtensaCPU *cpu = NULL;
CPUXtensaState *env = NULL;
MemoryRegion *ram, *rom, *system_io;
D... | [
"static void FUNC_0(const LxBoardDesc *VAR_0, MachineState *VAR_1)\n{",
"#ifdef TARGET_WORDS_BIGENDIAN\nint VAR_2 = 1;",
"#else\nint VAR_2 = 0;",
"#endif\nMemoryRegion *system_memory = get_system_memory();",
"XtensaCPU *cpu = NULL;",
"CPUXtensaState *env = NULL;",
"MemoryRegion *ram, *rom, *system_io;",... | [
0,
0,
0,
0,
0,
0,
0,
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,
1... | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[... |
11,483 | USBDevice *usb_bt_init(HCIInfo *hci)
{
USBDevice *dev;
struct USBBtState *s;
if (!hci)
dev = usb_create_simple(NULL /* FIXME */, "usb-bt-dongle");
s = DO_UPCAST(struct USBBtState, dev, dev);
s->dev.opaque = s;
s->hci = hci;
s->hci->opaque = s;
s->hci->evt_recv = usb... | true | qemu | 2af2a1b8d05a1a64c5005ed930137632b9d5aa22 | USBDevice *usb_bt_init(HCIInfo *hci)
{
USBDevice *dev;
struct USBBtState *s;
if (!hci)
dev = usb_create_simple(NULL , "usb-bt-dongle");
s = DO_UPCAST(struct USBBtState, dev, dev);
s->dev.opaque = s;
s->hci = hci;
s->hci->opaque = s;
s->hci->evt_recv = usb_bt_out_hci... | {
"code": [],
"line_no": []
} | USBDevice *FUNC_0(HCIInfo *hci)
{
USBDevice *dev;
struct USBBtState *VAR_0;
if (!hci)
dev = usb_create_simple(NULL , "usb-bt-dongle");
VAR_0 = DO_UPCAST(struct USBBtState, dev, dev);
VAR_0->dev.opaque = VAR_0;
VAR_0->hci = hci;
VAR_0->hci->opaque = VAR_0;
VAR_0->hci... | [
"USBDevice *FUNC_0(HCIInfo *hci)\n{",
"USBDevice *dev;",
"struct USBBtState *VAR_0;",
"if (!hci)\ndev = usb_create_simple(NULL , \"usb-bt-dongle\");",
"VAR_0 = DO_UPCAST(struct USBBtState, dev, dev);",
"VAR_0->dev.opaque = VAR_0;",
"VAR_0->hci = hci;",
"VAR_0->hci->opaque = VAR_0;",
"VAR_0->hci->evt... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
14
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
]
] |
11,484 | static void term_up_char(void)
{
int idx;
if (term_hist_entry == 0)
return;
if (term_hist_entry == -1) {
/* Find latest entry */
for (idx = 0; idx < TERM_MAX_CMDS; idx++) {
if (term_history[idx] == NULL)
break;
}
term_hist_entry = idx;
}
term_hist_entry--;
if (term_hi... | true | qemu | 95ce326e5b47b4b841849f8a2ac7b96d6e204dfb | static void term_up_char(void)
{
int idx;
if (term_hist_entry == 0)
return;
if (term_hist_entry == -1) {
for (idx = 0; idx < TERM_MAX_CMDS; idx++) {
if (term_history[idx] == NULL)
break;
}
term_hist_entry = idx;
}
term_hist_entry--;
if (term_hist_entry >= 0) {
strc... | {
"code": [
"\tstrcpy(term_cmd_buf, term_history[term_hist_entry]);",
"\tstrcpy(term_cmd_buf, term_history[term_hist_entry]);"
],
"line_no": [
33,
33
]
} | static void FUNC_0(void)
{
int VAR_0;
if (term_hist_entry == 0)
return;
if (term_hist_entry == -1) {
for (VAR_0 = 0; VAR_0 < TERM_MAX_CMDS; VAR_0++) {
if (term_history[VAR_0] == NULL)
break;
}
term_hist_entry = VAR_0;
}
term_hist_entry--;
if (term_hist_entry >= 0) {
... | [
"static void FUNC_0(void)\n{",
"int VAR_0;",
"if (term_hist_entry == 0)\nreturn;",
"if (term_hist_entry == -1) {",
"for (VAR_0 = 0; VAR_0 < TERM_MAX_CMDS; VAR_0++) {",
"if (term_history[VAR_0] == NULL)\nbreak;",
"}",
"term_hist_entry = VAR_0;",
"}",
"term_hist_entry--;",
"if (term_hist_entry >= ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
11,485 | static int vf_open(vf_instance_t *vf, char *args)
{
vf->config=config;
vf->query_format=query_format;
vf->put_image=put_image;
vf->uninit=uninit;
vf->priv = calloc(1, sizeof (struct vf_priv_s));
vf->priv->skipline = 0;
vf->priv->scalew = 1;
vf->... | true | FFmpeg | 2f11aa141a01f97c5d2a015bd9dbdb27314b79c4 | static int vf_open(vf_instance_t *vf, char *args)
{
vf->config=config;
vf->query_format=query_format;
vf->put_image=put_image;
vf->uninit=uninit;
vf->priv = calloc(1, sizeof (struct vf_priv_s));
vf->priv->skipline = 0;
vf->priv->scalew = 1;
vf->... | {
"code": [
"static int vf_open(vf_instance_t *vf, char *args)",
" vf->config=config;",
" vf->query_format=query_format;",
" vf->put_image=put_image;",
" vf->uninit=uninit;",
" vf->priv = calloc(1, sizeof (struct vf_priv_s));",
" vf->priv->skipline... | static int FUNC_0(vf_instance_t *VAR_0, char *VAR_1)
{
VAR_0->config=config;
VAR_0->query_format=query_format;
VAR_0->put_image=put_image;
VAR_0->uninit=uninit;
VAR_0->priv = calloc(1, sizeof (struct vf_priv_s));
VAR_0->priv->skipline = 0;
VAR_0->priv->s... | [
"static int FUNC_0(vf_instance_t *VAR_0, char *VAR_1)\n{",
"VAR_0->config=config;",
"VAR_0->query_format=query_format;",
"VAR_0->put_image=put_image;",
"VAR_0->uninit=uninit;",
"VAR_0->priv = calloc(1, sizeof (struct vf_priv_s));",
"VAR_0->priv->skipline = 0;",
"VAR_0->priv->scalew = 1;",
"VAR_0->pr... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
11,486 | static void coroutine_fn v9fs_link(void *opaque)
{
V9fsPDU *pdu = opaque;
int32_t dfid, oldfid;
V9fsFidState *dfidp, *oldfidp;
V9fsString name;
size_t offset = 7;
int err = 0;
v9fs_string_init(&name);
err = pdu_unmarshal(pdu, offset, "dds", &dfid, &oldfid, &name);
if (err... | true | qemu | 4c1586787ff43c9acd18a56c12d720e3e6be9f7c | static void coroutine_fn v9fs_link(void *opaque)
{
V9fsPDU *pdu = opaque;
int32_t dfid, oldfid;
V9fsFidState *dfidp, *oldfidp;
V9fsString name;
size_t offset = 7;
int err = 0;
v9fs_string_init(&name);
err = pdu_unmarshal(pdu, offset, "dds", &dfid, &oldfid, &name);
if (err... | {
"code": [],
"line_no": []
} | static void VAR_0 v9fs_link(void *opaque)
{
V9fsPDU *pdu = opaque;
int32_t dfid, oldfid;
V9fsFidState *dfidp, *oldfidp;
V9fsString name;
size_t offset = 7;
int err = 0;
v9fs_string_init(&name);
err = pdu_unmarshal(pdu, offset, "dds", &dfid, &oldfid, &name);
if (err < 0) {... | [
"static void VAR_0 v9fs_link(void *opaque)\n{",
"V9fsPDU *pdu = opaque;",
"int32_t dfid, oldfid;",
"V9fsFidState *dfidp, *oldfidp;",
"V9fsString name;",
"size_t offset = 7;",
"int err = 0;",
"v9fs_string_init(&name);",
"err = pdu_unmarshal(pdu, offset, \"dds\", &dfid, &oldfid, &name);",
"if (err <... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
... |
11,487 | static void port92_class_initfn(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->no_user = 1;
dc->realize = port92_realizefn;
dc->reset = port92_reset;
dc->vmsd = &vmstate_port92_isa;
}
| true | qemu | efec3dd631d94160288392721a5f9c39e50fb2bc | static void port92_class_initfn(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->no_user = 1;
dc->realize = port92_realizefn;
dc->reset = port92_reset;
dc->vmsd = &vmstate_port92_isa;
}
| {
"code": [
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;"... | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
dc->no_user = 1;
dc->realize = port92_realizefn;
dc->reset = port92_reset;
dc->vmsd = &vmstate_port92_isa;
}
| [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"dc->no_user = 1;",
"dc->realize = port92_realizefn;",
"dc->reset = port92_reset;",
"dc->vmsd = &vmstate_port92_isa;",
"}"
] | [
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
11,489 | static inline int RENAME(yuv420_rgb15)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[]){
int y, h_size;
if(c->srcFormat == PIX_FMT_YUV422P){
srcStride[1] *= 2;
srcStride[2] *= 2;
}
h_size= (c->dstW+7)&~7;
if(h_s... | true | FFmpeg | 428098165de4c3edfe42c1b7f00627d287015863 | static inline int RENAME(yuv420_rgb15)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[]){
int y, h_size;
if(c->srcFormat == PIX_FMT_YUV422P){
srcStride[1] *= 2;
srcStride[2] *= 2;
}
h_size= (c->dstW+7)&~7;
if(h_s... | {
"code": [
" int srcSliceH, uint8_t* dst[], int dstStride[]){",
"\tsrcStride[1] *= 2;",
"\tsrcStride[2] *= 2;",
" int srcSliceH, uint8_t* dst[], int dstStride[]){",
"\tsrcStride[1] *= 2;",
"\tsrcStride[2] *= 2;",
" int srcSliceH, uint8_t* dst[], int dst... | static inline int FUNC_0(yuv420_rgb15)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[]){
int VAR_0, VAR_1;
if(c->srcFormat == PIX_FMT_YUV422P){
srcStride[1] *= 2;
srcStride[2] *= 2;
}
VAR_1= (c->dstW+7)&~7;
if(V... | [
"static inline int FUNC_0(yuv420_rgb15)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,\nint srcSliceH, uint8_t* dst[], int dstStride[]){",
"int VAR_0, VAR_1;",
"if(c->srcFormat == PIX_FMT_YUV422P){",
"srcStride[1] *= 2;",
"srcStride[2] *= 2;",
"}",
"VAR_1= (c->dstW+7)&~7;",
"if(VAR_1*2... | [
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
57... |
11,490 | void OPPROTO op_subfco (void)
{
do_subfco();
RETURN();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | void OPPROTO op_subfco (void)
{
do_subfco();
RETURN();
}
| {
"code": [
" RETURN();",
"void OPPROTO op_subfco (void)",
" do_subfco();",
" RETURN();"
],
"line_no": [
7,
1,
5,
7
]
} | void VAR_0 op_subfco (void)
{
do_subfco();
RETURN();
}
| [
"void VAR_0 op_subfco (void)\n{",
"do_subfco();",
"RETURN();",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
11,491 | void tcg_target_qemu_prologue(TCGContext *s)
{
/* stmdb sp!, { r9 - r11, lr } */
tcg_out32(s, (COND_AL << 28) | 0x092d4e00);
tcg_out_bx(s, COND_AL, TCG_REG_R0);
tb_ret_addr = s->code_ptr;
/* ldmia sp!, { r9 - r11, pc } */
tcg_out32(s, (COND_AL << 28) | 0x08bd8e00);
}
| true | qemu | 4e17eae9f2ee49833698aae2753c5bb041510870 | void tcg_target_qemu_prologue(TCGContext *s)
{
tcg_out32(s, (COND_AL << 28) | 0x092d4e00);
tcg_out_bx(s, COND_AL, TCG_REG_R0);
tb_ret_addr = s->code_ptr;
tcg_out32(s, (COND_AL << 28) | 0x08bd8e00);
}
| {
"code": [
" tcg_out32(s, (COND_AL << 28) | 0x092d4e00);",
" tcg_out32(s, (COND_AL << 28) | 0x08bd8e00);"
],
"line_no": [
7,
19
]
} | void FUNC_0(TCGContext *VAR_0)
{
tcg_out32(VAR_0, (COND_AL << 28) | 0x092d4e00);
tcg_out_bx(VAR_0, COND_AL, TCG_REG_R0);
tb_ret_addr = VAR_0->code_ptr;
tcg_out32(VAR_0, (COND_AL << 28) | 0x08bd8e00);
}
| [
"void FUNC_0(TCGContext *VAR_0)\n{",
"tcg_out32(VAR_0, (COND_AL << 28) | 0x092d4e00);",
"tcg_out_bx(VAR_0, COND_AL, TCG_REG_R0);",
"tb_ret_addr = VAR_0->code_ptr;",
"tcg_out32(VAR_0, (COND_AL << 28) | 0x08bd8e00);",
"}"
] | [
0,
1,
0,
0,
1,
0
] | [
[
1,
3
],
[
7
],
[
11
],
[
13
],
[
19
],
[
21
]
] |
11,493 | static int scsi_disk_emulate_mode_sense(SCSIRequest *req, uint8_t *outbuf)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
uint64_t nb_sectors;
int page, dbd, buflen;
uint8_t *p;
uint8_t dev_specific_param;
dbd = req->cmd.buf[1] & 0x8;
page = req->cmd.buf[2] & 0x3f;... | true | qemu | 282ab04eb1e6f4faa6c5d2827e3209c4a1eec40e | static int scsi_disk_emulate_mode_sense(SCSIRequest *req, uint8_t *outbuf)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
uint64_t nb_sectors;
int page, dbd, buflen;
uint8_t *p;
uint8_t dev_specific_param;
dbd = req->cmd.buf[1] & 0x8;
page = req->cmd.buf[2] & 0x3f;... | {
"code": [
" int page, dbd, buflen;",
" DPRINTF(\"Mode Sense (page %d, len %zd)\\n\", page, req->cmd.xfer);",
" p += mode_sense_page(req, page, p);",
" p += mode_sense_page(req, 0x08, p);",
" p += mode_sense_page(req, 0x2a, p);"
],
"line_no": [
9,
21,
11... | static int FUNC_0(SCSIRequest *VAR_0, uint8_t *VAR_1)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0->dev);
uint64_t nb_sectors;
int VAR_2, VAR_3, VAR_4;
uint8_t *p;
uint8_t dev_specific_param;
VAR_3 = VAR_0->cmd.buf[1] & 0x8;
VAR_2 = VAR_0->cmd.buf[2] & 0x3f;
DPRI... | [
"static int FUNC_0(SCSIRequest *VAR_0, uint8_t *VAR_1)\n{",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0->dev);",
"uint64_t nb_sectors;",
"int VAR_2, VAR_3, VAR_4;",
"uint8_t *p;",
"uint8_t dev_specific_param;",
"VAR_3 = VAR_0->cmd.buf[1] & 0x8;",
"VAR_2 = VAR_0->cmd.buf[2] & 0x3f;",
"D... | [
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
11,494 | void qpci_msix_enable(QPCIDevice *dev)
{
uint8_t addr;
uint16_t val;
uint32_t table;
uint8_t bir_table;
uint8_t bir_pba;
void *offset;
addr = qpci_find_capability(dev, PCI_CAP_ID_MSIX);
g_assert_cmphex(addr, !=, 0);
val = qpci_config_readw(dev, addr + PCI_MSIX_FLAGS);
... | true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | void qpci_msix_enable(QPCIDevice *dev)
{
uint8_t addr;
uint16_t val;
uint32_t table;
uint8_t bir_table;
uint8_t bir_pba;
void *offset;
addr = qpci_find_capability(dev, PCI_CAP_ID_MSIX);
g_assert_cmphex(addr, !=, 0);
val = qpci_config_readw(dev, addr + PCI_MSIX_FLAGS);
... | {
"code": [
" void *offset;",
" offset = qpci_iomap(dev, bir_table, NULL);",
" dev->msix_table = offset + (table & ~PCI_MSIX_FLAGS_BIRMASK);",
" offset = qpci_iomap(dev, bir_pba, NULL);",
" dev->msix_pba = offset + (table & ~PCI_MSIX_FLAGS_BIRMASK);",
" g_assert(dev->msix... | void FUNC_0(QPCIDevice *VAR_0)
{
uint8_t addr;
uint16_t val;
uint32_t table;
uint8_t bir_table;
uint8_t bir_pba;
void *VAR_1;
addr = qpci_find_capability(VAR_0, PCI_CAP_ID_MSIX);
g_assert_cmphex(addr, !=, 0);
val = qpci_config_readw(VAR_0, addr + PCI_MSIX_FLAGS);
q... | [
"void FUNC_0(QPCIDevice *VAR_0)\n{",
"uint8_t addr;",
"uint16_t val;",
"uint32_t table;",
"uint8_t bir_table;",
"uint8_t bir_pba;",
"void *VAR_1;",
"addr = qpci_find_capability(VAR_0, PCI_CAP_ID_MSIX);",
"g_assert_cmphex(addr, !=, 0);",
"val = qpci_config_readw(VAR_0, addr + PCI_MSIX_FLAGS);",
"... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
1,
0,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
11,495 | av_cold void ff_lpc_end(LPCContext *s)
{
av_freep(&s->windowed_samples);
}
| true | FFmpeg | 4b0e0f31bf0f618a634dcfdca45e72cdfb0b48b5 | av_cold void ff_lpc_end(LPCContext *s)
{
av_freep(&s->windowed_samples);
}
| {
"code": [
" av_freep(&s->windowed_samples);"
],
"line_no": [
5
]
} | av_cold void FUNC_0(LPCContext *s)
{
av_freep(&s->windowed_samples);
}
| [
"av_cold void FUNC_0(LPCContext *s)\n{",
"av_freep(&s->windowed_samples);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
11,496 | static void *handle_apdu_thread(void* arg)
{
EmulatedState *card = arg;
uint8_t recv_data[APDU_BUF_SIZE];
int recv_len;
VReaderStatus reader_status;
EmulEvent *event;
while (1) {
qemu_mutex_lock(&card->handle_apdu_mutex);
qemu_cond_wait(&card->handle_apdu_cond, &card->... | true | qemu | da5361cc685c004d8bb4e7c5e7b3a52c7aca2c56 | static void *handle_apdu_thread(void* arg)
{
EmulatedState *card = arg;
uint8_t recv_data[APDU_BUF_SIZE];
int recv_len;
VReaderStatus reader_status;
EmulEvent *event;
while (1) {
qemu_mutex_lock(&card->handle_apdu_mutex);
qemu_cond_wait(&card->handle_apdu_cond, &card->... | {
"code": [
" qemu_mutex_lock(&card->apdu_thread_quit_mutex);",
" qemu_cond_signal(&card->apdu_thread_quit_cond);",
" qemu_mutex_unlock(&card->apdu_thread_quit_mutex);",
" qemu_mutex_lock(&card->apdu_thread_quit_mutex);"
],
"line_no": [
91,
93,
95,
91
]
} | static void *FUNC_0(void* VAR_0)
{
EmulatedState *card = VAR_0;
uint8_t recv_data[APDU_BUF_SIZE];
int VAR_1;
VReaderStatus reader_status;
EmulEvent *event;
while (1) {
qemu_mutex_lock(&card->handle_apdu_mutex);
qemu_cond_wait(&card->handle_apdu_cond, &card->handle_apdu... | [
"static void *FUNC_0(void* VAR_0)\n{",
"EmulatedState *card = VAR_0;",
"uint8_t recv_data[APDU_BUF_SIZE];",
"int VAR_1;",
"VReaderStatus reader_status;",
"EmulEvent *event;",
"while (1) {",
"qemu_mutex_lock(&card->handle_apdu_mutex);",
"qemu_cond_wait(&card->handle_apdu_cond, &card->handle_apdu_mute... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
11,499 | static void write_codec_attr(AVStream *st, VariantStream *vs) {
int codec_strlen = strlen(vs->codec_attr);
char attr[32];
if (st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE)
return;
if (vs->attr_status == CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN)
return;
if (st->codecpar->co... | false | FFmpeg | 2472dbc7a770a908a2f511ec337ec392ca3e3afa | static void write_codec_attr(AVStream *st, VariantStream *vs) {
int codec_strlen = strlen(vs->codec_attr);
char attr[32];
if (st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE)
return;
if (vs->attr_status == CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN)
return;
if (st->codecpar->co... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVStream *VAR_0, VariantStream *VAR_1) {
int VAR_2 = strlen(VAR_1->codec_attr);
char VAR_3[32];
if (VAR_0->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE)
return;
if (VAR_1->attr_status == CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN)
return;
if (VAR_0->codecpar->... | [
"static void FUNC_0(AVStream *VAR_0, VariantStream *VAR_1) {",
"int VAR_2 = strlen(VAR_1->codec_attr);",
"char VAR_3[32];",
"if (VAR_0->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE)\nreturn;",
"if (VAR_1->attr_status == CODEC_ATTRIBUTE_WILL_NOT_BE_WRITTEN)\nreturn;",
"if (VAR_0->codecpar->codec_id == AV_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
9,
11
],
[
13,
15
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49... |
11,500 | static inline void update_rice(APERice *rice, int x)
{
rice->ksum += ((x + 1) / 2) - ((rice->ksum + 16) >> 5);
if (rice->k == 0)
rice->k = 1;
else if (rice->ksum < (1 << (rice->k + 4)))
rice->k--;
else if (rice->ksum >= (1 << (rice->k + 5)))
rice->k++;
}
| false | FFmpeg | e774c41cab765f5d12ecfb31e5fa30df41230de0 | static inline void update_rice(APERice *rice, int x)
{
rice->ksum += ((x + 1) / 2) - ((rice->ksum + 16) >> 5);
if (rice->k == 0)
rice->k = 1;
else if (rice->ksum < (1 << (rice->k + 4)))
rice->k--;
else if (rice->ksum >= (1 << (rice->k + 5)))
rice->k++;
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(APERice *VAR_0, int VAR_1)
{
VAR_0->ksum += ((VAR_1 + 1) / 2) - ((VAR_0->ksum + 16) >> 5);
if (VAR_0->k == 0)
VAR_0->k = 1;
else if (VAR_0->ksum < (1 << (VAR_0->k + 4)))
VAR_0->k--;
else if (VAR_0->ksum >= (1 << (VAR_0->k + 5)))
VAR_0->k++;
}
| [
"static inline void FUNC_0(APERice *VAR_0, int VAR_1)\n{",
"VAR_0->ksum += ((VAR_1 + 1) / 2) - ((VAR_0->ksum + 16) >> 5);",
"if (VAR_0->k == 0)\nVAR_0->k = 1;",
"else if (VAR_0->ksum < (1 << (VAR_0->k + 4)))\nVAR_0->k--;",
"else if (VAR_0->ksum >= (1 << (VAR_0->k + 5)))\nVAR_0->k++;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13,
15
],
[
17,
19
],
[
21
]
] |
11,502 | static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
{
MpegTSWrite *ts = s->priv_data;
uint8_t data[SECTION_LENGTH], *q, *desc_length_ptr, *program_info_length_ptr;
int val, stream_type, i;
q = data;
put16(&q, 0xe000 | service->pcr_pid);
program_info_length_ptr = q... | true | FFmpeg | e8049af1325dd59a51546c15b2e71a0f578e9d27 | static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
{
MpegTSWrite *ts = s->priv_data;
uint8_t data[SECTION_LENGTH], *q, *desc_length_ptr, *program_info_length_ptr;
int val, stream_type, i;
q = data;
put16(&q, 0xe000 | service->pcr_pid);
program_info_length_ptr = q... | {
"code": [
" int val, stream_type, i;"
],
"line_no": [
9
]
} | static void FUNC_0(AVFormatContext *VAR_0, MpegTSService *VAR_1)
{
MpegTSWrite *ts = VAR_0->priv_data;
uint8_t data[SECTION_LENGTH], *q, *desc_length_ptr, *program_info_length_ptr;
int VAR_2, VAR_3, VAR_4;
q = data;
put16(&q, 0xe000 | VAR_1->pcr_pid);
program_info_length_ptr = q;
... | [
"static void FUNC_0(AVFormatContext *VAR_0, MpegTSService *VAR_1)\n{",
"MpegTSWrite *ts = VAR_0->priv_data;",
"uint8_t data[SECTION_LENGTH], *q, *desc_length_ptr, *program_info_length_ptr;",
"int VAR_2, VAR_3, VAR_4;",
"q = data;",
"put16(&q, 0xe000 | VAR_1->pcr_pid);",
"program_info_length_ptr = q;",
... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49,
51
],
[
53
],
[
55,... |
11,503 | static void vnc_init_basic_info_from_server_addr(QIOChannelSocket *ioc,
VncBasicInfo *info,
Error **errp)
{
SocketAddress *addr = NULL;
addr = qio_channel_socket_get_local_address(ioc, errp);
if (!addr) {
v... | true | qemu | 624cdd46d7f67fa2d23e87ffe0a36a569edde11a | static void vnc_init_basic_info_from_server_addr(QIOChannelSocket *ioc,
VncBasicInfo *info,
Error **errp)
{
SocketAddress *addr = NULL;
addr = qio_channel_socket_get_local_address(ioc, errp);
if (!addr) {
v... | {
"code": [],
"line_no": []
} | static void FUNC_0(QIOChannelSocket *VAR_0,
VncBasicInfo *VAR_1,
Error **VAR_2)
{
SocketAddress *addr = NULL;
addr = qio_channel_socket_get_local_address(VAR_0, VAR_2);
if (!addr) {
vnc_init_basic_info(addr... | [
"static void FUNC_0(QIOChannelSocket *VAR_0,\nVncBasicInfo *VAR_1,\nError **VAR_2)\n{",
"SocketAddress *addr = NULL;",
"addr = qio_channel_socket_get_local_address(VAR_0, VAR_2);",
"if (!addr) {",
"vnc_init_basic_info(addr, VAR_1, VAR_2);",
"qapi_free_SocketAddress(addr);"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3,
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
]
] |
11,505 | static void external_snapshot_prepare(BlkActionState *common,
Error **errp)
{
int flags = 0;
QDict *options = NULL;
Error *local_err = NULL;
/* Device and node name of the image to generate the snapshot from */
const char *device;
const char *node_na... | true | qemu | 2a32c6e82ed24d837ce7af346ffc93113f0164b5 | static void external_snapshot_prepare(BlkActionState *common,
Error **errp)
{
int flags = 0;
QDict *options = NULL;
Error *local_err = NULL;
const char *device;
const char *node_name;
const char *snapshot_ref;
const char *new_i... | {
"code": [
" flags &= ~(BDRV_O_SNAPSHOT | BDRV_O_NO_BACKING | BDRV_O_COPY_ON_READ);",
" flags |= BDRV_O_NO_BACKING;"
],
"line_no": [
197,
249
]
} | static void FUNC_0(BlkActionState *VAR_0,
Error **VAR_1)
{
int VAR_2 = 0;
QDict *options = NULL;
Error *local_err = NULL;
const char *VAR_3;
const char *VAR_4;
const char *VAR_5;
const char *VAR_6;
ExternalSnapshotState *s... | [
"static void FUNC_0(BlkActionState *VAR_0,\nError **VAR_1)\n{",
"int VAR_2 = 0;",
"QDict *options = NULL;",
"Error *local_err = NULL;",
"const char *VAR_3;",
"const char *VAR_4;",
"const char *VAR_5;",
"const char *VAR_6;",
"ExternalSnapshotState *state =\nDO_UPCAST(ExternalSnapshotState, VAR_0, VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27,
29
],
[
31
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[... |
11,506 | void qemu_system_reset(bool report)
{
MachineClass *mc;
mc = current_machine ? MACHINE_GET_CLASS(current_machine) : NULL;
cpu_synchronize_all_states();
if (mc && mc->reset) {
mc->reset();
} else {
qemu_devices_reset();
}
if (report) {
qapi_event_send_... | true | qemu | aedbe19297907143f17b733a7ff0e0534377bed1 | void qemu_system_reset(bool report)
{
MachineClass *mc;
mc = current_machine ? MACHINE_GET_CLASS(current_machine) : NULL;
cpu_synchronize_all_states();
if (mc && mc->reset) {
mc->reset();
} else {
qemu_devices_reset();
}
if (report) {
qapi_event_send_... | {
"code": [
"void qemu_system_reset(bool report)",
" if (report) {"
],
"line_no": [
1,
27
]
} | void FUNC_0(bool VAR_0)
{
MachineClass *mc;
mc = current_machine ? MACHINE_GET_CLASS(current_machine) : NULL;
cpu_synchronize_all_states();
if (mc && mc->reset) {
mc->reset();
} else {
qemu_devices_reset();
}
if (VAR_0) {
qapi_event_send_reset(&error_... | [
"void FUNC_0(bool VAR_0)\n{",
"MachineClass *mc;",
"mc = current_machine ? MACHINE_GET_CLASS(current_machine) : NULL;",
"cpu_synchronize_all_states();",
"if (mc && mc->reset) {",
"mc->reset();",
"} else {",
"qemu_devices_reset();",
"}",
"if (VAR_0) {",
"qapi_event_send_reset(&error_abort);",
"... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
11,507 | void DBDMA_register_channel(void *dbdma, int nchan, qemu_irq irq,
DBDMA_rw rw, DBDMA_flush flush,
void *opaque)
{
DBDMAState *s = dbdma;
DBDMA_channel *ch = &s->channels[nchan];
DBDMA_DPRINTF("DBDMA_register_channel 0x%x\n", nchan);
ch->... | true | qemu | 7f0d763ce60fd0563cb71c85ae0f86ee71b7edcc | void DBDMA_register_channel(void *dbdma, int nchan, qemu_irq irq,
DBDMA_rw rw, DBDMA_flush flush,
void *opaque)
{
DBDMAState *s = dbdma;
DBDMA_channel *ch = &s->channels[nchan];
DBDMA_DPRINTF("DBDMA_register_channel 0x%x\n", nchan);
ch->... | {
"code": [
" ch->channel = nchan;"
],
"line_no": [
21
]
} | void FUNC_0(void *VAR_0, int VAR_1, qemu_irq VAR_2,
DBDMA_rw VAR_3, DBDMA_flush VAR_4,
void *VAR_5)
{
DBDMAState *s = VAR_0;
DBDMA_channel *ch = &s->channels[VAR_1];
DBDMA_DPRINTF("FUNC_0 0x%x\n", VAR_1);
ch->VAR_2 = VAR_2;
ch->chan... | [
"void FUNC_0(void *VAR_0, int VAR_1, qemu_irq VAR_2,\nDBDMA_rw VAR_3, DBDMA_flush VAR_4,\nvoid *VAR_5)\n{",
"DBDMAState *s = VAR_0;",
"DBDMA_channel *ch = &s->channels[VAR_1];",
"DBDMA_DPRINTF(\"FUNC_0 0x%x\\n\", VAR_1);",
"ch->VAR_2 = VAR_2;",
"ch->channel = VAR_1;",
"ch->VAR_3 = VAR_3;",
"ch->VAR_4 ... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
11,508 | void vp78_decode_mv_mb_modes(AVCodecContext *avctx, VP8Frame *curframe,
VP8Frame *prev_frame, int is_vp7)
{
VP8Context *s = avctx->priv_data;
int mb_x, mb_y;
s->mv_min.y = -MARGIN;
s->mv_max.y = ((s->mb_height - 1) << 6) + MARGIN;
for (mb_y = 0; mb_y < s-... | true | FFmpeg | fed92adbb3fc6cbf735e3df9a2f7d0a2917fcfbd | void vp78_decode_mv_mb_modes(AVCodecContext *avctx, VP8Frame *curframe,
VP8Frame *prev_frame, int is_vp7)
{
VP8Context *s = avctx->priv_data;
int mb_x, mb_y;
s->mv_min.y = -MARGIN;
s->mv_max.y = ((s->mb_height - 1) << 6) + MARGIN;
for (mb_y = 0; mb_y < s-... | {
"code": [
" s->mv_min.y = -MARGIN;",
" s->mv_max.y = ((s->mb_height - 1) << 6) + MARGIN;",
" s->mv_min.x = -MARGIN;",
" s->mv_max.x = ((s->mb_width - 1) << 6) + MARGIN;",
" decode_mb_mode(s, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy,",
" s->mv_... | void FUNC_0(AVCodecContext *VAR_0, VP8Frame *VAR_1,
VP8Frame *VAR_2, int VAR_3)
{
VP8Context *s = VAR_0->priv_data;
int VAR_4, VAR_5;
s->mv_min.y = -MARGIN;
s->mv_max.y = ((s->mb_height - 1) << 6) + MARGIN;
for (VAR_5 = 0; VAR_5 < s->mb_height; VAR_5++) {... | [
"void FUNC_0(AVCodecContext *VAR_0, VP8Frame *VAR_1,\nVP8Frame *VAR_2, int VAR_3)\n{",
"VP8Context *s = VAR_0->priv_data;",
"int VAR_4, VAR_5;",
"s->mv_min.y = -MARGIN;",
"s->mv_max.y = ((s->mb_height - 1) << 6) + MARGIN;",
"for (VAR_5 = 0; VAR_5 < s->mb_height; VAR_5++) {",
"VP8Macroblock *mb = s->macr... | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
1,
1,
0,
0,
1,
1,
1,
0,
1,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37,
39,
41
],
[
43,
45,
47
],
[
49
],
[
51
],
[
53
... |
11,509 | static int read_high_coeffs(AVCodecContext *avctx, uint8_t *src, int16_t *dst, int size,
int c, int a, int d,
int width, ptrdiff_t stride)
{
PixletContext *ctx = avctx->priv_data;
GetBitContext *b = &ctx->gbit;
unsigned cnt1, shbits, rlen, nbits,... | true | FFmpeg | ab31b46b89362041a8e37cb0aac67cf3b53c2524 | static int read_high_coeffs(AVCodecContext *avctx, uint8_t *src, int16_t *dst, int size,
int c, int a, int d,
int width, ptrdiff_t stride)
{
PixletContext *ctx = avctx->priv_data;
GetBitContext *b = &ctx->gbit;
unsigned cnt1, shbits, rlen, nbits,... | {
"code": [
" tmp = c * ((yflag + 1) >> 1) + (c >> 1);",
" state += d * yflag - (d * state >> 8);"
],
"line_no": [
107,
127
]
} | static int FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1, int16_t *VAR_2, int VAR_3,
int VAR_4, int VAR_5, int VAR_6,
int VAR_7, ptrdiff_t VAR_8)
{
PixletContext *ctx = VAR_0->priv_data;
GetBitContext *b = &ctx->gbit;
unsigned VAR_9, VAR_10, VAR_1... | [
"static int FUNC_0(AVCodecContext *VAR_0, uint8_t *VAR_1, int16_t *VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6,\nint VAR_7, ptrdiff_t VAR_8)\n{",
"PixletContext *ctx = VAR_0->priv_data;",
"GetBitContext *b = &ctx->gbit;",
"unsigned VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14 = 0, VAR_15 = 0, VAR_16;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
... |
11,510 | static void vc1_decode_i_blocks_adv(VC1Context *v)
{
int k;
MpegEncContext *s = &v->s;
int cbp, val;
uint8_t *coded_val;
int mb_pos;
int mquant = v->pq;
int mqdiff;
GetBitContext *gb = &s->gb;
/* select codingmode used for VLC tables selection */
switch(v->y_ac_table... | true | FFmpeg | d4b9974465baf893e90527a366e7a7411ded1ef8 | static void vc1_decode_i_blocks_adv(VC1Context *v)
{
int k;
MpegEncContext *s = &v->s;
int cbp, val;
uint8_t *coded_val;
int mb_pos;
int mquant = v->pq;
int mqdiff;
GetBitContext *gb = &s->gb;
switch(v->y_ac_table_index){
case 0:
v->codingset = (v->pqi... | {
"code": [
" s->b8_stride * sizeof(*s->coded_block));"
],
"line_no": [
91
]
} | static void FUNC_0(VC1Context *VAR_0)
{
int VAR_1;
MpegEncContext *s = &VAR_0->s;
int VAR_2, VAR_3;
uint8_t *coded_val;
int VAR_4;
int VAR_5 = VAR_0->pq;
int VAR_6;
GetBitContext *gb = &s->gb;
switch(VAR_0->y_ac_table_index){
case 0:
VAR_0->codingset =... | [
"static void FUNC_0(VC1Context *VAR_0)\n{",
"int VAR_1;",
"MpegEncContext *s = &VAR_0->s;",
"int VAR_2, VAR_3;",
"uint8_t *coded_val;",
"int VAR_4;",
"int VAR_5 = VAR_0->pq;",
"int VAR_6;",
"GetBitContext *gb = &s->gb;",
"switch(VAR_0->y_ac_table_index){",
"case 0:\nVAR_0->codingset = (VAR_0->pq... | [
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
49
],
[... |
11,511 | static int rtp_mpegts_write_header(AVFormatContext *s)
{
struct MuxChain *chain = s->priv_data;
AVFormatContext *mpegts_ctx = NULL, *rtp_ctx = NULL;
AVOutputFormat *mpegts_format = av_guess_format("mpegts", NULL, NULL);
AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
int i,... | true | FFmpeg | 5b4baf1506277863e9c1fa4bd302a4653e859669 | static int rtp_mpegts_write_header(AVFormatContext *s)
{
struct MuxChain *chain = s->priv_data;
AVFormatContext *mpegts_ctx = NULL, *rtp_ctx = NULL;
AVOutputFormat *mpegts_format = av_guess_format("mpegts", NULL, NULL);
AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
int i,... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
struct MuxChain *VAR_1 = VAR_0->priv_data;
AVFormatContext *mpegts_ctx = NULL, *rtp_ctx = NULL;
AVOutputFormat *mpegts_format = av_guess_format("mpegts", NULL, NULL);
AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
int VAR_2, VAR_... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"struct MuxChain *VAR_1 = VAR_0->priv_data;",
"AVFormatContext *mpegts_ctx = NULL, *rtp_ctx = NULL;",
"AVOutputFormat *mpegts_format = av_guess_format(\"mpegts\", NULL, NULL);",
"AVOutputFormat *rtp_format = av_guess_format(\"rtp\", NULL, NULL);",
"int 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
40
],
[
42
],
[
44
],
[
47,
50,... |
11,512 | void qemu_aio_coroutine_enter(AioContext *ctx, Coroutine *co)
{
Coroutine *self = qemu_coroutine_self();
CoroutineAction ret;
trace_qemu_aio_coroutine_enter(ctx, self, co, co->entry_arg);
if (co->caller) {
fprintf(stderr, "Co-routine re-entered recursively\n");
co->caller = self;
co->ctx... | true | qemu | 6133b39f3c36623425a6ede9e89d93175fde15cd | void qemu_aio_coroutine_enter(AioContext *ctx, Coroutine *co)
{
Coroutine *self = qemu_coroutine_self();
CoroutineAction ret;
trace_qemu_aio_coroutine_enter(ctx, self, co, co->entry_arg);
if (co->caller) {
fprintf(stderr, "Co-routine re-entered recursively\n");
co->caller = self;
co->ctx... | {
"code": [],
"line_no": []
} | void FUNC_0(AioContext *VAR_0, Coroutine *VAR_1)
{
Coroutine *self = qemu_coroutine_self();
CoroutineAction ret;
trace_qemu_aio_coroutine_enter(VAR_0, self, VAR_1, VAR_1->entry_arg);
if (VAR_1->caller) {
fprintf(stderr, "Co-routine re-entered recursively\n");
VAR_1->caller = self;
VAR_1-... | [
"void FUNC_0(AioContext *VAR_0, Coroutine *VAR_1)\n{",
"Coroutine *self = qemu_coroutine_self();",
"CoroutineAction ret;",
"trace_qemu_aio_coroutine_enter(VAR_0, self, VAR_1, VAR_1->entry_arg);",
"if (VAR_1->caller) {",
"fprintf(stderr, \"Co-routine re-entered recursively\\n\");",
"VAR_1->caller = self;... | [
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
],
[
13
],
[
14
],
[
15
],
[
20
],
[
21,
22
],
[
23,
24
],
[
25
],
[
26
],
[
27
]
] |
11,513 | static sPAPRDIMMState *spapr_recover_pending_dimm_state(sPAPRMachineState *ms,
PCDIMMDevice *dimm)
{
sPAPRDRConnector *drc;
PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);
MemoryRegion *mr = ddc->get_memory_region(dimm);
uint64_t size = mem... | true | qemu | 454b580ae9ae3e7722f1cd5f6da7bb479f86bbd8 | static sPAPRDIMMState *spapr_recover_pending_dimm_state(sPAPRMachineState *ms,
PCDIMMDevice *dimm)
{
sPAPRDRConnector *drc;
PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);
MemoryRegion *mr = ddc->get_memory_region(dimm);
uint64_t size = mem... | {
"code": [
" if (drc->indicator_state != SPAPR_DR_INDICATOR_STATE_INACTIVE) {"
],
"line_no": [
43
]
} | static sPAPRDIMMState *FUNC_0(sPAPRMachineState *ms,
PCDIMMDevice *dimm)
{
sPAPRDRConnector *drc;
PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);
MemoryRegion *mr = ddc->get_memory_region(dimm);
uint64_t size = memory_region_size(mr);
... | [
"static sPAPRDIMMState *FUNC_0(sPAPRMachineState *ms,\nPCDIMMDevice *dimm)\n{",
"sPAPRDRConnector *drc;",
"PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);",
"MemoryRegion *mr = ddc->get_memory_region(dimm);",
"uint64_t size = memory_region_size(mr);",
"uint32_t nr_lmbs = size / SPAPR_MEMORY_BLOCK_SIZE;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
11,514 | static void term_print_cmdline (const char *cmdline)
{
term_show_prompt();
term_printf(cmdline);
term_flush();
}
| true | qemu | 95ce326e5b47b4b841849f8a2ac7b96d6e204dfb | static void term_print_cmdline (const char *cmdline)
{
term_show_prompt();
term_printf(cmdline);
term_flush();
}
| {
"code": [
" term_printf(cmdline);"
],
"line_no": [
7
]
} | static void FUNC_0 (const char *VAR_0)
{
term_show_prompt();
term_printf(VAR_0);
term_flush();
}
| [
"static void FUNC_0 (const char *VAR_0)\n{",
"term_show_prompt();",
"term_printf(VAR_0);",
"term_flush();",
"}"
] | [
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
11,515 | static void dvbsub_parse_clut_segment(AVCodecContext *avctx,
const uint8_t *buf, int buf_size)
{
DVBSubContext *ctx = avctx->priv_data;
const uint8_t *buf_end = buf + buf_size;
int i, clut_id;
int version;
DVBSubCLUT *clut;
int entry_id, depth , ... | true | FFmpeg | 29f244e08ee0ef83098a65648b6880cb55a8c242 | static void dvbsub_parse_clut_segment(AVCodecContext *avctx,
const uint8_t *buf, int buf_size)
{
DVBSubContext *ctx = avctx->priv_data;
const uint8_t *buf_end = buf + buf_size;
int i, clut_id;
int version;
DVBSubCLUT *clut;
int entry_id, depth , ... | {
"code": [
"static void dvbsub_parse_clut_segment(AVCodecContext *avctx,"
],
"line_no": [
1
]
} | static void FUNC_0(AVCodecContext *VAR_0,
const uint8_t *VAR_1, int VAR_2)
{
DVBSubContext *ctx = VAR_0->priv_data;
const uint8_t *VAR_3 = VAR_1 + VAR_2;
int VAR_4, VAR_5;
int VAR_6;
DVBSubCLUT *clut;
int VAR_7, VAR_8 , VAR_9;
int VAR_10, VA... | [
"static void FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{",
"DVBSubContext *ctx = VAR_0->priv_data;",
"const uint8_t *VAR_3 = VAR_1 + VAR_2;",
"int VAR_4, VAR_5;",
"int VAR_6;",
"DVBSubCLUT *clut;",
"int VAR_7, VAR_8 , VAR_9;",
"int VAR_10, VAR_11, VAR_12, VAR_13;",
"int VAR_14... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
43,
45
],
[
49
],
[
51
],
[
53
],
... |
11,518 | static SCSIGenericReq *scsi_find_request(SCSIGenericState *s, uint32_t tag)
{
return DO_UPCAST(SCSIGenericReq, req, scsi_req_find(&s->qdev, tag));
}
| true | qemu | 5c6c0e513600ba57c3e73b7151d3c0664438f7b5 | static SCSIGenericReq *scsi_find_request(SCSIGenericState *s, uint32_t tag)
{
return DO_UPCAST(SCSIGenericReq, req, scsi_req_find(&s->qdev, tag));
}
| {
"code": [
"static SCSIGenericReq *scsi_find_request(SCSIGenericState *s, uint32_t tag)",
" return DO_UPCAST(SCSIGenericReq, req, scsi_req_find(&s->qdev, tag));"
],
"line_no": [
1,
5
]
} | static SCSIGenericReq *FUNC_0(SCSIGenericState *s, uint32_t tag)
{
return DO_UPCAST(SCSIGenericReq, req, scsi_req_find(&s->qdev, tag));
}
| [
"static SCSIGenericReq *FUNC_0(SCSIGenericState *s, uint32_t tag)\n{",
"return DO_UPCAST(SCSIGenericReq, req, scsi_req_find(&s->qdev, tag));",
"}"
] | [
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
11,519 | static void do_safe_dpy_refresh(CPUState *cpu, run_on_cpu_data opaque)
{
DisplayChangeListener *dcl = opaque.host_ptr;
dcl->ops->dpy_refresh(dcl);
} | true | qemu | 85390939190e4b7eeba57765e344947c328cd166 | static void do_safe_dpy_refresh(CPUState *cpu, run_on_cpu_data opaque)
{
DisplayChangeListener *dcl = opaque.host_ptr;
dcl->ops->dpy_refresh(dcl);
} | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1)
{
DisplayChangeListener *dcl = VAR_1.host_ptr;
dcl->ops->dpy_refresh(dcl);
} | [
"static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1)\n{",
"DisplayChangeListener *dcl = VAR_1.host_ptr;",
"dcl->ops->dpy_refresh(dcl);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
8
],
[
11
]
] |
11,520 | void HELPER(exception_return)(CPUARMState *env)
{
int cur_el = arm_current_el(env);
unsigned int spsr_idx = aarch64_banked_spsr_index(cur_el);
uint32_t spsr = env->banked_spsr[spsr_idx];
int new_el;
aarch64_save_sp(env, cur_el);
env->exclusive_addr = -1;
/* We must squash the P... | true | qemu | 3809951bf61605974b91578c582de4da28f8ed07 | void HELPER(exception_return)(CPUARMState *env)
{
int cur_el = arm_current_el(env);
unsigned int spsr_idx = aarch64_banked_spsr_index(cur_el);
uint32_t spsr = env->banked_spsr[spsr_idx];
int new_el;
aarch64_save_sp(env, cur_el);
env->exclusive_addr = -1;
if (a... | {
"code": [
" if (spsr & PSTATE_nRW) {",
" new_el = 0;",
" env->uncached_cpsr = 0x10;",
" env->regs[15] = env->elr_el[1] & ~0x1;",
" new_el = extract32(spsr, 2, 2);",
" if (new_el > cur_el",
" || (new_el == 2 && !arm_feature(env, ARM_FEATURE... | void FUNC_0(exception_return)(CPUARMState *env)
{
int VAR_0 = arm_current_el(env);
unsigned int VAR_1 = aarch64_banked_spsr_index(VAR_0);
uint32_t spsr = env->banked_spsr[VAR_1];
int VAR_2;
aarch64_save_sp(env, VAR_0);
env->exclusive_addr = -1;
if (arm_generat... | [
"void FUNC_0(exception_return)(CPUARMState *env)\n{",
"int VAR_0 = arm_current_el(env);",
"unsigned int VAR_1 = aarch64_banked_spsr_index(VAR_0);",
"uint32_t spsr = env->banked_spsr[VAR_1];",
"int VAR_2;",
"aarch64_save_sp(env, VAR_0);",
"env->exclusive_addr = -1;",
"if (arm_generate_debug_exceptions(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
0,
0,
0,
0,
0,
1,
0,
1,
1,
1,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
[
67
... |
11,521 | target_ulong helper_evpe(CPUMIPSState *env)
{
CPUMIPSState *other_cpu = first_cpu;
target_ulong prev = env->mvp->CP0_MVPControl;
do {
if (other_cpu != env
/* If the VPE is WFI, don't disturb its sleep. */
&& !mips_vpe_is_wfi(other_cpu)) {
/* Enable the VP... | true | qemu | 81bad50ec40311797c38a7691844c7d2df9b3823 | target_ulong helper_evpe(CPUMIPSState *env)
{
CPUMIPSState *other_cpu = first_cpu;
target_ulong prev = env->mvp->CP0_MVPControl;
do {
if (other_cpu != env
&& !mips_vpe_is_wfi(other_cpu)) {
other_cpu->mvp->CP0_MVPControl |= (1 << CP0MVPCo_EVP... | {
"code": [
" CPUMIPSState *other_cpu = first_cpu;",
" other_cpu = other_cpu->next_cpu;",
" } while (other_cpu);",
" CPUMIPSState *other_cpu = first_cpu;",
" if (other_cpu != env",
" && !mips_vpe_is_wfi(other_cpu)) {",
" other_cpu->mvp->CP0_MVPCo... | target_ulong FUNC_0(CPUMIPSState *env)
{
CPUMIPSState *other_cpu = first_cpu;
target_ulong prev = env->mvp->CP0_MVPControl;
do {
if (other_cpu != env
&& !mips_vpe_is_wfi(other_cpu)) {
other_cpu->mvp->CP0_MVPControl |= (1 << CP0MVPCo_EVP);
... | [
"target_ulong FUNC_0(CPUMIPSState *env)\n{",
"CPUMIPSState *other_cpu = first_cpu;",
"target_ulong prev = env->mvp->CP0_MVPControl;",
"do {",
"if (other_cpu != env\n&& !mips_vpe_is_wfi(other_cpu)) {",
"other_cpu->mvp->CP0_MVPControl |= (1 << CP0MVPCo_EVP);",
"mips_vpe_wake(other_cpu);",
"}",
"other_... | [
0,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
11,522 | static void gen_tlbld_74xx(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
gen_helper_74xx_tlbd(cpu_env, cpu_gpr[rB(ctx->opcode)]);
#end... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_tlbld_74xx(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
gen_helper_74xx_tlbd(cpu_env, cpu_gpr[rB(ctx->opcode)]);
#end... | {
"code": [
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(ctx->pr)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(VAR_0->pr)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
return;
}
gen_helper_74xx_tlbd(cpu_env, cpu_gpr[rB(VAR_0->opcode)]);
#e... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nif (unlikely(VAR_0->pr)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"return;",
"}",
"gen_helper_74xx_tlbd(cpu_env, cpu_gpr[rB(VAR_0->opcode)]);",
"#... | [
0,
1,
1,
1,
0,
0,
0,
1
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
]
] |
11,523 | static void kvmclock_realize(DeviceState *dev, Error **errp)
{
KVMClockState *s = KVM_CLOCK(dev);
kvm_update_clock(s);
qemu_add_vm_change_state_handler(kvmclock_vm_state_change, s); | true | qemu | ca2edcd35cd1a8589dfa0533c19ff232fec7b4b5 | static void kvmclock_realize(DeviceState *dev, Error **errp)
{
KVMClockState *s = KVM_CLOCK(dev);
kvm_update_clock(s);
qemu_add_vm_change_state_handler(kvmclock_vm_state_change, s); | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
KVMClockState *s = KVM_CLOCK(VAR_0);
kvm_update_clock(s);
qemu_add_vm_change_state_handler(kvmclock_vm_state_change, s); | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"KVMClockState *s = KVM_CLOCK(VAR_0);",
"kvm_update_clock(s);",
"qemu_add_vm_change_state_handler(kvmclock_vm_state_change, s);"
] | [
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
]
] |
11,525 | static const uint8_t *pcx_rle_decode(const uint8_t *src, uint8_t *dst,
unsigned int bytes_per_scanline,
int compressed)
{
unsigned int i = 0;
unsigned char run, value;
if (compressed) {
while (i < bytes_per_scanline) ... | true | FFmpeg | 3abde1a3b49cf299f2aae4eaae6b6cb5270bdc22 | static const uint8_t *pcx_rle_decode(const uint8_t *src, uint8_t *dst,
unsigned int bytes_per_scanline,
int compressed)
{
unsigned int i = 0;
unsigned char run, value;
if (compressed) {
while (i < bytes_per_scanline) ... | {
"code": [
"static const uint8_t *pcx_rle_decode(const uint8_t *src, uint8_t *dst,",
" while (i < bytes_per_scanline) {",
" if (value >= 0xc0) {"
],
"line_no": [
1,
17,
23
]
} | static const uint8_t *FUNC_0(const uint8_t *src, uint8_t *dst,
unsigned int bytes_per_scanline,
int compressed)
{
unsigned int VAR_0 = 0;
unsigned char VAR_1, VAR_2;
if (compressed) {
while (VAR_0 < bytes_per_scanline... | [
"static const uint8_t *FUNC_0(const uint8_t *src, uint8_t *dst,\nunsigned int bytes_per_scanline,\nint compressed)\n{",
"unsigned int VAR_0 = 0;",
"unsigned char VAR_1, VAR_2;",
"if (compressed) {",
"while (VAR_0 < bytes_per_scanline) {",
"VAR_1 = 1;",
"VAR_2 = *src++;",
"if (VAR_2 >= 0xc0) {",
"V... | [
1,
0,
0,
0,
1,
0,
0,
1,
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
],
[
47
],
[... |
11,526 | void checkasm_check_h264pred(void)
{
static const struct {
void (*func)(H264PredContext*, uint8_t*, uint8_t*, int, int, int);
const char *name;
} tests[] = {
{ check_pred4x4, "pred4x4" },
{ check_pred8x8, "pred8x8" },
{ check_pred16x16, "pred16x16" },
... | false | FFmpeg | f467fc02b475cd45b68aa5fb5f7c78286110ba86 | void checkasm_check_h264pred(void)
{
static const struct {
void (*func)(H264PredContext*, uint8_t*, uint8_t*, int, int, int);
const char *name;
} tests[] = {
{ check_pred4x4, "pred4x4" },
{ check_pred8x8, "pred8x8" },
{ check_pred16x16, "pred16x16" },
... | {
"code": [],
"line_no": []
} | VAR_2voidVAR_2 VAR_2checkasm_check_h264predVAR_2(VAR_2voidVAR_2)
{
VAR_2staticVAR_2 VAR_2constVAR_2 VAR_2structVAR_2 {
VAR_2voidVAR_2 (*VAR_2funcVAR_2)(VAR_2H264PredContextVAR_2*, VAR_2uint8_tVAR_2*, VAR_2uint8_tVAR_2*, VAR_2intVAR_2, VAR_2intVAR_2, VAR_2intVAR_2);
VAR_2constVAR_2 VAR_2charVAR_2... | [
"VAR_2voidVAR_2 VAR_2checkasm_check_h264predVAR_2(VAR_2voidVAR_2)\n{",
"VAR_2staticVAR_2 VAR_2constVAR_2 VAR_2structVAR_2 {",
"VAR_2voidVAR_2 (*VAR_2funcVAR_2)(VAR_2H264PredContextVAR_2*, VAR_2uint8_tVAR_2*, VAR_2uint8_tVAR_2*, VAR_2intVAR_2, VAR_2intVAR_2, VAR_2intVAR_2);",
"VAR_2constVAR_2 VAR_2charVAR_2 *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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
11,530 | static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
unsigned int i, entries;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
sc = st->priv_data;
avio_r8(pb); /* version */
avio_r... | true | FFmpeg | 053e80f6eaf8d87521fe58ea96886b6ee0bbe59d | static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
unsigned int i, entries;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
sc = st->priv_data;
avio_r8(pb);
avio_rb24(pb);
... | {
"code": [
" if (FFABS(duration) > (1<<28) && i+2<entries) {"
],
"line_no": [
73
]
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)
{
AVStream *st;
MOVStreamContext *sc;
unsigned int VAR_3, VAR_4;
if (VAR_0->fc->nb_streams < 1)
return 0;
st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];
sc = st->priv_data;
avio_r8(VAR_1);
a... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{",
"AVStream *st;",
"MOVStreamContext *sc;",
"unsigned int VAR_3, VAR_4;",
"if (VAR_0->fc->nb_streams < 1)\nreturn 0;",
"st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];",
"sc = st->priv_data;",
"avio_r8(VAR_1);",
"avio_rb24... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35,
37
],
[
39,
41
],
[
43
],
[
45
],
[
47,
49
],
[
53
],
[
55
... |
11,531 | static ssize_t nc_sendv_compat(NetClientState *nc, const struct iovec *iov,
int iovcnt, unsigned flags)
{
uint8_t *buf = NULL;
uint8_t *buffer;
size_t offset;
ssize_t ret;
if (iovcnt == 1) {
buffer = iov[0].iov_base;
offset = iov[0].iov_len;
... | true | qemu | 47f9f15831faa549504ab9b035aaea44a02e5f95 | static ssize_t nc_sendv_compat(NetClientState *nc, const struct iovec *iov,
int iovcnt, unsigned flags)
{
uint8_t *buf = NULL;
uint8_t *buffer;
size_t offset;
ssize_t ret;
if (iovcnt == 1) {
buffer = iov[0].iov_base;
offset = iov[0].iov_len;
... | {
"code": [
" buf = g_new(uint8_t, NET_BUFSIZE);",
" offset = iov_to_buf(iov, iovcnt, 0, buf, NET_BUFSIZE);"
],
"line_no": [
25,
29
]
} | static ssize_t FUNC_0(NetClientState *nc, const struct iovec *iov,
int iovcnt, unsigned flags)
{
uint8_t *buf = NULL;
uint8_t *buffer;
size_t offset;
ssize_t ret;
if (iovcnt == 1) {
buffer = iov[0].iov_base;
offset = iov[0].iov_len;
} el... | [
"static ssize_t FUNC_0(NetClientState *nc, const struct iovec *iov,\nint iovcnt, unsigned flags)\n{",
"uint8_t *buf = NULL;",
"uint8_t *buffer;",
"size_t offset;",
"ssize_t ret;",
"if (iovcnt == 1) {",
"buffer = iov[0].iov_base;",
"offset = iov[0].iov_len;",
"} else {",
"buf = g_new(uint8_t, NET_B... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[... |
11,532 | qemu_irq *arm_gic_init(uint32_t base, qemu_irq parent_irq)
{
gic_state *s;
qemu_irq *qi;
int iomemtype;
s = (gic_state *)qemu_mallocz(sizeof(gic_state));
if (!s)
return NULL;
qi = qemu_allocate_irqs(gic_set_irq, s, GIC_NIRQ);
s->parent_irq = parent_irq;
if (base != 0x... | true | qemu | 187337f8b0ec0813dd3876d1efe37d415fb81c2e | qemu_irq *arm_gic_init(uint32_t base, qemu_irq parent_irq)
{
gic_state *s;
qemu_irq *qi;
int iomemtype;
s = (gic_state *)qemu_mallocz(sizeof(gic_state));
if (!s)
return NULL;
qi = qemu_allocate_irqs(gic_set_irq, s, GIC_NIRQ);
s->parent_irq = parent_irq;
if (base != 0x... | {
"code": [
" cpu_register_physical_memory(base, 0x00000fff, iomemtype);",
" cpu_register_physical_memory(base + 0x1000, 0x00000fff, iomemtype);"
],
"line_no": [
29,
35
]
} | qemu_irq *FUNC_0(uint32_t base, qemu_irq parent_irq)
{
gic_state *s;
qemu_irq *qi;
int VAR_0;
s = (gic_state *)qemu_mallocz(sizeof(gic_state));
if (!s)
return NULL;
qi = qemu_allocate_irqs(gic_set_irq, s, GIC_NIRQ);
s->parent_irq = parent_irq;
if (base != 0xffffffff) ... | [
"qemu_irq *FUNC_0(uint32_t base, qemu_irq parent_irq)\n{",
"gic_state *s;",
"qemu_irq *qi;",
"int VAR_0;",
"s = (gic_state *)qemu_mallocz(sizeof(gic_state));",
"if (!s)\nreturn NULL;",
"qi = qemu_allocate_irqs(gic_set_irq, s, GIC_NIRQ);",
"s->parent_irq = parent_irq;",
"if (base != 0xffffffff) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
11,533 | static int qcow_create2(const char *filename, int64_t total_size,
const char *backing_file, const char *backing_format,
int flags, size_t cluster_size, int prealloc)
{
int fd, header_size, backing_filename_len, l1_size, i, shift, l2_bits;
int ref_clusters, ... | true | qemu | 6f745bdaac26bcbdd7e2ffa2a6ea29aabbbc54e1 | static int qcow_create2(const char *filename, int64_t total_size,
const char *backing_file, const char *backing_format,
int flags, size_t cluster_size, int prealloc)
{
int fd, header_size, backing_filename_len, l1_size, i, shift, l2_bits;
int ref_clusters, ... | {
"code": [
" if (ret != s->cluster_size) {",
" if (prealloc) {"
],
"line_no": [
287,
327
]
} | static int FUNC_0(const char *VAR_0, int64_t VAR_1,
const char *VAR_2, const char *VAR_3,
int VAR_4, size_t VAR_5, int VAR_6)
{
int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;
int VAR_14, VAR_15 = 0;
int VAR_16 = 0;
QCowHeader header;
... | [
"static int FUNC_0(const char *VAR_0, int64_t VAR_1,\nconst char *VAR_2, const char *VAR_3,\nint VAR_4, size_t VAR_5, int VAR_6)\n{",
"int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;",
"int VAR_14, VAR_15 = 0;",
"int VAR_16 = 0;",
"QCowHeader header;",
"uint64_t tmp, offset;",
"QCowCreateState ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
... |
11,534 | static void chroma_4mv_motion(MpegEncContext *s,
uint8_t *dest_cb, uint8_t *dest_cr,
uint8_t **ref_picture,
op_pixels_func *pix_op,
int mx, int my)
{
int dxy, emu=0, src_x, src_y, offset;
... | true | FFmpeg | c341f734e5f9d6af4a8fdcceb6f5d12de6395c76 | static void chroma_4mv_motion(MpegEncContext *s,
uint8_t *dest_cb, uint8_t *dest_cr,
uint8_t **ref_picture,
op_pixels_func *pix_op,
int mx, int my)
{
int dxy, emu=0, src_x, src_y, offset;
... | {
"code": [
" int dxy, emu=0, src_x, src_y, offset;"
],
"line_no": [
13
]
} | static void FUNC_0(MpegEncContext *VAR_0,
uint8_t *VAR_1, uint8_t *VAR_2,
uint8_t **VAR_3,
op_pixels_func *VAR_4,
int VAR_5, int VAR_6)
{
int VAR_7, VAR_8=0, VAR_9, VAR_10, VAR_11;
uint... | [
"static void FUNC_0(MpegEncContext *VAR_0,\nuint8_t *VAR_1, uint8_t *VAR_2,\nuint8_t **VAR_3,\nop_pixels_func *VAR_4,\nint VAR_5, int VAR_6)\n{",
"int VAR_7, VAR_8=0, VAR_9, VAR_10, VAR_11;",
"uint8_t *ptr;",
"VAR_5= ff_h263_round_chroma(VAR_5);",
"VAR_6= ff_h263_round_chroma(VAR_6);",
"VAR_7 = ((VAR_6 & ... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49,
51
],
[
55
],
[
57
],
[
59
... |
11,536 | static void super2xsai(AVFilterContext *ctx,
uint8_t *src, int src_linesize,
uint8_t *dst, int dst_linesize,
int width, int height)
{
Super2xSaIContext *sai = ctx->priv;
unsigned int x, y;
uint32_t color[4][4];
unsigned char *s... | false | FFmpeg | b2bcbcd99967c7cb9f17ae07c48c32baf8855e40 | static void super2xsai(AVFilterContext *ctx,
uint8_t *src, int src_linesize,
uint8_t *dst, int dst_linesize,
int width, int height)
{
Super2xSaIContext *sai = ctx->priv;
unsigned int x, y;
uint32_t color[4][4];
unsigned char *s... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFilterContext *VAR_0,
uint8_t *VAR_1, int VAR_2,
uint8_t *VAR_3, int VAR_4,
int VAR_5, int VAR_6)
{
Super2xSaIContext *sai = VAR_0->priv;
unsigned int VAR_7, VAR_8;
uint32_t color[4][4];
unsigned char *VAR_... | [
"static void FUNC_0(AVFilterContext *VAR_0,\nuint8_t *VAR_1, int VAR_2,\nuint8_t *VAR_3, int VAR_4,\nint VAR_5, int VAR_6)\n{",
"Super2xSaIContext *sai = VAR_0->priv;",
"unsigned int VAR_7, VAR_8;",
"uint32_t color[4][4];",
"unsigned char *VAR_9[4];",
"const int VAR_10 = sai->VAR_10;",
"const uint32_t V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43,
45,
47,
53
],
[
55,
57
],
[... |
11,537 | static inline int pic_is_unused(MpegEncContext *s, Picture *pic)
{
if (pic->f->buf[0] == NULL)
return 1;
if (pic->needs_realloc && !(pic->reference & DELAYED_PIC_REF))
return 1;
return 0;
}
| false | FFmpeg | f929ab0569ff31ed5a59b0b0adb7ce09df3fca39 | static inline int pic_is_unused(MpegEncContext *s, Picture *pic)
{
if (pic->f->buf[0] == NULL)
return 1;
if (pic->needs_realloc && !(pic->reference & DELAYED_PIC_REF))
return 1;
return 0;
}
| {
"code": [],
"line_no": []
} | static inline int FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1)
{
if (VAR_1->f->buf[0] == NULL)
return 1;
if (VAR_1->needs_realloc && !(VAR_1->reference & DELAYED_PIC_REF))
return 1;
return 0;
}
| [
"static inline int FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1)\n{",
"if (VAR_1->f->buf[0] == NULL)\nreturn 1;",
"if (VAR_1->needs_realloc && !(VAR_1->reference & DELAYED_PIC_REF))\nreturn 1;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
]
] |
11,538 | static inline int wv_unpack_mono(WavpackFrameContext *s, GetBitContext *gb,
void *dst, const int type)
{
int i, j, count = 0;
int last, t;
int A, S, T;
int pos = s->pos;
uint32_t crc = s->sc.crc;
uint32_t crc_extra_bits = s->extra_sc... | true | FFmpeg | 866c44d4b0f90d448cffbe9d4422a2dec7df698b | static inline int wv_unpack_mono(WavpackFrameContext *s, GetBitContext *gb,
void *dst, const int type)
{
int i, j, count = 0;
int last, t;
int A, S, T;
int pos = s->pos;
uint32_t crc = s->sc.crc;
uint32_t crc_extra_bits = s->extra_sc... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(WavpackFrameContext *VAR_0, GetBitContext *VAR_1,
void *VAR_2, const int VAR_3)
{
int VAR_4, VAR_5, VAR_6 = 0;
int VAR_7, VAR_8;
int VAR_9, VAR_10, VAR_11;
int VAR_12 = VAR_0->VAR_12;
uint32_t crc = VAR_0->sc.crc;... | [
"static inline int FUNC_0(WavpackFrameContext *VAR_0, GetBitContext *VAR_1,\nvoid *VAR_2, const int VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6 = 0;",
"int VAR_7, VAR_8;",
"int VAR_9, VAR_10, VAR_11;",
"int VAR_12 = VAR_0->VAR_12;",
"uint32_t crc = VAR_0->sc.crc;",
"uint32_t crc_ex... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
... |
11,539 | void ff_cavs_mv(AVSContext *h, enum cavs_mv_loc nP, enum cavs_mv_loc nC,
enum cavs_mv_pred mode, enum cavs_block size, int ref)
{
cavs_vector *mvP = &h->mv[nP];
cavs_vector *mvA = &h->mv[nP-1];
cavs_vector *mvB = &h->mv[nP-4];
cavs_vector *mvC = &h->mv[nC];
const cavs_vector *... | true | FFmpeg | 5871adc90f8c1037535563e33ebeaf032bb4d5d6 | void ff_cavs_mv(AVSContext *h, enum cavs_mv_loc nP, enum cavs_mv_loc nC,
enum cavs_mv_pred mode, enum cavs_block size, int ref)
{
cavs_vector *mvP = &h->mv[nP];
cavs_vector *mvA = &h->mv[nP-1];
cavs_vector *mvB = &h->mv[nP-4];
cavs_vector *mvC = &h->mv[nC];
const cavs_vector *... | {
"code": [
" mvP->x += get_se_golomb(&h->gb);",
" mvP->y += get_se_golomb(&h->gb);"
],
"line_no": [
81,
83
]
} | void FUNC_0(AVSContext *VAR_0, enum cavs_mv_loc VAR_1, enum cavs_mv_loc VAR_2,
enum cavs_mv_pred VAR_3, enum cavs_block VAR_4, int VAR_5)
{
cavs_vector *mvP = &VAR_0->mv[VAR_1];
cavs_vector *mvA = &VAR_0->mv[VAR_1-1];
cavs_vector *mvB = &VAR_0->mv[VAR_1-4];
cavs_vector *mvC = &VAR_... | [
"void FUNC_0(AVSContext *VAR_0, enum cavs_mv_loc VAR_1, enum cavs_mv_loc VAR_2,\nenum cavs_mv_pred VAR_3, enum cavs_block VAR_4, int VAR_5)\n{",
"cavs_vector *mvP = &VAR_0->mv[VAR_1];",
"cavs_vector *mvA = &VAR_0->mv[VAR_1-1];",
"cavs_vector *mvB = &VAR_0->mv[VAR_1-4];",
"cavs_vector *mvC = &VAR_0->mv[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,
1,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23,
25
],
[
27,
29,
31,
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
11,540 | static int usbredir_handle_iso_data(USBRedirDevice *dev, USBPacket *p,
uint8_t ep)
{
int status, len;
if (!dev->endpoint[EP2I(ep)].iso_started &&
!dev->endpoint[EP2I(ep)].iso_error) {
struct usb_redir_start_iso_stream_header start_iso = {
... | true | qemu | 4f4321c11ff6e98583846bfd6f0e81954924b003 | static int usbredir_handle_iso_data(USBRedirDevice *dev, USBPacket *p,
uint8_t ep)
{
int status, len;
if (!dev->endpoint[EP2I(ep)].iso_started &&
!dev->endpoint[EP2I(ep)].iso_error) {
struct usb_redir_start_iso_stream_header start_iso = {
... | {
"code": [
" if (len > p->len) {",
" memcpy(p->data, isop->data, len);",
" .length = p->len",
" p->data, p->len);",
" DPRINTF2(\"iso-token-out ep %02X status %d len %d\\n\", ep, status,",
" p->len);"... | static int FUNC_0(USBRedirDevice *VAR_0, USBPacket *VAR_1,
uint8_t VAR_2)
{
int VAR_3, VAR_4;
if (!VAR_0->endpoint[EP2I(VAR_2)].iso_started &&
!VAR_0->endpoint[EP2I(VAR_2)].iso_error) {
struct usb_redir_start_iso_stream_header VAR_5 = {
... | [
"static int FUNC_0(USBRedirDevice *VAR_0, USBPacket *VAR_1,\nuint8_t VAR_2)\n{",
"int VAR_3, VAR_4;",
"if (!VAR_0->endpoint[EP2I(VAR_2)].iso_started &&\n!VAR_0->endpoint[EP2I(VAR_2)].iso_error) {",
"struct usb_redir_start_iso_stream_header VAR_5 = {",
".endpoint = VAR_2,\n.pkts_per_urb = 32,\n.no_urbs = 3,\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
1,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
15
],
[
17,
21,
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
... |
11,541 | static inline void vmsvga_check_size(struct vmsvga_state_s *s)
{
DisplaySurface *surface = qemu_console_surface(s->vga.con);
if (s->new_width != surface_width(surface) ||
s->new_height != surface_height(surface)) {
qemu_console_resize(s->vga.con, s->new_width, s->new_height);
s->... | true | qemu | eb2f9b024d68884a3b25e63e4dbf90b67f8da236 | static inline void vmsvga_check_size(struct vmsvga_state_s *s)
{
DisplaySurface *surface = qemu_console_surface(s->vga.con);
if (s->new_width != surface_width(surface) ||
s->new_height != surface_height(surface)) {
qemu_console_resize(s->vga.con, s->new_width, s->new_height);
s->... | {
"code": [
" s->new_height != surface_height(surface)) {",
" qemu_console_resize(s->vga.con, s->new_width, s->new_height);"
],
"line_no": [
11,
13
]
} | static inline void FUNC_0(struct vmsvga_state_s *VAR_0)
{
DisplaySurface *surface = qemu_console_surface(VAR_0->vga.con);
if (VAR_0->new_width != surface_width(surface) ||
VAR_0->new_height != surface_height(surface)) {
qemu_console_resize(VAR_0->vga.con, VAR_0->new_width, VAR_0->new_heig... | [
"static inline void FUNC_0(struct vmsvga_state_s *VAR_0)\n{",
"DisplaySurface *surface = qemu_console_surface(VAR_0->vga.con);",
"if (VAR_0->new_width != surface_width(surface) ||\nVAR_0->new_height != surface_height(surface)) {",
"qemu_console_resize(VAR_0->vga.con, VAR_0->new_width, VAR_0->new_height);",
... | [
0,
0,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
11,542 | void vga_init(VGACommonState *s, Object *obj, MemoryRegion *address_space,
MemoryRegion *address_space_io, bool init_vga_ports)
{
MemoryRegion *vga_io_memory;
const MemoryRegionPortio *vga_ports, *vbe_ports;
PortioList *vga_port_list = g_new(PortioList, 1);
PortioList *vbe_port_list ... | true | qemu | 848696bf353750899832c51005f1bd3540da5c29 | void vga_init(VGACommonState *s, Object *obj, MemoryRegion *address_space,
MemoryRegion *address_space_io, bool init_vga_ports)
{
MemoryRegion *vga_io_memory;
const MemoryRegionPortio *vga_ports, *vbe_ports;
PortioList *vga_port_list = g_new(PortioList, 1);
PortioList *vbe_port_list ... | {
"code": [
" PortioList *vga_port_list = g_new(PortioList, 1);",
" PortioList *vbe_port_list = g_new(PortioList, 1);",
" portio_list_init(vga_port_list, obj, vga_ports, s, \"vga\");",
" portio_list_set_flush_coalesced(vga_port_list);",
" portio_list_add(vga_port_list, a... | void FUNC_0(VGACommonState *VAR_0, Object *VAR_1, MemoryRegion *VAR_2,
MemoryRegion *VAR_3, bool VAR_4)
{
MemoryRegion *vga_io_memory;
const MemoryRegionPortio *VAR_5, *vbe_ports;
PortioList *vga_port_list = g_new(PortioList, 1);
PortioList *vbe_port_list = g_new(PortioList, 1);
... | [
"void FUNC_0(VGACommonState *VAR_0, Object *VAR_1, MemoryRegion *VAR_2,\nMemoryRegion *VAR_3, bool VAR_4)\n{",
"MemoryRegion *vga_io_memory;",
"const MemoryRegionPortio *VAR_5, *vbe_ports;",
"PortioList *vga_port_list = g_new(PortioList, 1);",
"PortioList *vbe_port_list = g_new(PortioList, 1);",
"qemu_reg... | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
1,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
25
],
[
29
],
[
31,
33,
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
11,544 | static void msix_mmio_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned size)
{
PCIDevice *dev = opaque;
unsigned int offset = addr & (MSIX_PAGE_SIZE - 1) & ~0x3;
int vector = offset / PCI_MSIX_ENTRY_SIZE;
/* MSI-X page includes a read-only PBA and a... | true | qemu | ae392c416c69a020226c768d9c3af08b29dd6d96 | static void msix_mmio_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned size)
{
PCIDevice *dev = opaque;
unsigned int offset = addr & (MSIX_PAGE_SIZE - 1) & ~0x3;
int vector = offset / PCI_MSIX_ENTRY_SIZE;
if (vector >= dev->msix_entries_nr) {
... | {
"code": [
" msix_handle_mask_update(dev, vector);"
],
"line_no": [
27
]
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
PCIDevice *dev = VAR_0;
unsigned int VAR_4 = VAR_1 & (MSIX_PAGE_SIZE - 1) & ~0x3;
int VAR_5 = VAR_4 / PCI_MSIX_ENTRY_SIZE;
if (VAR_5 >= dev->msix_entries_nr) {
r... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"PCIDevice *dev = VAR_0;",
"unsigned int VAR_4 = VAR_1 & (MSIX_PAGE_SIZE - 1) & ~0x3;",
"int VAR_5 = VAR_4 / PCI_MSIX_ENTRY_SIZE;",
"if (VAR_5 >= dev->msix_entries_nr) {",
"return;",
"}",
"pci_set_long(dev... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
]
] |
11,545 | static void qemu_laio_completion_cb(EventNotifier *e)
{
struct qemu_laio_state *s = container_of(e, struct qemu_laio_state, e);
while (event_notifier_test_and_clear(&s->e)) {
struct io_event events[MAX_EVENTS];
struct timespec ts = { 0 };
int nevents, i;
do {
... | true | qemu | 2cdff7f620ebd3b5246cf0c0d1f6fa0eededa4ca | static void qemu_laio_completion_cb(EventNotifier *e)
{
struct qemu_laio_state *s = container_of(e, struct qemu_laio_state, e);
while (event_notifier_test_and_clear(&s->e)) {
struct io_event events[MAX_EVENTS];
struct timespec ts = { 0 };
int nevents, i;
do {
... | {
"code": [
"static void qemu_laio_completion_cb(EventNotifier *e)",
" struct qemu_laio_state *s = container_of(e, struct qemu_laio_state, e);",
" while (event_notifier_test_and_clear(&s->e)) {",
" struct io_event events[MAX_EVENTS];",
" struct timespec ts = { 0 };",
" ... | static void FUNC_0(EventNotifier *VAR_0)
{
struct qemu_laio_state *VAR_1 = container_of(VAR_0, struct qemu_laio_state, VAR_0);
while (event_notifier_test_and_clear(&VAR_1->VAR_0)) {
struct io_event VAR_2[MAX_EVENTS];
struct timespec VAR_3 = { 0 };
int VAR_4, VAR_5;
do ... | [
"static void FUNC_0(EventNotifier *VAR_0)\n{",
"struct qemu_laio_state *VAR_1 = container_of(VAR_0, struct qemu_laio_state, VAR_0);",
"while (event_notifier_test_and_clear(&VAR_1->VAR_0)) {",
"struct io_event VAR_2[MAX_EVENTS];",
"struct timespec VAR_3 = { 0 };",
"int VAR_4, VAR_5;",
"do {",
"VAR_4 = ... | [
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
11,547 | static void spapr_rng_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
dc->realize = spapr_rng_realize;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
dc->props = spapr_rng_properties;
} | true | qemu | 3d0db3e74d818ba43c62cdfb3220e551f4f5ae37 | static void spapr_rng_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
dc->realize = spapr_rng_realize;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
dc->props = spapr_rng_properties;
} | {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
dc->realize = spapr_rng_realize;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
dc->props = spapr_rng_properties;
} | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"dc->realize = spapr_rng_realize;",
"set_bit(DEVICE_CATEGORY_MISC, dc->categories);",
"dc->props = spapr_rng_properties;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
16
]
] |
11,548 | static void process_incoming_migration_co(void *opaque)
{
QEMUFile *f = opaque;
MigrationIncomingState *mis = migration_incoming_get_current();
PostcopyState ps;
int ret;
mis->from_src_file = f;
mis->largest_page_size = qemu_ram_pagesize_largest();
postcopy_state_set(POSTCOPY_INCOM... | true | qemu | e8199e4895d34136735dea7e628d0de1a5afb630 | static void process_incoming_migration_co(void *opaque)
{
QEMUFile *f = opaque;
MigrationIncomingState *mis = migration_incoming_get_current();
PostcopyState ps;
int ret;
mis->from_src_file = f;
mis->largest_page_size = qemu_ram_pagesize_largest();
postcopy_state_set(POSTCOPY_INCOM... | {
"code": [
" qemu_fclose(f);",
" free_xbzrle_decoded_buf();"
],
"line_no": [
95,
97
]
} | static void FUNC_0(void *VAR_0)
{
QEMUFile *f = VAR_0;
MigrationIncomingState *mis = migration_incoming_get_current();
PostcopyState ps;
int VAR_1;
mis->from_src_file = f;
mis->largest_page_size = qemu_ram_pagesize_largest();
postcopy_state_set(POSTCOPY_INCOMING_NONE);
migrate... | [
"static void FUNC_0(void *VAR_0)\n{",
"QEMUFile *f = VAR_0;",
"MigrationIncomingState *mis = migration_incoming_get_current();",
"PostcopyState ps;",
"int VAR_1;",
"mis->from_src_file = f;",
"mis->largest_page_size = qemu_ram_pagesize_largest();",
"postcopy_state_set(POSTCOPY_INCOMING_NONE);",
"migr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
47
],
[
49
],
[
59
],
[
61
],
[
63
],
[... |
11,550 | static int ast_read_packet(AVFormatContext *s, AVPacket *pkt)
{
uint32_t type, size;
int64_t pos;
int ret;
if (avio_feof(s->pb))
return AVERROR_EOF;
pos = avio_tell(s->pb);
type = avio_rl32(s->pb);
size = avio_rb32(s->pb);
if (size > INT_MAX / s->streams[0]->codecp... | true | FFmpeg | 9959a52b14bcfa3e5baeb3fc8a86c04bbc0d3d5d | static int ast_read_packet(AVFormatContext *s, AVPacket *pkt)
{
uint32_t type, size;
int64_t pos;
int ret;
if (avio_feof(s->pb))
return AVERROR_EOF;
pos = avio_tell(s->pb);
type = avio_rl32(s->pb);
size = avio_rb32(s->pb);
if (size > INT_MAX / s->streams[0]->codecp... | {
"code": [
" if (size > INT_MAX / s->streams[0]->codecpar->channels)"
],
"line_no": [
25
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
uint32_t type, size;
int64_t pos;
int VAR_2;
if (avio_feof(VAR_0->pb))
return AVERROR_EOF;
pos = avio_tell(VAR_0->pb);
type = avio_rl32(VAR_0->pb);
size = avio_rb32(VAR_0->pb);
if (size > INT_MAX / VAR_0-... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"uint32_t type, size;",
"int64_t pos;",
"int VAR_2;",
"if (avio_feof(VAR_0->pb))\nreturn AVERROR_EOF;",
"pos = avio_tell(VAR_0->pb);",
"type = avio_rl32(VAR_0->pb);",
"size = avio_rb32(VAR_0->pb);",
"if (size > INT_MAX / VAR_0->stream... | [
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
],
[
13,
15
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
31
],
[
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
11,551 | static void do_apply_filter(APEContext *ctx, int version, APEFilter *f,
int32_t *data, int count, int order, int fracbits)
{
int res;
int absres;
while (count--) {
/* round fixedpoint scalar product */
res = ctx->adsp.scalarproduct_and_madd_int16(f->coeff... | true | FFmpeg | f3fdef108eb06b1e71b29152bf6822519e787efe | static void do_apply_filter(APEContext *ctx, int version, APEFilter *f,
int32_t *data, int count, int order, int fracbits)
{
int res;
int absres;
while (count--) {
res = ctx->adsp.scalarproduct_and_madd_int16(f->coeffs,
... | {
"code": [
" *f->adaptcoeffs = ((res & (-1<<31)) ^ (-1<<30)) >>"
],
"line_no": [
61
]
} | static void FUNC_0(APEContext *VAR_0, int VAR_1, APEFilter *VAR_2,
int32_t *VAR_3, int VAR_4, int VAR_5, int VAR_6)
{
int VAR_7;
int VAR_8;
while (VAR_4--) {
VAR_7 = VAR_0->adsp.scalarproduct_and_madd_int16(VAR_2->coeffs,
... | [
"static void FUNC_0(APEContext *VAR_0, int VAR_1, APEFilter *VAR_2,\nint32_t *VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7;",
"int VAR_8;",
"while (VAR_4--) {",
"VAR_7 = VAR_0->adsp.scalarproduct_and_madd_int16(VAR_2->coeffs,\nVAR_2->delay - VAR_5,\nVAR_2->adaptcoeffs - VAR_5,\nVAR_5, APESIGN(*VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17,
19,
21,
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
57
],
[
59,
61,
63
],
[
65,... |
11,552 | static int fill_filter_caches(H264Context *h, H264SliceContext *sl, int mb_type)
{
const int mb_xy = h->mb_xy;
int top_xy, left_xy[LEFT_MBS];
int top_type, left_type[LEFT_MBS];
uint8_t *nnz;
uint8_t *nnz_cache;
top_xy = mb_xy - (h->mb_stride << MB_FIELD(h));
/* Wow, what a mess, ... | false | FFmpeg | e6c90ce94f1b07f50cea2babf7471af455cca0ff | static int fill_filter_caches(H264Context *h, H264SliceContext *sl, int mb_type)
{
const int mb_xy = h->mb_xy;
int top_xy, left_xy[LEFT_MBS];
int top_type, left_type[LEFT_MBS];
uint8_t *nnz;
uint8_t *nnz_cache;
top_xy = mb_xy - (h->mb_stride << MB_FIELD(h));
left_xy[LBO... | {
"code": [],
"line_no": []
} | static int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1, int VAR_2)
{
const int VAR_3 = VAR_0->VAR_3;
int VAR_4, left_xy[LEFT_MBS];
int VAR_5, left_type[LEFT_MBS];
uint8_t *nnz;
uint8_t *nnz_cache;
VAR_4 = VAR_3 - (VAR_0->mb_stride << MB_FIELD(VAR_0));
left_xy[LBO... | [
"static int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1, int VAR_2)\n{",
"const int VAR_3 = VAR_0->VAR_3;",
"int VAR_4, left_xy[LEFT_MBS];",
"int VAR_5, left_type[LEFT_MBS];",
"uint8_t *nnz;",
"uint8_t *nnz_cache;",
"VAR_4 = VAR_3 - (VAR_0->mb_stride << MB_FIELD(VAR_0));",
"left_xy[LBOT] = left... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43,
45,
47
],
[
49,
51
],
[
53
],
[
55
... |
11,554 | av_cold void ff_init_lls_x86(LLSModel *m)
{
int cpu_flags = av_get_cpu_flags();
if (EXTERNAL_SSE2(cpu_flags)) {
m->update_lls = ff_update_lls_sse2;
if (m->indep_count >= 4)
m->evaluate_lls = ff_evaluate_lls_sse2;
}
if (EXTERNAL_AVX(cpu_flags)) {
m->update_lls... | false | FFmpeg | d68c05380cebf563915412182643a8be04ef890b | av_cold void ff_init_lls_x86(LLSModel *m)
{
int cpu_flags = av_get_cpu_flags();
if (EXTERNAL_SSE2(cpu_flags)) {
m->update_lls = ff_update_lls_sse2;
if (m->indep_count >= 4)
m->evaluate_lls = ff_evaluate_lls_sse2;
}
if (EXTERNAL_AVX(cpu_flags)) {
m->update_lls... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(LLSModel *m)
{
int VAR_0 = av_get_cpu_flags();
if (EXTERNAL_SSE2(VAR_0)) {
m->update_lls = ff_update_lls_sse2;
if (m->indep_count >= 4)
m->evaluate_lls = ff_evaluate_lls_sse2;
}
if (EXTERNAL_AVX(VAR_0)) {
m->update_lls = ff_update_lls_avx;... | [
"av_cold void FUNC_0(LLSModel *m)\n{",
"int VAR_0 = av_get_cpu_flags();",
"if (EXTERNAL_SSE2(VAR_0)) {",
"m->update_lls = ff_update_lls_sse2;",
"if (m->indep_count >= 4)\nm->evaluate_lls = ff_evaluate_lls_sse2;",
"}",
"if (EXTERNAL_AVX(VAR_0)) {",
"m->update_lls = ff_update_lls_avx;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
11,555 | static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW)
{
#ifde... | true | FFmpeg | 8b2fce0d3f5a56c40c28899c9237210ca8f9cf75 | static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW)
{
#ifde... | {
"code": [
" YSCALEYUV2YV12X_ACCURATE( 0, CHR_MMX_FILTER_OFFSET, uDest, chrDstW)",
" YSCALEYUV2YV12X_ACCURATE(4096, CHR_MMX_FILTER_OFFSET, vDest, chrDstW)",
" YSCALEYUV2YV12X_ACCURATE(0, LUM_MMX_FILTER_OFFSET, dest, dstW)",
" YSCALEYUV2YV12X( 0, CHR_MMX_FIL... | static inline void FUNC_0(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW)
{
#ifde... | [
"static inline void FUNC_0(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,\nint16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,\nuint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW)\n{",
"#ifdef HAVE_MMX\nif (c->flags & SWS_ACCURATE_RND){",
"if (uDest){"... | [
0,
0,
0,
1,
1,
0,
1,
1,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
13
],
[
15,
17,
19
],
[
23,
25
],
[
27
],
[
29,
31,
33
],
[
37,
39
],
[
41,
43,
45,
47,
49
],
[
51,
53,
55,
57
],
[
59,
61,
63
... |
11,556 | static void vmxnet3_update_rx_mode(VMXNET3State *s)
{
s->rx_mode = VMXNET3_READ_DRV_SHARED32(s->drv_shmem,
devRead.rxFilterConf.rxMode);
VMW_CFPRN("RX mode: 0x%08X", s->rx_mode);
}
| true | qemu | c508277335e3b6b20cf18e6ea3a35c1fa835c64a | static void vmxnet3_update_rx_mode(VMXNET3State *s)
{
s->rx_mode = VMXNET3_READ_DRV_SHARED32(s->drv_shmem,
devRead.rxFilterConf.rxMode);
VMW_CFPRN("RX mode: 0x%08X", s->rx_mode);
}
| {
"code": [
" s->rx_mode = VMXNET3_READ_DRV_SHARED32(s->drv_shmem,"
],
"line_no": [
5
]
} | static void FUNC_0(VMXNET3State *VAR_0)
{
VAR_0->rx_mode = VMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem,
devRead.rxFilterConf.rxMode);
VMW_CFPRN("RX mode: 0x%08X", VAR_0->rx_mode);
}
| [
"static void FUNC_0(VMXNET3State *VAR_0)\n{",
"VAR_0->rx_mode = VMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem,\ndevRead.rxFilterConf.rxMode);",
"VMW_CFPRN(\"RX mode: 0x%08X\", VAR_0->rx_mode);",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
]
] |
11,557 | static int qemu_peek_byte(QEMUFile *f)
{
if (f->is_write) {
abort();
}
if (f->buf_index >= f->buf_size) {
qemu_fill_buffer(f);
if (f->buf_index >= f->buf_size) {
return 0;
}
}
return f->buf[f->buf_index];
}
| true | qemu | c63807244fb55071675907460a0ecf228c1766c8 | static int qemu_peek_byte(QEMUFile *f)
{
if (f->is_write) {
abort();
}
if (f->buf_index >= f->buf_size) {
qemu_fill_buffer(f);
if (f->buf_index >= f->buf_size) {
return 0;
}
}
return f->buf[f->buf_index];
}
| {
"code": [
"static int qemu_peek_byte(QEMUFile *f)",
" if (f->buf_index >= f->buf_size) {",
" if (f->buf_index >= f->buf_size) {",
" return f->buf[f->buf_index];"
],
"line_no": [
1,
13,
17,
25
]
} | static int FUNC_0(QEMUFile *VAR_0)
{
if (VAR_0->is_write) {
abort();
}
if (VAR_0->buf_index >= VAR_0->buf_size) {
qemu_fill_buffer(VAR_0);
if (VAR_0->buf_index >= VAR_0->buf_size) {
return 0;
}
}
return VAR_0->buf[VAR_0->buf_index];
}
| [
"static int FUNC_0(QEMUFile *VAR_0)\n{",
"if (VAR_0->is_write) {",
"abort();",
"}",
"if (VAR_0->buf_index >= VAR_0->buf_size) {",
"qemu_fill_buffer(VAR_0);",
"if (VAR_0->buf_index >= VAR_0->buf_size) {",
"return 0;",
"}",
"}",
"return VAR_0->buf[VAR_0->buf_index];",
"}"
] | [
1,
0,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
11,558 | static int virtio_ccw_set_vqs(SubchDev *sch, uint64_t addr, uint32_t align,
uint16_t index, uint16_t num)
{
VirtIODevice *vdev = virtio_ccw_get_vdev(sch);
if (index > VIRTIO_PCI_QUEUE_MAX) {
return -EINVAL;
}
/* Current code in virtio.c relies on 4K align... | true | qemu | 590fe5722b522e492a9c78adadae4def35b137dd | static int virtio_ccw_set_vqs(SubchDev *sch, uint64_t addr, uint32_t align,
uint16_t index, uint16_t num)
{
VirtIODevice *vdev = virtio_ccw_get_vdev(sch);
if (index > VIRTIO_PCI_QUEUE_MAX) {
return -EINVAL;
}
if (addr && (align != 4096)) {
... | {
"code": [
" if (index > VIRTIO_PCI_QUEUE_MAX) {"
],
"line_no": [
11
]
} | static int FUNC_0(SubchDev *VAR_0, uint64_t VAR_1, uint32_t VAR_2,
uint16_t VAR_3, uint16_t VAR_4)
{
VirtIODevice *vdev = virtio_ccw_get_vdev(VAR_0);
if (VAR_3 > VIRTIO_PCI_QUEUE_MAX) {
return -EINVAL;
}
if (VAR_1 && (VAR_2 != 4096)) {
retu... | [
"static int FUNC_0(SubchDev *VAR_0, uint64_t VAR_1, uint32_t VAR_2,\nuint16_t VAR_3, uint16_t VAR_4)\n{",
"VirtIODevice *vdev = virtio_ccw_get_vdev(VAR_0);",
"if (VAR_3 > VIRTIO_PCI_QUEUE_MAX) {",
"return -EINVAL;",
"}",
"if (VAR_1 && (VAR_2 != 4096)) {",
"return -EINVAL;",
"}",
"if (!vdev) {",
"r... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
49
],
[
51
],
[
53
],
[
55
],
... |
11,559 | static bool cuda_cmd_set_time(CUDAState *s,
const uint8_t *in_data, int in_len,
uint8_t *out_data, int *out_len)
{
uint32_t ti;
if (in_len != 4) {
return false;
}
ti = (((uint32_t)in_data[1]) << 24) + (((uint32_t)in_data[2])... | true | qemu | ed3d807b0a577c4f825b25f3281fe54ce89202db | static bool cuda_cmd_set_time(CUDAState *s,
const uint8_t *in_data, int in_len,
uint8_t *out_data, int *out_len)
{
uint32_t ti;
if (in_len != 4) {
return false;
}
ti = (((uint32_t)in_data[1]) << 24) + (((uint32_t)in_data[2])... | {
"code": [
" ti = (((uint32_t)in_data[1]) << 24) + (((uint32_t)in_data[2]) << 16)",
" + (((uint32_t)in_data[3]) << 8) + in_data[4];"
],
"line_no": [
21,
23
]
} | static bool FUNC_0(CUDAState *s,
const uint8_t *in_data, int in_len,
uint8_t *out_data, int *out_len)
{
uint32_t ti;
if (in_len != 4) {
return false;
}
ti = (((uint32_t)in_data[1]) << 24) + (((uint32_t)in_data[2]) << 16)
... | [
"static bool FUNC_0(CUDAState *s,\nconst uint8_t *in_data, int in_len,\nuint8_t *out_data, int *out_len)\n{",
"uint32_t ti;",
"if (in_len != 4) {",
"return false;",
"}",
"ti = (((uint32_t)in_data[1]) << 24) + (((uint32_t)in_data[2]) << 16)\n+ (((uint32_t)in_data[3]) << 8) + in_data[4];",
"s->tick_offset... | [
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25,
27
],
[
29
],
[
31
]
] |
11,560 | static void vscsi_send_request_sense(VSCSIState *s, vscsi_req *req)
{
SCSIDevice *sdev = req->sdev;
uint8_t *cdb = req->iu.srp.cmd.cdb;
int n;
cdb[0] = 3;
cdb[1] = 0;
cdb[2] = 0;
cdb[3] = 0;
cdb[4] = 96;
cdb[5] = 0;
req->sensing = 1;
n = sdev->info->send_command... | true | qemu | 5c6c0e513600ba57c3e73b7151d3c0664438f7b5 | static void vscsi_send_request_sense(VSCSIState *s, vscsi_req *req)
{
SCSIDevice *sdev = req->sdev;
uint8_t *cdb = req->iu.srp.cmd.cdb;
int n;
cdb[0] = 3;
cdb[1] = 0;
cdb[2] = 0;
cdb[3] = 0;
cdb[4] = 96;
cdb[5] = 0;
req->sensing = 1;
n = sdev->info->send_command... | {
"code": [
" n = sdev->info->send_command(sdev, req->qtag, cdb, req->lun);",
" sdev->info->cancel_io(sdev, req->qtag);",
" sdev->info->read_data(sdev, req->qtag);",
" sdev->info->cancel_io(sdev, req->qtag);"
],
"line_no": [
27,
35,
51,
35
]
} | static void FUNC_0(VSCSIState *VAR_0, vscsi_req *VAR_1)
{
SCSIDevice *sdev = VAR_1->sdev;
uint8_t *cdb = VAR_1->iu.srp.cmd.cdb;
int VAR_2;
cdb[0] = 3;
cdb[1] = 0;
cdb[2] = 0;
cdb[3] = 0;
cdb[4] = 96;
cdb[5] = 0;
VAR_1->sensing = 1;
VAR_2 = sdev->info->send_comma... | [
"static void FUNC_0(VSCSIState *VAR_0, vscsi_req *VAR_1)\n{",
"SCSIDevice *sdev = VAR_1->sdev;",
"uint8_t *cdb = VAR_1->iu.srp.cmd.cdb;",
"int VAR_2;",
"cdb[0] = 3;",
"cdb[1] = 0;",
"cdb[2] = 0;",
"cdb[3] = 0;",
"cdb[4] = 96;",
"cdb[5] = 0;",
"VAR_1->sensing = 1;",
"VAR_2 = sdev->info->send_co... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
11,561 | static inline void RENAME(yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
long width, long height,
long lumStride, long chromStride, long dstStride)
{
//FIXME interpolate chroma
RENAME(yuvPlanartouyvy)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStr... | true | FFmpeg | 6e42e6c4b410dbef8b593c2d796a5dad95f89ee4 | static inline void RENAME(yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
long width, long height,
long lumStride, long chromStride, long dstStride)
{
RENAME(yuvPlanartouyvy)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2);
}
| {
"code": [
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
"\tlong width, long height,",
... | static inline void FUNC_0(yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
long width, long height,
long lumStride, long chromStride, long dstStride)
{
FUNC_0(yuvPlanartouyvy)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2);
}
| [
"static inline void FUNC_0(yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,\nlong width, long height,\nlong lumStride, long chromStride, long dstStride)\n{",
"FUNC_0(yuvPlanartouyvy)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2);",
"}"
] | [
1,
1,
0
] | [
[
1,
3,
5,
7
],
[
11
],
[
13
]
] |
11,562 | static uint64_t pmsav5_data_ap_read(CPUARMState *env, const ARMCPRegInfo *ri)
{
return simple_mpu_ap_bits(env->cp15.c5_data);
}
| true | qemu | 7e09797c299712cafa7bc05dd57c1b13afcc6039 | static uint64_t pmsav5_data_ap_read(CPUARMState *env, const ARMCPRegInfo *ri)
{
return simple_mpu_ap_bits(env->cp15.c5_data);
}
| {
"code": [
" return simple_mpu_ap_bits(env->cp15.c5_data);"
],
"line_no": [
5
]
} | static uint64_t FUNC_0(CPUARMState *env, const ARMCPRegInfo *ri)
{
return simple_mpu_ap_bits(env->cp15.c5_data);
}
| [
"static uint64_t FUNC_0(CPUARMState *env, const ARMCPRegInfo *ri)\n{",
"return simple_mpu_ap_bits(env->cp15.c5_data);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
11,563 | static void flat(WaveformContext *s, AVFrame *in, AVFrame *out,
int component, int intensity, int offset, int column)
{
const int plane = s->desc->comp[component].plane;
const int mirror = s->mirror;
const int c0_linesize = in->linesize[ plane + 0 ];
const int c1_linesize = in->li... | false | FFmpeg | 5b349c8d7cc5dd26b3fbbce6e3883ce02861eeb7 | static void flat(WaveformContext *s, AVFrame *in, AVFrame *out,
int component, int intensity, int offset, int column)
{
const int plane = s->desc->comp[component].plane;
const int mirror = s->mirror;
const int c0_linesize = in->linesize[ plane + 0 ];
const int c1_linesize = in->li... | {
"code": [],
"line_no": []
} | static void FUNC_0(WaveformContext *VAR_0, AVFrame *VAR_1, AVFrame *VAR_2,
int VAR_3, int VAR_4, int VAR_5, int VAR_6)
{
const int VAR_7 = VAR_0->desc->comp[VAR_3].VAR_7;
const int VAR_8 = VAR_0->VAR_8;
const int VAR_9 = VAR_1->linesize[ VAR_7 + 0 ];
const int VAR_10 = VAR_1->line... | [
"static void FUNC_0(WaveformContext *VAR_0, AVFrame *VAR_1, AVFrame *VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{",
"const int VAR_7 = VAR_0->desc->comp[VAR_3].VAR_7;",
"const int VAR_8 = VAR_0->VAR_8;",
"const int VAR_9 = VAR_1->linesize[ VAR_7 + 0 ];",
"const int VAR_10 = VAR_1->linesize[(VAR_7 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
11,564 | av_cold int ff_mpv_common_init(MpegEncContext *s)
{
int i;
int nb_slices = (HAVE_THREADS &&
s->avctx->active_thread_type & FF_THREAD_SLICE) ?
s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices)
nb_slices = s->avctx->slices;
if (s-... | false | FFmpeg | f30a7d9861af884f352ec2484820a75d79a4e0e2 | av_cold int ff_mpv_common_init(MpegEncContext *s)
{
int i;
int nb_slices = (HAVE_THREADS &&
s->avctx->active_thread_type & FF_THREAD_SLICE) ?
s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices)
nb_slices = s->avctx->slices;
if (s-... | {
"code": [],
"line_no": []
} | av_cold int FUNC_0(MpegEncContext *s)
{
int VAR_0;
int VAR_1 = (HAVE_THREADS &&
s->avctx->active_thread_type & FF_THREAD_SLICE) ?
s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices)
VAR_1 = s->avctx->slices;
if (s->codec_id == AV_... | [
"av_cold int FUNC_0(MpegEncContext *s)\n{",
"int VAR_0;",
"int VAR_1 = (HAVE_THREADS &&\ns->avctx->active_thread_type & FF_THREAD_SLICE) ?\ns->avctx->thread_count : 1;",
"if (s->encoding && s->avctx->slices)\nVAR_1 = s->avctx->slices;",
"if (s->codec_id == AV_CODEC_ID_MPEG2VIDEO && !s->progressive_sequence)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
15,
17
],
[
21,
23
],
[
25,
27
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47,
49
],
[
51,
53
],
[
55,
57
],
[... |
11,565 | static int read_audio_mux_element(struct LATMContext *latmctx,
GetBitContext *gb)
{
int err;
uint8_t use_same_mux = get_bits(gb, 1);
if (!use_same_mux) {
if ((err = read_stream_mux_config(latmctx, gb)) < 0)
return err;
} else if (!latmctx->aa... | true | FFmpeg | 94d05ff15985d17aba070eaec82acd21c0da3d86 | static int read_audio_mux_element(struct LATMContext *latmctx,
GetBitContext *gb)
{
int err;
uint8_t use_same_mux = get_bits(gb, 1);
if (!use_same_mux) {
if ((err = read_stream_mux_config(latmctx, gb)) < 0)
return err;
} else if (!latmctx->aa... | {
"code": [
" if (mux_slot_length_bytes * 8 > get_bits_left(gb)) {"
],
"line_no": [
31
]
} | static int FUNC_0(struct LATMContext *VAR_0,
GetBitContext *VAR_1)
{
int VAR_2;
uint8_t use_same_mux = get_bits(VAR_1, 1);
if (!use_same_mux) {
if ((VAR_2 = read_stream_mux_config(VAR_0, VAR_1)) < 0)
return VAR_2;
} else if (!VAR_0->aac_ctx.a... | [
"static int FUNC_0(struct LATMContext *VAR_0,\nGetBitContext *VAR_1)\n{",
"int VAR_2;",
"uint8_t use_same_mux = get_bits(VAR_1, 1);",
"if (!use_same_mux) {",
"if ((VAR_2 = read_stream_mux_config(VAR_0, VAR_1)) < 0)\nreturn VAR_2;",
"} else if (!VAR_0->aac_ctx.avctx->extradata) {",
"av_log(VAR_0->aac_ctx... | [
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
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41,
43
],
[
45
],
[... |
11,567 | static int vpc_has_zero_init(BlockDriverState *bs)
{
BDRVVPCState *s = bs->opaque;
VHDFooter *footer = (VHDFooter *) s->footer_buf;
if (cpu_to_be32(footer->type) == VHD_FIXED) {
return bdrv_has_zero_init(bs->file);
} else {
return 1;
}
}
| true | qemu | 0d4cc3e715f5794077895345577725539afe81eb | static int vpc_has_zero_init(BlockDriverState *bs)
{
BDRVVPCState *s = bs->opaque;
VHDFooter *footer = (VHDFooter *) s->footer_buf;
if (cpu_to_be32(footer->type) == VHD_FIXED) {
return bdrv_has_zero_init(bs->file);
} else {
return 1;
}
}
| {
"code": [
" if (cpu_to_be32(footer->type) == VHD_FIXED) {",
" if (cpu_to_be32(footer->type) == VHD_FIXED) {",
" if (cpu_to_be32(footer->type) == VHD_FIXED) {"
],
"line_no": [
11,
11,
11
]
} | static int FUNC_0(BlockDriverState *VAR_0)
{
BDRVVPCState *s = VAR_0->opaque;
VHDFooter *footer = (VHDFooter *) s->footer_buf;
if (cpu_to_be32(footer->type) == VHD_FIXED) {
return bdrv_has_zero_init(VAR_0->file);
} else {
return 1;
}
}
| [
"static int FUNC_0(BlockDriverState *VAR_0)\n{",
"BDRVVPCState *s = VAR_0->opaque;",
"VHDFooter *footer = (VHDFooter *) s->footer_buf;",
"if (cpu_to_be32(footer->type) == VHD_FIXED) {",
"return bdrv_has_zero_init(VAR_0->file);",
"} else {",
"return 1;",
"}",
"}"
] | [
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
11,568 | static int mpeg_decode_postinit(AVCodecContext *avctx)
{
Mpeg1Context *s1 = avctx->priv_data;
MpegEncContext *s = &s1->mpeg_enc_ctx;
uint8_t old_permutation[64];
int ret;
if (avctx->codec_id == AV_CODEC_ID_MPEG1VIDEO) {
// MPEG-1 aspect
avctx->sample_aspect_ratio = av_d2q(... | true | FFmpeg | c0ece1f4addf8ac31df95775a2d36be2a55fc759 | static int mpeg_decode_postinit(AVCodecContext *avctx)
{
Mpeg1Context *s1 = avctx->priv_data;
MpegEncContext *s = &s1->mpeg_enc_ctx;
uint8_t old_permutation[64];
int ret;
if (avctx->codec_id == AV_CODEC_ID_MPEG1VIDEO) {
avctx->sample_aspect_ratio = av_d2q(1.0 / ff_mpeg1_a... | {
"code": [
" avctx->sample_aspect_ratio = av_d2q(1.0 / ff_mpeg1_aspect[s->aspect_ratio_info], 255);"
],
"line_no": [
19
]
} | static int FUNC_0(AVCodecContext *VAR_0)
{
Mpeg1Context *s1 = VAR_0->priv_data;
MpegEncContext *s = &s1->mpeg_enc_ctx;
uint8_t old_permutation[64];
int VAR_1;
if (VAR_0->codec_id == AV_CODEC_ID_MPEG1VIDEO) {
VAR_0->sample_aspect_ratio = av_d2q(1.0 / ff_mpeg1_aspect[s->asp... | [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"Mpeg1Context *s1 = VAR_0->priv_data;",
"MpegEncContext *s = &s1->mpeg_enc_ctx;",
"uint8_t old_permutation[64];",
"int VAR_1;",
"if (VAR_0->codec_id == AV_CODEC_ID_MPEG1VIDEO) {",
"VAR_0->sample_aspect_ratio = av_d2q(1.0 / ff_mpeg1_aspect[s->aspect_ratio_i... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23,
25
],
[
27,
29,
31
],
[
33
],
[
35
],
[
47,
49
],
[
51
],
[
53,
55,
57
],
[
59
],
[
61,... |
11,569 | static void mxf_write_index_table_segment(AVFormatContext *s)
{
MXFContext *mxf = s->priv_data;
AVIOContext *pb = s->pb;
int i, j, temporal_reordering = 0;
int key_index = mxf->last_key_index;
av_log(s, AV_LOG_DEBUG, "edit units count %d\n", mxf->edit_units_count);
if (!mxf->edit_unit... | true | FFmpeg | e3ba817b95bbdc7c8aaf83b4a6804d1b49eb4de4 | static void mxf_write_index_table_segment(AVFormatContext *s)
{
MXFContext *mxf = s->priv_data;
AVIOContext *pb = s->pb;
int i, j, temporal_reordering = 0;
int key_index = mxf->last_key_index;
av_log(s, AV_LOG_DEBUG, "edit units count %d\n", mxf->edit_units_count);
if (!mxf->edit_unit... | {
"code": [
" klv_encode_ber_length(pb, 85 + 12+(s->nb_streams+1)*6 +",
" 12+mxf->edit_units_count*(11+mxf->slice_count*4));"
],
"line_no": [
35,
37
]
} | static void FUNC_0(AVFormatContext *VAR_0)
{
MXFContext *mxf = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int VAR_1, VAR_2, VAR_3 = 0;
int VAR_4 = mxf->last_key_index;
av_log(VAR_0, AV_LOG_DEBUG, "edit units count %d\n", mxf->edit_units_count);
if (!mxf->edit_units_count && !mxf->... | [
"static void FUNC_0(AVFormatContext *VAR_0)\n{",
"MXFContext *mxf = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_1, VAR_2, VAR_3 = 0;",
"int VAR_4 = mxf->last_key_index;",
"av_log(VAR_0, AV_LOG_DEBUG, \"edit units count %d\\n\", mxf->edit_units_count);",
"if (!mxf->edit_units_count && !m... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19,
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
45
],
[
47
],
[
53
],
[
55
],
[
57
],
[
63
... |
11,571 | static int vaapi_h264_decode_slice(AVCodecContext *avctx,
const uint8_t *buffer,
uint32_t size)
{
H264Context * const h = avctx->priv_data;
H264SliceContext *sl = &h->slice_ctx[0];
VASliceParameterBufferH264 *slice_param;
... | false | FFmpeg | 3176217c60ca7828712985092d9102d331ea4f3d | static int vaapi_h264_decode_slice(AVCodecContext *avctx,
const uint8_t *buffer,
uint32_t size)
{
H264Context * const h = avctx->priv_data;
H264SliceContext *sl = &h->slice_ctx[0];
VASliceParameterBufferH264 *slice_param;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
const uint8_t *VAR_1,
uint32_t VAR_2)
{
H264Context * const h = VAR_0->priv_data;
H264SliceContext *sl = &h->slice_ctx[0];
VASliceParameterBufferH264 *slice_param;
ff_dlog(VAR... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1,\nuint32_t VAR_2)\n{",
"H264Context * const h = VAR_0->priv_data;",
"H264SliceContext *sl = &h->slice_ctx[0];",
"VASliceParameterBufferH264 *slice_param;",
"ff_dlog(VAR_0, \"FUNC_0(): VAR_1 %p, VAR_2 %d\\n\",\nVAR_1, VAR_2);",
"slice... | [
0,
0,
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
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
11,572 | static void adaptive_quantization(MpegEncContext *s, double q){
int i;
const float lumi_masking= s->avctx->lumi_masking / (128.0*128.0);
const float dark_masking= s->avctx->dark_masking / (128.0*128.0);
const float temp_cplx_masking= s->avctx->temporal_cplx_masking;
const float spatial_cplx_mas... | false | FFmpeg | 17a70fdeeff1260ac9b2651ea9f36dbd23d0ced8 | static void adaptive_quantization(MpegEncContext *s, double q){
int i;
const float lumi_masking= s->avctx->lumi_masking / (128.0*128.0);
const float dark_masking= s->avctx->dark_masking / (128.0*128.0);
const float temp_cplx_masking= s->avctx->temporal_cplx_masking;
const float spatial_cplx_mas... | {
"code": [],
"line_no": []
} | static void FUNC_0(MpegEncContext *VAR_0, double VAR_1){
int VAR_2;
const float VAR_3= VAR_0->avctx->VAR_3 / (128.0*128.0);
const float VAR_4= VAR_0->avctx->VAR_4 / (128.0*128.0);
const float VAR_5= VAR_0->avctx->temporal_cplx_masking;
const float VAR_6 = VAR_0->avctx->VAR_6;
const float V... | [
"static void FUNC_0(MpegEncContext *VAR_0, double VAR_1){",
"int VAR_2;",
"const float VAR_3= VAR_0->avctx->VAR_3 / (128.0*128.0);",
"const float VAR_4= VAR_0->avctx->VAR_4 / (128.0*128.0);",
"const float VAR_5= VAR_0->avctx->temporal_cplx_masking;",
"const float VAR_6 = VAR_0->avctx->VAR_6;",
"const fl... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[... |
11,573 | static int flashsv2_prime(FlashSVContext *s, uint8_t *src,
int size, int unp_size)
{
z_stream zs;
int zret; // Zlib return code
zs.zalloc = NULL;
zs.zfree = NULL;
zs.opaque = NULL;
s->zstream.next_in = src;
s->zstream.avail_in = size;
s->zstrea... | false | FFmpeg | b3eb4f54c0d091ed518b38a5b90183d0d55fa729 | static int flashsv2_prime(FlashSVContext *s, uint8_t *src,
int size, int unp_size)
{
z_stream zs;
int zret;
zs.zalloc = NULL;
zs.zfree = NULL;
zs.opaque = NULL;
s->zstream.next_in = src;
s->zstream.avail_in = size;
s->zstream.next_out = s->tm... | {
"code": [],
"line_no": []
} | static int FUNC_0(FlashSVContext *VAR_0, uint8_t *VAR_1,
int VAR_2, int VAR_3)
{
z_stream zs;
int VAR_4;
zs.zalloc = NULL;
zs.zfree = NULL;
zs.opaque = NULL;
VAR_0->zstream.next_in = VAR_1;
VAR_0->zstream.avail_in = VAR_2;
VAR_0->zstream.next_... | [
"static int FUNC_0(FlashSVContext *VAR_0, uint8_t *VAR_1,\nint VAR_2, int VAR_3)\n{",
"z_stream zs;",
"int VAR_4;",
"zs.zalloc = NULL;",
"zs.zfree = NULL;",
"zs.opaque = NULL;",
"VAR_0->zstream.next_in = VAR_1;",
"VAR_0->zstream.avail_in = VAR_2;",
"VAR_0->zstream.next_out = VAR_0->tmpblock;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[... |
11,574 | int ff_mpeg4_decode_video_packet_header(Mpeg4DecContext *ctx)
{
MpegEncContext *s = &ctx->m;
int mb_num_bits = av_log2(s->mb_num - 1) + 1;
int header_extension = 0, mb_num, len;
/* is there enough space left for a video packet + header */
if (get_bits_count(&s->gb) > s->gb.size_in_bit... | false | FFmpeg | 05f4703a168a336363750e32bcfdd6f303fbdbc3 | int ff_mpeg4_decode_video_packet_header(Mpeg4DecContext *ctx)
{
MpegEncContext *s = &ctx->m;
int mb_num_bits = av_log2(s->mb_num - 1) + 1;
int header_extension = 0, mb_num, len;
if (get_bits_count(&s->gb) > s->gb.size_in_bits - 20)
return -1;
for (len = 0; len < 32; l... | {
"code": [],
"line_no": []
} | int FUNC_0(Mpeg4DecContext *VAR_0)
{
MpegEncContext *s = &VAR_0->m;
int VAR_1 = av_log2(s->VAR_3 - 1) + 1;
int VAR_2 = 0, VAR_3, VAR_4;
if (get_bits_count(&s->gb) > s->gb.size_in_bits - 20)
return -1;
for (VAR_4 = 0; VAR_4 < 32; VAR_4++)
if (get_bits1(&s->gb)... | [
"int FUNC_0(Mpeg4DecContext *VAR_0)\n{",
"MpegEncContext *s = &VAR_0->m;",
"int VAR_1 = av_log2(s->VAR_3 - 1) + 1;",
"int VAR_2 = 0, VAR_3, VAR_4;",
"if (get_bits_count(&s->gb) > s->gb.size_in_bits - 20)\nreturn -1;",
"for (VAR_4 = 0; VAR_4 < 32; VAR_4++)",
"if (get_bits1(&s->gb))\nbreak;",
"if (... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
17,
19
],
[
23
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
51
],
[
53
],
[
55,
57
],
[
59
],
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.