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 |
|---|---|---|---|---|---|---|---|---|---|---|
21,733 | static int disas_neon_data_insn(DisasContext *s, uint32_t insn)
{
int op;
int q;
int rd, rn, rm;
int size;
int shift;
int pass;
int count;
int pairwise;
int u;
uint32_t imm, mask;
TCGv_i32 tmp, tmp2, tmp3, tmp4, tmp5;
TCGv_i64 tmp64;
/* FIXME: this acc... | false | qemu | 9dbbc748d671c70599101836cd1c2719d92f3017 | static int disas_neon_data_insn(DisasContext *s, uint32_t insn)
{
int op;
int q;
int rd, rn, rm;
int size;
int shift;
int pass;
int count;
int pairwise;
int u;
uint32_t imm, mask;
TCGv_i32 tmp, tmp2, tmp3, tmp4, tmp5;
TCGv_i64 tmp64;
if (!s... | {
"code": [],
"line_no": []
} | static int FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)
{
int VAR_2;
int VAR_3;
int VAR_4, VAR_5, VAR_6;
int VAR_7;
int VAR_8;
int VAR_9;
int VAR_10;
int VAR_11;
int VAR_12;
uint32_t imm, mask;
TCGv_i32 tmp, tmp2, tmp3, tmp4, tmp5;
TCGv_i64 tmp64;
... | [
"static int FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{",
"int VAR_2;",
"int VAR_3;",
"int VAR_4, VAR_5, VAR_6;",
"int VAR_7;",
"int VAR_8;",
"int VAR_9;",
"int VAR_10;",
"int VAR_11;",
"int VAR_12;",
"uint32_t imm, mask;",
"TCGv_i32 tmp, tmp2, tmp3, tmp4, tmp5;",
"TCGv_i64 tmp64;",
"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,
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
],
[
39
],
[
41,
43,
45
],
[
47
],
[
49
],
[
53,
55
],
[... |
21,734 | static void rtas_int_on(sPAPREnvironment *spapr, uint32_t token,
uint32_t nargs, target_ulong args,
uint32_t nret, target_ulong rets)
{
struct ics_state *ics = spapr->icp->ics;
uint32_t nr;
if ((nargs != 1) || (nret != 1)) {
rtas_st(rets, 0, -... | false | qemu | 210b580b106fa798149e28aa13c66b325a43204e | static void rtas_int_on(sPAPREnvironment *spapr, uint32_t token,
uint32_t nargs, target_ulong args,
uint32_t nret, target_ulong rets)
{
struct ics_state *ics = spapr->icp->ics;
uint32_t nr;
if ((nargs != 1) || (nret != 1)) {
rtas_st(rets, 0, -... | {
"code": [],
"line_no": []
} | static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1,
uint32_t VAR_2, target_ulong VAR_3,
uint32_t VAR_4, target_ulong VAR_5)
{
struct ics_state *VAR_6 = VAR_0->icp->VAR_6;
uint32_t nr;
if ((VAR_2 != 1) || (VAR_4 != 1)) {
rtas_st(VAR_5, ... | [
"static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, target_ulong VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{",
"struct ics_state *VAR_6 = VAR_0->icp->VAR_6;",
"uint32_t nr;",
"if ((VAR_2 != 1) || (VAR_4 != 1)) {",
"rtas_st(VAR_5, 0, -3);",
"return;",
"}",
"nr = rtas_ld(VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41,
43
],
[
47
],
[
49
]
] |
21,735 | static void do_info(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
const mon_cmd_t *cmd;
const char *item = qdict_get_try_str(qdict, "item");
if (!item)
goto help;
for (cmd = info_cmds; cmd->name != NULL; cmd++) {
if (compare_cmd(item, cmd->name))
break;
... | false | qemu | 25b422eb4051b9b7473feea1ae848f1e3b4f799f | static void do_info(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
const mon_cmd_t *cmd;
const char *item = qdict_get_try_str(qdict, "item");
if (!item)
goto help;
for (cmd = info_cmds; cmd->name != NULL; cmd++) {
if (compare_cmd(item, cmd->name))
break;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)
{
const mon_cmd_t *VAR_3;
const char *VAR_4 = qdict_get_try_str(VAR_1, "VAR_4");
if (!VAR_4)
goto help;
for (VAR_3 = info_cmds; VAR_3->name != NULL; VAR_3++) {
if (compare_cmd(VAR_4, VAR_3->name))
... | [
"static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{",
"const mon_cmd_t *VAR_3;",
"const char *VAR_4 = qdict_get_try_str(VAR_1, \"VAR_4\");",
"if (!VAR_4)\ngoto help;",
"for (VAR_3 = info_cmds; VAR_3->name != NULL; VAR_3++) {",
"if (compare_cmd(VAR_4, VAR_3->name))\nbreak;",
"}",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19,
21
],
[
23
],
[
27,
29
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
53,
55
],
[
57
]
] |
21,736 | static int ehci_state_fetchsitd(EHCIState *ehci, int async)
{
uint32_t entry;
EHCIsitd sitd;
assert(!async);
entry = ehci_get_fetch_addr(ehci, async);
get_dwords(NLPTR_GET(entry), (uint32_t *)&sitd,
sizeof(EHCIsitd) >> 2);
ehci_trace_sitd(ehci, entry, &sitd);
if... | false | qemu | 68d553587c0aa271c3eb2902921b503740d775b6 | static int ehci_state_fetchsitd(EHCIState *ehci, int async)
{
uint32_t entry;
EHCIsitd sitd;
assert(!async);
entry = ehci_get_fetch_addr(ehci, async);
get_dwords(NLPTR_GET(entry), (uint32_t *)&sitd,
sizeof(EHCIsitd) >> 2);
ehci_trace_sitd(ehci, entry, &sitd);
if... | {
"code": [],
"line_no": []
} | static int FUNC_0(EHCIState *VAR_0, int VAR_1)
{
uint32_t entry;
EHCIsitd sitd;
assert(!VAR_1);
entry = ehci_get_fetch_addr(VAR_0, VAR_1);
get_dwords(NLPTR_GET(entry), (uint32_t *)&sitd,
sizeof(EHCIsitd) >> 2);
ehci_trace_sitd(VAR_0, entry, &sitd);
if (!(sitd.re... | [
"static int FUNC_0(EHCIState *VAR_0, int VAR_1)\n{",
"uint32_t entry;",
"EHCIsitd sitd;",
"assert(!VAR_1);",
"entry = ehci_get_fetch_addr(VAR_0, VAR_1);",
"get_dwords(NLPTR_GET(entry), (uint32_t *)&sitd,\nsizeof(EHCIsitd) >> 2);",
"ehci_trace_sitd(VAR_0, entry, &sitd);",
"if (!(sitd.results & SITD_RES... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17,
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
21,737 | static void test_cdrom_dma(void)
{
static const size_t len = ATAPI_BLOCK_SIZE;
char *pattern = g_malloc(ATAPI_BLOCK_SIZE * 16);
char *rx = g_malloc0(len);
uintptr_t guest_buf;
PrdtEntry prdt[1];
FILE *fh;
ide_test_start("-drive if=none,file=%s,media=cdrom,format=raw,id=sr0,index=0 ... | false | qemu | 543f8f13e256a081dd820375e9575439b659ccd8 | static void test_cdrom_dma(void)
{
static const size_t len = ATAPI_BLOCK_SIZE;
char *pattern = g_malloc(ATAPI_BLOCK_SIZE * 16);
char *rx = g_malloc0(len);
uintptr_t guest_buf;
PrdtEntry prdt[1];
FILE *fh;
ide_test_start("-drive if=none,file=%s,media=cdrom,format=raw,id=sr0,index=0 ... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
static const size_t VAR_0 = ATAPI_BLOCK_SIZE;
char *VAR_1 = g_malloc(ATAPI_BLOCK_SIZE * 16);
char *VAR_2 = g_malloc0(VAR_0);
uintptr_t guest_buf;
PrdtEntry prdt[1];
FILE *fh;
ide_test_start("-drive if=none,file=%s,media=cdrom,format=raw,id=sr0,index=0 "
... | [
"static void FUNC_0(void)\n{",
"static const size_t VAR_0 = ATAPI_BLOCK_SIZE;",
"char *VAR_1 = g_malloc(ATAPI_BLOCK_SIZE * 16);",
"char *VAR_2 = g_malloc0(VAR_0);",
"uintptr_t guest_buf;",
"PrdtEntry prdt[1];",
"FILE *fh;",
"ide_test_start(\"-drive if=none,file=%s,media=cdrom,format=raw,id=sr0,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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
51
],
[
53
],
[... |
21,741 | static void test_abstract_interfaces(void)
{
QList *all_types;
QList *obj_types;
QListEntry *ae;
qtest_start(common_args);
/* qom-list-types implements=interface would return any type
* that implements _any_ interface (not just interface types),
* so use a trick to find the inter... | false | qemu | dbb2a604a94f3899fa34bd1ede462f213e822e03 | static void test_abstract_interfaces(void)
{
QList *all_types;
QList *obj_types;
QListEntry *ae;
qtest_start(common_args);
all_types = qom_list_types(NULL, false);
obj_types = qom_list_types("object", false);
QLIST_FOREACH_ENTRY(all_types, ae) {
QDict *... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
QList *all_types;
QList *obj_types;
QListEntry *ae;
qtest_start(common_args);
all_types = qom_list_types(NULL, false);
obj_types = qom_list_types("object", false);
QLIST_FOREACH_ENTRY(all_types, ae) {
QDict *at = qobject_to_qd... | [
"static void FUNC_0(void)\n{",
"QList *all_types;",
"QList *obj_types;",
"QListEntry *ae;",
"qtest_start(common_args);",
"all_types = qom_list_types(NULL, false);",
"obj_types = qom_list_types(\"object\", false);",
"QLIST_FOREACH_ENTRY(all_types, ae) {",
"QDict *at = qobject_to_qdict(qlist_entry_obj... | [
0,
0,
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
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
... |
21,742 | static void mips_fulong2e_init(ram_addr_t ram_size, const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
char *filename;
unsigned long ram_offset, bios_offset;
long bios_s... | false | qemu | 64d7e9a421fea0ac50b44541f5521de455e7cd5d | static void mips_fulong2e_init(ram_addr_t ram_size, const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
char *filename;
unsigned long ram_offset, bios_offset;
long bios_s... | {
"code": [],
"line_no": []
} | static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1,
const char *VAR_2, const char *VAR_3,
const char *VAR_4, const char *VAR_5)
{
char *VAR_6;
unsigned long VAR_7, VAR_8;
long VAR_9;
int64_t kernel_entry;
qemu_irq *i8259;
qemu_irq *cpu... | [
"static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5)\n{",
"char *VAR_6;",
"unsigned long VAR_7, VAR_8;",
"long VAR_9;",
"int64_t kernel_entry;",
"qemu_irq *i8259;",
"qemu_irq *cpu_exit_irq;",
"int VAR_10;",
"PCIBus *pc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
... |
21,743 | static ssize_t nic_receive(NetClientState *nc, const uint8_t * buf, size_t size)
{
/* TODO:
* - Magic packets should set bit 30 in power management driver register.
* - Interesting packets should set bit 29 in power management driver register.
*/
EEPRO100State *s = DO_UPCAST(NICState, nc, n... | false | qemu | 1069985fb132cd4324fc02d371f1e61492a1823f | static ssize_t nic_receive(NetClientState *nc, const uint8_t * buf, size_t size)
{
EEPRO100State *s = DO_UPCAST(NICState, nc, nc)->opaque;
uint16_t rfd_status = 0xa000;
#if defined(CONFIG_PAD_RECEIVED_FRAMES)
uint8_t min_buf[60];
#endif
static const uint8_t broadcast_macaddr[6] =
... | {
"code": [],
"line_no": []
} | static ssize_t FUNC_0(NetClientState *nc, const uint8_t * buf, size_t size)
{
EEPRO100State *s = DO_UPCAST(NICState, nc, nc)->opaque;
uint16_t rfd_status = 0xa000;
#if defined(CONFIG_PAD_RECEIVED_FRAMES)
uint8_t min_buf[60];
#endif
static const uint8_t VAR_0[6] =
{ 0xff, 0xff... | [
"static ssize_t FUNC_0(NetClientState *nc, const uint8_t * buf, size_t size)\n{",
"EEPRO100State *s = DO_UPCAST(NICState, nc, nc)->opaque;",
"uint16_t rfd_status = 0xa000;",
"#if defined(CONFIG_PAD_RECEIVED_FRAMES)\nuint8_t min_buf[60];",
"#endif\nstatic const uint8_t VAR_0[6] =\n{ 0xff, 0xff, 0xff, 0xff, 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
13
],
[
15
],
[
17,
19
],
[
21,
23,
25
],
[
29,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
49
],
[
53
],
[
55
],
[
57,
59
],
[
65
],
[
... |
21,744 | void pci_bus_get_w64_range(PCIBus *bus, Range *range)
{
range->begin = range->end = 0;
pci_for_each_device_under_bus(bus, pci_dev_get_w64, range);
}
| false | qemu | a0efbf16604770b9d805bcf210ec29942321134f | void pci_bus_get_w64_range(PCIBus *bus, Range *range)
{
range->begin = range->end = 0;
pci_for_each_device_under_bus(bus, pci_dev_get_w64, range);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(PCIBus *VAR_0, Range *VAR_1)
{
VAR_1->begin = VAR_1->end = 0;
pci_for_each_device_under_bus(VAR_0, pci_dev_get_w64, VAR_1);
}
| [
"void FUNC_0(PCIBus *VAR_0, Range *VAR_1)\n{",
"VAR_1->begin = VAR_1->end = 0;",
"pci_for_each_device_under_bus(VAR_0, pci_dev_get_w64, VAR_1);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
21,745 | static void m5208_timer_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
m5208_timer_state *s = (m5208_timer_state *)opaque;
int prescale;
int limit;
switch (offset) {
case 0:
/* The PIF bit is set-to-clear. */
if... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void m5208_timer_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
m5208_timer_state *s = (m5208_timer_state *)opaque;
int prescale;
int limit;
switch (offset) {
case 0:
if (value & PCSR_PIF) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
m5208_timer_state *s = (m5208_timer_state *)VAR_0;
int VAR_4;
int VAR_5;
switch (VAR_1) {
case 0:
if (VAR_2 & PCSR_PIF) {
s->pcsr &= ~PCSR_... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"m5208_timer_state *s = (m5208_timer_state *)VAR_0;",
"int VAR_4;",
"int VAR_5;",
"switch (VAR_1) {",
"case 0:\nif (VAR_2 & PCSR_PIF) {",
"s->pcsr &= ~PCSR_PIF;",
"VAR_2 &= ~PCSR_PIF;",
"}",
"if (((s->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
47
],
[
51
],
[
53
],
[... |
21,747 | static void free_tables(H264Context *h){
int i;
H264Context *hx;
av_freep(&h->intra4x4_pred_mode);
av_freep(&h->chroma_pred_mode_table);
av_freep(&h->cbp_table);
av_freep(&h->mvd_table[0]);
av_freep(&h->mvd_table[1]);
av_freep(&h->direct_table);
av_freep(&h->non_zero_count);... | true | FFmpeg | 2ed0f76655a76cc49f8a1a1d59e545f5906e7924 | static void free_tables(H264Context *h){
int i;
H264Context *hx;
av_freep(&h->intra4x4_pred_mode);
av_freep(&h->chroma_pred_mode_table);
av_freep(&h->cbp_table);
av_freep(&h->mvd_table[0]);
av_freep(&h->mvd_table[1]);
av_freep(&h->direct_table);
av_freep(&h->non_zero_count);... | {
"code": [
"static void free_tables(H264Context *h){"
],
"line_no": [
1
]
} | static void FUNC_0(H264Context *VAR_0){
int VAR_1;
H264Context *hx;
av_freep(&VAR_0->intra4x4_pred_mode);
av_freep(&VAR_0->chroma_pred_mode_table);
av_freep(&VAR_0->cbp_table);
av_freep(&VAR_0->mvd_table[0]);
av_freep(&VAR_0->mvd_table[1]);
av_freep(&VAR_0->direct_table);
av... | [
"static void FUNC_0(H264Context *VAR_0){",
"int VAR_1;",
"H264Context *hx;",
"av_freep(&VAR_0->intra4x4_pred_mode);",
"av_freep(&VAR_0->chroma_pred_mode_table);",
"av_freep(&VAR_0->cbp_table);",
"av_freep(&VAR_0->mvd_table[0]);",
"av_freep(&VAR_0->mvd_table[1]);",
"av_freep(&VAR_0->direct_table);",
... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
21,748 | CBus *cbus_init(qemu_irq dat)
{
CBusPriv *s = (CBusPriv *) g_malloc0(sizeof(*s));
s->dat_out = dat;
s->cbus.clk = qemu_allocate_irqs(cbus_clk, s, 1)[0];
s->cbus.dat = qemu_allocate_irqs(cbus_dat, s, 1)[0];
s->cbus.sel = qemu_allocate_irqs(cbus_sel, s, 1)[0];
s->sel = 1;
s->clk = ... | true | qemu | f3c7d0389fe8a2792fd4c1cf151b885de03c8f62 | CBus *cbus_init(qemu_irq dat)
{
CBusPriv *s = (CBusPriv *) g_malloc0(sizeof(*s));
s->dat_out = dat;
s->cbus.clk = qemu_allocate_irqs(cbus_clk, s, 1)[0];
s->cbus.dat = qemu_allocate_irqs(cbus_dat, s, 1)[0];
s->cbus.sel = qemu_allocate_irqs(cbus_sel, s, 1)[0];
s->sel = 1;
s->clk = ... | {
"code": [
" s->cbus.clk = qemu_allocate_irqs(cbus_clk, s, 1)[0];",
" s->cbus.dat = qemu_allocate_irqs(cbus_dat, s, 1)[0];",
" s->cbus.sel = qemu_allocate_irqs(cbus_sel, s, 1)[0];"
],
"line_no": [
11,
13,
15
]
} | CBus *FUNC_0(qemu_irq dat)
{
CBusPriv *s = (CBusPriv *) g_malloc0(sizeof(*s));
s->dat_out = dat;
s->cbus.clk = qemu_allocate_irqs(cbus_clk, s, 1)[0];
s->cbus.dat = qemu_allocate_irqs(cbus_dat, s, 1)[0];
s->cbus.sel = qemu_allocate_irqs(cbus_sel, s, 1)[0];
s->sel = 1;
s->clk = 0;
... | [
"CBus *FUNC_0(qemu_irq dat)\n{",
"CBusPriv *s = (CBusPriv *) g_malloc0(sizeof(*s));",
"s->dat_out = dat;",
"s->cbus.clk = qemu_allocate_irqs(cbus_clk, s, 1)[0];",
"s->cbus.dat = qemu_allocate_irqs(cbus_dat, s, 1)[0];",
"s->cbus.sel = qemu_allocate_irqs(cbus_sel, s, 1)[0];",
"s->sel = 1;",
"s->clk = 0;... | [
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
21,749 | static int cp15_tls_load_store(CPUState *env, DisasContext *s, uint32_t insn, uint32_t rd)
{
TCGv tmp;
int cpn = (insn >> 16) & 0xf;
int cpm = insn & 0xf;
int op = ((insn >> 5) & 7) | ((insn >> 18) & 0x38);
if (!arm_feature(env, ARM_FEATURE_V6K))
return 0;
if (!(cpn == 13 && ... | true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static int cp15_tls_load_store(CPUState *env, DisasContext *s, uint32_t insn, uint32_t rd)
{
TCGv tmp;
int cpn = (insn >> 16) & 0xf;
int cpm = insn & 0xf;
int op = ((insn >> 5) & 7) | ((insn >> 18) & 0x38);
if (!arm_feature(env, ARM_FEATURE_V6K))
return 0;
if (!(cpn == 13 && ... | {
"code": [
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
" dead_tmp(tmp);",
... | static int FUNC_0(CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2, uint32_t VAR_3)
{
TCGv tmp;
int VAR_4 = (VAR_2 >> 16) & 0xf;
int VAR_5 = VAR_2 & 0xf;
int VAR_6 = ((VAR_2 >> 5) & 7) | ((VAR_2 >> 18) & 0x38);
if (!arm_feature(VAR_0, ARM_FEATURE_V6K))
return 0;
if (!(VAR... | [
"static int FUNC_0(CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2, uint32_t VAR_3)\n{",
"TCGv tmp;",
"int VAR_4 = (VAR_2 >> 16) & 0xf;",
"int VAR_5 = VAR_2 & 0xf;",
"int VAR_6 = ((VAR_2 >> 5) & 7) | ((VAR_2 >> 18) & 0x38);",
"if (!arm_feature(VAR_0, ARM_FEATURE_V6K))\nreturn 0;",
"if (!(VAR_4 == 1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21,
23
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49,
51
],
[
53
... |
21,751 | void hmp_pci_add(Monitor *mon, const QDict *qdict)
{
PCIDevice *dev = NULL;
const char *pci_addr = qdict_get_str(qdict, "pci_addr");
const char *type = qdict_get_str(qdict, "type");
const char *opts = qdict_get_try_str(qdict, "opts");
/* strip legacy tag */
if (!strncmp(pci_addr, "pci_a... | true | qemu | f51074cdc6e750daa3b6df727d83449a7e42b391 | void hmp_pci_add(Monitor *mon, const QDict *qdict)
{
PCIDevice *dev = NULL;
const char *pci_addr = qdict_get_str(qdict, "pci_addr");
const char *type = qdict_get_str(qdict, "type");
const char *opts = qdict_get_try_str(qdict, "opts");
if (!strncmp(pci_addr, "pci_addr=", 9)) {
... | {
"code": [
" if (!opts) {",
" const char *pci_addr = qdict_get_str(qdict, \"pci_addr\");",
" } else {",
" } else {",
"void hmp_pci_add(Monitor *mon, const QDict *qdict)",
" PCIDevice *dev = NULL;",
" const char *pci_addr = qdict_get_str(qdict, \"pci_addr\");",
" c... | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
PCIDevice *dev = NULL;
const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2");
const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3");
const char *VAR_4 = qdict_get_try_str(VAR_1, "VAR_4");
if (!strncmp(VAR_2, "VAR_2=", 9)) {
VAR_2 += 9;... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"PCIDevice *dev = NULL;",
"const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");",
"const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");",
"const char *VAR_4 = qdict_get_try_str(VAR_1, \"VAR_4\");",
"if (!strncmp(VAR_2, \"VAR_2=\", 9)) {",
"VAR_2 += 9... | [
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
21,752 | static int ape_decode_frame(AVCodecContext * avctx,
void *data, int *data_size,
const uint8_t * buf, int buf_size)
{
APEContext *s = avctx->priv_data;
int16_t *samples = data;
int nblocks;
int i, n;
int blockstodecode;
int bytes_used;
i... | true | FFmpeg | 6a287b739f3a8660d5e4405be1302da8b3e51e88 | static int ape_decode_frame(AVCodecContext * avctx,
void *data, int *data_size,
const uint8_t * buf, int buf_size)
{
APEContext *s = avctx->priv_data;
int16_t *samples = data;
int nblocks;
int i, n;
int blockstodecode;
int bytes_used;
i... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext * VAR_0,
void *VAR_1, int *VAR_2,
const uint8_t * VAR_3, int VAR_4)
{
APEContext *s = VAR_0->priv_data;
int16_t *samples = VAR_1;
int VAR_5;
int VAR_6, VAR_7;
int VAR_8;
int VAR_9;
if (VAR_4 == 0 && !s->... | [
"static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t * VAR_3, int VAR_4)\n{",
"APEContext *s = VAR_0->priv_data;",
"int16_t *samples = VAR_1;",
"int VAR_5;",
"int VAR_6, VAR_7;",
"int VAR_8;",
"int VAR_9;",
"if (VAR_4 == 0 && !s->samples) {",
"*VAR_2 = 0;",
"return 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
],... |
21,753 | AVAES *av_aes_init(uint8_t *key, int key_bits, int decrypt) {
AVAES *a;
int i, j, t, rconpointer = 0;
uint8_t tk[8][4];
int KC= key_bits>>5;
int rounds= KC + 6;
uint8_t log8[256];
uint8_t alog8[512];
if(!sbox[255]){
j=1;
for(i=0; i<255; i++){
alo... | false | FFmpeg | 347c27988d1924f795a6b30ae6d41e0b774a219f | AVAES *av_aes_init(uint8_t *key, int key_bits, int decrypt) {
AVAES *a;
int i, j, t, rconpointer = 0;
uint8_t tk[8][4];
int KC= key_bits>>5;
int rounds= KC + 6;
uint8_t log8[256];
uint8_t alog8[512];
if(!sbox[255]){
j=1;
for(i=0; i<255; i++){
alo... | {
"code": [],
"line_no": []
} | AVAES *FUNC_0(uint8_t *key, int key_bits, int decrypt) {
AVAES *a;
int VAR_0, VAR_1, VAR_2, VAR_3 = 0;
uint8_t tk[8][4];
int VAR_4= key_bits>>5;
int VAR_5= VAR_4 + 6;
uint8_t log8[256];
uint8_t alog8[512];
if(!sbox[255]){
VAR_1=1;
for(VAR_0=0; VAR_0<255; VAR_... | [
"AVAES *FUNC_0(uint8_t *key, int key_bits, int decrypt) {",
"AVAES *a;",
"int VAR_0, VAR_1, VAR_2, VAR_3 = 0;",
"uint8_t tk[8][4];",
"int VAR_4= key_bits>>5;",
"int VAR_5= VAR_4 + 6;",
"uint8_t log8[256];",
"uint8_t alog8[512];",
"if(!sbox[255]){",
"VAR_1=1;",
"for(VAR_0=0; VAR_0<255; 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
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
21,754 | av_cold void ff_mpadsp_init(MPADSPContext *s)
{
DCTContext dct;
ff_dct_init(&dct, 5, DCT_II);
ff_init_mpadsp_tabs_float();
ff_init_mpadsp_tabs_fixed();
s->apply_window_float = ff_mpadsp_apply_window_float;
s->apply_window_fixed = ff_mpadsp_apply_window_fixed;
s->dct32_float = d... | false | FFmpeg | 5eaaffaf64d1854493f0fe9ec822eed1b3cd9fe1 | av_cold void ff_mpadsp_init(MPADSPContext *s)
{
DCTContext dct;
ff_dct_init(&dct, 5, DCT_II);
ff_init_mpadsp_tabs_float();
ff_init_mpadsp_tabs_fixed();
s->apply_window_float = ff_mpadsp_apply_window_float;
s->apply_window_fixed = ff_mpadsp_apply_window_fixed;
s->dct32_float = d... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(MPADSPContext *s)
{
DCTContext dct;
ff_dct_init(&dct, 5, DCT_II);
ff_init_mpadsp_tabs_float();
ff_init_mpadsp_tabs_fixed();
s->apply_window_float = ff_mpadsp_apply_window_float;
s->apply_window_fixed = ff_mpadsp_apply_window_fixed;
s->dct32_float = dct.dct32... | [
"av_cold void FUNC_0(MPADSPContext *s)\n{",
"DCTContext dct;",
"ff_dct_init(&dct, 5, DCT_II);",
"ff_init_mpadsp_tabs_float();",
"ff_init_mpadsp_tabs_fixed();",
"s->apply_window_float = ff_mpadsp_apply_window_float;",
"s->apply_window_fixed = ff_mpadsp_apply_window_fixed;",
"s->dct32_float = dct.dct32;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
]
] |
21,755 | static int get_range_off(int *off, int *y_rng, int *uv_rng,
enum AVColorRange rng, int depth)
{
switch (rng) {
case AVCOL_RANGE_MPEG:
*off = 16 << (depth - 8);
*y_rng = 219 << (depth - 8);
*uv_rng = 224 << (depth - 8);
break;
case AVCOL_RANGE... | false | FFmpeg | cb78d14cf9b5ab59b4a9177f390f5e1abff58644 | static int get_range_off(int *off, int *y_rng, int *uv_rng,
enum AVColorRange rng, int depth)
{
switch (rng) {
case AVCOL_RANGE_MPEG:
*off = 16 << (depth - 8);
*y_rng = 219 << (depth - 8);
*uv_rng = 224 << (depth - 8);
break;
case AVCOL_RANGE... | {
"code": [],
"line_no": []
} | static int FUNC_0(int *VAR_0, int *VAR_1, int *VAR_2,
enum AVColorRange VAR_3, int VAR_4)
{
switch (VAR_3) {
case AVCOL_RANGE_MPEG:
*VAR_0 = 16 << (VAR_4 - 8);
*VAR_1 = 219 << (VAR_4 - 8);
*VAR_2 = 224 << (VAR_4 - 8);
break;
case AVCOL_RANGE_... | [
"static int FUNC_0(int *VAR_0, int *VAR_1, int *VAR_2,\nenum AVColorRange VAR_3, int VAR_4)\n{",
"switch (VAR_3) {",
"case AVCOL_RANGE_MPEG:\n*VAR_0 = 16 << (VAR_4 - 8);",
"*VAR_1 = 219 << (VAR_4 - 8);",
"*VAR_2 = 224 << (VAR_4 - 8);",
"break;",
"case AVCOL_RANGE_JPEG:\n*VAR_0 = 0;",
"*VAR_1 = *VAR_2 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
35
],
[
37
]
] |
21,756 | static av_always_inline void fill_filter_caches_inter(const H264Context *h,
H264SliceContext *sl,
int mb_type, int top_xy,
int left_xy[LEFT_MBS],
... | false | FFmpeg | b77fffa127663028169c5ed543956af4b9496c29 | static av_always_inline void fill_filter_caches_inter(const H264Context *h,
H264SliceContext *sl,
int mb_type, int top_xy,
int left_xy[LEFT_MBS],
... | {
"code": [],
"line_no": []
} | static av_always_inline void FUNC_0(const H264Context *h,
H264SliceContext *sl,
int mb_type, int top_xy,
int left_xy[LEFT_MBS],
... | [
"static av_always_inline void FUNC_0(const H264Context *h,\nH264SliceContext *sl,\nint mb_type, int top_xy,\nint left_xy[LEFT_MBS],\nint top_type,\nint left_type[LEFT_MBS],\nint mb_xy, int list)\n{",
"int VAR_0 = h->VAR_0;",
"int16_t(*mv_dst)[2] = &sl->mv_cache[list][scan8[0]];",
"int8_t *ref_cache = &sl->r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
21,757 | static int adpcm_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
ADPCMContext *c = avctx->priv_data;
ADPCMChannelStatus *cs;
int n, m, channel, i;
int block_predictor[2];
short *samples;
... | false | FFmpeg | 330194b9cec1b31cd61a80d1914bc8cfc73ad45d | static int adpcm_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
ADPCMContext *c = avctx->priv_data;
ADPCMChannelStatus *cs;
int n, m, channel, i;
int block_predictor[2];
short *samples;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
uint8_t *VAR_3, int VAR_4)
{
ADPCMContext *c = VAR_0->priv_data;
ADPCMChannelStatus *cs;
int VAR_5, VAR_6, VAR_7, VAR_8;
int VAR_9[2];
short *VAR_10;
short *VAR_11;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{",
"ADPCMContext *c = VAR_0->priv_data;",
"ADPCMChannelStatus *cs;",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"int VAR_9[2];",
"short *VAR_10;",
"short *VAR_11;",
"uint8_t *src;",
"int VAR_12;",
"unsigned c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
21,758 | static void ff_h264_idct_add16intra_sse2(uint8_t *dst, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){
int i;
for(i=0; i<16; i+=2){
if(nnzc[ scan8[i+0] ]|nnzc[ scan8[i+1] ])
ff_x264_add8x4_idct_sse2 (dst + block_offset[i], block + i*16, stride);
el... | false | FFmpeg | 1d16a1cf99488f16492b1bb48e023f4da8377e07 | static void ff_h264_idct_add16intra_sse2(uint8_t *dst, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){
int i;
for(i=0; i<16; i+=2){
if(nnzc[ scan8[i+0] ]|nnzc[ scan8[i+1] ])
ff_x264_add8x4_idct_sse2 (dst + block_offset[i], block + i*16, stride);
el... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){
int VAR_5;
for(VAR_5=0; VAR_5<16; VAR_5+=2){
if(VAR_4[ scan8[VAR_5+0] ]|VAR_4[ scan8[VAR_5+1] ])
ff_x264_add8x4_idct_sse2 (VAR_0 + VAR_1[VAR_5], VAR_2 + VAR_5*16, VAR_3);
e... | [
"static void FUNC_0(uint8_t *VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){",
"int VAR_5;",
"for(VAR_5=0; VAR_5<16; VAR_5+=2){",
"if(VAR_4[ scan8[VAR_5+0] ]|VAR_4[ scan8[VAR_5+1] ])\nff_x264_add8x4_idct_sse2 (VAR_0 + VAR_1[VAR_5], VAR_2 + VAR_5*16, VAR_3);",
"else if(VAR_2[VA... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7,
9
],
[
11,
13
],
[
15
],
[
17
]
] |
21,759 | int swr_init(SwrContext *s){
s->in_buffer_index= 0;
s->in_buffer_count= 0;
s->resample_in_constraint= 0;
free_temp(&s->postin);
free_temp(&s->midbuf);
free_temp(&s->preout);
free_temp(&s->in_buffer);
swr_audio_convert_free(&s-> in_convert);
swr_audio_convert_free(&s->out_con... | false | FFmpeg | 834b3760a7ca112573e813bd6c3573a8c0daf4ed | int swr_init(SwrContext *s){
s->in_buffer_index= 0;
s->in_buffer_count= 0;
s->resample_in_constraint= 0;
free_temp(&s->postin);
free_temp(&s->midbuf);
free_temp(&s->preout);
free_temp(&s->in_buffer);
swr_audio_convert_free(&s-> in_convert);
swr_audio_convert_free(&s->out_con... | {
"code": [],
"line_no": []
} | int FUNC_0(SwrContext *VAR_0){
VAR_0->in_buffer_index= 0;
VAR_0->in_buffer_count= 0;
VAR_0->resample_in_constraint= 0;
free_temp(&VAR_0->postin);
free_temp(&VAR_0->midbuf);
free_temp(&VAR_0->preout);
free_temp(&VAR_0->in_buffer);
swr_audio_convert_free(&VAR_0-> in_convert);
... | [
"int FUNC_0(SwrContext *VAR_0){",
"VAR_0->in_buffer_index= 0;",
"VAR_0->in_buffer_count= 0;",
"VAR_0->resample_in_constraint= 0;",
"free_temp(&VAR_0->postin);",
"free_temp(&VAR_0->midbuf);",
"free_temp(&VAR_0->preout);",
"free_temp(&VAR_0->in_buffer);",
"swr_audio_convert_free(&VAR_0-> in_convert);"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
49
],
[
51
... |
21,761 | static inline void RENAME(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
long width, long height,
long lumStride, long chromStride, long srcStride)
{
long y;
const long chromWidth= width>>1;
#ifdef HAVE_MMX
for(y=0; y<height-2; y+=2)
{
long i;
for(i=0; i<2; i++)
{
... | true | FFmpeg | 6e42e6c4b410dbef8b593c2d796a5dad95f89ee4 | static inline void RENAME(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
long width, long height,
long lumStride, long chromStride, long srcStride)
{
long y;
const long chromWidth= width>>1;
#ifdef HAVE_MMX
for(y=0; y<height-2; y+=2)
{
long i;
for(i=0; i<2; i++)
{
... | {
"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(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
long width, long height,
long lumStride, long chromStride, long srcStride)
{
long VAR_0;
const long VAR_1= width>>1;
#ifdef HAVE_MMX
for(VAR_0=0; VAR_0<height-2; VAR_0+=2)
{
long i;
for(i=0; i<2; ... | [
"static inline void FUNC_0(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\nlong width, long height,\nlong lumStride, long chromStride, long srcStride)\n{",
"long VAR_0;",
"const long VAR_1= width>>1;",
"#ifdef HAVE_MMX\nfor(VAR_0=0; VAR_0<height-2; VAR_0+=2)",
"{",
"long i;"... | [
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,... |
21,763 | static inline void gen_mtcr(CPUTriCoreState *env, DisasContext *ctx, TCGv r1,
int32_t offset)
{
if (ctx->hflags & TRICORE_HFLAG_SM) {
/* since we're caching PSW make this a special case */
if (offset == 0xfe04) {
gen_helper_psw_write(cpu_env, r1);
... | true | qemu | 40a1f64b468ee247fca3b237f0b89f066e59626c | static inline void gen_mtcr(CPUTriCoreState *env, DisasContext *ctx, TCGv r1,
int32_t offset)
{
if (ctx->hflags & TRICORE_HFLAG_SM) {
if (offset == 0xfe04) {
gen_helper_psw_write(cpu_env, r1);
} else {
switch (offset) {
#include "... | {
"code": [
" if (ctx->hflags & TRICORE_HFLAG_SM) {"
],
"line_no": [
7
]
} | static inline void FUNC_0(CPUTriCoreState *VAR_0, DisasContext *VAR_1, TCGv VAR_2,
int32_t VAR_3)
{
if (VAR_1->hflags & TRICORE_HFLAG_SM) {
if (VAR_3 == 0xfe04) {
gen_helper_psw_write(cpu_env, VAR_2);
} else {
switch (VAR_3) {
#in... | [
"static inline void FUNC_0(CPUTriCoreState *VAR_0, DisasContext *VAR_1, TCGv VAR_2,\nint32_t VAR_3)\n{",
"if (VAR_1->hflags & TRICORE_HFLAG_SM) {",
"if (VAR_3 == 0xfe04) {",
"gen_helper_psw_write(cpu_env, VAR_2);",
"} else {",
"switch (VAR_3) {",
"#include \"csfr.def\"\n}",
"}",
"} else {",
"}",
... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
29
],
[
31
]
] |
21,764 | m_free(struct mbuf *m)
{
DEBUG_CALL("m_free");
DEBUG_ARG("m = %lx", (long )m);
if(m) {
/* Remove from m_usedlist */
if (m->m_flags & M_USEDLIST)
remque(m);
/* If it's M_EXT, free() it */
if (m->m_flags & M_EXT)
free(m->m_ext);
/*
* Either free() it or put it on the free list
... | true | qemu | e0cf6d15e374c8db39acda551845ecc62f5205a3 | m_free(struct mbuf *m)
{
DEBUG_CALL("m_free");
DEBUG_ARG("m = %lx", (long )m);
if(m) {
if (m->m_flags & M_USEDLIST)
remque(m);
if (m->m_flags & M_EXT)
free(m->m_ext);
if (m->m_flags & M_DOFREE) {
free(m);
m->slirp->mbuf_alloced--;
} else if ((m->m_flags & M_FREELIS... | {
"code": [
"\t\tfree(m);"
],
"line_no": [
39
]
} | FUNC_0(struct mbuf *VAR_0)
{
DEBUG_CALL("FUNC_0");
DEBUG_ARG("VAR_0 = %lx", (long )VAR_0);
if(VAR_0) {
if (VAR_0->m_flags & M_USEDLIST)
remque(VAR_0);
if (VAR_0->m_flags & M_EXT)
free(VAR_0->m_ext);
if (VAR_0->m_flags & M_DOFREE) {
free(VAR_0);
VAR_0->slirp->mbuf_all... | [
"FUNC_0(struct mbuf *VAR_0)\n{",
"DEBUG_CALL(\"FUNC_0\");",
"DEBUG_ARG(\"VAR_0 = %lx\", (long )VAR_0);",
"if(VAR_0) {",
"if (VAR_0->m_flags & M_USEDLIST)\nremque(VAR_0);",
"if (VAR_0->m_flags & M_EXT)\nfree(VAR_0->m_ext);",
"if (VAR_0->m_flags & M_DOFREE) {",
"free(VAR_0);",
"VAR_0->slirp->mbuf_allo... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
13
],
[
17,
19
],
[
25,
27
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
]
] |
21,768 | static int qcow_open(BlockDriverState *bs, const char *filename, int flags)
{
BDRVQcowState *s = bs->opaque;
int len, i, shift, ret;
QCowHeader header;
ret = bdrv_file_open(&s->hd, filename, flags | BDRV_O_AUTOGROW);
if (ret < 0)
return ret;
if (bdrv_pread(s->hd, 0, &header, si... | true | qemu | b5eff355460643d09e533024360fe0522f368c07 | static int qcow_open(BlockDriverState *bs, const char *filename, int flags)
{
BDRVQcowState *s = bs->opaque;
int len, i, shift, ret;
QCowHeader header;
ret = bdrv_file_open(&s->hd, filename, flags | BDRV_O_AUTOGROW);
if (ret < 0)
return ret;
if (bdrv_pread(s->hd, 0, &header, si... | {
"code": [
" ret = bdrv_file_open(&s->hd, filename, flags | BDRV_O_AUTOGROW);",
" ret = bdrv_file_open(&s->hd, filename, flags | BDRV_O_AUTOGROW);",
" ret = bdrv_file_open(&s->hd, filename, flags | BDRV_O_AUTOGROW);",
" return 0;",
" return 0;"
],
"line_no": [
13,
13,
... | static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)
{
BDRVQcowState *s = VAR_0->opaque;
int VAR_3, VAR_4, VAR_5, VAR_6;
QCowHeader header;
VAR_6 = bdrv_file_open(&s->hd, VAR_1, VAR_2 | BDRV_O_AUTOGROW);
if (VAR_6 < 0)
return VAR_6;
if (bdrv_pread(s->hd, 0, ... | [
"static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"QCowHeader header;",
"VAR_6 = bdrv_file_open(&s->hd, VAR_1, VAR_2 | BDRV_O_AUTOGROW);",
"if (VAR_6 < 0)\nreturn VAR_6;",
"if (bdrv_pread(s->hd, 0, &head... | [
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,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
21,769 | static uint32_t rtl8139_io_readl(void *opaque, uint8_t addr)
{
RTL8139State *s = opaque;
uint32_t ret;
switch (addr)
{
case RxMissed:
ret = s->RxMissed;
DPRINTF("RxMissed read val=0x%08x\n", ret);
break;
case TxConfig:
ret ... | true | qemu | 3e48dd4a2d48aabafe22ce3611d65544d0234a69 | static uint32_t rtl8139_io_readl(void *opaque, uint8_t addr)
{
RTL8139State *s = opaque;
uint32_t ret;
switch (addr)
{
case RxMissed:
ret = s->RxMissed;
DPRINTF("RxMissed read val=0x%08x\n", ret);
break;
case TxConfig:
ret ... | {
"code": [
" ret = rtl8139_TxStatus_read(s, addr, 4);"
],
"line_no": [
45
]
} | static uint32_t FUNC_0(void *opaque, uint8_t addr)
{
RTL8139State *s = opaque;
uint32_t ret;
switch (addr)
{
case RxMissed:
ret = s->RxMissed;
DPRINTF("RxMissed read val=0x%08x\n", ret);
break;
case TxConfig:
ret = rtl8139_... | [
"static uint32_t FUNC_0(void *opaque, uint8_t addr)\n{",
"RTL8139State *s = opaque;",
"uint32_t ret;",
"switch (addr)\n{",
"case RxMissed:\nret = s->RxMissed;",
"DPRINTF(\"RxMissed read val=0x%08x\\n\", ret);",
"break;",
"case TxConfig:\nret = rtl8139_TxConfig_read(s);",
"break;",
"case RxConfig:\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15,
17
],
[
21
],
[
23
],
[
27,
29
],
[
31
],
[
35,
37
],
[
39
],
[
43,
45
],
[
47
],
[
51,
53
],
[
55
],
[
59,
61
],
... |
21,770 | static void video_decode_example(const char *outfilename, const char *filename)
{
AVCodec *codec;
AVCodecContext *c= NULL;
int frame, got_picture, len;
FILE *f;
AVFrame *picture;
uint8_t inbuf[INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
char buf[1024];
AVPacket avpkt;
av_... | true | FFmpeg | 535df748c5043bac6b03e598cfa93160ecce8383 | static void video_decode_example(const char *outfilename, const char *filename)
{
AVCodec *codec;
AVCodecContext *c= NULL;
int frame, got_picture, len;
FILE *f;
AVFrame *picture;
uint8_t inbuf[INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
char buf[1024];
AVPacket avpkt;
av_... | {
"code": [
" picture= avcodec_alloc_frame();",
" picture= avcodec_alloc_frame();"
],
"line_no": [
53,
53
]
} | static void FUNC_0(const char *VAR_0, const char *VAR_1)
{
AVCodec *codec;
AVCodecContext *c= NULL;
int VAR_2, VAR_3, VAR_4;
FILE *f;
AVFrame *picture;
uint8_t inbuf[INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
char VAR_5[1024];
AVPacket avpkt;
av_init_packet(&avpkt);
... | [
"static void FUNC_0(const char *VAR_0, const char *VAR_1)\n{",
"AVCodec *codec;",
"AVCodecContext *c= NULL;",
"int VAR_2, VAR_3, VAR_4;",
"FILE *f;",
"AVFrame *picture;",
"uint8_t inbuf[INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];",
"char VAR_5[1024];",
"AVPacket avpkt;",
"av_init_packet(&avpkt);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
29
],
[
33
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
57,... |
21,771 | static int open_input(HLSContext *c, struct playlist *pls, struct segment *seg)
{
AVDictionary *opts = NULL;
int ret;
// broker prior HTTP options that should be consistent across requests
av_dict_set(&opts, "user-agent", c->user_agent, 0);
av_dict_set(&opts, "cookies", c->cookies, 0);
... | true | FFmpeg | 58f21b6c9354bbc8414d9ff87645a7292cbe0d92 | static int open_input(HLSContext *c, struct playlist *pls, struct segment *seg)
{
AVDictionary *opts = NULL;
int ret;
av_dict_set(&opts, "user-agent", c->user_agent, 0);
av_dict_set(&opts, "cookies", c->cookies, 0);
av_dict_set(&opts, "headers", c->headers, 0);
av_dict_set(&opts, ... | {
"code": [
" int seekret = avio_seek(pls->input, seg->url_offset, SEEK_SET);"
],
"line_no": [
149
]
} | static int FUNC_0(HLSContext *VAR_0, struct playlist *VAR_1, struct segment *VAR_2)
{
AVDictionary *opts = NULL;
int VAR_3;
av_dict_set(&opts, "user-agent", VAR_0->user_agent, 0);
av_dict_set(&opts, "cookies", VAR_0->cookies, 0);
av_dict_set(&opts, "headers", VAR_0->headers, 0);
a... | [
"static int FUNC_0(HLSContext *VAR_0, struct playlist *VAR_1, struct segment *VAR_2)\n{",
"AVDictionary *opts = NULL;",
"int VAR_3;",
"av_dict_set(&opts, \"user-agent\", VAR_0->user_agent, 0);",
"av_dict_set(&opts, \"cookies\", VAR_0->cookies, 0);",
"av_dict_set(&opts, \"headers\", VAR_0->headers, 0);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
... |
21,772 | static int dvvideo_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
DVVideoContext *s = avctx->priv_data;
s->sys = dv_frame_profile(b... | true | FFmpeg | d509c743b78da198af385fea362b632292cd00ad | static int dvvideo_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
DVVideoContext *s = avctx->priv_data;
s->sys = dv_frame_profile(b... | {
"code": [
" s->sys = dv_frame_profile(buf);"
],
"line_no": [
17
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
DVVideoContext *s = VAR_0->priv_data;
s->sys = dv_frame_profile(VAR_4);
if (!... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"DVVideoContext *s = VAR_0->priv_data;",
"s->sys = dv_frame_profile(VAR_4);",
"if (!s->sys || VAR_5 < s->sys->frame_size || dv_init_dynamic_tables(... | [
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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
21,773 | target_ulong helper_dvpe(target_ulong arg1)
{
// TODO
arg1 = 0;
// rt = arg1
return arg1;
}
| true | qemu | 9ed5726c043958359b0f1fa44ab3e4f25f9d9a47 | target_ulong helper_dvpe(target_ulong arg1)
{
arg1 = 0;
return arg1;
}
| {
"code": [
" arg1 = 0;",
" return arg1;",
" arg1 = 0;",
" return arg1;",
"target_ulong helper_dvpe(target_ulong arg1)",
" arg1 = 0;",
" return arg1;",
" arg1 = 0;",
" return arg1;"
],
"line_no": [
7,
13,
7,
13,
1,
7,
13,
... | target_ulong FUNC_0(target_ulong arg1)
{
arg1 = 0;
return arg1;
}
| [
"target_ulong FUNC_0(target_ulong arg1)\n{",
"arg1 = 0;",
"return arg1;",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
7
],
[
13
],
[
15
]
] |
21,774 | static void colo_compare_finalize(Object *obj)
{
CompareState *s = COLO_COMPARE(obj);
qemu_chr_fe_deinit(&s->chr_pri_in);
qemu_chr_fe_deinit(&s->chr_sec_in);
qemu_chr_fe_deinit(&s->chr_out);
g_queue_free(&s->conn_list);
if (qemu_thread_is_self(&s->thread)) {
/* compare conn... | true | qemu | dfd917a9c2bed578c31043126c9f558190bf21e4 | static void colo_compare_finalize(Object *obj)
{
CompareState *s = COLO_COMPARE(obj);
qemu_chr_fe_deinit(&s->chr_pri_in);
qemu_chr_fe_deinit(&s->chr_sec_in);
qemu_chr_fe_deinit(&s->chr_out);
g_queue_free(&s->conn_list);
if (qemu_thread_is_self(&s->thread)) {
g_que... | {
"code": [
" g_queue_free(&s->conn_list);",
" if (qemu_thread_is_self(&s->thread)) {",
" g_queue_foreach(&s->conn_list, colo_compare_connection, s);",
" qemu_thread_join(&s->thread);"
],
"line_no": [
17,
21,
25,
27
]
} | static void FUNC_0(Object *VAR_0)
{
CompareState *s = COLO_COMPARE(VAR_0);
qemu_chr_fe_deinit(&s->chr_pri_in);
qemu_chr_fe_deinit(&s->chr_sec_in);
qemu_chr_fe_deinit(&s->chr_out);
g_queue_free(&s->conn_list);
if (qemu_thread_is_self(&s->thread)) {
g_queue_foreach(... | [
"static void FUNC_0(Object *VAR_0)\n{",
"CompareState *s = COLO_COMPARE(VAR_0);",
"qemu_chr_fe_deinit(&s->chr_pri_in);",
"qemu_chr_fe_deinit(&s->chr_sec_in);",
"qemu_chr_fe_deinit(&s->chr_out);",
"g_queue_free(&s->conn_list);",
"if (qemu_thread_is_self(&s->thread)) {",
"g_queue_foreach(&s->conn_list, ... | [
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
21,775 | void cpu_dump_state(CPUState *env, FILE *f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
int flags)
{
#if defined(TARGET_PPC64) || 1
#define FILL ""
#define RGPL 4
#define RFPL 4
#else
#define FILL " "
#define RGPL 8
#define RFPL 4
#endif
int ... | true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | void cpu_dump_state(CPUState *env, FILE *f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
int flags)
{
#if defined(TARGET_PPC64) || 1
#define FILL ""
#define RGPL 4
#define RFPL 4
#else
#define FILL " "
#define RGPL 8
#define RFPL 4
#endif
int ... | {
"code": [
"#else",
"#endif",
"#else",
"#endif",
" cpu_fprintf(f, \"MSR \" REGX FILL \" XER %08x TB %08x %08x \"",
" do_load_msr(env), load_xer(env), cpu_ppc_load_tbu(env),",
" cpu_ppc_load_tbl(env)",
"#undef REGX"
],
"line_no": [
17,
... | void FUNC_0(CPUState *VAR_0, FILE *VAR_3,
int (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),
int VAR_4)
{
#if defined(TARGET_PPC64) || 1
#define FILL ""
#define RGPL 4
#define RFPL 4
#else
#define FILL " "
#define RGPL 8
#define RFPL 4
#endif
int VA... | [
"void FUNC_0(CPUState *VAR_0, FILE *VAR_3,\nint (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),\nint VAR_4)\n{",
"#if defined(TARGET_PPC64) || 1\n#define FILL \"\"\n#define RGPL 4\n#define RFPL 4\n#else\n#define FILL \" \"\n#define RGPL 8\n#define RFPL 4\n#endif\nint VAR_5;",
"VAR_2(VAR_3, \"NIP \" RE... | [
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,
1
] | [
[
1,
3,
5,
7
],
[
9,
11,
13,
15,
17,
19,
21,
23,
25,
29
],
[
33,
35
],
[
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57
],
[
59
],
[
61,
63
],
[
65
],
[
67,
69
... |
21,777 | static void tci_out_label(TCGContext *s, TCGArg arg)
{
TCGLabel *label = &s->labels[arg];
if (label->has_value) {
tcg_out_i(s, label->u.value);
assert(label->u.value);
} else {
tcg_out_reloc(s, s->code_ptr, sizeof(tcg_target_ulong), arg, 0);
tcg_out_i(s, 0);
}
}... | true | qemu | 3c01ae0ea29915d165c384d0bd1cbafcf4364a4d | static void tci_out_label(TCGContext *s, TCGArg arg)
{
TCGLabel *label = &s->labels[arg];
if (label->has_value) {
tcg_out_i(s, label->u.value);
assert(label->u.value);
} else {
tcg_out_reloc(s, s->code_ptr, sizeof(tcg_target_ulong), arg, 0);
tcg_out_i(s, 0);
}
}... | {
"code": [
" tcg_out_i(s, 0);"
],
"line_no": [
17
]
} | static void FUNC_0(TCGContext *VAR_0, TCGArg VAR_1)
{
TCGLabel *label = &VAR_0->labels[VAR_1];
if (label->has_value) {
tcg_out_i(VAR_0, label->u.value);
assert(label->u.value);
} else {
tcg_out_reloc(VAR_0, VAR_0->code_ptr, sizeof(tcg_target_ulong), VAR_1, 0);
tcg_out... | [
"static void FUNC_0(TCGContext *VAR_0, TCGArg VAR_1)\n{",
"TCGLabel *label = &VAR_0->labels[VAR_1];",
"if (label->has_value) {",
"tcg_out_i(VAR_0, label->u.value);",
"assert(label->u.value);",
"} else {",
"tcg_out_reloc(VAR_0, VAR_0->code_ptr, sizeof(tcg_target_ulong), VAR_1, 0);",
"tcg_out_i(VAR_0, 0... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
21,778 | int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
int64_t pos_min, int64_t pos_max, int64_t pos_limit,
int64_t ts_min, int64_t ts_max, int flags, int64_t *ts_ret,
int64_t (*read_timestamp)(struct AVFormatContext *, int , i... | false | FFmpeg | f8ca8138f01d0a7d96d4e1ea65fecd1197f96206 | int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
int64_t pos_min, int64_t pos_max, int64_t pos_limit,
int64_t ts_min, int64_t ts_max, int flags, int64_t *ts_ret,
int64_t (*read_timestamp)(struct AVFormatContext *, int , i... | {
"code": [],
"line_no": []
} | int64_t FUNC_0(AVFormatContext *s, int stream_index, int64_t target_ts,
int64_t pos_min, int64_t pos_max, int64_t pos_limit,
int64_t ts_min, int64_t ts_max, int flags, int64_t *ts_ret,
int64_t (*read_timestamp)(struct AVFormatContext *, int , int64_t ... | [
"int64_t FUNC_0(AVFormatContext *s, int stream_index, int64_t target_ts,\nint64_t pos_min, int64_t pos_max, int64_t pos_limit,\nint64_t ts_min, int64_t ts_max, int flags, int64_t *ts_ret,\nint64_t (*read_timestamp)(struct AVFormatContext *, int , int64_t *, int64_t ))\n{",
"int64_t pos, ts;",
"int64_t start_pos... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
... |
21,780 | static int mov_write_udta_tag(AVIOContext *pb, MOVMuxContext *mov,
AVFormatContext *s)
{
AVIOContext *pb_buf;
int i, ret, size;
uint8_t *buf;
for (i = 0; i < s->nb_streams; i++)
if (s->flags & AVFMT_FLAG_BITEXACT) {
return 0;
}
... | false | FFmpeg | d9432789bd119f0e37bcf65cebda05d36aafd4ed | static int mov_write_udta_tag(AVIOContext *pb, MOVMuxContext *mov,
AVFormatContext *s)
{
AVIOContext *pb_buf;
int i, ret, size;
uint8_t *buf;
for (i = 0; i < s->nb_streams; i++)
if (s->flags & AVFMT_FLAG_BITEXACT) {
return 0;
}
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,
AVFormatContext *VAR_2)
{
AVIOContext *pb_buf;
int VAR_3, VAR_4, VAR_5;
uint8_t *buf;
for (VAR_3 = 0; VAR_3 < VAR_2->nb_streams; VAR_3++)
if (VAR_2->flags & AVFMT_FLAG_BITEXACT) {
retu... | [
"static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,\nAVFormatContext *VAR_2)\n{",
"AVIOContext *pb_buf;",
"int VAR_3, VAR_4, VAR_5;",
"uint8_t *buf;",
"for (VAR_3 = 0; VAR_3 < VAR_2->nb_streams; VAR_3++)",
"if (VAR_2->flags & AVFMT_FLAG_BITEXACT) {",
"return 0;",
"}",
"VAR_4 = avio_open_dyn... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27,
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
21,781 | static void write_video_frame(AVFormatContext *oc, AVStream *st)
{
int ret;
static struct SwsContext *sws_ctx;
AVCodecContext *c = st->codec;
if (frame_count >= STREAM_NB_FRAMES) {
/* No more frames to compress. The codec has a latency of a few
* frames if using B-frames, so we... | false | FFmpeg | b933c72b5e36967b6be73555e8289cc074fb44a7 | static void write_video_frame(AVFormatContext *oc, AVStream *st)
{
int ret;
static struct SwsContext *sws_ctx;
AVCodecContext *c = st->codec;
if (frame_count >= STREAM_NB_FRAMES) {
} else {
if (c->pix_fmt != AV_PIX_FMT_YUV420P) {
if (!sws_c... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1)
{
int VAR_2;
static struct SwsContext *VAR_3;
AVCodecContext *c = VAR_1->codec;
if (frame_count >= STREAM_NB_FRAMES) {
} else {
if (c->pix_fmt != AV_PIX_FMT_YUV420P) {
if (!VAR_3) ... | [
"static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1)\n{",
"int VAR_2;",
"static struct SwsContext *VAR_3;",
"AVCodecContext *c = VAR_1->codec;",
"if (frame_count >= STREAM_NB_FRAMES) {",
"} else {",
"if (c->pix_fmt != AV_PIX_FMT_YUV420P) {",
"if (!VAR_3) {",
"VAR_3 = sws_getContext(c->width,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
23
],
[
29
],
[
31,
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51,
53,
55
],
[
57
],
[... |
21,782 | static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
AVCodecContext *avctx, const char *args,
uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size,
... | false | FFmpeg | 52486603b5b8e2827627afbc8a2028fb74554920 | static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
AVCodecContext *avctx, const char *args,
uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVBitStreamFilterContext *VAR_0,
AVCodecContext *VAR_1, const char *VAR_2,
uint8_t **VAR_3, int *VAR_4,
const uint8_t *VAR_5, int VAR_6,
int VAR_7) {
... | [
"static int FUNC_0(AVBitStreamFilterContext *VAR_0,\nAVCodecContext *VAR_1, const char *VAR_2,\nuint8_t **VAR_3, int *VAR_4,\nconst uint8_t *VAR_5, int VAR_6,\nint VAR_7) {",
"H264BSFContext *ctx = VAR_0->priv_data;",
"uint8_t unit_type;",
"uint32_t nal_size, cumul_size = 0;",
"if (!VAR_1->VAR_8 || VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53,
55
],
[
61
... |
21,783 | static uint_fast8_t vorbis_floor0_decode(vorbis_context *vc,
vorbis_floor_data *vfu, float *vec) {
vorbis_floor0 * vf=&vfu->t0;
float * lsp=vf->lsp;
uint_fast32_t amplitude;
uint_fast32_t book_idx;
amplitude=get_bits(&vc->gb, vf->amplitude_bits);
... | false | FFmpeg | 536b48b2583d9616e574ca36308b1afb5802246f | static uint_fast8_t vorbis_floor0_decode(vorbis_context *vc,
vorbis_floor_data *vfu, float *vec) {
vorbis_floor0 * vf=&vfu->t0;
float * lsp=vf->lsp;
uint_fast32_t amplitude;
uint_fast32_t book_idx;
amplitude=get_bits(&vc->gb, vf->amplitude_bits);
... | {
"code": [],
"line_no": []
} | static uint_fast8_t FUNC_0(vorbis_context *vc,
vorbis_floor_data *vfu, float *vec) {
vorbis_floor0 * vf=&vfu->t0;
float * VAR_0=vf->VAR_0;
uint_fast32_t amplitude;
uint_fast32_t book_idx;
amplitude=get_bits(&vc->gb, vf->amplitude_bits);
if (ampli... | [
"static uint_fast8_t FUNC_0(vorbis_context *vc,\nvorbis_floor_data *vfu, float *vec) {",
"vorbis_floor0 * vf=&vfu->t0;",
"float * VAR_0=vf->VAR_0;",
"uint_fast32_t amplitude;",
"uint_fast32_t book_idx;",
"amplitude=get_bits(&vc->gb, vf->amplitude_bits);",
"if (amplitude>0) {",
"float VAR_1 = 0;",
"u... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[... |
21,784 | static void check_itxfm(void)
{
LOCAL_ALIGNED_32(uint8_t, src, [32 * 32 * 2]);
LOCAL_ALIGNED_32(uint8_t, dst, [32 * 32 * 2]);
LOCAL_ALIGNED_32(uint8_t, dst0, [32 * 32 * 2]);
LOCAL_ALIGNED_32(uint8_t, dst1, [32 * 32 * 2]);
LOCAL_ALIGNED_32(int16_t, coef, [32 * 32 * 2]);
LOCAL_ALIGNED_32(in... | false | FFmpeg | 1c8fbd7b90469f69fe3a3f78ba7886195d97c34f | static void check_itxfm(void)
{
LOCAL_ALIGNED_32(uint8_t, src, [32 * 32 * 2]);
LOCAL_ALIGNED_32(uint8_t, dst, [32 * 32 * 2]);
LOCAL_ALIGNED_32(uint8_t, dst0, [32 * 32 * 2]);
LOCAL_ALIGNED_32(uint8_t, dst1, [32 * 32 * 2]);
LOCAL_ALIGNED_32(int16_t, coef, [32 * 32 * 2]);
LOCAL_ALIGNED_32(in... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
LOCAL_ALIGNED_32(uint8_t, src, [32 * 32 * 2]);
LOCAL_ALIGNED_32(uint8_t, dst, [32 * 32 * 2]);
LOCAL_ALIGNED_32(uint8_t, dst0, [32 * 32 * 2]);
LOCAL_ALIGNED_32(uint8_t, dst1, [32 * 32 * 2]);
LOCAL_ALIGNED_32(int16_t, coef, [32 * 32 * 2]);
LOCAL_ALIGNED_32(int16_t... | [
"static void FUNC_0(void)\n{",
"LOCAL_ALIGNED_32(uint8_t, src, [32 * 32 * 2]);",
"LOCAL_ALIGNED_32(uint8_t, dst, [32 * 32 * 2]);",
"LOCAL_ALIGNED_32(uint8_t, dst0, [32 * 32 * 2]);",
"LOCAL_ALIGNED_32(uint8_t, dst1, [32 * 32 * 2]);",
"LOCAL_ALIGNED_32(int16_t, coef, [32 * 32 * 2]);",
"LOCAL_ALIGNED_32(in... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29,
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
... |
21,785 | void ff_put_h264_qpel4_mc32_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_midh_qrt_4w_msa(src - (2 * stride) - 2, stride, dst, stride, 4, 1);
}
| false | FFmpeg | e549933a270dd2cfc36f2cf9bb6b29acf3dc6d08 | void ff_put_h264_qpel4_mc32_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_midh_qrt_4w_msa(src - (2 * stride) - 2, stride, dst, stride, 4, 1);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,
ptrdiff_t VAR_2)
{
avc_luma_midh_qrt_4w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 4, 1);
}
| [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{",
"avc_luma_midh_qrt_4w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 4, 1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
21,786 | static void put_ebml_utf8(ByteIOContext *pb, unsigned int elementid, char *str)
{
put_ebml_binary(pb, elementid, str, strlen(str));
}
| false | FFmpeg | 81efc03f5883cf17a1ad6acedfbb876163d7d06a | static void put_ebml_utf8(ByteIOContext *pb, unsigned int elementid, char *str)
{
put_ebml_binary(pb, elementid, str, strlen(str));
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(ByteIOContext *VAR_0, unsigned int VAR_1, char *VAR_2)
{
put_ebml_binary(VAR_0, VAR_1, VAR_2, strlen(VAR_2));
}
| [
"static void FUNC_0(ByteIOContext *VAR_0, unsigned int VAR_1, char *VAR_2)\n{",
"put_ebml_binary(VAR_0, VAR_1, VAR_2, strlen(VAR_2));",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
21,787 | static void compute_antialias_fixed(MPADecodeContext *s, GranuleDef *g)
{
int32_t *ptr, *csa;
int n, i;
/* we antialias only "long" bands */
if (g->block_type == 2) {
if (!g->switch_point)
return;
/* XXX: check this for 8000Hz case */
n = 1;
} else {
... | false | FFmpeg | 6f1ec38ce2193d3d4cacd87edb452c6d7ba751ec | static void compute_antialias_fixed(MPADecodeContext *s, GranuleDef *g)
{
int32_t *ptr, *csa;
int n, i;
if (g->block_type == 2) {
if (!g->switch_point)
return;
n = 1;
} else {
n = SBLIMIT - 1;
}
ptr = g->sb_hybrid + 18;
for(... | {
"code": [],
"line_no": []
} | static void FUNC_0(MPADecodeContext *VAR_0, GranuleDef *VAR_1)
{
int32_t *ptr, *csa;
int VAR_2, VAR_3;
if (VAR_1->block_type == 2) {
if (!VAR_1->switch_point)
return;
VAR_2 = 1;
} else {
VAR_2 = SBLIMIT - 1;
}
ptr = VAR_1->sb_hyb... | [
"static void FUNC_0(MPADecodeContext *VAR_0, GranuleDef *VAR_1)\n{",
"int32_t *ptr, *csa;",
"int VAR_2, VAR_3;",
"if (VAR_1->block_type == 2) {",
"if (!VAR_1->switch_point)\nreturn;",
"VAR_2 = 1;",
"} else {",
"VAR_2 = SBLIMIT - 1;",
"}",
"ptr = VAR_1->sb_hybrid + 18;",
"for(VAR_3 = 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53... |
21,788 | av_cold struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type,
enum IIRFilterMode filt_mode,
int order, float cutoff_ratio,
float stop... | true | FFmpeg | d42dc217ed2b0f886ffc50b26c2bbff1fee5feca | av_cold struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type,
enum IIRFilterMode filt_mode,
int order, float cutoff_ratio,
float stop... | {
"code": [
"av_cold struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(enum IIRFilterType filt_type,",
" c = av_malloc(sizeof(FFIIRFilterCoeffs));",
" c->cx = av_malloc(sizeof(c->cx[0]) * ((order >> 1) + 1));",
" c->cy = av_malloc(sizeof(c->cy[0]) * order);"
],
"line_no": [
1,
3... | av_cold struct FFIIRFilterCoeffs* FUNC_0(enum IIRFilterType filt_type,
enum IIRFilterMode filt_mode,
int order, float cutoff_ratio,
float stopband, float ripple)... | [
"av_cold struct FFIIRFilterCoeffs* FUNC_0(enum IIRFilterType filt_type,\nenum IIRFilterMode filt_mode,\nint order, float cutoff_ratio,\nfloat stopband, float ripple)\n{",
"int VAR_0, VAR_1;",
"FFIIRFilterCoeffs *VAR_2;",
"double VAR_3;",
"double VAR_4[MAXORDER + 1][2];",
"if(filt_type != FF_FILTER_TYPE_BU... | [
1,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[... |
21,789 | static inline uint64_t ram_chunk_index(const uint8_t *start,
const uint8_t *host)
{
return ((uintptr_t) host - (uintptr_t) start) >> RDMA_REG_CHUNK_SHIFT;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static inline uint64_t ram_chunk_index(const uint8_t *start,
const uint8_t *host)
{
return ((uintptr_t) host - (uintptr_t) start) >> RDMA_REG_CHUNK_SHIFT;
}
| {
"code": [],
"line_no": []
} | static inline uint64_t FUNC_0(const uint8_t *start,
const uint8_t *host)
{
return ((uintptr_t) host - (uintptr_t) start) >> RDMA_REG_CHUNK_SHIFT;
}
| [
"static inline uint64_t FUNC_0(const uint8_t *start,\nconst uint8_t *host)\n{",
"return ((uintptr_t) host - (uintptr_t) start) >> RDMA_REG_CHUNK_SHIFT;",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
21,790 | static void av_estimate_timings_from_bit_rate(AVFormatContext *ic)
{
int64_t filesize, duration;
int bit_rate, i;
AVStream *st;
/* if bit_rate is already set, we believe it */
if (ic->bit_rate == 0) {
bit_rate = 0;
for(i=0;i<ic->nb_streams;i++) {
st = ic->strea... | true | FFmpeg | 9100d4d6327b077c44e5fdbc8082255f11953978 | static void av_estimate_timings_from_bit_rate(AVFormatContext *ic)
{
int64_t filesize, duration;
int bit_rate, i;
AVStream *st;
if (ic->bit_rate == 0) {
bit_rate = 0;
for(i=0;i<ic->nb_streams;i++) {
st = ic->streams[i];
bit_rate += st->codec->bit_... | {
"code": [
" if (ic->bit_rate == 0) {"
],
"line_no": [
15
]
} | static void FUNC_0(AVFormatContext *VAR_0)
{
int64_t filesize, duration;
int VAR_1, VAR_2;
AVStream *st;
if (VAR_0->VAR_1 == 0) {
VAR_1 = 0;
for(VAR_2=0;VAR_2<VAR_0->nb_streams;VAR_2++) {
st = VAR_0->streams[VAR_2];
VAR_1 += st->codec->VAR_1;
... | [
"static void FUNC_0(AVFormatContext *VAR_0)\n{",
"int64_t filesize, duration;",
"int VAR_1, VAR_2;",
"AVStream *st;",
"if (VAR_0->VAR_1 == 0) {",
"VAR_1 = 0;",
"for(VAR_2=0;VAR_2<VAR_0->nb_streams;VAR_2++) {",
"st = VAR_0->streams[VAR_2];",
"VAR_1 += st->codec->VAR_1;",
"}",
"VAR_0->VAR_1 = VAR_... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51,... |
21,791 | static void sr_1d97_int(int32_t *p, int i0, int i1)
{
int i;
if (i1 <= i0 + 1) {
if (i0 == 1)
p[1] = (p[1] * I_LFTG_K + (1<<16)) >> 17;
else
p[0] = (p[0] * I_LFTG_X + (1<<15)) >> 16;
return;
}
extend97_int(p, i0, i1);
for (i = (i0 >> 1... | true | FFmpeg | 3c70251780647d49e09522bbe22758c841e37a9a | static void sr_1d97_int(int32_t *p, int i0, int i1)
{
int i;
if (i1 <= i0 + 1) {
if (i0 == 1)
p[1] = (p[1] * I_LFTG_K + (1<<16)) >> 17;
else
p[0] = (p[0] * I_LFTG_X + (1<<15)) >> 16;
return;
}
extend97_int(p, i0, i1);
for (i = (i0 >> 1... | {
"code": [
" p[2 * i] -= (I_LFTG_DELTA * (p[2 * i - 1] + p[2 * i + 1]) + (1 << 15)) >> 16;",
" p[2 * i + 1] -= (I_LFTG_GAMMA * (p[2 * i] + p[2 * i + 2]) + (1 << 15)) >> 16;",
" p[2 * i] += (I_LFTG_BETA * (p[2 * i - 1] + p[2 * i + 1]) + (1 << 15)) >> 16;",
" p[... | static void FUNC_0(int32_t *VAR_0, int VAR_1, int VAR_2)
{
int VAR_3;
if (VAR_2 <= VAR_1 + 1) {
if (VAR_1 == 1)
VAR_0[1] = (VAR_0[1] * I_LFTG_K + (1<<16)) >> 17;
else
VAR_0[0] = (VAR_0[0] * I_LFTG_X + (1<<15)) >> 16;
return;
}
extend97_int(VA... | [
"static void FUNC_0(int32_t *VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3;",
"if (VAR_2 <= VAR_1 + 1) {",
"if (VAR_1 == 1)\nVAR_0[1] = (VAR_0[1] * I_LFTG_K + (1<<16)) >> 17;",
"else\nVAR_0[0] = (VAR_0[0] * I_LFTG_X + (1<<15)) >> 16;",
"return;",
"}",
"extend97_int(VAR_0, VAR_1, VAR_2);",
"for (VAR_3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15,
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
]
] |
21,792 | static void arm_tr_insn_start(DisasContextBase *dcbase, CPUState *cpu)
{
DisasContext *dc = container_of(dcbase, DisasContext, base);
dc->insn_start_idx = tcg_op_buf_count();
tcg_gen_insn_start(dc->pc,
(dc->condexec_cond << 4) | (dc->condexec_mask >> 1),
... | true | qemu | 15fa08f8451babc88d733bd411d4c94976f9d0f8 | static void arm_tr_insn_start(DisasContextBase *dcbase, CPUState *cpu)
{
DisasContext *dc = container_of(dcbase, DisasContext, base);
dc->insn_start_idx = tcg_op_buf_count();
tcg_gen_insn_start(dc->pc,
(dc->condexec_cond << 4) | (dc->condexec_mask >> 1),
... | {
"code": [
" dc->insn_start_idx = tcg_op_buf_count();",
" dc->insn_start_idx = tcg_op_buf_count();"
],
"line_no": [
9,
9
]
} | static void FUNC_0(DisasContextBase *VAR_0, CPUState *VAR_1)
{
DisasContext *dc = container_of(VAR_0, DisasContext, base);
dc->insn_start_idx = tcg_op_buf_count();
tcg_gen_insn_start(dc->pc,
(dc->condexec_cond << 4) | (dc->condexec_mask >> 1),
0);
}
| [
"static void FUNC_0(DisasContextBase *VAR_0, CPUState *VAR_1)\n{",
"DisasContext *dc = container_of(VAR_0, DisasContext, base);",
"dc->insn_start_idx = tcg_op_buf_count();",
"tcg_gen_insn_start(dc->pc,\n(dc->condexec_cond << 4) | (dc->condexec_mask >> 1),\n0);",
"}"
] | [
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13,
15
],
[
17
]
] |
21,793 | static void fft(AC3MDCTContext *mdct, IComplex *z, int ln)
{
int j, l, np, np2;
int nblocks, nloops;
register IComplex *p,*q;
int tmp_re, tmp_im;
np = 1 << ln;
/* reverse */
for (j = 0; j < np; j++) {
int k = av_reverse[j] >> (8 - ln);
if (k < j)
FF... | true | FFmpeg | 323e6fead07c75f418e4b60704a4f437bb3483b2 | static void fft(AC3MDCTContext *mdct, IComplex *z, int ln)
{
int j, l, np, np2;
int nblocks, nloops;
register IComplex *p,*q;
int tmp_re, tmp_im;
np = 1 << ln;
for (j = 0; j < np; j++) {
int k = av_reverse[j] >> (8 - ln);
if (k < j)
FFSWAP(IComplex... | {
"code": [
" CMUL(tmp_re, tmp_im, mdct->costab[l], -mdct->sintab[l], q->re, q->im);"
],
"line_no": [
105
]
} | static void FUNC_0(AC3MDCTContext *VAR_0, IComplex *VAR_1, int VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6;
int VAR_7, VAR_8;
register IComplex *VAR_9,*q;
int VAR_10, VAR_11;
VAR_5 = 1 << VAR_2;
for (VAR_3 = 0; VAR_3 < VAR_5; VAR_3++) {
int VAR_12 = av_reverse[VAR_3] >> (8 ... | [
"static void FUNC_0(AC3MDCTContext *VAR_0, IComplex *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"int VAR_7, VAR_8;",
"register IComplex *VAR_9,*q;",
"int VAR_10, VAR_11;",
"VAR_5 = 1 << VAR_2;",
"for (VAR_3 = 0; VAR_3 < VAR_5; VAR_3++) {",
"int VAR_12 = av_reverse[VAR_3] >> (8 - VAR_2);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
57
],
[
59
],
[
61
... |
21,795 | static int mjpeg_decode_init(AVCodecContext *avctx)
{
MJpegDecodeContext *s = avctx->priv_data;
MpegEncContext s2;
s->avctx = avctx;
/* ugly way to get the idct & scantable FIXME */
memset(&s2, 0, sizeof(MpegEncContext));
s2.avctx= avctx;
// s2->out_format = FMT_MJPEG;
dsputi... | true | FFmpeg | 073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1 | static int mjpeg_decode_init(AVCodecContext *avctx)
{
MJpegDecodeContext *s = avctx->priv_data;
MpegEncContext s2;
s->avctx = avctx;
memset(&s2, 0, sizeof(MpegEncContext));
s2.avctx= avctx;
dsputil_init(&s2.dsp, avctx);
DCT_common_init(&s2);
s->scantable= s2.intra_... | {
"code": [
" build_vlc(&s->vlcs[0][0], bits_dc_luminance, val_dc_luminance, 12);",
" build_vlc(&s->vlcs[0][1], bits_dc_chrominance, val_dc_chrominance, 12);",
" build_vlc(&s->vlcs[1][0], bits_ac_luminance, val_ac_luminance, 251);",
" build_vlc(&s->vlcs[1][1], bits_ac_chrominance, val_ac_c... | static int FUNC_0(AVCodecContext *VAR_0)
{
MJpegDecodeContext *s = VAR_0->priv_data;
MpegEncContext s2;
s->VAR_0 = VAR_0;
memset(&s2, 0, sizeof(MpegEncContext));
s2.VAR_0= VAR_0;
dsputil_init(&s2.dsp, VAR_0);
DCT_common_init(&s2);
s->scantable= s2.intra_scantable;
... | [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"MJpegDecodeContext *s = VAR_0->priv_data;",
"MpegEncContext s2;",
"s->VAR_0 = VAR_0;",
"memset(&s2, 0, sizeof(MpegEncContext));",
"s2.VAR_0= VAR_0;",
"dsputil_init(&s2.dsp, VAR_0);",
"DCT_common_init(&s2);",
"s->scantable= s2.intra_scantable;",
"s->i... | [
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,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
... |
21,797 | int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src)
{
int ret;
dst->owner = src->owner;
ret = av_frame_ref(dst->f, src->f);
if (ret < 0)
return ret;
av_assert0(!dst->progress);
if (src->progress &&
!(dst->progress = av_buffer_ref(src->progress))) {
... | true | FFmpeg | 083300bea935d125b83f60d7030f78a7ffb0f3df | int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src)
{
int ret;
dst->owner = src->owner;
ret = av_frame_ref(dst->f, src->f);
if (ret < 0)
return ret;
av_assert0(!dst->progress);
if (src->progress &&
!(dst->progress = av_buffer_ref(src->progress))) {
... | {
"code": [
" dst->owner = src->owner;",
" ff_thread_release_buffer(dst->owner, dst);"
],
"line_no": [
9,
29
]
} | int FUNC_0(ThreadFrame *VAR_0, ThreadFrame *VAR_1)
{
int VAR_2;
VAR_0->owner = VAR_1->owner;
VAR_2 = av_frame_ref(VAR_0->f, VAR_1->f);
if (VAR_2 < 0)
return VAR_2;
av_assert0(!VAR_0->progress);
if (VAR_1->progress &&
!(VAR_0->progress = av_buffer_ref(VAR_1->progr... | [
"int FUNC_0(ThreadFrame *VAR_0, ThreadFrame *VAR_1)\n{",
"int VAR_2;",
"VAR_0->owner = VAR_1->owner;",
"VAR_2 = av_frame_ref(VAR_0->f, VAR_1->f);",
"if (VAR_2 < 0)\nreturn VAR_2;",
"av_assert0(!VAR_0->progress);",
"if (VAR_1->progress &&\n!(VAR_0->progress = av_buffer_ref(VAR_1->progress))) {",
"ff_th... | [
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15,
17
],
[
21
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
]
] |
21,798 | void zipl_load(void)
{
ScsiMbr *mbr = (void *)sec;
LDL_VTOC *vlbl = (void *)sec;
/* Grab the MBR */
memset(sec, FREE_SPACE_FILLER, sizeof(sec));
read_block(0, mbr, "Cannot read block 0");
dputs("checking magic\n");
if (magic_match(mbr->magic, ZIPL_MAGIC)) {
ipl_scsi();... | true | qemu | c9262e8a84a29f22fbb5edde5d17f4f6166d5ae1 | void zipl_load(void)
{
ScsiMbr *mbr = (void *)sec;
LDL_VTOC *vlbl = (void *)sec;
memset(sec, FREE_SPACE_FILLER, sizeof(sec));
read_block(0, mbr, "Cannot read block 0");
dputs("checking magic\n");
if (magic_match(mbr->magic, ZIPL_MAGIC)) {
ipl_scsi();
}
... | {
"code": [
" virtio_panic(\"\\n* this can never happen *\\n\");"
],
"line_no": [
99
]
} | void FUNC_0(void)
{
ScsiMbr *mbr = (void *)sec;
LDL_VTOC *vlbl = (void *)sec;
memset(sec, FREE_SPACE_FILLER, sizeof(sec));
read_block(0, mbr, "Cannot read block 0");
dputs("checking magic\n");
if (magic_match(mbr->magic, ZIPL_MAGIC)) {
ipl_scsi();
}
... | [
"void FUNC_0(void)\n{",
"ScsiMbr *mbr = (void *)sec;",
"LDL_VTOC *vlbl = (void *)sec;",
"memset(sec, FREE_SPACE_FILLER, sizeof(sec));",
"read_block(0, mbr, \"Cannot read block 0\");",
"dputs(\"checking magic\\n\");",
"if (magic_match(mbr->magic, ZIPL_MAGIC)) {",
"ipl_scsi();",
"}",
"if (virtio_gue... | [
0,
0,
0,
0,
0,
0,
0,
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,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57... |
21,799 | void ppc_set_irq(PowerPCCPU *cpu, int n_IRQ, int level)
{
CPUState *cs = CPU(cpu);
CPUPPCState *env = &cpu->env;
unsigned int old_pending = env->pending_interrupts;
if (level) {
env->pending_interrupts |= 1 << n_IRQ;
cpu_interrupt(cs, CPU_INTERRUPT_HARD);
} else {
... | true | qemu | 8d04fb55dec381bc5105cb47f29d918e579e8cbd | void ppc_set_irq(PowerPCCPU *cpu, int n_IRQ, int level)
{
CPUState *cs = CPU(cpu);
CPUPPCState *env = &cpu->env;
unsigned int old_pending = env->pending_interrupts;
if (level) {
env->pending_interrupts |= 1 << n_IRQ;
cpu_interrupt(cs, CPU_INTERRUPT_HARD);
} else {
... | {
"code": [
" } else {",
" unsigned int old_pending = env->pending_interrupts;"
],
"line_no": [
19,
9
]
} | void FUNC_0(PowerPCCPU *VAR_0, int VAR_1, int VAR_2)
{
CPUState *cs = CPU(VAR_0);
CPUPPCState *env = &VAR_0->env;
unsigned int VAR_3 = env->pending_interrupts;
if (VAR_2) {
env->pending_interrupts |= 1 << VAR_1;
cpu_interrupt(cs, CPU_INTERRUPT_HARD);
} else {
env->... | [
"void FUNC_0(PowerPCCPU *VAR_0, int VAR_1, int VAR_2)\n{",
"CPUState *cs = CPU(VAR_0);",
"CPUPPCState *env = &VAR_0->env;",
"unsigned int VAR_3 = env->pending_interrupts;",
"if (VAR_2) {",
"env->pending_interrupts |= 1 << VAR_1;",
"cpu_interrupt(cs, CPU_INTERRUPT_HARD);",
"} else {",
"env->pending_i... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35,
37
],
[
39,
41
],
[
45,
47,
49
],
[
51
... |
21,800 | static void vfio_vga_probe_ati_3c3_quirk(VFIOPCIDevice *vdev)
{
VFIOQuirk *quirk;
/*
* As long as the BAR is >= 256 bytes it will be aligned such that the
* lower byte is always zero. Filter out anything else, if it exists.
*/
if (!vfio_pci_is(vdev, PCI_VENDOR_ID_ATI, PCI_ANY_ID) ||... | true | qemu | bdd81addf4033ce26e6cd180b060f63095f3ded9 | static void vfio_vga_probe_ati_3c3_quirk(VFIOPCIDevice *vdev)
{
VFIOQuirk *quirk;
if (!vfio_pci_is(vdev, PCI_VENDOR_ID_ATI, PCI_ANY_ID) ||
!vdev->bars[4].ioport || vdev->bars[4].region.size < 256) {
return;
}
quirk = g_malloc0(sizeof(*quirk));
quirk->mem = g_m... | {
"code": [
" quirk->mem = g_malloc0(sizeof(MemoryRegion));"
],
"line_no": [
29
]
} | static void FUNC_0(VFIOPCIDevice *VAR_0)
{
VFIOQuirk *quirk;
if (!vfio_pci_is(VAR_0, PCI_VENDOR_ID_ATI, PCI_ANY_ID) ||
!VAR_0->bars[4].ioport || VAR_0->bars[4].region.size < 256) {
return;
}
quirk = g_malloc0(sizeof(*quirk));
quirk->mem = g_malloc0(sizeof(Memo... | [
"static void FUNC_0(VFIOPCIDevice *VAR_0)\n{",
"VFIOQuirk *quirk;",
"if (!vfio_pci_is(VAR_0, PCI_VENDOR_ID_ATI, PCI_ANY_ID) ||\n!VAR_0->bars[4].ioport || VAR_0->bars[4].region.size < 256) {",
"return;",
"}",
"quirk = g_malloc0(sizeof(*quirk));",
"quirk->mem = g_malloc0(sizeof(MemoryRegion));",
"quirk-... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
39,
41
],
[
45,
47
],
[
51
],
[
53
]
] |
21,801 | static void mem_info(Monitor *mon)
{
CPUState *env;
int l1, l2, prot, last_prot;
uint32_t pgd, pde, pte, start, end;
env = mon_get_cpu();
if (!env)
return;
if (!(env->cr[0] & CR0_PG_MASK)) {
monitor_printf(mon, "PG disabled\n");
return;
}
pgd = env... | true | qemu | 09b9418c6d085a0728372aa760ebd10128a020b1 | static void mem_info(Monitor *mon)
{
CPUState *env;
int l1, l2, prot, last_prot;
uint32_t pgd, pde, pte, start, end;
env = mon_get_cpu();
if (!env)
return;
if (!(env->cr[0] & CR0_PG_MASK)) {
monitor_printf(mon, "PG disabled\n");
return;
}
pgd = env... | {
"code": [
" if (!env)",
" if (!env)",
" if (!env)",
" if (!env)",
" if (!env)",
" if (!env)",
" if (!env)",
" if (!env)",
" if (!env)",
" if (!env)",
" if (!env)",
" if (!env)",
" if (!env)"
],
"line_no": [
15,
15... | static void FUNC_0(Monitor *VAR_0)
{
CPUState *env;
int VAR_1, VAR_2, VAR_3, VAR_4;
uint32_t pgd, pde, pte, start, end;
env = mon_get_cpu();
if (!env)
return;
if (!(env->cr[0] & CR0_PG_MASK)) {
monitor_printf(VAR_0, "PG disabled\n");
return;
}
pgd ... | [
"static void FUNC_0(Monitor *VAR_0)\n{",
"CPUState *env;",
"int VAR_1, VAR_2, VAR_3, VAR_4;",
"uint32_t pgd, pde, pte, start, end;",
"env = mon_get_cpu();",
"if (!env)\nreturn;",
"if (!(env->cr[0] & CR0_PG_MASK)) {",
"monitor_printf(VAR_0, \"PG disabled\\n\");",
"return;",
"}",
"pgd = env->cr[3]... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
21,802 | CharDriverState *chr_testdev_init(void)
{
TestdevCharState *testdev;
CharDriverState *chr;
testdev = g_malloc0(sizeof(TestdevCharState));
testdev->chr = chr = g_malloc0(sizeof(CharDriverState));
chr->opaque = testdev;
chr->chr_write = testdev_write;
chr->chr_close = testdev_close... | true | qemu | 2d528d45ecf5ee3c1a566a9f3d664464925ef830 | CharDriverState *chr_testdev_init(void)
{
TestdevCharState *testdev;
CharDriverState *chr;
testdev = g_malloc0(sizeof(TestdevCharState));
testdev->chr = chr = g_malloc0(sizeof(CharDriverState));
chr->opaque = testdev;
chr->chr_write = testdev_write;
chr->chr_close = testdev_close... | {
"code": [
" testdev = g_malloc0(sizeof(TestdevCharState));",
" testdev->chr = chr = g_malloc0(sizeof(CharDriverState));"
],
"line_no": [
11,
13
]
} | CharDriverState *FUNC_0(void)
{
TestdevCharState *testdev;
CharDriverState *chr;
testdev = g_malloc0(sizeof(TestdevCharState));
testdev->chr = chr = g_malloc0(sizeof(CharDriverState));
chr->opaque = testdev;
chr->chr_write = testdev_write;
chr->chr_close = testdev_close;
r... | [
"CharDriverState *FUNC_0(void)\n{",
"TestdevCharState *testdev;",
"CharDriverState *chr;",
"testdev = g_malloc0(sizeof(TestdevCharState));",
"testdev->chr = chr = g_malloc0(sizeof(CharDriverState));",
"chr->opaque = testdev;",
"chr->chr_write = testdev_write;",
"chr->chr_close = testdev_close;",
"re... | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
21,803 | static int coroutine_fn bdrv_co_do_writev(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, QEMUIOVector *qiov)
{
BlockDriver *drv = bs->drv;
BdrvTrackedRequest req;
int ret;
if (!bs->drv) {
return -ENOMEDIUM;
if (bs->read_only) {
return -EACCES;
if (bdrv_check_reques... | true | qemu | f4658285f99473367dbbc34ce6970ec4637c2388 | static int coroutine_fn bdrv_co_do_writev(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, QEMUIOVector *qiov)
{
BlockDriver *drv = bs->drv;
BdrvTrackedRequest req;
int ret;
if (!bs->drv) {
return -ENOMEDIUM;
if (bs->read_only) {
return -EACCES;
if (bdrv_check_reques... | {
"code": [],
"line_no": []
} | static int VAR_0 bdrv_co_do_writev(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, QEMUIOVector *qiov)
{
BlockDriver *drv = bs->drv;
BdrvTrackedRequest req;
int ret;
if (!bs->drv) {
return -ENOMEDIUM;
if (bs->read_only) {
return -EACCES;
if (bdrv_check_request(bs, s... | [
"static int VAR_0 bdrv_co_do_writev(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, QEMUIOVector *qiov)\n{",
"BlockDriver *drv = bs->drv;",
"BdrvTrackedRequest req;",
"int ret;",
"if (!bs->drv) {",
"return -ENOMEDIUM;",
"if (bs->read_only) {",
"return -EACCES;",
"if (bdrv_check_request(bs... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
... |
21,804 | void *etraxfs_eth_init(NICInfo *nd, target_phys_addr_t base, int phyaddr)
{
struct etraxfs_dma_client *dma = NULL;
struct fs_eth *eth = NULL;
qemu_check_nic_model(nd, "fseth");
dma = qemu_mallocz(sizeof *dma * 2);
eth = qemu_mallocz(sizeof *eth);
dma[0].client.push = eth_tx_push;
dma[0].client.opa... | true | qemu | ae50b2747f77944faa79eb914272b54eb30b63b3 | void *etraxfs_eth_init(NICInfo *nd, target_phys_addr_t base, int phyaddr)
{
struct etraxfs_dma_client *dma = NULL;
struct fs_eth *eth = NULL;
qemu_check_nic_model(nd, "fseth");
dma = qemu_mallocz(sizeof *dma * 2);
eth = qemu_mallocz(sizeof *eth);
dma[0].client.push = eth_tx_push;
dma[0].client.opa... | {
"code": [
"\teth->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name,",
"\t\t\t\t eth_can_receive, eth_receive, NULL,",
"\t\t\t\t eth_cleanup, eth);"
],
"line_no": [
53,
55,
57
]
} | void *FUNC_0(NICInfo *VAR_0, target_phys_addr_t VAR_1, int VAR_2)
{
struct etraxfs_dma_client *VAR_3 = NULL;
struct fs_eth *VAR_4 = NULL;
qemu_check_nic_model(VAR_0, "fseth");
VAR_3 = qemu_mallocz(sizeof *VAR_3 * 2);
VAR_4 = qemu_mallocz(sizeof *VAR_4);
VAR_3[0].client.push = eth_tx_push;
VAR_3[0]... | [
"void *FUNC_0(NICInfo *VAR_0, target_phys_addr_t VAR_1, int VAR_2)\n{",
"struct etraxfs_dma_client *VAR_3 = NULL;",
"struct fs_eth *VAR_4 = NULL;",
"qemu_check_nic_model(VAR_0, \"fseth\");",
"VAR_3 = qemu_mallocz(sizeof *VAR_3 * 2);",
"VAR_4 = qemu_mallocz(sizeof *VAR_4);",
"VAR_3[0].client.push = eth_t... | [
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
],
[
7
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
53,
55,
57
],
[
59... |
21,805 | static void do_udp_write(void *arg, void *buf, int size) {
URLContext *h = arg;
UDPContext *s = h->priv_data;
int ret;
if (!(h->flags & AVIO_FLAG_NONBLOCK)) {
ret = ff_network_wait_fd(s->udp_fd, 1);
if (ret < 0) {
s->circular_buffer_error = ret;
return... | true | FFmpeg | 9b7a8bddac52bd05dddb28afd4dff92739946d3b | static void do_udp_write(void *arg, void *buf, int size) {
URLContext *h = arg;
UDPContext *s = h->priv_data;
int ret;
if (!(h->flags & AVIO_FLAG_NONBLOCK)) {
ret = ff_network_wait_fd(s->udp_fd, 1);
if (ret < 0) {
s->circular_buffer_error = ret;
return... | {
"code": [
"static void do_udp_write(void *arg, void *buf, int size) {",
" URLContext *h = arg;",
" UDPContext *s = h->priv_data;",
" int ret;",
" if (!(h->flags & AVIO_FLAG_NONBLOCK)) {",
" ret = ff_network_wait_fd(s->udp_fd, 1);",
" if (ret < 0) {",
" ... | static void FUNC_0(void *VAR_0, void *VAR_1, int VAR_2) {
URLContext *h = VAR_0;
UDPContext *s = h->priv_data;
int VAR_3;
if (!(h->flags & AVIO_FLAG_NONBLOCK)) {
VAR_3 = ff_network_wait_fd(s->udp_fd, 1);
if (VAR_3 < 0) {
s->circular_buffer_error = VAR_3;
... | [
"static void FUNC_0(void *VAR_0, void *VAR_1, int VAR_2) {",
"URLContext *h = VAR_0;",
"UDPContext *s = h->priv_data;",
"int VAR_3;",
"if (!(h->flags & AVIO_FLAG_NONBLOCK)) {",
"VAR_3 = ff_network_wait_fd(s->udp_fd, 1);",
"if (VAR_3 < 0) {",
"s->circular_buffer_error = VAR_3;",
"return;",
"}",
"... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
1,
1,
0,
1,
1,
0
] | [
[
1
],
[
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31,
33,
35
],
[
37
],
[
39
],
[
43
],
[
45
]
] |
21,806 | av_cold struct FFPsyPreprocessContext* ff_psy_preprocess_init(AVCodecContext *avctx)
{
FFPsyPreprocessContext *ctx;
int i;
float cutoff_coeff = 0;
ctx = av_mallocz(sizeof(FFPsyPreprocessContext));
ctx->avctx = avctx;
if (avctx->cutoff > 0)
cutoff_coeff = 2.0 * avctx->cut... | true | FFmpeg | 20d1f6fec1aa2a33c4cf8162e72ca88ead3d389d | av_cold struct FFPsyPreprocessContext* ff_psy_preprocess_init(AVCodecContext *avctx)
{
FFPsyPreprocessContext *ctx;
int i;
float cutoff_coeff = 0;
ctx = av_mallocz(sizeof(FFPsyPreprocessContext));
ctx->avctx = avctx;
if (avctx->cutoff > 0)
cutoff_coeff = 2.0 * avctx->cut... | {
"code": [
" ctx->fcoeffs = ff_iir_filter_init_coeffs(FF_FILTER_TYPE_BUTTERWORTH, FF_FILTER_MODE_LOWPASS,"
],
"line_no": [
25
]
} | av_cold struct FFPsyPreprocessContext* FUNC_0(AVCodecContext *avctx)
{
FFPsyPreprocessContext *VAR_0;
int VAR_1;
float VAR_2 = 0;
VAR_0 = av_mallocz(sizeof(FFPsyPreprocessContext));
VAR_0->avctx = avctx;
if (avctx->cutoff > 0)
VAR_2 = 2.0 * avctx->cutoff / avctx->sample_... | [
"av_cold struct FFPsyPreprocessContext* FUNC_0(AVCodecContext *avctx)\n{",
"FFPsyPreprocessContext *VAR_0;",
"int VAR_1;",
"float VAR_2 = 0;",
"VAR_0 = av_mallocz(sizeof(FFPsyPreprocessContext));",
"VAR_0->avctx = avctx;",
"if (avctx->cutoff > 0)\nVAR_2 = 2.0 * avctx->cutoff / avctx->sample_rate;... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23,
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
21,807 | static QVirtioPCIDevice *virtio_blk_pci_init(QPCIBus *bus, int slot)
{
QVirtioPCIDevice *dev;
dev = qvirtio_pci_device_find(bus, VIRTIO_ID_BLOCK);
g_assert(dev != NULL);
g_assert_cmphex(dev->vdev.device_type, ==, VIRTIO_ID_BLOCK);
g_assert_cmphex(dev->pdev->devfn, ==, ((slot << 3) | PCI_FN))... | true | qemu | 80e1eea37a25a7696137e680285e36d0bfdc9f34 | static QVirtioPCIDevice *virtio_blk_pci_init(QPCIBus *bus, int slot)
{
QVirtioPCIDevice *dev;
dev = qvirtio_pci_device_find(bus, VIRTIO_ID_BLOCK);
g_assert(dev != NULL);
g_assert_cmphex(dev->vdev.device_type, ==, VIRTIO_ID_BLOCK);
g_assert_cmphex(dev->pdev->devfn, ==, ((slot << 3) | PCI_FN))... | {
"code": [
" dev = qvirtio_pci_device_find(bus, VIRTIO_ID_BLOCK);"
],
"line_no": [
9
]
} | static QVirtioPCIDevice *FUNC_0(QPCIBus *bus, int slot)
{
QVirtioPCIDevice *dev;
dev = qvirtio_pci_device_find(bus, VIRTIO_ID_BLOCK);
g_assert(dev != NULL);
g_assert_cmphex(dev->vdev.device_type, ==, VIRTIO_ID_BLOCK);
g_assert_cmphex(dev->pdev->devfn, ==, ((slot << 3) | PCI_FN));
qvir... | [
"static QVirtioPCIDevice *FUNC_0(QPCIBus *bus, int slot)\n{",
"QVirtioPCIDevice *dev;",
"dev = qvirtio_pci_device_find(bus, VIRTIO_ID_BLOCK);",
"g_assert(dev != NULL);",
"g_assert_cmphex(dev->vdev.device_type, ==, VIRTIO_ID_BLOCK);",
"g_assert_cmphex(dev->pdev->devfn, ==, ((slot << 3) | PCI_FN));",
"qvi... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
]
] |
21,808 | static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum,
BlockDriverState **file)
{
int... | true | qemu | 81c219ac6ce0d6182e35f3976f2caa4cefcaf9f0 | static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum,
BlockDriverState **file)
{
int... | {
"code": [
" *file = NULL;",
" assert(ret & BDRV_BLOCK_OFFSET_VALID);"
],
"line_no": [
73,
93
]
} | static int64_t VAR_0 bdrv_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum,
BlockDriverState **file)
{
int64_t to... | [
"static int64_t VAR_0 bdrv_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num,\nint nb_sectors, int *pnum,\nBlockDriverState **file)\n{",
"int64_t total_sectors;",
"int64_t n;",
"int64_t ret, ret2;",
"total_sectors = bdrv_nb_sectors(bs);",
"if (total_sectors < 0) {",
"return 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,
1,
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... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[... |
21,809 | static int qcow2_do_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQcow2State *s = bs->opaque;
unsigned int len, i;
int ret = 0;
QCowHeader header;
Error *local_err = NULL;
uint64_t ext_end;
uint64_t l1_vm_state_index;
ret =... | true | qemu | 4652b8f3e1ec91bb9d6f00e40df7f96d1f1aafee | static int qcow2_do_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQcow2State *s = bs->opaque;
unsigned int len, i;
int ret = 0;
QCowHeader header;
Error *local_err = NULL;
uint64_t ext_end;
uint64_t l1_vm_state_index;
ret =... | {
"code": [
" &feature_table, NULL);",
" if (header.crypt_method > QCOW_CRYPT_AES) {",
" error_setg(errp, \"Unsupported encryption method: %\" PRIu32,",
" header.crypt_method);",
" ret = -EINVAL;",
" goto fail;",
" ... | static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,
Error **VAR_3)
{
BDRVQcow2State *s = VAR_0->opaque;
unsigned int VAR_4, VAR_5;
int VAR_6 = 0;
QCowHeader header;
Error *local_err = NULL;
uint64_t ext_end;
uint64_t l1_vm_state_index;
... | [
"static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{",
"BDRVQcow2State *s = VAR_0->opaque;",
"unsigned int VAR_4, VAR_5;",
"int VAR_6 = 0;",
"QCowHeader header;",
"Error *local_err = NULL;",
"uint64_t ext_end;",
"uint64_t l1_vm_state_index;",
"VAR_6 = bdrv_pread(VA... | [
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,
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... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
21,810 | static void *qemu_tcg_cpu_thread_fn(void *arg)
{
CPUState *cpu = arg;
rcu_register_thread();
qemu_mutex_lock_iothread();
qemu_thread_get_self(cpu->thread);
CPU_FOREACH(cpu) {
cpu->thread_id = qemu_get_thread_id();
cpu->created = true;
cpu->can_do_io = 1;
}... | true | qemu | 372579427a5040a26dfee78464b50e2bdf27ef26 | static void *qemu_tcg_cpu_thread_fn(void *arg)
{
CPUState *cpu = arg;
rcu_register_thread();
qemu_mutex_lock_iothread();
qemu_thread_get_self(cpu->thread);
CPU_FOREACH(cpu) {
cpu->thread_id = qemu_get_thread_id();
cpu->created = true;
cpu->can_do_io = 1;
}... | {
"code": [
" CPU_FOREACH(cpu) {",
"static void *qemu_tcg_cpu_thread_fn(void *arg)",
" } else if (cpu->stop || cpu->stopped) {",
" qemu_tcg_wait_io_event(QTAILQ_FIRST(&cpus));"
],
"line_no": [
19,
1,
111,
149
]
} | static void *FUNC_0(void *VAR_0)
{
CPUState *cpu = VAR_0;
rcu_register_thread();
qemu_mutex_lock_iothread();
qemu_thread_get_self(cpu->thread);
CPU_FOREACH(cpu) {
cpu->thread_id = qemu_get_thread_id();
cpu->created = true;
cpu->can_do_io = 1;
}
qemu_c... | [
"static void *FUNC_0(void *VAR_0)\n{",
"CPUState *cpu = VAR_0;",
"rcu_register_thread();",
"qemu_mutex_lock_iothread();",
"qemu_thread_get_self(cpu->thread);",
"CPU_FOREACH(cpu) {",
"cpu->thread_id = qemu_get_thread_id();",
"cpu->created = true;",
"cpu->can_do_io = 1;",
"}",
"qemu_cond_signal(&q... | [
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
57
],
[
63... |
21,811 | static void png_filter_row(PNGDSPContext *dsp, uint8_t *dst, int filter_type,
uint8_t *src, uint8_t *last, int size, int bpp)
{
int i, p, r, g, b, a;
switch (filter_type) {
case PNG_FILTER_VALUE_NONE:
memcpy(dst, src, size);
break;
case PNG_FILTER_VAL... | true | FFmpeg | cb079b1b2bb1f7d0609ea7196090802a2788913a | static void png_filter_row(PNGDSPContext *dsp, uint8_t *dst, int filter_type,
uint8_t *src, uint8_t *last, int size, int bpp)
{
int i, p, r, g, b, a;
switch (filter_type) {
case PNG_FILTER_VALUE_NONE:
memcpy(dst, src, size);
break;
case PNG_FILTER_VAL... | {
"code": [
" int s = *(int*)(src + i);"
],
"line_no": [
33
]
} | static void FUNC_0(PNGDSPContext *VAR_0, uint8_t *VAR_1, int VAR_2,
uint8_t *VAR_3, uint8_t *VAR_4, int VAR_5, int VAR_6)
{
int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;
switch (VAR_2) {
case PNG_FILTER_VALUE_NONE:
memcpy(VAR_1, VAR_3, VAR_5);
break;
... | [
"static void FUNC_0(PNGDSPContext *VAR_0, uint8_t *VAR_1, int VAR_2,\nuint8_t *VAR_3, uint8_t *VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;",
"switch (VAR_2) {",
"case PNG_FILTER_VALUE_NONE:\nmemcpy(VAR_1, VAR_3, VAR_5);",
"break;",
"case PNG_FILTER_VALUE_SUB:\nfor (... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47... |
21,812 | static void vp56_mc(VP56Context *s, int b, int plane, uint8_t *src,
int stride, int x, int y)
{
uint8_t *dst = s->frames[VP56_FRAME_CURRENT]->data[plane] + s->block_offset[b];
uint8_t *src_block;
int src_offset;
int overlap_offset = 0;
int mask = s->vp56_coord_div[b] - 1;
... | true | FFmpeg | c341f734e5f9d6af4a8fdcceb6f5d12de6395c76 | static void vp56_mc(VP56Context *s, int b, int plane, uint8_t *src,
int stride, int x, int y)
{
uint8_t *dst = s->frames[VP56_FRAME_CURRENT]->data[plane] + s->block_offset[b];
uint8_t *src_block;
int src_offset;
int overlap_offset = 0;
int mask = s->vp56_coord_div[b] - 1;
... | {
"code": [
" int stride, int x, int y)"
],
"line_no": [
3
]
} | static void FUNC_0(VP56Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3,
int VAR_4, int VAR_5, int VAR_6)
{
uint8_t *dst = VAR_0->frames[VP56_FRAME_CURRENT]->data[VAR_2] + VAR_0->block_offset[VAR_1];
uint8_t *src_block;
int VAR_7;
int VAR_8 = 0;
int VAR_9 = VAR_0->vp56... | [
"static void FUNC_0(VP56Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3,\nint VAR_4, int VAR_5, int VAR_6)\n{",
"uint8_t *dst = VAR_0->frames[VP56_FRAME_CURRENT]->data[VAR_2] + VAR_0->block_offset[VAR_1];",
"uint8_t *src_block;",
"int VAR_7;",
"int VAR_8 = 0;",
"int VAR_9 = VAR_0->vp56_coord_div[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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27,
29,
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
21,813 | static int elf_core_dump(int signr, const CPUArchState *env)
{
const CPUState *cpu = ENV_GET_CPU((CPUArchState *)env);
const TaskState *ts = (const TaskState *)cpu->opaque;
struct vm_area_struct *vma = NULL;
char corefile[PATH_MAX];
struct elf_note_info info;
struct elfhdr elf;
struc... | true | qemu | 772034b63e9c0caf6c92e31413f2d8df2ee69c88 | static int elf_core_dump(int signr, const CPUArchState *env)
{
const CPUState *cpu = ENV_GET_CPU((CPUArchState *)env);
const TaskState *ts = (const TaskState *)cpu->opaque;
struct vm_area_struct *vma = NULL;
char corefile[PATH_MAX];
struct elf_note_info info;
struct elfhdr elf;
struc... | {
"code": [
" dump_write(fd, &phdr, sizeof (phdr));"
],
"line_no": [
181
]
} | static int FUNC_0(int VAR_0, const CPUArchState *VAR_1)
{
const CPUState *VAR_2 = ENV_GET_CPU((CPUArchState *)VAR_1);
const TaskState *VAR_3 = (const TaskState *)VAR_2->opaque;
struct vm_area_struct *VAR_4 = NULL;
char VAR_5[PATH_MAX];
struct elf_note_info VAR_6;
struct elfhdr VAR_7;
... | [
"static int FUNC_0(int VAR_0, const CPUArchState *VAR_1)\n{",
"const CPUState *VAR_2 = ENV_GET_CPU((CPUArchState *)VAR_1);",
"const TaskState *VAR_3 = (const TaskState *)VAR_2->opaque;",
"struct vm_area_struct *VAR_4 = NULL;",
"char VAR_5[PATH_MAX];",
"struct elf_note_info VAR_6;",
"struct elfhdr 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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39,
41
],
[
45,
47
],
[
51,... |
21,814 | void qemu_acl_reset(qemu_acl *acl)
{
qemu_acl_entry *entry;
/* Put back to deny by default, so there is no window
* of "open access" while the user re-initializes the
* access control list */
acl->defaultDeny = 1;
QTAILQ_FOREACH(entry, &acl->entries, next) {
QTAILQ_REMOVE(&ac... | true | qemu | 0ce6a434176e274a7e86bcaa268542c5cc402696 | void qemu_acl_reset(qemu_acl *acl)
{
qemu_acl_entry *entry;
acl->defaultDeny = 1;
QTAILQ_FOREACH(entry, &acl->entries, next) {
QTAILQ_REMOVE(&acl->entries, entry, next);
free(entry->match);
free(entry);
}
acl->nentries = 0;
}
| {
"code": [
" qemu_acl_entry *entry;",
" QTAILQ_FOREACH(entry, &acl->entries, next) {"
],
"line_no": [
5,
17
]
} | void FUNC_0(qemu_acl *VAR_0)
{
qemu_acl_entry *entry;
VAR_0->defaultDeny = 1;
QTAILQ_FOREACH(entry, &VAR_0->entries, next) {
QTAILQ_REMOVE(&VAR_0->entries, entry, next);
free(entry->match);
free(entry);
}
VAR_0->nentries = 0;
}
| [
"void FUNC_0(qemu_acl *VAR_0)\n{",
"qemu_acl_entry *entry;",
"VAR_0->defaultDeny = 1;",
"QTAILQ_FOREACH(entry, &VAR_0->entries, next) {",
"QTAILQ_REMOVE(&VAR_0->entries, entry, next);",
"free(entry->match);",
"free(entry);",
"}",
"VAR_0->nentries = 0;",
"}"
] | [
0,
1,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
21,816 | void ff_id3v2_read(AVFormatContext *s, const char *magic,
ID3v2ExtraMeta **extra_meta)
{
id3v2_read_internal(s->pb, &s->metadata, s, magic, extra_meta);
}
| false | FFmpeg | 5331773cc33ba26b9e26ace643d926219e46a17b | void ff_id3v2_read(AVFormatContext *s, const char *magic,
ID3v2ExtraMeta **extra_meta)
{
id3v2_read_internal(s->pb, &s->metadata, s, magic, extra_meta);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(AVFormatContext *VAR_0, const char *VAR_1,
ID3v2ExtraMeta **VAR_2)
{
id3v2_read_internal(VAR_0->pb, &VAR_0->metadata, VAR_0, VAR_1, VAR_2);
}
| [
"void FUNC_0(AVFormatContext *VAR_0, const char *VAR_1,\nID3v2ExtraMeta **VAR_2)\n{",
"id3v2_read_internal(VAR_0->pb, &VAR_0->metadata, VAR_0, VAR_1, VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
21,817 | static int qemu_loadvm_state(QEMUFile *f)
{
SaveStateEntry *se;
int len, ret, instance_id, record_len, version_id;
int64_t total_len, end_pos, cur_pos;
unsigned int v;
char idstr[256];
v = qemu_get_be32(f);
if (v != QEMU_VM_FILE_MAGIC)
goto fail;
v = qemu_get_be32(f);... | true | qemu | 9366f4186025e1d8fc3bebd41fb714521c170b6f | static int qemu_loadvm_state(QEMUFile *f)
{
SaveStateEntry *se;
int len, ret, instance_id, record_len, version_id;
int64_t total_len, end_pos, cur_pos;
unsigned int v;
char idstr[256];
v = qemu_get_be32(f);
if (v != QEMU_VM_FILE_MAGIC)
goto fail;
v = qemu_get_be32(f);... | {
"code": [
" cur_pos = qemu_ftell(f);",
" ret = 0;",
"static int qemu_loadvm_state(QEMUFile *f)",
" unsigned int v;",
" v = qemu_get_be32(f);",
" if (v != QEMU_VM_FILE_MAGIC)",
" goto fail;",
" v = qemu_get_be32(f);",
" if (v != QEMU_VM_FILE_VERSION... | static int FUNC_0(QEMUFile *VAR_0)
{
SaveStateEntry *se;
int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;
int64_t total_len, end_pos, cur_pos;
unsigned int VAR_6;
char VAR_7[256];
VAR_6 = qemu_get_be32(VAR_0);
if (VAR_6 != QEMU_VM_FILE_MAGIC)
goto fail;
VAR_6 = qemu_get_be32(VA... | [
"static int FUNC_0(QEMUFile *VAR_0)\n{",
"SaveStateEntry *se;",
"int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;",
"int64_t total_len, end_pos, cur_pos;",
"unsigned int VAR_6;",
"char VAR_7[256];",
"VAR_6 = qemu_get_be32(VAR_0);",
"if (VAR_6 != QEMU_VM_FILE_MAGIC)\ngoto fail;",
"VAR_6 = qemu_get_be32(VAR_0);... | [
1,
0,
0,
0,
1,
0,
1,
1,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[... |
21,818 | int ff_h263_decode_picture_header(MpegEncContext *s)
{
int format, width, height, i;
uint32_t startcode;
align_get_bits(&s->gb);
if (show_bits(&s->gb, 2) == 2 && s->avctx->frame_number == 0) {
av_log(s->avctx, AV_LOG_WARNING, "Header looks like RTP instead of H.263\n");
}
... | false | FFmpeg | fbdaebb29861d32acc93fa55fd13554a2ae32eb4 | int ff_h263_decode_picture_header(MpegEncContext *s)
{
int format, width, height, i;
uint32_t startcode;
align_get_bits(&s->gb);
if (show_bits(&s->gb, 2) == 2 && s->avctx->frame_number == 0) {
av_log(s->avctx, AV_LOG_WARNING, "Header looks like RTP instead of H.263\n");
}
... | {
"code": [],
"line_no": []
} | int FUNC_0(MpegEncContext *VAR_0)
{
int VAR_1, VAR_2, VAR_3, VAR_7;
uint32_t startcode;
align_get_bits(&VAR_0->gb);
if (show_bits(&VAR_0->gb, 2) == 2 && VAR_0->avctx->frame_number == 0) {
av_log(VAR_0->avctx, AV_LOG_WARNING, "Header looks like RTP instead of H.263\n");
}
s... | [
"int FUNC_0(MpegEncContext *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3, VAR_7;",
"uint32_t startcode;",
"align_get_bits(&VAR_0->gb);",
"if (show_bits(&VAR_0->gb, 2) == 2 && VAR_0->avctx->frame_number == 0) {",
"av_log(VAR_0->avctx, AV_LOG_WARNING, \"Header looks like RTP instead of H.263\\n\");",
"}",
"star... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53,
55
],
[
57... |
21,819 | static inline void gen_op_arith_add(DisasContext *ctx, TCGv ret, TCGv arg1,
TCGv arg2, bool add_ca, bool compute_ca,
bool compute_ov, bool compute_rc0)
{
TCGv t0 = ret;
if (((compute_ca && add_ca) || compute_ov)
&& (TCGV_EQU... | true | qemu | 79482e5ab38a05ca8869040b0d8b8f451f16ff62 | static inline void gen_op_arith_add(DisasContext *ctx, TCGv ret, TCGv arg1,
TCGv arg2, bool add_ca, bool compute_ca,
bool compute_ov, bool compute_rc0)
{
TCGv t0 = ret;
if (((compute_ca && add_ca) || compute_ov)
&& (TCGV_EQU... | {
"code": [
" TCGv zero = tcg_const_tl(0);",
" if (add_ca) {",
" tcg_gen_add2_tl(t0, cpu_ca, arg1, zero, cpu_ca, zero);",
" tcg_gen_add2_tl(t0, cpu_ca, t0, cpu_ca, arg2, zero);",
" tcg_gen_add2_tl(t0, cpu_ca, arg1, zero, arg2, zero);",
" tc... | static inline void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2,
TCGv VAR_3, bool VAR_4, bool VAR_5,
bool VAR_6, bool VAR_7)
{
TCGv t0 = VAR_1;
if (((VAR_5 && VAR_4) || VAR_6)
&& (TCGV_EQUAL(VAR_1, VAR_2) || TCGV_EQUAL... | [
"static inline void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2,\nTCGv VAR_3, bool VAR_4, bool VAR_5,\nbool VAR_6, bool VAR_7)\n{",
"TCGv t0 = VAR_1;",
"if (((VAR_5 && VAR_4) || VAR_6)\n&& (TCGV_EQUAL(VAR_1, VAR_2) || TCGV_EQUAL(VAR_1, VAR_3))) {",
"t0 = tcg_temp_new();",
"}",
"if (VAR_5) {",
"T... | [
0,
0,
1,
0,
0,
0,
1,
1,
1,
1,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
21,821 | static void qxl_check_state(PCIQXLDevice *d)
{
QXLRam *ram = d->ram;
assert(SPICE_RING_IS_EMPTY(&ram->cmd_ring));
assert(SPICE_RING_IS_EMPTY(&ram->cursor_ring));
}
| true | qemu | be48e9951214a78ebef025cefecfc77be3d1c13c | static void qxl_check_state(PCIQXLDevice *d)
{
QXLRam *ram = d->ram;
assert(SPICE_RING_IS_EMPTY(&ram->cmd_ring));
assert(SPICE_RING_IS_EMPTY(&ram->cursor_ring));
}
| {
"code": [
" assert(SPICE_RING_IS_EMPTY(&ram->cmd_ring));",
" assert(SPICE_RING_IS_EMPTY(&ram->cursor_ring));",
" QXLRam *ram = d->ram;"
],
"line_no": [
9,
11,
5
]
} | static void FUNC_0(PCIQXLDevice *VAR_0)
{
QXLRam *ram = VAR_0->ram;
assert(SPICE_RING_IS_EMPTY(&ram->cmd_ring));
assert(SPICE_RING_IS_EMPTY(&ram->cursor_ring));
}
| [
"static void FUNC_0(PCIQXLDevice *VAR_0)\n{",
"QXLRam *ram = VAR_0->ram;",
"assert(SPICE_RING_IS_EMPTY(&ram->cmd_ring));",
"assert(SPICE_RING_IS_EMPTY(&ram->cursor_ring));",
"}"
] | [
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
21,824 | static inline uint64_t inline_cvttq(CPUAlphaState *env, uint64_t a,
int roundmode, int VI)
{
uint64_t frac, ret = 0;
uint32_t exp, sign, exc = 0;
int shift;
sign = (a >> 63);
exp = (uint32_t)(a >> 52) & 0x7ff;
frac = a & 0xfffffffffffffull;
if... | true | qemu | c24a8a0b6dad5a33d84f5fb846edb28c43312c71 | static inline uint64_t inline_cvttq(CPUAlphaState *env, uint64_t a,
int roundmode, int VI)
{
uint64_t frac, ret = 0;
uint32_t exp, sign, exc = 0;
int shift;
sign = (a >> 63);
exp = (uint32_t)(a >> 52) & 0x7ff;
frac = a & 0xfffffffffffffull;
if... | {
"code": [
"static inline uint64_t inline_cvttq(CPUAlphaState *env, uint64_t a,",
" int roundmode, int VI)",
" exc = (frac ? FPCR_INV : VI ? FPCR_OVF : 0);",
" if (VI && (ret >> shift) != frac) {",
" exc = FPCR_OVF;",
... | static inline uint64_t FUNC_0(CPUAlphaState *env, uint64_t a,
int roundmode, int VI)
{
uint64_t frac, ret = 0;
uint32_t exp, sign, exc = 0;
int VAR_0;
sign = (a >> 63);
exp = (uint32_t)(a >> 52) & 0x7ff;
frac = a & 0xfffffffffffffull;
if (exp ... | [
"static inline uint64_t FUNC_0(CPUAlphaState *env, uint64_t a,\nint roundmode, int VI)\n{",
"uint64_t frac, ret = 0;",
"uint32_t exp, sign, exc = 0;",
"int VAR_0;",
"sign = (a >> 63);",
"exp = (uint32_t)(a >> 52) & 0x7ff;",
"frac = a & 0xfffffffffffffull;",
"if (exp == 0) {",
"if (unlikely(frac != 0... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45
],
[
51
],
[
53
],
[... |
21,825 | static inline void ff_mpeg4_set_one_direct_mv(MpegEncContext *s, int mx, int my, int i){
static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t);
static const int tab_bias = (tab_size/2);
int xy= s->block_index[i];
uint16_t time_pp= s->pp_time;
uint16_t time_pb= s->pb_time;
... | true | FFmpeg | c4e2a535b3a8b192c144acfaa9f1a7bc8b7f99f3 | static inline void ff_mpeg4_set_one_direct_mv(MpegEncContext *s, int mx, int my, int i){
static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t);
static const int tab_bias = (tab_size/2);
int xy= s->block_index[i];
uint16_t time_pp= s->pp_time;
uint16_t time_pb= s->pb_time;
... | {
"code": [
" static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t);",
" static const int tab_bias = (tab_size/2);",
" static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t);",
" static const int tab_bias = (tab_size/2);"
],
"line_no": [
3,
... | static inline void FUNC_0(MpegEncContext *VAR_0, int VAR_1, int VAR_2, int VAR_3){
static const int VAR_4 = sizeof(VAR_0->direct_scale_mv[0])/sizeof(int16_t);
static const int VAR_5 = (VAR_4/2);
int VAR_6= VAR_0->block_index[VAR_3];
uint16_t time_pp= VAR_0->pp_time;
uint16_t time_pb= VAR_0->pb_... | [
"static inline void FUNC_0(MpegEncContext *VAR_0, int VAR_1, int VAR_2, int VAR_3){",
"static const int VAR_4 = sizeof(VAR_0->direct_scale_mv[0])/sizeof(int16_t);",
"static const int VAR_5 = (VAR_4/2);",
"int VAR_6= VAR_0->block_index[VAR_3];",
"uint16_t time_pp= VAR_0->pp_time;",
"uint16_t time_pb= VAR_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
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
... |
21,826 | static int read_braindead_odml_indx(AVFormatContext *s, int frame_num){
AVIContext *avi = s->priv_data;
AVIOContext *pb = s->pb;
int longs_pre_entry= avio_rl16(pb);
int index_sub_type = avio_r8(pb);
int index_type = avio_r8(pb);
int entries_in_use = avio_rl32(pb);
int chunk_id ... | true | FFmpeg | f9e083a156f19094cb6fcd134c1ca4ca899a1a6d | static int read_braindead_odml_indx(AVFormatContext *s, int frame_num){
AVIContext *avi = s->priv_data;
AVIOContext *pb = s->pb;
int longs_pre_entry= avio_rl16(pb);
int index_sub_type = avio_r8(pb);
int index_type = avio_r8(pb);
int entries_in_use = avio_rl32(pb);
int chunk_id ... | {
"code": [
" avio_seek(pb, offset+8, SEEK_SET);",
" avio_seek(pb, pos, SEEK_SET);"
],
"line_no": [
159,
171
]
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1){
AVIContext *avi = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int VAR_2= avio_rl16(pb);
int VAR_3 = avio_r8(pb);
int VAR_4 = avio_r8(pb);
int VAR_5 = avio_rl32(pb);
int VAR_6 = avio_rl32(pb);
int64_t base = ... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1){",
"AVIContext *avi = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_2= avio_rl16(pb);",
"int VAR_3 = avio_r8(pb);",
"int VAR_4 = avio_r8(pb);",
"int VAR_5 = avio_rl32(pb);",
"int VAR_6 = avio_rl32(pb);",
"int64_t base ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33,
35
],
[
39,
41
],
[
43
],
[
45
],
[... |
21,827 | static inline void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused)
{
#if COMPILE_TEMPLATE_MMX
assert(src1==src2);
RENAME(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24);
#else
int i;
assert(src1==src2);
for (i=0; ... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused)
{
#if COMPILE_TEMPLATE_MMX
assert(src1==src2);
RENAME(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24);
#else
int i;
assert(src1==src2);
for (i=0; ... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused)
{
#if COMPILE_TEMPLATE_MMX
assert(src1==src2);
FUNC_0(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24);
#else
int VAR_0;
assert(src1==src2);
for (V... | [
"static inline void FUNC_0(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused)\n{",
"#if COMPILE_TEMPLATE_MMX\nassert(src1==src2);",
"FUNC_0(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24);",
"#else\nint VAR_0;",
"assert(src1==src2);",
"f... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33,
35
]
] |
21,829 | static Visitor *visitor_input_test_init_raw(TestInputVisitorData *data,
const char *json_string)
{
Visitor *v;
data->obj = qobject_from_json(json_string);
g_assert(data->obj != NULL);
data->qiv = qmp_input_visitor_new(data->obj);
g_assert(data... | true | qemu | 0920a17199d23b3def3a60fa1fbbdeadcdda452d | static Visitor *visitor_input_test_init_raw(TestInputVisitorData *data,
const char *json_string)
{
Visitor *v;
data->obj = qobject_from_json(json_string);
g_assert(data->obj != NULL);
data->qiv = qmp_input_visitor_new(data->obj);
g_assert(data... | {
"code": [
" g_assert(data->obj != NULL);",
" g_assert(data->qiv != NULL);",
" v = qmp_input_get_visitor(data->qiv);",
" g_assert(v != NULL);",
" Visitor *v;",
" data->obj = qobject_from_json(json_string);",
" g_assert(data->obj != NULL);",
" g_assert(data->qiv... | static Visitor *FUNC_0(TestInputVisitorData *data,
const char *json_string)
{
Visitor *v;
data->obj = qobject_from_json(json_string);
g_assert(data->obj != NULL);
data->qiv = qmp_input_visitor_new(data->obj);
g_assert(data->qiv != NULL);
... | [
"static Visitor *FUNC_0(TestInputVisitorData *data,\nconst char *json_string)\n{",
"Visitor *v;",
"data->obj = qobject_from_json(json_string);",
"g_assert(data->obj != NULL);",
"data->qiv = qmp_input_visitor_new(data->obj);",
"g_assert(data->qiv != NULL);",
"v = qmp_input_get_visitor(data->qiv);",
"g_... | [
0,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
21,830 | ssize_t v9fs_get_xattr(FsContext *ctx, const char *path,
const char *name, void *value, size_t size)
{
XattrOperations *xops = get_xattr_operations(ctx->xops, name);
if (xops) {
return xops->getxattr(ctx, path, name, value, size);
}
errno = -EOPNOTSUPP;
return ... | true | qemu | 8af00205445eb901f17ca5b632d976065187538e | ssize_t v9fs_get_xattr(FsContext *ctx, const char *path,
const char *name, void *value, size_t size)
{
XattrOperations *xops = get_xattr_operations(ctx->xops, name);
if (xops) {
return xops->getxattr(ctx, path, name, value, size);
}
errno = -EOPNOTSUPP;
return ... | {
"code": [
" errno = -EOPNOTSUPP;",
" errno = -EOPNOTSUPP;",
" errno = -EOPNOTSUPP;"
],
"line_no": [
15,
15,
15
]
} | ssize_t FUNC_0(FsContext *ctx, const char *path,
const char *name, void *value, size_t size)
{
XattrOperations *xops = get_xattr_operations(ctx->xops, name);
if (xops) {
return xops->getxattr(ctx, path, name, value, size);
}
errno = -EOPNOTSUPP;
return -1;
}
| [
"ssize_t FUNC_0(FsContext *ctx, const char *path,\nconst char *name, void *value, size_t size)\n{",
"XattrOperations *xops = get_xattr_operations(ctx->xops, name);",
"if (xops) {",
"return xops->getxattr(ctx, path, name, value, size);",
"}",
"errno = -EOPNOTSUPP;",
"return -1;",
"}"
] | [
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
21,831 | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value)
{
FDrive *cur_drv;
int pos;
/* Reset mode */
if (!(fdctrl->dor & FD_DOR_nRESET)) {
FLOPPY_DPRINTF("Floppy controller in RESET state !\n");
return;
}
if (!(fdctrl->msr & FD_MSR_RQM) || (fdctrl->msr & FD_MSR_D... | true | qemu | e907746266721f305d67bc0718795fedee2e824c | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value)
{
FDrive *cur_drv;
int pos;
if (!(fdctrl->dor & FD_DOR_nRESET)) {
FLOPPY_DPRINTF("Floppy controller in RESET state !\n");
return;
}
if (!(fdctrl->msr & FD_MSR_RQM) || (fdctrl->msr & FD_MSR_DIO)) {
... | {
"code": [
" int pos;",
" pos %= FD_SECTOR_LEN;",
" int pos;",
" fdctrl->fifo[fdctrl->data_pos++] = value;"
],
"line_no": [
7,
39,
7,
105
]
} | static void FUNC_0(FDCtrl *VAR_0, uint32_t VAR_1)
{
FDrive *cur_drv;
int VAR_2;
if (!(VAR_0->dor & FD_DOR_nRESET)) {
FLOPPY_DPRINTF("Floppy controller in RESET state !\n");
return;
}
if (!(VAR_0->msr & FD_MSR_RQM) || (VAR_0->msr & FD_MSR_DIO)) {
FLOPPY_DPRINT... | [
"static void FUNC_0(FDCtrl *VAR_0, uint32_t VAR_1)\n{",
"FDrive *cur_drv;",
"int VAR_2;",
"if (!(VAR_0->dor & FD_DOR_nRESET)) {",
"FLOPPY_DPRINTF(\"Floppy controller in RESET state !\\n\");",
"return;",
"}",
"if (!(VAR_0->msr & FD_MSR_RQM) || (VAR_0->msr & FD_MSR_DIO)) {",
"FLOPPY_DPRINTF(\"error: c... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49,
51... |
21,832 | static uint8_t *scsi_get_buf(SCSIDevice *d, uint32_t tag)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);
SCSIDiskReq *r;
r = scsi_find_request(s, tag);
if (!r) {
BADF("Bad buffer tag 0x%x\n", tag);
return NULL;
}
return (uint8_t *)r->iov.iov_base;
}
| true | qemu | 5c6c0e513600ba57c3e73b7151d3c0664438f7b5 | static uint8_t *scsi_get_buf(SCSIDevice *d, uint32_t tag)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);
SCSIDiskReq *r;
r = scsi_find_request(s, tag);
if (!r) {
BADF("Bad buffer tag 0x%x\n", tag);
return NULL;
}
return (uint8_t *)r->iov.iov_base;
}
| {
"code": [
" SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);",
" SCSIDiskReq *r;",
" r = scsi_find_request(s, tag);",
" SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);",
" SCSIDiskReq *r;",
" r = scsi_find_request(s, tag);",
" if (!r) {",
" SCSIDisk... | static uint8_t *FUNC_0(SCSIDevice *d, uint32_t tag)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);
SCSIDiskReq *r;
r = scsi_find_request(s, tag);
if (!r) {
BADF("Bad buffer tag 0x%x\n", tag);
return NULL;
}
return (uint8_t *)r->iov.iov_base;
}
| [
"static uint8_t *FUNC_0(SCSIDevice *d, uint32_t tag)\n{",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);",
"SCSIDiskReq *r;",
"r = scsi_find_request(s, tag);",
"if (!r) {",
"BADF(\"Bad buffer tag 0x%x\\n\", tag);",
"return NULL;",
"}",
"return (uint8_t *)r->iov.iov_base;",
"}"
] | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
21,833 | static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args,
uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size, int keyframe){
unsigned int *state= bsfc->priv_data;
int amount= args ? atoi(args) : (*state % 10001+1);... | true | FFmpeg | 67f9bbbb3f6295ca27da7c367f31c6d65339dd4a | static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args,
uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size, int keyframe){
unsigned int *state= bsfc->priv_data;
int amount= args ? atoi(args) : (*state % 10001+1);... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVBitStreamFilterContext *VAR_0, AVCodecContext *VAR_1, const char *VAR_2,
uint8_t **VAR_3, int *VAR_4,
const uint8_t *VAR_5, int VAR_6, int VAR_7){
unsigned int *VAR_8= VAR_0->priv_data;
int VAR_9= VAR_2 ? atoi(VAR_2) : (*VAR_8 % 10001+1);
in... | [
"static int FUNC_0(AVBitStreamFilterContext *VAR_0, AVCodecContext *VAR_1, const char *VAR_2,\nuint8_t **VAR_3, int *VAR_4,\nconst uint8_t *VAR_5, int VAR_6, int VAR_7){",
"unsigned int *VAR_8= VAR_0->priv_data;",
"int VAR_9= VAR_2 ? atoi(VAR_2) : (*VAR_8 % 10001+1);",
"int VAR_10;",
"if(VAR_9 <= 0)\nreturn... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
]
] |
21,834 | static void qdev_print_devinfos(bool show_no_user)
{
static const char *cat_name[DEVICE_CATEGORY_MAX + 1] = {
[DEVICE_CATEGORY_BRIDGE] = "Controller/Bridge/Hub",
[DEVICE_CATEGORY_USB] = "USB",
[DEVICE_CATEGORY_STORAGE] = "Storage",
[DEVICE_CATEGORY_NETWORK] = "Network",
... | true | qemu | efec3dd631d94160288392721a5f9c39e50fb2bc | static void qdev_print_devinfos(bool show_no_user)
{
static const char *cat_name[DEVICE_CATEGORY_MAX + 1] = {
[DEVICE_CATEGORY_BRIDGE] = "Controller/Bridge/Hub",
[DEVICE_CATEGORY_USB] = "USB",
[DEVICE_CATEGORY_STORAGE] = "Storage",
[DEVICE_CATEGORY_NETWORK] = "Network",
... | {
"code": [
" || (!show_no_user && dc->no_user)) {"
],
"line_no": [
57
]
} | static void FUNC_0(bool VAR_0)
{
static const char *VAR_1[DEVICE_CATEGORY_MAX + 1] = {
[DEVICE_CATEGORY_BRIDGE] = "Controller/Bridge/Hub",
[DEVICE_CATEGORY_USB] = "USB",
[DEVICE_CATEGORY_STORAGE] = "Storage",
[DEVICE_CATEGORY_NETWORK] = "Network",
[DEVICE_CATEGORY... | [
"static void FUNC_0(bool VAR_0)\n{",
"static const char *VAR_1[DEVICE_CATEGORY_MAX + 1] = {",
"[DEVICE_CATEGORY_BRIDGE] = \"Controller/Bridge/Hub\",\n[DEVICE_CATEGORY_USB] = \"USB\",\n[DEVICE_CATEGORY_STORAGE] = \"Storage\",\n[DEVICE_CATEGORY_NETWORK] = \"Network\",\n[DEVICE_CATEGORY_INPUT] = \"Input\",\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13,
15,
17,
19,
21,
23,
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
[
51,
53,
55,
57
],
[
59
... |
21,835 | static void uhci_ioport_writew(void *opaque, uint32_t addr, uint32_t val)
{
UHCIState *s = opaque;
addr &= 0x1f;
trace_usb_uhci_mmio_writew(addr, val);
switch(addr) {
case 0x00:
if ((val & UHCI_CMD_RS) && !(s->cmd & UHCI_CMD_RS)) {
/* start frame processing */
... | true | qemu | f8f48b6957bf182339495e6be429f7bdc7ef1981 | static void uhci_ioport_writew(void *opaque, uint32_t addr, uint32_t val)
{
UHCIState *s = opaque;
addr &= 0x1f;
trace_usb_uhci_mmio_writew(addr, val);
switch(addr) {
case 0x00:
if ((val & UHCI_CMD_RS) && !(s->cmd & UHCI_CMD_RS)) {
trace_usb_uhci_schedul... | {
"code": [
" qemu_mod_timer(s->frame_timer, qemu_get_clock_ns(vm_clock));"
],
"line_no": [
29
]
} | static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
UHCIState *s = VAR_0;
VAR_1 &= 0x1f;
trace_usb_uhci_mmio_writew(VAR_1, VAR_2);
switch(VAR_1) {
case 0x00:
if ((VAR_2 & UHCI_CMD_RS) && !(s->cmd & UHCI_CMD_RS)) {
trace_usb_uhci_schedule_st... | [
"static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"UHCIState *s = VAR_0;",
"VAR_1 &= 0x1f;",
"trace_usb_uhci_mmio_writew(VAR_1, VAR_2);",
"switch(VAR_1) {",
"case 0x00:\nif ((VAR_2 & UHCI_CMD_RS) && !(s->cmd & UHCI_CMD_RS)) {",
"trace_usb_uhci_schedule_start();",
"s->expire_time = ... | [
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
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
49
],
[
51
],
[
53... |
21,837 | static void to_meta_with_crop(AVCodecContext *avctx, AVFrame *p, int *dest)
{
int blockx, blocky, x, y;
int luma = 0;
int height = FFMIN(avctx->height, C64YRES);
int width = FFMIN(avctx->width , C64XRES);
uint8_t *src = p->data[0];
for (blocky = 0; blocky < C64YRES; blocky += 8) {
... | false | FFmpeg | 91767360d86ac786571593ab11c7291010ab3829 | static void to_meta_with_crop(AVCodecContext *avctx, AVFrame *p, int *dest)
{
int blockx, blocky, x, y;
int luma = 0;
int height = FFMIN(avctx->height, C64YRES);
int width = FFMIN(avctx->width , C64XRES);
uint8_t *src = p->data[0];
for (blocky = 0; blocky < C64YRES; blocky += 8) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6;
int VAR_7 = 0;
int VAR_8 = FFMIN(VAR_0->VAR_8, C64YRES);
int VAR_9 = FFMIN(VAR_0->VAR_9 , C64XRES);
uint8_t *src = VAR_1->data[0];
for (VAR_4 = 0; VAR_4 < C64YRES; VAR_4 += 8) {
... | [
"static void FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"int VAR_7 = 0;",
"int VAR_8 = FFMIN(VAR_0->VAR_8, C64YRES);",
"int VAR_9 = FFMIN(VAR_0->VAR_9 , C64XRES);",
"uint8_t *src = VAR_1->data[0];",
"for (VAR_4 = 0; VAR_4 < C64YRES; VAR_4 += 8) {",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
21,838 | static int jpeg2000_read_bitstream_packets(Jpeg2000DecoderContext *s)
{
int ret = 0;
int tileno;
for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++) {
Jpeg2000Tile *tile = s->tile + tileno;
if (ret = init_tile(s, tileno))
return ret;
s->g = tile... | false | FFmpeg | 4bfdd967a6b2908c9562f9a0ec731e5745cfa796 | static int jpeg2000_read_bitstream_packets(Jpeg2000DecoderContext *s)
{
int ret = 0;
int tileno;
for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++) {
Jpeg2000Tile *tile = s->tile + tileno;
if (ret = init_tile(s, tileno))
return ret;
s->g = tile... | {
"code": [],
"line_no": []
} | static int FUNC_0(Jpeg2000DecoderContext *VAR_0)
{
int VAR_1 = 0;
int VAR_2;
for (VAR_2 = 0; VAR_2 < VAR_0->numXtiles * VAR_0->numYtiles; VAR_2++) {
Jpeg2000Tile *tile = VAR_0->tile + VAR_2;
if (VAR_1 = init_tile(VAR_0, VAR_2))
return VAR_1;
VAR_0->g = tile-... | [
"static int FUNC_0(Jpeg2000DecoderContext *VAR_0)\n{",
"int VAR_1 = 0;",
"int VAR_2;",
"for (VAR_2 = 0; VAR_2 < VAR_0->numXtiles * VAR_0->numYtiles; VAR_2++) {",
"Jpeg2000Tile *tile = VAR_0->tile + VAR_2;",
"if (VAR_1 = init_tile(VAR_0, VAR_2))\nreturn VAR_1;",
"VAR_0->g = tile->tile_part[0].tpg;",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25,
27
],
[
29
],
[
33
],
[
35
]
] |
21,839 | static void RENAME(yuv2yuvX_ar)(SwsContext *c, const int16_t *lumFilter,
const int16_t **lumSrc, int lumFilterSize,
const int16_t *chrFilter, const int16_t **chrUSrc,
const int16_t **chrVSrc,
... | false | FFmpeg | 13a099799e89a76eb921ca452e1b04a7a28a9855 | static void RENAME(yuv2yuvX_ar)(SwsContext *c, const int16_t *lumFilter,
const int16_t **lumSrc, int lumFilterSize,
const int16_t *chrFilter, const int16_t **chrUSrc,
const int16_t **chrVSrc,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(yuv2yuvX_ar)(SwsContext *c, const int16_t *lumFilter,
const int16_t **lumSrc, int lumFilterSize,
const int16_t *chrFilter, const int16_t **chrUSrc,
const int16_t **chrVSrc,
... | [
"static void FUNC_0(yuv2yuvX_ar)(SwsContext *c, const int16_t *lumFilter,\nconst int16_t **lumSrc, int lumFilterSize,\nconst int16_t *chrFilter, const int16_t **chrUSrc,\nconst int16_t **chrVSrc,\nint chrFilterSize, const int16_t **alpSrc,\nuint8_t *dest, uint8_t *uDest, uint8_t *vDest,\nuint8_t *aDest, int dstW, i... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
21,
23,
25
],
[
27
],
[
29,
31
],
[
35,
37
]
] |
21,840 | av_cold void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx)
{
int cpu_flags = av_get_cpu_flags();
#if HAVE_7REGS && HAVE_INLINE_ASM
if (cpu_flags & AV_CPU_FLAG_CMOV)
c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov;
#endif
if (cpu_flags & AV_CPU_FLAG_MMX)
... | false | FFmpeg | 6369ba3c9cc74becfaad2a8882dff3dd3e7ae3c0 | av_cold void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx)
{
int cpu_flags = av_get_cpu_flags();
#if HAVE_7REGS && HAVE_INLINE_ASM
if (cpu_flags & AV_CPU_FLAG_CMOV)
c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov;
#endif
if (cpu_flags & AV_CPU_FLAG_MMX)
... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx)
{
int VAR_0 = av_get_cpu_flags();
#if HAVE_7REGS && HAVE_INLINE_ASM
if (VAR_0 & AV_CPU_FLAG_CMOV)
c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov;
#endif
if (VAR_0 & AV_CPU_FLAG_MMX)
dsputil_init_mmx(c, ... | [
"av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx)\n{",
"int VAR_0 = av_get_cpu_flags();",
"#if HAVE_7REGS && HAVE_INLINE_ASM\nif (VAR_0 & AV_CPU_FLAG_CMOV)\nc->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov;",
"#endif\nif (VAR_0 & AV_CPU_FLAG_MMX)\ndsputil_init_mmx(c, avctx, VAR_0);"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
15,
19,
21
],
[
25,
27
],
[
31,
33
],
[
37,
39
],
[
43,
45
],
[
49,
51
],
[
55,
57
],
[
59
]
] |
21,842 | matroska_read_close (AVFormatContext *s)
{
MatroskaDemuxContext *matroska = s->priv_data;
int n = 0;
if (matroska->writing_app)
av_free(matroska->writing_app);
if (matroska->muxing_app)
av_free(matroska->muxing_app);
if (matroska->index)
av_free(matroska->index);
... | false | FFmpeg | ce99efc6ffedc7a8fbcc23690d9ff9f7e6f4bf44 | matroska_read_close (AVFormatContext *s)
{
MatroskaDemuxContext *matroska = s->priv_data;
int n = 0;
if (matroska->writing_app)
av_free(matroska->writing_app);
if (matroska->muxing_app)
av_free(matroska->muxing_app);
if (matroska->index)
av_free(matroska->index);
... | {
"code": [],
"line_no": []
} | FUNC_0 (AVFormatContext *VAR_0)
{
MatroskaDemuxContext *matroska = VAR_0->priv_data;
int VAR_1 = 0;
if (matroska->writing_app)
av_free(matroska->writing_app);
if (matroska->muxing_app)
av_free(matroska->muxing_app);
if (matroska->index)
av_free(matroska->index);
... | [
"FUNC_0 (AVFormatContext *VAR_0)\n{",
"MatroskaDemuxContext *matroska = VAR_0->priv_data;",
"int VAR_1 = 0;",
"if (matroska->writing_app)\nav_free(matroska->writing_app);",
"if (matroska->muxing_app)\nav_free(matroska->muxing_app);",
"if (matroska->index)\nav_free(matroska->index);",
"if (matroska->pack... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15,
17
],
[
19,
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45,
47
],
[
49,
51
],
... |
21,844 | av_cold int ff_intrax8_common_init(IntraX8Context *w, IDCTDSPContext *idsp,
MpegEncContext *const s)
{
int ret = x8_vlc_init();
if (ret < 0)
return ret;
w->idsp = *idsp;
w->s = s;
// two rows, 2 blocks per cannon mb
w->prediction_table = av... | false | FFmpeg | 1eaae7abb8f208fefb4e8b9e983e61b2499206a3 | av_cold int ff_intrax8_common_init(IntraX8Context *w, IDCTDSPContext *idsp,
MpegEncContext *const s)
{
int ret = x8_vlc_init();
if (ret < 0)
return ret;
w->idsp = *idsp;
w->s = s;
w->prediction_table = av_mallocz(s->mb_width * 2 * 2);
... | {
"code": [],
"line_no": []
} | av_cold int FUNC_0(IntraX8Context *w, IDCTDSPContext *idsp,
MpegEncContext *const s)
{
int VAR_0 = x8_vlc_init();
if (VAR_0 < 0)
return VAR_0;
w->idsp = *idsp;
w->s = s;
w->prediction_table = av_mallocz(s->mb_width * 2 * 2);
if (!w->p... | [
"av_cold int FUNC_0(IntraX8Context *w, IDCTDSPContext *idsp,\nMpegEncContext *const s)\n{",
"int VAR_0 = x8_vlc_init();",
"if (VAR_0 < 0)\nreturn VAR_0;",
"w->idsp = *idsp;",
"w->s = s;",
"w->prediction_table = av_mallocz(s->mb_width * 2 * 2);",
"if (!w->prediction_table)\nreturn AVERROR(ENOMEM);",
"f... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
15
],
[
17
],
[
23
],
[
25,
27
],
[
31,
33
],
[
35,
37
],
[
39,
41
],
[
45
],
[
49
],
[
51
]
] |
21,845 | static int pcm_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *src = avpkt->data;
int buf_size = avpkt->size;
PCMDecode *s = avctx->priv_data;
int sample_size, c, n, ret, samples_per_block;
uint8_t *samples... | true | FFmpeg | b8551f8ea71b7d6ae39de121213860262d911001 | static int pcm_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *src = avpkt->data;
int buf_size = avpkt->size;
PCMDecode *s = avctx->priv_data;
int sample_size, c, n, ret, samples_per_block;
uint8_t *samples... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
PCMDecode *s = VAR_0->priv_data;
int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
uint8_t *samples;
int32_t *dst_int32... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"PCMDecode *s = VAR_0->priv_data;",
"int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"uint8_t *samples;",
"int32_t *dst_int32_t;",
"VAR_6 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
12
],
[
13
],
[
14,
15
],
[
16,
17,
18
],
[
20
],
[
21
],
[
22
],
[
24
],
[
25
],
[
26
],... |
21,846 | static void vfio_probe_rtl8168_bar2_quirk(VFIOPCIDevice *vdev, int nr)
{
VFIOQuirk *quirk;
VFIOrtl8168Quirk *rtl;
if (!vfio_pci_is(vdev, PCI_VENDOR_ID_REALTEK, 0x8168) || nr != 2) {
return;
}
quirk = g_malloc0(sizeof(*quirk));
quirk->mem = g_malloc0(sizeof(MemoryRegion) * 2);... | true | qemu | bdd81addf4033ce26e6cd180b060f63095f3ded9 | static void vfio_probe_rtl8168_bar2_quirk(VFIOPCIDevice *vdev, int nr)
{
VFIOQuirk *quirk;
VFIOrtl8168Quirk *rtl;
if (!vfio_pci_is(vdev, PCI_VENDOR_ID_REALTEK, 0x8168) || nr != 2) {
return;
}
quirk = g_malloc0(sizeof(*quirk));
quirk->mem = g_malloc0(sizeof(MemoryRegion) * 2);... | {
"code": [
" quirk->mem = g_malloc0(sizeof(MemoryRegion) * 2);",
" quirk->mem = g_malloc0(sizeof(MemoryRegion) * 2);",
" quirk->mem = g_malloc0(sizeof(MemoryRegion) * 2);"
],
"line_no": [
21,
21,
21
]
} | static void FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1)
{
VFIOQuirk *quirk;
VFIOrtl8168Quirk *rtl;
if (!vfio_pci_is(VAR_0, PCI_VENDOR_ID_REALTEK, 0x8168) || VAR_1 != 2) {
return;
}
quirk = g_malloc0(sizeof(*quirk));
quirk->mem = g_malloc0(sizeof(MemoryRegion) * 2);
quirk->nr... | [
"static void FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1)\n{",
"VFIOQuirk *quirk;",
"VFIOrtl8168Quirk *rtl;",
"if (!vfio_pci_is(VAR_0, PCI_VENDOR_ID_REALTEK, 0x8168) || VAR_1 != 2) {",
"return;",
"}",
"quirk = g_malloc0(sizeof(*quirk));",
"quirk->mem = g_malloc0(sizeof(MemoryRegion) * 2);",
"quirk->nr_me... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33,
35
],
[
37,
39
],
[
43,
45,
47
],
[
49,
51
],
[
55
],
[
59... |
21,847 | static int gif_read_header1(GifState *s)
{
ByteIOContext *f = s->f;
uint8_t sig[6];
int ret, v, n;
int has_global_palette;
/* read gif signature */
ret = get_buffer(f, sig, 6);
if (ret != 6)
return -1;
if (memcmp(sig, gif87a_sig, 6) != 0 &&
memcmp(sig, gif89a... | true | FFmpeg | 0b54f3c0878a3acaa9142e4f24942e762d97e350 | static int gif_read_header1(GifState *s)
{
ByteIOContext *f = s->f;
uint8_t sig[6];
int ret, v, n;
int has_global_palette;
ret = get_buffer(f, sig, 6);
if (ret != 6)
return -1;
if (memcmp(sig, gif87a_sig, 6) != 0 &&
memcmp(sig, gif89a_sig, 6) != 0)
... | {
"code": [
" return 0;",
" ByteIOContext *f = s->f;",
"#ifdef DEBUG",
"#endif",
" return 0;",
" ByteIOContext *f = s->f;",
"#ifdef DEBUG",
"#endif",
"#ifdef DEBUG",
"#endif",
"#ifdef DEBUG",
"#endif",
" return 0;",
"static int gif_read_header1(Gi... | static int FUNC_0(GifState *VAR_0)
{
ByteIOContext *f = VAR_0->f;
uint8_t sig[6];
int VAR_1, VAR_2, VAR_3;
int VAR_4;
VAR_1 = get_buffer(f, sig, 6);
if (VAR_1 != 6)
return -1;
if (memcmp(sig, gif87a_sig, 6) != 0 &&
memcmp(sig, gif89a_sig, 6) != 0)
r... | [
"static int FUNC_0(GifState *VAR_0)\n{",
"ByteIOContext *f = VAR_0->f;",
"uint8_t sig[6];",
"int VAR_1, VAR_2, VAR_3;",
"int VAR_4;",
"VAR_1 = get_buffer(f, sig, 6);",
"if (VAR_1 != 6)\nreturn -1;",
"if (memcmp(sig, gif87a_sig, 6) != 0 &&\nmemcmp(sig, gif89a_sig, 6) != 0)\nreturn -1;",
"VAR_0->trans... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19,
21
],
[
23,
25,
27
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
... |
21,848 | int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
int vnet_hdr_required, int mq_required)
{
struct ifreq ifr;
int fd, ret;
int len = sizeof(struct virtio_net_hdr);
TFR(fd = open(PATH_NET_TUN, O_RDWR));
if (fd < 0) {
error_report("could not open %s: %m", PATH_N... | true | qemu | d26e445c80fddcc7483b83f3115e5067fef28fe6 | int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
int vnet_hdr_required, int mq_required)
{
struct ifreq ifr;
int fd, ret;
int len = sizeof(struct virtio_net_hdr);
TFR(fd = open(PATH_NET_TUN, O_RDWR));
if (fd < 0) {
error_report("could not open %s: %m", PATH_N... | {
"code": [
" if (*vnet_hdr) {",
" unsigned int features;",
" unsigned int features;"
],
"line_no": [
31,
33,
33
]
} | int FUNC_0(char *VAR_0, int VAR_1, int *VAR_2,
int VAR_3, int VAR_4)
{
struct ifreq VAR_5;
int VAR_6, VAR_7;
int VAR_8 = sizeof(struct virtio_net_hdr);
TFR(VAR_6 = open(PATH_NET_TUN, O_RDWR));
if (VAR_6 < 0) {
error_report("could not open %s: %m", PATH_NET_TUN);
... | [
"int FUNC_0(char *VAR_0, int VAR_1, int *VAR_2,\nint VAR_3, int VAR_4)\n{",
"struct ifreq VAR_5;",
"int VAR_6, VAR_7;",
"int VAR_8 = sizeof(struct virtio_net_hdr);",
"TFR(VAR_6 = open(PATH_NET_TUN, O_RDWR));",
"if (VAR_6 < 0) {",
"error_report(\"could not open %s: %m\", PATH_NET_TUN);",
"return -1;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
21,849 | static int mkv_write_attachments(AVFormatContext *s)
{
MatroskaMuxContext *mkv = s->priv_data;
AVIOContext *dyn_cp, *pb = s->pb;
ebml_master attachments;
AVLFG c;
int i, ret;
if (!mkv->have_attachments)
return 0;
mkv->attachments = av_mallocz(sizeof(*mkv->attachments));
... | true | FFmpeg | be28ce210d5674603838e67509fc597f30c1bb1c | static int mkv_write_attachments(AVFormatContext *s)
{
MatroskaMuxContext *mkv = s->priv_data;
AVIOContext *dyn_cp, *pb = s->pb;
ebml_master attachments;
AVLFG c;
int i, ret;
if (!mkv->have_attachments)
return 0;
mkv->attachments = av_mallocz(sizeof(*mkv->attachments));
... | {
"code": [
" return ret;"
],
"line_no": [
27
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
MatroskaMuxContext *mkv = VAR_0->priv_data;
AVIOContext *dyn_cp, *pb = VAR_0->pb;
ebml_master attachments;
AVLFG c;
int VAR_1, VAR_2;
if (!mkv->have_attachments)
return 0;
mkv->attachments = av_mallocz(sizeof(*mkv->attachments)... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"MatroskaMuxContext *mkv = VAR_0->priv_data;",
"AVIOContext *dyn_cp, *pb = VAR_0->pb;",
"ebml_master attachments;",
"AVLFG c;",
"int VAR_1, VAR_2;",
"if (!mkv->have_attachments)\nreturn 0;",
"mkv->attachments = av_mallocz(sizeof(*mkv->attachments));",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25,
27
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
21,850 | void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buf, int size)
{
RTPMuxContext *s = s1->priv_data;
const uint8_t *qtables = NULL;
int nb_qtables = 0;
uint8_t type = 1; /* default pixel format is AV_PIX_FMT_YUVJ420P */
uint8_t w, h;
uint8_t *p;
int off = 0; /* fragment offse... | false | FFmpeg | 39975acc699c83af0a87a7318c0f41e189142938 | void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buf, int size)
{
RTPMuxContext *s = s1->priv_data;
const uint8_t *qtables = NULL;
int nb_qtables = 0;
uint8_t type = 1;
uint8_t w, h;
uint8_t *p;
int off = 0;
int len;
int i;
s->buf_ptr = s->buf;
s->t... | {
"code": [],
"line_no": []
} | void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
RTPMuxContext *s = VAR_0->priv_data;
const uint8_t *VAR_3 = NULL;
int VAR_4 = 0;
uint8_t type = 1;
uint8_t w, h;
uint8_t *p;
int VAR_5 = 0;
int VAR_6;
int VAR_7;
s->buf_ptr = s->VAR_1;
s-... | [
"void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"RTPMuxContext *s = VAR_0->priv_data;",
"const uint8_t *VAR_3 = NULL;",
"int VAR_4 = 0;",
"uint8_t type = 1;",
"uint8_t w, h;",
"uint8_t *p;",
"int VAR_5 = 0;",
"int VAR_6;",
"int VAR_7;",
"s->buf_ptr = s->VAR_1;",
"s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
21,852 | static int ffat_decode(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
ATDecodeContext *at = avctx->priv_data;
AVFrame *frame = data;
int pkt_size = avpkt->size;
AVPacket filtered_packet = {0};
OSStatus ret;
AudioBufferList out_buffers;
... | false | FFmpeg | 954e2b3d34b7c2d82871254f07e2f8a39bc451cb | static int ffat_decode(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
ATDecodeContext *at = avctx->priv_data;
AVFrame *frame = data;
int pkt_size = avpkt->size;
AVPacket filtered_packet = {0};
OSStatus ret;
AudioBufferList out_buffers;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
ATDecodeContext *at = VAR_0->priv_data;
AVFrame *frame = VAR_1;
int VAR_4 = VAR_3->size;
AVPacket filtered_packet = {0};
OSStatus ret;
AudioBufferList out_buffers;
if (VAR_0... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"ATDecodeContext *at = VAR_0->priv_data;",
"AVFrame *frame = VAR_1;",
"int VAR_4 = VAR_3->size;",
"AVPacket filtered_packet = {0};",
"OSStatus ret;",
"AudioBufferList out_buffers;",
"if (VAR_0->codec_id == AV_COD... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35,
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[... |
21,853 | static void phys_section_destroy(MemoryRegion *mr)
{
memory_region_unref(mr);
if (mr->subpage) {
subpage_t *subpage = container_of(mr, subpage_t, iomem);
object_unref(OBJECT(&subpage->iomem));
g_free(subpage);
}
}
| false | qemu | 55b4e80b047300e1512df02887b7448ba3786b62 | static void phys_section_destroy(MemoryRegion *mr)
{
memory_region_unref(mr);
if (mr->subpage) {
subpage_t *subpage = container_of(mr, subpage_t, iomem);
object_unref(OBJECT(&subpage->iomem));
g_free(subpage);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryRegion *VAR_0)
{
memory_region_unref(VAR_0);
if (VAR_0->subpage) {
subpage_t *subpage = container_of(VAR_0, subpage_t, iomem);
object_unref(OBJECT(&subpage->iomem));
g_free(subpage);
}
}
| [
"static void FUNC_0(MemoryRegion *VAR_0)\n{",
"memory_region_unref(VAR_0);",
"if (VAR_0->subpage) {",
"subpage_t *subpage = container_of(VAR_0, subpage_t, iomem);",
"object_unref(OBJECT(&subpage->iomem));",
"g_free(subpage);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
21,854 | static void usb_ohci_init(OHCIState *ohci, DeviceState *dev,
int num_ports, int devfn,
qemu_irq irq, enum ohci_type type,
const char *name, uint32_t localmem_base)
{
int i;
if (usb_frame_time == 0) {
#ifdef OHCI_TIME_WARP
... | false | qemu | c169998802505c244b8bcad562633f29de7d74a4 | static void usb_ohci_init(OHCIState *ohci, DeviceState *dev,
int num_ports, int devfn,
qemu_irq irq, enum ohci_type type,
const char *name, uint32_t localmem_base)
{
int i;
if (usb_frame_time == 0) {
#ifdef OHCI_TIME_WARP
... | {
"code": [],
"line_no": []
} | static void FUNC_0(OHCIState *VAR_0, DeviceState *VAR_1,
int VAR_2, int VAR_3,
qemu_irq VAR_4, enum ohci_type VAR_5,
const char *VAR_6, uint32_t VAR_7)
{
int VAR_8;
if (usb_frame_time == 0) {
#ifdef OHCI_TIME_WARP
us... | [
"static void FUNC_0(OHCIState *VAR_0, DeviceState *VAR_1,\nint VAR_2, int VAR_3,\nqemu_irq VAR_4, enum ohci_type VAR_5,\nconst char *VAR_6, uint32_t VAR_7)\n{",
"int VAR_8;",
"if (usb_frame_time == 0) {",
"#ifdef OHCI_TIME_WARP\nusb_frame_time = get_ticks_per_sec();",
"usb_bit_time = muldiv64(1, get_ticks_p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39,
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[... |
21,855 | void helper_float_check_status (void)
{
#ifdef CONFIG_SOFTFLOAT
if (env->exception_index == POWERPC_EXCP_PROGRAM &&
(env->error_code & POWERPC_EXCP_FP)) {
/* Differred floating-point exception after target FPR update */
if (msr_fe0 != 0 || msr_fe1 != 0)
helper_raise_except... | false | qemu | e33e94f92298c96e0928cefab00ea5bae0a1cd19 | void helper_float_check_status (void)
{
#ifdef CONFIG_SOFTFLOAT
if (env->exception_index == POWERPC_EXCP_PROGRAM &&
(env->error_code & POWERPC_EXCP_FP)) {
if (msr_fe0 != 0 || msr_fe1 != 0)
helper_raise_exception_err(env->exception_index, env->error_code);
} else {
... | {
"code": [],
"line_no": []
} | void FUNC_0 (void)
{
#ifdef CONFIG_SOFTFLOAT
if (env->exception_index == POWERPC_EXCP_PROGRAM &&
(env->error_code & POWERPC_EXCP_FP)) {
if (msr_fe0 != 0 || msr_fe1 != 0)
helper_raise_exception_err(env->exception_index, env->error_code);
} else {
int status =... | [
"void FUNC_0 (void)\n{",
"#ifdef CONFIG_SOFTFLOAT\nif (env->exception_index == POWERPC_EXCP_PROGRAM &&\n(env->error_code & POWERPC_EXCP_FP)) {",
"if (msr_fe0 != 0 || msr_fe1 != 0)\nhelper_raise_exception_err(env->exception_index, env->error_code);",
"} else {",
"int status = get_float_exception_flags(&env->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39,
41
],
[
45,
47
],
[
49
],
[
51,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.