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,950
static int coroutine_fn nfs_co_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov) { NFSClient *client = bs->opaque; NFSRPC task; nfs_co_init_task(client, &task); task.iov = iov; if (...
false
qemu
aa92d6c4609e174fc6884e4b7b87367fac33cbe9
static int coroutine_fn nfs_co_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov) { NFSClient *client = bs->opaque; NFSRPC task; nfs_co_init_task(client, &task); task.iov = iov; if (...
{ "code": [], "line_no": [] }
static int VAR_0 nfs_co_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov) { NFSClient *client = bs->opaque; NFSRPC task; nfs_co_init_task(client, &task); task.iov = iov; if (nfs_pre...
[ "static int VAR_0 nfs_co_readv(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors,\nQEMUIOVector *iov)\n{", "NFSClient *client = bs->opaque;", "NFSRPC task;", "nfs_co_init_task(client, &task);", "task.iov = iov;", "if (nfs_pread_async(client->context, client->fh,\nsector_num * BDRV_SECTOR_SIZE,\nnb...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21, 23, 25, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ], [...
11,951
int scsi_req_parse(SCSIRequest *req, uint8_t *buf) { int rc; if (req->dev->type == TYPE_TAPE) { rc = scsi_req_stream_length(&req->cmd, req->dev, buf); } else { rc = scsi_req_length(&req->cmd, req->dev, buf); } if (rc != 0) return rc; assert(buf == req->cmd.b...
false
qemu
afa46c468acc18914c2773538f1b088c507766ee
int scsi_req_parse(SCSIRequest *req, uint8_t *buf) { int rc; if (req->dev->type == TYPE_TAPE) { rc = scsi_req_stream_length(&req->cmd, req->dev, buf); } else { rc = scsi_req_length(&req->cmd, req->dev, buf); } if (rc != 0) return rc; assert(buf == req->cmd.b...
{ "code": [], "line_no": [] }
int FUNC_0(SCSIRequest *VAR_0, uint8_t *VAR_1) { int VAR_2; if (VAR_0->dev->type == TYPE_TAPE) { VAR_2 = scsi_req_stream_length(&VAR_0->cmd, VAR_0->dev, VAR_1); } else { VAR_2 = scsi_req_length(&VAR_0->cmd, VAR_0->dev, VAR_1); } if (VAR_2 != 0) return VAR_2; ...
[ "int FUNC_0(SCSIRequest *VAR_0, uint8_t *VAR_1)\n{", "int VAR_2;", "if (VAR_0->dev->type == TYPE_TAPE) {", "VAR_2 = scsi_req_stream_length(&VAR_0->cmd, VAR_0->dev, VAR_1);", "} else {", "VAR_2 = scsi_req_length(&VAR_0->cmd, VAR_0->dev, VAR_1);", "}", "if (VAR_2 != 0)\nreturn VAR_2;", "assert(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 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ] ]
11,952
void virtqueue_map_sg(struct iovec *sg, hwaddr *addr, size_t num_sg, int is_write) { unsigned int i; hwaddr len; if (num_sg >= VIRTQUEUE_MAX_SIZE) { error_report("virtio: map attempt out of bounds: %zd > %d", num_sg, VIRTQUEUE_MAX_SIZE); exit(1); } ...
false
qemu
937251408051e0489f78e4db3c92e045b147b38b
void virtqueue_map_sg(struct iovec *sg, hwaddr *addr, size_t num_sg, int is_write) { unsigned int i; hwaddr len; if (num_sg >= VIRTQUEUE_MAX_SIZE) { error_report("virtio: map attempt out of bounds: %zd > %d", num_sg, VIRTQUEUE_MAX_SIZE); exit(1); } ...
{ "code": [], "line_no": [] }
void FUNC_0(struct iovec *VAR_0, hwaddr *VAR_1, size_t VAR_2, int VAR_3) { unsigned int VAR_4; hwaddr len; if (VAR_2 >= VIRTQUEUE_MAX_SIZE) { error_report("virtio: map attempt out of bounds: %zd > %d", VAR_2, VIRTQUEUE_MAX_SIZE); exit(1); } for ...
[ "void FUNC_0(struct iovec *VAR_0, hwaddr *VAR_1,\nsize_t VAR_2, int VAR_3)\n{", "unsigned int VAR_4;", "hwaddr len;", "if (VAR_2 >= VIRTQUEUE_MAX_SIZE) {", "error_report(\"virtio: map attempt out of bounds: %zd > %d\",\nVAR_2, VIRTQUEUE_MAX_SIZE);", "exit(1);", "}", "for (VAR_4 = 0; VAR_4 < VAR_2; VAR...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
11,953
static inline void gen_op_fcmpeq(int fccno) { switch (fccno) { case 0: gen_helper_fcmpeq(cpu_env); break; case 1: gen_helper_fcmpeq_fcc1(cpu_env); break; case 2: gen_helper_fcmpeq_fcc2(cpu_env); break; case 3: gen_helper_fcmpeq_fcc...
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
static inline void gen_op_fcmpeq(int fccno) { switch (fccno) { case 0: gen_helper_fcmpeq(cpu_env); break; case 1: gen_helper_fcmpeq_fcc1(cpu_env); break; case 2: gen_helper_fcmpeq_fcc2(cpu_env); break; case 3: gen_helper_fcmpeq_fcc...
{ "code": [], "line_no": [] }
static inline void FUNC_0(int VAR_0) { switch (VAR_0) { case 0: gen_helper_fcmpeq(cpu_env); break; case 1: gen_helper_fcmpeq_fcc1(cpu_env); break; case 2: gen_helper_fcmpeq_fcc2(cpu_env); break; case 3: gen_helper_fcmpeq_fcc3(cpu_e...
[ "static inline void FUNC_0(int VAR_0)\n{", "switch (VAR_0) {", "case 0:\ngen_helper_fcmpeq(cpu_env);", "break;", "case 1:\ngen_helper_fcmpeq_fcc1(cpu_env);", "break;", "case 2:\ngen_helper_fcmpeq_fcc2(cpu_env);", "break;", "case 3:\ngen_helper_fcmpeq_fcc3(cpu_env);", "break;", "}", "}" ]
[ 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 ] ]
11,954
static bool pc_machine_get_vmport(Object *obj, Error **errp) { PCMachineState *pcms = PC_MACHINE(obj); return pcms->vmport; }
false
qemu
d1048bef9df0aacde9a54bf9b5b97a6e10950d8c
static bool pc_machine_get_vmport(Object *obj, Error **errp) { PCMachineState *pcms = PC_MACHINE(obj); return pcms->vmport; }
{ "code": [], "line_no": [] }
static bool FUNC_0(Object *obj, Error **errp) { PCMachineState *pcms = PC_MACHINE(obj); return pcms->vmport; }
[ "static bool FUNC_0(Object *obj, Error **errp)\n{", "PCMachineState *pcms = PC_MACHINE(obj);", "return pcms->vmport;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
11,956
pvscsi_convert_sglist(PVSCSIRequest *r) { int chunk_size; uint64_t data_length = r->req.dataLen; PVSCSISGState sg = r->sg; while (data_length) { while (!sg.resid) { pvscsi_get_next_sg_elem(&sg); trace_pvscsi_convert_sglist(r->req.context, r->sg.dataAddr, ...
false
qemu
49adc5d3f8c6bb75e55ebfeab109c5c37dea65e8
pvscsi_convert_sglist(PVSCSIRequest *r) { int chunk_size; uint64_t data_length = r->req.dataLen; PVSCSISGState sg = r->sg; while (data_length) { while (!sg.resid) { pvscsi_get_next_sg_elem(&sg); trace_pvscsi_convert_sglist(r->req.context, r->sg.dataAddr, ...
{ "code": [], "line_no": [] }
FUNC_0(PVSCSIRequest *VAR_0) { int VAR_1; uint64_t data_length = VAR_0->req.dataLen; PVSCSISGState sg = VAR_0->sg; while (data_length) { while (!sg.resid) { pvscsi_get_next_sg_elem(&sg); trace_pvscsi_convert_sglist(VAR_0->req.context, VAR_0->sg.dataAddr, ...
[ "FUNC_0(PVSCSIRequest *VAR_0)\n{", "int VAR_1;", "uint64_t data_length = VAR_0->req.dataLen;", "PVSCSISGState sg = VAR_0->sg;", "while (data_length) {", "while (!sg.resid) {", "pvscsi_get_next_sg_elem(&sg);", "trace_pvscsi_convert_sglist(VAR_0->req.context, VAR_0->sg.dataAddr,\nVAR_0->sg.resid);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
11,959
static void av_estimate_timings_from_pts(AVFormatContext *ic) { AVPacket pkt1, *pkt = &pkt1; AVStream *st; int read_size, i, ret; int64_t start_time, end_time, end_time1; int64_t filesize, offset, duration; /* we read the first packets to get the first PTS (not fully accurat...
false
FFmpeg
22b37f5d3200cfe4c15eded883663cf0612093c1
static void av_estimate_timings_from_pts(AVFormatContext *ic) { AVPacket pkt1, *pkt = &pkt1; AVStream *st; int read_size, i, ret; int64_t start_time, end_time, end_time1; int64_t filesize, offset, duration; url_fseek(&ic->pb, 0, SEEK_SET); read_size = 0; for(;;) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0) { AVPacket pkt1, *pkt = &pkt1; AVStream *st; int VAR_1, VAR_2, VAR_3; int64_t start_time, end_time, end_time1; int64_t filesize, offset, duration; url_fseek(&VAR_0->pb, 0, SEEK_SET); VAR_1 = 0; for(;;) { if (VAR_1...
[ "static void FUNC_0(AVFormatContext *VAR_0)\n{", "AVPacket pkt1, *pkt = &pkt1;", "AVStream *st;", "int VAR_1, VAR_2, VAR_3;", "int64_t start_time, end_time, end_time1;", "int64_t filesize, offset, duration;", "url_fseek(&VAR_0->pb, 0, SEEK_SET);", "VAR_1 = 0;", "for(;;) {", "if (VAR_1 >= DURATION_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 49 ], [ 51, 53 ], [ 55 ...
11,960
bool qemu_clock_run_all_timers(void) { bool progress = false; QEMUClockType type; for (type = 0; type < QEMU_CLOCK_MAX; type++) { progress |= qemu_clock_run_timers(type); } return progress; }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
bool qemu_clock_run_all_timers(void) { bool progress = false; QEMUClockType type; for (type = 0; type < QEMU_CLOCK_MAX; type++) { progress |= qemu_clock_run_timers(type); } return progress; }
{ "code": [], "line_no": [] }
bool FUNC_0(void) { bool progress = false; QEMUClockType type; for (type = 0; type < QEMU_CLOCK_MAX; type++) { progress |= qemu_clock_run_timers(type); } return progress; }
[ "bool FUNC_0(void)\n{", "bool progress = false;", "QEMUClockType type;", "for (type = 0; type < QEMU_CLOCK_MAX; type++) {", "progress |= qemu_clock_run_timers(type);", "}", "return progress;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
11,961
static int put_uint64_as_uint32(QEMUFile *f, void *pv, size_t size, VMStateField *field, QJSON *vmdesc) { uint64_t *v = pv; qemu_put_be32(f, *v); return 0; }
false
qemu
08b277ac46da8b02e50cec455eca7cb2d12ffcf0
static int put_uint64_as_uint32(QEMUFile *f, void *pv, size_t size, VMStateField *field, QJSON *vmdesc) { uint64_t *v = pv; qemu_put_be32(f, *v); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2, VMStateField *VAR_3, QJSON *VAR_4) { uint64_t *v = VAR_1; qemu_put_be32(VAR_0, *v); return 0; }
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2,\nVMStateField *VAR_3, QJSON *VAR_4)\n{", "uint64_t *v = VAR_1;", "qemu_put_be32(VAR_0, *v);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ] ]
11,962
static void scsi_dma_restart_bh(void *opaque) { SCSIDevice *s = opaque; SCSIRequest *req, *next; qemu_bh_delete(s->bh); s->bh = NULL; QTAILQ_FOREACH_SAFE(req, &s->requests, next, next) { scsi_req_ref(req); if (req->retry) { req->retry = false; sw...
false
qemu
d581eb7ca4b58649ade5fb7570ecf6b4b9a41879
static void scsi_dma_restart_bh(void *opaque) { SCSIDevice *s = opaque; SCSIRequest *req, *next; qemu_bh_delete(s->bh); s->bh = NULL; QTAILQ_FOREACH_SAFE(req, &s->requests, next, next) { scsi_req_ref(req); if (req->retry) { req->retry = false; sw...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { SCSIDevice *s = VAR_0; SCSIRequest *req, *next; qemu_bh_delete(s->bh); s->bh = NULL; QTAILQ_FOREACH_SAFE(req, &s->requests, next, next) { scsi_req_ref(req); if (req->retry) { req->retry = false; switch (req->cmd....
[ "static void FUNC_0(void *VAR_0)\n{", "SCSIDevice *s = VAR_0;", "SCSIRequest *req, *next;", "qemu_bh_delete(s->bh);", "s->bh = NULL;", "QTAILQ_FOREACH_SAFE(req, &s->requests, next, next) {", "scsi_req_ref(req);", "if (req->retry) {", "req->retry = false;", "switch (req->cmd.mode) {", "case SCSI_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
11,964
static uint64_t get_guest_rtc_ns(RTCState *s) { uint64_t guest_rtc; uint64_t guest_clock = qemu_clock_get_ns(rtc_clock); guest_rtc = s->base_rtc * NANOSECONDS_PER_SECOND + guest_clock - s->last_update + s->offset; return guest_rtc; }
false
qemu
9be385980d37e8f4fd33f605f5fb1c3d144170a8
static uint64_t get_guest_rtc_ns(RTCState *s) { uint64_t guest_rtc; uint64_t guest_clock = qemu_clock_get_ns(rtc_clock); guest_rtc = s->base_rtc * NANOSECONDS_PER_SECOND + guest_clock - s->last_update + s->offset; return guest_rtc; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(RTCState *s) { uint64_t guest_rtc; uint64_t guest_clock = qemu_clock_get_ns(rtc_clock); guest_rtc = s->base_rtc * NANOSECONDS_PER_SECOND + guest_clock - s->last_update + s->offset; return guest_rtc; }
[ "static uint64_t FUNC_0(RTCState *s)\n{", "uint64_t guest_rtc;", "uint64_t guest_clock = qemu_clock_get_ns(rtc_clock);", "guest_rtc = s->base_rtc * NANOSECONDS_PER_SECOND +\nguest_clock - s->last_update + s->offset;", "return guest_rtc;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
11,966
static void openpic_reset(DeviceState *d) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), sysbus_from_qdev(d)); int i; opp->glbc = GLBC_RESET; /* Initialise controller registers */ opp->frep = ((opp->nb_irqs -1) << FREP_NIRQ_SHIFT) | ((opp->nb_cpus -1) << FREP_NCPU_SHIFT) |...
false
qemu
c975330ec4f5674f2899331f914c04ecba6edf26
static void openpic_reset(DeviceState *d) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), sysbus_from_qdev(d)); int i; opp->glbc = GLBC_RESET; opp->frep = ((opp->nb_irqs -1) << FREP_NIRQ_SHIFT) | ((opp->nb_cpus -1) << FREP_NCPU_SHIFT) | (opp->vid << FREP_V...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), sysbus_from_qdev(VAR_0)); int VAR_1; opp->glbc = GLBC_RESET; opp->frep = ((opp->nb_irqs -1) << FREP_NIRQ_SHIFT) | ((opp->nb_cpus -1) << FREP_NCPU_SHIFT) | (opp->vid << F...
[ "static void FUNC_0(DeviceState *VAR_0)\n{", "OpenPICState *opp = FROM_SYSBUS(typeof (*opp), sysbus_from_qdev(VAR_0));", "int VAR_1;", "opp->glbc = GLBC_RESET;", "opp->frep = ((opp->nb_irqs -1) << FREP_NIRQ_SHIFT) |\n((opp->nb_cpus -1) << FREP_NCPU_SHIFT) |\n(opp->vid << FREP_VID_SHIFT);", "opp->pint = 0;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
11,967
static inline int handle_cpu_signal(unsigned long pc, unsigned long address, int is_write, sigset_t *old_set, void *puc) { TranslationBlock *tb; int ret; if (cpu_single_env) env = cpu_single_env; /* XXX: find a correct ...
false
qemu
0b5c1ce8467384327b80a55218d3e57f48985990
static inline int handle_cpu_signal(unsigned long pc, unsigned long address, int is_write, sigset_t *old_set, void *puc) { TranslationBlock *tb; int ret; if (cpu_single_env) env = cpu_single_env; #if defined(DEBUG_SIG...
{ "code": [], "line_no": [] }
static inline int FUNC_0(unsigned long VAR_0, unsigned long VAR_1, int VAR_2, sigset_t *VAR_3, void *VAR_4) { TranslationBlock *tb; int VAR_5; if (cpu_single_env) env = cpu_single_env; #if defined(DEBUG_SIGNAL) p...
[ "static inline int FUNC_0(unsigned long VAR_0, unsigned long VAR_1,\nint VAR_2, sigset_t *VAR_3,\nvoid *VAR_4)\n{", "TranslationBlock *tb;", "int VAR_5;", "if (cpu_single_env)\nenv = cpu_single_env;", "#if defined(DEBUG_SIGNAL)\nprintf(\"qemu: SIGSEGV VAR_0=0x%08lx VAR_1=%08lx w=%d oldset=0x%08lx\\n\",\nVAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19, 21, 23 ], [ 25, 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 53 ], [ 55 ], [ 61 ], [ 63 ], [ 65 ...
11,970
static int scan_mmco_reset(AVCodecParserContext *s, GetBitContext *gb) { H264PredWeightTable pwt; int slice_type_nos = s->pict_type & 3; H264ParseContext *p = s->priv_data; H264Context *h = &p->h; int list_count, ref_count[2]; if (h->pps.redundant_pic_cnt_present) get_ue...
false
FFmpeg
3176217c60ca7828712985092d9102d331ea4f3d
static int scan_mmco_reset(AVCodecParserContext *s, GetBitContext *gb) { H264PredWeightTable pwt; int slice_type_nos = s->pict_type & 3; H264ParseContext *p = s->priv_data; H264Context *h = &p->h; int list_count, ref_count[2]; if (h->pps.redundant_pic_cnt_present) get_ue...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecParserContext *VAR_0, GetBitContext *VAR_1) { H264PredWeightTable pwt; int VAR_2 = VAR_0->pict_type & 3; H264ParseContext *p = VAR_0->priv_data; H264Context *h = &p->h; int VAR_3, VAR_4[2]; if (h->pps.redundant_pic_cnt_present) get_ue_golomb(VAR_...
[ "static int FUNC_0(AVCodecParserContext *VAR_0, GetBitContext *VAR_1)\n{", "H264PredWeightTable pwt;", "int VAR_2 = VAR_0->pict_type & 3;", "H264ParseContext *p = VAR_0->priv_data;", "H264Context *h = &p->h;", "int VAR_3, VAR_4[2];", "if (h->pps.redundant_pic_cnt_present)\nget_ue_golomb(VAR_1);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19, 21 ], [ 25, 27 ], [ 31, 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55, 57 ], [...
11,971
void helper_memalign(uint32_t addr, uint32_t dr, uint32_t wr, uint32_t size) { uint32_t mask; switch (size) { case 4: mask = 3; break; case 2: mask = 1; break; default: case 1: mask = 0; break; } if (addr & mask) { qemu_log("unaligned access addr...
false
qemu
3aa80988430f41847e1b78d165440ac03503b6d0
void helper_memalign(uint32_t addr, uint32_t dr, uint32_t wr, uint32_t size) { uint32_t mask; switch (size) { case 4: mask = 3; break; case 2: mask = 1; break; default: case 1: mask = 0; break; } if (addr & mask) { qemu_log("unaligned access addr...
{ "code": [], "line_no": [] }
void FUNC_0(uint32_t VAR_0, uint32_t VAR_1, uint32_t VAR_2, uint32_t VAR_3) { uint32_t mask; switch (VAR_3) { case 4: mask = 3; break; case 2: mask = 1; break; default: case 1: mask = 0; break; } if (VAR_0 & mask) { qemu_log("unaligned access VAR...
[ "void FUNC_0(uint32_t VAR_0, uint32_t VAR_1, uint32_t VAR_2, uint32_t VAR_3)\n{", "uint32_t mask;", "switch (VAR_3) {", "case 4: mask = 3; break;", "case 2: mask = 1; break;", "default:\ncase 1: mask = 0; break;", "}", "if (VAR_0 & mask) {", "qemu_log(\"unaligned access VAR_0=%x VAR_3=%d, VAR_2=%d\\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
11,972
static inline bool bdrv_req_is_aligned(BlockDriverState *bs, int64_t offset, size_t bytes) { int64_t align = bdrv_get_align(bs); return !(offset & (align - 1) || (bytes & (align - 1))); }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static inline bool bdrv_req_is_aligned(BlockDriverState *bs, int64_t offset, size_t bytes) { int64_t align = bdrv_get_align(bs); return !(offset & (align - 1) || (bytes & (align - 1))); }
{ "code": [], "line_no": [] }
static inline bool FUNC_0(BlockDriverState *bs, int64_t offset, size_t bytes) { int64_t align = bdrv_get_align(bs); return !(offset & (align - 1) || (bytes & (align - 1))); }
[ "static inline bool FUNC_0(BlockDriverState *bs,\nint64_t offset, size_t bytes)\n{", "int64_t align = bdrv_get_align(bs);", "return !(offset & (align - 1) || (bytes & (align - 1)));", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
11,973
static inline int tcg_gen_code_common(TCGContext *s, uint8_t *gen_code_buf, long search_pc) { int opc, op_index, macro_op_index; const TCGOpDef *def; unsigned int dead_iargs; const TCGArg *args; #ifdef DEBUG_DISAS if (unlikely(loglevel & CPU_LOG_TB_OP)...
false
qemu
bf6247fb7639bc3492e769791f6569d65860029b
static inline int tcg_gen_code_common(TCGContext *s, uint8_t *gen_code_buf, long search_pc) { int opc, op_index, macro_op_index; const TCGOpDef *def; unsigned int dead_iargs; const TCGArg *args; #ifdef DEBUG_DISAS if (unlikely(loglevel & CPU_LOG_TB_OP)...
{ "code": [], "line_no": [] }
static inline int FUNC_0(TCGContext *VAR_0, uint8_t *VAR_1, long VAR_2) { int VAR_3, VAR_4, VAR_5; const TCGOpDef *VAR_6; unsigned int VAR_7; const TCGArg *VAR_8; #ifdef DEBUG_DISAS if (unlikely(loglevel & CPU_LOG_TB_OP)) { fprintf(logfile, "O...
[ "static inline int FUNC_0(TCGContext *VAR_0, uint8_t *VAR_1,\nlong VAR_2)\n{", "int VAR_3, VAR_4, VAR_5;", "const TCGOpDef *VAR_6;", "unsigned int VAR_7;", "const TCGArg *VAR_8;", "#ifdef DEBUG_DISAS\nif (unlikely(loglevel & CPU_LOG_TB_OP)) {", "fprintf(logfile, \"OP:\\n\");", "tcg_dump_ops(VAR_0, log...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 53 ], [...
11,974
static uint32_t set_isolation_state(sPAPRDRConnector *drc, sPAPRDRIsolationState state) { trace_spapr_drc_set_isolation_state(spapr_drc_index(drc), state); /* if the guest is configuring a device attached to this DRC, we * should reset the configuration state at t...
false
qemu
0dfabd39d523fc3f6f0f8c441f41c013cc429b52
static uint32_t set_isolation_state(sPAPRDRConnector *drc, sPAPRDRIsolationState state) { trace_spapr_drc_set_isolation_state(spapr_drc_index(drc), state); if (state == SPAPR_DR_ISOLATION_STATE_ISOLATED) { g_free(drc->ccs); drc->ccs = NUL...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(sPAPRDRConnector *drc, sPAPRDRIsolationState state) { trace_spapr_drc_set_isolation_state(spapr_drc_index(drc), state); if (state == SPAPR_DR_ISOLATION_STATE_ISOLATED) { g_free(drc->ccs); drc->ccs = NULL; } ...
[ "static uint32_t FUNC_0(sPAPRDRConnector *drc,\nsPAPRDRIsolationState state)\n{", "trace_spapr_drc_set_isolation_state(spapr_drc_index(drc), state);", "if (state == SPAPR_DR_ISOLATION_STATE_ISOLATED) {", "g_free(drc->ccs);", "drc->ccs = NULL;", "}", "if (state == SPAPR_DR_ISOLATION_STATE_UNISOLATED) {",...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 71 ], [ 73, 75 ], [ 77 ], [ 79 ], [ 81 ], [ 85 ], [ 89 ], ...
11,976
static void vnc_listen_read(void *opaque) { VncDisplay *vs = opaque; struct sockaddr_in addr; socklen_t addrlen = sizeof(addr); /* Catch-up */ vga_hw_update(); int csock = accept(vs->lsock, (struct sockaddr *)&addr, &addrlen); if (csock != -1) { vnc_connect(vs, csock); ...
true
qemu
40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4
static void vnc_listen_read(void *opaque) { VncDisplay *vs = opaque; struct sockaddr_in addr; socklen_t addrlen = sizeof(addr); vga_hw_update(); int csock = accept(vs->lsock, (struct sockaddr *)&addr, &addrlen); if (csock != -1) { vnc_connect(vs, csock); } }
{ "code": [ " int csock = accept(vs->lsock, (struct sockaddr *)&addr, &addrlen);" ], "line_no": [ 19 ] }
static void FUNC_0(void *VAR_0) { VncDisplay *vs = VAR_0; struct sockaddr_in VAR_1; socklen_t addrlen = sizeof(VAR_1); vga_hw_update(); int VAR_2 = accept(vs->lsock, (struct sockaddr *)&VAR_1, &addrlen); if (VAR_2 != -1) { vnc_connect(vs, VAR_2); } }
[ "static void FUNC_0(void *VAR_0)\n{", "VncDisplay *vs = VAR_0;", "struct sockaddr_in VAR_1;", "socklen_t addrlen = sizeof(VAR_1);", "vga_hw_update();", "int VAR_2 = accept(vs->lsock, (struct sockaddr *)&VAR_1, &addrlen);", "if (VAR_2 != -1) {", "vnc_connect(vs, VAR_2);", "}", "}" ]
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
11,977
static av_cold int qdm2_decode_init(AVCodecContext *avctx) { QDM2Context *s = avctx->priv_data; uint8_t *extradata; int extradata_size; int tmp_val, tmp, size; /* extradata parsing Structure: wave { frma (QDM2) QDCA QDCP } 32 size (includin...
false
FFmpeg
f5be7958e313f3f62505ea7f90007800e8e1dcb5
static av_cold int qdm2_decode_init(AVCodecContext *avctx) { QDM2Context *s = avctx->priv_data; uint8_t *extradata; int extradata_size; int tmp_val, tmp, size; if (!avctx->extradata || (avctx->extradata_size < 48)) { ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { QDM2Context *s = avctx->priv_data; uint8_t *extradata; int VAR_0; int VAR_1, VAR_2, VAR_3; if (!avctx->extradata || (avctx->VAR_0 < 48)) { av_log(avctx, AV_LOG_...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "QDM2Context *s = avctx->priv_data;", "uint8_t *extradata;", "int VAR_0;", "int VAR_1, VAR_2, VAR_3;", "if (!avctx->extradata || (avctx->VAR_0 < 48)) {", "av_log(avctx, AV_LOG_ERROR, \"extradata missing or truncated\\n\");", "return -1;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 83 ], [ 85 ], [ 87 ], [ 89 ], [ 93 ], [ 95 ], [ 99 ], [ 101, 103 ], [ 105 ], [ 107 ], [ 109 ], [ 113 ], [ 115, 117 ], [...
11,982
void MPV_frame_end(MpegEncContext *s) { /* draw edge for correct motion prediction if outside */ if (s->pict_type != B_TYPE && !s->intra_only) { if(s->avctx==NULL || s->avctx->codec->id!=CODEC_ID_MPEG4 || s->divx_version==500){ draw_edges(s->current_picture[0], s->linesize, s->mb_width*16, s-...
false
FFmpeg
7f2fe444a39bca733d390b6608801c5f002bfd31
void MPV_frame_end(MpegEncContext *s) { if (s->pict_type != B_TYPE && !s->intra_only) { if(s->avctx==NULL || s->avctx->codec->id!=CODEC_ID_MPEG4 || s->divx_version==500){ draw_edges(s->current_picture[0], s->linesize, s->mb_width*16, s->mb_height*16, EDGE_WIDTH); draw_edges(s->curre...
{ "code": [], "line_no": [] }
void FUNC_0(MpegEncContext *VAR_0) { if (VAR_0->pict_type != B_TYPE && !VAR_0->intra_only) { if(VAR_0->avctx==NULL || VAR_0->avctx->codec->id!=CODEC_ID_MPEG4 || VAR_0->divx_version==500){ draw_edges(VAR_0->current_picture[0], VAR_0->linesize, VAR_0->mb_width*16, VAR_0->mb_height*16, EDGE_WID...
[ "void FUNC_0(MpegEncContext *VAR_0)\n{", "if (VAR_0->pict_type != B_TYPE && !VAR_0->intra_only) {", "if(VAR_0->avctx==NULL || VAR_0->avctx->codec->id!=CODEC_ID_MPEG4 || VAR_0->divx_version==500){", "draw_edges(VAR_0->current_picture[0], VAR_0->linesize, VAR_0->mb_width*16, VAR_0->mb_height*16, EDGE_WIDTH);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
11,986
void qmp_memchar_write(const char *device, int64_t size, const char *data, bool has_format, enum DataFormat format, Error **errp) { CharDriverState *chr; guchar *write_data; int ret; gsize write_count; chr = qemu_chr_fin...
true
qemu
82e59a676c01b3df3b53998d428d0a64a55f2439
void qmp_memchar_write(const char *device, int64_t size, const char *data, bool has_format, enum DataFormat format, Error **errp) { CharDriverState *chr; guchar *write_data; int ret; gsize write_count; chr = qemu_chr_fin...
{ "code": [ "void qmp_memchar_write(const char *device, int64_t size,", " const char *data, bool has_format,", " enum DataFormat format,", " write_count = (gsize)size;" ], "line_no": [ 1, 3, 5, 43 ] }
void FUNC_0(const char *VAR_0, int64_t VAR_1, const char *VAR_2, bool VAR_3, enum DataFormat VAR_4, Error **VAR_5) { CharDriverState *chr; guchar *write_data; int VAR_6; gsize write_count; chr = qemu_chr_find(VAR_0); ...
[ "void FUNC_0(const char *VAR_0, int64_t VAR_1,\nconst char *VAR_2, bool VAR_3,\nenum DataFormat VAR_4,\nError **VAR_5)\n{", "CharDriverState *chr;", "guchar *write_data;", "int VAR_6;", "gsize write_count;", "chr = qemu_chr_find(VAR_0);", "if (!chr) {", "error_set(VAR_5, QERR_DEVICE_NOT_FOUND, VAR_0);...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [...
11,987
kern_return_t GetBSDPath( io_iterator_t mediaIterator, char *bsdPath, CFIndex maxPathSize ) { io_object_t nextMedia; kern_return_t kernResult = KERN_FAILURE; *bsdPath = '\0'; nextMedia = IOIteratorNext( mediaIterator ); if ( nextMedia ) { CFTypeRef bsdPathAsCFString; ...
true
qemu
98caa5bc0083ed4fe4833addd3078b56ce2f6cfa
kern_return_t GetBSDPath( io_iterator_t mediaIterator, char *bsdPath, CFIndex maxPathSize ) { io_object_t nextMedia; kern_return_t kernResult = KERN_FAILURE; *bsdPath = '\0'; nextMedia = IOIteratorNext( mediaIterator ); if ( nextMedia ) { CFTypeRef bsdPathAsCFString; ...
{ "code": [ "kern_return_t GetBSDPath( io_iterator_t mediaIterator, char *bsdPath, CFIndex maxPathSize )", " strcat( bsdPath, \"r\" );" ], "line_no": [ 1, 27 ] }
kern_return_t FUNC_0( io_iterator_t mediaIterator, char *bsdPath, CFIndex maxPathSize ) { io_object_t nextMedia; kern_return_t kernResult = KERN_FAILURE; *bsdPath = '\0'; nextMedia = IOIteratorNext( mediaIterator ); if ( nextMedia ) { CFTypeRef bsdPathAsCFString; bsd...
[ "kern_return_t FUNC_0( io_iterator_t mediaIterator, char *bsdPath, CFIndex maxPathSize )\n{", "io_object_t nextMedia;", "kern_return_t kernResult = KERN_FAILURE;", "*bsdPath = '\\0';", "nextMedia = IOIteratorNext( mediaIterator );", "if ( nextMedia )\n{", "CFTypeRef bsdPathAsCFString;", "bsdPa...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [...
11,989
static void host_x86_cpu_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); X86CPUClass *xcc = X86_CPU_CLASS(oc); uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0; xcc->kvm_required = true; host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx); x86_cpu_vendor_words2str(host...
true
qemu
4c315c27661502a0813b129e41c0bf640c34a8d6
static void host_x86_cpu_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); X86CPUClass *xcc = X86_CPU_CLASS(oc); uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0; xcc->kvm_required = true; host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx); x86_cpu_vendor_words2str(host...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); X86CPUClass *xcc = X86_CPU_CLASS(VAR_0); uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0; xcc->kvm_required = true; host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx); x86_cpu_vendor_words2str(host_cpudef...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "X86CPUClass *xcc = X86_CPU_CLASS(VAR_0);", "uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;", "xcc->kvm_required = true;", "host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx);", "x86_cpu_vendor_words2str(host_cpude...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 51 ], [ 55 ] ]
11,990
int ff_http_do_new_request(URLContext *h, const char *uri) { HTTPContext *s = h->priv_data; AVDictionary *options = NULL; int ret; ret = http_shutdown(h, h->flags); if (ret < 0) return ret; s->end_chunked_post = 0; s->chunkend = 0; s->off = 0; s->icy_data_read ...
true
FFmpeg
28358e466d4f4bc54f8137e0597057f33100b236
int ff_http_do_new_request(URLContext *h, const char *uri) { HTTPContext *s = h->priv_data; AVDictionary *options = NULL; int ret; ret = http_shutdown(h, h->flags); if (ret < 0) return ret; s->end_chunked_post = 0; s->chunkend = 0; s->off = 0; s->icy_data_read ...
{ "code": [], "line_no": [] }
int FUNC_0(URLContext *VAR_0, const char *VAR_1) { HTTPContext *s = VAR_0->priv_data; AVDictionary *options = NULL; int VAR_2; VAR_2 = http_shutdown(VAR_0, VAR_0->flags); if (VAR_2 < 0) return VAR_2; s->end_chunked_post = 0; s->chunkend = 0; s->off = 0; s->icy_...
[ "int FUNC_0(URLContext *VAR_0, const char *VAR_1)\n{", "HTTPContext *s = VAR_0->priv_data;", "AVDictionary *options = NULL;", "int VAR_2;", "VAR_2 = http_shutdown(VAR_0, VAR_0->flags);", "if (VAR_2 < 0)\nreturn VAR_2;", "s->end_chunked_post = 0;", "s->chunkend = 0;", "s->off = 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 ] ]
11,991
uint_fast16_t float32_to_uint16_round_to_zero(float32 a STATUS_PARAM) { int64_t v; uint_fast16_t res; v = float32_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffff) { res = 0xffff; ...
true
qemu
34e1c27bc3094ffe484d9855e07ad104bddf579f
uint_fast16_t float32_to_uint16_round_to_zero(float32 a STATUS_PARAM) { int64_t v; uint_fast16_t res; v = float32_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffff) { res = 0xffff; ...
{ "code": [ " float_raise( float_flag_invalid STATUS_VAR);", " float_raise( float_flag_invalid STATUS_VAR);", " res = v;", " float_raise( float_flag_invalid STATUS_VAR);", " float_raise( float_flag_invalid STATUS_VAR);", " res = v;", " float...
uint_fast16_t FUNC_0(float32 a STATUS_PARAM) { int64_t v; uint_fast16_t res; v = float32_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffff) { res = 0xffff; float_raise( float_flag...
[ "uint_fast16_t FUNC_0(float32 a STATUS_PARAM)\n{", "int64_t v;", "uint_fast16_t res;", "v = float32_to_int64_round_to_zero(a STATUS_VAR);", "if (v < 0) {", "res = 0;", "float_raise( float_flag_invalid STATUS_VAR);", "} else if (v > 0xffff) {", "res = 0xffff;", "float_raise( float_flag_invalid STAT...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
11,992
static int hda_codec_dev_init(DeviceState *qdev, DeviceInfo *base) { HDACodecBus *bus = DO_UPCAST(HDACodecBus, qbus, qdev->parent_bus); HDACodecDevice *dev = DO_UPCAST(HDACodecDevice, qdev, qdev); HDACodecDeviceInfo *info = DO_UPCAST(HDACodecDeviceInfo, qdev, base); dev->info = info; if (dev...
true
qemu
acc086837e49b44f15eff6007bb1726844df7aec
static int hda_codec_dev_init(DeviceState *qdev, DeviceInfo *base) { HDACodecBus *bus = DO_UPCAST(HDACodecBus, qbus, qdev->parent_bus); HDACodecDevice *dev = DO_UPCAST(HDACodecDevice, qdev, qdev); HDACodecDeviceInfo *info = DO_UPCAST(HDACodecDeviceInfo, qdev, base); dev->info = info; if (dev...
{ "code": [ " if (dev->cad > 15)" ], "line_no": [ 21 ] }
static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1) { HDACodecBus *bus = DO_UPCAST(HDACodecBus, qbus, VAR_0->parent_bus); HDACodecDevice *dev = DO_UPCAST(HDACodecDevice, VAR_0, VAR_0); HDACodecDeviceInfo *info = DO_UPCAST(HDACodecDeviceInfo, VAR_0, VAR_1); dev->info = info; if (dev->cad...
[ "static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)\n{", "HDACodecBus *bus = DO_UPCAST(HDACodecBus, qbus, VAR_0->parent_bus);", "HDACodecDevice *dev = DO_UPCAST(HDACodecDevice, VAR_0, VAR_0);", "HDACodecDeviceInfo *info = DO_UPCAST(HDACodecDeviceInfo, VAR_0, VAR_1);", "dev->info = info;", "if (dev->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ] ]
11,993
static void setup_frame_v1(int usig, struct target_sigaction *ka, target_sigset_t *set, CPUARMState *regs) { struct sigframe_v1 *frame; abi_ulong frame_addr = get_sigframe(ka, regs, sizeof(*frame)); int i; if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) return; s...
true
qemu
0188fadb7fe460d8c4c743372b1f7b25773e183e
static void setup_frame_v1(int usig, struct target_sigaction *ka, target_sigset_t *set, CPUARMState *regs) { struct sigframe_v1 *frame; abi_ulong frame_addr = get_sigframe(ka, regs, sizeof(*frame)); int i; if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) return; s...
{ "code": [ "\tunlock_user_struct(frame, frame_addr, 1);", " for(i = 1; i < TARGET_NSIG_WORDS; i++) {", " if (__put_user(set->sig[i], &frame->extramask[i - 1]))", " goto end;", "end:", " goto end;", "end:", "\tunlock_user_struct(frame, fr...
static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1, target_sigset_t *VAR_2, CPUARMState *VAR_3) { struct sigframe_v1 *VAR_4; abi_ulong frame_addr = get_sigframe(VAR_1, VAR_3, sizeof(*VAR_4)); int VAR_5; if (!lock_user_struct(VERIFY_WRITE, VAR_4, frame_addr, 0)) return...
[ "static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,\ntarget_sigset_t *VAR_2, CPUARMState *VAR_3)\n{", "struct sigframe_v1 *VAR_4;", "abi_ulong frame_addr = get_sigframe(VAR_1, VAR_3, sizeof(*VAR_4));", "int VAR_5;", "if (!lock_user_struct(VERIFY_WRITE, VAR_4, frame_addr, 0))\nreturn;", "setup_s...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35, 37 ], [ 41, 43 ], [ 45 ] ]
11,994
qcrypto_tls_creds_x509_init(Object *obj) { object_property_add_bool(obj, "loaded", qcrypto_tls_creds_x509_prop_get_loaded, qcrypto_tls_creds_x509_prop_set_loaded, }
true
qemu
9a2fd4347c40321f5cbb4ab4220e759fcbf87d03
qcrypto_tls_creds_x509_init(Object *obj) { object_property_add_bool(obj, "loaded", qcrypto_tls_creds_x509_prop_get_loaded, qcrypto_tls_creds_x509_prop_set_loaded, }
{ "code": [], "line_no": [] }
FUNC_0(Object *VAR_0) { object_property_add_bool(VAR_0, "loaded", qcrypto_tls_creds_x509_prop_get_loaded, qcrypto_tls_creds_x509_prop_set_loaded, }
[ "FUNC_0(Object *VAR_0)\n{", "object_property_add_bool(VAR_0, \"loaded\",\nqcrypto_tls_creds_x509_prop_get_loaded,\nqcrypto_tls_creds_x509_prop_set_loaded,\n}" ]
[ 0, 0 ]
[ [ 1, 2 ], [ 3, 4, 5, 6 ] ]
11,995
int qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset, int n_start, int n_end, int *num, uint64_t *host_offset, QCowL2Meta **m) { BDRVQcowState *s = bs->opaque; uint64_t start, remaining; uint64_t cluster_offset; uint64_t cur_bytes; int ret; trace_qcow2_alloc_cluster...
true
qemu
ecdd5333ab9ed3f2b848066aaaef02c027b25e36
int qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset, int n_start, int n_end, int *num, uint64_t *host_offset, QCowL2Meta **m) { BDRVQcowState *s = bs->opaque; uint64_t start, remaining; uint64_t cluster_offset; uint64_t cur_bytes; int ret; trace_qcow2_alloc_cluster...
{ "code": [ " cur_bytes = remaining;", " ret = handle_dependencies(bs, start, &cur_bytes);", " if (!*host_offset) {", " *host_offset = start_of_cluster(s, cluster_offset);", " start += cur_bytes;", " remaining -= cur...
int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, int VAR_2, int VAR_3, int *VAR_4, uint64_t *VAR_5, QCowL2Meta **VAR_6) { BDRVQcowState *s = VAR_0->opaque; uint64_t start, remaining; uint64_t cluster_offset; uint64_t cur_bytes; int VAR_7; trace_qcow2_alloc_clusters_offset(qemu_c...
[ "int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nint VAR_2, int VAR_3, int *VAR_4, uint64_t *VAR_5, QCowL2Meta **VAR_6)\n{", "BDRVQcowState *s = VAR_0->opaque;", "uint64_t start, remaining;", "uint64_t cluster_offset;", "uint64_t cur_bytes;", "int VAR_7;", "trace_qcow2_alloc_clusters_offset(qemu_co...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 81 ], [ 83 ], [ 85 ], [ 87 ], [...
11,996
static int thread_get_buffer_internal(AVCodecContext *avctx, ThreadFrame *f, int flags) { PerThreadContext *p = avctx->thread_opaque; int err; f->owner = avctx; ff_init_buffer_info(avctx, f->f); if (!(avctx->active_thread_type & FF_THREAD_FRAME)) return ff_get_buffer(avctx, f->f...
false
FFmpeg
97f8c6e14753b94c1f6a96fe354a125bbfdea2cb
static int thread_get_buffer_internal(AVCodecContext *avctx, ThreadFrame *f, int flags) { PerThreadContext *p = avctx->thread_opaque; int err; f->owner = avctx; ff_init_buffer_info(avctx, f->f); if (!(avctx->active_thread_type & FF_THREAD_FRAME)) return ff_get_buffer(avctx, f->f...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, ThreadFrame *VAR_1, int VAR_2) { PerThreadContext *p = VAR_0->thread_opaque; int VAR_3; VAR_1->owner = VAR_0; ff_init_buffer_info(VAR_0, VAR_1->VAR_1); if (!(VAR_0->active_thread_type & FF_THREAD_FRAME)) return ff_get_buffer(VAR_0, VAR_1-...
[ "static int FUNC_0(AVCodecContext *VAR_0, ThreadFrame *VAR_1, int VAR_2)\n{", "PerThreadContext *p = VAR_0->thread_opaque;", "int VAR_3;", "VAR_1->owner = VAR_0;", "ff_init_buffer_info(VAR_0, VAR_1->VAR_1);", "if (!(VAR_0->active_thread_type & FF_THREAD_FRAME))\nreturn ff_get_buffer(VAR_0, VAR_1->VAR_1, V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], ...
11,997
static void xio3130_downstream_realize(PCIDevice *d, Error **errp) { PCIEPort *p = PCIE_PORT(d); PCIESlot *s = PCIE_SLOT(d); int rc; pci_bridge_initfn(d, TYPE_PCIE_BUS); pcie_port_init_reg(d); rc = msi_init(d, XIO3130_MSI_OFFSET, XIO3130_MSI_NR_VECTOR, XIO3130_MSI_S...
true
qemu
8b3d26342c4aa171e759e6392fe3b742759d4963
static void xio3130_downstream_realize(PCIDevice *d, Error **errp) { PCIEPort *p = PCIE_PORT(d); PCIESlot *s = PCIE_SLOT(d); int rc; pci_bridge_initfn(d, TYPE_PCIE_BUS); pcie_port_init_reg(d); rc = msi_init(d, XIO3130_MSI_OFFSET, XIO3130_MSI_NR_VECTOR, XIO3130_MSI_S...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1) { PCIEPort *p = PCIE_PORT(VAR_0); PCIESlot *s = PCIE_SLOT(VAR_0); int VAR_2; pci_bridge_initfn(VAR_0, TYPE_PCIE_BUS); pcie_port_init_reg(VAR_0); VAR_2 = msi_init(VAR_0, XIO3130_MSI_OFFSET, XIO3130_MSI_NR_VECTOR, XI...
[ "static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{", "PCIEPort *p = PCIE_PORT(VAR_0);", "PCIESlot *s = PCIE_SLOT(VAR_0);", "int VAR_2;", "pci_bridge_initfn(VAR_0, TYPE_PCIE_BUS);", "pcie_port_init_reg(VAR_0);", "VAR_2 = msi_init(VAR_0, XIO3130_MSI_OFFSET, XIO3130_MSI_NR_VECTOR,\nXIO3130_MSI_SUPPORT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [ 55 ...
11,999
static int qcow_write(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) { BDRVQcowState *s = bs->opaque; int ret, index_in_cluster, n; uint64_t cluster_offset; int n_end; while (nb_sectors > 0) { index_in_cluster = sector_num & (s->c...
true
qemu
e976c6a1e40ad74d616a186d3b48b0ad8f5eb970
static int qcow_write(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) { BDRVQcowState *s = bs->opaque; int ret, index_in_cluster, n; uint64_t cluster_offset; int n_end; while (nb_sectors > 0) { index_in_cluster = sector_num & (s->c...
{ "code": [ " n_end, &n);", " if (ret != n * 512)", " uint64_t cluster_offset;" ], "line_no": [ 33, 55, 11 ] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, const uint8_t *VAR_2, int VAR_3) { BDRVQcowState *s = VAR_0->opaque; int VAR_4, VAR_5, VAR_6; uint64_t cluster_offset; int VAR_7; while (VAR_3 > 0) { VAR_5 = VAR_1 & (s->cluster_sectors - 1); VA...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_4, VAR_5, VAR_6;", "uint64_t cluster_offset;", "int VAR_7;", "while (VAR_3 > 0) {", "VAR_5 = VAR_1 & (s->cluster_sectors - 1);", "VAR_7 = VAR_5 + VAR_3;", "...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 29, 31, 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51 ...
12,000
static void vnc_dpy_resize(DisplayState *ds) { int size_changed; VncState *vs = ds->opaque; vs->old_data = qemu_realloc(vs->old_data, ds_get_linesize(ds) * ds_get_height(ds)); if (vs->old_data == NULL) { fprintf(stderr, "vnc: memory allocation failed\n"); exit(1); } if (ds_get_b...
true
qemu
6cec5487990bf3f1f22b3fcb871978255e92ae0d
static void vnc_dpy_resize(DisplayState *ds) { int size_changed; VncState *vs = ds->opaque; vs->old_data = qemu_realloc(vs->old_data, ds_get_linesize(ds) * ds_get_height(ds)); if (vs->old_data == NULL) { fprintf(stderr, "vnc: memory allocation failed\n"); exit(1); } if (ds_get_b...
{ "code": [ " if (ds_get_bytes_per_pixel(ds) != vs->depth)", " size_changed = ds_get_width(ds) != vs->width || ds_get_height(ds) != vs->height;", " vs->width = ds_get_width(ds);", " vs->height = ds_get_height(ds);" ], "line_no": [ 25, 31, 35, 37 ] }
static void FUNC_0(DisplayState *VAR_0) { int VAR_1; VncState *vs = VAR_0->opaque; vs->old_data = qemu_realloc(vs->old_data, ds_get_linesize(VAR_0) * ds_get_height(VAR_0)); if (vs->old_data == NULL) { fprintf(stderr, "vnc: memory allocation failed\n"); exit(1); } if (ds_get_byte...
[ "static void FUNC_0(DisplayState *VAR_0)\n{", "int VAR_1;", "VncState *vs = VAR_0->opaque;", "vs->old_data = qemu_realloc(vs->old_data, ds_get_linesize(VAR_0) * ds_get_height(VAR_0));", "if (vs->old_data == NULL) {", "fprintf(stderr, \"vnc: memory allocation failed\\n\");", "exit(1);", "}", "if (ds_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
12,001
static inline int cris_bound_b(int v, int b) { int r = v; asm ("bound.b\t%1, %0\n" : "+r" (r) : "ri" (b)); return r; }
true
qemu
21ce148c7ec71ee32834061355a5ecfd1a11f90f
static inline int cris_bound_b(int v, int b) { int r = v; asm ("bound.b\t%1, %0\n" : "+r" (r) : "ri" (b)); return r; }
{ "code": [ "static inline int cris_bound_b(int v, int b)" ], "line_no": [ 1 ] }
static inline int FUNC_0(int VAR_0, int VAR_1) { int VAR_2 = VAR_0; asm ("bound.VAR_1\t%1, %0\n" : "+VAR_2" (VAR_2) : "ri" (VAR_1)); return VAR_2; }
[ "static inline int FUNC_0(int VAR_0, int VAR_1)\n{", "int VAR_2 = VAR_0;", "asm (\"bound.VAR_1\\t%1, %0\\n\" : \"+VAR_2\" (VAR_2) : \"ri\" (VAR_1));", "return VAR_2;", "}" ]
[ 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
12,002
static int virtio_ccw_hcall_notify(const uint64_t *args) { uint64_t subch_id = args[0]; uint64_t queue = args[1]; SubchDev *sch; int cssid, ssid, schid, m; if (ioinst_disassemble_sch_ident(subch_id, &m, &cssid, &ssid, &schid)) { sch = css_find_subch(m, cssid, ssid, schid); if (!s...
true
qemu
b57ed9bf075e33cdd2f9eb545ff555301dd57221
static int virtio_ccw_hcall_notify(const uint64_t *args) { uint64_t subch_id = args[0]; uint64_t queue = args[1]; SubchDev *sch; int cssid, ssid, schid, m; if (ioinst_disassemble_sch_ident(subch_id, &m, &cssid, &ssid, &schid)) { sch = css_find_subch(m, cssid, ssid, schid); if (!s...
{ "code": [], "line_no": [] }
static int FUNC_0(const uint64_t *VAR_0) { uint64_t subch_id = VAR_0[0]; uint64_t queue = VAR_0[1]; SubchDev *sch; int VAR_1, VAR_2, VAR_3, VAR_4; if (ioinst_disassemble_sch_ident(subch_id, &VAR_4, &VAR_1, &VAR_2, &VAR_3)) { sch = css_find_subch(VAR_4, VAR_1, VAR_2, VAR_3); if (!...
[ "static int FUNC_0(const uint64_t *VAR_0)\n{", "uint64_t subch_id = VAR_0[0];", "uint64_t queue = VAR_0[1];", "SubchDev *sch;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "if (ioinst_disassemble_sch_ident(subch_id, &VAR_4, &VAR_1, &VAR_2, &VAR_3)) {", "sch = css_find_subch(VAR_4, VAR_1, VAR_2, VAR_3);", "if (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 28 ], [ 30 ] ]
12,003
static int dirac_decode_frame_internal(DiracContext *s) { DWTContext d; int y, i, comp, dsty; int ret; if (s->low_delay) { /* [DIRAC_STD] 13.5.1 low_delay_transform_data() */ for (comp = 0; comp < 3; comp++) { Plane *p = &s->plane[comp]; memset(p->idwt_...
true
FFmpeg
1c5b712c0a643a039d6f34269b4102de313a050a
static int dirac_decode_frame_internal(DiracContext *s) { DWTContext d; int y, i, comp, dsty; int ret; if (s->low_delay) { for (comp = 0; comp < 3; comp++) { Plane *p = &s->plane[comp]; memset(p->idwt_buf, 0, p->idwt_stride * p->idwt_height * sizeof(ID...
{ "code": [ " for (i = 0; i < s->num_refs; i++)", " interpolate_refplane(s, s->ref_pics[i], comp, p->width, p->height);" ], "line_no": [ 95, 97 ] }
static int FUNC_0(DiracContext *VAR_0) { DWTContext d; int VAR_1, VAR_2, VAR_3, VAR_4; int VAR_5; if (VAR_0->low_delay) { for (VAR_3 = 0; VAR_3 < 3; VAR_3++) { Plane *p = &VAR_0->plane[VAR_3]; memset(p->idwt_buf, 0, p->idwt_stride * p->idwt_height * si...
[ "static int FUNC_0(DiracContext *VAR_0)\n{", "DWTContext d;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "int VAR_5;", "if (VAR_0->low_delay) {", "for (VAR_3 = 0; VAR_3 < 3; VAR_3++) {", "Plane *p = &VAR_0->plane[VAR_3];", "memset(p->idwt_buf, 0, p->idwt_stride * p->idwt_height * sizeof(IDWTELEM));", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 53, 55 ...
12,005
static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_time, int flags) { MOVContext* mov = (MOVContext *) s->priv_data; MOVStreamContext* sc; int32_t i, a, b, m; int64_t start_time; int32_t seek_sample, sample; int32_t duration; int32_t count; int32_t chu...
false
FFmpeg
c7e63546dc38616eb04a2d463170b3c247556149
static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_time, int flags) { MOVContext* mov = (MOVContext *) s->priv_data; MOVStreamContext* sc; int32_t i, a, b, m; int64_t start_time; int32_t seek_sample, sample; int32_t duration; int32_t count; int32_t chu...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { MOVContext* mov = (MOVContext *) VAR_0->priv_data; MOVStreamContext* sc; int32_t i, a, b, m; int64_t start_time; int32_t seek_sample, sample; int32_t duration; int32_t count; int32_t chunk; int...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3)\n{", "MOVContext* mov = (MOVContext *) VAR_0->priv_data;", "MOVStreamContext* sc;", "int32_t i, a, b, m;", "int64_t start_time;", "int32_t seek_sample, sample;", "int32_t duration;", "int32_t count;", "int32_t chunk;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 43 ], [ 45,...
12,007
static always_inline int dv_rl2vlc_size(int run, int l) { int level = (l ^ (l >> 8)) - (l >> 8); int size; if (run < DV_VLC_MAP_RUN_SIZE && level < DV_VLC_MAP_LEV_SIZE) { size = dv_vlc_map[run][level].size; } else { size = (level < DV_VLC_MAP_LEV_SIZE) ? dv_vlc_map[0][level].size :...
false
FFmpeg
c619ff6daf93a8f3c03decf2d3345d2474c3db91
static always_inline int dv_rl2vlc_size(int run, int l) { int level = (l ^ (l >> 8)) - (l >> 8); int size; if (run < DV_VLC_MAP_RUN_SIZE && level < DV_VLC_MAP_LEV_SIZE) { size = dv_vlc_map[run][level].size; } else { size = (level < DV_VLC_MAP_LEV_SIZE) ? dv_vlc_map[0][level].size :...
{ "code": [], "line_no": [] }
static always_inline int FUNC_0(int run, int l) { int VAR_0 = (l ^ (l >> 8)) - (l >> 8); int VAR_1; if (run < DV_VLC_MAP_RUN_SIZE && VAR_0 < DV_VLC_MAP_LEV_SIZE) { VAR_1 = dv_vlc_map[run][VAR_0].VAR_1; } else { VAR_1 = (VAR_0 < DV_VLC_MAP_LEV_SIZE) ? dv_vlc_map[0][VAR_0].VAR_1 : 16...
[ "static always_inline int FUNC_0(int run, int l)\n{", "int VAR_0 = (l ^ (l >> 8)) - (l >> 8);", "int VAR_1;", "if (run < DV_VLC_MAP_RUN_SIZE && VAR_0 < DV_VLC_MAP_LEV_SIZE) {", "VAR_1 = dv_vlc_map[run][VAR_0].VAR_1;", "}", "else {", "VAR_1 = (VAR_0 < DV_VLC_MAP_LEV_SIZE) ? dv_vlc_map[0][VAR_0].VAR_1 :...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
12,008
static int dxtory_decode_v2_444(AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) { GetByteContext gb; GetBitContext gb2; int nslices, slice, slice_height; uint32_t off, slice_size; uint8_t *Y, *U, *V; int ret; bytestream2_init...
false
FFmpeg
a7e6fbd90e62d3320b1e26d8209fc0f55ee5b0be
static int dxtory_decode_v2_444(AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) { GetByteContext gb; GetBitContext gb2; int nslices, slice, slice_height; uint32_t off, slice_size; uint8_t *Y, *U, *V; int ret; bytestream2_init...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, const uint8_t *VAR_2, int VAR_3) { GetByteContext gb; GetBitContext gb2; int VAR_4, VAR_5, VAR_6; uint32_t off, slice_size; uint8_t *Y, *U, *V; int VAR_7; bytestream2_init(&gb, VAR_2, VAR_3);...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{", "GetByteContext gb;", "GetBitContext gb2;", "int VAR_4, VAR_5, VAR_6;", "uint32_t off, slice_size;", "uint8_t *Y, *U, *V;", "int VAR_7;", "bytestream2_init(&gb, VAR_2, VAR_3);", "VAR_4 = bytestream2_get...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ...
12,009
int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { NVENCSTATUS nv_status; CUresult cu_res; CUcontext dummy; NvencSurface *tmpoutsurf, *inSurf; int res; NvencContext *ctx = avctx->priv_data; NvencDynLoa...
false
FFmpeg
8de3458a07376b0a96772e586b6dba5e93432f52
int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { NVENCSTATUS nv_status; CUresult cu_res; CUcontext dummy; NvencSurface *tmpoutsurf, *inSurf; int res; NvencContext *ctx = avctx->priv_data; NvencDynLoa...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { NVENCSTATUS nv_status; CUresult cu_res; CUcontext dummy; NvencSurface *tmpoutsurf, *inSurf; int VAR_4; NvencContext *ctx = VAR_0->priv_data; NvencDynLoadFunctions *dl_f...
[ "int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "NVENCSTATUS nv_status;", "CUresult cu_res;", "CUcontext dummy;", "NvencSurface *tmpoutsurf, *inSurf;", "int VAR_4;", "NvencContext *ctx = VAR_0->priv_data;", "NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_f...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
12,010
static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c) { uint8_t byte; if (s->buf_end - s->buf < 5) return AVERROR(EINVAL); c->nreslevels = bytestream_get_byte(&s->buf) + 1; // num of resolution levels - 1 /* compute number of resolution levels to decode */ if (c->n...
false
FFmpeg
5650e331a733711b809bc27f968500f0f5530126
static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c) { uint8_t byte; if (s->buf_end - s->buf < 5) return AVERROR(EINVAL); c->nreslevels = bytestream_get_byte(&s->buf) + 1; if (c->nreslevels < s->reduction_factor) c->nreslevels2decode = 1; else ...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000CodingStyle *VAR_1) { uint8_t byte; if (VAR_0->buf_end - VAR_0->buf < 5) return AVERROR(EINVAL); VAR_1->nreslevels = bytestream_get_byte(&VAR_0->buf) + 1; if (VAR_1->nreslevels < VAR_0->reduction_factor) VAR_1->nr...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000CodingStyle *VAR_1)\n{", "uint8_t byte;", "if (VAR_0->buf_end - VAR_0->buf < 5)\nreturn AVERROR(EINVAL);", "VAR_1->nreslevels = bytestream_get_byte(&VAR_0->buf) + 1;", "if (VAR_1->nreslevels < VAR_0->reduction_factor)\nVAR_1->nreslevels2decode = 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 ], [ 9, 11 ], [ 13 ], [ 19, 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 55 ], [ 57 ], [ 59...
12,011
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { AVFilterContext *ctx = inlink->dst; TInterlaceContext *tinterlace = ctx->priv; if (tinterlace->cur) avfilter_unref_buffer(tinterlace->cur); tinterlace->cur = tinterlace->next; tinterlace->next = picref; }
false
FFmpeg
18c6bd098baba1ace8fea946e4bc0c60098f49d4
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { AVFilterContext *ctx = inlink->dst; TInterlaceContext *tinterlace = ctx->priv; if (tinterlace->cur) avfilter_unref_buffer(tinterlace->cur); tinterlace->cur = tinterlace->next; tinterlace->next = picref; }
{ "code": [], "line_no": [] }
static void FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterContext *ctx = VAR_0->dst; TInterlaceContext *tinterlace = ctx->priv; if (tinterlace->cur) avfilter_unref_buffer(tinterlace->cur); tinterlace->cur = tinterlace->next; tinterlace->next = VAR_1; }
[ "static void FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "TInterlaceContext *tinterlace = ctx->priv;", "if (tinterlace->cur)\navfilter_unref_buffer(tinterlace->cur);", "tinterlace->cur = tinterlace->next;", "tinterlace->next = VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ] ]
12,012
static int mov_read_trun(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { MOVFragment *frag = &c->fragment; AVStream *st = NULL; MOVStreamContext *sc; uint64_t offset; int64_t dts; int data_offset = 0; unsigned entries, first_sample_flags = frag->flags; int flags, distance, i; ...
false
FFmpeg
f0f2218dce194ff50d1fe7ed39011595660143ad
static int mov_read_trun(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { MOVFragment *frag = &c->fragment; AVStream *st = NULL; MOVStreamContext *sc; uint64_t offset; int64_t dts; int data_offset = 0; unsigned entries, first_sample_flags = frag->flags; int flags, distance, i; ...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2) { MOVFragment *frag = &VAR_0->fragment; AVStream *st = NULL; MOVStreamContext *sc; uint64_t offset; int64_t dts; int VAR_3 = 0; unsigned VAR_4, VAR_5 = frag->VAR_6; int VAR_6, VAR_7, VAR_8; for (VAR...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)\n{", "MOVFragment *frag = &VAR_0->fragment;", "AVStream *st = NULL;", "MOVStreamContext *sc;", "uint64_t offset;", "int64_t dts;", "int VAR_3 = 0;", "unsigned VAR_4, VAR_5 = frag->VAR_6;", "int VAR_6, VAR_7, VAR_8;", "for (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
12,013
void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) { // Common optimizations whether Altivec is available or not switch (check_dcbzl_effect()) { case 32: c->clear_blocks = clear_blocks_dcbz32_ppc; break; case 128: c->clear_blocks = clear_blocks_dcbz128_ppc; break; defaul...
false
FFmpeg
e45a2872fafe631c14aee9f79d0963d68c4fc1fd
void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) { switch (check_dcbzl_effect()) { case 32: c->clear_blocks = clear_blocks_dcbz32_ppc; break; case 128: c->clear_blocks = clear_blocks_dcbz128_ppc; break; default: break; } #if HAVE_ALTIVEC if (has_alti...
{ "code": [], "line_no": [] }
void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1) { switch (check_dcbzl_effect()) { case 32: VAR_0->clear_blocks = clear_blocks_dcbz32_ppc; break; case 128: VAR_0->clear_blocks = clear_blocks_dcbz128_ppc; break; default: break; } #if HAVE_ALTIVEC if (has_al...
[ "void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1)\n{", "switch (check_dcbzl_effect()) {", "case 32:\nVAR_0->clear_blocks = clear_blocks_dcbz32_ppc;", "break;", "case 128:\nVAR_0->clear_blocks = clear_blocks_dcbz128_ppc;", "break;", "default:\nbreak;", "}", "#if HAVE_ALTIVEC\nif (has_altivec()) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 5...
12,014
static inline void RENAME(rgb24tobgr15)(const uint8_t *src, uint8_t *dst, long src_size) { const uint8_t *s = src; const uint8_t *end; #if COMPILE_TEMPLATE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #if COMPILE_TEMPLATE_MMX __asm__ volatile(PRE...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(rgb24tobgr15)(const uint8_t *src, uint8_t *dst, long src_size) { const uint8_t *s = src; const uint8_t *end; #if COMPILE_TEMPLATE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #if COMPILE_TEMPLATE_MMX __asm__ volatile(PRE...
{ "code": [], "line_no": [] }
static inline void FUNC_0(rgb24tobgr15)(const uint8_t *src, uint8_t *dst, long src_size) { const uint8_t *VAR_0 = src; const uint8_t *VAR_1; #if COMPILE_TEMPLATE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; #if COMPILE_TEMPLATE_MMX __asm__ ...
[ "static inline void FUNC_0(rgb24tobgr15)(const uint8_t *src, uint8_t *dst, long src_size)\n{", "const uint8_t *VAR_0 = src;", "const uint8_t *VAR_1;", "#if COMPILE_TEMPLATE_MMX\nconst uint8_t *mm_end;", "#endif\nuint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "#if COMPILE_TEMPLATE_MMX\n__a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59,...
12,015
static double compute_target_delay(double delay, VideoState *is) { double sync_threshold, diff; /* update delay to follow master synchronisation source */ if (get_master_sync_type(is) != AV_SYNC_VIDEO_MASTER) { /* if video is slave, we try to correct big delays by duplicating or d...
false
FFmpeg
26c208cf0ff59efd7786528884a64d35fc42e9bf
static double compute_target_delay(double delay, VideoState *is) { double sync_threshold, diff; if (get_master_sync_type(is) != AV_SYNC_VIDEO_MASTER) { diff = get_video_clock(is) - get_master_clock(is); sync_threshold = FFMAX(AV_SYNC_THRESHOLD, delay); ...
{ "code": [], "line_no": [] }
static double FUNC_0(double VAR_0, VideoState *VAR_1) { double VAR_2, VAR_3; if (get_master_sync_type(VAR_1) != AV_SYNC_VIDEO_MASTER) { VAR_3 = get_video_clock(VAR_1) - get_master_clock(VAR_1); VAR_2 = FFMAX(AV_SYNC_THRESHOLD, VAR_0); if (fabs(VA...
[ "static double FUNC_0(double VAR_0, VideoState *VAR_1)\n{", "double VAR_2, VAR_3;", "if (get_master_sync_type(VAR_1) != AV_SYNC_VIDEO_MASTER) {", "VAR_3 = get_video_clock(VAR_1) - get_master_clock(VAR_1);", "VAR_2 = FFMAX(AV_SYNC_THRESHOLD, VAR_0);", "if (fabs(VAR_3) < AV_NOSYNC_THRESHOLD) {", "if (VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 17 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 51 ], [ 53 ] ]
12,016
static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type) { OutputStream *ost; AVStream *st = avformat_new_stream(oc, NULL); int idx = oc->nb_streams - 1, ret = 0; int64_t max_frames = INT64_MAX; char *bsf = NULL, *next, *codec_tag = NULL; ...
false
FFmpeg
1b648c7cdbee335c642bd2c05fe624fc195b85e6
static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type) { OutputStream *ost; AVStream *st = avformat_new_stream(oc, NULL); int idx = oc->nb_streams - 1, ret = 0; int64_t max_frames = INT64_MAX; char *bsf = NULL, *next, *codec_tag = NULL; ...
{ "code": [], "line_no": [] }
static OutputStream *FUNC_0(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type) { OutputStream *ost; AVStream *st = avformat_new_stream(oc, NULL); int VAR_0 = oc->nb_streams - 1, VAR_1 = 0; int64_t max_frames = INT64_MAX; char *VAR_2 = NULL, *VAR_3, *VAR_4 = NULL; AVBitStr...
[ "static OutputStream *FUNC_0(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type)\n{", "OutputStream *ost;", "AVStream *st = avformat_new_stream(oc, NULL);", "int VAR_0 = oc->nb_streams - 1, VAR_1 = 0;", "int64_t max_frames = INT64_MAX;", "char *VAR_2 = NULL, *VAR_3, *VAR_4 = NULL;", "AVB...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
12,017
static unsigned int dec_lz_r(DisasContext *dc) { TCGv t0; DIS(fprintf (logfile, "lz $r%u, $r%u\n", dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZ); t0 = tcg_temp_new(TCG_TYPE_TL); dec_prep_alu_r(dc, dc->op1, dc->op2, 4, 0, cpu_R[dc->op2], t0); cris_alu(dc, CC_OP_LZ, cpu_R[dc->op2], cpu_R[dc->op2], ...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static unsigned int dec_lz_r(DisasContext *dc) { TCGv t0; DIS(fprintf (logfile, "lz $r%u, $r%u\n", dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZ); t0 = tcg_temp_new(TCG_TYPE_TL); dec_prep_alu_r(dc, dc->op1, dc->op2, 4, 0, cpu_R[dc->op2], t0); cris_alu(dc, CC_OP_LZ, cpu_R[dc->op2], cpu_R[dc->op2], ...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { TCGv t0; DIS(fprintf (logfile, "lz $r%u, $r%u\n", VAR_0->op1, VAR_0->op2)); cris_cc_mask(VAR_0, CC_MASK_NZ); t0 = tcg_temp_new(TCG_TYPE_TL); dec_prep_alu_r(VAR_0, VAR_0->op1, VAR_0->op2, 4, 0, cpu_R[VAR_0->op2], t0); cris_alu(VAR_0, CC_OP_LZ, cpu_R[V...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "TCGv t0;", "DIS(fprintf (logfile, \"lz $r%u, $r%u\\n\",\nVAR_0->op1, VAR_0->op2));", "cris_cc_mask(VAR_0, CC_MASK_NZ);", "t0 = tcg_temp_new(TCG_TYPE_TL);", "dec_prep_alu_r(VAR_0, VAR_0->op1, VAR_0->op2, 4, 0, cpu_R[VAR_0->op2], t0);", "cris_alu(VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
12,018
int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, enum PixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color) { uint8_t *optr; int y_shift; int x_shift; int yheight; int i, y; if (pix_fmt < 0 ...
false
FFmpeg
d7e14c0d103a2c9cca6c50568e09b40d6f48ea19
int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, enum PixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color) { uint8_t *optr; int y_shift; int x_shift; int yheight; int i, y; if (pix_fmt < 0 ...
{ "code": [], "line_no": [] }
int FUNC_0(AVPicture *VAR_0, const AVPicture *VAR_1, int VAR_2, int VAR_3, enum PixelFormat VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int *VAR_9) { uint8_t *optr; int VAR_10; int VAR_11; int VAR_12; int VAR_13, VAR_14; if (VAR_4 < 0 || VAR_4 >= ...
[ "int FUNC_0(AVPicture *VAR_0, const AVPicture *VAR_1, int VAR_2, int VAR_3,\nenum PixelFormat VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8,\nint *VAR_9)\n{", "uint8_t *optr;", "int VAR_10;", "int VAR_11;", "int VAR_12;", "int VAR_13, VAR_14;", "if (VAR_4 < 0 || VAR_4 >= PIX_FMT_NB ||\n!is_yuv_plana...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [...
12,019
void ppc_hash64_stop_access(uint64_t token) { if (kvmppc_kern_htab) { kvmppc_hash64_free_pteg(token); } }
false
qemu
c18ad9a54b75495ce61e8b28d353f8eec51768fc
void ppc_hash64_stop_access(uint64_t token) { if (kvmppc_kern_htab) { kvmppc_hash64_free_pteg(token); } }
{ "code": [], "line_no": [] }
void FUNC_0(uint64_t VAR_0) { if (kvmppc_kern_htab) { kvmppc_hash64_free_pteg(VAR_0); } }
[ "void FUNC_0(uint64_t VAR_0)\n{", "if (kvmppc_kern_htab) {", "kvmppc_hash64_free_pteg(VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
12,020
void helper_sysret(CPUX86State *env, int dflag) { int cpl, selector; if (!(env->efer & MSR_EFER_SCE)) { raise_exception_err(env, EXCP06_ILLOP, 0); } cpl = env->hflags & HF_CPL_MASK; if (!(env->cr[0] & CR0_PE_MASK) || cpl != 0) { raise_exception_err(env, EXCP0D_GPF, 0); ...
false
qemu
7848c8d19f8556666df25044bbd5d8b29439c368
void helper_sysret(CPUX86State *env, int dflag) { int cpl, selector; if (!(env->efer & MSR_EFER_SCE)) { raise_exception_err(env, EXCP06_ILLOP, 0); } cpl = env->hflags & HF_CPL_MASK; if (!(env->cr[0] & CR0_PE_MASK) || cpl != 0) { raise_exception_err(env, EXCP0D_GPF, 0); ...
{ "code": [], "line_no": [] }
void FUNC_0(CPUX86State *VAR_0, int VAR_1) { int VAR_2, VAR_3; if (!(VAR_0->efer & MSR_EFER_SCE)) { raise_exception_err(VAR_0, EXCP06_ILLOP, 0); } VAR_2 = VAR_0->hflags & HF_CPL_MASK; if (!(VAR_0->cr[0] & CR0_PE_MASK) || VAR_2 != 0) { raise_exception_err(VAR_0, EXCP0D_GPF, ...
[ "void FUNC_0(CPUX86State *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3;", "if (!(VAR_0->efer & MSR_EFER_SCE)) {", "raise_exception_err(VAR_0, EXCP06_ILLOP, 0);", "}", "VAR_2 = VAR_0->hflags & HF_CPL_MASK;", "if (!(VAR_0->cr[0] & CR0_PE_MASK) || VAR_2 != 0) {", "raise_exception_err(VAR_0, EXCP0D_GPF, 0);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35, 37, 39, 41, 43, 45 ], [ 47 ], [ 49 ], ...
12,021
static int handle_sigp(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1) { CPUS390XState *env = &cpu->env; uint8_t order_code; uint16_t cpu_addr; int r = -1; S390CPU *target_cpu; cpu_synchronize_state(CPU(cpu)); /* get order code */ order_code = decode_basedisp_rs(env, run->s...
false
qemu
3796f0e1cda41eacf4fc915e7edaf54f2279466c
static int handle_sigp(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1) { CPUS390XState *env = &cpu->env; uint8_t order_code; uint16_t cpu_addr; int r = -1; S390CPU *target_cpu; cpu_synchronize_state(CPU(cpu)); order_code = decode_basedisp_rs(env, run->s390_sieic.ipb) & SIG...
{ "code": [], "line_no": [] }
static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1, uint8_t VAR_2) { CPUS390XState *env = &VAR_0->env; uint8_t order_code; uint16_t cpu_addr; int VAR_3 = -1; S390CPU *target_cpu; cpu_synchronize_state(CPU(VAR_0)); order_code = decode_basedisp_rs(env, VAR_1->s390_sieic....
[ "static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1, uint8_t VAR_2)\n{", "CPUS390XState *env = &VAR_0->env;", "uint8_t order_code;", "uint16_t cpu_addr;", "int VAR_3 = -1;", "S390CPU *target_cpu;", "cpu_synchronize_state(CPU(VAR_0));", "order_code = decode_basedisp_rs(env, VAR_1->s390_sieic.ipb) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53,...
12,022
static void dump_ops(const uint16_t *opc_buf) { const uint16_t *opc_ptr; int c; opc_ptr = opc_buf; for(;;) { c = *opc_ptr++; fprintf(logfile, "0x%04x: %s\n", opc_ptr - opc_buf - 1, op_str[c]); if (c == INDEX_op_end) break; } }
false
qemu
9c605cb13547a5faa5cb1092e3e44ac8b0d0b841
static void dump_ops(const uint16_t *opc_buf) { const uint16_t *opc_ptr; int c; opc_ptr = opc_buf; for(;;) { c = *opc_ptr++; fprintf(logfile, "0x%04x: %s\n", opc_ptr - opc_buf - 1, op_str[c]); if (c == INDEX_op_end) break; } }
{ "code": [], "line_no": [] }
static void FUNC_0(const uint16_t *VAR_0) { const uint16_t *VAR_1; int VAR_2; VAR_1 = VAR_0; for(;;) { VAR_2 = *VAR_1++; fprintf(logfile, "0x%04x: %s\n", VAR_1 - VAR_0 - 1, op_str[VAR_2]); if (VAR_2 == INDEX_op_end) break; } }
[ "static void FUNC_0(const uint16_t *VAR_0)\n{", "const uint16_t *VAR_1;", "int VAR_2;", "VAR_1 = VAR_0;", "for(;;) {", "VAR_2 = *VAR_1++;", "fprintf(logfile, \"0x%04x: %s\\n\", VAR_1 - VAR_0 - 1, op_str[VAR_2]);", "if (VAR_2 == INDEX_op_end)\nbreak;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ] ]
12,024
static int tap_set_sndbuf(TAPState *s, const char *sndbuf_str) { int sndbuf = TAP_DEFAULT_SNDBUF; if (sndbuf_str) { sndbuf = atoi(sndbuf_str); } if (!sndbuf) { sndbuf = INT_MAX; } if (ioctl(s->fd, TUNSETSNDBUF, &sndbuf) == -1 && sndbuf_str) { qemu_error("T...
false
qemu
8a1c5235510da01a200693fe3cfd87acd2dc1fca
static int tap_set_sndbuf(TAPState *s, const char *sndbuf_str) { int sndbuf = TAP_DEFAULT_SNDBUF; if (sndbuf_str) { sndbuf = atoi(sndbuf_str); } if (!sndbuf) { sndbuf = INT_MAX; } if (ioctl(s->fd, TUNSETSNDBUF, &sndbuf) == -1 && sndbuf_str) { qemu_error("T...
{ "code": [], "line_no": [] }
static int FUNC_0(TAPState *VAR_0, const char *VAR_1) { int VAR_2 = TAP_DEFAULT_SNDBUF; if (VAR_1) { VAR_2 = atoi(VAR_1); } if (!VAR_2) { VAR_2 = INT_MAX; } if (ioctl(VAR_0->fd, TUNSETSNDBUF, &VAR_2) == -1 && VAR_1) { qemu_error("TUNSETSNDBUF ioctl failed:...
[ "static int FUNC_0(TAPState *VAR_0, const char *VAR_1)\n{", "int VAR_2 = TAP_DEFAULT_SNDBUF;", "if (VAR_1) {", "VAR_2 = atoi(VAR_1);", "}", "if (!VAR_2) {", "VAR_2 = INT_MAX;", "}", "if (ioctl(VAR_0->fd, TUNSETSNDBUF, &VAR_2) == -1 && VAR_1) {", "qemu_error(\"TUNSETSNDBUF ioctl failed: %VAR_0\\n\"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
12,025
static void virtex_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; hwaddr initrd_base = 0; int initrd_size = 0; ...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void virtex_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; hwaddr initrd_base = 0; int initrd_size = 0; ...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { ram_addr_t ram_size = VAR_0->ram_size; const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; hwaddr initrd_base = 0; int VAR_4 = 0; MemoryRegion *address_space_mem = get_system_memory(); De...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "hwaddr initrd_base = 0;", "int VAR_4 = 0;", "MemoryRegion *address_space_mem = get_system_memory();", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ...
12,027
static void pxa2xx_i2c_write(void *opaque, hwaddr addr, uint64_t value64, unsigned size) { PXA2xxI2CState *s = (PXA2xxI2CState *) opaque; uint32_t value = value64; int ack; addr -= s->offset; switch (addr) { case ICR: s->control = value & 0xfff7; ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void pxa2xx_i2c_write(void *opaque, hwaddr addr, uint64_t value64, unsigned size) { PXA2xxI2CState *s = (PXA2xxI2CState *) opaque; uint32_t value = value64; int ack; addr -= s->offset; switch (addr) { case ICR: s->control = value & 0xfff7; ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { PXA2xxI2CState *s = (PXA2xxI2CState *) VAR_0; uint32_t value = VAR_2; int VAR_4; VAR_1 -= s->offset; switch (VAR_1) { case ICR: s->control = value & 0xfff7; if...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "PXA2xxI2CState *s = (PXA2xxI2CState *) VAR_0;", "uint32_t value = VAR_2;", "int VAR_4;", "VAR_1 -= s->offset;", "switch (VAR_1) {", "case ICR:\ns->control = value & 0xfff7;", "if ((value & (1 << 3)) && (value & (1 <<...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [...
12,028
static void ptimer_trigger(ptimer_state *s) { if (s->bh) { qemu_bh_schedule(s->bh); } }
false
qemu
8a354bd935a800dd2d98ac8f30707e2912c80ae6
static void ptimer_trigger(ptimer_state *s) { if (s->bh) { qemu_bh_schedule(s->bh); } }
{ "code": [], "line_no": [] }
static void FUNC_0(ptimer_state *VAR_0) { if (VAR_0->bh) { qemu_bh_schedule(VAR_0->bh); } }
[ "static void FUNC_0(ptimer_state *VAR_0)\n{", "if (VAR_0->bh) {", "qemu_bh_schedule(VAR_0->bh);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
12,029
static int prepare_input_packet(AVFormatContext *s, AVPacket *pkt) { int ret; ret = check_packet(s, pkt); if (ret < 0) return ret; #if !FF_API_COMPUTE_PKT_FIELDS2 /* sanitize the timestamps */ if (!(s->oformat->flags & AVFMT_NOTIMESTAMPS)) { AVStream *st = s->streams[pkt...
false
FFmpeg
11de006babf735aafa3462d43dd2c02bb6ac6e2f
static int prepare_input_packet(AVFormatContext *s, AVPacket *pkt) { int ret; ret = check_packet(s, pkt); if (ret < 0) return ret; #if !FF_API_COMPUTE_PKT_FIELDS2 if (!(s->oformat->flags & AVFMT_NOTIMESTAMPS)) { AVStream *st = s->streams[pkt->stream_index]; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { int VAR_2; VAR_2 = check_packet(VAR_0, VAR_1); if (VAR_2 < 0) return VAR_2; #if !FF_API_COMPUTE_PKT_FIELDS2 if (!(VAR_0->oformat->flags & AVFMT_NOTIMESTAMPS)) { AVStream *st = VAR_0->streams[VAR_1->stream_inde...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2;", "VAR_2 = check_packet(VAR_0, VAR_1);", "if (VAR_2 < 0)\nreturn VAR_2;", "#if !FF_API_COMPUTE_PKT_FIELDS2\nif (!(VAR_0->oformat->flags & AVFMT_NOTIMESTAMPS)) {", "AVStream *st = VAR_0->streams[VAR_1->stream_index];", "if (!st-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17, 21 ], [ 23 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 63, 65, 67 ], [ 69, 71...
12,031
build_tpm2(GArray *table_data, GArray *linker) { Acpi20TPM2 *tpm2_ptr; tpm2_ptr = acpi_data_push(table_data, sizeof *tpm2_ptr); tpm2_ptr->platform_class = cpu_to_le16(TPM2_ACPI_CLASS_CLIENT); tpm2_ptr->control_area_address = cpu_to_le64(0); tpm2_ptr->start_method = cpu_to_le32(TPM2_START_M...
false
qemu
37ad223c515da2fe9f1c679768cb5ccaa42e57e1
build_tpm2(GArray *table_data, GArray *linker) { Acpi20TPM2 *tpm2_ptr; tpm2_ptr = acpi_data_push(table_data, sizeof *tpm2_ptr); tpm2_ptr->platform_class = cpu_to_le16(TPM2_ACPI_CLASS_CLIENT); tpm2_ptr->control_area_address = cpu_to_le64(0); tpm2_ptr->start_method = cpu_to_le32(TPM2_START_M...
{ "code": [], "line_no": [] }
FUNC_0(GArray *VAR_0, GArray *VAR_1) { Acpi20TPM2 *tpm2_ptr; tpm2_ptr = acpi_data_push(VAR_0, sizeof *tpm2_ptr); tpm2_ptr->platform_class = cpu_to_le16(TPM2_ACPI_CLASS_CLIENT); tpm2_ptr->control_area_address = cpu_to_le64(0); tpm2_ptr->start_method = cpu_to_le32(TPM2_START_METHOD_MMIO); ...
[ "FUNC_0(GArray *VAR_0, GArray *VAR_1)\n{", "Acpi20TPM2 *tpm2_ptr;", "tpm2_ptr = acpi_data_push(VAR_0, sizeof *tpm2_ptr);", "tpm2_ptr->platform_class = cpu_to_le16(TPM2_ACPI_CLASS_CLIENT);", "tpm2_ptr->control_area_address = cpu_to_le64(0);", "tpm2_ptr->start_method = cpu_to_le32(TPM2_START_METHOD_MMIO);",...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ] ]
12,032
static int proxy_statfs(FsContext *s, V9fsPath *fs_path, struct statfs *stbuf) { int retval; retval = v9fs_request(s->private, T_STATFS, stbuf, "s", fs_path); if (retval < 0) { errno = -retval; return -1; } return retval; }
false
qemu
494a8ebe713055d3946183f4b395f85a18b43e9e
static int proxy_statfs(FsContext *s, V9fsPath *fs_path, struct statfs *stbuf) { int retval; retval = v9fs_request(s->private, T_STATFS, stbuf, "s", fs_path); if (retval < 0) { errno = -retval; return -1; } return retval; }
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, struct statfs *VAR_2) { int VAR_3; VAR_3 = v9fs_request(VAR_0->private, T_STATFS, VAR_2, "VAR_0", VAR_1); if (VAR_3 < 0) { errno = -VAR_3; return -1; } return VAR_3; }
[ "static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, struct statfs *VAR_2)\n{", "int VAR_3;", "VAR_3 = v9fs_request(VAR_0->private, T_STATFS, VAR_2, \"VAR_0\", VAR_1);", "if (VAR_3 < 0) {", "errno = -VAR_3;", "return -1;", "}", "return VAR_3;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
12,033
BusState *qbus_create(BusType type, size_t size, DeviceState *parent, const char *name) { BusState *bus; bus = qemu_mallocz(size); bus->type = type; bus->parent = parent; bus->name = qemu_strdup(name); LIST_INIT(&bus->children); if (parent) { LIST_IN...
false
qemu
10c4c98ab7dc18169b37b76f6ea5e60ebe65222b
BusState *qbus_create(BusType type, size_t size, DeviceState *parent, const char *name) { BusState *bus; bus = qemu_mallocz(size); bus->type = type; bus->parent = parent; bus->name = qemu_strdup(name); LIST_INIT(&bus->children); if (parent) { LIST_IN...
{ "code": [], "line_no": [] }
BusState *FUNC_0(BusType type, size_t size, DeviceState *parent, const char *name) { BusState *bus; bus = qemu_mallocz(size); bus->type = type; bus->parent = parent; bus->name = qemu_strdup(name); LIST_INIT(&bus->children); if (parent) { LIST_INSERT_...
[ "BusState *FUNC_0(BusType type, size_t size,\nDeviceState *parent, const char *name)\n{", "BusState *bus;", "bus = qemu_mallocz(size);", "bus->type = type;", "bus->parent = parent;", "bus->name = qemu_strdup(name);", "LIST_INIT(&bus->children);", "if (parent) {", "LIST_INSERT_HEAD(&parent->child_bus...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
12,034
static void update_sr (AC97LinkState *s, AC97BusMasterRegs *r, uint32_t new_sr) { int event = 0; int level = 0; uint32_t new_mask = new_sr & SR_INT_MASK; uint32_t old_mask = r->sr & SR_INT_MASK; uint32_t masks[] = {GS_PIINT, GS_POINT, GS_MINT}; if (new_mask ^ old_mask) { /** @t...
false
qemu
10ee2aaa417d8d8978cdb2bbed55ebb152df5f6b
static void update_sr (AC97LinkState *s, AC97BusMasterRegs *r, uint32_t new_sr) { int event = 0; int level = 0; uint32_t new_mask = new_sr & SR_INT_MASK; uint32_t old_mask = r->sr & SR_INT_MASK; uint32_t masks[] = {GS_PIINT, GS_POINT, GS_MINT}; if (new_mask ^ old_mask) { ...
{ "code": [], "line_no": [] }
static void FUNC_0 (AC97LinkState *VAR_0, AC97BusMasterRegs *VAR_1, uint32_t VAR_2) { int VAR_3 = 0; int VAR_4 = 0; uint32_t new_mask = VAR_2 & SR_INT_MASK; uint32_t old_mask = VAR_1->sr & SR_INT_MASK; uint32_t masks[] = {GS_PIINT, GS_POINT, GS_MINT}; if (new_mask ^ old_mask) { ...
[ "static void FUNC_0 (AC97LinkState *VAR_0, AC97BusMasterRegs *VAR_1, uint32_t VAR_2)\n{", "int VAR_3 = 0;", "int VAR_4 = 0;", "uint32_t new_mask = VAR_2 & SR_INT_MASK;", "uint32_t old_mask = VAR_1->sr & SR_INT_MASK;", "uint32_t masks[] = {GS_PIINT, GS_POINT, GS_MINT};", "if (new_mask ^ old_mask) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
12,035
static unsigned int dec_subu_r(DisasContext *dc) { TCGv t0; int size = memsize_z(dc); DIS(fprintf (logfile, "subu.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZVC); t0 = tcg_temp_new(TCG_TYPE_TL); /* Size can only be qi or hi. */ t_gen_zext(t0, cpu_...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static unsigned int dec_subu_r(DisasContext *dc) { TCGv t0; int size = memsize_z(dc); DIS(fprintf (logfile, "subu.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZVC); t0 = tcg_temp_new(TCG_TYPE_TL); t_gen_zext(t0, cpu_R[dc->op1], size); cris_alu(dc,...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { TCGv t0; int VAR_1 = memsize_z(VAR_0); DIS(fprintf (logfile, "subu.%c $r%u, $r%u\n", memsize_char(VAR_1), VAR_0->op1, VAR_0->op2)); cris_cc_mask(VAR_0, CC_MASK_NZVC); t0 = tcg_temp_new(TCG_TYPE_TL); t_gen_zext(t0, cpu_R[VAR_0->op1], VAR_1...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "TCGv t0;", "int VAR_1 = memsize_z(VAR_0);", "DIS(fprintf (logfile, \"subu.%c $r%u, $r%u\\n\",\nmemsize_char(VAR_1),\nVAR_0->op1, VAR_0->op2));", "cris_cc_mask(VAR_0, CC_MASK_NZVC);", "t0 = tcg_temp_new(TCG_TYPE_TL);", "t_gen_zext(t0, cpu_R[VAR_0->op...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11, 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ] ]
12,037
bool cpu_physical_memory_is_io(hwaddr phys_addr) { MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, phys_addr >> TARGET_PAGE_BITS); return !(memory_region_is_ram(section->mr) || memory_region_is_romd(section->mr)); }
false
qemu
149f54b53b7666a3facd45e86eece60ce7d3b114
bool cpu_physical_memory_is_io(hwaddr phys_addr) { MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, phys_addr >> TARGET_PAGE_BITS); return !(memory_region_is_ram(section->mr) || memory_region_is_romd(section->mr)); }
{ "code": [], "line_no": [] }
bool FUNC_0(hwaddr phys_addr) { MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, phys_addr >> TARGET_PAGE_BITS); return !(memory_region_is_ram(section->mr) || memory_region_is_romd(section->mr)); }
[ "bool FUNC_0(hwaddr phys_addr)\n{", "MemoryRegionSection *section;", "section = phys_page_find(address_space_memory.dispatch,\nphys_addr >> TARGET_PAGE_BITS);", "return !(memory_region_is_ram(section->mr) ||\nmemory_region_is_romd(section->mr));", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15, 17 ], [ 19 ] ]
12,039
int kvm_cpu_exec(CPUState *env) { struct kvm_run *run = env->kvm_run; int ret; DPRINTF("kvm_cpu_exec()\n"); if (kvm_arch_process_irqchip_events(env)) { env->exit_request = 0; env->exception_index = EXCP_HLT; return 0; } do { if (env->kvm_vcpu_dirt...
false
qemu
cdea50ede1b8a2efe989fafc57260053b180219f
int kvm_cpu_exec(CPUState *env) { struct kvm_run *run = env->kvm_run; int ret; DPRINTF("kvm_cpu_exec()\n"); if (kvm_arch_process_irqchip_events(env)) { env->exit_request = 0; env->exception_index = EXCP_HLT; return 0; } do { if (env->kvm_vcpu_dirt...
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0) { struct kvm_run *VAR_1 = VAR_0->kvm_run; int VAR_2; DPRINTF("FUNC_0()\n"); if (kvm_arch_process_irqchip_events(VAR_0)) { VAR_0->exit_request = 0; VAR_0->exception_index = EXCP_HLT; return 0; } do { if (VAR_0->kvm_vcpu_...
[ "int FUNC_0(CPUState *VAR_0)\n{", "struct kvm_run *VAR_1 = VAR_0->kvm_run;", "int VAR_2;", "DPRINTF(\"FUNC_0()\\n\");", "if (kvm_arch_process_irqchip_events(VAR_0)) {", "VAR_0->exit_request = 0;", "VAR_0->exception_index = EXCP_HLT;", "return 0;", "}", "do {", "if (VAR_0->kvm_vcpu_dirty) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 55 ], [ 57 ], [ 59...
12,040
static void rtsp_send_cmd(AVFormatContext *s, const char *cmd, RTSPHeader *reply, unsigned char **content_ptr) { RTSPState *rt = s->priv_data; char buf[4096], buf1[1024], *q; unsigned char ch; const char *p; int content_length, line_count...
false
FFmpeg
b7b8fc340632d15cb3b26a57915ebea84f37d03e
static void rtsp_send_cmd(AVFormatContext *s, const char *cmd, RTSPHeader *reply, unsigned char **content_ptr) { RTSPState *rt = s->priv_data; char buf[4096], buf1[1024], *q; unsigned char ch; const char *p; int content_length, line_count...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, const char *VAR_1, RTSPHeader *VAR_2, unsigned char **VAR_3) { RTSPState *rt = VAR_0->priv_data; char VAR_4[4096], VAR_5[1024], *VAR_6; unsigned char VAR_7; const char *VAR_8; int VAR_9, VAR_10; ...
[ "static void FUNC_0(AVFormatContext *VAR_0,\nconst char *VAR_1, RTSPHeader *VAR_2,\nunsigned char **VAR_3)\n{", "RTSPState *rt = VAR_0->priv_data;", "char VAR_4[4096], VAR_5[1024], *VAR_6;", "unsigned char VAR_7;", "const char *VAR_8;", "int VAR_9, VAR_10;", "unsigned char *VAR_11 = NULL;", "memset(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [...
12,042
static void hb_regs_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { uint32_t *regs = opaque; if (offset == 0xf00) { if (value == 1 || value == 2) { qemu_system_reset_request(); } else if (value == 3) { qe...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void hb_regs_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { uint32_t *regs = opaque; if (offset == 0xf00) { if (value == 1 || value == 2) { qemu_system_reset_request(); } else if (value == 3) { qe...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { uint32_t *regs = VAR_0; if (VAR_1 == 0xf00) { if (VAR_2 == 1 || VAR_2 == 2) { qemu_system_reset_request(); } else if (VAR_2 == 3) { qemu_system_...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "uint32_t *regs = VAR_0;", "if (VAR_1 == 0xf00) {", "if (VAR_2 == 1 || VAR_2 == 2) {", "qemu_system_reset_request();", "} else if (VAR_2 == 3) {", "qemu_system_shutdown_request();", "}", "}", "regs[VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
12,043
static int print_size(DeviceState *dev, Property *prop, char *dest, size_t len) { uint64_t *ptr = qdev_get_prop_ptr(dev, prop); char suffixes[] = {'T', 'G', 'M', 'K', 'B'}; int i = 0; uint64_t div; for (div = 1ULL << 40; !(*ptr / div) ; div >>= 10) { i++; } return snprintf...
false
qemu
1197cbb9eda1dc82e2fa1815ca62bc3de158353e
static int print_size(DeviceState *dev, Property *prop, char *dest, size_t len) { uint64_t *ptr = qdev_get_prop_ptr(dev, prop); char suffixes[] = {'T', 'G', 'M', 'K', 'B'}; int i = 0; uint64_t div; for (div = 1ULL << 40; !(*ptr / div) ; div >>= 10) { i++; } return snprintf...
{ "code": [], "line_no": [] }
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3) { uint64_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1); char VAR_4[] = {'T', 'G', 'M', 'K', 'B'}; int VAR_5 = 0; uint64_t div; for (div = 1ULL << 40; !(*ptr / div) ; div >>= 10) { VAR_5++; } retur...
[ "static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3)\n{", "uint64_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1);", "char VAR_4[] = {'T', 'G', 'M', 'K', 'B'};", "int VAR_5 = 0;", "uint64_t div;", "for (div = 1ULL << 40; !(*ptr / div) ; div >>= 10) {", "VAR_5++;", "}", "return...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
12,044
float64 HELPER(sub_cmp_f64)(CPUState *env, float64 a, float64 b) { /* ??? This may incorrectly raise exceptions. */ /* ??? Should flush denormals to zero. */ float64 res; res = float64_sub(a, b, &env->fp_status); if (float64_is_nan(res)) { /* +/-inf compares equal against itself, bu...
false
qemu
185698715dfb18c82ad2a5dbc169908602d43e81
float64 HELPER(sub_cmp_f64)(CPUState *env, float64 a, float64 b) { float64 res; res = float64_sub(a, b, &env->fp_status); if (float64_is_nan(res)) { if (!float64_is_nan(a) && !float64_is_nan(b)) { res = float64_zero; if (float64_lt_qu...
{ "code": [], "line_no": [] }
float64 FUNC_0(sub_cmp_f64)(CPUState *env, float64 a, float64 b) { float64 res; res = float64_sub(a, b, &env->fp_status); if (float64_is_nan(res)) { if (!float64_is_nan(a) && !float64_is_nan(b)) { res = float64_zero; if (float64_lt_qu...
[ "float64 FUNC_0(sub_cmp_f64)(CPUState *env, float64 a, float64 b)\n{", "float64 res;", "res = float64_sub(a, b, &env->fp_status);", "if (float64_is_nan(res)) {", "if (!float64_is_nan(a)\n&& !float64_is_nan(b)) {", "res = float64_zero;", "if (float64_lt_quiet(a, res, &env->fp_status))\nres = float64_chs(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
12,045
static void trim_aio_cancel(BlockAIOCB *acb) { TrimAIOCB *iocb = container_of(acb, TrimAIOCB, common); /* Exit the loop so ide_issue_trim_cb will not continue */ iocb->j = iocb->qiov->niov - 1; iocb->i = (iocb->qiov->iov[iocb->j].iov_len / 8) - 1; iocb->ret = -ECANCELED; if (iocb->...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void trim_aio_cancel(BlockAIOCB *acb) { TrimAIOCB *iocb = container_of(acb, TrimAIOCB, common); iocb->j = iocb->qiov->niov - 1; iocb->i = (iocb->qiov->iov[iocb->j].iov_len / 8) - 1; iocb->ret = -ECANCELED; if (iocb->aiocb) { bdrv_aio_cancel_async(iocb->aiocb); ...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockAIOCB *VAR_0) { TrimAIOCB *iocb = container_of(VAR_0, TrimAIOCB, common); iocb->j = iocb->qiov->niov - 1; iocb->i = (iocb->qiov->iov[iocb->j].iov_len / 8) - 1; iocb->ret = -ECANCELED; if (iocb->aiocb) { bdrv_aio_cancel_async(iocb->aiocb); i...
[ "static void FUNC_0(BlockAIOCB *VAR_0)\n{", "TrimAIOCB *iocb = container_of(VAR_0, TrimAIOCB, common);", "iocb->j = iocb->qiov->niov - 1;", "iocb->i = (iocb->qiov->iov[iocb->j].iov_len / 8) - 1;", "iocb->ret = -ECANCELED;", "if (iocb->aiocb) {", "bdrv_aio_cancel_async(iocb->aiocb);", "iocb->aiocb = NU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
12,046
static uint64_t cadence_ttc_read(void *opaque, target_phys_addr_t offset, unsigned size) { uint32_t ret = cadence_ttc_read_imp(opaque, offset); DB_PRINT("addr: %08x data: %08x\n", offset, ret); return ret; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t cadence_ttc_read(void *opaque, target_phys_addr_t offset, unsigned size) { uint32_t ret = cadence_ttc_read_imp(opaque, offset); DB_PRINT("addr: %08x data: %08x\n", offset, ret); return ret; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset, unsigned size) { uint32_t ret = cadence_ttc_read_imp(opaque, offset); DB_PRINT("addr: %08x data: %08x\n", offset, ret); return ret; }
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{", "uint32_t ret = cadence_ttc_read_imp(opaque, offset);", "DB_PRINT(\"addr: %08x data: %08x\\n\", offset, ret);", "return ret;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
12,047
static void scsi_do_read(void *opaque, int ret) { SCSIDiskReq *r = opaque; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); uint32_t n; if (r->req.aiocb != NULL) { r->req.aiocb = NULL; bdrv_acct_done(s->qdev.conf.bs, &r->acct); } if (ret < 0) { ...
false
qemu
0c92e0e6b64c9061f7365a2712b9055ea35b52f9
static void scsi_do_read(void *opaque, int ret) { SCSIDiskReq *r = opaque; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); uint32_t n; if (r->req.aiocb != NULL) { r->req.aiocb = NULL; bdrv_acct_done(s->qdev.conf.bs, &r->acct); } if (ret < 0) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1) { SCSIDiskReq *r = VAR_0; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); uint32_t n; if (r->req.aiocb != NULL) { r->req.aiocb = NULL; bdrv_acct_done(s->qdev.conf.bs, &r->acct); } if (VAR_1 < 0) { if ...
[ "static void FUNC_0(void *VAR_0, int VAR_1)\n{", "SCSIDiskReq *r = VAR_0;", "SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);", "uint32_t n;", "if (r->req.aiocb != NULL) {", "r->req.aiocb = NULL;", "bdrv_acct_done(s->qdev.conf.bs, &r->acct);", "}", "if (VAR_1 < 0) {", "if (scsi_handl...
[ 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ...
12,048
void *etraxfs_dmac_init(CPUState *env, target_phys_addr_t base, int nr_channels) { struct fs_dma_ctrl *ctrl = NULL; int i; ctrl = qemu_mallocz(sizeof *ctrl); if (!ctrl) return NULL; ctrl->base = base; ctrl->env = env; ctrl->nr_channels = nr_channels; ctrl->channels = qemu_mallocz(sizeof ctr...
false
qemu
492c30af2567a59413c064f88eb81e1691865195
void *etraxfs_dmac_init(CPUState *env, target_phys_addr_t base, int nr_channels) { struct fs_dma_ctrl *ctrl = NULL; int i; ctrl = qemu_mallocz(sizeof *ctrl); if (!ctrl) return NULL; ctrl->base = base; ctrl->env = env; ctrl->nr_channels = nr_channels; ctrl->channels = qemu_mallocz(sizeof ctr...
{ "code": [], "line_no": [] }
void *FUNC_0(CPUState *VAR_0, target_phys_addr_t VAR_1, int VAR_2) { struct fs_dma_ctrl *VAR_3 = NULL; int VAR_4; VAR_3 = qemu_mallocz(sizeof *VAR_3); if (!VAR_3) return NULL; VAR_3->VAR_1 = VAR_1; VAR_3->VAR_0 = VAR_0; VAR_3->VAR_2 = VAR_2; VAR_3->channels = qemu_mallocz(sizeof VAR_3->chan...
[ "void *FUNC_0(CPUState *VAR_0,\ntarget_phys_addr_t VAR_1, int VAR_2)\n{", "struct fs_dma_ctrl *VAR_3 = NULL;", "int VAR_4;", "VAR_3 = qemu_mallocz(sizeof *VAR_3);", "if (!VAR_3)\nreturn NULL;", "VAR_3->VAR_1 = VAR_1;", "VAR_3->VAR_0 = VAR_0;", "VAR_3->VAR_2 = VAR_2;", "VAR_3->channels = qemu_mallocz...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39, 41, 43, 45 ], [ 47, 49, 51 ], [ 53 ], [ 59 ...
12,050
void lm4549_write(lm4549_state *s, target_phys_addr_t offset, uint32_t value) { uint16_t *regfile = s->regfile; assert(offset < 128); DPRINTF("write [0x%02x] = 0x%04x\n", offset, value); switch (offset) { case LM4549_Reset: lm4549_reset(s); break; ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void lm4549_write(lm4549_state *s, target_phys_addr_t offset, uint32_t value) { uint16_t *regfile = s->regfile; assert(offset < 128); DPRINTF("write [0x%02x] = 0x%04x\n", offset, value); switch (offset) { case LM4549_Reset: lm4549_reset(s); break; ...
{ "code": [], "line_no": [] }
void FUNC_0(lm4549_state *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { uint16_t *regfile = VAR_0->regfile; assert(VAR_1 < 128); DPRINTF("write [0x%02x] = 0x%04x\n", VAR_1, VAR_2); switch (VAR_1) { case LM4549_Reset: lm4549_reset(VAR_0); break; ...
[ "void FUNC_0(lm4549_state *VAR_0,\ntarget_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "uint16_t *regfile = VAR_0->regfile;", "assert(VAR_1 < 128);", "DPRINTF(\"write [0x%02x] = 0x%04x\\n\", VAR_1, VAR_2);", "switch (VAR_1) {", "case LM4549_Reset:\nlm4549_reset(VAR_0);", "break;", "case LM4549_PCM_Front_DA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51, 53, 55, 57, 59, 61, 63...
12,051
static void gmc1_motion(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, uint8_t **ref_picture) { uint8_t *ptr; int offset, src_x, src_y, linesize, uvlinesize; int motion_x, motion_y; int emu=0; motion_x= s->sprite_offs...
false
FFmpeg
3969b4b861ce8152e3195e8f8c3437abd273b90a
static void gmc1_motion(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, uint8_t **ref_picture) { uint8_t *ptr; int offset, src_x, src_y, linesize, uvlinesize; int motion_x, motion_y; int emu=0; motion_x= s->sprite_offs...
{ "code": [], "line_no": [] }
static void FUNC_0(MpegEncContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3, uint8_t **VAR_4) { uint8_t *ptr; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11; int VAR_12=0; VAR_10= VAR_0->sprite_offset[0][0]; VAR_1...
[ "static void FUNC_0(MpegEncContext *VAR_0,\nuint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3,\nuint8_t **VAR_4)\n{", "uint8_t *ptr;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11;", "int VAR_12=0;", "VAR_10= VAR_0->sprite_offset[0][0];", "VAR_11= VAR_0->sprite_offset[0][1];", "VAR_6 = V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 51 ...
12,052
static void mpcore_scu_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { mpcore_priv_state *s = (mpcore_priv_state *)opaque; /* SCU */ switch (offset) { case 0: /* Control register. */ s->scu_control = value & 1; break; ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void mpcore_scu_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { mpcore_priv_state *s = (mpcore_priv_state *)opaque; switch (offset) { case 0: s->scu_control = value & 1; break; case 0x0c: ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { mpcore_priv_state *s = (mpcore_priv_state *)VAR_0; switch (VAR_1) { case 0: s->scu_control = VAR_2 & 1; break; case 0x0c: break; ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "mpcore_priv_state *s = (mpcore_priv_state *)VAR_0;", "switch (VAR_1) {", "case 0:\ns->scu_control = VAR_2 & 1;", "break;", "case 0x0c:\nbreak;", "default:\nhw_error(\"mpcore_priv_read: Bad VAR_1 %x\\n\", (i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19, 23 ], [ 25, 27 ], [ 29 ], [ 31 ] ]
12,054
static void gen_imull(TCGv a, TCGv b) { TCGv tmp1 = tcg_temp_new(TCG_TYPE_I64); TCGv tmp2 = tcg_temp_new(TCG_TYPE_I64); tcg_gen_ext_i32_i64(tmp1, a); tcg_gen_ext_i32_i64(tmp2, b); tcg_gen_mul_i64(tmp1, tmp1, tmp2); tcg_gen_trunc_i64_i32(a, tmp1); tcg_gen_shri_i64(tmp1, tmp1, 32); ...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static void gen_imull(TCGv a, TCGv b) { TCGv tmp1 = tcg_temp_new(TCG_TYPE_I64); TCGv tmp2 = tcg_temp_new(TCG_TYPE_I64); tcg_gen_ext_i32_i64(tmp1, a); tcg_gen_ext_i32_i64(tmp2, b); tcg_gen_mul_i64(tmp1, tmp1, tmp2); tcg_gen_trunc_i64_i32(a, tmp1); tcg_gen_shri_i64(tmp1, tmp1, 32); ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGv VAR_0, TCGv VAR_1) { TCGv tmp1 = tcg_temp_new(TCG_TYPE_I64); TCGv tmp2 = tcg_temp_new(TCG_TYPE_I64); tcg_gen_ext_i32_i64(tmp1, VAR_0); tcg_gen_ext_i32_i64(tmp2, VAR_1); tcg_gen_mul_i64(tmp1, tmp1, tmp2); tcg_gen_trunc_i64_i32(VAR_0, tmp1); tcg_gen_shri_i64(t...
[ "static void FUNC_0(TCGv VAR_0, TCGv VAR_1)\n{", "TCGv tmp1 = tcg_temp_new(TCG_TYPE_I64);", "TCGv tmp2 = tcg_temp_new(TCG_TYPE_I64);", "tcg_gen_ext_i32_i64(tmp1, VAR_0);", "tcg_gen_ext_i32_i64(tmp2, VAR_1);", "tcg_gen_mul_i64(tmp1, tmp1, tmp2);", "tcg_gen_trunc_i64_i32(VAR_0, tmp1);", "tcg_gen_shri_i6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
12,057
void ppc40x_chip_reset (CPUState *env) { target_ulong dbsr; printf("Reset PowerPC chip\n"); cpu_ppc_reset(env); /* XXX: TODO reset all internal peripherals */ dbsr = env->spr[SPR_40x_DBSR]; dbsr &= ~0x00000300; dbsr |= 0x00000200; env->spr[SPR_40x_DBSR] = dbsr; cpu_loop_e...
true
qemu
ef397e88e96d4a798bd190bcd0c43865c3725ae2
void ppc40x_chip_reset (CPUState *env) { target_ulong dbsr; printf("Reset PowerPC chip\n"); cpu_ppc_reset(env); dbsr = env->spr[SPR_40x_DBSR]; dbsr &= ~0x00000300; dbsr |= 0x00000200; env->spr[SPR_40x_DBSR] = dbsr; cpu_loop_exit(); }
{ "code": [ " cpu_loop_exit();", " cpu_loop_exit();" ], "line_no": [ 23, 23 ] }
void FUNC_0 (CPUState *VAR_0) { target_ulong dbsr; printf("Reset PowerPC chip\n"); cpu_ppc_reset(VAR_0); dbsr = VAR_0->spr[SPR_40x_DBSR]; dbsr &= ~0x00000300; dbsr |= 0x00000200; VAR_0->spr[SPR_40x_DBSR] = dbsr; cpu_loop_exit(); }
[ "void FUNC_0 (CPUState *VAR_0)\n{", "target_ulong dbsr;", "printf(\"Reset PowerPC chip\\n\");", "cpu_ppc_reset(VAR_0);", "dbsr = VAR_0->spr[SPR_40x_DBSR];", "dbsr &= ~0x00000300;", "dbsr |= 0x00000200;", "VAR_0->spr[SPR_40x_DBSR] = dbsr;", "cpu_loop_exit();", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
12,058
static int thread_get_buffer_internal(AVCodecContext *avctx, ThreadFrame *f, int flags) { PerThreadContext *p = avctx->internal->thread_ctx; int err; f->owner = avctx; ff_init_buffer_info(avctx, f->f); if (!(avctx->active_thread_type & FF_THREAD_FRAME)) return ff_get_buffer(avct...
true
FFmpeg
083300bea935d125b83f60d7030f78a7ffb0f3df
static int thread_get_buffer_internal(AVCodecContext *avctx, ThreadFrame *f, int flags) { PerThreadContext *p = avctx->internal->thread_ctx; int err; f->owner = avctx; ff_init_buffer_info(avctx, f->f); if (!(avctx->active_thread_type & FF_THREAD_FRAME)) return ff_get_buffer(avct...
{ "code": [ " f->owner = avctx;", " f->owner = avctx;" ], "line_no": [ 11, 11 ] }
static int FUNC_0(AVCodecContext *VAR_0, ThreadFrame *VAR_1, int VAR_2) { PerThreadContext *p = VAR_0->internal->thread_ctx; int VAR_3; VAR_1->owner = VAR_0; ff_init_buffer_info(VAR_0, VAR_1->VAR_1); if (!(VAR_0->active_thread_type & FF_THREAD_FRAME)) return ff_get_buffer(VAR_0,...
[ "static int FUNC_0(AVCodecContext *VAR_0, ThreadFrame *VAR_1, int VAR_2)\n{", "PerThreadContext *p = VAR_0->internal->thread_ctx;", "int VAR_3;", "VAR_1->owner = VAR_0;", "ff_init_buffer_info(VAR_0, VAR_1->VAR_1);", "if (!(VAR_0->active_thread_type & FF_THREAD_FRAME))\nreturn ff_get_buffer(VAR_0, VAR_1->V...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55...
12,059
static void gen_spr_power5p_lpar(CPUPPCState *env) { #if !defined(CONFIG_USER_ONLY) /* Logical partitionning */ spr_register_kvm(env, SPR_LPCR, "LPCR", &spr_read_generic, &spr_write_lpcr, KVM_REG_PPC_LPCR, LPCR_LPES0 | LPCR_LPES1); #endif }
true
qemu
4b236b621bf090509c4a0be372edfd31d13b289a
static void gen_spr_power5p_lpar(CPUPPCState *env) { #if !defined(CONFIG_USER_ONLY) spr_register_kvm(env, SPR_LPCR, "LPCR", &spr_read_generic, &spr_write_lpcr, KVM_REG_PPC_LPCR, LPCR_LPES0 | LPCR_LPES1); #endif }
{ "code": [], "line_no": [] }
static void FUNC_0(CPUPPCState *VAR_0) { #if !defined(CONFIG_USER_ONLY) spr_register_kvm(VAR_0, SPR_LPCR, "LPCR", &spr_read_generic, &spr_write_lpcr, KVM_REG_PPC_LPCR, LPCR_LPES0 | LPCR_LPES1); #endif }
[ "static void FUNC_0(CPUPPCState *VAR_0)\n{", "#if !defined(CONFIG_USER_ONLY)\nspr_register_kvm(VAR_0, SPR_LPCR, \"LPCR\",\n&spr_read_generic, &spr_write_lpcr,\nKVM_REG_PPC_LPCR, LPCR_LPES0 | LPCR_LPES1);", "#endif\n}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 9, 12, 14 ], [ 20, 22 ] ]
12,060
int inet_connect_opts(QemuOpts *opts, bool block, bool *in_progress, Error **errp) { struct addrinfo *res, *e; int sock = -1; res = inet_parse_connect_opts(opts, errp); if (!res) { return -1; } if (in_progress) { *in_progress = false; } ...
true
qemu
233aa5c2d1cf4655ffe335025a68cf5454f87dad
int inet_connect_opts(QemuOpts *opts, bool block, bool *in_progress, Error **errp) { struct addrinfo *res, *e; int sock = -1; res = inet_parse_connect_opts(opts, errp); if (!res) { return -1; } if (in_progress) { *in_progress = false; } ...
{ "code": [ " if (in_progress) {", " if (in_progress) {", " *in_progress = false;", "int inet_connect_opts(QemuOpts *opts, bool block, bool *in_progress,", " Error **errp)", " if (in_progress) {", " *in_progress = false;", " sock = ine...
int FUNC_0(QemuOpts *VAR_0, bool VAR_1, bool *VAR_2, Error **VAR_3) { struct addrinfo *VAR_4, *VAR_5; int VAR_6 = -1; VAR_4 = inet_parse_connect_opts(VAR_0, VAR_3); if (!VAR_4) { return -1; } if (VAR_2) { *VAR_2 = false; } for (VAR_...
[ "int FUNC_0(QemuOpts *VAR_0, bool VAR_1, bool *VAR_2,\nError **VAR_3)\n{", "struct addrinfo *VAR_4, *VAR_5;", "int VAR_6 = -1;", "VAR_4 = inet_parse_connect_opts(VAR_0, VAR_3);", "if (!VAR_4) {", "return -1;", "}", "if (VAR_2) {", "*VAR_2 = false;", "}", "for (VAR_5 = VAR_4; VAR_5 != NULL; VAR_5...
[ 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
12,061
static void via_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = vt82c686b_initfn; k->config_write = vt82c686b_write_config; k->vendor_id = PCI_VENDOR_ID_VIA; k->device_id = PCI_DEVICE_ID_VIA_ISA_B...
true
qemu
efec3dd631d94160288392721a5f9c39e50fb2bc
static void via_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = vt82c686b_initfn; k->config_write = vt82c686b_write_config; k->vendor_id = PCI_VENDOR_ID_VIA; k->device_id = PCI_DEVICE_ID_VIA_ISA_B...
{ "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); PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0); k->init = vt82c686b_initfn; k->config_write = vt82c686b_write_config; k->vendor_id = PCI_VENDOR_ID_VIA; k->device_id = PCI_DEVICE_ID_VIA_ISA_BRIDGE; ...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0);", "k->init = vt82c686b_initfn;", "k->config_write = vt82c686b_write_config;", "k->vendor_id = PCI_VENDOR_ID_VIA;", "k->device_id = PCI_DEVICE_ID_VIA_ISA_BRIDG...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
12,062
static int vhost_user_reset_device(struct vhost_dev *dev) { VhostUserMsg msg = { .request = VHOST_USER_RESET_OWNER, .flags = VHOST_USER_VERSION, }; vhost_user_write(dev, &msg, NULL, 0); return 0; }
true
qemu
c4843a45e3d4f3698b214275ab5e78cdb6a3d212
static int vhost_user_reset_device(struct vhost_dev *dev) { VhostUserMsg msg = { .request = VHOST_USER_RESET_OWNER, .flags = VHOST_USER_VERSION, }; vhost_user_write(dev, &msg, NULL, 0); return 0; }
{ "code": [ " vhost_user_write(dev, &msg, NULL, 0);", " vhost_user_write(dev, &msg, NULL, 0);", " vhost_user_write(dev, &msg, NULL, 0);", " vhost_user_write(dev, &msg, NULL, 0);", " vhost_user_write(dev, &msg, NULL, 0);", " vhost_user_write(dev, &msg, NULL, 0);", " vho...
static int FUNC_0(struct vhost_dev *VAR_0) { VhostUserMsg msg = { .request = VHOST_USER_RESET_OWNER, .flags = VHOST_USER_VERSION, }; vhost_user_write(VAR_0, &msg, NULL, 0); return 0; }
[ "static int FUNC_0(struct vhost_dev *VAR_0)\n{", "VhostUserMsg msg = {", ".request = VHOST_USER_RESET_OWNER,\n.flags = VHOST_USER_VERSION,\n};", "vhost_user_write(VAR_0, &msg, NULL, 0);", "return 0;", "}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11 ], [ 15 ], [ 19 ], [ 21 ] ]
12,063
static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size, int *golden_frame) { VP56RangeCoder *c = &s->c; int rows, cols; ff_vp56_init_range_decoder(&s->c, buf, buf_size); s->framep[VP56_FRAME_CURRENT]->key_frame = !vp56_rac_get(c); vp56_rac_g...
true
FFmpeg
8bc396fc0e8769a056375c1c211f389ce0e3ecc5
static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size, int *golden_frame) { VP56RangeCoder *c = &s->c; int rows, cols; ff_vp56_init_range_decoder(&s->c, buf, buf_size); s->framep[VP56_FRAME_CURRENT]->key_frame = !vp56_rac_get(c); vp56_rac_g...
{ "code": [], "line_no": [] }
static int FUNC_0(VP56Context *VAR_0, const uint8_t *VAR_1, int VAR_2, int *VAR_3) { VP56RangeCoder *c = &VAR_0->c; int VAR_4, VAR_5; ff_vp56_init_range_decoder(&VAR_0->c, VAR_1, VAR_2); VAR_0->framep[VP56_FRAME_CURRENT]->key_frame = !vp56_rac_get(c); vp56_rac_ge...
[ "static int FUNC_0(VP56Context *VAR_0, const uint8_t *VAR_1, int VAR_2,\nint *VAR_3)\n{", "VP56RangeCoder *c = &VAR_0->c;", "int VAR_4, VAR_5;", "ff_vp56_init_range_decoder(&VAR_0->c, VAR_1, VAR_2);", "VAR_0->framep[VP56_FRAME_CURRENT]->key_frame = !vp56_rac_get(c);", "vp56_rac_get(c);", "ff_vp56_init_d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 30 ], [ 32 ], [ 34 ], [ 38 ], [ 40 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55,...
12,064
static void spapr_finalize_fdt(sPAPRMachineState *spapr, hwaddr fdt_addr, hwaddr rtas_addr, hwaddr rtas_size) { MachineState *machine = MACHINE(qdev_get_machine()); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS...
true
qemu
3c0c47e3464f3c54bd3f1cc6d4da2cbf7465e295
static void spapr_finalize_fdt(sPAPRMachineState *spapr, hwaddr fdt_addr, hwaddr rtas_addr, hwaddr rtas_size) { MachineState *machine = MACHINE(qdev_get_machine()); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS...
{ "code": [ " if (smc->dr_cpu_enabled) {", " if (smc->dr_cpu_enabled) {", " if (smc->dr_cpu_enabled) {", " sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(machine);", " if (smc->dr_cpu_enabled) {" ], "line_no": [ 177, 177, 177, 13, 177 ] }
static void FUNC_0(sPAPRMachineState *VAR_0, hwaddr VAR_1, hwaddr VAR_2, hwaddr VAR_3) { MachineState *machine = MACHINE(qdev_get_machine()); sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(machine); const c...
[ "static void FUNC_0(sPAPRMachineState *VAR_0,\nhwaddr VAR_1,\nhwaddr VAR_2,\nhwaddr VAR_3)\n{", "MachineState *machine = MACHINE(qdev_get_machine());", "sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(machine);", "const char *VAR_4 = machine->boot_order;", "int VAR_5, VAR_6;", "size_t cb = 0;", "char *...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [...
12,065
static av_cold int avs_decode_init(AVCodecContext * avctx) { avctx->pix_fmt = PIX_FMT_PAL8; return 0; }
true
FFmpeg
85f477935cd6b34e6ec2716b20e15ce748277a89
static av_cold int avs_decode_init(AVCodecContext * avctx) { avctx->pix_fmt = PIX_FMT_PAL8; return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext * avctx) { avctx->pix_fmt = PIX_FMT_PAL8; return 0; }
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "avctx->pix_fmt = PIX_FMT_PAL8;", "return 0;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 8 ], [ 10 ] ]
12,066
CharDriverState *qemu_chr_alloc(ChardevCommon *backend, Error **errp) { CharDriverState *chr = g_malloc0(sizeof(CharDriverState)); qemu_mutex_init(&chr->chr_write_lock); chr->mux_idx = -1; if (backend->has_logfile) { int flags = O_WRONLY | O_CREAT; if (backend->has_logappend && ...
true
qemu
692d88b4085559f1254d0e04d64a849ce8ab5932
CharDriverState *qemu_chr_alloc(ChardevCommon *backend, Error **errp) { CharDriverState *chr = g_malloc0(sizeof(CharDriverState)); qemu_mutex_init(&chr->chr_write_lock); chr->mux_idx = -1; if (backend->has_logfile) { int flags = O_WRONLY | O_CREAT; if (backend->has_logappend && ...
{ "code": [ " chr->mux_idx = -1;" ], "line_no": [ 11 ] }
CharDriverState *FUNC_0(ChardevCommon *backend, Error **errp) { CharDriverState *chr = g_malloc0(sizeof(CharDriverState)); qemu_mutex_init(&chr->chr_write_lock); chr->mux_idx = -1; if (backend->has_logfile) { int VAR_0 = O_WRONLY | O_CREAT; if (backend->has_logappend && ...
[ "CharDriverState *FUNC_0(ChardevCommon *backend, Error **errp)\n{", "CharDriverState *chr = g_malloc0(sizeof(CharDriverState));", "qemu_mutex_init(&chr->chr_write_lock);", "chr->mux_idx = -1;", "if (backend->has_logfile) {", "int VAR_0 = O_WRONLY | O_CREAT;", "if (backend->has_logappend &&\nbackend->log...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...
12,067
static int read_block(ALSDecContext *ctx, ALSBlockData *bd) { GetBitContext *gb = &ctx->gb; *bd->shift_lsbs = 0; // read block type flag and read the samples accordingly if (get_bits1(gb)) { if (read_var_block_data(ctx, bd)) return -1; } else { read_cons...
true
FFmpeg
ca488ad480360dfafcb5766f7bfbb567a0638979
static int read_block(ALSDecContext *ctx, ALSBlockData *bd) { GetBitContext *gb = &ctx->gb; *bd->shift_lsbs = 0; if (get_bits1(gb)) { if (read_var_block_data(ctx, bd)) return -1; } else { read_const_block_data(ctx, bd); } return 0; }
{ "code": [ " return -1;", " return -1;", " if (read_var_block_data(ctx, bd))", " return -1;", " return 0;", " return -1;", " return -1;", " return -1;" ], "line_no": [ 17, 17, 15, 17, 2...
static int FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1) { GetBitContext *gb = &VAR_0->gb; *VAR_1->shift_lsbs = 0; if (get_bits1(gb)) { if (read_var_block_data(VAR_0, VAR_1)) return -1; } else { read_const_block_data(VAR_0, VAR_1); } ret...
[ "static int FUNC_0(ALSDecContext *VAR_0, ALSBlockData *VAR_1)\n{", "GetBitContext *gb = &VAR_0->gb;", "*VAR_1->shift_lsbs = 0;", "if (get_bits1(gb)) {", "if (read_var_block_data(VAR_0, VAR_1))\nreturn -1;", "} else {", "read_const_block_data(VAR_0, VAR_1);", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
12,069
static bool get_phys_addr(CPUARMState *env, target_ulong address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *attrs, int *prot, target_ulong *page_size, uint32_t *fsr, ARMMMUFaultInfo *fi) ...
true
qemu
709e4407add7acacc593cb6cdac026558c9a8fb6
static bool get_phys_addr(CPUARMState *env, target_ulong address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *attrs, int *prot, target_ulong *page_size, uint32_t *fsr, ARMMMUFaultInfo *fi) ...
{ "code": [ " access_type == 1 ? \"reading\" :", " (access_type == 2 ? \"writing\" : \"execute\")," ], "line_no": [ 143, 145 ] }
static bool FUNC_0(CPUARMState *env, target_ulong address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *attrs, int *prot, target_ulong *page_size, uint32_t *fsr, ARMMMUFaultInfo *fi) { ...
[ "static bool FUNC_0(CPUARMState *env, target_ulong address,\nint access_type, ARMMMUIdx mmu_idx,\nhwaddr *phys_ptr, MemTxAttrs *attrs, int *prot,\ntarget_ulong *page_size, uint32_t *fsr,\nARMMMUFaultInfo *fi)\n{", "if (mmu_idx == ARMMMUIdx_S12NSE0 || mmu_idx == ARMMMUIdx_S12NSE1) {", "if (arm_feature(env, ARM_F...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33, 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53, 55, 57 ], [ 59 ], [ 63 ], [ 65 ], [ 67 ...
12,070
bool qpci_msix_masked(QPCIDevice *dev, uint16_t entry) { uint8_t addr; uint16_t val; void *vector_addr = dev->msix_table + (entry * PCI_MSIX_ENTRY_SIZE); g_assert(dev->msix_enabled); addr = qpci_find_capability(dev, PCI_CAP_ID_MSIX); g_assert_cmphex(addr, !=, 0); val = qpci_config_...
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
bool qpci_msix_masked(QPCIDevice *dev, uint16_t entry) { uint8_t addr; uint16_t val; void *vector_addr = dev->msix_table + (entry * PCI_MSIX_ENTRY_SIZE); g_assert(dev->msix_enabled); addr = qpci_find_capability(dev, PCI_CAP_ID_MSIX); g_assert_cmphex(addr, !=, 0); val = qpci_config_...
{ "code": [ " void *vector_addr = dev->msix_table + (entry * PCI_MSIX_ENTRY_SIZE);", " return (qpci_io_readl(dev, vector_addr + PCI_MSIX_ENTRY_VECTOR_CTRL)", " & PCI_MSIX_ENTRY_CTRL_MASKBIT) != 0;" ], "line_no": [ 9, 29, 31 ] }
bool FUNC_0(QPCIDevice *dev, uint16_t entry) { uint8_t addr; uint16_t val; void *VAR_0 = dev->msix_table + (entry * PCI_MSIX_ENTRY_SIZE); g_assert(dev->msix_enabled); addr = qpci_find_capability(dev, PCI_CAP_ID_MSIX); g_assert_cmphex(addr, !=, 0); val = qpci_config_readw(dev, addr ...
[ "bool FUNC_0(QPCIDevice *dev, uint16_t entry)\n{", "uint8_t addr;", "uint16_t val;", "void *VAR_0 = dev->msix_table + (entry * PCI_MSIX_ENTRY_SIZE);", "g_assert(dev->msix_enabled);", "addr = qpci_find_capability(dev, PCI_CAP_ID_MSIX);", "g_assert_cmphex(addr, !=, 0);", "val = qpci_config_readw(dev, ad...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ] ]
12,071
static MegasasCmd *megasas_enqueue_frame(MegasasState *s, hwaddr frame, uint64_t context, int count) { PCIDevice *pcid = PCI_DEVICE(s); MegasasCmd *cmd = NULL; int frame_size = MFI_FRAME_SIZE * 16; hwaddr frame_size_p = frame_size; cmd = megasas_next_frame(s, frame); /* All frames ...
true
qemu
6df5718bd3ec56225c44cf96440c723c1b611b87
static MegasasCmd *megasas_enqueue_frame(MegasasState *s, hwaddr frame, uint64_t context, int count) { PCIDevice *pcid = PCI_DEVICE(s); MegasasCmd *cmd = NULL; int frame_size = MFI_FRAME_SIZE * 16; hwaddr frame_size_p = frame_size; cmd = megasas_next_frame(s, frame); if (!cmd...
{ "code": [ " MegasasCmd *cmd = NULL;", " if (!cmd) {", " return cmd;", " cmd = megasas_next_frame(s, frame);", " if (!cmd) {", " if (!cmd->pa) {", " cmd->pa = frame;", " cmd->frame = pci_dma_map(pcid, frame, &frame_size_p, 0);", " if (frame_s...
static MegasasCmd *FUNC_0(MegasasState *s, hwaddr frame, uint64_t context, int count) { PCIDevice *pcid = PCI_DEVICE(s); MegasasCmd *cmd = NULL; int VAR_0 = MFI_FRAME_SIZE * 16; hwaddr frame_size_p = VAR_0; cmd = megasas_next_frame(s, frame); if (!cmd) { return NULL;...
[ "static MegasasCmd *FUNC_0(MegasasState *s,\nhwaddr frame, uint64_t context, int count)\n{", "PCIDevice *pcid = PCI_DEVICE(s);", "MegasasCmd *cmd = NULL;", "int VAR_0 = MFI_FRAME_SIZE * 16;", "hwaddr frame_size_p = VAR_0;", "cmd = megasas_next_frame(s, frame);", "if (!cmd) {", "return NULL;", "}", ...
[ 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
12,072
static int img_commit(int argc, char **argv) { int c, ret, flags; const char *filename, *fmt, *cache, *base; BlockBackend *blk; BlockDriverState *bs, *base_bs; BlockJob *job; bool progress = false, quiet = false, drop = false; bool writethrough; Error *local_err = NULL; Com...
true
qemu
c919297379e9980c2bcc4d2053addbc1fd6d762b
static int img_commit(int argc, char **argv) { int c, ret, flags; const char *filename, *fmt, *cache, *base; BlockBackend *blk; BlockDriverState *bs, *base_bs; BlockJob *job; bool progress = false, quiet = false, drop = false; bool writethrough; Error *local_err = NULL; Com...
{ "code": [ " c = getopt_long(argc, argv, \"f:ht:b:dpq\",", " case 'h':", " case 'h':", " case 'h':" ], "line_no": [ 49, 63, 63, 63 ] }
static int FUNC_0(int VAR_0, char **VAR_1) { int VAR_2, VAR_3, VAR_4; const char *VAR_5, *VAR_6, *VAR_7, *VAR_8; BlockBackend *blk; BlockDriverState *bs, *base_bs; BlockJob *job; bool progress = false, quiet = false, drop = false; bool writethrough; Error *local_err = NULL; ...
[ "static int FUNC_0(int VAR_0, char **VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "const char *VAR_5, *VAR_6, *VAR_7, *VAR_8;", "BlockBackend *blk;", "BlockDriverState *bs, *base_bs;", "BlockJob *job;", "bool progress = false, quiet = false, drop = false;", "bool writethrough;", "Error *local_err = NULL;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
12,073
static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { WMACodecContext *s = avctx->priv_data; int i, total_gain, ret, error; s->block_len_bits= s->frame_len_bits; //required by non variable block len s->block...
true
FFmpeg
dccaad3bcdc5762141527cb7db7c87f34517f097
static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { WMACodecContext *s = avctx->priv_data; int i, total_gain, ret, error; s->block_len_bits= s->frame_len_bits; s->block_len = 1 << s->block_len_bits; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { WMACodecContext *s = VAR_0->priv_data; int VAR_10, VAR_5, VAR_6, VAR_7; s->block_len_bits= s->frame_len_bits; s->block_len = 1 << s->block_len_bits; apply_window_and...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "WMACodecContext *s = VAR_0->priv_data;", "int VAR_10, VAR_5, VAR_6, VAR_7;", "s->block_len_bits= s->frame_len_bits;", "s->block_len = 1 << s->block_len_bits;", "apply_window_and_mdct(VAR_0, VAR_2);", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45, 47 ], [ 51 ], [ 53 ], [ 55, 57 ], [...
12,074
static int ftp_passive_mode(FTPContext *s) { char *res = NULL, *start, *end; int i; const char *command = "PASV\r\n"; const int pasv_codes[] = {227, 501, 0}; /* 501 is incorrect code */ if (ftp_send_command(s, command, pasv_codes, &res) != 227 || !res) goto fail; start = NULL...
true
FFmpeg
7faafe606fb25e3c8b3091ea0565b01622c87dd2
static int ftp_passive_mode(FTPContext *s) { char *res = NULL, *start, *end; int i; const char *command = "PASV\r\n"; const int pasv_codes[] = {227, 501, 0}; if (ftp_send_command(s, command, pasv_codes, &res) != 227 || !res) goto fail; start = NULL; for (i = 0; i < strl...
{ "code": [ " char *res = NULL, *start, *end;", " start = NULL;", " for (i = 0; i < strlen(res); ++i) {" ], "line_no": [ 5, 21, 23 ] }
static int FUNC_0(FTPContext *VAR_0) { char *VAR_1 = NULL, *VAR_2, *VAR_3; int VAR_4; const char *VAR_5 = "PASV\r\n"; const int VAR_6[] = {227, 501, 0}; if (ftp_send_command(VAR_0, VAR_5, VAR_6, &VAR_1) != 227 || !VAR_1) goto fail; VAR_2 = NULL; for (VAR_4 = 0; VAR_4 < ...
[ "static int FUNC_0(FTPContext *VAR_0)\n{", "char *VAR_1 = NULL, *VAR_2, *VAR_3;", "int VAR_4;", "const char *VAR_5 = \"PASV\\r\\n\";", "const int VAR_6[] = {227, 501, 0};", "if (ftp_send_command(VAR_0, VAR_5, VAR_6, &VAR_1) != 227 || !VAR_1)\ngoto fail;", "VAR_2 = NULL;", "for (VAR_4 = 0; VAR_4 < strl...
[ 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 49 ], [ 51 ...
12,076
static int wavpack_decode_block(AVCodecContext *avctx, int block_no, void *data, int *data_size, const uint8_t *buf, int buf_size) { WavpackContext *wc = avctx->priv_data; WavpackFrameContext *s; void *samples = data; int samplecount...
true
FFmpeg
0aedab03405849962b469277afe047aa2c61a87f
static int wavpack_decode_block(AVCodecContext *avctx, int block_no, void *data, int *data_size, const uint8_t *buf, int buf_size) { WavpackContext *wc = avctx->priv_data; WavpackFrameContext *s; void *samples = data; int samplecount...
{ "code": [ " while(cnt--){", " while(cnt--){", " while(cnt--){" ], "line_no": [ 755, 755, 755 ] }
static int FUNC_0(AVCodecContext *VAR_0, int VAR_1, void *VAR_2, int *VAR_3, const uint8_t *VAR_4, int VAR_5) { WavpackContext *wc = VAR_0->priv_data; WavpackFrameContext *s; void *VAR_6 = VAR_2; int VAR_7; int VAR_8 = 0, VAR_9 ...
[ "static int FUNC_0(AVCodecContext *VAR_0, int VAR_1,\nvoid *VAR_2, int *VAR_3,\nconst uint8_t *VAR_4, int VAR_5)\n{", "WavpackContext *wc = VAR_0->priv_data;", "WavpackFrameContext *s;", "void *VAR_6 = VAR_2;", "int VAR_7;", "int VAR_8 = 0, VAR_9 = 0, VAR_10 = 0, VAR_11 = 0, VAR_12 = 0, VAR_13 = 0;", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
12,077
void qemu_send_packet(VLANClientState *vc, const uint8_t *buf, int size) { VLANState *vlan = vc->vlan; VLANPacket *packet; if (vc->link_down) return; #ifdef DEBUG_NET printf("vlan %d send:\n", vlan->id); hex_dump(stdout, buf, size); #endif if (vlan->delivering) { p...
true
qemu
c27ff60871aff588a35e51d1a90faed410993e55
void qemu_send_packet(VLANClientState *vc, const uint8_t *buf, int size) { VLANState *vlan = vc->vlan; VLANPacket *packet; if (vc->link_down) return; #ifdef DEBUG_NET printf("vlan %d send:\n", vlan->id); hex_dump(stdout, buf, size); #endif if (vlan->delivering) { p...
{ "code": [ " qemu_deliver_packet(packet->sender, packet->data, packet->size);" ], "line_no": [ 47 ] }
void FUNC_0(VLANClientState *VAR_0, const uint8_t *VAR_1, int VAR_2) { VLANState *vlan = VAR_0->vlan; VLANPacket *packet; if (VAR_0->link_down) return; #ifdef DEBUG_NET printf("vlan %d send:\n", vlan->id); hex_dump(stdout, VAR_1, VAR_2); #endif if (vlan->delivering) { ...
[ "void FUNC_0(VLANClientState *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "VLANState *vlan = VAR_0->vlan;", "VLANPacket *packet;", "if (VAR_0->link_down)\nreturn;", "#ifdef DEBUG_NET\nprintf(\"vlan %d send:\\n\", vlan->id);", "hex_dump(stdout, VAR_1, VAR_2);", "#endif\nif (vlan->delivering) {", "pack...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
12,078
static void test_bmdma_one_sector_short_prdt(void) { QPCIDevice *dev; void *bmdma_base, *ide_base; uint8_t status; /* Read 2 sectors but only give 1 sector in PRDT */ PrdtEntry prdt[] = { { .addr = 0, .size = cpu_to_le32(0x200 | PRDT_EOT), }, ...
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static void test_bmdma_one_sector_short_prdt(void) { QPCIDevice *dev; void *bmdma_base, *ide_base; uint8_t status; PrdtEntry prdt[] = { { .addr = 0, .size = cpu_to_le32(0x200 | PRDT_EOT), }, }; dev = get_pci_device(&bmdma_base, &ide_ba...
{ "code": [ " dev = get_pci_device(&bmdma_base, &ide_base);", " void *bmdma_base, *ide_base;", " dev = get_pci_device(&bmdma_base, &ide_base);", " assert_bit_clear(qpci_io_readb(dev, ide_base + reg_status), DF | ERR);", " assert_bit_clear(qpci_io_readb(dev, ide_base + reg_status), D...
static void FUNC_0(void) { QPCIDevice *dev; void *VAR_0, *VAR_1; uint8_t status; PrdtEntry prdt[] = { { .addr = 0, .size = cpu_to_le32(0x200 | PRDT_EOT), }, }; dev = get_pci_device(&VAR_0, &VAR_1); status = send_dma_reques...
[ "static void FUNC_0(void)\n{", "QPCIDevice *dev;", "void *VAR_0, *VAR_1;", "uint8_t status;", "PrdtEntry prdt[] = {", "{", ".addr = 0,\n.size = cpu_to_le32(0x200 | PRDT_EOT),\n},", "};", "dev = get_pci_device(&VAR_0, &VAR_1);", "status = send_dma_request(CMD_READ_DMA, 0, 2,\nprdt, ARRAY_SIZE(prdt)...
[ 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 29 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ] ]
12,080
static uint32_t regtype_to_ss(uint8_t type) { if (type & PCI_BASE_ADDRESS_MEM_TYPE_64) { return 3; } if (type == PCI_BASE_ADDRESS_SPACE_IO) { return 1; } return 2; }
true
qemu
4d8d5467cd6e324fb49ae97b9d5dcee3973d9a19
static uint32_t regtype_to_ss(uint8_t type) { if (type & PCI_BASE_ADDRESS_MEM_TYPE_64) { return 3; } if (type == PCI_BASE_ADDRESS_SPACE_IO) { return 1; } return 2; }
{ "code": [ "static uint32_t regtype_to_ss(uint8_t type)", " if (type & PCI_BASE_ADDRESS_MEM_TYPE_64) {", " return 3;", " if (type == PCI_BASE_ADDRESS_SPACE_IO) {", " return 1;", " return 2;" ], "line_no": [ 1, 5, 7, 11, 13, 17 ] }
static uint32_t FUNC_0(uint8_t type) { if (type & PCI_BASE_ADDRESS_MEM_TYPE_64) { return 3; } if (type == PCI_BASE_ADDRESS_SPACE_IO) { return 1; } return 2; }
[ "static uint32_t FUNC_0(uint8_t type)\n{", "if (type & PCI_BASE_ADDRESS_MEM_TYPE_64) {", "return 3;", "}", "if (type == PCI_BASE_ADDRESS_SPACE_IO) {", "return 1;", "}", "return 2;", "}" ]
[ 1, 1, 1, 0, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
12,081
static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) { ByteIOContext *pb = &s->pb; int nbits, len, frame_rate, tag, v; AVStream *st; if ((get_be32(pb) & 0xffffff00) != MKBETAG('F', 'W', 'S', 0)) return -EIO; get_le32(pb); /* skip rectangle size */ nbits =...
true
FFmpeg
747a0554ea8ad09404c1f5b80239ebd8d71b291e
static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) { ByteIOContext *pb = &s->pb; int nbits, len, frame_rate, tag, v; AVStream *st; if ((get_be32(pb) & 0xffffff00) != MKBETAG('F', 'W', 'S', 0)) return -EIO; get_le32(pb); nbits = get_byte(pb) >> 3; ...
{ "code": [ " ByteIOContext *pb = &s->pb;", " AVStream *st;", " fprintf(stderr, \"No streaming found in SWF\\n\");", " if (tag == TAG_STREAMHEAD) {", " get_le16(pb);", " st = av_new_stream(s, 0);", " if (!st)", " ...
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { ByteIOContext *pb = &VAR_0->pb; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; AVStream *st; if ((get_be32(pb) & 0xffffff00) != MKBETAG('F', 'W', 'S', 0)) return -EIO; get_le32(pb); VAR_2 = get_byte(pb) >> 3; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "ByteIOContext *pb = &VAR_0->pb;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;", "AVStream *st;", "if ((get_be32(pb) & 0xffffff00) != MKBETAG('F', 'W', 'S', 0))\nreturn -EIO;", "get_le32(pb);", "VAR_2 = get_byte(pb) >> 3;", "VAR_3 ...
[ 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [...