id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
11,206
static av_cold int ffat_close_encoder(AVCodecContext *avctx) { ATDecodeContext *at = avctx->priv_data; AudioConverterDispose(at->converter); av_frame_unref(&at->new_in_frame); av_frame_unref(&at->in_frame); ff_af_queue_close(&at->afq); return 0; }
false
FFmpeg
143685a42bbc8861b626457ce4cb8b1ce4b0c436
static av_cold int ffat_close_encoder(AVCodecContext *avctx) { ATDecodeContext *at = avctx->priv_data; AudioConverterDispose(at->converter); av_frame_unref(&at->new_in_frame); av_frame_unref(&at->in_frame); ff_af_queue_close(&at->afq); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { ATDecodeContext *at = avctx->priv_data; AudioConverterDispose(at->converter); av_frame_unref(&at->new_in_frame); av_frame_unref(&at->in_frame); ff_af_queue_close(&at->afq); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "ATDecodeContext *at = avctx->priv_data;", "AudioConverterDispose(at->converter);", "av_frame_unref(&at->new_in_frame);", "av_frame_unref(&at->in_frame);", "ff_af_queue_close(&at->afq);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
11,207
static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, uint8_t *buf, int buf_size, int64_t wait_end) { RTSPState *rt = s->priv_data; RTSPStream *rtsp_st; int n, i, ret, timeout_cnt = 0; struct pollfd *p = rt->p; int *fds = NULL, fdsnum, fdsidx; ...
false
FFmpeg
f6161fccf8c5720ceac1ed1df8ba60ff8fed69f5
static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, uint8_t *buf, int buf_size, int64_t wait_end) { RTSPState *rt = s->priv_data; RTSPStream *rtsp_st; int n, i, ret, timeout_cnt = 0; struct pollfd *p = rt->p; int *fds = NULL, fdsnum, fdsidx; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, RTSPStream **VAR_1, uint8_t *VAR_2, int VAR_3, int64_t VAR_4) { RTSPState *rt = VAR_0->priv_data; RTSPStream *rtsp_st; int VAR_5, VAR_6, VAR_7, VAR_8 = 0; struct pollfd *VAR_9 = rt->VAR_9; int *VAR_10 = NULL, VAR_11, VAR_12;...
[ "static int FUNC_0(AVFormatContext *VAR_0, RTSPStream **VAR_1,\nuint8_t *VAR_2, int VAR_3, int64_t VAR_4)\n{", "RTSPState *rt = VAR_0->priv_data;", "RTSPStream *rtsp_st;", "int VAR_5, VAR_6, VAR_7, VAR_8 = 0;", "struct pollfd *VAR_9 = rt->VAR_9;", "int *VAR_10 = NULL, VAR_11, VAR_12;", "if (!VAR_9) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
11,208
static void booke_update_fixed_timer(CPUPPCState *env, uint8_t target_bit, uint64_t *next, struct QEMUTimer *timer) { ppc_tb_t *tb_env = env->tb_env; uint64_t lapse; ...
true
qemu
ab8131afee34d6aa427bd56ac18c4d3b6df80728
static void booke_update_fixed_timer(CPUPPCState *env, uint8_t target_bit, uint64_t *next, struct QEMUTimer *timer) { ppc_tb_t *tb_env = env->tb_env; uint64_t lapse; ...
{ "code": [ " uint64_t lapse;", " uint64_t period = 1 << (target_bit + 1);", " lapse = period - ((tb - (1 << target_bit)) & (period - 1));", " *next = now + muldiv64(lapse, get_ticks_per_sec(), tb_env->tb_freq);" ], "line_no": [ 13, 17, 29, 33 ] }
static void FUNC_0(CPUPPCState *VAR_0, uint8_t VAR_1, uint64_t *VAR_2, struct QEMUTimer *VAR_3) { ppc_tb_t *tb_env = VAR_0->tb_env; uint64_t lapse; uint64_t tb; ...
[ "static void FUNC_0(CPUPPCState *VAR_0,\nuint8_t VAR_1,\nuint64_t *VAR_2,\nstruct QEMUTimer *VAR_3)\n{", "ppc_tb_t *tb_env = VAR_0->tb_env;", "uint64_t lapse;", "uint64_t tb;", "uint64_t period = 1 << (VAR_1 + 1);", "uint64_t now;", "now = qemu_get_clock_ns(vm_clock);", "tb ...
[ 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ] ]
11,209
static void spapr_machine_init(MachineState *machine) { sPAPRMachineState *spapr = SPAPR_MACHINE(machine); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(machine); const char *kernel_filename = machine->kernel_filename; const char *initrd_filename = machine->initrd_filename; PCIHostState *phb; ...
true
qemu
33face6b8981add8eba1f7cdaf4cf6cede415d2e
static void spapr_machine_init(MachineState *machine) { sPAPRMachineState *spapr = SPAPR_MACHINE(machine); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(machine); const char *kernel_filename = machine->kernel_filename; const char *initrd_filename = machine->initrd_filename; PCIHostState *phb; ...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { sPAPRMachineState *spapr = SPAPR_MACHINE(VAR_0); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(VAR_0); const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; PCIHostState *phb; int VAR_3; MemoryRegion *sysmem = get_system_memory(); ...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "sPAPRMachineState *spapr = SPAPR_MACHINE(VAR_0);", "sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(VAR_0);", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "PCIHostState *phb;", "int VAR_3;", "MemoryRegion *sysmem = get_system...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 22 ],...
11,210
static int append_flv_data(RTMPContext *rt, RTMPPacket *pkt, int skip) { int old_flv_size, ret; PutByteContext pbc; const uint8_t *data = pkt->data + skip; const int size = pkt->size - skip; uint32_t ts = pkt->timestamp; if (pkt->type == RTMP_PT_AUDIO) { rt->has_au...
true
FFmpeg
e55376a1fd5abebbb0a082aa20739d58c2260a37
static int append_flv_data(RTMPContext *rt, RTMPPacket *pkt, int skip) { int old_flv_size, ret; PutByteContext pbc; const uint8_t *data = pkt->data + skip; const int size = pkt->size - skip; uint32_t ts = pkt->timestamp; if (pkt->type == RTMP_PT_AUDIO) { rt->has_au...
{ "code": [ " bytestream2_put_be32(&pbc, 0);" ], "line_no": [ 57 ] }
static int FUNC_0(RTMPContext *VAR_0, RTMPPacket *VAR_1, int VAR_2) { int VAR_3, VAR_4; PutByteContext pbc; const uint8_t *VAR_5 = VAR_1->VAR_5 + VAR_2; const int VAR_6 = VAR_1->VAR_6 - VAR_2; uint32_t ts = VAR_1->timestamp; if (VAR_1->type == RTMP_PT_AUDIO) { VAR_...
[ "static int FUNC_0(RTMPContext *VAR_0, RTMPPacket *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4;", "PutByteContext pbc;", "const uint8_t *VAR_5 = VAR_1->VAR_5 + VAR_2;", "const int VAR_6 = VAR_1->VAR_6 - VAR_2;", "uint32_t ts = VAR_1->timestamp;", "if (VAR_1->type == RTMP_PT_AUDIO) {", "VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
11,211
static void decode_b(AVCodecContext *ctx, int row, int col, struct VP9Filter *lflvl, ptrdiff_t yoff, ptrdiff_t uvoff, enum BlockLevel bl, enum BlockPartition bp) { VP9Context *s = ctx->priv_data; VP9Block *b = s->b; enum BlockSize bs = bl * 3 + bp; int by...
true
FFmpeg
a30a8beeb3dc44b666d0e1aefbd823752f321ac1
static void decode_b(AVCodecContext *ctx, int row, int col, struct VP9Filter *lflvl, ptrdiff_t yoff, ptrdiff_t uvoff, enum BlockLevel bl, enum BlockPartition bp) { VP9Context *s = ctx->priv_data; VP9Block *b = s->b; enum BlockSize bs = bl * 3 + bp; int by...
{ "code": [ " emu[0] = (col + w4) * 8 > f->linesize[0] ||", " emu[1] = (col + w4) * 4 > f->linesize[1] ||" ], "line_no": [ 187, 191 ] }
static void FUNC_0(AVCodecContext *VAR_0, int VAR_1, int VAR_2, struct VP9Filter *VAR_3, ptrdiff_t VAR_4, ptrdiff_t VAR_5, enum BlockLevel VAR_6, enum BlockPartition VAR_7) { VP9Context *s = VAR_0->priv_data; VP9Block *b = s->b; enum BlockSize VAR_8 = VAR_6 * ...
[ "static void FUNC_0(AVCodecContext *VAR_0, int VAR_1, int VAR_2,\nstruct VP9Filter *VAR_3, ptrdiff_t VAR_4, ptrdiff_t VAR_5,\nenum BlockLevel VAR_6, enum BlockPartition VAR_7)\n{", "VP9Context *s = VAR_0->priv_data;", "VP9Block *b = s->b;", "enum BlockSize VAR_8 = VAR_6 * 3 + VAR_7;", "int VAR_9 = s->VAR_9;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
11,212
static void unset_dirty_tracking(void) { BlkMigDevState *bmds; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { bdrv_release_dirty_bitmap(bmds->bs, bmds->dirty_bitmap); } }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void unset_dirty_tracking(void) { BlkMigDevState *bmds; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { bdrv_release_dirty_bitmap(bmds->bs, bmds->dirty_bitmap); } }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { BlkMigDevState *bmds; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { bdrv_release_dirty_bitmap(bmds->bs, bmds->dirty_bitmap); } }
[ "static void FUNC_0(void)\n{", "BlkMigDevState *bmds;", "QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {", "bdrv_release_dirty_bitmap(bmds->bs, bmds->dirty_bitmap);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
11,213
static void get_sel_entry(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { unsigned int val; IPMI_CHECK_CMD_LEN(8); if (cmd[6]) { IPMI_CHECK_RE...
true
qemu
4f298a4b2957b7833bc607c951ca27c458d98d88
static void get_sel_entry(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { unsigned int val; IPMI_CHECK_CMD_LEN(8); if (cmd[6]) { IPMI_CHECK_RE...
{ "code": [ " IPMI_CHECK_CMD_LEN(8);", " IPMI_CHECK_CMD_LEN(8);", " IPMI_CHECK_CMD_LEN(8);", " IPMI_CHECK_CMD_LEN(8);", " IPMI_CHECK_CMD_LEN(8);" ], "line_no": [ 15, 15, 15, 15, 15 ] }
static void FUNC_0(IPMIBmcSim *VAR_0, uint8_t *VAR_1, unsigned int VAR_2, uint8_t *VAR_3, unsigned int *VAR_4, unsigned int VAR_5) { unsigned int VAR_6; IPMI_CHECK_CMD_LEN(8); if (VAR_1[6]) { IPMI_CHECK_RESERVATI...
[ "static void FUNC_0(IPMIBmcSim *VAR_0,\nuint8_t *VAR_1, unsigned int VAR_2,\nuint8_t *VAR_3, unsigned int *VAR_4,\nunsigned int VAR_5)\n{", "unsigned int VAR_6;", "IPMI_CHECK_CMD_LEN(8);", "if (VAR_1[6]) {", "IPMI_CHECK_RESERVATION(2, VAR_0->sel.reservation);", "}", "if (VAR_0->sel.next_free == 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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
11,214
int inet_dgram_opts(QemuOpts *opts, Error **errp) { struct addrinfo ai, *peer = NULL, *local = NULL; const char *addr; const char *port; int sock = -1, rc; /* lookup peer addr */ memset(&ai,0, sizeof(ai)); ai.ai_flags = AI_CANONNAME | AI_ADDRCONFIG; ai.ai_family = PF_UNSPEC; ...
true
qemu
3de3d698d942d1116152417f882c897b26b44e41
int inet_dgram_opts(QemuOpts *opts, Error **errp) { struct addrinfo ai, *peer = NULL, *local = NULL; const char *addr; const char *port; int sock = -1, rc; memset(&ai,0, sizeof(ai)); ai.ai_flags = AI_CANONNAME | AI_ADDRCONFIG; ai.ai_family = PF_UNSPEC; ai.ai_socktype = S...
{ "code": [ " ai.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;", " ai.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;" ], "line_no": [ 19, 19 ] }
int FUNC_0(QemuOpts *VAR_0, Error **VAR_1) { struct addrinfo VAR_2, *VAR_3 = NULL, *VAR_4 = NULL; const char *VAR_5; const char *VAR_6; int VAR_7 = -1, VAR_8; memset(&VAR_2,0, sizeof(VAR_2)); VAR_2.ai_flags = AI_CANONNAME | AI_ADDRCONFIG; VAR_2.ai_family = PF_UNSPEC; VAR...
[ "int FUNC_0(QemuOpts *VAR_0, Error **VAR_1)\n{", "struct addrinfo VAR_2, *VAR_3 = NULL, *VAR_4 = NULL;", "const char *VAR_5;", "const char *VAR_6;", "int VAR_7 = -1, VAR_8;", "memset(&VAR_2,0, sizeof(VAR_2));", "VAR_2.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;", "VAR_2.ai_family = PF_UNSPEC;", "VAR_2....
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [...
11,215
e1000e_io_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { E1000EState *s = opaque; uint32_t idx; switch (addr) { case E1000_IOADDR: trace_e1000e_io_write_addr(val); s->ioaddr = (uint32_t) val; return; case E1000_IODATA: if ...
true
qemu
de5dca1b792ada25c29a95c8f84e01f4300aef9c
e1000e_io_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { E1000EState *s = opaque; uint32_t idx; switch (addr) { case E1000_IOADDR: trace_e1000e_io_write_addr(val); s->ioaddr = (uint32_t) val; return; case E1000_IODATA: if ...
{ "code": [ " uint32_t idx;", " uint32_t idx;" ], "line_no": [ 9, 9 ] }
FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { E1000EState *s = VAR_0; uint32_t idx; switch (VAR_1) { case E1000_IOADDR: trace_e1000e_io_write_addr(VAR_2); s->ioaddr = (uint32_t) VAR_2; return; case E1000_IODATA: if (e...
[ "FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "E1000EState *s = VAR_0;", "uint32_t idx;", "switch (VAR_1) {", "case E1000_IOADDR:\ntrace_e1000e_io_write_addr(VAR_2);", "s->ioaddr = (uint32_t) VAR_2;", "return;", "case E1000_IODATA:\nif (e1000e_io_get_reg_index(s, &idx)) {", ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ] ]
11,216
static int find_partition(BlockDriverState *bs, int partition, off_t *offset, off_t *size) { struct partition_record mbr[4]; uint8_t data[512]; int i; int ext_partnum = 4; if (bdrv_read(bs, 0, data, 1)) errx(EINVAL, "error while reading"); if (data[...
true
qemu
b6353bea572f8cc0f35fb7dc438ce74c08dda9e7
static int find_partition(BlockDriverState *bs, int partition, off_t *offset, off_t *size) { struct partition_record mbr[4]; uint8_t data[512]; int i; int ext_partnum = 4; if (bdrv_read(bs, 0, data, 1)) errx(EINVAL, "error while reading"); if (data[...
{ "code": [ " errx(EINVAL, \"error while reading\");", " errx(EINVAL, \"error while reading\");" ], "line_no": [ 19, 57 ] }
static int FUNC_0(BlockDriverState *VAR_0, int VAR_1, off_t *VAR_2, off_t *VAR_3) { struct partition_record VAR_4[4]; uint8_t data[512]; int VAR_5; int VAR_6 = 4; if (bdrv_read(VAR_0, 0, data, 1)) errx(EINVAL, "error while reading"); if (data[510] !...
[ "static int FUNC_0(BlockDriverState *VAR_0, int VAR_1,\noff_t *VAR_2, off_t *VAR_3)\n{", "struct partition_record VAR_4[4];", "uint8_t data[512];", "int VAR_5;", "int VAR_6 = 4;", "if (bdrv_read(VAR_0, 0, data, 1))\nerrx(EINVAL, \"error while reading\");", "if (data[510] != 0x55 || data[511] != 0xaa) {"...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55, 57 ...
11,217
int register_savevm_live(DeviceState *dev, const char *idstr, int instance_id, int version_id, SaveVMHandlers *ops, void *opaque) { SaveStateEntry *se; se = g_malloc0(sizeof(Sav...
true
qemu
97f3ad35517e0d02c0149637d1bb10713c52b057
int register_savevm_live(DeviceState *dev, const char *idstr, int instance_id, int version_id, SaveVMHandlers *ops, void *opaque) { SaveStateEntry *se; se = g_malloc0(sizeof(Sav...
{ "code": [ " se = g_malloc0(sizeof(SaveStateEntry));", " se->compat = g_malloc0(sizeof(CompatEntry));", " se = g_malloc0(sizeof(SaveStateEntry));", " se->compat = g_malloc0(sizeof(CompatEntry));" ], "line_no": [ 19, 55, 19, 55 ] }
int FUNC_0(DeviceState *VAR_0, const char *VAR_1, int VAR_2, int VAR_3, SaveVMHandlers *VAR_4, void *VAR_5) { SaveStateEntry *se; se = g_malloc0(sizeof(SaveStateEntry)); se...
[ "int FUNC_0(DeviceState *VAR_0,\nconst char *VAR_1,\nint VAR_2,\nint VAR_3,\nSaveVMHandlers *VAR_4,\nvoid *VAR_5)\n{", "SaveStateEntry *se;", "se = g_malloc0(sizeof(SaveStateEntry));", "se->VAR_3 = VAR_3;", "se->section_id = savevm_state.global_section_id++;", "se->VAR_4 = VAR_4;", "se->VAR_5 = VAR_5;",...
[ 0, 0, 1, 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 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
11,218
static int l2_load(BlockDriverState *bs, uint64_t l2_offset, uint64_t **l2_table) { BDRVQcowState *s = bs->opaque; int min_index; int ret; /* seek if the table for the given offset is in the cache */ *l2_table = seek_l2_table(s, l2_offset); if (*l2_table != NULL) { retur...
true
qemu
1c02e2a17104fe7fc11893125864dc0daf1e6d5b
static int l2_load(BlockDriverState *bs, uint64_t l2_offset, uint64_t **l2_table) { BDRVQcowState *s = bs->opaque; int min_index; int ret; *l2_table = seek_l2_table(s, l2_offset); if (*l2_table != NULL) { return 0; } min_index = l2_cache_new_entry(bs...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t **VAR_2) { BDRVQcowState *s = VAR_0->opaque; int VAR_3; int VAR_4; *VAR_2 = seek_l2_table(s, VAR_1); if (*VAR_2 != NULL) { return 0; } VAR_3 = l2_cache_new_entry(VAR_0); *VAR_2 ...
[ "static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nuint64_t **VAR_2)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_3;", "int VAR_4;", "*VAR_2 = seek_l2_table(s, VAR_1);", "if (*VAR_2 != NULL) {", "return 0;", "}", "VAR_3 = l2_cache_new_entry(VAR_0);", "*VAR_2 = s->l2_cache + (VAR_3 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 48 ], [ 50 ], [ 54 ], [ 56 ], [ 60 ], [ 62 ...
11,219
print_operand_value (char *buf, size_t bufsize, int hex, bfd_vma disp) { if (address_mode == mode_64bit) { if (hex) { char tmp[30]; int i; buf[0] = '0'; buf[1] = 'x'; snprintf_vma (tmp, sizeof(tmp), disp); for (i = 0; tmp[i] == '0' && tmp[i + 1]; i++); pstrcpy...
true
qemu
af18078d8057203b1ed26ac5534d233aabb36886
print_operand_value (char *buf, size_t bufsize, int hex, bfd_vma disp) { if (address_mode == mode_64bit) { if (hex) { char tmp[30]; int i; buf[0] = '0'; buf[1] = 'x'; snprintf_vma (tmp, sizeof(tmp), disp); for (i = 0; tmp[i] == '0' && tmp[i + 1]; i++); pstrcpy...
{ "code": [ "\t for (i = 0; tmp[i] == '0' && tmp[i + 1]; i++);" ], "line_no": [ 23 ] }
FUNC_0 (char *VAR_0, size_t VAR_1, int VAR_2, bfd_vma VAR_3) { if (address_mode == mode_64bit) { if (VAR_2) { char VAR_6[30]; int VAR_6; VAR_0[0] = '0'; VAR_0[1] = 'x'; snprintf_vma (VAR_6, sizeof(VAR_6), VAR_3); for (VAR_6 = 0; VAR_6[VAR_6] == '0' && VAR_6[VAR_6 + 1]; V...
[ "FUNC_0 (char *VAR_0, size_t VAR_1, int VAR_2, bfd_vma VAR_3)\n{", "if (address_mode == mode_64bit)\n{", "if (VAR_2)\n{", "char VAR_6[30];", "int VAR_6;", "VAR_0[0] = '0';", "VAR_0[1] = 'x';", "snprintf_vma (VAR_6, sizeof(VAR_6), VAR_3);", "for (VAR_6 = 0; VAR_6[VAR_6] == '0' && VAR_6[VAR_6 + 1]; VA...
[ 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 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ...
11,220
void OPPROTO op_4xx_tlbsx_check (void) { int tmp; tmp = xer_so; if (T0 != -1) tmp |= 0x02; env->crf[0] = tmp; RETURN(); }
true
qemu
6f2d8978728c48ca46f5c01835438508aace5c64
void OPPROTO op_4xx_tlbsx_check (void) { int tmp; tmp = xer_so; if (T0 != -1) tmp |= 0x02; env->crf[0] = tmp; RETURN(); }
{ "code": [ " if (T0 != -1)" ], "line_no": [ 11 ] }
void VAR_0 op_4xx_tlbsx_check (void) { int tmp; tmp = xer_so; if (T0 != -1) tmp |= 0x02; env->crf[0] = tmp; RETURN(); }
[ "void VAR_0 op_4xx_tlbsx_check (void)\n{", "int tmp;", "tmp = xer_so;", "if (T0 != -1)\ntmp |= 0x02;", "env->crf[0] = tmp;", "RETURN();", "}" ]
[ 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ] ]
11,221
type_init(boston_register_types) static void gen_firmware(uint32_t *p, hwaddr kernel_entry, hwaddr fdt_addr, bool is_64b) { const uint32_t cm_base = 0x16100000; const uint32_t gic_base = 0x16120000; const uint32_t cpc_base = 0x16200000; /* Move CM GCRs */ if (is_...
true
qemu
2d896b454a0e19ec4c1ddbb0e0b65b7e54fcedf3
type_init(boston_register_types) static void gen_firmware(uint32_t *p, hwaddr kernel_entry, hwaddr fdt_addr, bool is_64b) { const uint32_t cm_base = 0x16100000; const uint32_t gic_base = 0x16120000; const uint32_t cpc_base = 0x16200000; if (is_64b) { st...
{ "code": [ "type_init(boston_register_types)", "static void gen_firmware(uint32_t *p, hwaddr kernel_entry, hwaddr fdt_addr,", " bool is_64b)", " const uint32_t cm_base = 0x16100000;", " const uint32_t gic_base = 0x16120000;", " const uint32_t cpc_base = 0x1620...
FUNC_0(VAR_0) static void gen_firmware(uint32_t *p, hwaddr kernel_entry, hwaddr fdt_addr, bool is_64b) { const uint32_t VAR_1 = 0x16100000; const uint32_t VAR_2 = 0x16120000; const uint32_t VAR_3 = 0x16200000; if (is_64b) { stl_p(p++, 0x40287803); ...
[ "FUNC_0(VAR_0)\nstatic void gen_firmware(uint32_t *p, hwaddr kernel_entry, hwaddr fdt_addr,\nbool is_64b)\n{", "const uint32_t VAR_1 = 0x16100000;", "const uint32_t VAR_2 = 0x16120000;", "const uint32_t VAR_3 = 0x16200000;", "if (is_64b) {", "stl_p(p++, 0x40287803);", "stl_p(p++, 0x00084138);", "} els...
[ 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, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
11,222
Jpeg2000TgtNode *ff_j2k_tag_tree_init(int w, int h) { int pw = w, ph = h; Jpeg2000TgtNode *res, *t, *t2; int32_t tt_size; tt_size = tag_tree_size(w, h); t = res = av_mallocz(tt_size, sizeof(*t)); if (!res) return NULL; while (w > 1 || h > 1) { int i, j; ...
true
FFmpeg
9ea242962c4093a5523deef124a98193bbb36730
Jpeg2000TgtNode *ff_j2k_tag_tree_init(int w, int h) { int pw = w, ph = h; Jpeg2000TgtNode *res, *t, *t2; int32_t tt_size; tt_size = tag_tree_size(w, h); t = res = av_mallocz(tt_size, sizeof(*t)); if (!res) return NULL; while (w > 1 || h > 1) { int i, j; ...
{ "code": [ " t = res = av_mallocz(tt_size, sizeof(*t));" ], "line_no": [ 17 ] }
Jpeg2000TgtNode *FUNC_0(int w, int h) { int VAR_0 = w, VAR_1 = h; Jpeg2000TgtNode *res, *t, *t2; int32_t tt_size; tt_size = tag_tree_size(w, h); t = res = av_mallocz(tt_size, sizeof(*t)); if (!res) return NULL; while (w > 1 || h > 1) { int VAR_2, VAR_3; ...
[ "Jpeg2000TgtNode *FUNC_0(int w, int h)\n{", "int VAR_0 = w, VAR_1 = h;", "Jpeg2000TgtNode *res, *t, *t2;", "int32_t tt_size;", "tt_size = tag_tree_size(w, h);", "t = res = av_mallocz(tt_size, sizeof(*t));", "if (!res)\nreturn NULL;", "while (w > 1 || h > 1) {", "int VAR_2, VAR_3;", "VAR_0 = w;", ...
[ 0, 0, 0, 0, 0, 1, 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 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [...
11,223
static void test_hmac_speed(const void *opaque) { size_t chunk_size = (size_t)opaque; QCryptoHmac *hmac = NULL; uint8_t *in = NULL, *out = NULL; size_t out_len = 0; double total = 0.0; struct iovec iov; Error *err = NULL; int ret; if (!qcrypto_hmac_supports(QCRYPTO_HASH_A...
true
qemu
8c0a6dc96cd14c48da4a61fe35431f36d6e6e467
static void test_hmac_speed(const void *opaque) { size_t chunk_size = (size_t)opaque; QCryptoHmac *hmac = NULL; uint8_t *in = NULL, *out = NULL; size_t out_len = 0; double total = 0.0; struct iovec iov; Error *err = NULL; int ret; if (!qcrypto_hmac_supports(QCRYPTO_HASH_A...
{ "code": [ " g_print(\"Testing chunk_size %ld bytes \", chunk_size);", " g_print(\"Testing chunk_size %ld bytes \", chunk_size);", " g_print(\"Testing chunk_size %ld bytes \", chunk_size);" ], "line_no": [ 81, 81, 81 ] }
static void FUNC_0(const void *VAR_0) { size_t chunk_size = (size_t)VAR_0; QCryptoHmac *hmac = NULL; uint8_t *in = NULL, *out = NULL; size_t out_len = 0; double VAR_1 = 0.0; struct iovec VAR_2; Error *err = NULL; int VAR_3; if (!qcrypto_hmac_supports(QCRYPTO_HASH_ALG_SHA2...
[ "static void FUNC_0(const void *VAR_0)\n{", "size_t chunk_size = (size_t)VAR_0;", "QCryptoHmac *hmac = NULL;", "uint8_t *in = NULL, *out = NULL;", "size_t out_len = 0;", "double VAR_1 = 0.0;", "struct iovec VAR_2;", "Error *err = NULL;", "int VAR_3;", "if (!qcrypto_hmac_supports(QCRYPTO_HASH_ALG_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, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49 ], [...
11,224
static int smush_read_packet(AVFormatContext *ctx, AVPacket *pkt) { SMUSHContext *smush = ctx->priv_data; AVIOContext *pb = ctx->pb; int done = 0; while (!done) { uint32_t sig, size; if (url_feof(pb)) return AVERROR_EOF; sig = avio_rb32(pb); ...
true
FFmpeg
d98364edcedb71662cb1761bd30d67053d60a3c6
static int smush_read_packet(AVFormatContext *ctx, AVPacket *pkt) { SMUSHContext *smush = ctx->priv_data; AVIOContext *pb = ctx->pb; int done = 0; while (!done) { uint32_t sig, size; if (url_feof(pb)) return AVERROR_EOF; sig = avio_rb32(pb); ...
{ "code": [ " if (av_get_packet(pb, pkt, size) < 0)" ], "line_no": [ 39 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { SMUSHContext *smush = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; int VAR_2 = 0; while (!VAR_2) { uint32_t sig, size; if (url_feof(pb)) return AVERROR_EOF; sig = avio_rb32(pb); ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "SMUSHContext *smush = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "int VAR_2 = 0;", "while (!VAR_2) {", "uint32_t sig, size;", "if (url_feof(pb))\nreturn AVERROR_EOF;", "sig = avio_rb32(pb);", "size = avio_rb32(pb);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35, 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53, 55 ], [ 59 ...
11,225
static inline void mix_dualmono_to_stereo(AC3DecodeContext *ctx) { int i; float tmp; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) { tmp = output[1][i] + output[2][i]; output[1][i] = output[2][i] = tmp; } }
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline void mix_dualmono_to_stereo(AC3DecodeContext *ctx) { int i; float tmp; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) { tmp = output[1][i] + output[2][i]; output[1][i] = output[2][i] = tmp; } }
{ "code": [], "line_no": [] }
static inline void FUNC_0(AC3DecodeContext *VAR_0) { int VAR_1; float VAR_2; float (*VAR_3)[256] = VAR_0->audio_block.block_output; for (VAR_1 = 0; VAR_1 < 256; VAR_1++) { VAR_2 = VAR_3[1][VAR_1] + VAR_3[2][VAR_1]; VAR_3[1][VAR_1] = VAR_3[2][VAR_1] = VAR_2; } }
[ "static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{", "int VAR_1;", "float VAR_2;", "float (*VAR_3)[256] = VAR_0->audio_block.block_output;", "for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {", "VAR_2 = VAR_3[1][VAR_1] + VAR_3[2][VAR_1];", "VAR_3[1][VAR_1] = VAR_3[2][VAR_1] = VAR_2;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
11,226
static OSStatus ffat_encode_callback(AudioConverterRef converter, UInt32 *nb_packets, AudioBufferList *data, AudioStreamPacketDescription **packets, void *inctx) { AVCodecContext *avctx = inctx; ...
false
FFmpeg
143685a42bbc8861b626457ce4cb8b1ce4b0c436
static OSStatus ffat_encode_callback(AudioConverterRef converter, UInt32 *nb_packets, AudioBufferList *data, AudioStreamPacketDescription **packets, void *inctx) { AVCodecContext *avctx = inctx; ...
{ "code": [], "line_no": [] }
static OSStatus FUNC_0(AudioConverterRef converter, UInt32 *nb_packets, AudioBufferList *data, AudioStreamPacketDescription **packets, void *inctx) { AVCodecContext *avctx = inctx; ATDecodeContex...
[ "static OSStatus FUNC_0(AudioConverterRef converter, UInt32 *nb_packets,\nAudioBufferList *data,\nAudioStreamPacketDescription **packets,\nvoid *inctx)\n{", "AVCodecContext *avctx = inctx;", "ATDecodeContext *at = avctx->priv_data;", "if (at->eof) {", "*nb_packets = 0;", "return 0;", "}", "av_frame_un...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49, 51 ], [ 53 ], [...
11,227
void rgb16tobgr16(const uint8_t *src, uint8_t *dst, long src_size) { long i; long num_pixels = src_size >> 1; for(i=0; i<num_pixels; i++) { unsigned b,g,r; register uint16_t rgb; rgb = src[2*i]; r = rgb&0x1F; g = (rgb&0x7E0)>>5; b = (rgb&0xF800)>>11; dst[2*i] = (b&0x...
true
FFmpeg
6e42e6c4b410dbef8b593c2d796a5dad95f89ee4
void rgb16tobgr16(const uint8_t *src, uint8_t *dst, long src_size) { long i; long num_pixels = src_size >> 1; for(i=0; i<num_pixels; i++) { unsigned b,g,r; register uint16_t rgb; rgb = src[2*i]; r = rgb&0x1F; g = (rgb&0x7E0)>>5; b = (rgb&0xF800)>>11; dst[2*i] = (b&0x...
{ "code": [ "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tfor(i=0; i<num_pixels; i++)", "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tfor(i=0; i<num_pixels; i++)", "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tfor(i=0; ...
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2) { long VAR_3; long VAR_4 = VAR_2 >> 1; for(VAR_3=0; VAR_3<VAR_4; VAR_3++) { unsigned VAR_5,VAR_6,VAR_7; register uint16_t VAR_8; VAR_8 = VAR_0[2*VAR_3]; VAR_7 = VAR_8&0x1F; VAR_6 = (VAR_8&0x7E0)>>5; VAR_5 = (VAR...
[ "void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2)\n{", "long VAR_3;", "long VAR_4 = VAR_2 >> 1;", "for(VAR_3=0; VAR_3<VAR_4; VAR_3++)", "{", "unsigned VAR_5,VAR_6,VAR_7;", "register uint16_t VAR_8;", "VAR_8 = VAR_0[2*VAR_3];", "VAR_7 = VAR_8&0x1F;", "VAR_6 = (VAR_8&0x7E0)>>5;", "VAR...
[ 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
11,228
static uint32_t ehci_mem_readl(void *ptr, target_phys_addr_t addr) { EHCIState *s = ptr; uint32_t val; val = s->mmio[addr] | (s->mmio[addr+1] << 8) | (s->mmio[addr+2] << 16) | (s->mmio[addr+3] << 24); trace_usb_ehci_mmio_readl(addr, addr2str(addr), val); return val; }
true
qemu
3e4f910c8d490a1490409a7e381dbbb229f9d272
static uint32_t ehci_mem_readl(void *ptr, target_phys_addr_t addr) { EHCIState *s = ptr; uint32_t val; val = s->mmio[addr] | (s->mmio[addr+1] << 8) | (s->mmio[addr+2] << 16) | (s->mmio[addr+3] << 24); trace_usb_ehci_mmio_readl(addr, addr2str(addr), val); return val; }
{ "code": [ " uint32_t val;", " return val;", "static uint32_t ehci_mem_readl(void *ptr, target_phys_addr_t addr)", " val = s->mmio[addr] | (s->mmio[addr+1] << 8) |", " (s->mmio[addr+2] << 16) | (s->mmio[addr+3] << 24);", " trace_usb_ehci_mmio_readl(addr, addr2str(addr), v...
static uint32_t FUNC_0(void *ptr, target_phys_addr_t addr) { EHCIState *s = ptr; uint32_t val; val = s->mmio[addr] | (s->mmio[addr+1] << 8) | (s->mmio[addr+2] << 16) | (s->mmio[addr+3] << 24); trace_usb_ehci_mmio_readl(addr, addr2str(addr), val); return val; }
[ "static uint32_t FUNC_0(void *ptr, target_phys_addr_t addr)\n{", "EHCIState *s = ptr;", "uint32_t val;", "val = s->mmio[addr] | (s->mmio[addr+1] << 8) |\n(s->mmio[addr+2] << 16) | (s->mmio[addr+3] << 24);", "trace_usb_ehci_mmio_readl(addr, addr2str(addr), val);", "return val;", "}" ]
[ 1, 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ] ]
11,229
static void qmp_input_type_number(Visitor *v, double *obj, const char *name, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); QObject *qobj = qmp_input_get_object(qiv, name, true); if (!qobj || (qobject_type(qobj) != QTYPE_QFLOAT && qobject_type(qobj) != QT...
true
qemu
fcf73f66a67f5e58c18216f8c8651e38cf4d90af
static void qmp_input_type_number(Visitor *v, double *obj, const char *name, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); QObject *qobj = qmp_input_get_object(qiv, name, true); if (!qobj || (qobject_type(qobj) != QTYPE_QFLOAT && qobject_type(qobj) != QT...
{ "code": [ " QObject *qobj = qmp_input_get_object(qiv, name, true);", " if (!qobj || (qobject_type(qobj) != QTYPE_QFLOAT &&", " qobject_type(qobj) != QTYPE_QINT)) {", " error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : \"null\",", " \"number\");", ...
static void FUNC_0(Visitor *VAR_0, double *VAR_1, const char *VAR_2, Error **VAR_3) { QmpInputVisitor *qiv = to_qiv(VAR_0); QObject *qobj = qmp_input_get_object(qiv, VAR_2, true); if (!qobj || (qobject_type(qobj) != QTYPE_QFLOAT && qobject_type(qobj) != QTYP...
[ "static void FUNC_0(Visitor *VAR_0, double *VAR_1, const char *VAR_2,\nError **VAR_3)\n{", "QmpInputVisitor *qiv = to_qiv(VAR_0);", "QObject *qobj = qmp_input_get_object(qiv, VAR_2, true);", "if (!qobj || (qobject_type(qobj) != QTYPE_QFLOAT &&\nqobject_type(qobj) != QTYPE_QINT)) {", "error_setg(VAR_3, QERR_...
[ 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
11,230
int bdrv_all_find_snapshot(const char *name, BlockDriverState **first_bad_bs) { QEMUSnapshotInfo sn; int err = 0; BlockDriverState *bs; BdrvNextIterator *it = NULL; while (err == 0 && (it = bdrv_next(it, &bs))) { AioContext *ctx = bdrv_get_aio_context(bs); aio_context_acq...
true
qemu
88be7b4be4aa17c88247e162bdd7577ea79db94f
int bdrv_all_find_snapshot(const char *name, BlockDriverState **first_bad_bs) { QEMUSnapshotInfo sn; int err = 0; BlockDriverState *bs; BdrvNextIterator *it = NULL; while (err == 0 && (it = bdrv_next(it, &bs))) { AioContext *ctx = bdrv_get_aio_context(bs); aio_context_acq...
{ "code": [ " BdrvNextIterator *it = NULL;", " BdrvNextIterator *it = NULL;", " BdrvNextIterator *it = NULL;", " BlockDriverState *bs;", " BdrvNextIterator *it = NULL;", " BdrvNextIterator *it = NULL;", " BdrvNextIterator *it = NULL;", " BdrvNextIterator *it = N...
int FUNC_0(const char *VAR_0, BlockDriverState **VAR_1) { QEMUSnapshotInfo sn; int VAR_2 = 0; BlockDriverState *bs; BdrvNextIterator *it = NULL; while (VAR_2 == 0 && (it = bdrv_next(it, &bs))) { AioContext *ctx = bdrv_get_aio_context(bs); aio_context_acquire(ctx); ...
[ "int FUNC_0(const char *VAR_0, BlockDriverState **VAR_1)\n{", "QEMUSnapshotInfo sn;", "int VAR_2 = 0;", "BlockDriverState *bs;", "BdrvNextIterator *it = NULL;", "while (VAR_2 == 0 && (it = bdrv_next(it, &bs))) {", "AioContext *ctx = bdrv_get_aio_context(bs);", "aio_context_acquire(ctx);", "if (bdrv_...
[ 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
11,231
static int cow_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *num_same) { int changed; if (nb_sectors == 0) { *num_same = nb_sectors; return 0; } changed = is_bit_set(bs, sector_num); if (changed < 0) { return 0; /* XXX: how to return I/O ...
true
qemu
81145834d39897c6f153ac26a4077f90f269c5fc
static int cow_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *num_same) { int changed; if (nb_sectors == 0) { *num_same = nb_sectors; return 0; } changed = is_bit_set(bs, sector_num); if (changed < 0) { return 0; } for (*num_s...
{ "code": [ "static int cow_is_allocated(BlockDriverState *bs, int64_t sector_num,", " int nb_sectors, int *num_same)" ], "line_no": [ 1, 3 ] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2, int *VAR_3) { int VAR_4; if (VAR_2 == 0) { *VAR_3 = VAR_2; return 0; } VAR_4 = is_bit_set(VAR_0, VAR_1); if (VAR_4 < 0) { return 0; } for (*VAR_3 = 1; *VAR_3 < VAR_2; (*VAR_3)++) { if ...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nint VAR_2, int *VAR_3)\n{", "int VAR_4;", "if (VAR_2 == 0) {", "*VAR_3 = VAR_2;", "return 0;", "}", "VAR_4 = is_bit_set(VAR_0, VAR_1);", "if (VAR_4 < 0) {", "return 0;", "}", "for (*VAR_3 = 1; *VAR_3 < VAR_2; (*VAR_3)++) {", "if (is_b...
[ 1, 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 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ] ]
11,232
static inline void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) { TranslationBlock *tb; tb = ctx->tb; if ((tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK)) { if (n == 0) gen_op_goto_tb0(TBPARAM(tb)); else gen_op_goto_tb1(TBPARAM(tb)); ...
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
static inline void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest) { TranslationBlock *tb; tb = ctx->tb; if ((tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK)) { if (n == 0) gen_op_goto_tb0(TBPARAM(tb)); else gen_op_goto_tb1(TBPARAM(tb)); ...
{ "code": [ " } else {", " } else {", " } else {", " } else {", " } else {", " } else {", " } else {", " } else {", " } else {", " } else {", " gen_op_set_T1(dest);", " gen_op_b_T1();", " gen_op_set_T1(dest);", ...
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, target_ulong VAR_2) { TranslationBlock *tb; tb = VAR_0->tb; if ((tb->pc & TARGET_PAGE_MASK) == (VAR_2 & TARGET_PAGE_MASK)) { if (VAR_1 == 0) gen_op_goto_tb0(TBPARAM(tb)); else gen_op_goto_tb1(TBPARAM(tb...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, target_ulong VAR_2)\n{", "TranslationBlock *tb;", "tb = VAR_0->tb;", "if ((tb->pc & TARGET_PAGE_MASK) == (VAR_2 & TARGET_PAGE_MASK)) {", "if (VAR_1 == 0)\ngen_op_goto_tb0(TBPARAM(tb));", "else\ngen_op_goto_tb1(TBPARAM(tb));", "gen_op_set_T1(VAR_...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ...
11,233
int qcow2_alloc_cluster_link_l2(BlockDriverState *bs, QCowL2Meta *m) { BDRVQcowState *s = bs->opaque; int i, j = 0, l2_index, ret; uint64_t *old_cluster, *l2_table; uint64_t cluster_offset = m->alloc_offset; trace_qcow2_cluster_link_l2(qemu_coroutine_self(), m->nb_clusters); assert(m->n...
true
qemu
c01dbccbad647be5784be39eb8fa0144732295db
int qcow2_alloc_cluster_link_l2(BlockDriverState *bs, QCowL2Meta *m) { BDRVQcowState *s = bs->opaque; int i, j = 0, l2_index, ret; uint64_t *old_cluster, *l2_table; uint64_t cluster_offset = m->alloc_offset; trace_qcow2_cluster_link_l2(qemu_coroutine_self(), m->nb_clusters); assert(m->n...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, QCowL2Meta *VAR_1) { BDRVQcowState *s = VAR_0->opaque; int VAR_2, VAR_3 = 0, VAR_4, VAR_5; uint64_t *old_cluster, *l2_table; uint64_t cluster_offset = VAR_1->alloc_offset; trace_qcow2_cluster_link_l2(qemu_coroutine_self(), VAR_1->nb_clusters); assert(...
[ "int FUNC_0(BlockDriverState *VAR_0, QCowL2Meta *VAR_1)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_2, VAR_3 = 0, VAR_4, VAR_5;", "uint64_t *old_cluster, *l2_table;", "uint64_t cluster_offset = VAR_1->alloc_offset;", "trace_qcow2_cluster_link_l2(qemu_coroutine_self(), VAR_1->nb_clusters);", "asse...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
11,234
int ff_vp8_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { VP8Context *s = avctx->priv_data; int ret, i, referenced, num_jobs; enum AVDiscard skip_thresh; VP8Frame *av_uninit(curframe), *prev_frame; if ((ret = decode_frame_header(s,...
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
int ff_vp8_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { VP8Context *s = avctx->priv_data; int ret, i, referenced, num_jobs; enum AVDiscard skip_thresh; VP8Frame *av_uninit(curframe), *prev_frame; if ((ret = decode_frame_header(s,...
{ "code": [ "int ff_vp8_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,", " AVPacket *avpkt)", " if ((ret = decode_frame_header(s, avpkt->data, avpkt->size)) < 0)", " for (i = 0; i < 5; i++)", " if (&s->frames[i] != prev_frame &&", " ...
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { VP8Context *s = VAR_0->priv_data; int VAR_4, VAR_5, VAR_6, VAR_7; enum AVDiscard VAR_8; VP8Frame *av_uninit(curframe), *prev_frame; if ((VAR_4 = decode_frame_header(s, VAR_3->VAR_1, VAR_3->...
[ "int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "VP8Context *s = VAR_0->priv_data;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "enum AVDiscard VAR_8;", "VP8Frame *av_uninit(curframe), *prev_frame;", "if ((VAR_4 = decode_frame_header(s, VAR_3->VAR_1, VAR_3->size)) < 0)\ngoto err...
[ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 27, 29 ], [ 33, 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ], [ 59, 61,...
11,236
static void test_visitor_in_null(TestInputVisitorData *data, const void *unused) { Visitor *v; Error *err = NULL; char *tmp; /* * FIXME: Since QAPI doesn't know the 'null' type yet, we can't * test visit_type_null() by reading into a QAPI struct then ...
true
qemu
cbd8acf38f37544b830086af840bfb1015ce10e0
static void test_visitor_in_null(TestInputVisitorData *data, const void *unused) { Visitor *v; Error *err = NULL; char *tmp; v = visitor_input_test_init(data, "{ 'a': null, 'b': '', 'c': null }"); visit_start_struct(v, NULL, NULL, 0, &e...
{ "code": [ " v = visitor_input_test_init(data, \"{ 'a': null, 'b': '', 'c': null }\");" ], "line_no": [ 33 ] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { Visitor *v; Error *err = NULL; char *VAR_2; v = visitor_input_test_init(VAR_0, "{ 'a': null, 'b': '', 'c': null }"); visit_start_struct(v, NULL, NULL, 0, &error_abort)...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "Visitor *v;", "Error *err = NULL;", "char *VAR_2;", "v = visitor_input_test_init(VAR_0, \"{ 'a': null, 'b': '', 'c': null }\");", "visit_start_struct(v, NULL, NULL, 0, &error_abort);", "visit_type_null(v, \"a\", &error_abort);", ...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ] ]
11,237
static av_cold int dnxhd_decode_init(AVCodecContext *avctx) { DNXHDContext *ctx = avctx->priv_data; ctx->avctx = avctx; ctx->cid = -1; avctx->colorspace = AVCOL_SPC_BT709; avctx->coded_width = FFALIGN(avctx->width, 16); avctx->coded_height = FFALIGN(avctx->height, 16); ctx->r...
true
FFmpeg
c6a905b91d935f78f5c33f6ce2dbe294b3353b77
static av_cold int dnxhd_decode_init(AVCodecContext *avctx) { DNXHDContext *ctx = avctx->priv_data; ctx->avctx = avctx; ctx->cid = -1; avctx->colorspace = AVCOL_SPC_BT709; avctx->coded_width = FFALIGN(avctx->width, 16); avctx->coded_height = FFALIGN(avctx->height, 16); ctx->r...
{ "code": [ " avctx->colorspace = AVCOL_SPC_BT709;" ], "line_no": [ 13 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { DNXHDContext *ctx = avctx->priv_data; ctx->avctx = avctx; ctx->cid = -1; avctx->colorspace = AVCOL_SPC_BT709; avctx->coded_width = FFALIGN(avctx->width, 16); avctx->coded_height = FFALIGN(avctx->height, 16); ctx->rows = av_ma...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "DNXHDContext *ctx = avctx->priv_data;", "ctx->avctx = avctx;", "ctx->cid = -1;", "avctx->colorspace = AVCOL_SPC_BT709;", "avctx->coded_width = FFALIGN(avctx->width, 16);", "avctx->coded_height = FFALIGN(avctx->height, 16);", "ctx->rows = av_mal...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33 ] ]
11,238
static int usb_net_handle_statusin(USBNetState *s, USBPacket *p) { int ret = 8; if (p->len < 8) return USB_RET_STALL; ((le32 *) p->data)[0] = cpu_to_le32(1); ((le32 *) p->data)[1] = cpu_to_le32(0); if (!s->rndis_resp.tqh_first) ret = USB_RET_NAK; #ifdef TRAFFIC_DEBUG ...
true
qemu
4f4321c11ff6e98583846bfd6f0e81954924b003
static int usb_net_handle_statusin(USBNetState *s, USBPacket *p) { int ret = 8; if (p->len < 8) return USB_RET_STALL; ((le32 *) p->data)[0] = cpu_to_le32(1); ((le32 *) p->data)[1] = cpu_to_le32(0); if (!s->rndis_resp.tqh_first) ret = USB_RET_NAK; #ifdef TRAFFIC_DEBUG ...
{ "code": [ " if (p->len < 8)", " ((le32 *) p->data)[0] = cpu_to_le32(1);", " ((le32 *) p->data)[1] = cpu_to_le32(0);", " fprintf(stderr, \"usbnet: interrupt poll len %u return %d\", p->len, ret);", " int i;", " fprintf(stderr, \":\");", " for (i = 0; i < r...
static int FUNC_0(USBNetState *VAR_0, USBPacket *VAR_1) { int VAR_2 = 8; if (VAR_1->len < 8) return USB_RET_STALL; ((le32 *) VAR_1->data)[0] = cpu_to_le32(1); ((le32 *) VAR_1->data)[1] = cpu_to_le32(0); if (!VAR_0->rndis_resp.tqh_first) VAR_2 = USB_RET_NAK; #ifdef TRAF...
[ "static int FUNC_0(USBNetState *VAR_0, USBPacket *VAR_1)\n{", "int VAR_2 = 8;", "if (VAR_1->len < 8)\nreturn USB_RET_STALL;", "((le32 *) VAR_1->data)[0] = cpu_to_le32(1);", "((le32 *) VAR_1->data)[1] = cpu_to_le32(0);", "if (!VAR_0->rndis_resp.tqh_first)\nVAR_2 = USB_RET_NAK;", "#ifdef TRAFFIC_DEBUG\nfp...
[ 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 53 ], ...
11,239
static OutputStream *new_audio_stream(OptionsContext *o, AVFormatContext *oc, int source_index) { int n; AVStream *st; OutputStream *ost; AVCodecContext *audio_enc; ost = new_output_stream(o, oc, AVMEDIA_TYPE_AUDIO, source_index); st = ost->st; audio_enc = st->codec; audio_...
true
FFmpeg
fc49f22c3b735db5aaac5f98e40b7124a2be13b8
static OutputStream *new_audio_stream(OptionsContext *o, AVFormatContext *oc, int source_index) { int n; AVStream *st; OutputStream *ost; AVCodecContext *audio_enc; ost = new_output_stream(o, oc, AVMEDIA_TYPE_AUDIO, source_index); st = ost->st; audio_enc = st->codec; audio_...
{ "code": [ " exit_program(1);", " exit_program(1);", " exit_program(1);", " exit_program(1);", " char *sample_fmt = NULL;", " ost->rematrix_volume=1.0;", " MATCH_PER_STREAM_OPT(rematrix_volume, f, ost->rematrix_volume, oc, s...
static OutputStream *FUNC_0(OptionsContext *o, AVFormatContext *oc, int source_index) { int VAR_0; AVStream *st; OutputStream *ost; AVCodecContext *audio_enc; ost = new_output_stream(o, oc, AVMEDIA_TYPE_AUDIO, source_index); st = ost->st; audio_enc = st->codec; audio_enc->c...
[ "static OutputStream *FUNC_0(OptionsContext *o, AVFormatContext *oc, int source_index)\n{", "int VAR_0;", "AVStream *st;", "OutputStream *ost;", "AVCodecContext *audio_enc;", "ost = new_output_stream(o, oc, AVMEDIA_TYPE_AUDIO, source_index);", "st = ost->st;", "audio_enc = st->codec;", "audio_enc->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 55 ], [...
11,240
static void RENAME(uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const uint8_t *src, int width, int height, int lumStride, int chromStride, int srcStride) { int y; const int chromWidth = FF_CEIL_RSHIFT(width, 1); for (y=0...
true
FFmpeg
1e3f77b53a803a6c63fa64829f1be557b8226288
static void RENAME(uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const uint8_t *src, int width, int height, int lumStride, int chromStride, int srcStride) { int y; const int chromWidth = FF_CEIL_RSHIFT(width, 1); for (y=0...
{ "code": [ " RENAME(extract_even)(src+1, ydst, width);", " RENAME(extract_even)(src+1, ydst, width);" ], "line_no": [ 17, 17 ] }
static void FUNC_0(uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const uint8_t *src, int width, int height, int lumStride, int chromStride, int srcStride) { int VAR_0; const int VAR_1 = FF_CEIL_RSHIFT(width, 1); for (VAR_...
[ "static void FUNC_0(uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const uint8_t *src,\nint width, int height,\nint lumStride, int chromStride, int srcStride)\n{", "int VAR_0;", "const int VAR_1 = FF_CEIL_RSHIFT(width, 1);", "for (VAR_0=0; VAR_0<height; VAR_0++) {", "FUNC_0(extract_even)(src+1, ...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37, 39, 41 ], [ 43 ] ]
11,242
uint64_t helper_subqv(CPUAlphaState *env, uint64_t op1, uint64_t op2) { uint64_t res; res = op1 - op2; if (unlikely((op1 ^ op2) & (res ^ op1) & (1ULL << 63))) { arith_excp(env, GETPC(), EXC_M_IOV, 0); } return res; }
true
qemu
4d1628e832dfc6ec02b0d196f6cc250aaa7bf3b3
uint64_t helper_subqv(CPUAlphaState *env, uint64_t op1, uint64_t op2) { uint64_t res; res = op1 - op2; if (unlikely((op1 ^ op2) & (res ^ op1) & (1ULL << 63))) { arith_excp(env, GETPC(), EXC_M_IOV, 0); } return res; }
{ "code": [ " arith_excp(env, GETPC(), EXC_M_IOV, 0);", "uint64_t helper_subqv(CPUAlphaState *env, uint64_t op1, uint64_t op2)", " uint64_t res;", " res = op1 - op2;", " if (unlikely((op1 ^ op2) & (res ^ op1) & (1ULL << 63))) {", " arith_excp(env, GETPC(), EXC_M_IOV, 0);...
uint64_t FUNC_0(CPUAlphaState *env, uint64_t op1, uint64_t op2) { uint64_t res; res = op1 - op2; if (unlikely((op1 ^ op2) & (res ^ op1) & (1ULL << 63))) { arith_excp(env, GETPC(), EXC_M_IOV, 0); } return res; }
[ "uint64_t FUNC_0(CPUAlphaState *env, uint64_t op1, uint64_t op2)\n{", "uint64_t res;", "res = op1 - op2;", "if (unlikely((op1 ^ op2) & (res ^ op1) & (1ULL << 63))) {", "arith_excp(env, GETPC(), EXC_M_IOV, 0);", "}", "return res;", "}" ]
[ 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
11,243
static int decode_idat_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length, AVFrame *p) { int ret; size_t byte_depth = s->bit_depth > 8 ? 2 : 1; if (!(s->state & PNG_IHDR)) { av_log(avctx, AV_LOG_ERROR, "IDAT without IHDR\n"); return AVERROR_I...
true
FFmpeg
478f1c3d5e5463a284ea7efecfc62d47ba3be11a
static int decode_idat_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length, AVFrame *p) { int ret; size_t byte_depth = s->bit_depth > 8 ? 2 : 1; if (!(s->state & PNG_IHDR)) { av_log(avctx, AV_LOG_ERROR, "IDAT without IHDR\n"); return AVERROR_I...
{ "code": [ " if (!(s->state & PNG_IHDR)) {", " if (!(s->state & PNG_IDAT)) {", " s->state |= PNG_IDAT;", " if (!(s->state & PNG_IHDR)) {", " if (!(s->state & PNG_IHDR)) {", " if (!(s->state & PNG_IHDR)) {" ], "line_no": [ 13, 21, 271, 13, 13, 13 ...
static int FUNC_0(AVCodecContext *VAR_0, PNGDecContext *VAR_1, uint32_t VAR_2, AVFrame *VAR_3) { int VAR_4; size_t byte_depth = VAR_1->bit_depth > 8 ? 2 : 1; if (!(VAR_1->state & PNG_IHDR)) { av_log(VAR_0, AV_LOG_ERROR, "IDAT without IHDR\n"); return AVE...
[ "static int FUNC_0(AVCodecContext *VAR_0, PNGDecContext *VAR_1,\nuint32_t VAR_2, AVFrame *VAR_3)\n{", "int VAR_4;", "size_t byte_depth = VAR_1->bit_depth > 8 ? 2 : 1;", "if (!(VAR_1->state & PNG_IHDR)) {", "av_log(VAR_0, AV_LOG_ERROR, \"IDAT without IHDR\\n\");", "return AVERROR_INVALIDDATA;", "}", "i...
[ 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
11,244
static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl) { VGACommonState *vga = &qxl->vga; DisplaySurface *surface; int i; if (qxl->guest_primary.resized) { qxl->guest_primary.resized = 0; qxl->guest_primary.data = qxl_phys2virt(qxl, ...
true
qemu
503b3b33feca818baa4459aba286e54a528e5567
static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl) { VGACommonState *vga = &qxl->vga; DisplaySurface *surface; int i; if (qxl->guest_primary.resized) { qxl->guest_primary.resized = 0; qxl->guest_primary.data = qxl_phys2virt(qxl, ...
{ "code": [ " if (qxl->dirty[i].left > qxl->dirty[i].right ||" ], "line_no": [ 91 ] }
static void FUNC_0(PCIQXLDevice *VAR_0) { VGACommonState *vga = &VAR_0->vga; DisplaySurface *surface; int VAR_1; if (VAR_0->guest_primary.resized) { VAR_0->guest_primary.resized = 0; VAR_0->guest_primary.data = qxl_phys2virt(VAR_0, ...
[ "static void FUNC_0(PCIQXLDevice *VAR_0)\n{", "VGACommonState *vga = &VAR_0->vga;", "DisplaySurface *surface;", "int VAR_1;", "if (VAR_0->guest_primary.resized) {", "VAR_0->guest_primary.resized = 0;", "VAR_0->guest_primary.data = qxl_phys2virt(VAR_0,\nVAR_0->guest_primary.surface.mem,\nMEMSLOT_GROUP_GU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37, 39, 41, 43 ], [ 45 ], [ 47, 49, 51, 53,...
11,245
void vga_common_init(VGAState *s, DisplayState *ds, uint8_t *vga_ram_base, ram_addr_t vga_ram_offset, int vga_ram_size) { int i, j, v, b; for(i = 0;i < 256; i++) { v = 0; for(j = 0; j < 8; j++) { v |= ((i >> j) & 1) << (j * 4); } expand...
true
qemu
4abc796d41ee01a698032e74ac17c1cdc5d290c3
void vga_common_init(VGAState *s, DisplayState *ds, uint8_t *vga_ram_base, ram_addr_t vga_ram_offset, int vga_ram_size) { int i, j, v, b; for(i = 0;i < 256; i++) { v = 0; for(j = 0; j < 8; j++) { v |= ((i >> j) & 1) << (j * 4); } expand...
{ "code": [ " qemu_register_reset(vga_reset, s);" ], "line_no": [ 101 ] }
void FUNC_0(VGAState *VAR_0, DisplayState *VAR_1, uint8_t *VAR_2, ram_addr_t VAR_3, int VAR_4) { int VAR_5, VAR_6, VAR_7, VAR_8; for(VAR_5 = 0;VAR_5 < 256; VAR_5++) { VAR_7 = 0; for(VAR_6 = 0; VAR_6 < 8; VAR_6++) { VAR_7 |= ((VAR_5 >> VAR_6) & 1) << (VAR...
[ "void FUNC_0(VGAState *VAR_0, DisplayState *VAR_1, uint8_t *VAR_2,\nram_addr_t VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6, VAR_7, VAR_8;", "for(VAR_5 = 0;VAR_5 < 256; VAR_5++) {", "VAR_7 = 0;", "for(VAR_6 = 0; VAR_6 < 8; VAR_6++) {", "VAR_7 |= ((VAR_5 >> VAR_6) & 1) << (VAR_6 * 4);", "}", "expand4[VAR_5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...
11,246
static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt, const uint8_t *buf, int len) { unsigned int ssrc, h; int payload_type, seq, ret, flags = 0; int ext; AVStream *st; uint32_t timestamp; int rv = 0; ext = buf[0] & 0...
true
FFmpeg
81ef5192529dd9ff6b7dc34b6528b9d8dafdd100
static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt, const uint8_t *buf, int len) { unsigned int ssrc, h; int payload_type, seq, ret, flags = 0; int ext; AVStream *st; uint32_t timestamp; int rv = 0; ext = buf[0] & 0...
{ "code": [ " s->read_buf_size = len - ret;" ], "line_no": [ 135 ] }
static int FUNC_0(RTPDemuxContext *VAR_0, AVPacket *VAR_1, const uint8_t *VAR_2, int VAR_3) { unsigned int VAR_4, VAR_5; int VAR_6, VAR_7, VAR_8, VAR_9 = 0; int VAR_10; AVStream *st; uint32_t timestamp; int VAR_11 = 0; VAR_10 = VAR_2[0...
[ "static int FUNC_0(RTPDemuxContext *VAR_0, AVPacket *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{", "unsigned int VAR_4, VAR_5;", "int VAR_6, VAR_7, VAR_8, VAR_9 = 0;", "int VAR_10;", "AVStream *st;", "uint32_t timestamp;", "int VAR_11 = 0;", "VAR_10 = VAR_2[0] & 0x10;", "VAR_6 = VAR_2[1] & ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 43, 45 ], [ 49 ], [ 53 ], [ 55, 57,...
11,247
static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *buf, const uint8_t *end_buf) { int tag, type, count, off, value = 0; int i, j; uint32_t *pal; const uint8_t *rp, *gp, *bp; tag = tget_short(&buf, s->le); type = tget_short(&buf, s->le); count = tget_lon...
true
FFmpeg
d381249bb86d5a4b1a99bb292a7aed034d6d12de
static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *buf, const uint8_t *end_buf) { int tag, type, count, off, value = 0; int i, j; uint32_t *pal; const uint8_t *rp, *gp, *bp; tag = tget_short(&buf, s->le); type = tget_short(&buf, s->le); count = tget_lon...
{ "code": [ " if(count > 4){", " av_log(s->avctx, AV_LOG_ERROR, \"This format is not supported (bpp=%d, %d components)\\n\", s->bpp, count);", " return -1;" ], "line_no": [ 135, 137, 139 ] }
static int FUNC_0(TiffContext *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, const uint8_t *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0; int VAR_9, VAR_10; uint32_t *pal; const uint8_t *VAR_11, *gp, *bp; VAR_4 = tget_short(&VAR_2, VAR_0->le); VAR_5 = tget_short(&VAR_2, VAR_0...
[ "static int FUNC_0(TiffContext *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, const uint8_t *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0;", "int VAR_9, VAR_10;", "uint32_t *pal;", "const uint8_t *VAR_11, *gp, *bp;", "VAR_4 = tget_short(&VAR_2, VAR_0->le);", "VAR_5 = tget_short(&VAR_2, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [...
11,249
static int qcow2_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVQcowState *s = bs->opaque; int len, i, ret = 0; QCowHeader header; QemuOpts *opts; Error *local_err = NULL; uint64_t ext_end; uint64_t l1_vm_state_index; const char *opt_overl...
true
qemu
a1b3955c9415b1e767c130a2f59fee6aa28e575b
static int qcow2_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVQcowState *s = bs->opaque; int len, i, ret = 0; QCowHeader header; QemuOpts *opts; Error *local_err = NULL; uint64_t ext_end; uint64_t l1_vm_state_index; const char *opt_overl...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVQcowState *s = VAR_0->opaque; int VAR_4, VAR_5, VAR_6 = 0; QCowHeader header; QemuOpts *opts; Error *local_err = NULL; uint64_t ext_end; uint64_t l1_vm_state_index; const char *...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_4, VAR_5, VAR_6 = 0;", "QCowHeader header;", "QemuOpts *opts;", "Error *local_err = NULL;", "uint64_t ext_end;", "uint64_t l1_vm_state_index;", "const char *VAR_7;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ ...
11,250
static void ape_unpack_mono(APEContext *ctx, int count) { if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) { /* We are pure silence, so we're done. */ av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence mono\n"); return; } entropy_decode(ctx, count, 0); ape_apply_filters(...
false
FFmpeg
b164d66e35d349de414e2f0d7365a147aba8a620
static void ape_unpack_mono(APEContext *ctx, int count) { if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) { av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence mono\n"); return; } entropy_decode(ctx, count, 0); ape_apply_filters(ctx, ctx->decoded[0], NULL, count); ...
{ "code": [], "line_no": [] }
static void FUNC_0(APEContext *VAR_0, int VAR_1) { if (VAR_0->frameflags & APE_FRAMECODE_STEREO_SILENCE) { av_log(VAR_0->avctx, AV_LOG_DEBUG, "pure silence mono\n"); return; } entropy_decode(VAR_0, VAR_1, 0); ape_apply_filters(VAR_0, VAR_0->decoded[0], NULL, VAR_1); ...
[ "static void FUNC_0(APEContext *VAR_0, int VAR_1)\n{", "if (VAR_0->frameflags & APE_FRAMECODE_STEREO_SILENCE) {", "av_log(VAR_0->avctx, AV_LOG_DEBUG, \"pure silence mono\\n\");", "return;", "}", "entropy_decode(VAR_0, VAR_1, 0);", "ape_apply_filters(VAR_0, VAR_0->decoded[0], NULL, VAR_1);", "predictor...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
11,251
static int _do_bit_allocation(AC3DecodeContext *ctx, int chnl) { ac3_audio_block *ab = &ctx->audio_block; int16_t sdecay, fdecay, sgain, dbknee, floor; int16_t lowcomp, fgain, snroffset, fastleak, slowleak; int16_t psd[256], bndpsd[50], excite[50], mask[50], delta; uint8_t start, end, bin, i, ...
false
FFmpeg
0058584580b87feb47898e60e4b80c7f425882ad
static int _do_bit_allocation(AC3DecodeContext *ctx, int chnl) { ac3_audio_block *ab = &ctx->audio_block; int16_t sdecay, fdecay, sgain, dbknee, floor; int16_t lowcomp, fgain, snroffset, fastleak, slowleak; int16_t psd[256], bndpsd[50], excite[50], mask[50], delta; uint8_t start, end, bin, i, ...
{ "code": [], "line_no": [] }
static int FUNC_0(AC3DecodeContext *VAR_0, int VAR_1) { ac3_audio_block *ab = &VAR_0->audio_block; int16_t sdecay, fdecay, sgain, dbknee, floor; int16_t lowcomp, fgain, snroffset, fastleak, slowleak; int16_t psd[256], bndpsd[50], excite[50], mask[50], delta; uint8_t start, end, bin, i, j, k, l...
[ "static int FUNC_0(AC3DecodeContext *VAR_0, int VAR_1)\n{", "ac3_audio_block *ab = &VAR_0->audio_block;", "int16_t sdecay, fdecay, sgain, dbknee, floor;", "int16_t lowcomp, fgain, snroffset, fastleak, slowleak;", "int16_t psd[256], bndpsd[50], excite[50], mask[50], delta;", "uint8_t start, end, bin, i, j,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
11,252
struct omap_mcspi_s *omap_mcspi_init(struct omap_target_agent_s *ta, int chnum, qemu_irq irq, qemu_irq *drq, omap_clk fclk, omap_clk iclk) { struct omap_mcspi_s *s = (struct omap_mcspi_s *) g_malloc0(sizeof(struct omap_mcspi_s)); struct omap_mcspi_ch_s *ch = s->ch; s->irq...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
struct omap_mcspi_s *omap_mcspi_init(struct omap_target_agent_s *ta, int chnum, qemu_irq irq, qemu_irq *drq, omap_clk fclk, omap_clk iclk) { struct omap_mcspi_s *s = (struct omap_mcspi_s *) g_malloc0(sizeof(struct omap_mcspi_s)); struct omap_mcspi_ch_s *ch = s->ch; s->irq...
{ "code": [ " struct omap_mcspi_s *s = (struct omap_mcspi_s *)", " g_malloc0(sizeof(struct omap_mcspi_s));" ], "line_no": [ 7, 9 ] }
struct omap_mcspi_s *FUNC_0(struct omap_target_agent_s *VAR_0, int VAR_1, qemu_irq VAR_2, qemu_irq *VAR_3, omap_clk VAR_4, omap_clk VAR_5) { struct omap_mcspi_s *VAR_6 = (struct omap_mcspi_s *) g_malloc0(sizeof(struct omap_mcspi_s)); struct omap_mcspi_ch_s *VAR_7 = VAR_6->VAR_7;...
[ "struct omap_mcspi_s *FUNC_0(struct omap_target_agent_s *VAR_0, int VAR_1,\nqemu_irq VAR_2, qemu_irq *VAR_3, omap_clk VAR_4, omap_clk VAR_5)\n{", "struct omap_mcspi_s *VAR_6 = (struct omap_mcspi_s *)\ng_malloc0(sizeof(struct omap_mcspi_s));", "struct omap_mcspi_ch_s *VAR_7 = VAR_6->VAR_7;", "VAR_6->VAR_2 = VA...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ] ]
11,253
int pci_vga_init(PCIBus *bus, unsigned long vga_bios_offset, int vga_bios_size) { PCIDevice *dev; dev = pci_create(bus, -1, "VGA"); qdev_prop_set_uint32(&dev->qdev, "bios-offset", vga_bios_offset); qdev_prop_set_uint32(&dev->qdev, "bios-size", vga_bios_offset); qdev_init(&d...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
int pci_vga_init(PCIBus *bus, unsigned long vga_bios_offset, int vga_bios_size) { PCIDevice *dev; dev = pci_create(bus, -1, "VGA"); qdev_prop_set_uint32(&dev->qdev, "bios-offset", vga_bios_offset); qdev_prop_set_uint32(&dev->qdev, "bios-size", vga_bios_offset); qdev_init(&d...
{ "code": [ " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);" ], "line_no": [ 17, 17,...
int FUNC_0(PCIBus *VAR_0, unsigned long VAR_1, int VAR_2) { PCIDevice *dev; dev = pci_create(VAR_0, -1, "VGA"); qdev_prop_set_uint32(&dev->qdev, "bios-offset", VAR_1); qdev_prop_set_uint32(&dev->qdev, "bios-size", VAR_1); qdev_init(&dev->qdev); return 0; }
[ "int FUNC_0(PCIBus *VAR_0,\nunsigned long VAR_1, int VAR_2)\n{", "PCIDevice *dev;", "dev = pci_create(VAR_0, -1, \"VGA\");", "qdev_prop_set_uint32(&dev->qdev, \"bios-offset\", VAR_1);", "qdev_prop_set_uint32(&dev->qdev, \"bios-size\", VAR_1);", "qdev_init(&dev->qdev);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
11,255
void vm_start(void) { RunState requested; qemu_vmstop_requested(&requested); if (runstate_is_running() && requested == RUN_STATE__MAX) { return; } /* Ensure that a STOP/RESUME pair of events is emitted if a * vmstop request was pending. The BLOCK_IO_ERROR event, for *...
true
qemu
6d0ceb80ffe18ad4b28aab7356f440636c0be7be
void vm_start(void) { RunState requested; qemu_vmstop_requested(&requested); if (runstate_is_running() && requested == RUN_STATE__MAX) { return; } if (runstate_is_running()) { qapi_event_send_stop(&error_abort); } else { cpu_enable_ticks(); ...
{ "code": [], "line_no": [] }
void FUNC_0(void) { RunState requested; qemu_vmstop_requested(&requested); if (runstate_is_running() && requested == RUN_STATE__MAX) { return; } if (runstate_is_running()) { qapi_event_send_stop(&error_abort); } else { cpu_enable_ticks(); ...
[ "void FUNC_0(void)\n{", "RunState requested;", "qemu_vmstop_requested(&requested);", "if (runstate_is_running() && requested == RUN_STATE__MAX) {", "return;", "}", "if (runstate_is_running()) {", "qapi_event_send_stop(&error_abort);", "} else {", "cpu_enable_ticks();", "runstate_set(RUN_STATE_RU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 29 ], [ 31 ], [ 33 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 48 ], [ 50 ] ]
11,256
static inline void RENAME(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, unsigned int src_size) { #ifdef HAVE_MMX /* TODO: unroll this loop */ asm volatile ( "xor %%"REG_a", %%"REG_a" \n\t" ".balign 16 \n\t" "1: \n\t" PREFETCH" 32(%0, %%"REG_a") \n\t" "movq (%0, %%"REG_a"), %%mm0 \n\t" "mov...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
static inline void RENAME(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, unsigned int src_size) { #ifdef HAVE_MMX asm volatile ( "xor %%"REG_a", %%"REG_a" \n\t" ".balign 16 \n\t" "1: \n\t" PREFETCH" 32(%0, %%"REG_a") \n\t" "movq (%0, %%"REG_a"), %%mm0 \n\t" "movq %%mm0, %%mm1 \n\t" "mo...
{ "code": [ "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tunsigned num_pixels = src_size >> 2;", "\tunsigned i;", "\tunsigned i;", "\tunsigned i;", "\tu...
static inline void FUNC_0(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, unsigned int src_size) { #ifdef HAVE_MMX asm volatile ( "xor %%"REG_a", %%"REG_a" \n\t" ".balign 16 \n\t" "1: \n\t" PREFETCH" 32(%0, %%"REG_a") \n\t" "movq (%0, %%"REG_a"), %%mm0 \n\t" "movq %%mm0, %%mm1 \n\t" "mo...
[ "static inline void FUNC_0(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, unsigned int src_size)\n{", "#ifdef HAVE_MMX\nasm volatile (\n\"xor %%\"REG_a\", %%\"REG_a\"\t\\n\\t\"\n\".balign 16\t\t\t\\n\\t\"\n\"1:\t\t\t\t\\n\\t\"\nPREFETCH\" 32(%0, %%\"REG_a\")\t\\n\\t\"\n\"movq (%0, %%\"REG_a\"), %%mm0\t\\n\\t\"\n...
[ 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51 ], [ 55 ], [ 57 ], [ 59, 61 ], [ 63 ], [ 65 ], [ 67 ], ...
11,257
static void v9fs_xattrcreate(void *opaque) { int flags; int32_t fid; int64_t size; ssize_t err = 0; V9fsString name; size_t offset = 7; V9fsFidState *file_fidp; V9fsFidState *xattr_fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "d...
true
qemu
c572f23a3e7180dbeab5e86583e43ea2afed6271
static void v9fs_xattrcreate(void *opaque) { int flags; int32_t fid; int64_t size; ssize_t err = 0; V9fsString name; size_t offset = 7; V9fsFidState *file_fidp; V9fsFidState *xattr_fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "d...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int VAR_1; int32_t fid; int64_t size; ssize_t err = 0; V9fsString name; size_t offset = 7; V9fsFidState *file_fidp; V9fsFidState *xattr_fidp; V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dsqd", ...
[ "static void FUNC_0(void *VAR_0)\n{", "int VAR_1;", "int32_t fid;", "int64_t size;", "ssize_t err = 0;", "V9fsString name;", "size_t offset = 7;", "V9fsFidState *file_fidp;", "V9fsFidState *xattr_fidp;", "V9fsPDU *pdu = VAR_0;", "V9fsState *s = pdu->s;", "pdu_unmarshal(pdu, offset, \"dsqd\",\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 46 ], [ 48 ], [...
11,258
static void spr_read_sdr1 (void *opaque, int gprn, int sprn) { tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, sdr1)); }
false
qemu
bb593904c18e22ea0671dfa1b02e24982f2bf0ea
static void spr_read_sdr1 (void *opaque, int gprn, int sprn) { tcg_gen_ld_tl(cpu_gpr[gprn], cpu_env, offsetof(CPUState, sdr1)); }
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, int VAR_1, int VAR_2) { tcg_gen_ld_tl(cpu_gpr[VAR_1], cpu_env, offsetof(CPUState, sdr1)); }
[ "static void FUNC_0 (void *VAR_0, int VAR_1, int VAR_2)\n{", "tcg_gen_ld_tl(cpu_gpr[VAR_1], cpu_env, offsetof(CPUState, sdr1));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
11,259
void isa_cirrus_vga_init(DisplayState *ds, uint8_t *vga_ram_base, unsigned long vga_ram_offset, int vga_ram_size) { CirrusVGAState *s; s = qemu_mallocz(sizeof(CirrusVGAState)); vga_common_init((VGAState *)s, ds, vga_ram_base, vga_ram_offset, vga_ram_siz...
false
qemu
4efe27556dea874030f1cd53a6d70452ee064fba
void isa_cirrus_vga_init(DisplayState *ds, uint8_t *vga_ram_base, unsigned long vga_ram_offset, int vga_ram_size) { CirrusVGAState *s; s = qemu_mallocz(sizeof(CirrusVGAState)); vga_common_init((VGAState *)s, ds, vga_ram_base, vga_ram_offset, vga_ram_siz...
{ "code": [], "line_no": [] }
void FUNC_0(DisplayState *VAR_0, uint8_t *VAR_1, unsigned long VAR_2, int VAR_3) { CirrusVGAState *s; s = qemu_mallocz(sizeof(CirrusVGAState)); vga_common_init((VGAState *)s, VAR_0, VAR_1, VAR_2, VAR_3); cirrus_init_common(s, CIRRUS_ID_CLGD5430, 0)...
[ "void FUNC_0(DisplayState *VAR_0, uint8_t *VAR_1,\nunsigned long VAR_2, int VAR_3)\n{", "CirrusVGAState *s;", "s = qemu_mallocz(sizeof(CirrusVGAState));", "vga_common_init((VGAState *)s,\nVAR_0, VAR_1, VAR_2, VAR_3);", "cirrus_init_common(s, CIRRUS_ID_CLGD5430, 0);", "s->console = graphic_console_init(s->...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 27 ] ]
11,260
StringInputVisitor *string_input_visitor_new(const char *str) { StringInputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_INPUT; v->visitor.type_int64 = parse_type_int64; v->visitor.type_uint64 = parse_type_uint64; v->visitor.type_size = parse_type_size; v->visi...
false
qemu
d9f62dde1303286b24ac8ce88be27e2b9b9c5f46
StringInputVisitor *string_input_visitor_new(const char *str) { StringInputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_INPUT; v->visitor.type_int64 = parse_type_int64; v->visitor.type_uint64 = parse_type_uint64; v->visitor.type_size = parse_type_size; v->visi...
{ "code": [], "line_no": [] }
StringInputVisitor *FUNC_0(const char *str) { StringInputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_INPUT; v->visitor.type_int64 = parse_type_int64; v->visitor.type_uint64 = parse_type_uint64; v->visitor.type_size = parse_type_size; v->visitor.type_bool = pa...
[ "StringInputVisitor *FUNC_0(const char *str)\n{", "StringInputVisitor *v;", "v = g_malloc0(sizeof(*v));", "v->visitor.type = VISITOR_INPUT;", "v->visitor.type_int64 = parse_type_int64;", "v->visitor.type_uint64 = parse_type_uint64;", "v->visitor.type_size = parse_type_size;", "v->visitor.type_bool = p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
11,262
void spapr_vio_bus_register_withprop(VIOsPAPRDeviceInfo *info) { info->qdev.init = spapr_vio_busdev_init; info->qdev.bus_info = &spapr_vio_bus_info; assert(info->qdev.size >= sizeof(VIOsPAPRDevice)); qdev_register(&info->qdev); }
false
qemu
3954d33ab7f82f5a5fa0ced231849920265a5fec
void spapr_vio_bus_register_withprop(VIOsPAPRDeviceInfo *info) { info->qdev.init = spapr_vio_busdev_init; info->qdev.bus_info = &spapr_vio_bus_info; assert(info->qdev.size >= sizeof(VIOsPAPRDevice)); qdev_register(&info->qdev); }
{ "code": [], "line_no": [] }
void FUNC_0(VIOsPAPRDeviceInfo *VAR_0) { VAR_0->qdev.init = spapr_vio_busdev_init; VAR_0->qdev.bus_info = &spapr_vio_bus_info; assert(VAR_0->qdev.size >= sizeof(VIOsPAPRDevice)); qdev_register(&VAR_0->qdev); }
[ "void FUNC_0(VIOsPAPRDeviceInfo *VAR_0)\n{", "VAR_0->qdev.init = spapr_vio_busdev_init;", "VAR_0->qdev.bus_info = &spapr_vio_bus_info;", "assert(VAR_0->qdev.size >= sizeof(VIOsPAPRDevice));", "qdev_register(&VAR_0->qdev);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
11,265
static inline void tcg_out_adr(TCGContext *s, TCGReg rd, void *target) { ptrdiff_t offset = tcg_pcrel_diff(s, target); assert(offset == sextract64(offset, 0, 21)); tcg_out_insn(s, 3406, ADR, rd, offset); }
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static inline void tcg_out_adr(TCGContext *s, TCGReg rd, void *target) { ptrdiff_t offset = tcg_pcrel_diff(s, target); assert(offset == sextract64(offset, 0, 21)); tcg_out_insn(s, 3406, ADR, rd, offset); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGContext *VAR_0, TCGReg VAR_1, void *VAR_2) { ptrdiff_t offset = tcg_pcrel_diff(VAR_0, VAR_2); assert(offset == sextract64(offset, 0, 21)); tcg_out_insn(VAR_0, 3406, ADR, VAR_1, offset); }
[ "static inline void FUNC_0(TCGContext *VAR_0, TCGReg VAR_1, void *VAR_2)\n{", "ptrdiff_t offset = tcg_pcrel_diff(VAR_0, VAR_2);", "assert(offset == sextract64(offset, 0, 21));", "tcg_out_insn(VAR_0, 3406, ADR, VAR_1, offset);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
11,266
static int pc_boot_set(void *opaque, const char *boot_device) { return set_boot_dev(opaque, boot_device); }
false
qemu
ddcd55316fb2851e144e719171621ad2816487dc
static int pc_boot_set(void *opaque, const char *boot_device) { return set_boot_dev(opaque, boot_device); }
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, const char *VAR_1) { return set_boot_dev(VAR_0, VAR_1); }
[ "static int FUNC_0(void *VAR_0, const char *VAR_1)\n{", "return set_boot_dev(VAR_0, VAR_1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
11,267
static TCGReg tcg_out_tlb_read(TCGContext *s, TCGReg addrlo, TCGReg addrhi, TCGMemOp opc, int mem_index, bool is_load) { TCGReg base = TCG_AREG0; int cmp_off = (is_load ? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read) : offsetof(CPUArchS...
false
qemu
95ede84f4de18747d03d79c148013cff99acd60b
static TCGReg tcg_out_tlb_read(TCGContext *s, TCGReg addrlo, TCGReg addrhi, TCGMemOp opc, int mem_index, bool is_load) { TCGReg base = TCG_AREG0; int cmp_off = (is_load ? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read) : offsetof(CPUArchS...
{ "code": [], "line_no": [] }
static TCGReg FUNC_0(TCGContext *s, TCGReg addrlo, TCGReg addrhi, TCGMemOp opc, int mem_index, bool is_load) { TCGReg base = TCG_AREG0; int VAR_0 = (is_load ? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read) : offsetof(CPUArchState, tlb_ta...
[ "static TCGReg FUNC_0(TCGContext *s, TCGReg addrlo, TCGReg addrhi,\nTCGMemOp opc, int mem_index, bool is_load)\n{", "TCGReg base = TCG_AREG0;", "int VAR_0 =\n(is_load\n? offsetof(CPUArchState, tlb_table[mem_index][0].addr_read)\n: offsetof(CPUArchState, tlb_table[mem_index][0].addr_write));", "int VAR_1 = off...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 65 ], [ 67, 69 ], [ 71 ], [ 73, 75 ], [ 77 ], [ 83 ], [ 85, 87 ], [ 89 ], [ 91 ], [ 93 ], [...
11,269
static void tcg_opt_gen_movi(TCGContext *s, TCGOp *op, TCGArg *args, TCGArg dst, TCGArg val) { TCGOpcode new_op = op_to_movi(op->opc); tcg_target_ulong mask; op->opc = new_op; reset_temp(dst); temps[dst].state = TCG_TEMP_CONST; temps[dst].val = val; ...
false
qemu
97a79eb70dd35a24fda87d86196afba5e6f21c5d
static void tcg_opt_gen_movi(TCGContext *s, TCGOp *op, TCGArg *args, TCGArg dst, TCGArg val) { TCGOpcode new_op = op_to_movi(op->opc); tcg_target_ulong mask; op->opc = new_op; reset_temp(dst); temps[dst].state = TCG_TEMP_CONST; temps[dst].val = val; ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGOp *VAR_1, TCGArg *VAR_2, TCGArg VAR_3, TCGArg VAR_4) { TCGOpcode new_op = op_to_movi(VAR_1->opc); tcg_target_ulong mask; VAR_1->opc = new_op; reset_temp(VAR_3); temps[VAR_3].state = TCG_TEMP_CONST; temps[VAR_3].VA...
[ "static void FUNC_0(TCGContext *VAR_0, TCGOp *VAR_1, TCGArg *VAR_2,\nTCGArg VAR_3, TCGArg VAR_4)\n{", "TCGOpcode new_op = op_to_movi(VAR_1->opc);", "tcg_target_ulong mask;", "VAR_1->opc = new_op;", "reset_temp(VAR_3);", "temps[VAR_3].state = TCG_TEMP_CONST;", "temps[VAR_3].VAR_4 = VAR_4;", "mask = VAR...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ] ]
11,271
static int colo_do_checkpoint_transaction(MigrationState *s) { Error *local_err = NULL; colo_send_message(s->to_dst_file, COLO_MESSAGE_CHECKPOINT_REQUEST, &local_err); if (local_err) { goto out; } colo_receive_check_message(s->rp_state.from_dst_file, ...
false
qemu
a91246c95f913dc6fd391eee32f6c9796de70183
static int colo_do_checkpoint_transaction(MigrationState *s) { Error *local_err = NULL; colo_send_message(s->to_dst_file, COLO_MESSAGE_CHECKPOINT_REQUEST, &local_err); if (local_err) { goto out; } colo_receive_check_message(s->rp_state.from_dst_file, ...
{ "code": [], "line_no": [] }
static int FUNC_0(MigrationState *VAR_0) { Error *local_err = NULL; colo_send_message(VAR_0->to_dst_file, COLO_MESSAGE_CHECKPOINT_REQUEST, &local_err); if (local_err) { goto out; } colo_receive_check_message(VAR_0->rp_state.from_dst_file, ...
[ "static int FUNC_0(MigrationState *VAR_0)\n{", "Error *local_err = NULL;", "colo_send_message(VAR_0->to_dst_file, COLO_MESSAGE_CHECKPOINT_REQUEST,\n&local_err);", "if (local_err) {", "goto out;", "}", "colo_receive_check_message(VAR_0->rp_state.from_dst_file,\nCOLO_MESSAGE_CHECKPOINT_REPLY, &local_err);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 51, 53 ], [ 55 ], [ 57 ], [ 59 ], ...
11,272
static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb, AVPacket *pkt) { int chunk_type; if (s->audio_chunk_offset && s->audio_channels && s->audio_bits) { if (s->audio_type == AV_CODEC_ID_NONE) { av_log(s->avf, AV_LOG_ERROR, "Can not read audio packet before" ...
false
FFmpeg
ba2c385006e3100d6cd506f61c53186ba054a06d
static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb, AVPacket *pkt) { int chunk_type; if (s->audio_chunk_offset && s->audio_channels && s->audio_bits) { if (s->audio_type == AV_CODEC_ID_NONE) { av_log(s->avf, AV_LOG_ERROR, "Can not read audio packet before" ...
{ "code": [], "line_no": [] }
static int FUNC_0(IPMVEContext *VAR_0, AVIOContext *VAR_1, AVPacket *VAR_2) { int VAR_3; if (VAR_0->audio_chunk_offset && VAR_0->audio_channels && VAR_0->audio_bits) { if (VAR_0->audio_type == AV_CODEC_ID_NONE) { av_log(VAR_0->avf, AV_LOG_ERROR, "Can not read audio packet before...
[ "static int FUNC_0(IPMVEContext *VAR_0, AVIOContext *VAR_1,\nAVPacket *VAR_2) {", "int VAR_3;", "if (VAR_0->audio_chunk_offset && VAR_0->audio_channels && VAR_0->audio_bits) {", "if (VAR_0->audio_type == AV_CODEC_ID_NONE) {", "av_log(VAR_0->avf, AV_LOG_ERROR, \"Can not read audio packet before\"\n\"audio co...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 57, 59, 61 ], [ 6...
11,273
static void verdex_init(ram_addr_t ram_size, int vga_ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { struct pxa2xx_state_s *cpu; int index; uint32_t verd...
false
qemu
a0b753dfd3920df146a5f4d05e442e3c522900c7
static void verdex_init(ram_addr_t ram_size, int vga_ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { struct pxa2xx_state_s *cpu; int index; uint32_t verd...
{ "code": [], "line_no": [] }
static void FUNC_0(ram_addr_t VAR_0, int VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5, const char *VAR_6) { struct pxa2xx_state_s *VAR_7; int VAR_8; uint32_t verdex_rom = 0x02000000; uint32_t verdex_ram = 0x10...
[ "static void FUNC_0(ram_addr_t VAR_0, int VAR_1,\nconst char *VAR_2,\nconst char *VAR_3, const char *VAR_4,\nconst char *VAR_5, const char *VAR_6)\n{", "struct pxa2xx_state_s *VAR_7;", "int VAR_8;", "uint32_t verdex_rom = 0x02000000;", "uint32_t verdex_ram = 0x10000000;", "if (VAR_0 < (verdex_ram + verdex...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 53, 55, 57 ], [...
11,274
void pci_device_save(PCIDevice *s, QEMUFile *f) { int i; qemu_put_be32(f, s->version_id); /* PCI device version */ qemu_put_buffer(f, s->config, 256); for (i = 0; i < 4; i++) qemu_put_be32(f, s->irq_state[i]); }
false
qemu
73534f2f682f2957fabb25e3890481098cc5dcee
void pci_device_save(PCIDevice *s, QEMUFile *f) { int i; qemu_put_be32(f, s->version_id); qemu_put_buffer(f, s->config, 256); for (i = 0; i < 4; i++) qemu_put_be32(f, s->irq_state[i]); }
{ "code": [], "line_no": [] }
void FUNC_0(PCIDevice *VAR_0, QEMUFile *VAR_1) { int VAR_2; qemu_put_be32(VAR_1, VAR_0->version_id); qemu_put_buffer(VAR_1, VAR_0->config, 256); for (VAR_2 = 0; VAR_2 < 4; VAR_2++) qemu_put_be32(VAR_1, VAR_0->irq_state[VAR_2]); }
[ "void FUNC_0(PCIDevice *VAR_0, QEMUFile *VAR_1)\n{", "int VAR_2;", "qemu_put_be32(VAR_1, VAR_0->version_id);", "qemu_put_buffer(VAR_1, VAR_0->config, 256);", "for (VAR_2 = 0; VAR_2 < 4; VAR_2++)", "qemu_put_be32(VAR_1, VAR_0->irq_state[VAR_2]);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
11,275
static void qxl_flip(PCIQXLDevice *qxl, QXLRect *rect) { uint8_t *src = qxl->guest_primary.data; uint8_t *dst = qxl->guest_primary.flipped; int len, i; src += (qxl->guest_primary.surface.height - rect->top - 1) * qxl->guest_primary.stride; dst += rect->top * qxl->guest_primary.stri...
false
qemu
0e2487bd6f56445b43307536a465ee2ba810aed9
static void qxl_flip(PCIQXLDevice *qxl, QXLRect *rect) { uint8_t *src = qxl->guest_primary.data; uint8_t *dst = qxl->guest_primary.flipped; int len, i; src += (qxl->guest_primary.surface.height - rect->top - 1) * qxl->guest_primary.stride; dst += rect->top * qxl->guest_primary.stri...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIQXLDevice *VAR_0, QXLRect *VAR_1) { uint8_t *src = VAR_0->guest_primary.data; uint8_t *dst = VAR_0->guest_primary.flipped; int VAR_2, VAR_3; src += (VAR_0->guest_primary.surface.height - VAR_1->top - 1) * VAR_0->guest_primary.stride; dst += VAR_1->top * VAR_0-...
[ "static void FUNC_0(PCIQXLDevice *VAR_0, QXLRect *VAR_1)\n{", "uint8_t *src = VAR_0->guest_primary.data;", "uint8_t *dst = VAR_0->guest_primary.flipped;", "int VAR_2, VAR_3;", "src += (VAR_0->guest_primary.surface.height - VAR_1->top - 1) *\nVAR_0->guest_primary.stride;", "dst += VAR_1->top * VAR_0->gues...
[ 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
11,276
START_TEST(qdict_destroy_simple_test) { QDict *qdict; qdict = qdict_new(); qdict_put_obj(qdict, "num", QOBJECT(qint_from_int(0))); qdict_put_obj(qdict, "str", QOBJECT(qstring_from_str("foo"))); QDECREF(qdict); }
false
qemu
ac531cb6e542b1e61d668604adf9dc5306a948c0
START_TEST(qdict_destroy_simple_test) { QDict *qdict; qdict = qdict_new(); qdict_put_obj(qdict, "num", QOBJECT(qint_from_int(0))); qdict_put_obj(qdict, "str", QOBJECT(qstring_from_str("foo"))); QDECREF(qdict); }
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) { QDict *qdict; qdict = qdict_new(); qdict_put_obj(qdict, "num", QOBJECT(qint_from_int(0))); qdict_put_obj(qdict, "str", QOBJECT(qstring_from_str("foo"))); QDECREF(qdict); }
[ "FUNC_0(VAR_0)\n{", "QDict *qdict;", "qdict = qdict_new();", "qdict_put_obj(qdict, \"num\", QOBJECT(qint_from_int(0)));", "qdict_put_obj(qdict, \"str\", QOBJECT(qstring_from_str(\"foo\")));", "QDECREF(qdict);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ] ]
11,277
static int pcibus_reset(BusState *qbus) { pci_bus_reset(DO_UPCAST(PCIBus, qbus, qbus)); /* topology traverse is done by pci_bus_reset(). Tell qbus/qdev walker not to traverse the tree */ return 1; }
false
qemu
81e3e75b6461c53724fe7c7918bc54468fcdaf9d
static int pcibus_reset(BusState *qbus) { pci_bus_reset(DO_UPCAST(PCIBus, qbus, qbus)); return 1; }
{ "code": [], "line_no": [] }
static int FUNC_0(BusState *VAR_0) { pci_bus_reset(DO_UPCAST(PCIBus, VAR_0, VAR_0)); return 1; }
[ "static int FUNC_0(BusState *VAR_0)\n{", "pci_bus_reset(DO_UPCAST(PCIBus, VAR_0, VAR_0));", "return 1;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 13 ], [ 15 ] ]
11,278
int AC3_NAME(encode_frame)(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { AC3EncodeContext *s = avctx->priv_data; int ret; if (s->options.allow_per_frame_metadata) { ret = ff_ac3_validate_metadata(s); if (ret) ...
false
FFmpeg
bcaf64b605442e1622d16da89d4ec0e7730b8a8c
int AC3_NAME(encode_frame)(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { AC3EncodeContext *s = avctx->priv_data; int ret; if (s->options.allow_per_frame_metadata) { ret = ff_ac3_validate_metadata(s); if (ret) ...
{ "code": [], "line_no": [] }
int FUNC_0(encode_frame)(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { AC3EncodeContext *s = avctx->priv_data; int VAR_0; if (s->options.allow_per_frame_metadata) { VAR_0 = ff_ac3_validate_metadata(s); if (VAR_0) ...
[ "int FUNC_0(encode_frame)(AVCodecContext *avctx, AVPacket *avpkt,\nconst AVFrame *frame, int *got_packet_ptr)\n{", "AC3EncodeContext *s = avctx->priv_data;", "int VAR_0;", "if (s->options.allow_per_frame_metadata) {", "VAR_0 = ff_ac3_validate_metadata(s);", "if (VAR_0)\nreturn VAR_0;", "}", "if (s->bi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25, 27 ], [ 31 ], [ 35 ], [ 39, 41 ], [ 45, 47 ], [ 51 ], [ 53 ], [ 57, 59 ], [ 63 ], [ 67,...
11,279
static int read_channel_params(MLPDecodeContext *m, unsigned int substr, GetBitContext *gbp, unsigned int ch) { ChannelParams *cp = &m->channel_params[ch]; FilterParams *fir = &cp->filter_params[FIR]; FilterParams *iir = &cp->filter_params[IIR]; SubStream *s = &m->su...
false
FFmpeg
125cf771f6d17b9b9db7588cbf8f36619bc41f35
static int read_channel_params(MLPDecodeContext *m, unsigned int substr, GetBitContext *gbp, unsigned int ch) { ChannelParams *cp = &m->channel_params[ch]; FilterParams *fir = &cp->filter_params[FIR]; FilterParams *iir = &cp->filter_params[IIR]; SubStream *s = &m->su...
{ "code": [], "line_no": [] }
static int FUNC_0(MLPDecodeContext *VAR_0, unsigned int VAR_1, GetBitContext *VAR_2, unsigned int VAR_3) { ChannelParams *cp = &VAR_0->channel_params[VAR_3]; FilterParams *fir = &cp->filter_params[FIR]; FilterParams *iir = &cp->filter_params[IIR]; SubStream *s = &VAR...
[ "static int FUNC_0(MLPDecodeContext *VAR_0, unsigned int VAR_1,\nGetBitContext *VAR_2, unsigned int VAR_3)\n{", "ChannelParams *cp = &VAR_0->channel_params[VAR_3];", "FilterParams *fir = &cp->filter_params[FIR];", "FilterParams *iir = &cp->filter_params[IIR];", "SubStream *s = &VAR_0->substream[VAR_1];", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19, 21, 23 ], [ 27, 29, 31, 33 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 59, 61 ], [ 65, 67, 69 ], [ 73 ...
11,280
static int64_t rm_read_dts(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { RMDemuxContext *rm = s->priv_data; int64_t pos, dts; int stream_index2, flags, len, h; pos = *ppos; if(rm->old_format) return AV_NOPTS_VALUE; ...
false
FFmpeg
7e4111cfe2f5d03af8d608757e897145aa252af8
static int64_t rm_read_dts(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { RMDemuxContext *rm = s->priv_data; int64_t pos, dts; int stream_index2, flags, len, h; pos = *ppos; if(rm->old_format) return AV_NOPTS_VALUE; ...
{ "code": [], "line_no": [] }
static int64_t FUNC_0(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { RMDemuxContext *rm = s->priv_data; int64_t pos, dts; int VAR_0, VAR_1, VAR_2, VAR_3; pos = *ppos; if(rm->old_format) return AV_NOPTS_VALUE; avio_s...
[ "static int64_t FUNC_0(AVFormatContext *s, int stream_index,\nint64_t *ppos, int64_t pos_limit)\n{", "RMDemuxContext *rm = s->priv_data;", "int64_t pos, dts;", "int VAR_0, VAR_1, VAR_2, VAR_3;", "pos = *ppos;", "if(rm->old_format)\nreturn AV_NOPTS_VALUE;", "avio_seek(s->pb, pos, SEEK_SET);", "rm->rema...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
11,281
static int gif_image_write_header(AVIOContext *pb, int width, int height, int loop_count, uint32_t *palette) { int i; avio_write(pb, "GIF", 3); avio_write(pb, "89a", 3); avio_wl16(pb, width); avio_wl16(pb, height); if (palette) { avio_w8(pb,...
false
FFmpeg
09f59d6adfa19d1ad5049416c1d0fbc996f509fd
static int gif_image_write_header(AVIOContext *pb, int width, int height, int loop_count, uint32_t *palette) { int i; avio_write(pb, "GIF", 3); avio_write(pb, "89a", 3); avio_wl16(pb, width); avio_wl16(pb, height); if (palette) { avio_w8(pb,...
{ "code": [], "line_no": [] }
static int FUNC_0(AVIOContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, uint32_t *VAR_4) { int VAR_5; avio_write(VAR_0, "GIF", 3); avio_write(VAR_0, "89a", 3); avio_wl16(VAR_0, VAR_1); avio_wl16(VAR_0, VAR_2); if (VAR_4) { avio_w8(VAR_0, 0xf7...
[ "static int FUNC_0(AVIOContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, uint32_t *VAR_4)\n{", "int VAR_5;", "avio_write(VAR_0, \"GIF\", 3);", "avio_write(VAR_0, \"89a\", 3);", "avio_wl16(VAR_0, VAR_1);", "avio_wl16(VAR_0, VAR_2);", "if (VAR_4) {", "avio_w8(VAR_0, 0xf7);", "avio_w8(VAR_0, 0x1f);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...
11,282
static av_cold int omx_encode_init(AVCodecContext *avctx) { OMXCodecContext *s = avctx->priv_data; int ret = AVERROR_ENCODER_NOT_FOUND; const char *role; OMX_BUFFERHEADERTYPE *buffer; OMX_ERRORTYPE err; #if CONFIG_OMX_RPI s->input_zerocopy = 1; #endif s->omx_context = omx_init(...
false
FFmpeg
5c2fb561d94fc51d76ab21d6f7cc5b6cc3aa599c
static av_cold int omx_encode_init(AVCodecContext *avctx) { OMXCodecContext *s = avctx->priv_data; int ret = AVERROR_ENCODER_NOT_FOUND; const char *role; OMX_BUFFERHEADERTYPE *buffer; OMX_ERRORTYPE err; #if CONFIG_OMX_RPI s->input_zerocopy = 1; #endif s->omx_context = omx_init(...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { OMXCodecContext *s = avctx->priv_data; int VAR_0 = AVERROR_ENCODER_NOT_FOUND; const char *VAR_1; OMX_BUFFERHEADERTYPE *buffer; OMX_ERRORTYPE err; #if CONFIG_OMX_RPI s->input_zerocopy = 1; #endif s->omx_context = omx_init(avctx,...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "OMXCodecContext *s = avctx->priv_data;", "int VAR_0 = AVERROR_ENCODER_NOT_FOUND;", "const char *VAR_1;", "OMX_BUFFERHEADERTYPE *buffer;", "OMX_ERRORTYPE err;", "#if CONFIG_OMX_RPI\ns->input_zerocopy = 1;", "#endif\ns->omx_context = omx_init(avctx...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
11,283
static int check_pkt(AVFormatContext *s, AVPacket *pkt) { MOVMuxContext *mov = s->priv_data; MOVTrack *trk = &mov->tracks[pkt->stream_index]; int64_t ref; uint64_t duration; if (trk->entry) { ref = trk->cluster[trk->entry - 1].dts; } else if ( trk->start_dts != AV_NOPTS_VALUE ...
true
FFmpeg
ffc58b2ce27e140b47900d1ead304663f7b385ae
static int check_pkt(AVFormatContext *s, AVPacket *pkt) { MOVMuxContext *mov = s->priv_data; MOVTrack *trk = &mov->tracks[pkt->stream_index]; int64_t ref; uint64_t duration; if (trk->entry) { ref = trk->cluster[trk->entry - 1].dts; } else if ( trk->start_dts != AV_NOPTS_VALUE ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MOVMuxContext *mov = VAR_0->priv_data; MOVTrack *trk = &mov->tracks[VAR_1->stream_index]; int64_t ref; uint64_t duration; if (trk->entry) { ref = trk->cluster[trk->entry - 1].dts; } else if ( trk->start_dts != AV_NOPTS_VALUE ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "MOVMuxContext *mov = VAR_0->priv_data;", "MOVTrack *trk = &mov->tracks[VAR_1->stream_index];", "int64_t ref;", "uint64_t duration;", "if (trk->entry) {", "ref = trk->cluster[trk->entry - 1].dts;", "} else if ( trk->start_dts != AV_NOP...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16, 17, 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ],...
11,284
static int vc9_init_common(VC9Context *v) { static int done = 0; int i; /* Set the bit planes */ v->mv_type_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 }; v->direct_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 }; v->skip_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 }; #if HAS_ADVANCED...
true
FFmpeg
bf2bc926f04dcdde0a22c137d08a0bb546e0179e
static int vc9_init_common(VC9Context *v) { static int done = 0; int i; v->mv_type_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 }; v->direct_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 }; v->skip_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 }; #if HAS_ADVANCED_PROFILE v->ac_pred...
{ "code": [ " int i;", "#endif", "#if HAS_ADVANCED_PROFILE", "#endif", " return 0;" ], "line_no": [ 7, 25, 19, 25, 157 ] }
static int FUNC_0(VC9Context *VAR_0) { static int VAR_1 = 0; int VAR_2; VAR_0->mv_type_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 }; VAR_0->direct_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 }; VAR_0->skip_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 }; #if HAS_ADVANCED_PROFILE ...
[ "static int FUNC_0(VC9Context *VAR_0)\n{", "static int VAR_1 = 0;", "int VAR_2;", "VAR_0->mv_type_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 };", "VAR_0->direct_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 };", "VAR_0->skip_mb_plane = (struct BitPlane) { NULL, 0, 0, 0 };", "#if HAS_ADVANCED_PROFILE\nV...
[ 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25, 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
11,285
int av_packet_unpack_dictionary(const uint8_t *data, int size, AVDictionary **dict) { const uint8_t *end = data + size; int ret = 0; if (!dict || !data || !size) return ret; if (size && end[-1]) return AVERROR_INVALIDDATA; while (data < end) { const uint8_t *key = ...
true
FFmpeg
2c00b373024054e0779ef67fc54b763d624db3e8
int av_packet_unpack_dictionary(const uint8_t *data, int size, AVDictionary **dict) { const uint8_t *end = data + size; int ret = 0; if (!dict || !data || !size) return ret; if (size && end[-1]) return AVERROR_INVALIDDATA; while (data < end) { const uint8_t *key = ...
{ "code": [ " if (val >= end)" ], "line_no": [ 27 ] }
int FUNC_0(const uint8_t *VAR_0, int VAR_1, AVDictionary **VAR_2) { const uint8_t *VAR_3 = VAR_0 + VAR_1; int VAR_4 = 0; if (!VAR_2 || !VAR_0 || !VAR_1) return VAR_4; if (VAR_1 && VAR_3[-1]) return AVERROR_INVALIDDATA; while (VAR_0 < VAR_3) { const uint8_t *VAR_5 =...
[ "int FUNC_0(const uint8_t *VAR_0, int VAR_1, AVDictionary **VAR_2)\n{", "const uint8_t *VAR_3 = VAR_0 + VAR_1;", "int VAR_4 = 0;", "if (!VAR_2 || !VAR_0 || !VAR_1)\nreturn VAR_4;", "if (VAR_1 && VAR_3[-1])\nreturn AVERROR_INVALIDDATA;", "while (VAR_0 < VAR_3) {", "const uint8_t *VAR_5 = VAR_0;", "cons...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
11,286
void cpu_interrupt(CPUState *env, int mask) { #if !defined(USE_NPTL) TranslationBlock *tb; static spinlock_t interrupt_lock = SPIN_LOCK_UNLOCKED; #endif int old_mask; old_mask = env->interrupt_request; /* FIXME: This is probably not threadsafe. A different thread could be in the m...
true
qemu
be214e6c0557139ffa5551f77e339c07495bfec3
void cpu_interrupt(CPUState *env, int mask) { #if !defined(USE_NPTL) TranslationBlock *tb; static spinlock_t interrupt_lock = SPIN_LOCK_UNLOCKED; #endif int old_mask; old_mask = env->interrupt_request; env->interrupt_request |= mask; #if defined(USE_NPTL) #else i...
{ "code": [ " && (mask & ~(old_mask | CPU_INTERRUPT_EXIT)) != 0) {" ], "line_no": [ 49 ] }
void FUNC_0(CPUState *VAR_0, int VAR_1) { #if !defined(USE_NPTL) TranslationBlock *tb; static spinlock_t VAR_2 = SPIN_LOCK_UNLOCKED; #endif int VAR_3; VAR_3 = VAR_0->interrupt_request; VAR_0->interrupt_request |= VAR_1; #if defined(USE_NPTL) #else if (use_icount)...
[ "void FUNC_0(CPUState *VAR_0, int VAR_1)\n{", "#if !defined(USE_NPTL)\nTranslationBlock *tb;", "static spinlock_t VAR_2 = SPIN_LOCK_UNLOCKED;", "#endif\nint VAR_3;", "VAR_3 = VAR_0->interrupt_request;", "VAR_0->interrupt_request |= VAR_1;", "#if defined(USE_NPTL)\n#else\nif (use_icount) {", "VAR_0->ic...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 23 ], [ 25, 35, 37 ], [ 39 ], [ 41, 47, 49 ], [ 51 ], [ 53 ], [ 55, 57 ], [ 59 ], [ 65 ], [ 67 ], [ 69 ], [...
11,287
static always_inline int translate_one (DisasContext *ctx, uint32_t insn) { uint32_t palcode; int32_t disp21, disp16, disp12; uint16_t fn11, fn16; uint8_t opc, ra, rb, rc, sbz, fpfn, fn7, fn2, islit; uint8_t lit; int ret; /* Decode all instruction fields */ opc = insn >> 26; ...
true
qemu
1304ca878a4e091c193bd4ae273e0b5cb6142237
static always_inline int translate_one (DisasContext *ctx, uint32_t insn) { uint32_t palcode; int32_t disp21, disp16, disp12; uint16_t fn11, fn16; uint8_t opc, ra, rb, rc, sbz, fpfn, fn7, fn2, islit; uint8_t lit; int ret; opc = insn >> 26; ra = (insn >> 21) & 0x1F; ...
{ "code": [ " if (ra != 31)", " tcg_gen_movi_i64(cpu_ir[ra], ctx->pc);" ], "line_no": [ 2225, 2227 ] }
static always_inline int FUNC_0 (DisasContext *ctx, uint32_t insn) { uint32_t palcode; int32_t disp21, disp16, disp12; uint16_t fn11, fn16; uint8_t opc, ra, rb, rc, sbz, fpfn, fn7, fn2, islit; uint8_t lit; int VAR_0; opc = insn >> 26; ra = (insn >> 21) & 0x1F; rb = ...
[ "static always_inline int FUNC_0 (DisasContext *ctx, uint32_t insn)\n{", "uint32_t palcode;", "int32_t disp21, disp16, disp12;", "uint16_t fn11, fn16;", "uint8_t opc, ra, rb, rc, sbz, fpfn, fn7, fn2, islit;", "uint8_t lit;", "int VAR_0;", "opc = insn >> 26;", "ra = (insn >> 21) & 0x1F;", "rb = (in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
11,289
void ff_aac_search_for_is(AACEncContext *s, AVCodecContext *avctx, ChannelElement *cpe) { SingleChannelElement *sce0 = &cpe->ch[0]; SingleChannelElement *sce1 = &cpe->ch[1]; int start = 0, count = 0, w, w2, g, i; const float freq_mult = avctx->sample_rate/(1024.0f/sce0->ics.num_windows)/2.0f; ...
true
FFmpeg
01ecb7172b684f1c4b3e748f95c5a9a494ca36ec
void ff_aac_search_for_is(AACEncContext *s, AVCodecContext *avctx, ChannelElement *cpe) { SingleChannelElement *sce0 = &cpe->ch[0]; SingleChannelElement *sce1 = &cpe->ch[1]; int start = 0, count = 0, w, w2, g, i; const float freq_mult = avctx->sample_rate/(1024.0f/sce0->ics.num_windows)/2.0f; ...
{ "code": [ " float ener0 = 0.0f, ener1 = 0.0f, ener01 = 0.0f;", " float coef0 = fabsf(sce0->pcoeffs[start+(w+w2)*128+i]);", " float coef1 = fabsf(sce1->pcoeffs[start+(w+w2)*128+i]);", " ener0,...
void FUNC_0(AACEncContext *VAR_0, AVCodecContext *VAR_1, ChannelElement *VAR_2) { SingleChannelElement *sce0 = &VAR_2->ch[0]; SingleChannelElement *sce1 = &VAR_2->ch[1]; int VAR_3 = 0, VAR_4 = 0, VAR_5, VAR_6, VAR_7, VAR_8; const float VAR_9 = VAR_1->sample_rate/(1024.0f/sce0->ics.num_windows)/2.0f...
[ "void FUNC_0(AACEncContext *VAR_0, AVCodecContext *VAR_1, ChannelElement *VAR_2)\n{", "SingleChannelElement *sce0 = &VAR_2->ch[0];", "SingleChannelElement *sce1 = &VAR_2->ch[1];", "int VAR_3 = 0, VAR_4 = 0, VAR_5, VAR_6, VAR_7, VAR_8;", "const float VAR_9 = VAR_1->sample_rate/(1024.0f/sce0->ics.num_windows)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
11,290
static int yuv4_write_header(AVFormatContext *s) { int* first_pkt = s->priv_data; if (s->nb_streams != 1) return AVERROR(EIO); if (s->streams[0]->codec->pix_fmt == PIX_FMT_YUV411P) { av_log(s, AV_LOG_ERROR, "Warning: generating rarely used 4:1:1 YUV stream, some mjpegtools might not work.\n"...
true
FFmpeg
1f95fb58137951941d8d74bd47b1635b6d2399ec
static int yuv4_write_header(AVFormatContext *s) { int* first_pkt = s->priv_data; if (s->nb_streams != 1) return AVERROR(EIO); if (s->streams[0]->codec->pix_fmt == PIX_FMT_YUV411P) { av_log(s, AV_LOG_ERROR, "Warning: generating rarely used 4:1:1 YUV stream, some mjpegtools might not work.\n"...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { int* VAR_1 = VAR_0->priv_data; if (VAR_0->nb_streams != 1) return AVERROR(EIO); if (VAR_0->streams[0]->codec->pix_fmt == PIX_FMT_YUV411P) { av_log(VAR_0, AV_LOG_ERROR, "Warning: generating rarely used 4:1:1 YUV stream, some mjpegtools might not wor...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "int* VAR_1 = VAR_0->priv_data;", "if (VAR_0->nb_streams != 1)\nreturn AVERROR(EIO);", "if (VAR_0->streams[0]->codec->pix_fmt == PIX_FMT_YUV411P) {", "av_log(VAR_0, AV_LOG_ERROR, \"Warning: generating rarely used 4:1:1 YUV stream, some mjpegtools might not wor...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4, 5 ], [ 6 ], [ 7 ], [ 8, 9, 10, 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ] ]
11,291
static void vmmouse_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = vmmouse_realizefn; dc->no_user = 1; dc->reset = vmmouse_reset; dc->vmsd = &vmstate_vmmouse; dc->props = vmmouse_properties; }
true
qemu
efec3dd631d94160288392721a5f9c39e50fb2bc
static void vmmouse_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = vmmouse_realizefn; dc->no_user = 1; dc->reset = vmmouse_reset; dc->vmsd = &vmstate_vmmouse; dc->props = vmmouse_properties; }
{ "code": [ " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;"...
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = vmmouse_realizefn; dc->no_user = 1; dc->reset = vmmouse_reset; dc->vmsd = &vmstate_vmmouse; dc->props = vmmouse_properties; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = vmmouse_realizefn;", "dc->no_user = 1;", "dc->reset = vmmouse_reset;", "dc->vmsd = &vmstate_vmmouse;", "dc->props = vmmouse_properties;", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
11,292
static inline void array_free(array_t* array) { if(array->pointer) free(array->pointer); array->size=array->next=0; }
true
qemu
ce137829e7e58fcdc5ba63b5e256f972e80be438
static inline void array_free(array_t* array) { if(array->pointer) free(array->pointer); array->size=array->next=0; }
{ "code": [ " if(array->pointer)", " free(array->pointer);" ], "line_no": [ 5, 7 ] }
static inline void FUNC_0(array_t* VAR_0) { if(VAR_0->pointer) free(VAR_0->pointer); VAR_0->size=VAR_0->next=0; }
[ "static inline void FUNC_0(array_t* VAR_0)\n{", "if(VAR_0->pointer)\nfree(VAR_0->pointer);", "VAR_0->size=VAR_0->next=0;", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ] ]
11,294
int get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int access_type) { int ret; #if 0 qemu_log("%s\n", __func__); #endif if ((access_type == ACCESS_CODE && msr_ir == 0) || (access_type != ACCESS_CODE && msr_dr == 0)) { if...
true
qemu
4656e1f01289cc3aa20986deb6a407165826abe5
int get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int access_type) { int ret; #if 0 qemu_log("%s\n", __func__); #endif if ((access_type == ACCESS_CODE && msr_ir == 0) || (access_type != ACCESS_CODE && msr_dr == 0)) { if...
{ "code": [], "line_no": [] }
int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { int VAR_5; #if 0 qemu_log("%s\n", __func__); #endif if ((VAR_4 == ACCESS_CODE && msr_ir == 0) || (VAR_4 != ACCESS_CODE && msr_dr == 0)) { if (VAR_0->mmu_model == P...
[ "int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2,\nint VAR_3, int VAR_4)\n{", "int VAR_5;", "#if 0\nqemu_log(\"%s\\n\", __func__);", "#endif\nif ((VAR_4 == ACCESS_CODE && msr_ir == 0) ||\n(VAR_4 != ACCESS_CODE && msr_dr == 0)) {", "if (VAR_0->mmu_model == POWERPC_MMU_BOOKE) {", "VAR_5 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53, 55, 57, 61...
11,296
static int vaapi_mpeg4_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { Mpeg4DecContext *ctx = avctx->priv_data; MpegEncContext * const s = &ctx->m; struct vaapi_context * const vactx = avctx->hwaccel_context; VAPictureParameterBufferMPEG4 *pic_param; ...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static int vaapi_mpeg4_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { Mpeg4DecContext *ctx = avctx->priv_data; MpegEncContext * const s = &ctx->m; struct vaapi_context * const vactx = avctx->hwaccel_context; VAPictureParameterBufferMPEG4 *pic_param; ...
{ "code": [ " pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture.f);", " pic_param->vop_fields.bits.backward_reference_vop_coding_type = s->pict_type == AV_PICTURE_TYPE_B ? s->next_picture.f.pict_type - AV_PICTURE_TYPE_I : 0;", " pic_param->backward_reference...
static int FUNC_0(AVCodecContext *VAR_0, av_unused const VAR_1 *buffer, av_unused uint32_t size) { Mpeg4DecContext *ctx = VAR_0->priv_data; MpegEncContext * const s = &ctx->m; struct vaapi_context * const VAR_2 = VAR_0->hwaccel_context; VAPictureParameterBufferMPEG4 *pic_param; VAIQMatrixBuffe...
[ "static int FUNC_0(AVCodecContext *VAR_0, av_unused const VAR_1 *buffer, av_unused uint32_t size)\n{", "Mpeg4DecContext *ctx = VAR_0->priv_data;", "MpegEncContext * const s = &ctx->m;", "struct vaapi_context * const VAR_2 = VAR_0->hwaccel_context;", "VAPictureParameterBufferMPEG4 *pic_param;", "VAIQMatrix...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
11,297
static inline int mpeg2_fast_decode_block_intra(MpegEncContext *s, int16_t *block, int n) { int level, dc, diff, j, run; int component; RLTable *rl; uint8_t * scantable = s->intra_scantable.permutated; const uint16_t *quant_matrix; const int qscale = s->qscale; /* DC coefficient */...
false
FFmpeg
746350ea0f7bde1e9fd23270e104af8897197293
static inline int mpeg2_fast_decode_block_intra(MpegEncContext *s, int16_t *block, int n) { int level, dc, diff, j, run; int component; RLTable *rl; uint8_t * scantable = s->intra_scantable.permutated; const uint16_t *quant_matrix; const int qscale = s->qscale; if (n < 4) { ...
{ "code": [], "line_no": [] }
static inline int FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8; RLTable *rl; uint8_t * scantable = VAR_0->intra_scantable.permutated; const uint16_t *VAR_9; const int VAR_10 = VAR_0->VAR_10; if (VAR_2 < 4) { ...
[ "static inline int FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8;", "RLTable *rl;", "uint8_t * scantable = VAR_0->intra_scantable.permutated;", "const uint16_t *VAR_9;", "const int VAR_10 = VAR_0->VAR_10;", "if (VAR_2 < 4) {", "VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [...
11,298
target_phys_addr_t cpu_get_phys_page_debug (CPUState *env, target_ulong addr) { mmu_ctx_t ctx; if (unlikely(get_physical_address(env, &ctx, addr, 0, ACCESS_INT, 1) != 0)) return -1; return ctx.raddr & TARGET_PAGE_MASK; }
true
qemu
faadf50e2962dd54175647a80bd6fc4319c91973
target_phys_addr_t cpu_get_phys_page_debug (CPUState *env, target_ulong addr) { mmu_ctx_t ctx; if (unlikely(get_physical_address(env, &ctx, addr, 0, ACCESS_INT, 1) != 0)) return -1; return ctx.raddr & TARGET_PAGE_MASK; }
{ "code": [ " if (unlikely(get_physical_address(env, &ctx, addr, 0, ACCESS_INT, 1) != 0))" ], "line_no": [ 9 ] }
target_phys_addr_t FUNC_0 (CPUState *env, target_ulong addr) { mmu_ctx_t ctx; if (unlikely(get_physical_address(env, &ctx, addr, 0, ACCESS_INT, 1) != 0)) return -1; return ctx.raddr & TARGET_PAGE_MASK; }
[ "target_phys_addr_t FUNC_0 (CPUState *env, target_ulong addr)\n{", "mmu_ctx_t ctx;", "if (unlikely(get_physical_address(env, &ctx, addr, 0, ACCESS_INT, 1) != 0))\nreturn -1;", "return ctx.raddr & TARGET_PAGE_MASK;", "}" ]
[ 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ] ]
11,299
static unsigned tget_long(const uint8_t **p, int le) { unsigned v = le ? AV_RL32(*p) : AV_RB32(*p); *p += 4; return v; }
true
FFmpeg
0a467a9b594dd67aa96bad687d05f8845b009f18
static unsigned tget_long(const uint8_t **p, int le) { unsigned v = le ? AV_RL32(*p) : AV_RB32(*p); *p += 4; return v; }
{ "code": [ " return v;", "static unsigned tget_long(const uint8_t **p, int le)", " unsigned v = le ? AV_RL32(*p) : AV_RB32(*p);", " *p += 4;", " return v;" ], "line_no": [ 9, 1, 5, 7, 9 ] }
static unsigned FUNC_0(const uint8_t **VAR_0, int VAR_1) { unsigned VAR_2 = VAR_1 ? AV_RL32(*VAR_0) : AV_RB32(*VAR_0); *VAR_0 += 4; return VAR_2; }
[ "static unsigned FUNC_0(const uint8_t **VAR_0, int VAR_1)\n{", "unsigned VAR_2 = VAR_1 ? AV_RL32(*VAR_0) : AV_RB32(*VAR_0);", "*VAR_0 += 4;", "return VAR_2;", "}" ]
[ 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
11,300
static unsigned int dec_move_r(DisasContext *dc) { int size = memsize_zz(dc); DIS(fprintf (logfile, "move.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZ); if (size == 4) { dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, cpu_R[dc->op2]); cris_cc_mask(dc, CC...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static unsigned int dec_move_r(DisasContext *dc) { int size = memsize_zz(dc); DIS(fprintf (logfile, "move.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZ); if (size == 4) { dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, cpu_R[dc->op2]); cris_cc_mask(dc, CC...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { int VAR_1 = memsize_zz(VAR_0); DIS(fprintf (logfile, "move.%c $r%u, $r%u\n", memsize_char(VAR_1), VAR_0->op1, VAR_0->op2)); cris_cc_mask(VAR_0, CC_MASK_NZ); if (VAR_1 == 4) { dec_prep_move_r(VAR_0, VAR_0->op1, VAR_0->op2, VAR_1, 0, cpu_R[VAR_0->op...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "int VAR_1 = memsize_zz(VAR_0);", "DIS(fprintf (logfile, \"move.%c $r%u, $r%u\\n\",\nmemsize_char(VAR_1), VAR_0->op1, VAR_0->op2));", "cris_cc_mask(VAR_0, CC_MASK_NZ);", "if (VAR_1 == 4) {", "dec_prep_move_r(VAR_0, VAR_0->op1, VAR_0->op2, VAR_1, 0, cpu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41, 43, 45 ], [ 47 ], [ 49 ], ...
11,301
static void gen_neon_zip_u16(TCGv t0, TCGv t1) { TCGv tmp, tmp2; tmp = new_tmp(); tmp2 = new_tmp(); tcg_gen_andi_i32(tmp, t0, 0xffff); tcg_gen_shli_i32(tmp2, t1, 16); tcg_gen_or_i32(tmp, tmp, tmp2); tcg_gen_andi_i32(t1, t1, 0xffff0000); tcg_gen_shri_i32(tmp2, t0, 16); t...
false
qemu
d68a6f3a6deb2f5eee198b6fa46877a20227d86e
static void gen_neon_zip_u16(TCGv t0, TCGv t1) { TCGv tmp, tmp2; tmp = new_tmp(); tmp2 = new_tmp(); tcg_gen_andi_i32(tmp, t0, 0xffff); tcg_gen_shli_i32(tmp2, t1, 16); tcg_gen_or_i32(tmp, tmp, tmp2); tcg_gen_andi_i32(t1, t1, 0xffff0000); tcg_gen_shri_i32(tmp2, t0, 16); t...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGv VAR_0, TCGv VAR_1) { TCGv tmp, tmp2; tmp = new_tmp(); tmp2 = new_tmp(); tcg_gen_andi_i32(tmp, VAR_0, 0xffff); tcg_gen_shli_i32(tmp2, VAR_1, 16); tcg_gen_or_i32(tmp, tmp, tmp2); tcg_gen_andi_i32(VAR_1, VAR_1, 0xffff0000); tcg_gen_shri_i32(tmp2, VAR_0, ...
[ "static void FUNC_0(TCGv VAR_0, TCGv VAR_1)\n{", "TCGv tmp, tmp2;", "tmp = new_tmp();", "tmp2 = new_tmp();", "tcg_gen_andi_i32(tmp, VAR_0, 0xffff);", "tcg_gen_shli_i32(tmp2, VAR_1, 16);", "tcg_gen_or_i32(tmp, tmp, tmp2);", "tcg_gen_andi_i32(VAR_1, VAR_1, 0xffff0000);", "tcg_gen_shri_i32(tmp2, VAR_0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ] ]
11,302
static int spapr_create_pci_child_dt(sPAPRPHBState *phb, PCIDevice *dev, int drc_index, const char *drc_name, void *fdt, int node_offset) { int offset, ret; int slot = PCI_SLOT(dev->devfn); int func = PCI_FUNC(dev->devfn); ...
false
qemu
e634b89c6ed2309814de7a89bd7c5ced96f59291
static int spapr_create_pci_child_dt(sPAPRPHBState *phb, PCIDevice *dev, int drc_index, const char *drc_name, void *fdt, int node_offset) { int offset, ret; int slot = PCI_SLOT(dev->devfn); int func = PCI_FUNC(dev->devfn); ...
{ "code": [], "line_no": [] }
static int FUNC_0(sPAPRPHBState *VAR_0, PCIDevice *VAR_1, int VAR_2, const char *VAR_3, void *VAR_4, int VAR_5) { int VAR_6, VAR_7; int VAR_8 = PCI_SLOT(VAR_1->devfn); int VAR_9 = PCI_FUNC(VAR_1->devfn); char VAR_10[FDT_NAM...
[ "static int FUNC_0(sPAPRPHBState *VAR_0, PCIDevice *VAR_1,\nint VAR_2, const char *VAR_3,\nvoid *VAR_4, int VAR_5)\n{", "int VAR_6, VAR_7;", "int VAR_8 = PCI_SLOT(VAR_1->devfn);", "int VAR_9 = PCI_FUNC(VAR_1->devfn);", "char VAR_10[FDT_NAME_MAX];", "if (VAR_9 != 0) {", "snprintf(VAR_10, FDT_NAME_MAX, \"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
11,304
void shpc_cleanup(PCIDevice *d, MemoryRegion *bar) { SHPCDevice *shpc = d->shpc; d->cap_present &= ~QEMU_PCI_CAP_SHPC; memory_region_del_subregion(bar, &shpc->mmio); object_unparent(OBJECT(&shpc->mmio)); /* TODO: cleanup config space changes? */ g_free(shpc->config); g_free(shpc->cma...
false
qemu
5cd5e7015962d8d559afb5154888fd34a8526ddd
void shpc_cleanup(PCIDevice *d, MemoryRegion *bar) { SHPCDevice *shpc = d->shpc; d->cap_present &= ~QEMU_PCI_CAP_SHPC; memory_region_del_subregion(bar, &shpc->mmio); object_unparent(OBJECT(&shpc->mmio)); g_free(shpc->config); g_free(shpc->cmask); g_free(shpc->wmask); g_fre...
{ "code": [], "line_no": [] }
void FUNC_0(PCIDevice *VAR_0, MemoryRegion *VAR_1) { SHPCDevice *shpc = VAR_0->shpc; VAR_0->cap_present &= ~QEMU_PCI_CAP_SHPC; memory_region_del_subregion(VAR_1, &shpc->mmio); object_unparent(OBJECT(&shpc->mmio)); g_free(shpc->config); g_free(shpc->cmask); g_free(shpc->wmask); ...
[ "void FUNC_0(PCIDevice *VAR_0, MemoryRegion *VAR_1)\n{", "SHPCDevice *shpc = VAR_0->shpc;", "VAR_0->cap_present &= ~QEMU_PCI_CAP_SHPC;", "memory_region_del_subregion(VAR_1, &shpc->mmio);", "object_unparent(OBJECT(&shpc->mmio));", "g_free(shpc->config);", "g_free(shpc->cmask);", "g_free(shpc->wmask);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
11,305
static CharDriverState *qmp_chardev_open_file(ChardevFile *file, Error **errp) { int flags, in = -1, out = -1; flags = O_WRONLY | O_TRUNC | O_CREAT | O_BINARY; out = qmp_chardev_open_file_source(file->out, flags, errp); if (error_is_set(errp)) { return NULL; } if (file->in) {...
false
qemu
e859eda58501cd20a2e6988fb4acc1756bc4d278
static CharDriverState *qmp_chardev_open_file(ChardevFile *file, Error **errp) { int flags, in = -1, out = -1; flags = O_WRONLY | O_TRUNC | O_CREAT | O_BINARY; out = qmp_chardev_open_file_source(file->out, flags, errp); if (error_is_set(errp)) { return NULL; } if (file->in) {...
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(ChardevFile *file, Error **errp) { int VAR_0, VAR_1 = -1, VAR_2 = -1; VAR_0 = O_WRONLY | O_TRUNC | O_CREAT | O_BINARY; VAR_2 = qmp_chardev_open_file_source(file->VAR_2, VAR_0, errp); if (error_is_set(errp)) { return NULL; } if (file->VAR_1) { ...
[ "static CharDriverState *FUNC_0(ChardevFile *file, Error **errp)\n{", "int VAR_0, VAR_1 = -1, VAR_2 = -1;", "VAR_0 = O_WRONLY | O_TRUNC | O_CREAT | O_BINARY;", "VAR_2 = qmp_chardev_open_file_source(file->VAR_2, VAR_0, errp);", "if (error_is_set(errp)) {", "return NULL;", "}", "if (file->VAR_1) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
11,306
static unsigned int dec_bound_r(DisasContext *dc) { TCGv l0; int size = memsize_zz(dc); DIS(fprintf (logfile, "bound.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZ); l0 = tcg_temp_local_new(TCG_TYPE_TL); dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, l0); cri...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static unsigned int dec_bound_r(DisasContext *dc) { TCGv l0; int size = memsize_zz(dc); DIS(fprintf (logfile, "bound.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZ); l0 = tcg_temp_local_new(TCG_TYPE_TL); dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, l0); cri...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { TCGv l0; int VAR_1 = memsize_zz(VAR_0); DIS(fprintf (logfile, "bound.%c $r%u, $r%u\n", memsize_char(VAR_1), VAR_0->op1, VAR_0->op2)); cris_cc_mask(VAR_0, CC_MASK_NZ); l0 = tcg_temp_local_new(TCG_TYPE_TL); dec_prep_move_r(VAR_0, VAR_0->op1, VAR_0->op2...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "TCGv l0;", "int VAR_1 = memsize_zz(VAR_0);", "DIS(fprintf (logfile, \"bound.%c $r%u, $r%u\\n\",\nmemsize_char(VAR_1), VAR_0->op1, VAR_0->op2));", "cris_cc_mask(VAR_0, CC_MASK_NZ);", "l0 = tcg_temp_local_new(TCG_TYPE_TL);", "dec_prep_move_r(VAR_0, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
11,307
static int usb_wacom_handle_control(USBDevice *dev, int request, int value, int index, int length, uint8_t *data) { USBWacomState *s = (USBWacomState *) dev; int ret; ret = usb_desc_handle_control(dev, request, value, index, length, data); if (ret >= 0) { ...
false
qemu
a980a065fb5e86d6dec337e6cb6ff432f1a143c9
static int usb_wacom_handle_control(USBDevice *dev, int request, int value, int index, int length, uint8_t *data) { USBWacomState *s = (USBWacomState *) dev; int ret; ret = usb_desc_handle_control(dev, request, value, index, length, data); if (ret >= 0) { ...
{ "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) { USBWacomState *s = (USBWacomState *) 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) { retur...
[ "static int FUNC_0(USBDevice *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, uint8_t *VAR_5)\n{", "USBWacomState *s = (USBWacomState *) 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;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
11,308
static void gen_store_fpr32h(TCGv_i32 t, int reg) { TCGv_i64 t64 = tcg_temp_new_i64(); tcg_gen_extu_i32_i64(t64, t); tcg_gen_deposit_i64(fpu_f64[reg], fpu_f64[reg], t64, 32, 32); tcg_temp_free_i64(t64); }
false
qemu
7f6613cedc59fa849105668ae971dc31004bca1c
static void gen_store_fpr32h(TCGv_i32 t, int reg) { TCGv_i64 t64 = tcg_temp_new_i64(); tcg_gen_extu_i32_i64(t64, t); tcg_gen_deposit_i64(fpu_f64[reg], fpu_f64[reg], t64, 32, 32); tcg_temp_free_i64(t64); }
{ "code": [], "line_no": [] }
static void FUNC_0(TCGv_i32 VAR_0, int VAR_1) { TCGv_i64 t64 = tcg_temp_new_i64(); tcg_gen_extu_i32_i64(t64, VAR_0); tcg_gen_deposit_i64(fpu_f64[VAR_1], fpu_f64[VAR_1], t64, 32, 32); tcg_temp_free_i64(t64); }
[ "static void FUNC_0(TCGv_i32 VAR_0, int VAR_1)\n{", "TCGv_i64 t64 = tcg_temp_new_i64();", "tcg_gen_extu_i32_i64(t64, VAR_0);", "tcg_gen_deposit_i64(fpu_f64[VAR_1], fpu_f64[VAR_1], t64, 32, 32);", "tcg_temp_free_i64(t64);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
11,310
static int mov_read_smi(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; if((uint64_t)atom.size > (1<<30)) return -1; // currently SVQ3 decoder expect full STSD header - so let's fake it // this should be fixed and just SMI header sh...
false
FFmpeg
6a63ff19b6a7fe3bc32c7fb4a62fca8f65786432
static int mov_read_smi(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; if((uint64_t)atom.size > (1<<30)) return -1; av_free(st->codec->extradata); st->codec->extradata = av_mallocz(atom.size + 0x5a + FF_INPUT_BUFFER_PAD...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; if((uint64_t)VAR_2.size > (1<<30)) return -1; av_free(st->codec->extradata); st->codec->extradata = av_mallocz(VAR_2.size + 0x5a + FF_INPU...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "if((uint64_t)VAR_2.size > (1<<30))\nreturn -1;", "av_free(st->codec->extradata);", "st->codec->extradata = av_mallocz(VAR_2.size + 0x5a + FF_INPUT_BUFFER_PADDING_SI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
11,311
static inline void ne2000_mem_writel(NE2000State *s, uint32_t addr, uint32_t val) { addr &= ~1; /* XXX: check exact behaviour if not even */ if (addr < 32 || (addr >= NE2000_PMEM_START && addr < NE2000_MEM_SIZE)) { stl_le_p(s->mem + addr, val); } ...
false
qemu
aa7f9966dfdff500bbbf1956d9e115b1fa8987a6
static inline void ne2000_mem_writel(NE2000State *s, uint32_t addr, uint32_t val) { addr &= ~1; if (addr < 32 || (addr >= NE2000_PMEM_START && addr < NE2000_MEM_SIZE)) { stl_le_p(s->mem + addr, val); } }
{ "code": [], "line_no": [] }
static inline void FUNC_0(NE2000State *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { VAR_1 &= ~1; if (VAR_1 < 32 || (VAR_1 >= NE2000_PMEM_START && VAR_1 < NE2000_MEM_SIZE)) { stl_le_p(VAR_0->mem + VAR_1, VAR_2); } }
[ "static inline void FUNC_0(NE2000State *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2)\n{", "VAR_1 &= ~1;", "if (VAR_1 < 32 ||\n(VAR_1 >= NE2000_PMEM_START && VAR_1 < NE2000_MEM_SIZE)) {", "stl_le_p(VAR_0->mem + VAR_1, VAR_2);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ] ]
11,312
static void nvdimm_build_fit_buffer(NvdimmFitBuffer *fit_buf) { qemu_mutex_lock(&fit_buf->lock); g_array_free(fit_buf->fit, true); fit_buf->fit = nvdimm_build_device_structure(); fit_buf->dirty = true; qemu_mutex_unlock(&fit_buf->lock); }
false
qemu
12f86b5b3e1bdf75e0a467d771c16cc42f3a1f1a
static void nvdimm_build_fit_buffer(NvdimmFitBuffer *fit_buf) { qemu_mutex_lock(&fit_buf->lock); g_array_free(fit_buf->fit, true); fit_buf->fit = nvdimm_build_device_structure(); fit_buf->dirty = true; qemu_mutex_unlock(&fit_buf->lock); }
{ "code": [], "line_no": [] }
static void FUNC_0(NvdimmFitBuffer *VAR_0) { qemu_mutex_lock(&VAR_0->lock); g_array_free(VAR_0->fit, true); VAR_0->fit = nvdimm_build_device_structure(); VAR_0->dirty = true; qemu_mutex_unlock(&VAR_0->lock); }
[ "static void FUNC_0(NvdimmFitBuffer *VAR_0)\n{", "qemu_mutex_lock(&VAR_0->lock);", "g_array_free(VAR_0->fit, true);", "VAR_0->fit = nvdimm_build_device_structure();", "VAR_0->dirty = true;", "qemu_mutex_unlock(&VAR_0->lock);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
11,315
static void vnc_debug_gnutls_log(int level, const char* str) { VNC_DEBUG("%d %s", level, str); }
false
qemu
5fb6c7a8b26eab1a22207d24b4784bd2b39ab54b
static void vnc_debug_gnutls_log(int level, const char* str) { VNC_DEBUG("%d %s", level, str); }
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, const char* VAR_1) { VNC_DEBUG("%d %s", VAR_0, VAR_1); }
[ "static void FUNC_0(int VAR_0, const char* VAR_1) {", "VNC_DEBUG(\"%d %s\", VAR_0, VAR_1);", "}" ]
[ 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ] ]
11,317
static uint64_t subpage_read(void *opaque, target_phys_addr_t addr, unsigned len) { subpage_t *mmio = opaque; unsigned int idx = SUBPAGE_IDX(addr); MemoryRegionSection *section; #if defined(DEBUG_SUBPAGE) printf("%s: subpage %p len %d addr " TARGET_FMT_plx " idx %d\n"...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t subpage_read(void *opaque, target_phys_addr_t addr, unsigned len) { subpage_t *mmio = opaque; unsigned int idx = SUBPAGE_IDX(addr); MemoryRegionSection *section; #if defined(DEBUG_SUBPAGE) printf("%s: subpage %p len %d addr " TARGET_FMT_plx " idx %d\n"...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned len) { subpage_t *mmio = opaque; unsigned int VAR_0 = SUBPAGE_IDX(addr); MemoryRegionSection *section; #if defined(DEBUG_SUBPAGE) printf("%s: subpage %p len %d addr " TARGET_FMT_plx " VAR_0 %d\n", ...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned len)\n{", "subpage_t *mmio = opaque;", "unsigned int VAR_0 = SUBPAGE_IDX(addr);", "MemoryRegionSection *section;", "#if defined(DEBUG_SUBPAGE)\nprintf(\"%s: subpage %p len %d addr \" TARGET_FMT_plx \" VAR_0 %d\\n\", __func__,\nmmio, le...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15, 17 ], [ 19, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
11,318
int qcrypto_pbkdf2(QCryptoHashAlgorithm hash, const uint8_t *key, size_t nkey, const uint8_t *salt, size_t nsalt, unsigned int iterations, uint8_t *out, size_t nout, Error **errp) { static const int hash_map[QCRYPT...
false
qemu
59b060be184aff59cfa101c937c8139e66f452f2
int qcrypto_pbkdf2(QCryptoHashAlgorithm hash, const uint8_t *key, size_t nkey, const uint8_t *salt, size_t nsalt, unsigned int iterations, uint8_t *out, size_t nout, Error **errp) { static const int hash_map[QCRYPT...
{ "code": [], "line_no": [] }
int FUNC_0(QCryptoHashAlgorithm VAR_0, const uint8_t *VAR_1, size_t VAR_2, const uint8_t *VAR_3, size_t VAR_4, unsigned int VAR_5, uint8_t *VAR_6, size_t VAR_7, Error **VAR_8) { static const int VAR_9[QCRYPTO_HASH_...
[ "int FUNC_0(QCryptoHashAlgorithm VAR_0,\nconst uint8_t *VAR_1, size_t VAR_2,\nconst uint8_t *VAR_3, size_t VAR_4,\nunsigned int VAR_5,\nuint8_t *VAR_6, size_t VAR_7,\nError **VAR_8)\n{", "static const int VAR_9[QCRYPTO_HASH_ALG__MAX] = {", "[QCRYPTO_HASH_ALG_MD5] = GCRY_MD_MD5,\n[QCRYPTO_HASH_ALG_SHA1] = GCRY_M...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17, 19, 21, 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43, 45, 47 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 57 ], [...
11,319
uint32_t helper_efdctui (uint64_t val) { CPU_DoubleU u; u.ll = val; /* NaN are not treated the same way IEEE 754 does */ if (unlikely(float64_is_nan(u.d))) return 0; return float64_to_uint32(u.d, &env->vec_status); }
false
qemu
185698715dfb18c82ad2a5dbc169908602d43e81
uint32_t helper_efdctui (uint64_t val) { CPU_DoubleU u; u.ll = val; if (unlikely(float64_is_nan(u.d))) return 0; return float64_to_uint32(u.d, &env->vec_status); }
{ "code": [], "line_no": [] }
uint32_t FUNC_0 (uint64_t val) { CPU_DoubleU u; u.ll = val; if (unlikely(float64_is_nan(u.d))) return 0; return float64_to_uint32(u.d, &env->vec_status); }
[ "uint32_t FUNC_0 (uint64_t val)\n{", "CPU_DoubleU u;", "u.ll = val;", "if (unlikely(float64_is_nan(u.d)))\nreturn 0;", "return float64_to_uint32(u.d, &env->vec_status);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ] ]
11,320
Aml *init_aml_allocator(void) { Aml *var; assert(!alloc_list); alloc_list = g_ptr_array_new(); var = aml_alloc(); return var; }
false
qemu
9be385980d37e8f4fd33f605f5fb1c3d144170a8
Aml *init_aml_allocator(void) { Aml *var; assert(!alloc_list); alloc_list = g_ptr_array_new(); var = aml_alloc(); return var; }
{ "code": [], "line_no": [] }
Aml *FUNC_0(void) { Aml *var; assert(!alloc_list); alloc_list = g_ptr_array_new(); var = aml_alloc(); return var; }
[ "Aml *FUNC_0(void)\n{", "Aml *var;", "assert(!alloc_list);", "alloc_list = g_ptr_array_new();", "var = aml_alloc();", "return var;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
11,321
static void dca_downmix(float **samples, int srcfmt, int lfe_present, float coef[DCA_PRIM_CHANNELS_MAX + 1][2], const int8_t *channel_mapping) { int c, l, r, sl, sr, s; int i; float t, u, v; switch (srcfmt) { case DCA_MONO: case DCA_CHAN...
false
FFmpeg
220494ad0b2e9e980ef703b46b69308236f29be5
static void dca_downmix(float **samples, int srcfmt, int lfe_present, float coef[DCA_PRIM_CHANNELS_MAX + 1][2], const int8_t *channel_mapping) { int c, l, r, sl, sr, s; int i; float t, u, v; switch (srcfmt) { case DCA_MONO: case DCA_CHAN...
{ "code": [], "line_no": [] }
static void FUNC_0(float **VAR_0, int VAR_1, int VAR_2, float VAR_3[DCA_PRIM_CHANNELS_MAX + 1][2], const int8_t *VAR_4) { int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; int VAR_11; float VAR_12, VAR_13, VAR_14; switch (VAR_1) { case DCA_MONO:...
[ "static void FUNC_0(float **VAR_0, int VAR_1, int VAR_2,\nfloat VAR_3[DCA_PRIM_CHANNELS_MAX + 1][2],\nconst int8_t *VAR_4)\n{", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "int VAR_11;", "float VAR_12, VAR_13, VAR_14;", "switch (VAR_1) {", "case DCA_MONO:\ncase DCA_CHANNEL:\ncase DCA_STEREO_TOTAL:\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21, 23, 25, 27, 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53 ...
11,322
void spapr_tce_free(sPAPRTCETable *tcet) { QLIST_REMOVE(tcet, list); if (!kvm_enabled() || (kvmppc_remove_spapr_tce(tcet->table, tcet->fd, tcet->window_size) != 0)) { g_free(tcet->table); } g_free(tcet); }
false
qemu
a83000f5e3fac30a7f213af1ba6a8f827622854d
void spapr_tce_free(sPAPRTCETable *tcet) { QLIST_REMOVE(tcet, list); if (!kvm_enabled() || (kvmppc_remove_spapr_tce(tcet->table, tcet->fd, tcet->window_size) != 0)) { g_free(tcet->table); } g_free(tcet); }
{ "code": [], "line_no": [] }
void FUNC_0(sPAPRTCETable *VAR_0) { QLIST_REMOVE(VAR_0, list); if (!kvm_enabled() || (kvmppc_remove_spapr_tce(VAR_0->table, VAR_0->fd, VAR_0->window_size) != 0)) { g_free(VAR_0->table); } g_free(VAR_0); }
[ "void FUNC_0(sPAPRTCETable *VAR_0)\n{", "QLIST_REMOVE(VAR_0, list);", "if (!kvm_enabled() ||\n(kvmppc_remove_spapr_tce(VAR_0->table, VAR_0->fd,\nVAR_0->window_size) != 0)) {", "g_free(VAR_0->table);", "}", "g_free(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]