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
20,493
static inline void skip_hdr_extension(GetBitContext *gb) { int i, len; do { len = get_bits(gb, 8); for (i = 0; i < len; i++) skip_bits(gb, 8); } while(len); }
false
FFmpeg
103f9c261a68299125b99c542e20f5541051d2c9
static inline void skip_hdr_extension(GetBitContext *gb) { int i, len; do { len = get_bits(gb, 8); for (i = 0; i < len; i++) skip_bits(gb, 8); } while(len); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(GetBitContext *VAR_0) { int VAR_1, VAR_2; do { VAR_2 = get_bits(VAR_0, 8); for (VAR_1 = 0; VAR_1 < VAR_2; VAR_1++) skip_bits(VAR_0, 8); } while(VAR_2); }
[ "static inline void FUNC_0(GetBitContext *VAR_0)\n{", "int VAR_1, VAR_2;", "do {", "VAR_2 = get_bits(VAR_0, 8);", "for (VAR_1 = 0; VAR_1 < VAR_2; VAR_1++) skip_bits(VAR_0, 8);", "} while(VAR_2);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
20,494
static int nbd_negotiate_options(NBDClient *client) { uint32_t flags; /* Client sends: [ 0 .. 3] client flags [ 0 .. 7] NBD_OPTS_MAGIC [ 8 .. 11] NBD option [12 .. 15] Data length ... Rest of request [ 0 .. 7] NBD_OPTS_MA...
false
qemu
26afa868dbd8641070c0a8d851b082b603c04fa1
static int nbd_negotiate_options(NBDClient *client) { uint32_t flags; if (nbd_negotiate_read(client->ioc, &flags, sizeof(flags)) != sizeof(flags)) { LOG("read failed"); return -EIO; } TRACE("Checking client flags"); be32_to_cpus(&fla...
{ "code": [], "line_no": [] }
static int FUNC_0(NBDClient *VAR_0) { uint32_t flags; if (nbd_negotiate_read(VAR_0->ioc, &flags, sizeof(flags)) != sizeof(flags)) { LOG("read failed"); return -EIO; } TRACE("Checking VAR_0 flags"); be32_to_cpus(&flags); if (flag...
[ "static int FUNC_0(NBDClient *VAR_0)\n{", "uint32_t flags;", "if (nbd_negotiate_read(VAR_0->ioc, &flags, sizeof(flags)) !=\nsizeof(flags)) {", "LOG(\"read failed\");", "return -EIO;", "}", "TRACE(\"Checking VAR_0 flags\");", "be32_to_cpus(&flags);", "if (flags != 0 && flags != NBD_FLAG_C_FIXED_NEWST...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [ 71, 73 ], [ 75 ], [ 7...
20,496
static void pxb_dev_realize(PCIDevice *dev, Error **errp) { if (pci_bus_is_express(dev->bus)) { error_setg(errp, "pxb devices cannot reside on a PCIe bus"); return; } pxb_dev_realize_common(dev, false, errp); }
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static void pxb_dev_realize(PCIDevice *dev, Error **errp) { if (pci_bus_is_express(dev->bus)) { error_setg(errp, "pxb devices cannot reside on a PCIe bus"); return; } pxb_dev_realize_common(dev, false, errp); }
{ "code": [], "line_no": [] }
static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1) { if (pci_bus_is_express(VAR_0->bus)) { error_setg(VAR_1, "pxb devices cannot reside on a PCIe bus"); return; } pxb_dev_realize_common(VAR_0, false, VAR_1); }
[ "static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{", "if (pci_bus_is_express(VAR_0->bus)) {", "error_setg(VAR_1, \"pxb devices cannot reside on a PCIe bus\");", "return;", "}", "pxb_dev_realize_common(VAR_0, false, VAR_1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
20,498
static void gen_arith_imm(DisasContext *ctx, uint32_t opc, int rt, int rs, int16_t imm) { target_ulong uimm = (target_long)imm; /* Sign extend to 32/64 bits */ const char *opn = "imm arith"; if (rt == 0 && opc != OPC_ADDI && opc != OPC_DADDI) { /* If no destination,...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static void gen_arith_imm(DisasContext *ctx, uint32_t opc, int rt, int rs, int16_t imm) { target_ulong uimm = (target_long)imm; const char *opn = "imm arith"; if (rt == 0 && opc != OPC_ADDI && opc != OPC_DADDI) { MIPS_DEBUG("NOP"); return; ...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, int VAR_2, int VAR_3, int16_t VAR_4) { target_ulong uimm = (target_long)VAR_4; const char *VAR_5 = "VAR_4 arith"; if (VAR_2 == 0 && VAR_1 != OPC_ADDI && VAR_1 != OPC_DADDI) { MIPS_DEBUG("NOP"); ...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1,\nint VAR_2, int VAR_3, int16_t VAR_4)\n{", "target_ulong uimm = (target_long)VAR_4;", "const char *VAR_5 = \"VAR_4 arith\";", "if (VAR_2 == 0 && VAR_1 != OPC_ADDI && VAR_1 != OPC_DADDI) {", "MIPS_DEBUG(\"NOP\");", "return;", "}", "switch (VAR_1)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ...
20,499
CPUCRISState *cpu_cris_init (const char *cpu_model) { CPUCRISState *env; static int tcg_initialized = 0; int i; env = qemu_mallocz(sizeof(CPUCRISState)); if (!env) return NULL; cpu_exec_init(env); cpu_reset(env); if (tcg_initialized) return env; tcg_initialized = 1; cpu_env = tcg_gl...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
CPUCRISState *cpu_cris_init (const char *cpu_model) { CPUCRISState *env; static int tcg_initialized = 0; int i; env = qemu_mallocz(sizeof(CPUCRISState)); if (!env) return NULL; cpu_exec_init(env); cpu_reset(env); if (tcg_initialized) return env; tcg_initialized = 1; cpu_env = tcg_gl...
{ "code": [], "line_no": [] }
CPUCRISState *FUNC_0 (const char *cpu_model) { CPUCRISState *env; static int VAR_0 = 0; int VAR_1; env = qemu_mallocz(sizeof(CPUCRISState)); if (!env) return NULL; cpu_exec_init(env); cpu_reset(env); if (VAR_0) return env; VAR_0 = 1; cpu_env = tcg_global_reg_new(TCG_TYPE_PTR, TCG_AR...
[ "CPUCRISState *FUNC_0 (const char *cpu_model)\n{", "CPUCRISState *env;", "static int VAR_0 = 0;", "int VAR_1;", "env = qemu_mallocz(sizeof(CPUCRISState));", "if (!env)\nreturn NULL;", "cpu_exec_init(env);", "cpu_reset(env);", "if (VAR_0)\nreturn env;", "VAR_0 = 1;", "cpu_env = tcg_global_reg_new...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27, 29 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47, 49, 51 ], [ 53, 55, 57 ], [ 59,...
20,500
static void pxa2xx_lcdc_dma0_redraw_rot180(PXA2xxLCDState *s, hwaddr addr, int *miny, int *maxy) { DisplaySurface *surface = qemu_console_surface(s->con); int src_width, dest_width; drawfn fn = NULL; if (s->dest_width) { fn = s->line_fn[s->transp][s->bpp]; } if (...
false
qemu
c1076c3e13a86140cc2ba29866512df8460cc7c2
static void pxa2xx_lcdc_dma0_redraw_rot180(PXA2xxLCDState *s, hwaddr addr, int *miny, int *maxy) { DisplaySurface *surface = qemu_console_surface(s->con); int src_width, dest_width; drawfn fn = NULL; if (s->dest_width) { fn = s->line_fn[s->transp][s->bpp]; } if (...
{ "code": [], "line_no": [] }
static void FUNC_0(PXA2xxLCDState *VAR_0, hwaddr VAR_1, int *VAR_2, int *VAR_3) { DisplaySurface *surface = qemu_console_surface(VAR_0->con); int VAR_4, VAR_5; drawfn fn = NULL; if (VAR_0->VAR_5) { fn = VAR_0->line_fn[VAR_0->transp][VAR_0->bpp]; } if (!fn) { ...
[ "static void FUNC_0(PXA2xxLCDState *VAR_0,\nhwaddr VAR_1, int *VAR_2, int *VAR_3)\n{", "DisplaySurface *surface = qemu_console_surface(VAR_0->con);", "int VAR_4, VAR_5;", "drawfn fn = NULL;", "if (VAR_0->VAR_5) {", "fn = VAR_0->line_fn[VAR_0->transp][VAR_0->bpp];", "}", "if (!fn) {", "return;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [...
20,501
static void gen_compute_branch(DisasContext *ctx, uint32_t opc, int r1, int r2 , int32_t constant , int32_t offset) { TCGv temp, temp2; int n; switch (opc) { /* SB-format jumps */ case OPC1_16_SB_J: case OPC1_32_B_J: gen_goto_tb(ctx, 0, ctx->pc + off...
false
qemu
250ef8c76861c756354ed1c67f0a4524e5339369
static void gen_compute_branch(DisasContext *ctx, uint32_t opc, int r1, int r2 , int32_t constant , int32_t offset) { TCGv temp, temp2; int n; switch (opc) { case OPC1_16_SB_J: case OPC1_32_B_J: gen_goto_tb(ctx, 0, ctx->pc + offset * 2); br...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, int VAR_2, int VAR_3 , int32_t VAR_4 , int32_t VAR_5) { TCGv temp, temp2; int VAR_6; switch (VAR_1) { case OPC1_16_SB_J: case OPC1_32_B_J: gen_goto_tb(VAR_0, 0, VAR_0->pc + VAR_5 * 2); ...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, int VAR_2,\nint VAR_3 , int32_t VAR_4 , int32_t VAR_5)\n{", "TCGv temp, temp2;", "int VAR_6;", "switch (VAR_1) {", "case OPC1_16_SB_J:\ncase OPC1_32_B_J:\ngen_goto_tb(VAR_0, 0, VAR_0->pc + VAR_5 * 2);", "break;", "case OPC1_32_B_CALL:\ncase OPC1_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19, 21 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 49, 51 ], [ 53 ], [ 55,...
20,502
static void ide_init1(IDEBus *bus, int unit, DriveInfo *dinfo) { static int drive_serial = 1; IDEState *s = &bus->ifs[unit]; s->bus = bus; s->unit = unit; s->drive_serial = drive_serial++; s->io_buffer = qemu_blockalign(s->bs, IDE_DMA_BUF_SECTORS*512 + 4); s->io_buffer_total_len = ...
false
qemu
870111c8ed95df62a101eae0acd08c84233a6341
static void ide_init1(IDEBus *bus, int unit, DriveInfo *dinfo) { static int drive_serial = 1; IDEState *s = &bus->ifs[unit]; s->bus = bus; s->unit = unit; s->drive_serial = drive_serial++; s->io_buffer = qemu_blockalign(s->bs, IDE_DMA_BUF_SECTORS*512 + 4); s->io_buffer_total_len = ...
{ "code": [], "line_no": [] }
static void FUNC_0(IDEBus *VAR_0, int VAR_1, DriveInfo *VAR_2) { static int VAR_3 = 1; IDEState *s = &VAR_0->ifs[VAR_1]; s->VAR_0 = VAR_0; s->VAR_1 = VAR_1; s->VAR_3 = VAR_3++; s->io_buffer = qemu_blockalign(s->bs, IDE_DMA_BUF_SECTORS*512 + 4); s->io_buffer_total_len = IDE_DMA_BUF_...
[ "static void FUNC_0(IDEBus *VAR_0, int VAR_1, DriveInfo *VAR_2)\n{", "static int VAR_3 = 1;", "IDEState *s = &VAR_0->ifs[VAR_1];", "s->VAR_0 = VAR_0;", "s->VAR_1 = VAR_1;", "s->VAR_3 = VAR_3++;", "s->io_buffer = qemu_blockalign(s->bs, IDE_DMA_BUF_SECTORS*512 + 4);", "s->io_buffer_total_len = IDE_DMA_B...
[ 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 ] ]
20,503
static void scsi_disk_apply_mode_select(SCSIDiskState *s, int page, uint8_t *p) { switch (page) { case MODE_PAGE_CACHING: bdrv_set_enable_write_cache(s->qdev.conf.bs, (p[0] & 4) != 0); break; default: break; } }
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void scsi_disk_apply_mode_select(SCSIDiskState *s, int page, uint8_t *p) { switch (page) { case MODE_PAGE_CACHING: bdrv_set_enable_write_cache(s->qdev.conf.bs, (p[0] & 4) != 0); break; default: break; } }
{ "code": [], "line_no": [] }
static void FUNC_0(SCSIDiskState *VAR_0, int VAR_1, uint8_t *VAR_2) { switch (VAR_1) { case MODE_PAGE_CACHING: bdrv_set_enable_write_cache(VAR_0->qdev.conf.bs, (VAR_2[0] & 4) != 0); break; default: break; } }
[ "static void FUNC_0(SCSIDiskState *VAR_0, int VAR_1, uint8_t *VAR_2)\n{", "switch (VAR_1) {", "case MODE_PAGE_CACHING:\nbdrv_set_enable_write_cache(VAR_0->qdev.conf.bs, (VAR_2[0] & 4) != 0);", "break;", "default:\nbreak;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ] ]
20,504
int av_opt_set_dict2(void *obj, AVDictionary **options, int search_flags) { AVDictionaryEntry *t = NULL; AVDictionary *tmp = NULL; int ret = 0; if (!options) return 0; while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) { ret = av_opt_set(obj, t->key, t->...
false
FFmpeg
f3ace85d8869c3dddd2d28d064002d0d912e3624
int av_opt_set_dict2(void *obj, AVDictionary **options, int search_flags) { AVDictionaryEntry *t = NULL; AVDictionary *tmp = NULL; int ret = 0; if (!options) return 0; while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) { ret = av_opt_set(obj, t->key, t->...
{ "code": [], "line_no": [] }
int FUNC_0(void *VAR_0, AVDictionary **VAR_1, int VAR_2) { AVDictionaryEntry *t = NULL; AVDictionary *tmp = NULL; int VAR_3 = 0; if (!VAR_1) return 0; while ((t = av_dict_get(*VAR_1, "", t, AV_DICT_IGNORE_SUFFIX))) { VAR_3 = av_opt_set(VAR_0, t->key, t->value, VAR_2); ...
[ "int FUNC_0(void *VAR_0, AVDictionary **VAR_1, int VAR_2)\n{", "AVDictionaryEntry *t = NULL;", "AVDictionary *tmp = NULL;", "int VAR_3 = 0;", "if (!VAR_1)\nreturn 0;", "while ((t = av_dict_get(*VAR_1, \"\", t, AV_DICT_IGNORE_SUFFIX))) {", "VAR_3 = av_opt_set(VAR_0, t->key, t->value, VAR_2);", "if (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
20,505
START_TEST(empty_input) { const char *empty = ""; QObject *obj = qobject_from_json(empty); fail_unless(obj == NULL); }
false
qemu
ef76dc59fa5203d146a2acf85a0ad5a5971a4824
START_TEST(empty_input) { const char *empty = ""; QObject *obj = qobject_from_json(empty); fail_unless(obj == NULL); }
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) { const char *VAR_1 = ""; QObject *obj = qobject_from_json(VAR_1); fail_unless(obj == NULL); }
[ "FUNC_0(VAR_0)\n{", "const char *VAR_1 = \"\";", "QObject *obj = qobject_from_json(VAR_1);", "fail_unless(obj == NULL);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
20,506
int net_client_init(const char *device, const char *p) { static const char * const fd_params[] = { "vlan", "name", "fd", NULL }; char buf[1024]; int vlan_id, ret; VLANState *vlan; char *name = NULL; vlan_id = 0; if (get_param_value(buf, sizeof(buf), "vlan", p)) { ...
false
qemu
0aa7a205c899c516d906673efbe9457f7af0dd3c
int net_client_init(const char *device, const char *p) { static const char * const fd_params[] = { "vlan", "name", "fd", NULL }; char buf[1024]; int vlan_id, ret; VLANState *vlan; char *name = NULL; vlan_id = 0; if (get_param_value(buf, sizeof(buf), "vlan", p)) { ...
{ "code": [], "line_no": [] }
int FUNC_0(const char *VAR_0, const char *VAR_1) { static const char * const VAR_2[] = { "vlan", "VAR_6", "VAR_14", NULL }; char VAR_3[1024]; int VAR_4, VAR_5; VLANState *vlan; char *VAR_6 = NULL; VAR_4 = 0; if (get_param_value(VAR_3, sizeof(VAR_3), "vlan", VAR_1)) { ...
[ "int FUNC_0(const char *VAR_0, const char *VAR_1)\n{", "static const char * const VAR_2[] = {", "\"vlan\", \"VAR_6\", \"VAR_14\", NULL\n};", "char VAR_3[1024];", "int VAR_4, VAR_5;", "VLANState *vlan;", "char *VAR_6 = NULL;", "VAR_4 = 0;", "if (get_param_value(VAR_3, sizeof(VAR_3), \"vlan\", VAR_1))...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
20,508
static int virtio_ccw_device_init(VirtioCcwDevice *dev, VirtIODevice *vdev) { unsigned int cssid = 0; unsigned int ssid = 0; unsigned int schid; unsigned int devno; bool have_devno = false; bool found = false; SubchDev *sch; int ret; int num; DeviceState *parent = DEVI...
false
qemu
0cd09c3a6cc2230ba38c462fc410b4acce59eb6f
static int virtio_ccw_device_init(VirtioCcwDevice *dev, VirtIODevice *vdev) { unsigned int cssid = 0; unsigned int ssid = 0; unsigned int schid; unsigned int devno; bool have_devno = false; bool found = false; SubchDev *sch; int ret; int num; DeviceState *parent = DEVI...
{ "code": [], "line_no": [] }
static int FUNC_0(VirtioCcwDevice *VAR_0, VirtIODevice *VAR_1) { unsigned int VAR_2 = 0; unsigned int VAR_3 = 0; unsigned int VAR_4; unsigned int VAR_5; bool have_devno = false; bool found = false; SubchDev *sch; int VAR_6; int VAR_7; DeviceState *parent = DEVICE(VAR_0...
[ "static int FUNC_0(VirtioCcwDevice *VAR_0, VirtIODevice *VAR_1)\n{", "unsigned int VAR_2 = 0;", "unsigned int VAR_3 = 0;", "unsigned int VAR_4;", "unsigned int VAR_5;", "bool have_devno = false;", "bool found = false;", "SubchDev *sch;", "int VAR_6;", "int VAR_7;", "DeviceState *parent = DEVICE(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 57 ], [ 59 ...
20,509
static void pc_init_isa(MachineState *machine) { pci_enabled = false; has_acpi_build = false; smbios_defaults = false; gigabyte_align = false; smbios_legacy_mode = true; has_reserved_memory = false; option_rom_has_mr = true; rom_file_has_mr = false; if (!machine->cpu_model)...
false
qemu
7102fa7073b2cefb33ab4012a11f15fbf297a74b
static void pc_init_isa(MachineState *machine) { pci_enabled = false; has_acpi_build = false; smbios_defaults = false; gigabyte_align = false; smbios_legacy_mode = true; has_reserved_memory = false; option_rom_has_mr = true; rom_file_has_mr = false; if (!machine->cpu_model)...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { pci_enabled = false; has_acpi_build = false; smbios_defaults = false; gigabyte_align = false; smbios_legacy_mode = true; has_reserved_memory = false; option_rom_has_mr = true; rom_file_has_mr = false; if (!VAR_0->cpu_model) { ...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "pci_enabled = false;", "has_acpi_build = false;", "smbios_defaults = false;", "gigabyte_align = false;", "smbios_legacy_mode = true;", "has_reserved_memory = false;", "option_rom_has_mr = true;", "rom_file_has_mr = false;", "if (!VAR_0->cpu_model) {",...
[ 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 ] ]
20,510
void qemu_aio_ref(void *p) { BlockAIOCB *acb = p; acb->refcnt++; }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
void qemu_aio_ref(void *p) { BlockAIOCB *acb = p; acb->refcnt++; }
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0) { BlockAIOCB *acb = VAR_0; acb->refcnt++; }
[ "void FUNC_0(void *VAR_0)\n{", "BlockAIOCB *acb = VAR_0;", "acb->refcnt++;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
20,511
matroska_read_header (AVFormatContext *s, AVFormatParameters *ap) { MatroskaDemuxContext *matroska = s->priv_data; char *doctype; int version, last_level, res = 0; uint32_t id; matroska->ctx = s; /* First read the EBML header. */ doctype = NULL; if ...
false
FFmpeg
262e2bee24194b88eba9e31edfc95ba3b39bc72f
matroska_read_header (AVFormatContext *s, AVFormatParameters *ap) { MatroskaDemuxContext *matroska = s->priv_data; char *doctype; int version, last_level, res = 0; uint32_t id; matroska->ctx = s; doctype = NULL; if ((res = ebml_read_header(matroska...
{ "code": [], "line_no": [] }
FUNC_0 (AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { MatroskaDemuxContext *matroska = VAR_0->priv_data; char *VAR_2; int VAR_3, VAR_4, VAR_5 = 0; uint32_t id; matroska->ctx = VAR_0; VAR_2 = NULL; if ((VAR_5 = ebml_read_header(matroska, &VAR...
[ "FUNC_0 (AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{", "MatroskaDemuxContext *matroska = VAR_0->priv_data;", "char *VAR_2;", "int VAR_3, VAR_4, VAR_5 = 0;", "uint32_t id;", "matroska->ctx = VAR_0;", "VAR_2 = NULL;", "if ((VAR_5 = ebml_read_header(matroska, &VAR_2, &VAR_3)) < 0)\nreturn V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51, 53 ], [...
20,512
void spapr_drc_detach(sPAPRDRConnector *drc) { trace_spapr_drc_detach(spapr_drc_index(drc)); drc->unplug_requested = true; if (drc->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) { trace_spapr_drc_awaiting_isolated(spapr_drc_index(drc)); return; } if (spapr_drc_t...
false
qemu
9d4c0f4f0a71e74fd7e04d73620268484d693adf
void spapr_drc_detach(sPAPRDRConnector *drc) { trace_spapr_drc_detach(spapr_drc_index(drc)); drc->unplug_requested = true; if (drc->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) { trace_spapr_drc_awaiting_isolated(spapr_drc_index(drc)); return; } if (spapr_drc_t...
{ "code": [], "line_no": [] }
void FUNC_0(sPAPRDRConnector *VAR_0) { trace_spapr_drc_detach(spapr_drc_index(VAR_0)); VAR_0->unplug_requested = true; if (VAR_0->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) { trace_spapr_drc_awaiting_isolated(spapr_drc_index(VAR_0)); return; } if (spapr_drc_t...
[ "void FUNC_0(sPAPRDRConnector *VAR_0)\n{", "trace_spapr_drc_detach(spapr_drc_index(VAR_0));", "VAR_0->unplug_requested = true;", "if (VAR_0->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) {", "trace_spapr_drc_awaiting_isolated(spapr_drc_index(VAR_0));", "return;", "}", "if (spapr_drc_type(VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
20,513
void cpu_outb(CPUState *env, pio_addr_t addr, uint8_t val) { LOG_IOPORT("outb: %04"FMT_pioaddr" %02"PRIx8"\n", addr, val); ioport_write(0, addr, val); #ifdef CONFIG_KQEMU if (env) env->last_io_time = cpu_get_time_fast(); #endif }
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
void cpu_outb(CPUState *env, pio_addr_t addr, uint8_t val) { LOG_IOPORT("outb: %04"FMT_pioaddr" %02"PRIx8"\n", addr, val); ioport_write(0, addr, val); #ifdef CONFIG_KQEMU if (env) env->last_io_time = cpu_get_time_fast(); #endif }
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, pio_addr_t VAR_1, uint8_t VAR_2) { LOG_IOPORT("outb: %04"FMT_pioaddr" %02"PRIx8"\n", VAR_1, VAR_2); ioport_write(0, VAR_1, VAR_2); #ifdef CONFIG_KQEMU if (VAR_0) VAR_0->last_io_time = cpu_get_time_fast(); #endif }
[ "void FUNC_0(CPUState *VAR_0, pio_addr_t VAR_1, uint8_t VAR_2)\n{", "LOG_IOPORT(\"outb: %04\"FMT_pioaddr\" %02\"PRIx8\"\\n\", VAR_1, VAR_2);", "ioport_write(0, VAR_1, VAR_2);", "#ifdef CONFIG_KQEMU\nif (VAR_0)\nVAR_0->last_io_time = cpu_get_time_fast();", "#endif\n}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11, 13 ], [ 15, 17 ] ]
20,514
void ff_id3v2_read_dict(AVIOContext *pb, AVDictionary **metadata, const char *magic, ID3v2ExtraMeta **extra_meta) { id3v2_read_internal(pb, metadata, NULL, magic, extra_meta); }
false
FFmpeg
5331773cc33ba26b9e26ace643d926219e46a17b
void ff_id3v2_read_dict(AVIOContext *pb, AVDictionary **metadata, const char *magic, ID3v2ExtraMeta **extra_meta) { id3v2_read_internal(pb, metadata, NULL, magic, extra_meta); }
{ "code": [], "line_no": [] }
void FUNC_0(AVIOContext *VAR_0, AVDictionary **VAR_1, const char *VAR_2, ID3v2ExtraMeta **VAR_3) { id3v2_read_internal(VAR_0, VAR_1, NULL, VAR_2, VAR_3); }
[ "void FUNC_0(AVIOContext *VAR_0, AVDictionary **VAR_1,\nconst char *VAR_2, ID3v2ExtraMeta **VAR_3)\n{", "id3v2_read_internal(VAR_0, VAR_1, NULL, VAR_2, VAR_3);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
20,515
int ff_lpc_calc_coefs(DSPContext *s, const int32_t *samples, int blocksize, int min_order, int max_order, int precision, int32_t coefs[][MAX_LPC_ORDER], int *shift, int use_lpc, int omethod, int max_shift, int zero_shift) { ...
false
FFmpeg
eabe8c7033945d8042ebb75b08daed24d8852a10
int ff_lpc_calc_coefs(DSPContext *s, const int32_t *samples, int blocksize, int min_order, int max_order, int precision, int32_t coefs[][MAX_LPC_ORDER], int *shift, int use_lpc, int omethod, int max_shift, int zero_shift) { ...
{ "code": [], "line_no": [] }
int FUNC_0(DSPContext *VAR_0, const int32_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int32_t VAR_6[][MAX_LPC_ORDER], int *VAR_7, int VAR_8, int VAR_9, int VAR_10, int VAR_11) { double VAR_12[MAX_LPC_ORDER+1]; ...
[ "int FUNC_0(DSPContext *VAR_0,\nconst int32_t *VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint32_t VAR_6[][MAX_LPC_ORDER], int *VAR_7, int VAR_8,\nint VAR_9, int VAR_10, int VAR_11)\n{", "double VAR_12[MAX_LPC_ORDER+1];", "double VAR_13[MAX_LPC_ORDER];", "double VAR_14[MAX_LPC_ORDER][MAX_LPC_ORDER];"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 57 ...
20,516
void xtensa_cpu_list(FILE *f, fprintf_function cpu_fprintf) { cpu_fprintf(f, "Available CPUs:\n" " Xtensa core\n"); }
false
qemu
dedc5eae2324b3c4a6d25af2138396aa5dc3d9e0
void xtensa_cpu_list(FILE *f, fprintf_function cpu_fprintf) { cpu_fprintf(f, "Available CPUs:\n" " Xtensa core\n"); }
{ "code": [], "line_no": [] }
void FUNC_0(FILE *VAR_0, fprintf_function VAR_1) { VAR_1(VAR_0, "Available CPUs:\n" " Xtensa core\n"); }
[ "void FUNC_0(FILE *VAR_0, fprintf_function VAR_1)\n{", "VAR_1(VAR_0, \"Available CPUs:\\n\"\n\" Xtensa core\\n\");", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
20,517
static inline void gen_jcc1_noeob(DisasContext *s, int b, int l1) { CCPrepare cc = gen_prepare_cc(s, b, cpu_T[0]); if (cc.mask != -1) { tcg_gen_andi_tl(cpu_T[0], cc.reg, cc.mask); cc.reg = cpu_T[0]; } if (cc.use_reg2) { tcg_gen_brcond_tl(cc.cond, cc.reg, cc.reg2, l1); ...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static inline void gen_jcc1_noeob(DisasContext *s, int b, int l1) { CCPrepare cc = gen_prepare_cc(s, b, cpu_T[0]); if (cc.mask != -1) { tcg_gen_andi_tl(cpu_T[0], cc.reg, cc.mask); cc.reg = cpu_T[0]; } if (cc.use_reg2) { tcg_gen_brcond_tl(cc.cond, cc.reg, cc.reg2, l1); ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2) { CCPrepare cc = gen_prepare_cc(VAR_0, VAR_1, cpu_T[0]); if (cc.mask != -1) { tcg_gen_andi_tl(cpu_T[0], cc.reg, cc.mask); cc.reg = cpu_T[0]; } if (cc.use_reg2) { tcg_gen_brcond_tl(cc.cond, cc.reg, cc.r...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2)\n{", "CCPrepare cc = gen_prepare_cc(VAR_0, VAR_1, cpu_T[0]);", "if (cc.mask != -1) {", "tcg_gen_andi_tl(cpu_T[0], cc.reg, cc.mask);", "cc.reg = cpu_T[0];", "}", "if (cc.use_reg2) {", "tcg_gen_brcond_tl(cc.cond, cc.reg, cc.reg2, VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
20,519
static void *rcu_q_reader(void *arg) { long long j, n_reads_local = 0; struct list_element *el; *(struct rcu_reader_data **)arg = &rcu_reader; atomic_inc(&nthreadsrunning); while (goflag == GOFLAG_INIT) { g_usleep(1000); } while (goflag == GOFLAG_RUN) { rcu_read...
false
qemu
8a5956ad6392f115521dad774055c737c49fb0dd
static void *rcu_q_reader(void *arg) { long long j, n_reads_local = 0; struct list_element *el; *(struct rcu_reader_data **)arg = &rcu_reader; atomic_inc(&nthreadsrunning); while (goflag == GOFLAG_INIT) { g_usleep(1000); } while (goflag == GOFLAG_RUN) { rcu_read...
{ "code": [], "line_no": [] }
static void *FUNC_0(void *VAR_0) { long long VAR_1, VAR_2 = 0; struct list_element *VAR_3; *(struct rcu_reader_data **)VAR_0 = &rcu_reader; atomic_inc(&nthreadsrunning); while (goflag == GOFLAG_INIT) { g_usleep(1000); } while (goflag == GOFLAG_RUN) { rcu_read_lo...
[ "static void *FUNC_0(void *VAR_0)\n{", "long long VAR_1, VAR_2 = 0;", "struct list_element *VAR_3;", "*(struct rcu_reader_data **)VAR_0 = &rcu_reader;", "atomic_inc(&nthreadsrunning);", "while (goflag == GOFLAG_INIT) {", "g_usleep(1000);", "}", "while (goflag == GOFLAG_RUN) {", "rcu_read_lock();",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47...
20,521
static ssize_t local_llistxattr(FsContext *ctx, const char *path, void *value, size_t size) { ssize_t retval; ssize_t actual_len = 0; char *orig_value, *orig_value_start; char *temp_value, *temp_value_start; ssize_t xattr_len, parsed_len = 0, attr_len; i...
false
qemu
fc22118d9bb56ec71655b936a29513c140e6c289
static ssize_t local_llistxattr(FsContext *ctx, const char *path, void *value, size_t size) { ssize_t retval; ssize_t actual_len = 0; char *orig_value, *orig_value_start; char *temp_value, *temp_value_start; ssize_t xattr_len, parsed_len = 0, attr_len; i...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(FsContext *ctx, const char *path, void *value, size_t size) { ssize_t retval; ssize_t actual_len = 0; char *VAR_0, *VAR_1; char *VAR_2, *VAR_3; ssize_t xattr_len, parsed_len = 0, attr_len; if (ctx->fs_sm != SM_MAPPED) { ret...
[ "static ssize_t FUNC_0(FsContext *ctx, const char *path,\nvoid *value, size_t size)\n{", "ssize_t retval;", "ssize_t actual_len = 0;", "char *VAR_0, *VAR_1;", "char *VAR_2, *VAR_3;", "ssize_t xattr_len, parsed_len = 0, attr_len;", "if (ctx->fs_sm != SM_MAPPED) {", "return llistxattr(rpath(ctx, path), ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 35 ], [ 37 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ], [...
20,522
static void idct(uint8_t *dst, int dst_linesize, int src[64]) { int i, j, k; double tmp[64]; for (i = 0; i < 8; i++) { for (j = 0; j < 8; j++) { double sum = 0.0; for (k = 0; k < 8; k++) sum += c[k*8+j] * src[8*i+k]; tmp[8*i+j] = sum...
false
FFmpeg
fa5d299496c15e992240914ae05b92d9b74eb3c4
static void idct(uint8_t *dst, int dst_linesize, int src[64]) { int i, j, k; double tmp[64]; for (i = 0; i < 8; i++) { for (j = 0; j < 8; j++) { double sum = 0.0; for (k = 0; k < 8; k++) sum += c[k*8+j] * src[8*i+k]; tmp[8*i+j] = sum...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2[64]) { int VAR_3, VAR_4, VAR_5; double VAR_6[64]; for (VAR_3 = 0; VAR_3 < 8; VAR_3++) { for (VAR_4 = 0; VAR_4 < 8; VAR_4++) { double VAR_8 = 0.0; for (VAR_5 = 0; VAR_5 < 8; VAR_5++) VAR_8 += c...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2[64])\n{", "int VAR_3, VAR_4, VAR_5;", "double VAR_6[64];", "for (VAR_3 = 0; VAR_3 < 8; VAR_3++) {", "for (VAR_4 = 0; VAR_4 < 8; VAR_4++) {", "double VAR_8 = 0.0;", "for (VAR_5 = 0; VAR_5 < 8; VAR_5++)", "VAR_8 += c[VAR_5*8+VAR_4] * VAR_2[8*VAR_3...
[ 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 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
20,523
static int usb_hid_handle_control(USBDevice *dev, int request, int value, int index, int length, uint8_t *data) { USBHIDState *s = (USBHIDState *)dev; int ret; ret = usb_desc_handle_control(dev, request, value, index, length, data); if (ret >= 0) { retu...
false
qemu
a980a065fb5e86d6dec337e6cb6ff432f1a143c9
static int usb_hid_handle_control(USBDevice *dev, int request, int value, int index, int length, uint8_t *data) { USBHIDState *s = (USBHIDState *)dev; int ret; ret = usb_desc_handle_control(dev, request, value, index, length, data); if (ret >= 0) { retu...
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, uint8_t *VAR_5) { USBHIDState *s = (USBHIDState *)VAR_0; int VAR_6; VAR_6 = usb_desc_handle_control(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5); if (VAR_6 >= 0) { return VAR_6...
[ "static int FUNC_0(USBDevice *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, uint8_t *VAR_5)\n{", "USBHIDState *s = (USBHIDState *)VAR_0;", "int VAR_6;", "VAR_6 = usb_desc_handle_control(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5);", "if (VAR_6 >= 0) {", "return VAR_6;", "}", "VAR_6 = 0;", "switc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 49 ...
20,524
static int protocol_client_auth(VncState *vs, char *data, size_t len) { /* We only advertise 1 auth scheme at a time, so client * must pick the one we sent. Verify this */ if (data[0] != vs->auth) { /* Reject auth */ VNC_DEBUG("Reject auth %d\n", (int)data[0]); vnc_write_u32(vs, 1); ...
false
qemu
a26c97adce76e23ab4ad2ad152d77291ad495484
static int protocol_client_auth(VncState *vs, char *data, size_t len) { if (data[0] != vs->auth) { VNC_DEBUG("Reject auth %d\n", (int)data[0]); vnc_write_u32(vs, 1); if (vs->minor >= 8) { static const char err[] = "Authentication failed"; vnc_write_u32(vs, ...
{ "code": [], "line_no": [] }
static int FUNC_0(VncState *VAR_0, char *VAR_1, size_t VAR_2) { if (VAR_1[0] != VAR_0->auth) { VNC_DEBUG("Reject auth %d\n", (int)VAR_1[0]); vnc_write_u32(VAR_0, 1); if (VAR_0->minor >= 8) { static const char VAR_4[] = "Authentication failed"; vnc_write_u32...
[ "static int FUNC_0(VncState *VAR_0, char *VAR_1, size_t VAR_2)\n{", "if (VAR_1[0] != VAR_0->auth) {", "VNC_DEBUG(\"Reject auth %d\\n\", (int)VAR_1[0]);", "vnc_write_u32(VAR_0, 1);", "if (VAR_0->minor >= 8) {", "static const char VAR_4[] = \"Authentication failed\";", "vnc_write_u32(VAR_0, sizeof(VAR_4))...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 4...
20,525
static int write_elf32_load(DumpState *s, MemoryMapping *memory_mapping, int phdr_index, target_phys_addr_t offset) { Elf32_Phdr phdr; int ret; int endian = s->dump_info.d_endian; memset(&phdr, 0, sizeof(Elf32_Phdr)); phdr.p_type = cpu_convert_to_target32(PT_LOAD...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static int write_elf32_load(DumpState *s, MemoryMapping *memory_mapping, int phdr_index, target_phys_addr_t offset) { Elf32_Phdr phdr; int ret; int endian = s->dump_info.d_endian; memset(&phdr, 0, sizeof(Elf32_Phdr)); phdr.p_type = cpu_convert_to_target32(PT_LOAD...
{ "code": [], "line_no": [] }
static int FUNC_0(DumpState *VAR_0, MemoryMapping *VAR_1, int VAR_2, target_phys_addr_t VAR_3) { Elf32_Phdr phdr; int VAR_4; int VAR_5 = VAR_0->dump_info.d_endian; memset(&phdr, 0, sizeof(Elf32_Phdr)); phdr.p_type = cpu_convert_to_target32(PT_LOAD, VAR_5); p...
[ "static int FUNC_0(DumpState *VAR_0, MemoryMapping *VAR_1,\nint VAR_2, target_phys_addr_t VAR_3)\n{", "Elf32_Phdr phdr;", "int VAR_4;", "int VAR_5 = VAR_0->dump_info.d_endian;", "memset(&phdr, 0, sizeof(Elf32_Phdr));", "phdr.p_type = cpu_convert_to_target32(PT_LOAD, VAR_5);", "phdr.p_offset = cpu_conver...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
20,526
static void rtas_nvram_fetch(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { sPAPRNVRAM *nvram = spapr->nvram; hwaddr offset, buffer, len;...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void rtas_nvram_fetch(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { sPAPRNVRAM *nvram = spapr->nvram; hwaddr offset, buffer, len;...
{ "code": [], "line_no": [] }
static void FUNC_0(PowerPCCPU *VAR_0, sPAPREnvironment *VAR_1, uint32_t VAR_2, uint32_t VAR_3, target_ulong VAR_4, uint32_t VAR_5, target_ulong VAR_6) { sPAPRNVRAM *nvram = VAR_1->nvram; hwaddr offset, buffer, len; ...
[ "static void FUNC_0(PowerPCCPU *VAR_0, sPAPREnvironment *VAR_1,\nuint32_t VAR_2, uint32_t VAR_3,\ntarget_ulong VAR_4,\nuint32_t VAR_5, target_ulong VAR_6)\n{", "sPAPRNVRAM *nvram = VAR_1->nvram;", "hwaddr offset, buffer, len;", "int VAR_7;", "void *VAR_8;", "if ((VAR_3 != 3) || (VAR_5 != 2)) {", "rtas_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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ...
20,527
void address_space_init(AddressSpace *as, MemoryRegion *root) { memory_region_transaction_begin(); as->root = root; as->current_map = g_new(FlatView, 1); flatview_init(as->current_map); as->ioeventfd_nb = 0; as->ioeventfds = NULL; QTAILQ_INSERT_TAIL(&address_spaces, as, address_space...
false
qemu
f43793c7caab49c68b41c3b8524fc35b4c206856
void address_space_init(AddressSpace *as, MemoryRegion *root) { memory_region_transaction_begin(); as->root = root; as->current_map = g_new(FlatView, 1); flatview_init(as->current_map); as->ioeventfd_nb = 0; as->ioeventfds = NULL; QTAILQ_INSERT_TAIL(&address_spaces, as, address_space...
{ "code": [], "line_no": [] }
void FUNC_0(AddressSpace *VAR_0, MemoryRegion *VAR_1) { memory_region_transaction_begin(); VAR_0->VAR_1 = VAR_1; VAR_0->current_map = g_new(FlatView, 1); flatview_init(VAR_0->current_map); VAR_0->ioeventfd_nb = 0; VAR_0->ioeventfds = NULL; QTAILQ_INSERT_TAIL(&address_spaces, VAR_0, a...
[ "void FUNC_0(AddressSpace *VAR_0, MemoryRegion *VAR_1)\n{", "memory_region_transaction_begin();", "VAR_0->VAR_1 = VAR_1;", "VAR_0->current_map = g_new(FlatView, 1);", "flatview_init(VAR_0->current_map);", "VAR_0->ioeventfd_nb = 0;", "VAR_0->ioeventfds = NULL;", "QTAILQ_INSERT_TAIL(&address_spaces, VAR...
[ 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 ] ]
20,528
static int virtio_net_init_pci(PCIDevice *pci_dev) { VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); VirtIODevice *vdev; vdev = virtio_net_init(&pci_dev->qdev, &proxy->nic, &proxy->net); vdev->nvectors = proxy->nvectors; virtio_init_pci(proxy, vdev, ...
false
qemu
e75ccf2c033fb0503d6cb7ddd0fd1dfa0aa4fc16
static int virtio_net_init_pci(PCIDevice *pci_dev) { VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); VirtIODevice *vdev; vdev = virtio_net_init(&pci_dev->qdev, &proxy->nic, &proxy->net); vdev->nvectors = proxy->nvectors; virtio_init_pci(proxy, vdev, ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0); VirtIODevice *vdev; vdev = virtio_net_init(&VAR_0->qdev, &proxy->nic, &proxy->net); vdev->nvectors = proxy->nvectors; virtio_init_pci(proxy, vdev, PCI_VENDOR_ID_REDHA...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0);", "VirtIODevice *vdev;", "vdev = virtio_net_init(&VAR_0->qdev, &proxy->nic, &proxy->net);", "vdev->nvectors = proxy->nvectors;", "virtio_init_pci(proxy, vdev,\nPCI_VENDOR_ID_REDHAT_QUMRANET,\nPCI_DE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17, 19, 21, 23, 25 ], [ 31 ], [ 33 ], [ 35 ] ]
20,529
static void z2_init(MachineState *machine) { const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_filename; MemoryRegion *address_space_mem = get_s...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void z2_init(MachineState *machine) { const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_filename; MemoryRegion *address_space_mem = get_s...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; MemoryRegion *address_space_mem = get_system_memory(); uint32_t sector_len = 0x10000; PXA2xxState *mpu; ...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "MemoryRegion *address_space_mem = get_system_memory();", "uint32_t sector_len = 0x10000;", "PXA2xxState *mp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 45, 47 ], [ 49, 51 ...
20,533
static int stdio_fclose(void *opaque) { QEMUFileStdio *s = opaque; int ret = 0; if (s->file->ops->put_buffer || s->file->ops->writev_buffer) { int fd = fileno(s->stdio_file); struct stat st; ret = fstat(fd, &st); if (ret == 0 && S_ISREG(st.st_mode)) { ...
false
qemu
532bc727c34665370ab0ba94a9536fd3a6c2c5bc
static int stdio_fclose(void *opaque) { QEMUFileStdio *s = opaque; int ret = 0; if (s->file->ops->put_buffer || s->file->ops->writev_buffer) { int fd = fileno(s->stdio_file); struct stat st; ret = fstat(fd, &st); if (ret == 0 && S_ISREG(st.st_mode)) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0) { QEMUFileStdio *s = VAR_0; int VAR_1 = 0; if (s->file->ops->put_buffer || s->file->ops->writev_buffer) { int VAR_2 = fileno(s->stdio_file); struct stat VAR_3; VAR_1 = fstat(VAR_2, &VAR_3); if (VAR_1 == 0 && S_ISREG(VAR_3.st_mode)) {...
[ "static int FUNC_0(void *VAR_0)\n{", "QEMUFileStdio *s = VAR_0;", "int VAR_1 = 0;", "if (s->file->ops->put_buffer || s->file->ops->writev_buffer) {", "int VAR_2 = fileno(s->stdio_file);", "struct stat VAR_3;", "VAR_1 = fstat(VAR_2, &VAR_3);", "if (VAR_1 == 0 && S_ISREG(VAR_3.st_mode)) {", "VAR_1 = f...
[ 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 ], [ 19 ], [ 21 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
20,535
static int decode_cce(AACContext * ac, GetBitContext * gb, ChannelElement * che) { int num_gain = 0; int c, g, sfb, ret, idx = 0; int sign; float scale; SingleChannelElement * sce = &che->ch[0]; ChannelCoupling * coup = &che->coup; coup->coupling_point = 2*get_bits1(gb); co...
false
FFmpeg
341b28c0d274ade7902588697ec1d8bdfe449185
static int decode_cce(AACContext * ac, GetBitContext * gb, ChannelElement * che) { int num_gain = 0; int c, g, sfb, ret, idx = 0; int sign; float scale; SingleChannelElement * sce = &che->ch[0]; ChannelCoupling * coup = &che->coup; coup->coupling_point = 2*get_bits1(gb); co...
{ "code": [], "line_no": [] }
static int FUNC_0(AACContext * VAR_0, GetBitContext * VAR_1, ChannelElement * VAR_2) { int VAR_3 = 0; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0; int VAR_9; float VAR_10; SingleChannelElement * sce = &VAR_2->ch[0]; ChannelCoupling * coup = &VAR_2->coup; coup->coupling_point = 2*g...
[ "static int FUNC_0(AACContext * VAR_0, GetBitContext * VAR_1, ChannelElement * VAR_2) {", "int VAR_3 = 0;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0;", "int VAR_9;", "float VAR_10;", "SingleChannelElement * sce = &VAR_2->ch[0];", "ChannelCoupling * coup = &VAR_2->coup;", "coup->coupling_point = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
20,537
void ff_avg_dirac_pixels32_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h) { if (h&3) { ff_avg_dirac_pixels32_c(dst, src, stride, h); } else { ff_avg_pixels16_sse2(dst , src[0] , stride, h); ff_avg_pixels16_sse2(dst+16, src[0]+16, stride, h); } }
false
FFmpeg
6a4832caaede15e3d918b1408ff83fe30324507b
void ff_avg_dirac_pixels32_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h) { if (h&3) { ff_avg_dirac_pixels32_c(dst, src, stride, h); } else { ff_avg_pixels16_sse2(dst , src[0] , stride, h); ff_avg_pixels16_sse2(dst+16, src[0]+16, stride, h); } }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1[5], int VAR_2, int VAR_3) { if (VAR_3&3) { ff_avg_dirac_pixels32_c(VAR_0, VAR_1, VAR_2, VAR_3); } else { ff_avg_pixels16_sse2(VAR_0 , VAR_1[0] , VAR_2, VAR_3); ff_avg_pixels16_sse2(VAR_0+16, VAR_1[0]+16, VAR_2, VAR_3); } }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1[5], int VAR_2, int VAR_3)\n{", "if (VAR_3&3) {", "ff_avg_dirac_pixels32_c(VAR_0, VAR_1, VAR_2, VAR_3);", "} else {", "ff_avg_pixels16_sse2(VAR_0 , VAR_1[0] , VAR_2, VAR_3);", "ff_avg_pixels16_sse2(VAR_0+16, VAR_1[0]+16, VAR_2, VAR_3);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
20,538
static int ra288_decode_frame(AVCodecContext * avctx, void *data, int *data_size, const uint8_t * buf, int buf_size) { int16_t *out = data; int i, j; RA288Context *ractx = avctx->priv_data; GetBitContext gb; if (buf_size < avctx->...
false
FFmpeg
e3751aa6ec8147ab7ca2649d4daadf8d4dce27d5
static int ra288_decode_frame(AVCodecContext * avctx, void *data, int *data_size, const uint8_t * buf, int buf_size) { int16_t *out = data; int i, j; RA288Context *ractx = avctx->priv_data; GetBitContext gb; if (buf_size < avctx->...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2, const uint8_t * VAR_3, int VAR_4) { int16_t *out = VAR_1; int VAR_5, VAR_6; RA288Context *ractx = VAR_0->priv_data; GetBitContext gb; if (VAR_4 < VAR_0->block_alig...
[ "static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1,\nint *VAR_2, const uint8_t * VAR_3,\nint VAR_4)\n{", "int16_t *out = VAR_1;", "int VAR_5, VAR_6;", "RA288Context *ractx = VAR_0->priv_data;", "GetBitContext gb;", "if (VAR_4 < VAR_0->block_align) {", "av_log(VAR_0, AV_LOG_ERROR,\n\"Error! Input buf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 55, 57 ], [...
20,539
void ff_avg_h264_qpel8_mc31_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_8x8_msa(src - 2, src - (stride * 2) + sizeof(uint8_t), stride, dst, stride); }
false
FFmpeg
1181d93231e9b807965724587d363c1cfd5a1d0d
void ff_avg_h264_qpel8_mc31_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_8x8_msa(src - 2, src - (stride * 2) + sizeof(uint8_t), stride, dst, stride); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_hv_qrt_and_aver_dst_8x8_msa(VAR_1 - 2, VAR_1 - (VAR_2 * 2) + sizeof(uint8_t), VAR_2, VAR_0, VAR_2); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_hv_qrt_and_aver_dst_8x8_msa(VAR_1 - 2,\nVAR_1 - (VAR_2 * 2) +\nsizeof(uint8_t), VAR_2, VAR_0, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11 ], [ 13 ] ]
20,540
static void output_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost) { int ret = 0; /* apply the output bitstream filters, if any */ if (ost->nb_bitstream_filters) { int idx; ret = av_bsf_send_packet(ost->bsf_ctx[0], pkt); if (ret < 0) goto finish; ...
false
FFmpeg
c4be288fdbe1993110f1abd28ea57587cb2bc221
static void output_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost) { int ret = 0; if (ost->nb_bitstream_filters) { int idx; ret = av_bsf_send_packet(ost->bsf_ctx[0], pkt); if (ret < 0) goto finish; idx = 1; while (idx) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(OutputFile *VAR_0, AVPacket *VAR_1, OutputStream *VAR_2) { int VAR_3 = 0; if (VAR_2->nb_bitstream_filters) { int VAR_4; VAR_3 = av_bsf_send_packet(VAR_2->bsf_ctx[0], VAR_1); if (VAR_3 < 0) goto finish; VAR_4 = 1; while (...
[ "static void FUNC_0(OutputFile *VAR_0, AVPacket *VAR_1, OutputStream *VAR_2)\n{", "int VAR_3 = 0;", "if (VAR_2->nb_bitstream_filters) {", "int VAR_4;", "VAR_3 = av_bsf_send_packet(VAR_2->bsf_ctx[0], VAR_1);", "if (VAR_3 < 0)\ngoto finish;", "VAR_4 = 1;", "while (VAR_4) {", "VAR_3 = av_bsf_receive_pa...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 55 ], [ 57 ], [ 59, 61 ], [ 6...
20,542
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = data; float new_aspect; int buf_index; ...
false
FFmpeg
8b92b792d18d7dc3d258f440bb0493af4e973516
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = data; float new_aspect; int buf_index; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { H264Context *h = VAR_0->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = VAR_1; float VAR_5; int VAR_6; s->flags= VAR_0->...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "H264Context *h = VAR_0->priv_data;", "MpegEncContext *s = &h->s;", "AVFrame *pict = VAR_1;", "float VAR_5;", "int VAR_6;", "s->flags= VAR_0->flags;", "*VAR_2 = 0;", "if (VAR_4 == 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 51 ], [ 55 ], [ 57, 59 ], [ 61 ...
20,543
static int slice_decode_thread(AVCodecContext *c, void *arg){ MpegEncContext *s= *(void**)arg; const uint8_t *buf= s->gb.buffer; int mb_y= s->start_mb_y; const int field_pic= s->picture_structure != PICT_FRAME; s->error_count= (3*(s->end_mb_y - s->start_mb_y)*s->mb_width) >> field_pic; ...
false
FFmpeg
add41decd94b2d3581a3715ba10f27168b8cdb1b
static int slice_decode_thread(AVCodecContext *c, void *arg){ MpegEncContext *s= *(void**)arg; const uint8_t *buf= s->gb.buffer; int mb_y= s->start_mb_y; const int field_pic= s->picture_structure != PICT_FRAME; s->error_count= (3*(s->end_mb_y - s->start_mb_y)*s->mb_width) >> field_pic; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1){ MpegEncContext *s= *(void**)VAR_1; const uint8_t *VAR_2= s->gb.buffer; int VAR_3= s->start_mb_y; const int VAR_4= s->picture_structure != PICT_FRAME; s->error_count= (3*(s->end_mb_y - s->start_mb_y)*s->mb_width) >> VAR_4; for(;;){ ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1){", "MpegEncContext *s= *(void**)VAR_1;", "const uint8_t *VAR_2= s->gb.buffer;", "int VAR_3= s->start_mb_y;", "const int VAR_4= s->picture_structure != PICT_FRAME;", "s->error_count= (3*(s->end_mb_y - s->start_mb_y)*s->mb_width) >> VAR_4;", "for(;;){...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 53 ], [ 55 ], [...
20,544
void ff_put_h264_qpel16_mc12_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_midh_qrt_16w_msa(src - (2 * stride) - 2, stride, dst, stride, 16, 0); }
false
FFmpeg
e549933a270dd2cfc36f2cf9bb6b29acf3dc6d08
void ff_put_h264_qpel16_mc12_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_midh_qrt_16w_msa(src - (2 * stride) - 2, stride, dst, stride, 16, 0); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_midh_qrt_16w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 16, 0); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_midh_qrt_16w_msa(VAR_1 - (2 * VAR_2) - 2,\nVAR_2, VAR_0, VAR_2, 16, 0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
20,545
static void filter_mb_edgech( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int qp ) { int i; const int index_a = qp + h->slice_alpha_c0_offset; const int alpha = (alpha_table+52)[index_a]; const int beta = (beta_table+52)[qp + h->slice_beta_offset]; if( bS[0] < 4 ) { int...
false
FFmpeg
aac8b76983e340bc744d3542d676f72efa3b474f
static void filter_mb_edgech( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int qp ) { int i; const int index_a = qp + h->slice_alpha_c0_offset; const int alpha = (alpha_table+52)[index_a]; const int beta = (beta_table+52)[qp + h->slice_beta_offset]; if( bS[0] < 4 ) { int...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) { int VAR_5; const int VAR_6 = VAR_4 + VAR_0->slice_alpha_c0_offset; const int VAR_7 = (alpha_table+52)[VAR_6]; const int VAR_8 = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset]; if( VAR_3[0] <...
[ "static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) {", "int VAR_5;", "const int VAR_6 = VAR_4 + VAR_0->slice_alpha_c0_offset;", "const int VAR_7 = (alpha_table+52)[VAR_6];", "const int VAR_8 = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset];", "if( VAR_3[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 ] ]
20,546
static int vmdk_open_vmdk4(BlockDriverState *bs, BlockDriverState *file, int flags, Error **errp) { int ret; uint32_t magic; uint32_t l1_size, l1_entry_sectors; VMDK4Header header; VmdkExtent *extent; BDRVVmdkState *s = bs->opaque; ...
false
qemu
a646836784a0fc50fee6f9a0d3fb968289714128
static int vmdk_open_vmdk4(BlockDriverState *bs, BlockDriverState *file, int flags, Error **errp) { int ret; uint32_t magic; uint32_t l1_size, l1_entry_sectors; VMDK4Header header; VmdkExtent *extent; BDRVVmdkState *s = bs->opaque; ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1, int VAR_2, Error **VAR_3) { int VAR_4; uint32_t magic; uint32_t l1_size, l1_entry_sectors; VMDK4Header header; VmdkExtent *extent; BDRVVmdkState *s = VAR_0->opaque; ...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nBlockDriverState *VAR_1,\nint VAR_2, Error **VAR_3)\n{", "int VAR_4;", "uint32_t magic;", "uint32_t l1_size, l1_entry_sectors;", "VMDK4Header header;", "VmdkExtent *extent;", "BDRVVmdkState *s = VAR_0->opaque;", "int64_t l1_backup_offset = 0;", "VAR_4 = b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
20,547
dma_write(void *opaque, target_phys_addr_t addr, uint64_t val64, unsigned int size) { struct fs_dma_ctrl *ctrl = opaque; uint32_t value = val64; int c; if (size != 4) { dma_winvalid(opaque, addr, value); } /* Make addr relative to this channel and bounded to nr regs. */ c = fs_c...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
dma_write(void *opaque, target_phys_addr_t addr, uint64_t val64, unsigned int size) { struct fs_dma_ctrl *ctrl = opaque; uint32_t value = val64; int c; if (size != 4) { dma_winvalid(opaque, addr, value); } c = fs_channel(addr); addr &= 0xff; addr >>= 2; ...
{ "code": [], "line_no": [] }
FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned int VAR_3) { struct fs_dma_ctrl *VAR_4 = VAR_0; uint32_t value = VAR_2; int VAR_5; if (VAR_3 != 4) { dma_winvalid(VAR_0, VAR_1, value); } VAR_5 = fs_channel(VAR_1); VAR_1 &= 0xff; VAR_1 >>= ...
[ "FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned int VAR_3)\n{", "struct fs_dma_ctrl *VAR_4 = VAR_0;", "uint32_t value = VAR_2;", "int VAR_5;", "if (VAR_3 != 4) {", "dma_winvalid(VAR_0, VAR_1, value);", "}", "VAR_5 = fs_channel(VAR_1);", "VAR_1 &= 0xff;", "VAR_1 >>= 2;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51, 55, 57,...
20,551
static int scsi_generic_initfn(SCSIDevice *dev) { SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, dev); int sg_version; struct sg_scsi_id scsiid; if (!s->qdev.conf.dinfo || !s->qdev.conf.dinfo->bdrv) { error_report("scsi-generic: drive property not set"); return -1; ...
false
qemu
f8b6cc0070aab8b75bd082582c829be1353f395f
static int scsi_generic_initfn(SCSIDevice *dev) { SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, dev); int sg_version; struct sg_scsi_id scsiid; if (!s->qdev.conf.dinfo || !s->qdev.conf.dinfo->bdrv) { error_report("scsi-generic: drive property not set"); return -1; ...
{ "code": [], "line_no": [] }
static int FUNC_0(SCSIDevice *VAR_0) { SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, VAR_0); int VAR_1; struct sg_scsi_id VAR_2; if (!s->qdev.conf.dinfo || !s->qdev.conf.dinfo->bdrv) { error_report("scsi-generic: drive property not set"); return -1; } s->bs =...
[ "static int FUNC_0(SCSIDevice *VAR_0)\n{", "SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, VAR_0);", "int VAR_1;", "struct sg_scsi_id VAR_2;", "if (!s->qdev.conf.dinfo || !s->qdev.conf.dinfo->bdrv) {", "error_report(\"scsi-generic: drive property not set\");", "return -1;", "}", "s->bs = 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [ 55 ], [...
20,552
void memory_region_add_subregion_overlap(MemoryRegion *mr, hwaddr offset, MemoryRegion *subregion, unsigned priority) { subregion->may_overlap = true; subregion->priority = priority; ...
false
qemu
a1ff8ae0666ffcbe78ae7e28812dd30db6bb7131
void memory_region_add_subregion_overlap(MemoryRegion *mr, hwaddr offset, MemoryRegion *subregion, unsigned priority) { subregion->may_overlap = true; subregion->priority = priority; ...
{ "code": [], "line_no": [] }
void FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1, MemoryRegion *VAR_2, unsigned VAR_3) { VAR_2->may_overlap = true; VAR_2->VAR_3 = VAR_3; memory_region_add_subregion_common(VAR_0, V...
[ "void FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nMemoryRegion *VAR_2,\nunsigned VAR_3)\n{", "VAR_2->may_overlap = true;", "VAR_2->VAR_3 = VAR_3;", "memory_region_add_subregion_common(VAR_0, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
20,554
static int mpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { Mpeg1Context *s = avctx->priv_data; AVFrame *picture = data; MpegEncContext *s2 = &s->mpeg_enc_ctx; dprintf(avctx, "fill_bu...
false
FFmpeg
a4c7a5ea27050a28625eabf1ba98cfef9ac6620d
static int mpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { Mpeg1Context *s = avctx->priv_data; AVFrame *picture = data; MpegEncContext *s2 = &s->mpeg_enc_ctx; dprintf(avctx, "fill_bu...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, const uint8_t *VAR_3, int VAR_4) { Mpeg1Context *s = VAR_0->priv_data; AVFrame *picture = VAR_1; MpegEncContext *s2 = &s->mpeg_enc_ctx; dprintf(VAR_0, "fill_buffer\n"); ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "Mpeg1Context *s = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "MpegEncContext *s2 = &s->mpeg_enc_ctx;", "dprintf(VAR_0, \"fill_buffer\\n\");", "if (VAR_4 == 0 || (VAR_4 == 4 && AV_RB32(VAR_3) =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [ 55, 57 ...
20,555
void bdrv_parent_drained_begin(BlockDriverState *bs) { BdrvChild *c; QLIST_FOREACH(c, &bs->parents, next_parent) { if (c->role->drained_begin) { c->role->drained_begin(c); } } }
false
qemu
02d213009d571bcd7171e3ff9234722a11d30d1b
void bdrv_parent_drained_begin(BlockDriverState *bs) { BdrvChild *c; QLIST_FOREACH(c, &bs->parents, next_parent) { if (c->role->drained_begin) { c->role->drained_begin(c); } } }
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0) { BdrvChild *c; QLIST_FOREACH(c, &VAR_0->parents, next_parent) { if (c->role->drained_begin) { c->role->drained_begin(c); } } }
[ "void FUNC_0(BlockDriverState *VAR_0)\n{", "BdrvChild *c;", "QLIST_FOREACH(c, &VAR_0->parents, next_parent) {", "if (c->role->drained_begin) {", "c->role->drained_begin(c);", "}", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
20,556
static int qemu_event_init(void) { int err; int fds[2]; err = qemu_eventfd(fds); if (err == -1) { return -errno; } err = fcntl_setfl(fds[0], O_NONBLOCK); if (err < 0) { goto fail; } err = fcntl_setfl(fds[1], O_NONBLOCK); if (err < 0) { goto...
false
qemu
d3b12f5dec4b27ebab58fb5797cb67bacced773b
static int qemu_event_init(void) { int err; int fds[2]; err = qemu_eventfd(fds); if (err == -1) { return -errno; } err = fcntl_setfl(fds[0], O_NONBLOCK); if (err < 0) { goto fail; } err = fcntl_setfl(fds[1], O_NONBLOCK); if (err < 0) { goto...
{ "code": [], "line_no": [] }
static int FUNC_0(void) { int VAR_0; int VAR_1[2]; VAR_0 = qemu_eventfd(VAR_1); if (VAR_0 == -1) { return -errno; } VAR_0 = fcntl_setfl(VAR_1[0], O_NONBLOCK); if (VAR_0 < 0) { goto fail; } VAR_0 = fcntl_setfl(VAR_1[1], O_NONBLOCK); if (VAR_0 < 0) { ...
[ "static int FUNC_0(void)\n{", "int VAR_0;", "int VAR_1[2];", "VAR_0 = qemu_eventfd(VAR_1);", "if (VAR_0 == -1) {", "return -errno;", "}", "VAR_0 = fcntl_setfl(VAR_1[0], O_NONBLOCK);", "if (VAR_0 < 0) {", "goto fail;", "}", "VAR_0 = fcntl_setfl(VAR_1[1], O_NONBLOCK);", "if (VAR_0 < 0) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 47, 49...
20,558
static void machine_set_kernel_irqchip(Object *obj, bool value, Error **errp) { MachineState *ms = MACHINE(obj); ms->kernel_irqchip = value; }
false
qemu
d8870d0217216478888c2d3dd6bf62e155d978c8
static void machine_set_kernel_irqchip(Object *obj, bool value, Error **errp) { MachineState *ms = MACHINE(obj); ms->kernel_irqchip = value; }
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0, bool VAR_1, Error **VAR_2) { MachineState *ms = MACHINE(VAR_0); ms->kernel_irqchip = VAR_1; }
[ "static void FUNC_0(Object *VAR_0, bool VAR_1, Error **VAR_2)\n{", "MachineState *ms = MACHINE(VAR_0);", "ms->kernel_irqchip = VAR_1;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
20,559
static char *pcibus_get_dev_path(DeviceState *dev) { PCIDevice *d = container_of(dev, PCIDevice, qdev); PCIDevice *t; int slot_depth; /* Path format: Domain:00:Slot.Function:Slot.Function....:Slot.Function. * 00 is added here to make this format compatible with * domain:Bus:Slot.Func fo...
false
qemu
2991181aaa026d8b1444bfaa9c4bcd82065ba5a3
static char *pcibus_get_dev_path(DeviceState *dev) { PCIDevice *d = container_of(dev, PCIDevice, qdev); PCIDevice *t; int slot_depth; int domain_len = strlen("DDDD:00"); int slot_len = strlen(":SS.F"); int path_len; char *path, *p; ; slot_depth = 0; for...
{ "code": [], "line_no": [] }
static char *FUNC_0(DeviceState *VAR_0) { PCIDevice *d = container_of(VAR_0, PCIDevice, qdev); PCIDevice *t; int VAR_1; int VAR_2 = strlen("DDDD:00"); int VAR_3 = strlen(":SS.F"); int VAR_4; char *VAR_5, *VAR_6; ; VAR_1 = 0; for (t = d; t; t = t->bus->p...
[ "static char *FUNC_0(DeviceState *VAR_0)\n{", "PCIDevice *d = container_of(VAR_0, PCIDevice, qdev);", "PCIDevice *t;", "int VAR_1;", "int VAR_2 = strlen(\"DDDD:00\");", "int VAR_3 = strlen(\":SS.F\");", "int VAR_4;", "char *VAR_5, *VAR_6;", ";", "VAR_1 = 0;", "for (t = d; t; t = t->bus->parent_d...
[ 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 49 ], [ 51 ], [ 57 ], [ 65 ], [ 67 ], [ 69 ...
20,560
int virtio_scsi_read_many(VDev *vdev, ulong sector, void *load_addr, int sec_num) { int sector_count; int f = vdev->blk_factor; unsigned int data_size; do { sector_count = MIN_NON_ZERO(sec_num, vdev->config.scsi.max_sectors); data_size = sector_count *...
false
qemu
fe921fc8b7e92020bb140079a9f47f14fb8e9075
int virtio_scsi_read_many(VDev *vdev, ulong sector, void *load_addr, int sec_num) { int sector_count; int f = vdev->blk_factor; unsigned int data_size; do { sector_count = MIN_NON_ZERO(sec_num, vdev->config.scsi.max_sectors); data_size = sector_count *...
{ "code": [], "line_no": [] }
int FUNC_0(VDev *VAR_0, ulong VAR_1, void *VAR_2, int VAR_3) { int VAR_4; int VAR_5 = VAR_0->blk_factor; unsigned int VAR_6; do { VAR_4 = MIN_NON_ZERO(VAR_3, VAR_0->config.scsi.max_sectors); VAR_6 = VAR_4 * virtio_get_block_size() * VAR_5; if ...
[ "int FUNC_0(VDev *VAR_0,\nulong VAR_1, void *VAR_2, int VAR_3)\n{", "int VAR_4;", "int VAR_5 = VAR_0->blk_factor;", "unsigned int VAR_6;", "do {", "VAR_4 = MIN_NON_ZERO(VAR_3, VAR_0->config.scsi.max_sectors);", "VAR_6 = VAR_4 * virtio_get_block_size() * VAR_5;", "if (!scsi_read_10(VAR_0, VAR_1 * VAR_5...
[ 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 ], [ 39 ], [ 41 ] ]
20,561
static int nbd_negotiate_send_rep_len(QIOChannel *ioc, uint32_t type, uint32_t opt, uint32_t len, Error **errp) { uint64_t magic; trace_nbd_negotiate_send_rep_len(opt, type, len); magic = cpu_to_be64(NBD_REP_MAGIC); if (nbd_write(ioc, &magic, sizeof(magic)...
false
qemu
3736cc5be31f0399999e37d8b28ca9a3ed0b4ccb
static int nbd_negotiate_send_rep_len(QIOChannel *ioc, uint32_t type, uint32_t opt, uint32_t len, Error **errp) { uint64_t magic; trace_nbd_negotiate_send_rep_len(opt, type, len); magic = cpu_to_be64(NBD_REP_MAGIC); if (nbd_write(ioc, &magic, sizeof(magic)...
{ "code": [], "line_no": [] }
static int FUNC_0(QIOChannel *VAR_0, uint32_t VAR_1, uint32_t VAR_2, uint32_t VAR_3, Error **VAR_4) { uint64_t magic; trace_nbd_negotiate_send_rep_len(VAR_2, VAR_1, VAR_3); magic = cpu_to_be64(NBD_REP_MAGIC); if (nbd_write(VAR_0, &magic, sizeof(magic), VAR...
[ "static int FUNC_0(QIOChannel *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, uint32_t VAR_3, Error **VAR_4)\n{", "uint64_t magic;", "trace_nbd_negotiate_send_rep_len(VAR_2, VAR_1, VAR_3);", "magic = cpu_to_be64(NBD_REP_MAGIC);", "if (nbd_write(VAR_0, &magic, sizeof(magic), VAR_4) < 0) {", "error_prepend(VAR_4, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], ...
20,563
uint16_t cpu_inw(pio_addr_t addr) { uint16_t val; val = ioport_read(1, addr); trace_cpu_in(addr, val); LOG_IOPORT("inw : %04"FMT_pioaddr" %04"PRIx16"\n", addr, val); return val; }
false
qemu
b40acf99bef69fa8ab0f9092ff162fde945eec12
uint16_t cpu_inw(pio_addr_t addr) { uint16_t val; val = ioport_read(1, addr); trace_cpu_in(addr, val); LOG_IOPORT("inw : %04"FMT_pioaddr" %04"PRIx16"\n", addr, val); return val; }
{ "code": [], "line_no": [] }
uint16_t FUNC_0(pio_addr_t addr) { uint16_t val; val = ioport_read(1, addr); trace_cpu_in(addr, val); LOG_IOPORT("inw : %04"FMT_pioaddr" %04"PRIx16"\n", addr, val); return val; }
[ "uint16_t FUNC_0(pio_addr_t addr)\n{", "uint16_t val;", "val = ioport_read(1, addr);", "trace_cpu_in(addr, val);", "LOG_IOPORT(\"inw : %04\"FMT_pioaddr\" %04\"PRIx16\"\\n\", addr, val);", "return val;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
20,564
static int local_chmod(FsContext *ctx, const char *path, mode_t mode) { return chmod(rpath(ctx, path), mode); }
false
qemu
e95ead32efc48157de12e0a257ea1c52541a6ce1
static int local_chmod(FsContext *ctx, const char *path, mode_t mode) { return chmod(rpath(ctx, path), mode); }
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, mode_t VAR_2) { return chmod(rpath(VAR_0, VAR_1), VAR_2); }
[ "static int FUNC_0(FsContext *VAR_0, const char *VAR_1, mode_t VAR_2)\n{", "return chmod(rpath(VAR_0, VAR_1), VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
20,565
int ff_wmv2_decode_picture_header(MpegEncContext * s) { Wmv2Context * const w= (Wmv2Context*)s; int code; #if 0 { int i; for(i=0; i<s->gb.size*8; i++) printf("%d", get_bits1(&s->gb)); // get_bits1(&s->gb); printf("END\n"); return -1; } #endif if(s->picture_number==0) decode_e...
false
FFmpeg
9ccbc672aa341d3cb4c4159e1e746ef0693ee138
int ff_wmv2_decode_picture_header(MpegEncContext * s) { Wmv2Context * const w= (Wmv2Context*)s; int code; #if 0 { int i; for(i=0; i<s->gb.size*8; i++) printf("%d", get_bits1(&s->gb)); printf("END\n"); return -1; } #endif if(s->picture_number==0) decode_ext_header(w); s->...
{ "code": [], "line_no": [] }
int FUNC_0(MpegEncContext * VAR_0) { Wmv2Context * const w= (Wmv2Context*)VAR_0; int VAR_1; #if 0 { int i; for(i=0; i<VAR_0->gb.size*8; i++) printf("%d", get_bits1(&VAR_0->gb)); printf("END\n"); return -1; } #endif if(VAR_0->picture_number==0) decode_ext_header(w); VAR_0...
[ "int FUNC_0(MpegEncContext * VAR_0)\n{", "Wmv2Context * const w= (Wmv2Context*)VAR_0;", "int VAR_1;", "#if 0\n{", "int i;", "for(i=0; i<VAR_0->gb.size*8; i++)", "printf(\"%d\", get_bits1(&VAR_0->gb));", "printf(\"END\\n\");", "return -1;", "}", "#endif\nif(VAR_0->picture_number==0)\ndecode_ext_h...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51...
20,566
static int vhdx_update_header(BlockDriverState *bs, BDRVVHDXState *s, bool generate_data_write_guid, MSGUID *log_guid) { int ret = 0; int hdr_idx = 0; uint64_t header_offset = VHDX_HEADER1_OFFSET; VHDXHeader *active_header; VHDXHeader *inactive_header; /...
false
qemu
f50159fa9b5a0ad82e30c123643ec39a1df81d9a
static int vhdx_update_header(BlockDriverState *bs, BDRVVHDXState *s, bool generate_data_write_guid, MSGUID *log_guid) { int ret = 0; int hdr_idx = 0; uint64_t header_offset = VHDX_HEADER1_OFFSET; VHDXHeader *active_header; VHDXHeader *inactive_header; ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, BDRVVHDXState *VAR_1, bool VAR_2, MSGUID *VAR_3) { int VAR_4 = 0; int VAR_5 = 0; uint64_t header_offset = VHDX_HEADER1_OFFSET; VHDXHeader *active_header; VHDXHeader *inactive_header; if (VAR_1->curr_header...
[ "static int FUNC_0(BlockDriverState *VAR_0, BDRVVHDXState *VAR_1,\nbool VAR_2, MSGUID *VAR_3)\n{", "int VAR_4 = 0;", "int VAR_5 = 0;", "uint64_t header_offset = VHDX_HEADER1_OFFSET;", "VHDXHeader *active_header;", "VHDXHeader *inactive_header;", "if (VAR_1->curr_header == 0) {", "VAR_5 = 1;", "heade...
[ 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 47 ], [ 55 ], [ 57 ], [ 59 ], [ 65 ], [ 67 ], [...
20,567
static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) { int y; int off_cur; int off_cur_end; if (off_pitch < 0) { off_begin -= bytesperline - 1; } for (y = 0; y < lines; y++) { off_cur = off_b...
false
qemu
e048dac616748273c2153490e9fdf1da242f0cad
static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) { int y; int off_cur; int off_cur_end; if (off_pitch < 0) { off_begin -= bytesperline - 1; } for (y = 0; y < lines; y++) { off_cur = off_b...
{ "code": [], "line_no": [] }
static void FUNC_0(CirrusVGAState * VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5; int VAR_6; int VAR_7; if (VAR_2 < 0) { VAR_1 -= VAR_3 - 1; } for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) { VAR_6 = VAR_1; VAR_7 = (VAR_6 + VAR_3) & VAR_0->c...
[ "static void FUNC_0(CirrusVGAState * VAR_0, int VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4)\n{", "int VAR_5;", "int VAR_6;", "int VAR_7;", "if (VAR_2 < 0) {", "VAR_1 -= VAR_3 - 1;", "}", "for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) {", "VAR_6 = VAR_1;", "VAR_7 = (VAR_6 + VAR_3) & VAR_0->cirrus_addr_mask...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
20,568
static void msmouse_event(void *opaque, int dx, int dy, int dz, int buttons_state) { CharDriverState *chr = (CharDriverState *)opaque; unsigned char bytes[4] = { 0x40, 0x00, 0x00, 0x00 }; /* Movement deltas */ bytes[0] |= (MSMOUSE_HI2(dy) << 2) | MSMOUSE_HI2(dx); ...
false
qemu
57a4e3b92b6e87158c1e5192fb99a5ac3b82dd5a
static void msmouse_event(void *opaque, int dx, int dy, int dz, int buttons_state) { CharDriverState *chr = (CharDriverState *)opaque; unsigned char bytes[4] = { 0x40, 0x00, 0x00, 0x00 }; bytes[0] |= (MSMOUSE_HI2(dy) << 2) | MSMOUSE_HI2(dx); bytes[1] |= MSMOUSE_...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { CharDriverState *chr = (CharDriverState *)VAR_0; unsigned char VAR_5[4] = { 0x40, 0x00, 0x00, 0x00 }; VAR_5[0] |= (MSMOUSE_HI2(VAR_2) << 2) | MSMOUSE_HI2(VAR_1); VAR_5[1] |= MSMOUSE_LO...
[ "static void FUNC_0(void *VAR_0,\nint VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{", "CharDriverState *chr = (CharDriverState *)VAR_0;", "unsigned char VAR_5[4] = { 0x40, 0x00, 0x00, 0x00 };", "VAR_5[0] |= (MSMOUSE_HI2(VAR_2) << 2) | MSMOUSE_HI2(VAR_1);", "VAR_5[1] |= MSMOUSE_LO6(VAR_1);", "VAR_5[2] |= MSMO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 41 ], [ 43 ] ]
20,569
static void gen_load(DisasContext *dc, TCGv dst, TCGv addr, unsigned int size, int sign) { int mem_index = cpu_mmu_index(dc->env); /* If we get a fault on a delayslot we must keep the jmp state in the cpu-state to be able to re-execute the jmp. */ if (dc->delayed_branch == 1) cris_store_direc...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static void gen_load(DisasContext *dc, TCGv dst, TCGv addr, unsigned int size, int sign) { int mem_index = cpu_mmu_index(dc->env); if (dc->delayed_branch == 1) cris_store_direct_jmp(dc); if (size == 1) { if (sign) tcg_gen_qemu_ld8s(dst, addr, mem_index); else tcg_gen_qemu_ld8u(...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2, unsigned int VAR_3, int VAR_4) { int VAR_5 = cpu_mmu_index(VAR_0->env); if (VAR_0->delayed_branch == 1) cris_store_direct_jmp(VAR_0); if (VAR_3 == 1) { if (VAR_4) tcg_gen_qemu_ld8s(VAR_1, VAR_2, VAR_5); else tcg_ge...
[ "static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2,\nunsigned int VAR_3, int VAR_4)\n{", "int VAR_5 = cpu_mmu_index(VAR_0->env);", "if (VAR_0->delayed_branch == 1)\ncris_store_direct_jmp(VAR_0);", "if (VAR_3 == 1) {", "if (VAR_4)\ntcg_gen_qemu_ld8s(VAR_1, VAR_2, VAR_5);", "else\ntcg_gen_qemu_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 15, 17 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
20,570
static void pci_apb_iowritew (void *opaque, target_phys_addr_t addr, uint32_t val) { cpu_outw(addr & IOPORTS_MASK, bswap16(val)); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void pci_apb_iowritew (void *opaque, target_phys_addr_t addr, uint32_t val) { cpu_outw(addr & IOPORTS_MASK, bswap16(val)); }
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { cpu_outw(VAR_1 & IOPORTS_MASK, bswap16(VAR_2)); }
[ "static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "cpu_outw(VAR_1 & IOPORTS_MASK, bswap16(VAR_2));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
20,571
static struct ioreq *ioreq_start(struct XenBlkDev *blkdev) { struct ioreq *ioreq = NULL; if (LIST_EMPTY(&blkdev->freelist)) { if (blkdev->requests_total >= max_requests) goto out; /* allocate new struct */ ioreq = qemu_mallocz(sizeof(*ioreq)); ioreq->blkdev = blkdev; blkdev->requests_total+...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static struct ioreq *ioreq_start(struct XenBlkDev *blkdev) { struct ioreq *ioreq = NULL; if (LIST_EMPTY(&blkdev->freelist)) { if (blkdev->requests_total >= max_requests) goto out; ioreq = qemu_mallocz(sizeof(*ioreq)); ioreq->blkdev = blkdev; blkdev->requests_total++; qemu_iovec_in...
{ "code": [], "line_no": [] }
static struct VAR_1 *FUNC_0(struct XenBlkDev *VAR_0) { struct VAR_1 *VAR_1 = NULL; if (LIST_EMPTY(&VAR_0->freelist)) { if (VAR_0->requests_total >= max_requests) goto out; VAR_1 = qemu_mallocz(sizeof(*VAR_1)); VAR_1->VAR_0 = VAR_0; VAR_0->requests_total++; qemu_iovec_init(&VAR_1->...
[ "static struct VAR_1 *FUNC_0(struct XenBlkDev *VAR_0)\n{", "struct VAR_1 *VAR_1 = NULL;", "if (LIST_EMPTY(&VAR_0->freelist)) {", "if (VAR_0->requests_total >= max_requests)\ngoto out;", "VAR_1 = qemu_mallocz(sizeof(*VAR_1));", "VAR_1->VAR_0 = VAR_0;", "VAR_0->requests_total++;", "qemu_iovec_init(&VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47 ] ]
20,572
static void pollfds_poll(GArray *pollfds, int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds) { int i; for (i = 0; i < pollfds->len; i++) { GPollFD *pfd = &g_array_index(pollfds, GPollFD, i); int fd = pfd->fd; int revents = 0; if (FD_ISSET(fd,...
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
static void pollfds_poll(GArray *pollfds, int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds) { int i; for (i = 0; i < pollfds->len; i++) { GPollFD *pfd = &g_array_index(pollfds, GPollFD, i); int fd = pfd->fd; int revents = 0; if (FD_ISSET(fd,...
{ "code": [], "line_no": [] }
static void FUNC_0(GArray *VAR_0, int VAR_1, fd_set *VAR_2, fd_set *VAR_3, fd_set *VAR_4) { int VAR_5; for (VAR_5 = 0; VAR_5 < VAR_0->len; VAR_5++) { GPollFD *pfd = &g_array_index(VAR_0, GPollFD, VAR_5); int fd = pfd->fd; int revents = 0; if (...
[ "static void FUNC_0(GArray *VAR_0, int VAR_1, fd_set *VAR_2,\nfd_set *VAR_3, fd_set *VAR_4)\n{", "int VAR_5;", "for (VAR_5 = 0; VAR_5 < VAR_0->len; VAR_5++) {", "GPollFD *pfd = &g_array_index(VAR_0, GPollFD, VAR_5);", "int fd = pfd->fd;", "int revents = 0;", "if (FD_ISSET(fd, VAR_2)) {", "revents |= G...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
20,573
target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr) { return addr; }
false
qemu
b67ea0cd74417b42482499c29feb90914fbf8097
target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr) { return addr; }
{ "code": [], "line_no": [] }
target_phys_addr_t FUNC_0(CPUState *env, target_ulong addr) { return addr; }
[ "target_phys_addr_t FUNC_0(CPUState *env, target_ulong addr)\n{", "return addr;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
20,574
static void get_seg(SegmentCache *lhs, const struct kvm_segment *rhs) { lhs->selector = rhs->selector; lhs->base = rhs->base; lhs->limit = rhs->limit; lhs->flags = (rhs->type << DESC_TYPE_SHIFT) | (rhs->present * DESC_P_MASK) | (rhs->dpl << DESC_DPL_SHIFT) | (rhs->db << DESC_B_SHIFT) | (r...
false
qemu
b9bec74bcb16519a876ec21cd5277c526a9b512d
static void get_seg(SegmentCache *lhs, const struct kvm_segment *rhs) { lhs->selector = rhs->selector; lhs->base = rhs->base; lhs->limit = rhs->limit; lhs->flags = (rhs->type << DESC_TYPE_SHIFT) | (rhs->present * DESC_P_MASK) | (rhs->dpl << DESC_DPL_SHIFT) | (rhs->db << DESC_B_SHIFT) | (r...
{ "code": [], "line_no": [] }
static void FUNC_0(SegmentCache *VAR_0, const struct kvm_segment *VAR_1) { VAR_0->selector = VAR_1->selector; VAR_0->base = VAR_1->base; VAR_0->limit = VAR_1->limit; VAR_0->flags = (VAR_1->type << DESC_TYPE_SHIFT) | (VAR_1->present * DESC_P_MASK) | (VAR_1->dpl << DESC_DPL_SHIFT) | (VAR_1->d...
[ "static void FUNC_0(SegmentCache *VAR_0, const struct kvm_segment *VAR_1)\n{", "VAR_0->selector = VAR_1->selector;", "VAR_0->base = VAR_1->base;", "VAR_0->limit = VAR_1->limit;", "VAR_0->flags =\n(VAR_1->type << DESC_TYPE_SHIFT)\n| (VAR_1->present * DESC_P_MASK)\n| (VAR_1->dpl << DESC_DPL_SHIFT)\n| (VAR_1->...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13, 15, 17, 19, 21, 23, 25, 27 ], [ 29 ] ]
20,575
static always_inline int get_bat (CPUState *env, mmu_ctx_t *ctx, target_ulong virtual, int rw, int type) { target_ulong *BATlt, *BATut, *BATu, *BATl; target_ulong base, BEPIl, BEPIu, bl; int i, pp, pr; int ret = -1; #if defined (DEBUG_BATS) if (loglevel !=...
true
qemu
faadf50e2962dd54175647a80bd6fc4319c91973
static always_inline int get_bat (CPUState *env, mmu_ctx_t *ctx, target_ulong virtual, int rw, int type) { target_ulong *BATlt, *BATut, *BATu, *BATl; target_ulong base, BEPIl, BEPIu, bl; int i, pp, pr; int ret = -1; #if defined (DEBUG_BATS) if (loglevel !=...
{ "code": [ " int i, pp, pr;", " pr = msr_pr;", " for (i = 0; i < 4; i++) {", " bl = (*BATu & 0x00001FFC) << 15;", " if (((pr == 0) && (*BATu & 0x00000002)) ||", " ((pr != 0) && (*BATu & 0x00000001))) {", " pp = *BATl & 0x00000003;",...
static always_inline int FUNC_0 (CPUState *env, mmu_ctx_t *ctx, target_ulong virtual, int rw, int type) { target_ulong *BATlt, *BATut, *BATu, *BATl; target_ulong base, BEPIl, BEPIu, bl; int VAR_0, VAR_1, VAR_2; int VAR_3 = -1; #if defined (DEBUG_BATS) if (...
[ "static always_inline int FUNC_0 (CPUState *env, mmu_ctx_t *ctx,\ntarget_ulong virtual, int rw, int type)\n{", "target_ulong *BATlt, *BATut, *BATu, *BATl;", "target_ulong base, BEPIl, BEPIu, bl;", "int VAR_0, VAR_1, VAR_2;", "int VAR_3 = -1;", "#if defined (DEBUG_BATS)\nif (loglevel != 0) {", "fprintf(l...
[ 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
20,577
void decode_mb_coeffs(VP8Context *s, VP8ThreadData *td, VP56RangeCoder *c, VP8Macroblock *mb, uint8_t t_nnz[9], uint8_t l_nnz[9]) { int i, x, y, luma_start = 0, luma_ctx = 3; int nnz_pred, nnz, nnz_total = 0; int segment = mb->segment; int block_dc = 0; if (mb->mode !=...
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
void decode_mb_coeffs(VP8Context *s, VP8ThreadData *td, VP56RangeCoder *c, VP8Macroblock *mb, uint8_t t_nnz[9], uint8_t l_nnz[9]) { int i, x, y, luma_start = 0, luma_ctx = 3; int nnz_pred, nnz, nnz_total = 0; int segment = mb->segment; int block_dc = 0; if (mb->mode !=...
{ "code": [ " VP8Macroblock *mb, uint8_t t_nnz[9], uint8_t l_nnz[9])", " if (mb->mode != MODE_I4x4 && mb->mode != VP8_MVMODE_SPLIT) {", " nnz_pred, s->qmat[segment].luma_dc_qmul);", " s->qmat[segment].luma_qm...
void FUNC_0(VP8Context *VAR_0, VP8ThreadData *VAR_1, VP56RangeCoder *VAR_2, VP8Macroblock *VAR_3, uint8_t VAR_4[9], uint8_t VAR_5[9]) { int VAR_6, VAR_7, VAR_8, VAR_9 = 0, VAR_10 = 3; int VAR_11, VAR_12, VAR_13 = 0; int VAR_14 = VAR_3->VAR_14; int VAR_15 = 0; if (VAR_3...
[ "void FUNC_0(VP8Context *VAR_0, VP8ThreadData *VAR_1, VP56RangeCoder *VAR_2,\nVP8Macroblock *VAR_3, uint8_t VAR_4[9], uint8_t VAR_5[9])\n{", "int VAR_6, VAR_7, VAR_8, VAR_9 = 0, VAR_10 = 3;", "int VAR_11, VAR_12, VAR_13 = 0;", "int VAR_14 = VAR_3->VAR_14;", "int VAR_15 = 0;", "if (VAR_3->mode != MODE_I4x4...
[ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
20,578
static inline short adpcm_ms_expand_nibble(ADPCMChannelStatus *c, int nibble) { int predictor; predictor = (((c->sample1) * (c->coeff1)) + ((c->sample2) * (c->coeff2))) / 64; predictor += ((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta; c->sample2 = c->sample1; c->sample1 = av_clip_...
true
FFmpeg
e59c28b16660b8f86ef05c7f0db4db89e62ed55f
static inline short adpcm_ms_expand_nibble(ADPCMChannelStatus *c, int nibble) { int predictor; predictor = (((c->sample1) * (c->coeff1)) + ((c->sample2) * (c->coeff2))) / 64; predictor += ((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta; c->sample2 = c->sample1; c->sample1 = av_clip_...
{ "code": [], "line_no": [] }
static inline short FUNC_0(ADPCMChannelStatus *VAR_0, int VAR_1) { int VAR_2; VAR_2 = (((VAR_0->sample1) * (VAR_0->coeff1)) + ((VAR_0->sample2) * (VAR_0->coeff2))) / 64; VAR_2 += ((VAR_1 & 0x08)?(VAR_1 - 0x10):(VAR_1)) * VAR_0->idelta; VAR_0->sample2 = VAR_0->sample1; VAR_0->sample1 = av_c...
[ "static inline short FUNC_0(ADPCMChannelStatus *VAR_0, int VAR_1)\n{", "int VAR_2;", "VAR_2 = (((VAR_0->sample1) * (VAR_0->coeff1)) + ((VAR_0->sample2) * (VAR_0->coeff2))) / 64;", "VAR_2 += ((VAR_1 & 0x08)?(VAR_1 - 0x10):(VAR_1)) * VAR_0->idelta;", "VAR_0->sample2 = VAR_0->sample1;", "VAR_0->sample1 = av_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 29 ] ]
20,579
static int __qemu_rdma_add_block(RDMAContext *rdma, void *host_addr, ram_addr_t block_offset, uint64_t length) { RDMALocalBlocks *local = &rdma->local_ram_blocks; RDMALocalBlock *block = g_hash_table_lookup(rdma->blockmap, (void *) block_offset); RDMALocalBlock *old = ...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int __qemu_rdma_add_block(RDMAContext *rdma, void *host_addr, ram_addr_t block_offset, uint64_t length) { RDMALocalBlocks *local = &rdma->local_ram_blocks; RDMALocalBlock *block = g_hash_table_lookup(rdma->blockmap, (void *) block_offset); RDMALocalBlock *old = ...
{ "code": [], "line_no": [] }
static int FUNC_0(RDMAContext *VAR_0, void *VAR_1, ram_addr_t VAR_2, uint64_t VAR_3) { RDMALocalBlocks *local = &VAR_0->local_ram_blocks; RDMALocalBlock *block = g_hash_table_lookup(VAR_0->blockmap, (void *) VAR_2); RDMALocalBlock *old = local->block; assert(blo...
[ "static int FUNC_0(RDMAContext *VAR_0, void *VAR_1,\nram_addr_t VAR_2, uint64_t VAR_3)\n{", "RDMALocalBlocks *local = &VAR_0->local_ram_blocks;", "RDMALocalBlock *block = g_hash_table_lookup(VAR_0->blockmap,\n(void *) VAR_2);", "RDMALocalBlock *old = local->block;", "assert(block == NULL);", "local->block...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ], [...
20,580
void ff_lzw_decode_tail(LZWState *p) { struct LZWState *s = (struct LZWState *)p; while(!s->eob_reached) lzw_get_code(s); }
true
FFmpeg
5f01beb54846de8764c15206aa63086238dde493
void ff_lzw_decode_tail(LZWState *p) { struct LZWState *s = (struct LZWState *)p; while(!s->eob_reached) lzw_get_code(s); }
{ "code": [ " while(!s->eob_reached)", " lzw_get_code(s);" ], "line_no": [ 7, 9 ] }
void FUNC_0(LZWState *VAR_0) { struct LZWState *VAR_1 = (struct LZWState *)VAR_0; while(!VAR_1->eob_reached) lzw_get_code(VAR_1); }
[ "void FUNC_0(LZWState *VAR_0)\n{", "struct LZWState *VAR_1 = (struct LZWState *)VAR_0;", "while(!VAR_1->eob_reached)\nlzw_get_code(VAR_1);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ] ]
20,582
static void x86_cpu_unrealizefn(DeviceState *dev, Error **errp) { X86CPU *cpu = X86_CPU(dev); #ifndef CONFIG_USER_ONLY cpu_remove_sync(CPU(dev)); qemu_unregister_reset(x86_cpu_machine_reset_cb, dev); #endif if (cpu->apic_state) { object_unparent(OBJECT(cpu->apic_state)); c...
true
qemu
7bbc124e7e8fb544288ccd1f5185643a7d0554b8
static void x86_cpu_unrealizefn(DeviceState *dev, Error **errp) { X86CPU *cpu = X86_CPU(dev); #ifndef CONFIG_USER_ONLY cpu_remove_sync(CPU(dev)); qemu_unregister_reset(x86_cpu_machine_reset_cb, dev); #endif if (cpu->apic_state) { object_unparent(OBJECT(cpu->apic_state)); c...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { X86CPU *cpu = X86_CPU(VAR_0); #ifndef CONFIG_USER_ONLY cpu_remove_sync(CPU(VAR_0)); qemu_unregister_reset(x86_cpu_machine_reset_cb, VAR_0); #endif if (cpu->apic_state) { object_unparent(OBJECT(cpu->apic_state)); cpu->...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "X86CPU *cpu = X86_CPU(VAR_0);", "#ifndef CONFIG_USER_ONLY\ncpu_remove_sync(CPU(VAR_0));", "qemu_unregister_reset(x86_cpu_machine_reset_cb, VAR_0);", "#endif\nif (cpu->apic_state) {", "object_unparent(OBJECT(cpu->apic_state));", "cpu->apic_stat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11, 13 ], [ 15 ], [ 17, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
20,583
static int net_tap_init(VLANState *vlan, const char *model, const char *name, const char *ifname1, const char *setup_script, const char *down_script) { TAPState *s; int fd; char ifname[128]; if (ifname1 != NULL) pstrcpy(ifname, sizeof(ifn...
true
qemu
9036de1a8ad6c565a4e5d8cd124ad8dd05e7d4d4
static int net_tap_init(VLANState *vlan, const char *model, const char *name, const char *ifname1, const char *setup_script, const char *down_script) { TAPState *s; int fd; char ifname[128]; if (ifname1 != NULL) pstrcpy(ifname, sizeof(ifn...
{ "code": [ " if (!s)", " return -1;", " return -1;" ], "line_no": [ 47, 29, 29 ] }
static int FUNC_0(VLANState *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5) { TAPState *s; int VAR_6; char VAR_7[128]; if (VAR_3 != NULL) pstrcpy(VAR_7, sizeof(VAR_7), VAR_3); el...
[ "static int FUNC_0(VLANState *VAR_0, const char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5)\n{", "TAPState *s;", "int VAR_6;", "char VAR_7[128];", "if (VAR_3 != NULL)\npstrcpy(VAR_7, sizeof(VAR_7), VAR_3);", "else\nVAR_7[0] = '\\0';", "TFR(VAR_6 = tap_open(VAR_7...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51, 53, 55 ...
20,584
static void ide_test_start(const char *cmdline_fmt, ...) { va_list ap; char *cmdline; va_start(ap, cmdline_fmt); cmdline = g_strdup_vprintf(cmdline_fmt, ap); va_end(ap); qtest_start(cmdline); qtest_irq_intercept_in(global_qtest, "ioapic"); guest_malloc = pc_alloc_init(); }
true
qemu
e42de189e8eaf3dc93f22e88beca4f5b62ef336c
static void ide_test_start(const char *cmdline_fmt, ...) { va_list ap; char *cmdline; va_start(ap, cmdline_fmt); cmdline = g_strdup_vprintf(cmdline_fmt, ap); va_end(ap); qtest_start(cmdline); qtest_irq_intercept_in(global_qtest, "ioapic"); guest_malloc = pc_alloc_init(); }
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, ...) { va_list ap; char *VAR_1; va_start(ap, VAR_0); VAR_1 = g_strdup_vprintf(VAR_0, ap); va_end(ap); qtest_start(VAR_1); qtest_irq_intercept_in(global_qtest, "ioapic"); guest_malloc = pc_alloc_init(); }
[ "static void FUNC_0(const char *VAR_0, ...)\n{", "va_list ap;", "char *VAR_1;", "va_start(ap, VAR_0);", "VAR_1 = g_strdup_vprintf(VAR_0, ap);", "va_end(ap);", "qtest_start(VAR_1);", "qtest_irq_intercept_in(global_qtest, \"ioapic\");", "guest_malloc = pc_alloc_init();", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ] ]
20,585
static int parse_cookie(HTTPContext *s, const char *p, AVDictionary **cookies) { AVDictionary *new_params = NULL; AVDictionaryEntry *e, *cookie_entry; char *eql, *name; // ensure the cookie is parsable if (parse_set_cookie(p, &new_params)) return -1; // if there is no cookie ...
true
FFmpeg
9147c0975533c83564b1ba47f22952b291b80282
static int parse_cookie(HTTPContext *s, const char *p, AVDictionary **cookies) { AVDictionary *new_params = NULL; AVDictionaryEntry *e, *cookie_entry; char *eql, *name; if (parse_set_cookie(p, &new_params)) return -1; cookie_entry = av_dict_get(new_params, "", NULL, AV...
{ "code": [], "line_no": [] }
static int FUNC_0(HTTPContext *VAR_0, const char *VAR_1, AVDictionary **VAR_2) { AVDictionary *new_params = NULL; AVDictionaryEntry *e, *cookie_entry; char *VAR_3, *VAR_4; if (parse_set_cookie(VAR_1, &new_params)) return -1; cookie_entry = av_dict_get(new_params, "", N...
[ "static int FUNC_0(HTTPContext *VAR_0, const char *VAR_1, AVDictionary **VAR_2)\n{", "AVDictionary *new_params = NULL;", "AVDictionaryEntry *e, *cookie_entry;", "char *VAR_3, *VAR_4;", "if (parse_set_cookie(VAR_1, &new_params))\nreturn -1;", "cookie_entry = av_dict_get(new_params, \"\", NULL, AV_DICT_IGNO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15, 17 ], [ 23 ], [ 25 ], [ 28 ], [ 30 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 48 ], [ 51 ], [ 53 ], [ 59 ], [ 61 ], [ 63 ], [...
20,586
ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int isairq, DriveInfo *hd0, DriveInfo *hd1) { DeviceState *dev; ISADevice *isadev; ISAIDEState *s; isadev = isa_create(bus, TYPE_ISA_IDE); dev = DEVICE(isadev); qdev_prop_set_uint32(dev, "iobase", io...
true
qemu
e25b89e5208564220b9ea3a728f899b37ff6dc2d
ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int isairq, DriveInfo *hd0, DriveInfo *hd1) { DeviceState *dev; ISADevice *isadev; ISAIDEState *s; isadev = isa_create(bus, TYPE_ISA_IDE); dev = DEVICE(isadev); qdev_prop_set_uint32(dev, "iobase", io...
{ "code": [ " if (qdev_init(dev) < 0) {", " return NULL;" ], "line_no": [ 25, 27 ] }
ISADevice *FUNC_0(ISABus *bus, int iobase, int iobase2, int isairq, DriveInfo *hd0, DriveInfo *hd1) { DeviceState *dev; ISADevice *isadev; ISAIDEState *s; isadev = isa_create(bus, TYPE_ISA_IDE); dev = DEVICE(isadev); qdev_prop_set_uint32(dev, "iobase", iobase);...
[ "ISADevice *FUNC_0(ISABus *bus, int iobase, int iobase2, int isairq,\nDriveInfo *hd0, DriveInfo *hd1)\n{", "DeviceState *dev;", "ISADevice *isadev;", "ISAIDEState *s;", "isadev = isa_create(bus, TYPE_ISA_IDE);", "dev = DEVICE(isadev);", "qdev_prop_set_uint32(dev, \"iobase\", iobase);", "qdev_prop_set...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
20,587
int rx_produce(World *world, uint32_t pport, const struct iovec *iov, int iovcnt, uint8_t copy_to_cpu) { Rocker *r = world_rocker(world); PCIDevice *dev = (PCIDevice *)r; DescRing *ring = rocker_get_rx_ring_by_pport(r, pport); DescInfo *info = desc_ring_fetch_desc(ring); char *...
true
qemu
107e4b352cc309f9bd7588ef1a44549200620078
int rx_produce(World *world, uint32_t pport, const struct iovec *iov, int iovcnt, uint8_t copy_to_cpu) { Rocker *r = world_rocker(world); PCIDevice *dev = (PCIDevice *)r; DescRing *ring = rocker_get_rx_ring_by_pport(r, pport); DescInfo *info = desc_ring_fetch_desc(ring); char *...
{ "code": [ " if (!data) {", " err = -ROCKER_ENOMEM;", " goto out;", " if (!buf) {", " err = -ROCKER_ENOMEM;" ], "line_no": [ 137, 139, 53, 49, 139 ] }
int FUNC_0(World *VAR_0, uint32_t VAR_1, const struct iovec *VAR_2, int VAR_3, uint8_t VAR_4) { Rocker *r = world_rocker(VAR_0); PCIDevice *dev = (PCIDevice *)r; DescRing *ring = rocker_get_rx_ring_by_pport(r, VAR_1); DescInfo *info = desc_ring_fetch_desc(ring); char *VAR_5; ...
[ "int FUNC_0(World *VAR_0, uint32_t VAR_1,\nconst struct iovec *VAR_2, int VAR_3, uint8_t VAR_4)\n{", "Rocker *r = world_rocker(VAR_0);", "PCIDevice *dev = (PCIDevice *)r;", "DescRing *ring = rocker_get_rx_ring_by_pport(r, VAR_1);", "DescInfo *info = desc_ring_fetch_desc(ring);", "char *VAR_5;", "size_t ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [...
20,588
dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype, IBaseFilter *device_filter, IPin **ppin) { struct dshow_ctx *ctx = avctx->priv_data; IEnumPins *pins = 0; IPin *device_pin = NULL; IPin *pin; int r; const GUID *mediatype[2] = { &MEDIATYPE_Video, &M...
true
FFmpeg
215e197942e33d5c5749d786e938bf7abe856c1d
dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype, IBaseFilter *device_filter, IPin **ppin) { struct dshow_ctx *ctx = avctx->priv_data; IEnumPins *pins = 0; IPin *device_pin = NULL; IPin *pin; int r; const GUID *mediatype[2] = { &MEDIATYPE_Video, &M...
{ "code": [ " while (IEnumPins_Next(pins, 1, &pin, NULL) == S_OK && !device_pin) {", " while (IEnumMediaTypes_Next(types, 1, &type, NULL) == S_OK && !device_pin) {" ], "line_no": [ 53, 131 ] }
FUNC_0(AVFormatContext *VAR_0, enum dshowDeviceType VAR_1, IBaseFilter *VAR_2, IPin **VAR_3) { struct dshow_ctx *VAR_4 = VAR_0->priv_data; IEnumPins *pins = 0; IPin *device_pin = NULL; IPin *pin; int VAR_5; const GUID *VAR_6[2] = { &MEDIATYPE_Video, &MEDIATYPE_Audio };...
[ "FUNC_0(AVFormatContext *VAR_0, enum dshowDeviceType VAR_1,\nIBaseFilter *VAR_2, IPin **VAR_3)\n{", "struct dshow_ctx *VAR_4 = VAR_0->priv_data;", "IEnumPins *pins = 0;", "IPin *device_pin = NULL;", "IPin *pin;", "int VAR_5;", "const GUID *VAR_6[2] = { &MEDIATYPE_Video, &MEDIATYPE_Audio };", "const ch...
[ 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51 ], [...
20,589
static inline int yv12touyvy_unscaled_altivec(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dstParam[], int dstStride_a[]) { uint8_t *dst=dstParam[0] + dstStride_a[0]*srcSliceY; // yv12toyuy2( src[0],src[1],src[2],dst,c->srcW,srcSliceH,srcStride[0],srcStride[1],dstSt...
true
FFmpeg
6e42e6c4b410dbef8b593c2d796a5dad95f89ee4
static inline int yv12touyvy_unscaled_altivec(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dstParam[], int dstStride_a[]) { uint8_t *dst=dstParam[0] + dstStride_a[0]*srcSliceY; uint8_t *ysrc = src[0]; uint8_t *usrc = src[1]; uint8_t *vsrc = src[2]; cons...
{ "code": [ " int srcSliceH, uint8_t* dstParam[], int dstStride_a[]) {", " uint8_t *dst=dstParam[0] + dstStride_a[0]*srcSliceY;", " uint8_t *ysrc = src[0];", " uint8_t *usrc = src[1];", " uint8_t *vsrc = src[2];", " const int width = c->srcW;", " const int height = srcSliceH;", ...
static inline int FUNC_0(SwsContext *VAR_0, uint8_t* VAR_1[], int VAR_2[], int VAR_3, int VAR_4, uint8_t* VAR_5[], int VAR_6[]) { uint8_t *dst=VAR_5[0] + VAR_6[0]*VAR_3; uint8_t *ysrc = VAR_1[0]; uint8_t *usrc = VAR_1[1]; uint8_t *vsrc = VAR_1[2]; const int VAR_7 = VAR_0->srcW; const int VAR...
[ "static inline int FUNC_0(SwsContext *VAR_0, uint8_t* VAR_1[], int VAR_2[], int VAR_3,\nint VAR_4, uint8_t* VAR_5[], int VAR_6[]) {", "uint8_t *dst=VAR_5[0] + VAR_6[0]*VAR_3;", "uint8_t *ysrc = VAR_1[0];", "uint8_t *usrc = VAR_1[1];", "uint8_t *vsrc = VAR_1[2];", "const int VAR_7 = VAR_0->srcW;", "const...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 59 ], [ 61 ], [ 63...
20,590
static void serial_ioport_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { SerialState *s = opaque; addr &= 7; DPRINTF("write addr=0x%" HWADDR_PRIx " val=0x%" PRIx64 "\n", addr, val); switch(addr) { default: case 0: if (s->lcr & U...
true
qemu
f702e62a193e9ddb41cef95068717e5582b39a64
static void serial_ioport_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { SerialState *s = opaque; addr &= 7; DPRINTF("write addr=0x%" HWADDR_PRIx " val=0x%" PRIx64 "\n", addr, val); switch(addr) { default: case 0: if (s->lcr & U...
{ "code": [ " } else {", " serial_xmit(NULL, G_IO_OUT, s);" ], "line_no": [ 27, 53 ] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { SerialState *s = VAR_0; VAR_1 &= 7; DPRINTF("write VAR_1=0x%" HWADDR_PRIx " VAR_2=0x%" PRIx64 "\n", VAR_1, VAR_2); switch(VAR_1) { default: case 0: if (s->lcr & UART...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,\nunsigned VAR_3)\n{", "SerialState *s = VAR_0;", "VAR_1 &= 7;", "DPRINTF(\"write VAR_1=0x%\" HWADDR_PRIx \" VAR_2=0x%\" PRIx64 \"\\n\", VAR_1, VAR_2);", "switch(VAR_1) {", "default:\ncase 0:\nif (s->lcr & UART_LCR_DLAB) {", "s->divider = (s-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
20,591
static void FUNC(put_hevc_qpel_bi_w_v)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, int denom, int wx0, int wx1, int ox0, int ox1, intptr_t mx, ...
true
FFmpeg
d135f3c514ac1723256c8e0f5cdd466fe98a2578
static void FUNC(put_hevc_qpel_bi_w_v)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, int denom, int wx0, int wx1, int ox0, int ox1, intptr_t mx, ...
{ "code": [ " ((ox0 + ox1 + 1) << log2Wd)) >> (log2Wd + 1));", " ((ox0 + ox1 + 1) << log2Wd)) >> (log2Wd + 1));" ], "line_no": [ 43, 43 ] }
static void FUNC_0(put_hevc_qpel_bi_w_v)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, int denom, int wx0, int wx1, int ox0, int ox1, intptr_t mx...
[ "static void FUNC_0(put_hevc_qpel_bi_w_v)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride,\nint16_t *src2,\nint height, int denom, int wx0, int wx1,\nint ox0, int ox1, intptr_t mx, intptr_t my, int width)\n{", "int VAR_0, VAR_1;", "pixel *src = (pixel*)_src;", "ptrdiff_t ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
20,592
int spapr_ovec_populate_dt(void *fdt, int fdt_offset, sPAPROptionVector *ov, const char *name) { uint8_t vec[OV_MAXBYTES + 1]; uint16_t vec_len; unsigned long lastbit; int i; g_assert(ov); lastbit = find_last_bit(ov->bitmap, OV_MAXBITS); /* if no bits ...
true
qemu
fe93e3e6ec1b1bf4a4c9d4bf55f8776318da6847
int spapr_ovec_populate_dt(void *fdt, int fdt_offset, sPAPROptionVector *ov, const char *name) { uint8_t vec[OV_MAXBYTES + 1]; uint16_t vec_len; unsigned long lastbit; int i; g_assert(ov); lastbit = find_last_bit(ov->bitmap, OV_MAXBITS); ve...
{ "code": [ " return fdt_setprop(fdt, fdt_offset, name, vec, vec_len);" ], "line_no": [ 63 ] }
int FUNC_0(void *VAR_0, int VAR_1, sPAPROptionVector *VAR_2, const char *VAR_3) { uint8_t vec[OV_MAXBYTES + 1]; uint16_t vec_len; unsigned long VAR_4; int VAR_5; g_assert(VAR_2); VAR_4 = find_last_bit(VAR_2->bitmap, OV_MAXBITS); vec_len = (...
[ "int FUNC_0(void *VAR_0, int VAR_1,\nsPAPROptionVector *VAR_2, const char *VAR_3)\n{", "uint8_t vec[OV_MAXBYTES + 1];", "uint16_t vec_len;", "unsigned long VAR_4;", "int VAR_5;", "g_assert(VAR_2);", "VAR_4 = find_last_bit(VAR_2->bitmap, OV_MAXBITS);", "vec_len = (VAR_4 == OV_MAXBITS) ? 1 : VAR_4 / BIT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 31 ], [ 33 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 57 ], [ 59 ], [ 63 ], [ 65 ] ]
20,593
static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags, ID3v2ExtraMeta **extra_meta) { int isv34, tlen, unsync; char tag[5]; int64_t next, end = avio_tell(s->pb) + len; int taghdrlen; const char *reason = NULL; AVIOContext pb; AVIOContext *pbx; un...
true
FFmpeg
c780b543e72141393ae3c0b0cb2654f9a5e35f73
static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags, ID3v2ExtraMeta **extra_meta) { int isv34, tlen, unsync; char tag[5]; int64_t next, end = avio_tell(s->pb) + len; int taghdrlen; const char *reason = NULL; AVIOContext pb; AVIOContext *pbx; un...
{ "code": [ " void (*extra_func)(AVFormatContext*, AVIOContext*, int, char*, ID3v2ExtraMeta**) = NULL;", " } else if (tag[0] == 'T' || (extra_meta && (extra_func = get_extra_meta_func(tag, isv34)->read))) {", " extra_func(s, pbx, tlen, tag, extra_meta);" ], "line_no": [ 23...
VAR_15staticVAR_15 VAR_15voidVAR_15 VAR_15ff_id3v2_parseVAR_15(VAR_15AVFormatContextVAR_15 *VAR_15VAR_0VAR_15, VAR_15intVAR_15 VAR_15VAR_1VAR_15, VAR_15uint8_tVAR_15 VAR_15VAR_2VAR_15, VAR_15uint8_tVAR_15 VAR_15VAR_3VAR_15, VAR_15ID3v2ExtraMetaVAR_15 **VAR_15VAR_4VAR_15) { VAR_15intVAR_15 VAR_15VAR_5VAR_15, VAR_1...
[ "VAR_15staticVAR_15 VAR_15voidVAR_15 VAR_15ff_id3v2_parseVAR_15(VAR_15AVFormatContextVAR_15 *VAR_15VAR_0VAR_15, VAR_15intVAR_15 VAR_15VAR_1VAR_15, VAR_15uint8_tVAR_15 VAR_15VAR_2VAR_15, VAR_15uint8_tVAR_15 VAR_15VAR_3VAR_15, VAR_15ID3v2ExtraMetaVAR_15 **VAR_15VAR_4VAR_15)\n{", "VAR_15intVAR_15 VAR_15VAR_5VAR_15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
20,594
static int shorten_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { ShortenContext *s = avctx->priv_data; int i, input_buf_size = 0; int16_t *samples = data; if(s->max_framesize == 0){ s->max_framesize= 1024; // should hopefull...
true
FFmpeg
1e25a7e7ebb55516d522a8ab1c4b7938b5060fe5
static int shorten_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { ShortenContext *s = avctx->priv_data; int i, input_buf_size = 0; int16_t *samples = data; if(s->max_framesize == 0){ s->max_framesize= 1024; s->bitst...
{ "code": [ " allocate_buffers(s);" ], "line_no": [ 139 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { ShortenContext *s = VAR_0->priv_data; int VAR_5, VAR_6 = 0; int16_t *samples = VAR_1; if(s->max_framesize == 0){ s->max_framesize= 1024; s->bitstream= av_fast_realloc(...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "ShortenContext *s = VAR_0->priv_data;", "int VAR_5, VAR_6 = 0;", "int16_t *samples = VAR_1;", "if(s->max_framesize == 0){", "s->max_framesize= 1024;", "s->bitstream= av_fast_realloc(s->bitstream, &s->al...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
20,595
static void apply_param_change(AVCodecContext *avctx, AVPacket *avpkt) { int size = 0; const uint8_t *data; uint32_t flags; if (!(avctx->codec->capabilities & CODEC_CAP_PARAM_CHANGE)) return; data = av_packet_get_side_data(avpkt, AV_PKT_DATA_PARAM_CHANGE, &size); if (!data ||...
false
FFmpeg
b9589f5a770ec2357ab7920a5fabe8510b8601f9
static void apply_param_change(AVCodecContext *avctx, AVPacket *avpkt) { int size = 0; const uint8_t *data; uint32_t flags; if (!(avctx->codec->capabilities & CODEC_CAP_PARAM_CHANGE)) return; data = av_packet_get_side_data(avpkt, AV_PKT_DATA_PARAM_CHANGE, &size); if (!data ||...
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1) { int VAR_2 = 0; const uint8_t *VAR_3; uint32_t flags; if (!(VAR_0->codec->capabilities & CODEC_CAP_PARAM_CHANGE)) return; VAR_3 = av_packet_get_side_data(VAR_1, AV_PKT_DATA_PARAM_CHANGE, &VAR_2); if (!VAR_3 || VAR_2 ...
[ "static void FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2 = 0;", "const uint8_t *VAR_3;", "uint32_t flags;", "if (!(VAR_0->codec->capabilities & CODEC_CAP_PARAM_CHANGE))\nreturn;", "VAR_3 = av_packet_get_side_data(VAR_1, AV_PKT_DATA_PARAM_CHANGE, &VAR_2);", "if (!VAR_3 || VAR_2 < 4)\nr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ...
20,597
static int net_client_init1(const void *object, int is_netdev, Error **errp) { union { const Netdev *netdev; const NetLegacy *net; } u; const NetClientOptions *opts; const char *name; if (is_netdev) { u.netdev = object; opts = u.netdev->opts; n...
true
qemu
015a33bd05b7fd69f400d4e0e4a9925af9292548
static int net_client_init1(const void *object, int is_netdev, Error **errp) { union { const Netdev *netdev; const NetLegacy *net; } u; const NetClientOptions *opts; const char *name; if (is_netdev) { u.netdev = object; opts = u.netdev->opts; n...
{ "code": [ "#ifdef CONFIG_LINUX", "#ifdef CONFIG_LINUX" ], "line_no": [ 67, 67 ] }
static int FUNC_0(const void *VAR_0, int VAR_1, Error **VAR_2) { union { const Netdev *netdev; const NetLegacy *net; } VAR_3; const NetClientOptions *VAR_4; const char *VAR_5; if (VAR_1) { VAR_3.netdev = VAR_0; VAR_4 = VAR_3.netdev->VAR_4; VAR_...
[ "static int FUNC_0(const void *VAR_0, int VAR_1, Error **VAR_2)\n{", "union {", "const Netdev *netdev;", "const NetLegacy *net;", "} VAR_3;", "const NetClientOptions *VAR_4;", "const char *VAR_5;", "if (VAR_1) {", "VAR_3.netdev = VAR_0;", "VAR_4 = VAR_3.netdev->VAR_4;", "VAR_5 = VAR_3.netdev-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59,...
20,598
bdrv_driver_pwritev_compressed(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov) { BlockDriver *drv = bs->drv; if (!drv->bdrv_co_pwritev_compressed) { return -ENOTSUP; return drv->bdrv_co_pwritev_compressed(bs, offset, bytes, qiov);
true
qemu
d470ad42acfc73c45d3e8ed5311a491160b4c100
bdrv_driver_pwritev_compressed(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov) { BlockDriver *drv = bs->drv; if (!drv->bdrv_co_pwritev_compressed) { return -ENOTSUP; return drv->bdrv_co_pwritev_compressed(bs, offset, bytes, qiov);
{ "code": [], "line_no": [] }
FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2, QEMUIOVector *VAR_3) { BlockDriver *drv = VAR_0->drv; if (!drv->bdrv_co_pwritev_compressed) { return -ENOTSUP; return drv->bdrv_co_pwritev_compressed(VAR_0, VAR_1, VAR_2, VAR_3);
[ "FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nuint64_t VAR_2, QEMUIOVector *VAR_3)\n{", "BlockDriver *drv = VAR_0->drv;", "if (!drv->bdrv_co_pwritev_compressed) {", "return -ENOTSUP;", "return drv->bdrv_co_pwritev_compressed(VAR_0, VAR_1, VAR_2, VAR_3);" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ] ]
20,599
static void cirrus_init_common(CirrusVGAState * s, int device_id, int is_pci) { int i; static int inited; if (!inited) { inited = 1; for(i = 0;i < 256; i++) rop_to_index[i] = CIRRUS_ROP_NOP_INDEX; /* nop rop */ rop_to_index[CIRRUS_ROP_0] = 0; rop_to_ind...
true
qemu
f65ed4c1529f29a7d62d6733eaa50bed24a4b2ed
static void cirrus_init_common(CirrusVGAState * s, int device_id, int is_pci) { int i; static int inited; if (!inited) { inited = 1; for(i = 0;i < 256; i++) rop_to_index[i] = CIRRUS_ROP_NOP_INDEX; rop_to_index[CIRRUS_ROP_0] = 0; rop_to_index[CIRRUS_ROP...
{ "code": [], "line_no": [] }
static void FUNC_0(CirrusVGAState * VAR_0, int VAR_1, int VAR_2) { int VAR_3; static int VAR_4; if (!VAR_4) { VAR_4 = 1; for(VAR_3 = 0;VAR_3 < 256; VAR_3++) rop_to_index[VAR_3] = CIRRUS_ROP_NOP_INDEX; rop_to_index[CIRRUS_ROP_0] = 0; rop_to_index[CIRRUS...
[ "static void FUNC_0(CirrusVGAState * VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3;", "static int VAR_4;", "if (!VAR_4) {", "VAR_4 = 1;", "for(VAR_3 = 0;VAR_3 < 256; VAR_3++)", "rop_to_index[VAR_3] = CIRRUS_ROP_NOP_INDEX;", "rop_to_index[CIRRUS_ROP_0] = 0;", "rop_to_index[CIRRUS_ROP_SRC_AND_DST] = 1;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
20,601
static int omap2_gpio_init(SysBusDevice *sbd) { DeviceState *dev = DEVICE(sbd); struct omap2_gpif_s *s = OMAP2_GPIO(dev); int i; if (!s->iclk) { hw_error("omap2-gpio: iclk not connected\n"); } if (s->mpu_model < omap3430) { s->modulecount = (s->mpu_model < omap2430) ? ...
true
qemu
84a3a53cf61ef691478bd91afa455c801696053c
static int omap2_gpio_init(SysBusDevice *sbd) { DeviceState *dev = DEVICE(sbd); struct omap2_gpif_s *s = OMAP2_GPIO(dev); int i; if (!s->iclk) { hw_error("omap2-gpio: iclk not connected\n"); } if (s->mpu_model < omap3430) { s->modulecount = (s->mpu_model < omap2430) ? ...
{ "code": [ " hw_error(\"omap2-gpio: iclk not connected\\n\");", " s->modulecount = (s->mpu_model < omap2430) ? 4 : 5;", " } else {", " s->modulecount = 6;", " if (!s->fclk[i]) {", " hw_error(\"omap2-gpio: fclk%d not connected\\n\", i);" ], "line_n...
static int FUNC_0(SysBusDevice *VAR_0) { DeviceState *dev = DEVICE(VAR_0); struct omap2_gpif_s *VAR_1 = OMAP2_GPIO(dev); int VAR_2; if (!VAR_1->iclk) { hw_error("omap2-gpio: iclk not connected\n"); } if (VAR_1->mpu_model < omap3430) { VAR_1->modulecount = (VAR_1->mpu_m...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "DeviceState *dev = DEVICE(VAR_0);", "struct omap2_gpif_s *VAR_1 = OMAP2_GPIO(dev);", "int VAR_2;", "if (!VAR_1->iclk) {", "hw_error(\"omap2-gpio: iclk not connected\\n\");", "}", "if (VAR_1->mpu_model < omap3430) {", "VAR_1->modulecount = (VAR_1->mpu_mod...
[ 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 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 ], [...
20,602
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; const AVCodec *codec = avctx->codec; int i; park_frame_worker_threads(fctx, thread_count); if (fctx->prev_thread && fctx->prev_thread != fctx->threads) if (...
true
FFmpeg
5d346feafa817c4fbc30f7ed0b93b2dad6cef15b
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; const AVCodec *codec = avctx->codec; int i; park_frame_worker_threads(fctx, thread_count); if (fctx->prev_thread && fctx->prev_thread != fctx->threads) if (...
{ "code": [ " if (codec->close)", " if (i) {", " av_freep(&p->avctx->internal);" ], "line_no": [ 57, 93, 103 ] }
void FUNC_0(AVCodecContext *VAR_0, int VAR_1) { FrameThreadContext *fctx = VAR_0->internal->thread_ctx; const AVCodec *VAR_2 = VAR_0->VAR_2; int VAR_3; park_frame_worker_threads(fctx, VAR_1); if (fctx->prev_thread && fctx->prev_thread != fctx->threads) if (update_context_from_thre...
[ "void FUNC_0(AVCodecContext *VAR_0, int VAR_1)\n{", "FrameThreadContext *fctx = VAR_0->internal->thread_ctx;", "const AVCodec *VAR_2 = VAR_0->VAR_2;", "int VAR_3;", "park_frame_worker_threads(fctx, VAR_1);", "if (fctx->prev_thread && fctx->prev_thread != fctx->threads)\nif (update_context_from_thread(fctx...
[ 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, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 53 ], [ 57,...
20,604
static bool ranges_can_merge(Range *range1, Range *range2) { return !(range1->end < range2->begin || range2->end < range1->begin); }
true
qemu
db486cc334aafd3dbdaf107388e37fc3d6d3e171
static bool ranges_can_merge(Range *range1, Range *range2) { return !(range1->end < range2->begin || range2->end < range1->begin); }
{ "code": [ "static bool ranges_can_merge(Range *range1, Range *range2)", " return !(range1->end < range2->begin || range2->end < range1->begin);" ], "line_no": [ 1, 5 ] }
static bool FUNC_0(Range *range1, Range *range2) { return !(range1->end < range2->begin || range2->end < range1->begin); }
[ "static bool FUNC_0(Range *range1, Range *range2)\n{", "return !(range1->end < range2->begin || range2->end < range1->begin);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
20,605
static int nbd_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVNBDState *s = bs->opaque; char *export = NULL; int result, sock; Error *local_err = NULL; /* Pop the config into our state object. Exit if invalid. */ nbd_config(s, options, &ex...
true
qemu
9d0b65e6e8f255dd86630a6873b3859fb6a5477f
static int nbd_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVNBDState *s = bs->opaque; char *export = NULL; int result, sock; Error *local_err = NULL; nbd_config(s, options, &export, &local_err); if (local_err) { error_prop...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVNBDState *s = VAR_0->opaque; char *VAR_4 = NULL; int VAR_5, VAR_6; Error *local_err = NULL; nbd_config(s, VAR_1, &VAR_4, &local_err); if (local_err) { error_propa...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVNBDState *s = VAR_0->opaque;", "char *VAR_4 = NULL;", "int VAR_5, VAR_6;", "Error *local_err = NULL;", "nbd_config(s, VAR_1, &VAR_4, &local_err);", "if (local_err) {", "error_propagate(VAR_3, local_err);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 37 ], [ 39 ], [ 42 ], [ 44 ], [ 50 ], [ 53 ], [ 55 ] ]
20,607
static int convert_coeffs(AVFilterContext *ctx, AVFilterLink *inlink) { struct HeadphoneContext *s = ctx->priv; const int ir_len = s->ir_len; int nb_irs = s->nb_irs; int nb_input_channels = ctx->inputs[0]->channels; float gain_lin = expf((s->gain - 3 * nb_input_channels) / 20 * M_LN10); F...
true
FFmpeg
9b667f609c509e84ae6ef496edcfb6c8b83c4a38
static int convert_coeffs(AVFilterContext *ctx, AVFilterLink *inlink) { struct HeadphoneContext *s = ctx->priv; const int ir_len = s->ir_len; int nb_irs = s->nb_irs; int nb_input_channels = ctx->inputs[0]->channels; float gain_lin = expf((s->gain - 3 * nb_input_channels) / 20 * M_LN10); F...
{ "code": [ " int offset = 0;", " return AVERROR(ENOMEM);", " return AVERROR(ENOMEM);", " if (!s->temp_fft[0] || !s->temp_fft[1])", " return AVERROR(ENOMEM);", " !s->ringbuffer[0] || !s->ringbuffer[1])", " return AVERROR(ENOMEM);", ...
static int FUNC_0(AVFilterContext *VAR_0, AVFilterLink *VAR_1) { struct HeadphoneContext *VAR_2 = VAR_0->priv; const int VAR_3 = VAR_2->VAR_3; int VAR_4 = VAR_2->VAR_4; int VAR_5 = VAR_0->inputs[0]->channels; float VAR_6 = expf((VAR_2->gain - 3 * VAR_5) / 20 * M_LN10); FFTComplex *data_hr...
[ "static int FUNC_0(AVFilterContext *VAR_0, AVFilterLink *VAR_1)\n{", "struct HeadphoneContext *VAR_2 = VAR_0->priv;", "const int VAR_3 = VAR_2->VAR_3;", "int VAR_4 = VAR_2->VAR_4;", "int VAR_5 = VAR_0->inputs[0]->channels;", "float VAR_6 = expf((VAR_2->gain - 3 * VAR_5) / 20 * M_LN10);", "FFTComplex *da...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ...
20,608
static void nic_cleanup(VLANClientState *nc) { dp8393xState *s = DO_UPCAST(NICState, nc, nc)->opaque; cpu_unregister_io_memory(s->mmio_index); qemu_del_timer(s->watchdog); qemu_free_timer(s->watchdog); g_free(s); }
true
qemu
024e5bb664bda54b393e405f425f10fa9d3fbd1a
static void nic_cleanup(VLANClientState *nc) { dp8393xState *s = DO_UPCAST(NICState, nc, nc)->opaque; cpu_unregister_io_memory(s->mmio_index); qemu_del_timer(s->watchdog); qemu_free_timer(s->watchdog); g_free(s); }
{ "code": [ " cpu_unregister_io_memory(s->mmio_index);" ], "line_no": [ 9 ] }
static void FUNC_0(VLANClientState *VAR_0) { dp8393xState *s = DO_UPCAST(NICState, VAR_0, VAR_0)->opaque; cpu_unregister_io_memory(s->mmio_index); qemu_del_timer(s->watchdog); qemu_free_timer(s->watchdog); g_free(s); }
[ "static void FUNC_0(VLANClientState *VAR_0)\n{", "dp8393xState *s = DO_UPCAST(NICState, VAR_0, VAR_0)->opaque;", "cpu_unregister_io_memory(s->mmio_index);", "qemu_del_timer(s->watchdog);", "qemu_free_timer(s->watchdog);", "g_free(s);", "}" ]
[ 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
20,609
static void ide_init1(IDEBus *bus, int unit) { static int drive_serial = 1; IDEState *s = &bus->ifs[unit]; s->bus = bus; s->unit = unit; s->drive_serial = drive_serial++; /* we need at least 2k alignment for accessing CDROMs using O_DIRECT */ s->io_buffer = qemu_memalign(2048, IDE_...
true
qemu
c925400ba83bd57bf560e071f400012248f1644a
static void ide_init1(IDEBus *bus, int unit) { static int drive_serial = 1; IDEState *s = &bus->ifs[unit]; s->bus = bus; s->unit = unit; s->drive_serial = drive_serial++; s->io_buffer = qemu_memalign(2048, IDE_DMA_BUF_SECTORS*512 + 4); s->io_buffer_total_len = IDE_DMA_BUF_SEC...
{ "code": [ " s->io_buffer = qemu_memalign(2048, IDE_DMA_BUF_SECTORS*512 + 4);" ], "line_no": [ 19 ] }
static void FUNC_0(IDEBus *VAR_0, int VAR_1) { static int VAR_2 = 1; IDEState *s = &VAR_0->ifs[VAR_1]; s->VAR_0 = VAR_0; s->VAR_1 = VAR_1; s->VAR_2 = VAR_2++; s->io_buffer = qemu_memalign(2048, IDE_DMA_BUF_SECTORS*512 + 4); s->io_buffer_total_len = IDE_DMA_BUF_SECTORS*512 + 4...
[ "static void FUNC_0(IDEBus *VAR_0, int VAR_1)\n{", "static int VAR_2 = 1;", "IDEState *s = &VAR_0->ifs[VAR_1];", "s->VAR_0 = VAR_0;", "s->VAR_1 = VAR_1;", "s->VAR_2 = VAR_2++;", "s->io_buffer = qemu_memalign(2048, IDE_DMA_BUF_SECTORS*512 + 4);", "s->io_buffer_total_len = IDE_DMA_BUF_SECTORS*512 + 4;",...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ] ]
20,611
static int iscsi_create(const char *filename, QEMUOptionParameter *options) { int ret = 0; int64_t total_size = 0; BlockDriverState bs; IscsiLun *iscsilun = NULL; QDict *bs_options; memset(&bs, 0, sizeof(BlockDriverState)); /* Read out options */ while (options && options->n...
true
qemu
13c91cb7e28b47f5c4227f7e88a1378570117704
static int iscsi_create(const char *filename, QEMUOptionParameter *options) { int ret = 0; int64_t total_size = 0; BlockDriverState bs; IscsiLun *iscsilun = NULL; QDict *bs_options; memset(&bs, 0, sizeof(BlockDriverState)); while (options && options->name) { if (!s...
{ "code": [ " BlockDriverState bs;", " memset(&bs, 0, sizeof(BlockDriverState));", " bs.opaque = g_malloc0(sizeof(struct IscsiLun));", " iscsilun = bs.opaque;", " ret = iscsi_open(&bs, bs_options, 0);", " if (bs.total_sectors < total_size) {", " g_free(bs.opaque);" ]...
static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1) { int VAR_2 = 0; int64_t total_size = 0; BlockDriverState bs; IscsiLun *iscsilun = NULL; QDict *bs_options; memset(&bs, 0, sizeof(BlockDriverState)); while (VAR_1 && VAR_1->name) { if (!strcmp(VAR_1->...
[ "static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1)\n{", "int VAR_2 = 0;", "int64_t total_size = 0;", "BlockDriverState bs;", "IscsiLun *iscsilun = NULL;", "QDict *bs_options;", "memset(&bs, 0, sizeof(BlockDriverState));", "while (VAR_1 && VAR_1->name) {", "if (!strcmp(VAR_1->name, \"s...
[ 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ...
20,612
Exynos4210State *exynos4210_init(MemoryRegion *system_mem, unsigned long ram_size) { int i, n; Exynos4210State *s = g_new(Exynos4210State, 1); qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS]; unsigned long mem_size; DeviceState *dev; SysBusDevice *busdev; Ob...
true
qemu
f8ed85ac992c48814d916d5df4d44f9a971c5de4
Exynos4210State *exynos4210_init(MemoryRegion *system_mem, unsigned long ram_size) { int i, n; Exynos4210State *s = g_new(Exynos4210State, 1); qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS]; unsigned long mem_size; DeviceState *dev; SysBusDevice *busdev; Ob...
{ "code": [ " EXYNOS4210_IROM_SIZE, &error_abort);", " EXYNOS4210_IRAM_SIZE, &error_abort);", " mem_size - EXYNOS4210_DRAM_MAX_SIZE, &error_abort);", " &error_abort);", " &error_a...
Exynos4210State *FUNC_0(MemoryRegion *system_mem, unsigned long ram_size) { int VAR_0, VAR_1; Exynos4210State *s = g_new(Exynos4210State, 1); qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS]; unsigned long VAR_2; DeviceState *dev; SysBusDevice *busdev; Object...
[ "Exynos4210State *FUNC_0(MemoryRegion *system_mem,\nunsigned long ram_size)\n{", "int VAR_0, VAR_1;", "Exynos4210State *s = g_new(Exynos4210State, 1);", "qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS];", "unsigned long VAR_2;", "DeviceState *dev;", "SysBusDevice *busdev;", "ObjectCla...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
20,615
void ff_put_h264_qpel8_mc22_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_mid_8w_msa(src - (2 * stride) - 2, stride, dst, stride, 8); }
false
FFmpeg
e549933a270dd2cfc36f2cf9bb6b29acf3dc6d08
void ff_put_h264_qpel8_mc22_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_mid_8w_msa(src - (2 * stride) - 2, stride, dst, stride, 8); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_mid_8w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 8); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_mid_8w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 8);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
20,616
static int fbdev_write_packet(AVFormatContext *h, AVPacket *pkt) { FBDevContext *fbdev = h->priv_data; uint8_t *pin, *pout; enum AVPixelFormat fb_pix_fmt; int disp_height; int bytes_to_copy; AVCodecContext *codec_ctx = h->streams[fbdev->index]->codec; enum AVPixelFormat video_pix_fmt...
false
FFmpeg
b04af34600d01502ac844551d157d83f7ae5db26
static int fbdev_write_packet(AVFormatContext *h, AVPacket *pkt) { FBDevContext *fbdev = h->priv_data; uint8_t *pin, *pout; enum AVPixelFormat fb_pix_fmt; int disp_height; int bytes_to_copy; AVCodecContext *codec_ctx = h->streams[fbdev->index]->codec; enum AVPixelFormat video_pix_fmt...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { FBDevContext *fbdev = VAR_0->priv_data; uint8_t *pin, *pout; enum AVPixelFormat VAR_2; int VAR_3; int VAR_4; AVCodecContext *codec_ctx = VAR_0->streams[fbdev->index]->codec; enum AVPixelFormat VAR_5 = codec_ctx->pix_fmt; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "FBDevContext *fbdev = VAR_0->priv_data;", "uint8_t *pin, *pout;", "enum AVPixelFormat VAR_2;", "int VAR_3;", "int VAR_4;", "AVCodecContext *codec_ctx = VAR_0->streams[fbdev->index]->codec;", "enum AVPixelFormat VAR_5 = codec_ctx->pix_fm...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 37, 39, 41 ], [ 45 ], [ 49 ], [ 51, 53 ...
20,619
static void mxf_read_pixel_layout(ByteIOContext *pb, MXFDescriptor *descriptor) { int code, value, ofs = 0; char layout[16] = {}; do { code = get_byte(pb); value = get_byte(pb); dprintf(NULL, "pixel layout: code %#x\n", code); if (ofs < 16) { layout[o...
false
FFmpeg
354b757300186ed7a7e36682e8faf5cdc4ad63c1
static void mxf_read_pixel_layout(ByteIOContext *pb, MXFDescriptor *descriptor) { int code, value, ofs = 0; char layout[16] = {}; do { code = get_byte(pb); value = get_byte(pb); dprintf(NULL, "pixel layout: code %#x\n", code); if (ofs < 16) { layout[o...
{ "code": [], "line_no": [] }
static void FUNC_0(ByteIOContext *VAR_0, MXFDescriptor *VAR_1) { int VAR_2, VAR_3, VAR_4 = 0; char VAR_5[16] = {}; do { VAR_2 = get_byte(VAR_0); VAR_3 = get_byte(VAR_0); dprintf(NULL, "pixel VAR_5: VAR_2 %#x\n", VAR_2); if (VAR_4 < 16) { VAR_5[VAR_4++...
[ "static void FUNC_0(ByteIOContext *VAR_0, MXFDescriptor *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4 = 0;", "char VAR_5[16] = {};", "do {", "VAR_2 = get_byte(VAR_0);", "VAR_3 = get_byte(VAR_0);", "dprintf(NULL, \"pixel VAR_5: VAR_2 %#x\\n\", VAR_2);", "if (VAR_4 < 16) {", "VAR_5[VAR_4++] = VAR_2;", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
20,621
static int xmv_read_header(AVFormatContext *s) { XMVDemuxContext *xmv = s->priv_data; AVIOContext *pb = s->pb; AVStream *vst = NULL; uint32_t file_version; uint32_t this_packet_size; uint16_t audio_track; int ret; avio_skip(pb, 4); /* Next packet size */ t...
true
FFmpeg
f8080bd13b5f7fc48204b17fa59a5ce9feb15f07
static int xmv_read_header(AVFormatContext *s) { XMVDemuxContext *xmv = s->priv_data; AVIOContext *pb = s->pb; AVStream *vst = NULL; uint32_t file_version; uint32_t this_packet_size; uint16_t audio_track; int ret; avio_skip(pb, 4); this_packet_size = avio...
{ "code": [ " if (!xmv->audio)", " return AVERROR(ENOMEM);", " if (!ast)", " return AVERROR(ENOMEM);" ], "line_no": [ 105, 55, 189, 191 ] }
static int FUNC_0(AVFormatContext *VAR_0) { XMVDemuxContext *xmv = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; AVStream *vst = NULL; uint32_t file_version; uint32_t this_packet_size; uint16_t audio_track; int VAR_1; avio_skip(pb, 4); this_packet_size =...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "XMVDemuxContext *xmv = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "AVStream *vst = NULL;", "uint32_t file_version;", "uint32_t this_packet_size;", "uint16_t audio_track;", "int VAR_1;", "avio_skip(pb, 4);", "this_packet_size = a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 51 ], [ 53, 55 ], [ 59 ], [ 63 ], [ 65 ...