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
23,492
void parse_option_size(const char *name, const char *value, uint64_t *ret, Error **errp) { uint64_t size; int err; err = qemu_strtosz(value, NULL, &size); if (err == -ERANGE) { error_setg(errp, "Value '%s' is too large for parameter '%s'", valu...
false
qemu
9e19ad4e49c8dc7f776bf770f52ad6ea1ec28edc
void parse_option_size(const char *name, const char *value, uint64_t *ret, Error **errp) { uint64_t size; int err; err = qemu_strtosz(value, NULL, &size); if (err == -ERANGE) { error_setg(errp, "Value '%s' is too large for parameter '%s'", valu...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, const char *VAR_1, uint64_t *VAR_2, Error **VAR_3) { uint64_t size; int VAR_4; VAR_4 = qemu_strtosz(VAR_1, NULL, &size); if (VAR_4 == -ERANGE) { error_setg(VAR_3, "Value '%s' is too large for parameter '%s'", VAR_...
[ "void FUNC_0(const char *VAR_0, const char *VAR_1,\nuint64_t *VAR_2, Error **VAR_3)\n{", "uint64_t size;", "int VAR_4;", "VAR_4 = qemu_strtosz(VAR_1, NULL, &size);", "if (VAR_4 == -ERANGE) {", "error_setg(VAR_3, \"Value '%s' is too large for parameter '%s'\",\nVAR_1, VAR_0);", "return;", "}", "if (V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
23,493
static int get_physical_addr_mmu(CPUXtensaState *env, bool update_tlb, uint32_t vaddr, int is_write, int mmu_idx, uint32_t *paddr, uint32_t *page_size, unsigned *access, bool may_lookup_pt) { bool dtlb = is_write != 2; uint32_t wi; uint32_t ei; uint8_t ring; uint32_t...
false
qemu
659f807c0a700317a7a0fae7a6e6ebfe68bfbbc4
static int get_physical_addr_mmu(CPUXtensaState *env, bool update_tlb, uint32_t vaddr, int is_write, int mmu_idx, uint32_t *paddr, uint32_t *page_size, unsigned *access, bool may_lookup_pt) { bool dtlb = is_write != 2; uint32_t wi; uint32_t ei; uint8_t ring; uint32_t...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUXtensaState *VAR_0, bool VAR_1, uint32_t VAR_2, int VAR_3, int VAR_4, uint32_t *VAR_5, uint32_t *VAR_6, unsigned *VAR_7, bool VAR_8) { bool dtlb = VAR_3 != 2; uint32_t wi; uint32_t ei; uint8_t ring; uint32_t vpn; uint32_t pte; const xte...
[ "static int FUNC_0(CPUXtensaState *VAR_0, bool VAR_1,\nuint32_t VAR_2, int VAR_3, int VAR_4,\nuint32_t *VAR_5, uint32_t *VAR_6, unsigned *VAR_7,\nbool VAR_8)\n{", "bool dtlb = VAR_3 != 2;", "uint32_t wi;", "uint32_t ei;", "uint8_t ring;", "uint32_t vpn;", "uint32_t pte;", "const xtensa_tlb_entry *VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
23,494
e1000e_intrmgr_delay_rx_causes(E1000ECore *core, uint32_t *causes) { uint32_t delayable_causes; uint32_t rdtr = core->mac[RDTR]; uint32_t radv = core->mac[RADV]; uint32_t raid = core->mac[RAID]; if (msix_enabled(core->owner)) { return false; } delayable_causes = E1000_IC...
false
qemu
1ac6c07f4288b0a563310fad0cdabb3a47c85607
e1000e_intrmgr_delay_rx_causes(E1000ECore *core, uint32_t *causes) { uint32_t delayable_causes; uint32_t rdtr = core->mac[RDTR]; uint32_t radv = core->mac[RADV]; uint32_t raid = core->mac[RAID]; if (msix_enabled(core->owner)) { return false; } delayable_causes = E1000_IC...
{ "code": [], "line_no": [] }
FUNC_0(E1000ECore *VAR_0, uint32_t *VAR_1) { uint32_t delayable_causes; uint32_t rdtr = VAR_0->mac[RDTR]; uint32_t radv = VAR_0->mac[RADV]; uint32_t raid = VAR_0->mac[RAID]; if (msix_enabled(VAR_0->owner)) { return false; } delayable_causes = E1000_ICR_RXQ0 | ...
[ "FUNC_0(E1000ECore *VAR_0, uint32_t *VAR_1)\n{", "uint32_t delayable_causes;", "uint32_t rdtr = VAR_0->mac[RDTR];", "uint32_t radv = VAR_0->mac[RADV];", "uint32_t raid = VAR_0->mac[RAID];", "if (msix_enabled(VAR_0->owner)) {", "return false;", "}", "delayable_causes = E1000_ICR_RXQ0 |\nE1000_ICR_RXQ...
[ 0, 0, 0, 0, 0, 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 ], [ 23, 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 51 ], [ 53 ], [ 55 ], [ 63 ], [ 65 ...
23,496
static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) { int ret; VirtioRevInfo revinfo; uint8_t status; VirtioFeatDesc features; void *config; hwaddr indicators; VqConfigBlock vq_config; VirtioCcwDevice *dev = sch->driver_data; VirtIODevice *vdev = virtio_ccw_get_vdev(sch); ...
false
qemu
f57ba05823b7c444133f0862077b45824a6a89b5
static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) { int ret; VirtioRevInfo revinfo; uint8_t status; VirtioFeatDesc features; void *config; hwaddr indicators; VqConfigBlock vq_config; VirtioCcwDevice *dev = sch->driver_data; VirtIODevice *vdev = virtio_ccw_get_vdev(sch); ...
{ "code": [], "line_no": [] }
static int FUNC_0(SubchDev *VAR_0, CCW1 VAR_1) { int VAR_2; VirtioRevInfo revinfo; uint8_t status; VirtioFeatDesc features; void *VAR_3; hwaddr indicators; VqConfigBlock vq_config; VirtioCcwDevice *dev = VAR_0->driver_data; VirtIODevice *vdev = virtio_ccw_get_vdev(VAR_0); ...
[ "static int FUNC_0(SubchDev *VAR_0, CCW1 VAR_1)\n{", "int VAR_2;", "VirtioRevInfo revinfo;", "uint8_t status;", "VirtioFeatDesc features;", "void *VAR_3;", "hwaddr indicators;", "VqConfigBlock vq_config;", "VirtioCcwDevice *dev = VAR_0->driver_data;", "VirtIODevice *vdev = virtio_ccw_get_vdev(VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [...
23,497
AioContext *aio_context_new(Error **errp) { int ret; AioContext *ctx; ctx = (AioContext *) g_source_new(&aio_source_funcs, sizeof(AioContext)); aio_context_setup(ctx); ret = event_notifier_init(&ctx->notifier, false); if (ret < 0) { error_setg_errno(errp, -ret, "Failed to ini...
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
AioContext *aio_context_new(Error **errp) { int ret; AioContext *ctx; ctx = (AioContext *) g_source_new(&aio_source_funcs, sizeof(AioContext)); aio_context_setup(ctx); ret = event_notifier_init(&ctx->notifier, false); if (ret < 0) { error_setg_errno(errp, -ret, "Failed to ini...
{ "code": [], "line_no": [] }
AioContext *FUNC_0(Error **errp) { int VAR_0; AioContext *ctx; ctx = (AioContext *) g_source_new(&aio_source_funcs, sizeof(AioContext)); aio_context_setup(ctx); VAR_0 = event_notifier_init(&ctx->notifier, false); if (VAR_0 < 0) { error_setg_errno(errp, -VAR_0, "Failed to init...
[ "AioContext *FUNC_0(Error **errp)\n{", "int VAR_0;", "AioContext *ctx;", "ctx = (AioContext *) g_source_new(&aio_source_funcs, sizeof(AioContext));", "aio_context_setup(ctx);", "VAR_0 = event_notifier_init(&ctx->notifier, false);", "if (VAR_0 < 0) {", "error_setg_errno(errp, -VAR_0, \"Failed to initia...
[ 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33, 35, 37, 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51...
23,498
static TCGArg do_constant_folding_2(int op, TCGArg x, TCGArg y) { switch (op) { CASE_OP_32_64(add): return x + y; CASE_OP_32_64(sub): return x - y; CASE_OP_32_64(mul): return x * y; CASE_OP_32_64(and): return x & y; CASE_OP_32_64(or): r...
false
qemu
25c4d9cc845fb58f624dae8c0f690e20c70e7a1d
static TCGArg do_constant_folding_2(int op, TCGArg x, TCGArg y) { switch (op) { CASE_OP_32_64(add): return x + y; CASE_OP_32_64(sub): return x - y; CASE_OP_32_64(mul): return x * y; CASE_OP_32_64(and): return x & y; CASE_OP_32_64(or): r...
{ "code": [], "line_no": [] }
static TCGArg FUNC_0(int op, TCGArg x, TCGArg y) { switch (op) { CASE_OP_32_64(add): return x + y; CASE_OP_32_64(sub): return x - y; CASE_OP_32_64(mul): return x * y; CASE_OP_32_64(and): return x & y; CASE_OP_32_64(or): return x | y; ...
[ "static TCGArg FUNC_0(int op, TCGArg x, TCGArg y)\n{", "switch (op) {", "CASE_OP_32_64(add):\nreturn x + y;", "CASE_OP_32_64(sub):\nreturn x - y;", "CASE_OP_32_64(mul):\nreturn x * y;", "CASE_OP_32_64(and):\nreturn x & y;", "CASE_OP_32_64(or):\nreturn x | y;", "CASE_OP_32_64(xor):\nreturn x ^ y;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25, 27 ], [ 31, 33 ], [ 37, 39 ], [ 43, 45 ], [ 49, 51, 53 ], [ 55, 59, 61 ], [ 65, 67, 69 ], [ 71, 75,...
23,499
static int mpegts_raw_read_packet(AVFormatContext *s, AVPacket *pkt) { MpegTSContext *ts = s->priv_data; int ret, i; int64_t pcr_h, next_pcr_h, pos; int pcr_l, next_pcr_l; uint8_t pcr_buf[12]; if (av_new_packet(pkt, TS_PACKET_SIZE) < 0) return...
false
FFmpeg
1303d62d8416fa315a0cc7bbbe35cfdab787ea92
static int mpegts_raw_read_packet(AVFormatContext *s, AVPacket *pkt) { MpegTSContext *ts = s->priv_data; int ret, i; int64_t pcr_h, next_pcr_h, pos; int pcr_l, next_pcr_l; uint8_t pcr_buf[12]; if (av_new_packet(pkt, TS_PACKET_SIZE) < 0) return...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MpegTSContext *ts = VAR_0->priv_data; int VAR_2, VAR_3; int64_t pcr_h, next_pcr_h, pos; int VAR_4, VAR_5; uint8_t pcr_buf[12]; if (av_new_packet(VAR_1, TS_PACKET_SIZE) < 0) return AV...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{", "MpegTSContext *ts = VAR_0->priv_data;", "int VAR_2, VAR_3;", "int64_t pcr_h, next_pcr_h, pos;", "int VAR_4, VAR_5;", "uint8_t pcr_buf[12];", "if (av_new_packet(VAR_1, TS_PACKET_SIZE) < 0)\nreturn AVERROR(ENOMEM);", "VAR_1->pos= url_fte...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
23,500
static int mp_user_setxattr(FsContext *ctx, const char *path, const char *name, void *value, size_t size, int flags) { char buffer[PATH_MAX]; if (strncmp(name, "user.virtfs.", 12) == 0) { /* * Don't allow fetch of user.virtfs namesapce * in case of ma...
false
qemu
4fa4ce7107c6ec432f185307158c5df91ce54308
static int mp_user_setxattr(FsContext *ctx, const char *path, const char *name, void *value, size_t size, int flags) { char buffer[PATH_MAX]; if (strncmp(name, "user.virtfs.", 12) == 0) { errno = EACCES; return -1; } return lsetxattr(rp...
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2, void *VAR_3, size_t VAR_4, int VAR_5) { char VAR_6[PATH_MAX]; if (strncmp(VAR_2, "user.virtfs.", 12) == 0) { errno = EACCES; return -1; } return lsetxattr(rpath(V...
[ "static int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2,\nvoid *VAR_3, size_t VAR_4, int VAR_5)\n{", "char VAR_6[PATH_MAX];", "if (strncmp(VAR_2, \"user.virtfs.\", 12) == 0) {", "errno = EACCES;", "return -1;", "}", "return lsetxattr(rpath(VAR_0, VAR_1, VAR_6), VAR_2, VAR_3, VAR_4, VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
23,501
static int openpic_init(SysBusDevice *dev) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), dev); int i, j; MemReg list_le[] = { {"glb", &openpic_glb_ops_le, true, OPENPIC_GLB_REG_START, OPENPIC_GLB_REG_SIZE}, {"tmr", &openpic_tmr_ops_le, true, OPENPIC...
false
qemu
e0dfe5b18919a6a4deb841dcf3212e3e998c95e5
static int openpic_init(SysBusDevice *dev) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), dev); int i, j; MemReg list_le[] = { {"glb", &openpic_glb_ops_le, true, OPENPIC_GLB_REG_START, OPENPIC_GLB_REG_SIZE}, {"tmr", &openpic_tmr_ops_le, true, OPENPIC...
{ "code": [], "line_no": [] }
static int FUNC_0(SysBusDevice *VAR_0) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), VAR_0); int VAR_1, VAR_2; MemReg list_le[] = { {"glb", &openpic_glb_ops_le, true, OPENPIC_GLB_REG_START, OPENPIC_GLB_REG_SIZE}, {"tmr", &openpic_tmr_ops_le, true, O...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "OpenPICState *opp = FROM_SYSBUS(typeof (*opp), VAR_0);", "int VAR_1, VAR_2;", "MemReg list_le[] = {", "{\"glb\", &openpic_glb_ops_le, true,", "OPENPIC_GLB_REG_START, OPENPIC_GLB_REG_SIZE},", "{\"tmr\", &openpic_tmr_ops_le, true,", "OPENPIC_TMR_REG_START, O...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
23,502
static void do_info_profile(Monitor *mon) { int64_t total; total = qemu_time; if (total == 0) total = 1; monitor_printf(mon, "async time %" PRId64 " (%0.3f)\n", dev_time, dev_time / (double)ticks_per_sec); monitor_printf(mon, "qemu time %" PRId64 " (%0.3f)\n", ...
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
static void do_info_profile(Monitor *mon) { int64_t total; total = qemu_time; if (total == 0) total = 1; monitor_printf(mon, "async time %" PRId64 " (%0.3f)\n", dev_time, dev_time / (double)ticks_per_sec); monitor_printf(mon, "qemu time %" PRId64 " (%0.3f)\n", ...
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0) { int64_t total; total = qemu_time; if (total == 0) total = 1; monitor_printf(VAR_0, "async time %" PRId64 " (%0.3f)\n", dev_time, dev_time / (double)ticks_per_sec); monitor_printf(VAR_0, "qemu time %" PRId64 " (%0.3f)\n", ...
[ "static void FUNC_0(Monitor *VAR_0)\n{", "int64_t total;", "total = qemu_time;", "if (total == 0)\ntotal = 1;", "monitor_printf(VAR_0, \"async time %\" PRId64 \" (%0.3f)\\n\",\ndev_time, dev_time / (double)ticks_per_sec);", "monitor_printf(VAR_0, \"qemu time %\" PRId64 \" (%0.3f)\\n\",\nqemu_time, qemu...
[ 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 ], [...
23,503
void qemu_savevm_state_header(QEMUFile *f) { trace_savevm_state_header(); qemu_put_be32(f, QEMU_VM_FILE_MAGIC); qemu_put_be32(f, QEMU_VM_FILE_VERSION); if (migrate_get_current()->send_configuration || enforce_config_section()) { qemu_put_byte(f, QEMU_VM_CONFIGURATION); ...
false
qemu
4ffdb337e74f9a4dae97ea0396d4e1a3dbb13723
void qemu_savevm_state_header(QEMUFile *f) { trace_savevm_state_header(); qemu_put_be32(f, QEMU_VM_FILE_MAGIC); qemu_put_be32(f, QEMU_VM_FILE_VERSION); if (migrate_get_current()->send_configuration || enforce_config_section()) { qemu_put_byte(f, QEMU_VM_CONFIGURATION); ...
{ "code": [], "line_no": [] }
void FUNC_0(QEMUFile *VAR_0) { trace_savevm_state_header(); qemu_put_be32(VAR_0, QEMU_VM_FILE_MAGIC); qemu_put_be32(VAR_0, QEMU_VM_FILE_VERSION); if (migrate_get_current()->send_configuration || enforce_config_section()) { qemu_put_byte(VAR_0, QEMU_VM_CONFIGURATION); vm...
[ "void FUNC_0(QEMUFile *VAR_0)\n{", "trace_savevm_state_header();", "qemu_put_be32(VAR_0, QEMU_VM_FILE_MAGIC);", "qemu_put_be32(VAR_0, QEMU_VM_FILE_VERSION);", "if (migrate_get_current()->send_configuration ||\nenforce_config_section()) {", "qemu_put_byte(VAR_0, QEMU_VM_CONFIGURATION);", "vmstate_save_st...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
23,505
static void rtas_event_log_queue(int log_type, void *data) { sPAPREventLogEntry *entry = g_new(sPAPREventLogEntry, 1); g_assert(data); entry->log_type = log_type; entry->data = data; QTAILQ_INSERT_TAIL(&spapr->pending_events, entry, next); }
false
qemu
79853e18d904b0a4bcef62701d48559688007c93
static void rtas_event_log_queue(int log_type, void *data) { sPAPREventLogEntry *entry = g_new(sPAPREventLogEntry, 1); g_assert(data); entry->log_type = log_type; entry->data = data; QTAILQ_INSERT_TAIL(&spapr->pending_events, entry, next); }
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, void *VAR_1) { sPAPREventLogEntry *entry = g_new(sPAPREventLogEntry, 1); g_assert(VAR_1); entry->VAR_0 = VAR_0; entry->VAR_1 = VAR_1; QTAILQ_INSERT_TAIL(&spapr->pending_events, entry, next); }
[ "static void FUNC_0(int VAR_0, void *VAR_1)\n{", "sPAPREventLogEntry *entry = g_new(sPAPREventLogEntry, 1);", "g_assert(VAR_1);", "entry->VAR_0 = VAR_0;", "entry->VAR_1 = VAR_1;", "QTAILQ_INSERT_TAIL(&spapr->pending_events, entry, next);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
23,506
int avio_open2(AVIOContext **s, const char *filename, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options) { URLContext *h; int err; err = ffurl_open(&h, filename, flags, int_cb, options); if (err < 0) return err; err = ffio_fdopen(s, h); if (err < ...
false
FFmpeg
1dba8371d93cf1c83bcd5c432d921905206a60f3
int avio_open2(AVIOContext **s, const char *filename, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options) { URLContext *h; int err; err = ffurl_open(&h, filename, flags, int_cb, options); if (err < 0) return err; err = ffio_fdopen(s, h); if (err < ...
{ "code": [], "line_no": [] }
int FUNC_0(AVIOContext **VAR_0, const char *VAR_1, int VAR_2, const AVIOInterruptCB *VAR_3, AVDictionary **VAR_4) { URLContext *h; int VAR_5; VAR_5 = ffurl_open(&h, VAR_1, VAR_2, VAR_3, VAR_4); if (VAR_5 < 0) return VAR_5; VAR_5 = ffio_fdopen(VAR_0, h); if (VAR_...
[ "int FUNC_0(AVIOContext **VAR_0, const char *VAR_1, int VAR_2,\nconst AVIOInterruptCB *VAR_3, AVDictionary **VAR_4)\n{", "URLContext *h;", "int VAR_5;", "VAR_5 = ffurl_open(&h, VAR_1, VAR_2, VAR_3, VAR_4);", "if (VAR_5 < 0)\nreturn VAR_5;", "VAR_5 = ffio_fdopen(VAR_0, h);", "if (VAR_5 < 0) {", "ffurl_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
23,507
static void sbr_hf_inverse_filter(float (*alpha0)[2], float (*alpha1)[2], const float X_low[32][40][2], int k0) { int k; for (k = 0; k < k0; k++) { float phi[3][2][2], dk; autocorrelate(X_low[k], phi, 0); autocorrelate(X_low[k], phi, 1); ...
false
FFmpeg
aac46e088d67a390489af686b846dea4987d8ffb
static void sbr_hf_inverse_filter(float (*alpha0)[2], float (*alpha1)[2], const float X_low[32][40][2], int k0) { int k; for (k = 0; k < k0; k++) { float phi[3][2][2], dk; autocorrelate(X_low[k], phi, 0); autocorrelate(X_low[k], phi, 1); ...
{ "code": [], "line_no": [] }
static void FUNC_0(float (*VAR_0)[2], float (*VAR_1)[2], const float VAR_2[32][40][2], int VAR_3) { int VAR_4; for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) { float VAR_5[3][2][2], VAR_6; autocorrelate(VAR_2[VAR_4], VAR_5, 0); autocorrelate(VAR_2[VAR_...
[ "static void FUNC_0(float (*VAR_0)[2], float (*VAR_1)[2],\nconst float VAR_2[32][40][2], int VAR_3)\n{", "int VAR_4;", "for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) {", "float VAR_5[3][2][2], VAR_6;", "autocorrelate(VAR_2[VAR_4], VAR_5, 0);", "autocorrelate(VAR_2[VAR_4], VAR_5, 1);", "autocorrelate(VAR_2[VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45, 47, 49 ], [ 53 ], [ 55 ...
23,510
static void virtio_crypto_initfn(Object *obj) { VirtIOCryptoPCI *dev = VIRTIO_CRYPTO_PCI(obj); virtio_instance_init_common(obj, &dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_CRYPTO); object_property_add_alias(obj, "cryptodev", OBJECT(&dev->vdev), ...
false
qemu
aa8f057e74ae08014736a690ff41f76c756f75f1
static void virtio_crypto_initfn(Object *obj) { VirtIOCryptoPCI *dev = VIRTIO_CRYPTO_PCI(obj); virtio_instance_init_common(obj, &dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_CRYPTO); object_property_add_alias(obj, "cryptodev", OBJECT(&dev->vdev), ...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { VirtIOCryptoPCI *dev = VIRTIO_CRYPTO_PCI(VAR_0); virtio_instance_init_common(VAR_0, &dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_CRYPTO); object_property_add_alias(VAR_0, "cryptodev", OBJECT(&dev->vdev), ...
[ "static void FUNC_0(Object *VAR_0)\n{", "VirtIOCryptoPCI *dev = VIRTIO_CRYPTO_PCI(VAR_0);", "virtio_instance_init_common(VAR_0, &dev->vdev, sizeof(dev->vdev),\nTYPE_VIRTIO_CRYPTO);", "object_property_add_alias(VAR_0, \"cryptodev\", OBJECT(&dev->vdev),\n\"cryptodev\", &error_abort);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17 ] ]
23,512
static void gen_spr_ne_601 (CPUPPCState *env) { /* Exception processing */ spr_register(env, SPR_DSISR, "DSISR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); spr_register(env, SPR_DAR, "DAR", SPR_N...
false
qemu
bb593904c18e22ea0671dfa1b02e24982f2bf0ea
static void gen_spr_ne_601 (CPUPPCState *env) { spr_register(env, SPR_DSISR, "DSISR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); spr_register(env, SPR_DAR, "DAR", SPR_NOACCESS, SPR_NOACCESS, ...
{ "code": [], "line_no": [] }
static void FUNC_0 (CPUPPCState *VAR_0) { spr_register(VAR_0, SPR_DSISR, "DSISR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); spr_register(VAR_0, SPR_DAR, "DAR", SPR_NOACCESS, SPR_NOACCESS, ...
[ "static void FUNC_0 (CPUPPCState *VAR_0)\n{", "spr_register(VAR_0, SPR_DSISR, \"DSISR\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);", "spr_register(VAR_0, SPR_DAR, \"DAR\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);", "spr_registe...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7, 9, 11, 13 ], [ 15, 17, 19, 21 ], [ 25, 27, 29, 31 ], [ 35, 37, 39, 41 ], [ 43 ] ]
23,513
static void grlib_irqmp_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { IRQMP *irqmp = opaque; IRQMPState *state; assert(irqmp != NULL); state = irqmp->state; assert(state != NULL); addr &= 0xff; /* global regist...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void grlib_irqmp_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { IRQMP *irqmp = opaque; IRQMPState *state; assert(irqmp != NULL); state = irqmp->state; assert(state != NULL); addr &= 0xff; switch (ad...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { IRQMP *irqmp = VAR_0; IRQMPState *state; assert(irqmp != NULL); state = irqmp->state; assert(state != NULL); VAR_1 &= 0xff; switch (VAR_1) { ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "IRQMP *irqmp = VAR_0;", "IRQMPState *state;", "assert(irqmp != NULL);", "state = irqmp->state;", "assert(state != NULL);", "VAR_1 &= 0xff;", "switch (VAR_1) {", "case LEVEL_OFFSET:\nVAR_2 &= 0xFFFF...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39, 43 ], [ 47, 53 ], [ 55 ], [ 57 ], [ 59 ], [ 63, 65 ], [...
23,514
static void tss_load_seg(CPUX86State *env, int seg_reg, int selector) { uint32_t e1, e2; int rpl, dpl, cpl; if ((selector & 0xfffc) != 0) { if (load_segment(env, &e1, &e2, selector) != 0) { raise_exception_err(env, EXCP0A_TSS, selector & 0xfffc); } if (!(e2 & DE...
false
qemu
d3b5491897456739c6dc21c604ef8bc28e294bfc
static void tss_load_seg(CPUX86State *env, int seg_reg, int selector) { uint32_t e1, e2; int rpl, dpl, cpl; if ((selector & 0xfffc) != 0) { if (load_segment(env, &e1, &e2, selector) != 0) { raise_exception_err(env, EXCP0A_TSS, selector & 0xfffc); } if (!(e2 & DE...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUX86State *VAR_0, int VAR_1, int VAR_2) { uint32_t e1, e2; int VAR_3, VAR_4, VAR_5; if ((VAR_2 & 0xfffc) != 0) { if (load_segment(VAR_0, &e1, &e2, VAR_2) != 0) { raise_exception_err(VAR_0, EXCP0A_TSS, VAR_2 & 0xfffc); } if (!(e2 & DESC_S_MAS...
[ "static void FUNC_0(CPUX86State *VAR_0, int VAR_1, int VAR_2)\n{", "uint32_t e1, e2;", "int VAR_3, VAR_4, VAR_5;", "if ((VAR_2 & 0xfffc) != 0) {", "if (load_segment(VAR_0, &e1, &e2, VAR_2) != 0) {", "raise_exception_err(VAR_0, EXCP0A_TSS, VAR_2 & 0xfffc);", "}", "if (!(e2 & DESC_S_MASK)) {", "raise_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45...
23,515
static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w, int h) { FlipContext *flip = link->dst->priv; int i; AVFilterBufferRef *picref = avfilter_get_video_buffer(link->dst->outputs[0], ...
false
FFmpeg
0ccabeeaef77e240f2a44f78271a8914a23e239b
static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w, int h) { FlipContext *flip = link->dst->priv; int i; AVFilterBufferRef *picref = avfilter_get_video_buffer(link->dst->outputs[0], ...
{ "code": [], "line_no": [] }
static AVFilterBufferRef *FUNC_0(AVFilterLink *link, int perms, int w, int h) { FlipContext *flip = link->dst->priv; int VAR_0; AVFilterBufferRef *picref = avfilter_get_video_buffer(link->dst->outputs[0], ...
[ "static AVFilterBufferRef *FUNC_0(AVFilterLink *link, int perms,\nint w, int h)\n{", "FlipContext *flip = link->dst->priv;", "int VAR_0;", "AVFilterBufferRef *picref = avfilter_get_video_buffer(link->dst->outputs[0],\nperms, w, h);", "for (VAR_0 = 0; VAR_0 < 4; VAR_0 ++) {", "int VAR_1 = VAR_0 == 1 || VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
23,517
static void nvdimm_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); PCDIMMDeviceClass *ddc = PC_DIMM_CLASS(oc); NVDIMMClass *nvc = NVDIMM_CLASS(oc); /* nvdimm hotplug has not been supported yet. */ dc->hotpluggable = false; ddc->realize = nvdimm_realize; ...
false
qemu
b097cc52fc9126bd1a71dae8302b8536d28104dd
static void nvdimm_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); PCDIMMDeviceClass *ddc = PC_DIMM_CLASS(oc); NVDIMMClass *nvc = NVDIMM_CLASS(oc); dc->hotpluggable = false; ddc->realize = nvdimm_realize; ddc->get_memory_region = nvdimm_get_memory_r...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); PCDIMMDeviceClass *ddc = PC_DIMM_CLASS(VAR_0); NVDIMMClass *nvc = NVDIMM_CLASS(VAR_0); dc->hotpluggable = false; ddc->realize = nvdimm_realize; ddc->get_memory_region = nvdimm_get_memory...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "PCDIMMDeviceClass *ddc = PC_DIMM_CLASS(VAR_0);", "NVDIMMClass *nvc = NVDIMM_CLASS(VAR_0);", "dc->hotpluggable = false;", "ddc->realize = nvdimm_realize;", "ddc->get_memory_region = nvdimm_get_memory_regi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ] ]
23,518
QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops) { QEMUFile *f; f = g_malloc0(sizeof(QEMUFile)); f->opaque = opaque; f->ops = ops; f->is_write = 0; return f; }
false
qemu
1964a397063967acc5ce71a2a24ed26e74824ee1
QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops) { QEMUFile *f; f = g_malloc0(sizeof(QEMUFile)); f->opaque = opaque; f->ops = ops; f->is_write = 0; return f; }
{ "code": [], "line_no": [] }
QEMUFile *FUNC_0(void *opaque, const QEMUFileOps *ops) { QEMUFile *f; f = g_malloc0(sizeof(QEMUFile)); f->opaque = opaque; f->ops = ops; f->is_write = 0; return f; }
[ "QEMUFile *FUNC_0(void *opaque, const QEMUFileOps *ops)\n{", "QEMUFile *f;", "f = g_malloc0(sizeof(QEMUFile));", "f->opaque = opaque;", "f->ops = ops;", "f->is_write = 0;", "return f;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
23,519
QmpOutputVisitor *qmp_output_visitor_new(void) { QmpOutputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_OUTPUT; v->visitor.start_struct = qmp_output_start_struct; v->visitor.end_struct = qmp_output_end_struct; v->visitor.start_list = qmp_output_start_list; v->v...
false
qemu
3b098d56979d2f7fd707c5be85555d114353a28d
QmpOutputVisitor *qmp_output_visitor_new(void) { QmpOutputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_OUTPUT; v->visitor.start_struct = qmp_output_start_struct; v->visitor.end_struct = qmp_output_end_struct; v->visitor.start_list = qmp_output_start_list; v->v...
{ "code": [], "line_no": [] }
QmpOutputVisitor *FUNC_0(void) { QmpOutputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_OUTPUT; v->visitor.start_struct = qmp_output_start_struct; v->visitor.end_struct = qmp_output_end_struct; v->visitor.start_list = qmp_output_start_list; v->visitor.next_list...
[ "QmpOutputVisitor *FUNC_0(void)\n{", "QmpOutputVisitor *v;", "v = g_malloc0(sizeof(*v));", "v->visitor.type = VISITOR_OUTPUT;", "v->visitor.start_struct = qmp_output_start_struct;", "v->visitor.end_struct = qmp_output_end_struct;", "v->visitor.start_list = qmp_output_start_list;", "v->visitor.next_lis...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49...
23,521
static void arm_cpu_do_interrupt_aarch32(CPUState *cs) { ARMCPU *cpu = ARM_CPU(cs); CPUARMState *env = &cpu->env; uint32_t addr; uint32_t mask; int new_mode; uint32_t offset; uint32_t moe; /* If this is a debug exception we must update the DBGDSCR.MOE bits */ switch (env-...
false
qemu
3823b9db77e753041c04c161ac9f4d4cfc661520
static void arm_cpu_do_interrupt_aarch32(CPUState *cs) { ARMCPU *cpu = ARM_CPU(cs); CPUARMState *env = &cpu->env; uint32_t addr; uint32_t mask; int new_mode; uint32_t offset; uint32_t moe; switch (env->exception.syndrome >> ARM_EL_EC_SHIFT) { case EC_BREAKPOINT: ...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0) { ARMCPU *cpu = ARM_CPU(VAR_0); CPUARMState *env = &cpu->env; uint32_t addr; uint32_t mask; int VAR_1; uint32_t offset; uint32_t moe; switch (env->exception.syndrome >> ARM_EL_EC_SHIFT) { case EC_BREAKPOINT: case EC_BREAKPOIN...
[ "static void FUNC_0(CPUState *VAR_0)\n{", "ARMCPU *cpu = ARM_CPU(VAR_0);", "CPUARMState *env = &cpu->env;", "uint32_t addr;", "uint32_t mask;", "int VAR_1;", "uint32_t offset;", "uint32_t moe;", "switch (env->exception.syndrome >> ARM_EL_EC_SHIFT) {", "case EC_BREAKPOINT:\ncase EC_BREAKPOINT_SAME_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33, 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51 ...
23,522
static void simple_list(void) { int i; struct { const char *encoded; LiteralQObject decoded; } test_cases[] = { { .encoded = "[43,42]", .decoded = QLIT_QLIST(((LiteralQObject[]){ QLIT_QINT(43), QLIT_QI...
false
qemu
9eaaf971683c99ed197fa1b7d1a3ca9baabfb3ee
static void simple_list(void) { int i; struct { const char *encoded; LiteralQObject decoded; } test_cases[] = { { .encoded = "[43,42]", .decoded = QLIT_QLIST(((LiteralQObject[]){ QLIT_QINT(43), QLIT_QI...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { int VAR_0; struct { const char *encoded; LiteralQObject decoded; } VAR_1[] = { { .encoded = "[43,42]", .decoded = QLIT_QLIST(((LiteralQObject[]){ QLIT_QINT(43), QLIT_QINT(42)...
[ "static void FUNC_0(void)\n{", "int VAR_0;", "struct {", "const char *encoded;", "LiteralQObject decoded;", "} VAR_1[] = {", "{", ".encoded = \"[43,42]\",\n.decoded = QLIT_QLIST(((LiteralQObject[]){", "QLIT_QINT(43),\nQLIT_QINT(42),\n{ }", "})),", "},", "{", ".encoded = \"[43]\",\n.decoded =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [...
23,524
static uint64_t m5208_timer_read(void *opaque, target_phys_addr_t addr, unsigned size) { m5208_timer_state *s = (m5208_timer_state *)opaque; switch (addr) { case 0: return s->pcsr; case 2: return s->pmr; case 4: return ptimer_get_cou...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t m5208_timer_read(void *opaque, target_phys_addr_t addr, unsigned size) { m5208_timer_state *s = (m5208_timer_state *)opaque; switch (addr) { case 0: return s->pcsr; case 2: return s->pmr; case 4: return ptimer_get_cou...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { m5208_timer_state *s = (m5208_timer_state *)opaque; switch (addr) { case 0: return s->pcsr; case 2: return s->pmr; case 4: return ptimer_get_count(s->time...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "m5208_timer_state *s = (m5208_timer_state *)opaque;", "switch (addr) {", "case 0:\nreturn s->pcsr;", "case 2:\nreturn s->pmr;", "case 4:\nreturn ptimer_get_count(s->timer);", "default:\nhw_error(\"FUNC_0: Bad offset 0x%...
[ 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 ] ]
23,525
static inline void gen_cmps(DisasContext *s, int ot) { gen_string_movl_A0_ESI(s); gen_op_ld_T0_A0(ot + s->mem_index); gen_string_movl_A0_EDI(s); gen_op_ld_T1_A0(ot + s->mem_index); gen_op_cmpl_T0_T1_cc(); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { ...
false
qemu
6e0d8677cb443e7408c0b7a25a93c6596d7fa380
static inline void gen_cmps(DisasContext *s, int ot) { gen_string_movl_A0_ESI(s); gen_op_ld_T0_A0(ot + s->mem_index); gen_string_movl_A0_EDI(s); gen_op_ld_T1_A0(ot + s->mem_index); gen_op_cmpl_T0_T1_cc(); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1) { gen_string_movl_A0_ESI(VAR_0); gen_op_ld_T0_A0(VAR_1 + VAR_0->mem_index); gen_string_movl_A0_EDI(VAR_0); gen_op_ld_T1_A0(VAR_1 + VAR_0->mem_index); gen_op_cmpl_T0_T1_cc(); gen_op_movl_T0_Dshift[VAR_1](); #ifdef TARGET_X86_64 ...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1)\n{", "gen_string_movl_A0_ESI(VAR_0);", "gen_op_ld_T0_A0(VAR_1 + VAR_0->mem_index);", "gen_string_movl_A0_EDI(VAR_0);", "gen_op_ld_T1_A0(VAR_1 + VAR_0->mem_index);", "gen_op_cmpl_T0_T1_cc();", "gen_op_movl_T0_Dshift[VAR_1]();", "#ifdef TARGET_X...
[ 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 ...
23,526
static int set_pix_fmt(AVCodecContext *avctx, vpx_codec_caps_t codec_caps, struct vpx_codec_enc_cfg *enccfg, vpx_codec_flags_t *flags, vpx_img_fmt_t *img_fmt) { VPxContext av_unused *ctx = avctx->priv_data; #ifdef VPX_IMG_FMT_HIGHBITDEPTH enccfg->g_bit_depth =...
false
FFmpeg
753074721bd414874d18c372c491bdc6323fa3bf
static int set_pix_fmt(AVCodecContext *avctx, vpx_codec_caps_t codec_caps, struct vpx_codec_enc_cfg *enccfg, vpx_codec_flags_t *flags, vpx_img_fmt_t *img_fmt) { VPxContext av_unused *ctx = avctx->priv_data; #ifdef VPX_IMG_FMT_HIGHBITDEPTH enccfg->g_bit_depth =...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, vpx_codec_caps_t VAR_1, struct vpx_codec_enc_cfg *VAR_2, vpx_codec_flags_t *VAR_3, vpx_img_fmt_t *VAR_4) { VPxContext av_unused *ctx = VAR_0->priv_data; #ifdef VPX_IMG_FMT_HIGHBITDEPTH VAR_2->g_bit_depth = VAR_2->g_inpu...
[ "static int FUNC_0(AVCodecContext *VAR_0, vpx_codec_caps_t VAR_1,\nstruct vpx_codec_enc_cfg *VAR_2, vpx_codec_flags_t *VAR_3,\nvpx_img_fmt_t *VAR_4)\n{", "VPxContext av_unused *ctx = VAR_0->priv_data;", "#ifdef VPX_IMG_FMT_HIGHBITDEPTH\nVAR_2->g_bit_depth = VAR_2->g_input_bit_depth = 8;", "#endif\nswitch (VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51,...
23,527
static CURLState *curl_init_state(BlockDriverState *bs, BDRVCURLState *s) { CURLState *state = NULL; int i, j; do { for (i=0; i<CURL_NUM_STATES; i++) { for (j=0; j<CURL_NUM_ACB; j++) if (s->states[i].acb[j]) continue; if (s->stat...
false
qemu
f76faeda4bd59f972d09dd9d954297f17c21dd60
static CURLState *curl_init_state(BlockDriverState *bs, BDRVCURLState *s) { CURLState *state = NULL; int i, j; do { for (i=0; i<CURL_NUM_STATES; i++) { for (j=0; j<CURL_NUM_ACB; j++) if (s->states[i].acb[j]) continue; if (s->stat...
{ "code": [], "line_no": [] }
static CURLState *FUNC_0(BlockDriverState *bs, BDRVCURLState *s) { CURLState *state = NULL; int VAR_0, VAR_1; do { for (VAR_0=0; VAR_0<CURL_NUM_STATES; VAR_0++) { for (VAR_1=0; VAR_1<CURL_NUM_ACB; VAR_1++) if (s->states[VAR_0].acb[VAR_1]) con...
[ "static CURLState *FUNC_0(BlockDriverState *bs, BDRVCURLState *s)\n{", "CURLState *state = NULL;", "int VAR_0, VAR_1;", "do {", "for (VAR_0=0; VAR_0<CURL_NUM_STATES; VAR_0++) {", "for (VAR_1=0; VAR_1<CURL_NUM_ACB; VAR_1++)", "if (s->states[VAR_0].acb[VAR_1])\ncontinue;", "if (s->states[VAR_0].in_use)\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49...
23,528
static bool elf_check_ehdr(struct elfhdr *ehdr) { return (elf_check_arch(ehdr->e_machine) && ehdr->e_ehsize == sizeof(struct elfhdr) && ehdr->e_phentsize == sizeof(struct elf_phdr) && ehdr->e_shentsize == sizeof(struct elf_shdr) && (ehdr->e_type == ET_EXEC || eh...
false
qemu
d3606f07440ee2c2bebea2b9932938e08b66d90b
static bool elf_check_ehdr(struct elfhdr *ehdr) { return (elf_check_arch(ehdr->e_machine) && ehdr->e_ehsize == sizeof(struct elfhdr) && ehdr->e_phentsize == sizeof(struct elf_phdr) && ehdr->e_shentsize == sizeof(struct elf_shdr) && (ehdr->e_type == ET_EXEC || eh...
{ "code": [], "line_no": [] }
static bool FUNC_0(struct elfhdr *ehdr) { return (elf_check_arch(ehdr->e_machine) && ehdr->e_ehsize == sizeof(struct elfhdr) && ehdr->e_phentsize == sizeof(struct elf_phdr) && ehdr->e_shentsize == sizeof(struct elf_shdr) && (ehdr->e_type == ET_EXEC || ehdr->e_ty...
[ "static bool FUNC_0(struct elfhdr *ehdr)\n{", "return (elf_check_arch(ehdr->e_machine)\n&& ehdr->e_ehsize == sizeof(struct elfhdr)\n&& ehdr->e_phentsize == sizeof(struct elf_phdr)\n&& ehdr->e_shentsize == sizeof(struct elf_shdr)\n&& (ehdr->e_type == ET_EXEC || ehdr->e_type == ET_DYN));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13 ], [ 15 ] ]
23,529
static void tcg_out_dat_rIN(TCGContext *s, int cond, int opc, int opneg, TCGArg dst, TCGArg lhs, TCGArg rhs, bool rhs_is_const) { /* Emit either the reg,imm or reg,reg form of a data-processing insn. * rhs must satisfy the "rIN" constraint. */ ...
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static void tcg_out_dat_rIN(TCGContext *s, int cond, int opc, int opneg, TCGArg dst, TCGArg lhs, TCGArg rhs, bool rhs_is_const) { if (rhs_is_const) { int rot = encode_imm(rhs); if (rot < 0) { rhs = -rhs; ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, TCGArg VAR_4, TCGArg VAR_5, TCGArg VAR_6, bool VAR_7) { if (VAR_7) { int VAR_8 = encode_imm(VAR_6); if (VAR_8 < 0) { VAR_6 = -VAR_6; ...
[ "static void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nTCGArg VAR_4, TCGArg VAR_5, TCGArg VAR_6,\nbool VAR_7)\n{", "if (VAR_7) {", "int VAR_8 = encode_imm(VAR_6);", "if (VAR_8 < 0) {", "VAR_6 = -VAR_6;", "VAR_8 = encode_imm(VAR_6);", "assert(VAR_8 >= 0);", "VAR_2 = VAR_3;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
23,530
static void add_completion(const char *str) { if (nb_completions < NB_COMPLETIONS_MAX) { completions[nb_completions++] = qemu_strdup(str); } }
false
qemu
7e2515e87c41e2e658aaed466e11cbdf1ea8bcb1
static void add_completion(const char *str) { if (nb_completions < NB_COMPLETIONS_MAX) { completions[nb_completions++] = qemu_strdup(str); } }
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { if (nb_completions < NB_COMPLETIONS_MAX) { completions[nb_completions++] = qemu_strdup(VAR_0); } }
[ "static void FUNC_0(const char *VAR_0)\n{", "if (nb_completions < NB_COMPLETIONS_MAX) {", "completions[nb_completions++] = qemu_strdup(VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
23,531
static void raw_lock_medium(BlockDriverState *bs, bool locked) { bdrv_lock_medium(bs->file->bs, locked); }
false
qemu
2e6fc7eb1a4af1b127df5f07b8bb28af891946fa
static void raw_lock_medium(BlockDriverState *bs, bool locked) { bdrv_lock_medium(bs->file->bs, locked); }
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, bool VAR_1) { bdrv_lock_medium(VAR_0->file->VAR_0, VAR_1); }
[ "static void FUNC_0(BlockDriverState *VAR_0, bool VAR_1)\n{", "bdrv_lock_medium(VAR_0->file->VAR_0, VAR_1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
23,532
static void irq_handler(void *opaque, int irq, int level) { struct xlx_pic *p = opaque; if (!(p->regs[R_MER] & 2)) { qemu_irq_lower(p->parent_irq); return; } /* edge triggered interrupt */ if (p->c_kind_of_intr & (1 << irq) && p->regs[R_MER] & 2) { p->regs[R_ISR]...
false
qemu
afd59989db90683fa127fec501d2633bcfbd6379
static void irq_handler(void *opaque, int irq, int level) { struct xlx_pic *p = opaque; if (!(p->regs[R_MER] & 2)) { qemu_irq_lower(p->parent_irq); return; } if (p->c_kind_of_intr & (1 << irq) && p->regs[R_MER] & 2) { p->regs[R_ISR] |= (level << irq); } ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { struct xlx_pic *VAR_3 = VAR_0; if (!(VAR_3->regs[R_MER] & 2)) { qemu_irq_lower(VAR_3->parent_irq); return; } if (VAR_3->c_kind_of_intr & (1 << VAR_1) && VAR_3->regs[R_MER] & 2) { VAR_3->regs[R_ISR] |= (VAR_...
[ "static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "struct xlx_pic *VAR_3 = VAR_0;", "if (!(VAR_3->regs[R_MER] & 2)) {", "qemu_irq_lower(VAR_3->parent_irq);", "return;", "}", "if (VAR_3->c_kind_of_intr & (1 << VAR_1) && VAR_3->regs[R_MER] & 2) {", "VAR_3->regs[R_ISR] |= (VAR_2 << VAR_1);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
23,533
void net_slirp_smb(const char *exported_dir) { if (slirp_smb_export) { fprintf(stderr, "-smb given twice\n"); exit(1); } slirp_smb_export = exported_dir; if (slirp_inited) { slirp_smb(exported_dir); } }
false
qemu
ad196a9d0c14f681f010bb4b979030ec125ba976
void net_slirp_smb(const char *exported_dir) { if (slirp_smb_export) { fprintf(stderr, "-smb given twice\n"); exit(1); } slirp_smb_export = exported_dir; if (slirp_inited) { slirp_smb(exported_dir); } }
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0) { if (slirp_smb_export) { fprintf(stderr, "-smb given twice\n"); exit(1); } slirp_smb_export = VAR_0; if (slirp_inited) { slirp_smb(VAR_0); } }
[ "void FUNC_0(const char *VAR_0)\n{", "if (slirp_smb_export) {", "fprintf(stderr, \"-smb given twice\\n\");", "exit(1);", "}", "slirp_smb_export = VAR_0;", "if (slirp_inited) {", "slirp_smb(VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
23,534
static void phys_map_node_reserve(unsigned nodes) { if (next_map.nodes_nb + nodes > next_map.nodes_nb_alloc) { next_map.nodes_nb_alloc = MAX(next_map.nodes_nb_alloc * 2, 16); next_map.nodes_nb_alloc = MAX(next_map.nodes_nb_alloc, ...
false
qemu
53cb28cbfea038f8ad50132dc8a684e638c7d48b
static void phys_map_node_reserve(unsigned nodes) { if (next_map.nodes_nb + nodes > next_map.nodes_nb_alloc) { next_map.nodes_nb_alloc = MAX(next_map.nodes_nb_alloc * 2, 16); next_map.nodes_nb_alloc = MAX(next_map.nodes_nb_alloc, ...
{ "code": [], "line_no": [] }
static void FUNC_0(unsigned VAR_0) { if (next_map.nodes_nb + VAR_0 > next_map.nodes_nb_alloc) { next_map.nodes_nb_alloc = MAX(next_map.nodes_nb_alloc * 2, 16); next_map.nodes_nb_alloc = MAX(next_map.nodes_nb_alloc, ...
[ "static void FUNC_0(unsigned VAR_0)\n{", "if (next_map.nodes_nb + VAR_0 > next_map.nodes_nb_alloc) {", "next_map.nodes_nb_alloc = MAX(next_map.nodes_nb_alloc * 2,\n16);", "next_map.nodes_nb_alloc = MAX(next_map.nodes_nb_alloc,\nnext_map.nodes_nb + VAR_0);", "next_map.VAR_0 = g_renew(Node, next_map.VAR_0,\nn...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ] ]
23,535
static int omap_dma_ch_reg_write(struct omap_dma_s *s, int ch, int reg, uint16_t value) { switch (reg) { case 0x00: /* SYS_DMA_CSDP_CH0 */ s->ch[ch].burst[1] = (value & 0xc000) >> 14; s->ch[ch].pack[1] = (value & 0x2000) >> 13; s->ch[ch].port[1] = (enum omap_dma_por...
false
qemu
b854bc196f5c4b4e3299c0b0ee63cf828ece9e77
static int omap_dma_ch_reg_write(struct omap_dma_s *s, int ch, int reg, uint16_t value) { switch (reg) { case 0x00: s->ch[ch].burst[1] = (value & 0xc000) >> 14; s->ch[ch].pack[1] = (value & 0x2000) >> 13; s->ch[ch].port[1] = (enum omap_dma_port) ((value & 0x1e00) >...
{ "code": [], "line_no": [] }
static int FUNC_0(struct omap_dma_s *VAR_0, int VAR_1, int VAR_2, uint16_t VAR_3) { switch (VAR_2) { case 0x00: VAR_0->VAR_1[VAR_1].burst[1] = (VAR_3 & 0xc000) >> 14; VAR_0->VAR_1[VAR_1].pack[1] = (VAR_3 & 0x2000) >> 13; VAR_0->VAR_1[VAR_1].port[1] = (enum omap_dma...
[ "static int FUNC_0(struct omap_dma_s *VAR_0,\nint VAR_1, int VAR_2, uint16_t VAR_3) {", "switch (VAR_2) {", "case 0x00:\nVAR_0->VAR_1[VAR_1].burst[1] = (VAR_3 & 0xc000) >> 14;", "VAR_0->VAR_1[VAR_1].pack[1] = (VAR_3 & 0x2000) >> 13;", "VAR_0->VAR_1[VAR_1].port[1] = (enum omap_dma_port) ((VAR_3 & 0x1e00) >> ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 29, 31, 33 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
23,536
static void add_cpreg_to_hashtable(ARMCPU *cpu, const ARMCPRegInfo *r, void *opaque, int state, int secstate, int crm, int opc1, int opc2) { /* Private utility function for define_one_arm_cp_reg_with_opaque(): * add a single reginfo str...
false
qemu
7a0e58fa648736a75f2a6943afd2ab08ea15b8e0
static void add_cpreg_to_hashtable(ARMCPU *cpu, const ARMCPRegInfo *r, void *opaque, int state, int secstate, int crm, int opc1, int opc2) { uint32_t *key = g_new(uint32_t, 1); ARMCPRegInfo *r2 = g_memdup(r, sizeof(ARMCPRegInfo...
{ "code": [], "line_no": [] }
static void FUNC_0(ARMCPU *VAR_0, const ARMCPRegInfo *VAR_1, void *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { uint32_t *key = g_new(uint32_t, 1); ARMCPRegInfo *r2 = g_memdup(VAR_1, sizeof(ARMCPRegInfo)); ...
[ "static void FUNC_0(ARMCPU *VAR_0, const ARMCPRegInfo *VAR_1,\nvoid *VAR_2, int VAR_3, int VAR_4,\nint VAR_5, int VAR_6, int VAR_7)\n{", "uint32_t *key = g_new(uint32_t, 1);", "ARMCPRegInfo *r2 = g_memdup(VAR_1, sizeof(ARMCPRegInfo));", "int VAR_8 = (VAR_1->type & ARM_CP_64BIT) ? 1 : 0;", "int VAR_9 = (VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 31 ], [ 35 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 75, 77 ], [ 79 ], [ 81 ], [ 83 ], [ 85 ], [ 93 ], [ 95 ], ...
23,537
static inline void RENAME(rgb24to16)(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(PREFET...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(rgb24to16)(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(PREFET...
{ "code": [], "line_no": [] }
static inline void FUNC_0(rgb24to16)(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__ vol...
[ "static inline void FUNC_0(rgb24to16)(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__asm_...
[ 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,...
23,538
static void read_event_data(SCLPEventFacility *ef, SCCB *sccb) { unsigned int sclp_active_selection_mask; unsigned int sclp_cp_receive_mask; ReadEventData *red = (ReadEventData *) sccb; if (be16_to_cpu(sccb->h.length) != SCCB_SIZE) { sccb->h.response_code = cpu_to_be16(SCLP_RC_INSUFFIC...
false
qemu
3335ddddf9e5ba7743dc8e3f767f4ef857ccd20c
static void read_event_data(SCLPEventFacility *ef, SCCB *sccb) { unsigned int sclp_active_selection_mask; unsigned int sclp_cp_receive_mask; ReadEventData *red = (ReadEventData *) sccb; if (be16_to_cpu(sccb->h.length) != SCCB_SIZE) { sccb->h.response_code = cpu_to_be16(SCLP_RC_INSUFFIC...
{ "code": [], "line_no": [] }
static void FUNC_0(SCLPEventFacility *VAR_0, SCCB *VAR_1) { unsigned int VAR_2; unsigned int VAR_3; ReadEventData *red = (ReadEventData *) VAR_1; if (be16_to_cpu(VAR_1->h.length) != SCCB_SIZE) { VAR_1->h.response_code = cpu_to_be16(SCLP_RC_INSUFFICIENT_SCCB_LENGTH); goto out; ...
[ "static void FUNC_0(SCLPEventFacility *VAR_0, SCCB *VAR_1)\n{", "unsigned int VAR_2;", "unsigned int VAR_3;", "ReadEventData *red = (ReadEventData *) VAR_1;", "if (be16_to_cpu(VAR_1->h.length) != SCCB_SIZE) {", "VAR_1->h.response_code = cpu_to_be16(SCLP_RC_INSUFFICIENT_SCCB_LENGTH);", "goto out;", "}"...
[ 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 ], [ 25 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], ...
23,539
static QObject *parse_keyword(JSONParserContext *ctxt) { QObject *token; const char *val; token = parser_context_pop_token(ctxt); assert(token && token_get_type(token) == JSON_KEYWORD); val = token_get_value(token); if (!strcmp(val, "true")) { return QOBJECT(qbool_from_bool(t...
false
qemu
9bada8971173345ceb37ed1a47b00a01a4dd48cf
static QObject *parse_keyword(JSONParserContext *ctxt) { QObject *token; const char *val; token = parser_context_pop_token(ctxt); assert(token && token_get_type(token) == JSON_KEYWORD); val = token_get_value(token); if (!strcmp(val, "true")) { return QOBJECT(qbool_from_bool(t...
{ "code": [], "line_no": [] }
static QObject *FUNC_0(JSONParserContext *ctxt) { QObject *token; const char *VAR_0; token = parser_context_pop_token(ctxt); assert(token && token_get_type(token) == JSON_KEYWORD); VAR_0 = token_get_value(token); if (!strcmp(VAR_0, "true")) { return QOBJECT(qbool_from_bool(tr...
[ "static QObject *FUNC_0(JSONParserContext *ctxt)\n{", "QObject *token;", "const char *VAR_0;", "token = parser_context_pop_token(ctxt);", "assert(token && token_get_type(token) == JSON_KEYWORD);", "VAR_0 = token_get_value(token);", "if (!strcmp(VAR_0, \"true\")) {", "return QOBJECT(qbool_from_bool(tru...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
23,541
static void virtqueue_map_iovec(VirtIODevice *vdev, struct iovec *sg, hwaddr *addr, unsigned int *num_sg, unsigned int max_size, int is_write) { unsigned int i; hwaddr len; /* Note: this function MUST validate input, some callers ...
false
qemu
6bdc21c050a2a7b92cbbd0b2a1f8934e9b5f896f
static void virtqueue_map_iovec(VirtIODevice *vdev, struct iovec *sg, hwaddr *addr, unsigned int *num_sg, unsigned int max_size, int is_write) { unsigned int i; hwaddr len; #ifdef NDEBUG #error building with NDEBUG is...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIODevice *VAR_0, struct iovec *VAR_1, hwaddr *VAR_2, unsigned int *VAR_3, unsigned int VAR_4, int VAR_5) { unsigned int VAR_6; hwaddr len; #ifdef NDEBUG #error building with NDEBUG is not suppor...
[ "static void FUNC_0(VirtIODevice *VAR_0, struct iovec *VAR_1,\nhwaddr *VAR_2, unsigned int *VAR_3,\nunsigned int VAR_4, int VAR_5)\n{", "unsigned int VAR_6;", "hwaddr len;", "#ifdef NDEBUG\n#error building with NDEBUG is not supported\n#endif\nassert(*VAR_3 <= VAR_4);", "for (VAR_6 = 0; VAR_6 < *VAR_3; VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 29, 31, 33, 35 ], [ 39 ], [ 41 ], [ 43, 45, 47, 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ...
23,542
void qmp_block_job_complete(const char *device, Error **errp) { BlockJob *job = find_block_job(device); if (!job) { error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device); return; } trace_qmp_block_job_complete(job); block_job_complete(job, errp); }
false
qemu
3d948cdf3760b52238038626a7ffa7d30913060b
void qmp_block_job_complete(const char *device, Error **errp) { BlockJob *job = find_block_job(device); if (!job) { error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device); return; } trace_qmp_block_job_complete(job); block_job_complete(job, errp); }
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, Error **VAR_1) { BlockJob *job = find_block_job(VAR_0); if (!job) { error_set(VAR_1, QERR_BLOCK_JOB_NOT_ACTIVE, VAR_0); return; } trace_qmp_block_job_complete(job); block_job_complete(job, VAR_1); }
[ "void FUNC_0(const char *VAR_0, Error **VAR_1)\n{", "BlockJob *job = find_block_job(VAR_0);", "if (!job) {", "error_set(VAR_1, QERR_BLOCK_JOB_NOT_ACTIVE, VAR_0);", "return;", "}", "trace_qmp_block_job_complete(job);", "block_job_complete(job, VAR_1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ] ]
23,543
static uint32_t omap_l4_io_readb(void *opaque, target_phys_addr_t addr) { unsigned int i = (addr - OMAP2_L4_BASE) >> TARGET_PAGE_BITS; return omap_l4_io_readb_fn[i](omap_l4_io_opaque[i], addr); }
false
qemu
92c0bba9a95739c92e959fe478cb1acb92fa5446
static uint32_t omap_l4_io_readb(void *opaque, target_phys_addr_t addr) { unsigned int i = (addr - OMAP2_L4_BASE) >> TARGET_PAGE_BITS; return omap_l4_io_readb_fn[i](omap_l4_io_opaque[i], addr); }
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr) { unsigned int VAR_0 = (addr - OMAP2_L4_BASE) >> TARGET_PAGE_BITS; return omap_l4_io_readb_fn[VAR_0](omap_l4_io_opaque[VAR_0], addr); }
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{", "unsigned int VAR_0 = (addr - OMAP2_L4_BASE) >> TARGET_PAGE_BITS;", "return omap_l4_io_readb_fn[VAR_0](omap_l4_io_opaque[VAR_0], addr);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
23,544
void qemu_chr_initial_reset(void) { CharDriverState *chr; initial_reset_issued = 1; TAILQ_FOREACH(chr, &chardevs, next) { qemu_chr_reset(chr); } }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void qemu_chr_initial_reset(void) { CharDriverState *chr; initial_reset_issued = 1; TAILQ_FOREACH(chr, &chardevs, next) { qemu_chr_reset(chr); } }
{ "code": [], "line_no": [] }
void FUNC_0(void) { CharDriverState *chr; initial_reset_issued = 1; TAILQ_FOREACH(chr, &chardevs, next) { qemu_chr_reset(chr); } }
[ "void FUNC_0(void)\n{", "CharDriverState *chr;", "initial_reset_issued = 1;", "TAILQ_FOREACH(chr, &chardevs, next) {", "qemu_chr_reset(chr);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
23,546
static void par_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { if (arm_feature(env, ARM_FEATURE_LPAE)) { env->cp15.par_el1 = value; } else if (arm_feature(env, ARM_FEATURE_V7)) { env->cp15.par_el1 = value & 0xfffff6ff; } else { env->cp15.par_el1 = value & 0x...
false
qemu
8d5c773e323b22402abdd0beef4c7d2fc91dd0eb
static void par_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { if (arm_feature(env, ARM_FEATURE_LPAE)) { env->cp15.par_el1 = value; } else if (arm_feature(env, ARM_FEATURE_V7)) { env->cp15.par_el1 = value & 0xfffff6ff; } else { env->cp15.par_el1 = value & 0x...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2) { if (arm_feature(VAR_0, ARM_FEATURE_LPAE)) { VAR_0->cp15.par_el1 = VAR_2; } else if (arm_feature(VAR_0, ARM_FEATURE_V7)) { VAR_0->cp15.par_el1 = VAR_2 & 0xfffff6ff; } else { VAR_0->cp15.par_el1 ...
[ "static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2)\n{", "if (arm_feature(VAR_0, ARM_FEATURE_LPAE)) {", "VAR_0->cp15.par_el1 = VAR_2;", "} else if (arm_feature(VAR_0, ARM_FEATURE_V7)) {", "VAR_0->cp15.par_el1 = VAR_2 & 0xfffff6ff;", "} else {", "VAR_0->cp15.par_el1 = VAR_2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
23,547
void vnc_client_write(void *opaque) { VncState *vs = opaque; vnc_lock_output(vs); if (vs->output.offset #ifdef CONFIG_VNC_WS || vs->ws_output.offset #endif ) { vnc_client_write_locked(opaque); } else if (vs->csock != -1) { qemu_set_fd_handler(vs->csoc...
false
qemu
8e9b0d24fb986d4241ae3b77752eca5dab4cb486
void vnc_client_write(void *opaque) { VncState *vs = opaque; vnc_lock_output(vs); if (vs->output.offset #ifdef CONFIG_VNC_WS || vs->ws_output.offset #endif ) { vnc_client_write_locked(opaque); } else if (vs->csock != -1) { qemu_set_fd_handler(vs->csoc...
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0) { VncState *vs = VAR_0; vnc_lock_output(vs); if (vs->output.offset #ifdef CONFIG_VNC_WS || vs->ws_output.offset #endif ) { vnc_client_write_locked(VAR_0); } else if (vs->csock != -1) { qemu_set_fd_handler(vs->csock, vnc_client...
[ "void FUNC_0(void *VAR_0)\n{", "VncState *vs = VAR_0;", "vnc_lock_output(vs);", "if (vs->output.offset\n#ifdef CONFIG_VNC_WS\n|| vs->ws_output.offset\n#endif\n) {", "vnc_client_write_locked(VAR_0);", "} else if (vs->csock != -1) {", "qemu_set_fd_handler(vs->csock, vnc_client_read, NULL, vs);", "}", ...
[ 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 ] ]
23,548
static inline void RENAME(yuv2packed2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *uvbuf0, const uint16_t *uvbuf1, const uint16_t *abuf0, const uint16_t *abuf1, uint8_t *dest, int dstW, int yalpha, int uvalpha, int y) { int yalpha1=4095- yalpha; int ...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(yuv2packed2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *uvbuf0, const uint16_t *uvbuf1, const uint16_t *abuf0, const uint16_t *abuf1, uint8_t *dest, int dstW, int yalpha, int uvalpha, int y) { int yalpha1=4095- yalpha; int ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(yuv2packed2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *uvbuf0, const uint16_t *uvbuf1, const uint16_t *abuf0, const uint16_t *abuf1, uint8_t *dest, int dstW, int yalpha, int uvalpha, int y) { int VAR_0=4095- yalpha; int VA...
[ "static inline void FUNC_0(yuv2packed2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *uvbuf0, const uint16_t *uvbuf1,\nconst uint16_t *abuf0, const uint16_t *abuf1, uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)\n{", "int VAR_0=4095- yalpha;", "int VAR_1=4095-uvalpha;", ...
[ 0, 0, 0, 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 ], [ 23, 25 ], [ 27, 29, 31, 33, 35, 37, 39, 41, 45, 47, 49, 51, 53 ], [ 55, 57 ], [ 59 ], [ 61, 63, 65,...
23,549
static void default_qemu_fd_register(int fd) { }
false
qemu
1f001dc7bc9e435bf231a5b0edcad1c7c2bd6214
static void default_qemu_fd_register(int fd) { }
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0) { }
[ "static void FUNC_0(int VAR_0)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3 ], [ 5 ] ]
23,550
int bdrv_is_sg(BlockDriverState *bs) { return bs->sg; }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
int bdrv_is_sg(BlockDriverState *bs) { return bs->sg; }
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0) { return VAR_0->sg; }
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "return VAR_0->sg;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
23,551
void cpu_dump_state (CPUState *env, FILE *f, fprintf_function cpu_fprintf, int flags) { #define RGPL 4 #define RFPL 4 int i; cpu_fprintf(f, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR " TARGET_FMT_lx " XER " TARGET_FMT_lx "\n", env->nip, e...
false
qemu
bb593904c18e22ea0671dfa1b02e24982f2bf0ea
void cpu_dump_state (CPUState *env, FILE *f, fprintf_function cpu_fprintf, int flags) { #define RGPL 4 #define RFPL 4 int i; cpu_fprintf(f, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR " TARGET_FMT_lx " XER " TARGET_FMT_lx "\n", env->nip, e...
{ "code": [], "line_no": [] }
void FUNC_0 (CPUState *VAR_0, FILE *VAR_1, fprintf_function VAR_2, int VAR_3) { #define RGPL 4 #define RFPL 4 int VAR_4; VAR_2(VAR_1, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR " TARGET_FMT_lx " XER " TARGET_FMT_lx "\n", VAR_0->nip, VAR_0...
[ "void FUNC_0 (CPUState *VAR_0, FILE *VAR_1, fprintf_function VAR_2,\nint VAR_3)\n{", "#define RGPL 4\n#define RFPL 4\nint VAR_4;", "VAR_2(VAR_1, \"NIP \" TARGET_FMT_lx \" LR \" TARGET_FMT_lx \" CTR \"\nTARGET_FMT_lx \" XER \" TARGET_FMT_lx \"\\n\",\nVAR_0->nip, VAR_0->lr, VAR_0->ctr, VAR_0->xer);", "VAR_2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 13 ], [ 17, 19, 21 ], [ 23, 25, 27 ], [ 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49 ], [ 51, 53 ], [ 55, 57 ], [ 59 ], [ 61, 63 ], [ 65 ...
23,552
static int sockaddr_to_str(char *dest, int max_len, struct sockaddr_storage *ss, socklen_t ss_len, struct sockaddr_storage *ps, socklen_t ps_len, bool is_listen, bool is_telnet) { char shost[NI_MAXHOST], sserv[NI_MAXSERV]; ch...
false
qemu
0ff0fad23d3693ecf7a0c462cdb48f0e60f93808
static int sockaddr_to_str(char *dest, int max_len, struct sockaddr_storage *ss, socklen_t ss_len, struct sockaddr_storage *ps, socklen_t ps_len, bool is_listen, bool is_telnet) { char shost[NI_MAXHOST], sserv[NI_MAXSERV]; ch...
{ "code": [], "line_no": [] }
static int FUNC_0(char *VAR_0, int VAR_1, struct sockaddr_storage *VAR_2, socklen_t VAR_3, struct sockaddr_storage *VAR_4, socklen_t VAR_5, bool VAR_6, bool VAR_7) { char VAR_8[NI_MAXHOST], sserv[NI_MAXSERV]; char VAR_9[NI_MA...
[ "static int FUNC_0(char *VAR_0, int VAR_1,\nstruct sockaddr_storage *VAR_2, socklen_t VAR_3,\nstruct sockaddr_storage *VAR_4, socklen_t VAR_5,\nbool VAR_6, bool VAR_7)\n{", "char VAR_8[NI_MAXHOST], sserv[NI_MAXSERV];", "char VAR_9[NI_MAXHOST], pserv[NI_MAXSERV];", "const char *VAR_10 = \"\", *VAR_11 = \"\";",...
[ 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 ], [ 41, 43, 45 ], [ 47, 49 ], [ 51, 53, 55, 57, 59 ], [ 63,...
23,553
static inline unsigned int get_seg_limit(uint32_t e1, uint32_t e2) { unsigned int limit; limit = (e1 & 0xffff) | (e2 & 0x000f0000); if (e2 & DESC_G_MASK) limit = (limit << 12) | 0xfff; return limit; }
false
qemu
7e84c2498f0ff3999937d18d1e9abaa030400000
static inline unsigned int get_seg_limit(uint32_t e1, uint32_t e2) { unsigned int limit; limit = (e1 & 0xffff) | (e2 & 0x000f0000); if (e2 & DESC_G_MASK) limit = (limit << 12) | 0xfff; return limit; }
{ "code": [], "line_no": [] }
static inline unsigned int FUNC_0(uint32_t VAR_0, uint32_t VAR_1) { unsigned int VAR_2; VAR_2 = (VAR_0 & 0xffff) | (VAR_1 & 0x000f0000); if (VAR_1 & DESC_G_MASK) VAR_2 = (VAR_2 << 12) | 0xfff; return VAR_2; }
[ "static inline unsigned int FUNC_0(uint32_t VAR_0, uint32_t VAR_1)\n{", "unsigned int VAR_2;", "VAR_2 = (VAR_0 & 0xffff) | (VAR_1 & 0x000f0000);", "if (VAR_1 & DESC_G_MASK)\nVAR_2 = (VAR_2 << 12) | 0xfff;", "return VAR_2;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ] ]
23,554
void hmp_info_block(Monitor *mon, const QDict *qdict) { BlockInfoList *block_list, *info; ImageInfo *image_info; const char *device = qdict_get_try_str(qdict, "device"); bool verbose = qdict_get_try_bool(qdict, "verbose", 0); block_list = qmp_query_block(NULL); for (info = block_list;...
false
qemu
fbe2e26c15af35e4d157874dc80f6a19eebaa83b
void hmp_info_block(Monitor *mon, const QDict *qdict) { BlockInfoList *block_list, *info; ImageInfo *image_info; const char *device = qdict_get_try_str(qdict, "device"); bool verbose = qdict_get_try_bool(qdict, "verbose", 0); block_list = qmp_query_block(NULL); for (info = block_list;...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { BlockInfoList *block_list, *info; ImageInfo *image_info; const char *VAR_2 = qdict_get_try_str(VAR_1, "VAR_2"); bool verbose = qdict_get_try_bool(VAR_1, "verbose", 0); block_list = qmp_query_block(NULL); for (info = block_list; info; i...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "BlockInfoList *block_list, *info;", "ImageInfo *image_info;", "const char *VAR_2 = qdict_get_try_str(VAR_1, \"VAR_2\");", "bool verbose = qdict_get_try_bool(VAR_1, \"verbose\", 0);", "block_list = qmp_query_block(NULL);", "for (info = block_list; in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 53 ...
23,556
void put_no_rnd_pixels16_xy2_altivec(uint8_t * block, const uint8_t * pixels, int line_size, int h) { POWERPC_TBL_DECLARE(altivec_put_no_rnd_pixels16_xy2_num, 1); #ifdef ALTIVEC_USE_REFERENCE_C_CODE int j; POWERPC_TBL_START_COUNT(altivec_put_no_rnd_pixels16_xy2_num, 1); for (j = 0; j < 4; j++) { ...
false
FFmpeg
e45a2872fafe631c14aee9f79d0963d68c4fc1fd
void put_no_rnd_pixels16_xy2_altivec(uint8_t * block, const uint8_t * pixels, int line_size, int h) { POWERPC_TBL_DECLARE(altivec_put_no_rnd_pixels16_xy2_num, 1); #ifdef ALTIVEC_USE_REFERENCE_C_CODE int j; POWERPC_TBL_START_COUNT(altivec_put_no_rnd_pixels16_xy2_num, 1); for (j = 0; j < 4; j++) { ...
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t * VAR_0, const uint8_t * VAR_1, int VAR_2, int VAR_3) { POWERPC_TBL_DECLARE(altivec_put_no_rnd_pixels16_xy2_num, 1); #ifdef ALTIVEC_USE_REFERENCE_C_CODE int j; POWERPC_TBL_START_COUNT(altivec_put_no_rnd_pixels16_xy2_num, 1); for (j = 0; j < 4; j++) { int VAR_4; const ui...
[ "void FUNC_0(uint8_t * VAR_0, const uint8_t * VAR_1, int VAR_2, int VAR_3)\n{", "POWERPC_TBL_DECLARE(altivec_put_no_rnd_pixels16_xy2_num, 1);", "#ifdef ALTIVEC_USE_REFERENCE_C_CODE\nint j;", "POWERPC_TBL_START_COUNT(altivec_put_no_rnd_pixels16_xy2_num, 1);", "for (j = 0; j < 4; j++) {", "int VAR_4;", "c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45,...
23,557
static inline void rv34_mc(RV34DecContext *r, const int block_type, const int xoff, const int yoff, int mv_off, const int width, const int height, int dir, const int thirdpel, int weighted, qpel_mc_func (*qpel_mc...
false
FFmpeg
3547f8e8f8418af0c578eba0de62ecba08e460c2
static inline void rv34_mc(RV34DecContext *r, const int block_type, const int xoff, const int yoff, int mv_off, const int width, const int height, int dir, const int thirdpel, int weighted, qpel_mc_func (*qpel_mc...
{ "code": [], "line_no": [] }
static inline void FUNC_0(RV34DecContext *VAR_0, const int VAR_1, const int VAR_2, const int VAR_3, int VAR_4, const int VAR_5, const int VAR_6, int VAR_7, const int VAR_8, int VAR_9, VAR_10 (*qpel_mc)[16], ...
[ "static inline void FUNC_0(RV34DecContext *VAR_0, const int VAR_1,\nconst int VAR_2, const int VAR_3, int VAR_4,\nconst int VAR_5, const int VAR_6, int VAR_7,\nconst int VAR_8, int VAR_9,\nVAR_10 (*qpel_mc)[16],\nVAR_11 (*VAR_12))\n{", "MpegEncContext *s = &VAR_0->s;", "uint8_t *Y, *U, *V, *srcY, *srcU, *srcV;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
23,558
static int ftp_retrieve(FTPContext *s) { char command[CONTROL_BUFFER_SIZE]; const int retr_codes[] = {150, 550, 0}; /* 550 is incorrect code */ snprintf(command, sizeof(command), "RETR %s\r\n", s->path); if (ftp_send_command(s, command, retr_codes, NULL) != 150) return AVERROR(EIO); ...
false
FFmpeg
ff35c7cdfac3a4affa9e98a806281da99f66787f
static int ftp_retrieve(FTPContext *s) { char command[CONTROL_BUFFER_SIZE]; const int retr_codes[] = {150, 550, 0}; snprintf(command, sizeof(command), "RETR %s\r\n", s->path); if (ftp_send_command(s, command, retr_codes, NULL) != 150) return AVERROR(EIO); s->state = DOWNLOADING; ...
{ "code": [], "line_no": [] }
static int FUNC_0(FTPContext *VAR_0) { char VAR_1[CONTROL_BUFFER_SIZE]; const int VAR_2[] = {150, 550, 0}; snprintf(VAR_1, sizeof(VAR_1), "RETR %VAR_0\r\n", VAR_0->path); if (ftp_send_command(VAR_0, VAR_1, VAR_2, NULL) != 150) return AVERROR(EIO); VAR_0->state = DOWNLOADING; ...
[ "static int FUNC_0(FTPContext *VAR_0)\n{", "char VAR_1[CONTROL_BUFFER_SIZE];", "const int VAR_2[] = {150, 550, 0};", "snprintf(VAR_1, sizeof(VAR_1), \"RETR %VAR_0\\r\\n\", VAR_0->path);", "if (ftp_send_command(VAR_0, VAR_1, VAR_2, NULL) != 150)\nreturn AVERROR(EIO);", "VAR_0->state = DOWNLOADING;", "ret...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 23 ], [ 25 ] ]
23,559
void dct_unquantize_h263_altivec(MpegEncContext *s, DCTELEM *block, int n, int qscale) { POWERPC_TBL_DECLARE(altivec_dct_unquantize_h263_num, 1); int i, level, qmul, qadd; int nCoeffs; assert(s->block_last_index[n]>=0); POWERPC_TBL_START_COUNT(altivec_dct_unq...
false
FFmpeg
e45a2872fafe631c14aee9f79d0963d68c4fc1fd
void dct_unquantize_h263_altivec(MpegEncContext *s, DCTELEM *block, int n, int qscale) { POWERPC_TBL_DECLARE(altivec_dct_unquantize_h263_num, 1); int i, level, qmul, qadd; int nCoeffs; assert(s->block_last_index[n]>=0); POWERPC_TBL_START_COUNT(altivec_dct_unq...
{ "code": [], "line_no": [] }
void FUNC_0(MpegEncContext *VAR_0, DCTELEM *VAR_1, int VAR_2, int VAR_3) { POWERPC_TBL_DECLARE(altivec_dct_unquantize_h263_num, 1); int VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8; assert(VAR_0->block_last_index[VAR_2]>=0); POWERPC_TBL_START_COUNT(altivec_dct_unqua...
[ "void FUNC_0(MpegEncContext *VAR_0,\nDCTELEM *VAR_1, int VAR_2, int VAR_3)\n{", "POWERPC_TBL_DECLARE(altivec_dct_unquantize_h263_num, 1);", "int VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8;", "assert(VAR_0->block_last_index[VAR_2]>=0);", "POWERPC_TBL_START_COUNT(altivec_dct_unquantize_h263_num, 1);", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
23,561
DECL_IMDCT_BLOCKS(sse,sse) DECL_IMDCT_BLOCKS(sse2,sse) DECL_IMDCT_BLOCKS(sse3,sse) DECL_IMDCT_BLOCKS(ssse3,sse) DECL_IMDCT_BLOCKS(avx,avx) #endif /* HAVE_YASM */ void ff_mpadsp_init_mmx(MPADSPContext *s) { int mm_flags = av_get_cpu_flags(); int i, j; for (j = 0; j < 4; j++) { for (i =...
false
FFmpeg
e0c6cce44729d94e2a5507a4b6d031f23e8bd7b6
DECL_IMDCT_BLOCKS(sse,sse) DECL_IMDCT_BLOCKS(sse2,sse) DECL_IMDCT_BLOCKS(sse3,sse) DECL_IMDCT_BLOCKS(ssse3,sse) DECL_IMDCT_BLOCKS(avx,avx) #endif void ff_mpadsp_init_mmx(MPADSPContext *s) { int mm_flags = av_get_cpu_flags(); int i, j; for (j = 0; j < 4; j++) { for (i = 0; i < 40; i +...
{ "code": [], "line_no": [] }
DECL_IMDCT_BLOCKS(sse,sse) DECL_IMDCT_BLOCKS(sse2,sse) DECL_IMDCT_BLOCKS(sse3,sse) DECL_IMDCT_BLOCKS(ssse3,sse) DECL_IMDCT_BLOCKS(avx,avx) #endif void ff_mpadsp_init_mmx(MPADSPContext *s) { int mm_flags = av_get_cpu_flags(); int i, j; for (j = 0; j < 4; j++) { for (i = 0; i < 40; i +...
[ "DECL_IMDCT_BLOCKS(sse,sse)\nDECL_IMDCT_BLOCKS(sse2,sse)\nDECL_IMDCT_BLOCKS(sse3,sse)\nDECL_IMDCT_BLOCKS(ssse3,sse)\nDECL_IMDCT_BLOCKS(avx,avx)\n#endif\nvoid ff_mpadsp_init_mmx(MPADSPContext *s)\n{", "int mm_flags = av_get_cpu_flags();", "int i, j;", "for (j = 0; j < 4; j++) {", "for (i = 0; i < 40; 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 ]
[ [ 1, 3, 5, 7, 9, 11, 15, 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [...
23,562
static inline int sub_left_prediction(HYuvContext *s, uint8_t *dst, const uint8_t *src, int w, int left) { int i; if (s->bps <= 8) { if (w < 32) { for (i = 0; i < w; i++) { const int temp = src[i]; dst[i] = temp - ...
false
FFmpeg
57877f2b449f265ae1dd070b46aaadff4f0b3e34
static inline int sub_left_prediction(HYuvContext *s, uint8_t *dst, const uint8_t *src, int w, int left) { int i; if (s->bps <= 8) { if (w < 32) { for (i = 0; i < w; i++) { const int temp = src[i]; dst[i] = temp - ...
{ "code": [], "line_no": [] }
static inline int FUNC_0(HYuvContext *VAR_0, uint8_t *VAR_1, const uint8_t *VAR_2, int VAR_3, int VAR_4) { int VAR_5; if (VAR_0->bps <= 8) { if (VAR_3 < 32) { for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5++) { const int VAR_8 = VAR_2[VAR_5]...
[ "static inline int FUNC_0(HYuvContext *VAR_0, uint8_t *VAR_1,\nconst uint8_t *VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5;", "if (VAR_0->bps <= 8) {", "if (VAR_3 < 32) {", "for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5++) {", "const int VAR_8 = VAR_2[VAR_5];", "VAR_1[VAR_5] = VAR_8 - VAR_4;", "VAR_4 = VAR_8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [...
23,563
void kvm_arm_reset_vcpu(ARMCPU *cpu) { /* Re-init VCPU so that all registers are set to * their respective reset values. */ kvm_arm_vcpu_init(CPU(cpu)); write_kvmstate_to_list(cpu); }
true
qemu
25f2895e0e437a3548f9794846001fb5d5ab853d
void kvm_arm_reset_vcpu(ARMCPU *cpu) { kvm_arm_vcpu_init(CPU(cpu)); write_kvmstate_to_list(cpu); }
{ "code": [ " kvm_arm_vcpu_init(CPU(cpu));", " write_kvmstate_to_list(cpu);" ], "line_no": [ 11, 13 ] }
void FUNC_0(ARMCPU *VAR_0) { kvm_arm_vcpu_init(CPU(VAR_0)); write_kvmstate_to_list(VAR_0); }
[ "void FUNC_0(ARMCPU *VAR_0)\n{", "kvm_arm_vcpu_init(CPU(VAR_0));", "write_kvmstate_to_list(VAR_0);", "}" ]
[ 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 11 ], [ 13 ], [ 15 ] ]
23,564
static uint32_t icp_accept(struct icp_server_state *ss) { uint32_t xirr = ss->xirr; qemu_irq_lower(ss->output); ss->xirr = ss->pending_priority << 24; trace_xics_icp_accept(xirr, ss->xirr); return xirr; }
true
qemu
e03c902cb617414dae49d77a810f6957ff7affac
static uint32_t icp_accept(struct icp_server_state *ss) { uint32_t xirr = ss->xirr; qemu_irq_lower(ss->output); ss->xirr = ss->pending_priority << 24; trace_xics_icp_accept(xirr, ss->xirr); return xirr; }
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(struct icp_server_state *ss) { uint32_t xirr = ss->xirr; qemu_irq_lower(ss->output); ss->xirr = ss->pending_priority << 24; trace_xics_icp_accept(xirr, ss->xirr); return xirr; }
[ "static uint32_t FUNC_0(struct icp_server_state *ss)\n{", "uint32_t xirr = ss->xirr;", "qemu_irq_lower(ss->output);", "ss->xirr = ss->pending_priority << 24;", "trace_xics_icp_accept(xirr, ss->xirr);", "return xirr;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 16 ], [ 20 ], [ 22 ] ]
23,565
VIOsPAPRBus *spapr_vio_bus_init(void) { VIOsPAPRBus *bus; BusState *qbus; DeviceState *dev; /* Create bridge device */ dev = qdev_create(NULL, "spapr-vio-bridge"); qdev_init_nofail(dev); /* Create bus on bridge device */ qbus = qbus_create(TYPE_SPAPR_VIO_BUS, dev, "spapr-v...
true
qemu
ad0ebb91cd8b5fdc4a583b03645677771f420a46
VIOsPAPRBus *spapr_vio_bus_init(void) { VIOsPAPRBus *bus; BusState *qbus; DeviceState *dev; dev = qdev_create(NULL, "spapr-vio-bridge"); qdev_init_nofail(dev); qbus = qbus_create(TYPE_SPAPR_VIO_BUS, dev, "spapr-vio"); bus = DO_UPCAST(VIOsPAPRBus, bus, qbus); bu...
{ "code": [ " spapr_register_hypercall(H_PUT_TCE, h_put_tce);" ], "line_no": [ 41 ] }
VIOsPAPRBus *FUNC_0(void) { VIOsPAPRBus *bus; BusState *qbus; DeviceState *dev; dev = qdev_create(NULL, "spapr-vio-bridge"); qdev_init_nofail(dev); qbus = qbus_create(TYPE_SPAPR_VIO_BUS, dev, "spapr-vio"); bus = DO_UPCAST(VIOsPAPRBus, bus, qbus); bus->next_reg ...
[ "VIOsPAPRBus *FUNC_0(void)\n{", "VIOsPAPRBus *bus;", "BusState *qbus;", "DeviceState *dev;", "dev = qdev_create(NULL, \"spapr-vio-bridge\");", "qdev_init_nofail(dev);", "qbus = qbus_create(TYPE_SPAPR_VIO_BUS, dev, \"spapr-vio\");", "bus = DO_UPCAST(VIOsPAPRBus, bus, qbus);", "bus->next_reg = 0x1000;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 59 ], [ 61 ], [ 65 ], [ 67 ] ]
23,566
int ffurl_register_protocol(URLProtocol *protocol, int size) { URLProtocol **p; if (size < sizeof(URLProtocol)) { URLProtocol *temp = av_mallocz(sizeof(URLProtocol)); memcpy(temp, protocol, size); protocol = temp; } p = &first_protocol; while (*p != NULL) p ...
true
FFmpeg
0c5f839693da2276c2da23400f67a67be4ea0af1
int ffurl_register_protocol(URLProtocol *protocol, int size) { URLProtocol **p; if (size < sizeof(URLProtocol)) { URLProtocol *temp = av_mallocz(sizeof(URLProtocol)); memcpy(temp, protocol, size); protocol = temp; } p = &first_protocol; while (*p != NULL) p ...
{ "code": [ "int ffurl_register_protocol(URLProtocol *protocol, int size)", " if (size < sizeof(URLProtocol)) {", " URLProtocol *temp = av_mallocz(sizeof(URLProtocol));", " memcpy(temp, protocol, size);", " protocol = temp;" ], "line_no": [ 1, 7, 9, 11, ...
int FUNC_0(URLProtocol *VAR_0, int VAR_1) { URLProtocol **p; if (VAR_1 < sizeof(URLProtocol)) { URLProtocol *temp = av_mallocz(sizeof(URLProtocol)); memcpy(temp, VAR_0, VAR_1); VAR_0 = temp; } p = &first_protocol; while (*p != NULL) p = &(*p)->next; *p ...
[ "int FUNC_0(URLProtocol *VAR_0, int VAR_1)\n{", "URLProtocol **p;", "if (VAR_1 < sizeof(URLProtocol)) {", "URLProtocol *temp = av_mallocz(sizeof(URLProtocol));", "memcpy(temp, VAR_0, VAR_1);", "VAR_0 = temp;", "}", "p = &first_protocol;", "while (*p != NULL)\np = &(*p)->next;", "*p = V...
[ 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
23,567
static void vmsvga_update_display(void *opaque) { struct vmsvga_state_s *s = opaque; DisplaySurface *surface; bool dirty = false; if (!s->enable) { s->vga.update(&s->vga); return; } vmsvga_check_size(s); surface = qemu_console_surface(s->vga.con); vmsvga_...
true
qemu
eb2f9b024d68884a3b25e63e4dbf90b67f8da236
static void vmsvga_update_display(void *opaque) { struct vmsvga_state_s *s = opaque; DisplaySurface *surface; bool dirty = false; if (!s->enable) { s->vga.update(&s->vga); return; } vmsvga_check_size(s); surface = qemu_console_surface(s->vga.con); vmsvga_...
{ "code": [ " memcpy(surface_data(surface), s->vga.vram_ptr,", " surface_stride(surface) * surface_height(surface));", " DisplaySurface *surface;", " surface = qemu_console_surface(s->vga.con);" ], "line_no": [ 59, 61, 7, 25 ] }
static void FUNC_0(void *VAR_0) { struct vmsvga_state_s *VAR_1 = VAR_0; DisplaySurface *surface; bool dirty = false; if (!VAR_1->enable) { VAR_1->vga.update(&VAR_1->vga); return; } vmsvga_check_size(VAR_1); surface = qemu_console_surface(VAR_1->vga.con); ...
[ "static void FUNC_0(void *VAR_0)\n{", "struct vmsvga_state_s *VAR_1 = VAR_0;", "DisplaySurface *surface;", "bool dirty = false;", "if (!VAR_1->enable) {", "VAR_1->vga.update(&VAR_1->vga);", "return;", "}", "vmsvga_check_size(VAR_1);", "surface = qemu_console_surface(VAR_1->vga.con);", "vmsvga_fi...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 43 ], [ 45 ], [ 47, 49, 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59,...
23,568
static void rv34_idct_add_c(uint8_t *dst, int stride, DCTELEM *block){ int temp[16]; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int i; rv34_row_transform(temp, block); memset(block, 0, 16*sizeof(DCTELEM)); for(i = 0; i < 4; i++){ const int z0 = 13*(temp[4*0+i] + tem...
true
FFmpeg
3ab9a2a5577d445252724af4067d2a7c8a378efa
static void rv34_idct_add_c(uint8_t *dst, int stride, DCTELEM *block){ int temp[16]; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int i; rv34_row_transform(temp, block); memset(block, 0, 16*sizeof(DCTELEM)); for(i = 0; i < 4; i++){ const int z0 = 13*(temp[4*0+i] + tem...
{ "code": [ "static void rv34_idct_add_c(uint8_t *dst, int stride, DCTELEM *block){" ], "line_no": [ 1 ] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2){ int VAR_3[16]; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int VAR_4; rv34_row_transform(VAR_3, VAR_2); memset(VAR_2, 0, 16*sizeof(DCTELEM)); for(VAR_4 = 0; VAR_4 < 4; VAR_4++){ const int VAR_5 = 13*(VAR_3[4...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2){", "int VAR_3[16];", "uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", "int VAR_4;", "rv34_row_transform(VAR_3, VAR_2);", "memset(VAR_2, 0, 16*sizeof(DCTELEM));", "for(VAR_4 = 0; VAR_4 < 4; VAR_4++){", "const int VAR_5 = 13*(VAR_3[4*0+...
[ 1, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ] ]
23,569
static void vfio_msi_interrupt(void *opaque) { VFIOMSIVector *vector = opaque; VFIODevice *vdev = vector->vdev; int nr = vector - vdev->msi_vectors; if (!event_notifier_test_and_clear(&vector->interrupt)) { return; } DPRINTF("%s(%04x:%02x:%02x.%x) vector %d\n", __func__, ...
true
qemu
b3ebc10c373ed5922d4bdb5076fd0e9fd7ff8056
static void vfio_msi_interrupt(void *opaque) { VFIOMSIVector *vector = opaque; VFIODevice *vdev = vector->vdev; int nr = vector - vdev->msi_vectors; if (!event_notifier_test_and_clear(&vector->interrupt)) { return; } DPRINTF("%s(%04x:%02x:%02x.%x) vector %d\n", __func__, ...
{ "code": [ " DPRINTF(\"%s(%04x:%02x:%02x.%x) vector %d\\n\", __func__,", " vdev->host.function, nr);" ], "line_no": [ 21, 25 ] }
static void FUNC_0(void *VAR_0) { VFIOMSIVector *vector = VAR_0; VFIODevice *vdev = vector->vdev; int VAR_1 = vector - vdev->msi_vectors; if (!event_notifier_test_and_clear(&vector->interrupt)) { return; } DPRINTF("%s(%04x:%02x:%02x.%x) vector %d\n", __func__, vd...
[ "static void FUNC_0(void *VAR_0)\n{", "VFIOMSIVector *vector = VAR_0;", "VFIODevice *vdev = vector->vdev;", "int VAR_1 = vector - vdev->msi_vectors;", "if (!event_notifier_test_and_clear(&vector->interrupt)) {", "return;", "}", "DPRINTF(\"%s(%04x:%02x:%02x.%x) vector %d\\n\", __func__,\nvdev->host.dom...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
23,570
int av_reallocp(void *ptr, size_t size) { void **ptrptr = ptr; void *ret; ret = av_realloc(*ptrptr, size); if (!ret) { return AVERROR(ENOMEM); *ptrptr = ret;
true
FFmpeg
67e285ceca1cb602a5ab87010b30d904527924fe
int av_reallocp(void *ptr, size_t size) { void **ptrptr = ptr; void *ret; ret = av_realloc(*ptrptr, size); if (!ret) { return AVERROR(ENOMEM); *ptrptr = ret;
{ "code": [], "line_no": [] }
int FUNC_0(void *VAR_0, size_t VAR_1) { void **VAR_2 = VAR_0; void *VAR_3; VAR_3 = av_realloc(*VAR_2, VAR_1); if (!VAR_3) { return AVERROR(ENOMEM); *VAR_2 = VAR_3;
[ "int FUNC_0(void *VAR_0, size_t VAR_1)\n{", "void **VAR_2 = VAR_0;", "void *VAR_3;", "VAR_3 = av_realloc(*VAR_2, VAR_1);", "if (!VAR_3) {", "return AVERROR(ENOMEM);", "*VAR_2 = VAR_3;" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 15 ], [ 19 ], [ 22 ], [ 27 ] ]
23,571
static int alac_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *inbuffer = avpkt->data; int input_buffer_size = avpkt->size; ALACContext *alac = avctx->priv_data; int channels; unsigned int outputsamples; ...
true
FFmpeg
a8469223f6bb756a44f6579439fcae24ccc739b1
static int alac_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *inbuffer = avpkt->data; int input_buffer_size = avpkt->size; ALACContext *alac = avctx->priv_data; int channels; unsigned int outputsamples; ...
{ "code": [ " bastardized_rice_decompress(alac," ], "line_no": [ 193 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; ALACContext *alac = VAR_0->priv_data; int VAR_6; unsigned int VAR_7; int VAR_8; unsigned int VAR_9; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "ALACContext *alac = VAR_0->priv_data;", "int VAR_6;", "unsigned int VAR_7;", "int VAR_8;", "unsigned int VAR_9;", "int VAR_10;", "uint8_t 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 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 55 ], [...
23,572
static int avi_probe(AVProbeData *p) { /* check file header */ if (p->buf_size <= 32) return 0; if (p->buf[0] == 'R' && p->buf[1] == 'I' && p->buf[2] == 'F' && p->buf[3] == 'F' && p->buf[8] == 'A' && p->buf[9] == 'V' && p->buf[10] == 'I' && (p->buf[11] == ' ' || p->bu...
false
FFmpeg
87e8788680e16c51f6048af26f3f7830c35207a5
static int avi_probe(AVProbeData *p) { if (p->buf_size <= 32) return 0; if (p->buf[0] == 'R' && p->buf[1] == 'I' && p->buf[2] == 'F' && p->buf[3] == 'F' && p->buf[8] == 'A' && p->buf[9] == 'V' && p->buf[10] == 'I' && (p->buf[11] == ' ' || p->buf[11] == 0x19)) ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { if (VAR_0->buf_size <= 32) return 0; if (VAR_0->buf[0] == 'R' && VAR_0->buf[1] == 'I' && VAR_0->buf[2] == 'F' && VAR_0->buf[3] == 'F' && VAR_0->buf[8] == 'A' && VAR_0->buf[9] == 'V' && VAR_0->buf[10] == 'I' && (VAR_0->buf[11] =...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if (VAR_0->buf_size <= 32)\nreturn 0;", "if (VAR_0->buf[0] == 'R' && VAR_0->buf[1] == 'I' &&\nVAR_0->buf[2] == 'F' && VAR_0->buf[3] == 'F' &&\nVAR_0->buf[8] == 'A' && VAR_0->buf[9] == 'V' &&\nVAR_0->buf[10] == 'I' && (VAR_0->buf[11] == ' ' || VAR_0->buf[11] == 0x19))...
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7, 9 ], [ 11, 13, 15, 17, 19 ], [ 21, 23 ], [ 25 ] ]
23,573
static int decode_user_data(MpegEncContext *s, GetBitContext *gb){ char buf[256]; int i; int e; int ver = 0, build = 0, ver2 = 0, ver3 = 0; char last; for(i=0; i<255 && get_bits_count(gb) < gb->size_in_bits; i++){ if(show_bits(gb, 23) == 0) break; buf[i]= get_bits(gb, 8...
false
FFmpeg
9f0a705d46547ca0c3edab21f24cdb0fb3237185
static int decode_user_data(MpegEncContext *s, GetBitContext *gb){ char buf[256]; int i; int e; int ver = 0, build = 0, ver2 = 0, ver3 = 0; char last; for(i=0; i<255 && get_bits_count(gb) < gb->size_in_bits; i++){ if(show_bits(gb, 23) == 0) break; buf[i]= get_bits(gb, 8...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext *VAR_0, GetBitContext *VAR_1){ char VAR_2[256]; int VAR_3; int VAR_4; int VAR_5 = 0, VAR_6 = 0, VAR_7 = 0, VAR_8 = 0; char VAR_9; for(VAR_3=0; VAR_3<255 && get_bits_count(VAR_1) < VAR_1->size_in_bits; VAR_3++){ if(show_bits(VAR_1, 23) == 0) break...
[ "static int FUNC_0(MpegEncContext *VAR_0, GetBitContext *VAR_1){", "char VAR_2[256];", "int VAR_3;", "int VAR_4;", "int VAR_5 = 0, VAR_6 = 0, VAR_7 = 0, VAR_8 = 0;", "char VAR_9;", "for(VAR_3=0; VAR_3<255 && get_bits_count(VAR_1) < VAR_1->size_in_bits; VAR_3++){", "if(show_bits(VAR_1, 23) == 0) break;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
23,574
static void RENAME(yuv2yuv1_ar)(SwsContext *c, const int16_t *lumSrc, const int16_t *chrUSrc, const int16_t *chrVSrc, const int16_t *alpSrc, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, ...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
static void RENAME(yuv2yuv1_ar)(SwsContext *c, const int16_t *lumSrc, const int16_t *chrUSrc, const int16_t *chrVSrc, const int16_t *alpSrc, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, ...
{ "code": [], "line_no": [] }
static void FUNC_0(yuv2yuv1_ar)(SwsContext *c, const int16_t *lumSrc, const int16_t *chrUSrc, const int16_t *chrVSrc, const int16_t *alpSrc, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, ...
[ "static void FUNC_0(yuv2yuv1_ar)(SwsContext *c, const int16_t *lumSrc,\nconst int16_t *chrUSrc, const int16_t *chrVSrc,\nconst int16_t *alpSrc,\nuint8_t *dest, uint8_t *uDest, uint8_t *vDest,\nuint8_t *aDest, int dstW, int chrDstW)\n{", "int VAR_0= 4;", "const int16_t *VAR_1[4]= { alpSrc + dstW, lumSrc + dstW, ...
[ 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, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67 ...
23,577
void ff_put_h264_qpel8_mc02_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_vt_8w_msa(src - (stride * 2), stride, dst, stride, 8); }
false
FFmpeg
662234a9a22f1cd0f0ac83b8bb1ffadedca90c0a
void ff_put_h264_qpel8_mc02_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_vt_8w_msa(src - (stride * 2), stride, dst, stride, 8); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_vt_8w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 8); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_vt_8w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 8);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
23,578
static int read_pakt_chunk(AVFormatContext *s, int64_t size) { AVIOContext *pb = s->pb; AVStream *st = s->streams[0]; CaffContext *caf = s->priv_data; int64_t pos = 0, ccount; int num_packets, i; ccount = avio_tell(pb); num_packets = avio_rb64(pb); if (num_packets < 0 ...
false
FFmpeg
f5a9c35f886508b851011b7dd4ec18cc67b57d37
static int read_pakt_chunk(AVFormatContext *s, int64_t size) { AVIOContext *pb = s->pb; AVStream *st = s->streams[0]; CaffContext *caf = s->priv_data; int64_t pos = 0, ccount; int num_packets, i; ccount = avio_tell(pb); num_packets = avio_rb64(pb); if (num_packets < 0 ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1) { AVIOContext *pb = VAR_0->pb; AVStream *st = VAR_0->streams[0]; CaffContext *caf = VAR_0->priv_data; int64_t pos = 0, ccount; int VAR_2, VAR_3; ccount = avio_tell(pb); VAR_2 = avio_rb64(pb); if (VAR_2 < 0 || INT...
[ "static int FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1)\n{", "AVIOContext *pb = VAR_0->pb;", "AVStream *st = VAR_0->streams[0];", "CaffContext *caf = VAR_0->priv_data;", "int64_t pos = 0, ccount;", "int VAR_2, VAR_3;", "ccount = avio_tell(pb);", "VAR_2 = avio_rb64(pb);", "if (VAR_2 < 0 || IN...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
23,579
static void vp8_decode_mb_row_no_filter(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr) { decode_mb_row_no_filter(avctx, tdata, jobnr, threadnr, 0); }
true
FFmpeg
7b5ff7d57355dc608f0fd86e3ab32a2fda65e752
static void vp8_decode_mb_row_no_filter(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr) { decode_mb_row_no_filter(avctx, tdata, jobnr, threadnr, 0); }
{ "code": [ "static void vp8_decode_mb_row_no_filter(AVCodecContext *avctx, void *tdata,", " decode_mb_row_no_filter(avctx, tdata, jobnr, threadnr, 0);" ], "line_no": [ 1, 7 ] }
static void FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3) { decode_mb_row_no_filter(VAR_0, VAR_1, VAR_2, VAR_3, 0); }
[ "static void FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint VAR_2, int VAR_3)\n{", "decode_mb_row_no_filter(VAR_0, VAR_1, VAR_2, VAR_3, 0);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
23,581
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...
true
FFmpeg
4a7876c6e4e62e94d51e364ba99aae4da7671238
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 ], [...
23,582
void usb_packet_unmap(USBPacket *p) { int is_write = (p->pid == USB_TOKEN_IN); int i; for (i = 0; i < p->iov.niov; i++) { cpu_physical_memory_unmap(p->iov.iov[i].iov_base, p->iov.iov[i].iov_len, is_write, p->iov.iov[i].iov_...
true
qemu
e2f89926f19d2940eda070542501f39f51a8c81f
void usb_packet_unmap(USBPacket *p) { int is_write = (p->pid == USB_TOKEN_IN); int i; for (i = 0; i < p->iov.niov; i++) { cpu_physical_memory_unmap(p->iov.iov[i].iov_base, p->iov.iov[i].iov_len, is_write, p->iov.iov[i].iov_...
{ "code": [ " int is_write = (p->pid == USB_TOKEN_IN);", "void usb_packet_unmap(USBPacket *p)", " int is_write = (p->pid == USB_TOKEN_IN);", " cpu_physical_memory_unmap(p->iov.iov[i].iov_base,", " p->iov.iov[i].iov_len, is_write,", " ...
void FUNC_0(USBPacket *VAR_0) { int VAR_1 = (VAR_0->pid == USB_TOKEN_IN); int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_0->iov.niov; VAR_2++) { cpu_physical_memory_unmap(VAR_0->iov.iov[VAR_2].iov_base, VAR_0->iov.iov[VAR_2].iov_len, VAR_1, ...
[ "void FUNC_0(USBPacket *VAR_0)\n{", "int VAR_1 = (VAR_0->pid == USB_TOKEN_IN);", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < VAR_0->iov.niov; VAR_2++) {", "cpu_physical_memory_unmap(VAR_0->iov.iov[VAR_2].iov_base,\nVAR_0->iov.iov[VAR_2].iov_len, VAR_1,\nVAR_0->iov.iov[VAR_2].iov_len);", "}", "}" ]
[ 1, 1, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15, 17 ], [ 19 ], [ 21 ] ]
23,583
static void gen_mfc0 (DisasContext *ctx, int reg, int sel) { const char *rn = "invalid"; switch (reg) { case 0: switch (sel) { case 0: gen_op_mfc0_index(); rn = "Index"; break; case 1: // gen_op_mfc0_mvpcontrol(); /* MT ASE ...
false
qemu
3a95e3a7d9a6fd7610fe483778ff7016d23be5ec
static void gen_mfc0 (DisasContext *ctx, int reg, int sel) { const char *rn = "invalid"; switch (reg) { case 0: switch (sel) { case 0: gen_op_mfc0_index(); rn = "Index"; break; case 1: rn = "MVPControl"; case 2...
{ "code": [], "line_no": [] }
static void FUNC_0 (DisasContext *VAR_0, int VAR_1, int VAR_2) { const char *VAR_3 = "invalid"; switch (VAR_1) { case 0: switch (VAR_2) { case 0: gen_op_mfc0_index(); VAR_3 = "Index"; break; case 1: VAR_3 = "MVPControl"; ...
[ "static void FUNC_0 (DisasContext *VAR_0, int VAR_1, int VAR_2)\n{", "const char *VAR_3 = \"invalid\";", "switch (VAR_1) {", "case 0:\nswitch (VAR_2) {", "case 0:\ngen_op_mfc0_index();", "VAR_3 = \"Index\";", "break;", "case 1:\nVAR_3 = \"MVPControl\";", "case 2:\nVAR_3 = \"MVPConf0\";", "case 3:\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 27 ], [ 31, 35 ], [ 39, 43 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55, 57 ], [ 59, 61 ], [ 63...
23,584
static int roq_decode_end(AVCodecContext *avctx) { RoqContext *s = avctx->priv_data; /* release the last frame */ avctx->release_buffer(avctx, &s->last_frame); return 0; }
false
FFmpeg
b9029997d4694b6533556480fe0ab1f3f9779a56
static int roq_decode_end(AVCodecContext *avctx) { RoqContext *s = avctx->priv_data; avctx->release_buffer(avctx, &s->last_frame); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { RoqContext *s = VAR_0->priv_data; VAR_0->release_buffer(VAR_0, &s->last_frame); return 0; }
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "RoqContext *s = VAR_0->priv_data;", "VAR_0->release_buffer(VAR_0, &s->last_frame);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 15 ], [ 17 ] ]
23,585
static void tgen_branch(TCGContext *s, int cc, int labelno) { TCGLabel* l = &s->labels[labelno]; if (l->has_value) { tgen_gotoi(s, cc, l->u.value_ptr); } else if (USE_LONG_BRANCHES) { tcg_out16(s, RIL_BRCL | (cc << 4)); tcg_out_reloc(s, s->code_ptr, R_390_PC32DBL, labelno, -2)...
false
qemu
bec1631100323fac0900aea71043d5c4e22fc2fa
static void tgen_branch(TCGContext *s, int cc, int labelno) { TCGLabel* l = &s->labels[labelno]; if (l->has_value) { tgen_gotoi(s, cc, l->u.value_ptr); } else if (USE_LONG_BRANCHES) { tcg_out16(s, RIL_BRCL | (cc << 4)); tcg_out_reloc(s, s->code_ptr, R_390_PC32DBL, labelno, -2)...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2) { TCGLabel* l = &VAR_0->labels[VAR_2]; if (l->has_value) { tgen_gotoi(VAR_0, VAR_1, l->u.value_ptr); } else if (USE_LONG_BRANCHES) { tcg_out16(VAR_0, RIL_BRCL | (VAR_1 << 4)); tcg_out_reloc(VAR_0, VAR_0->code_ptr, R_3...
[ "static void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2)\n{", "TCGLabel* l = &VAR_0->labels[VAR_2];", "if (l->has_value) {", "tgen_gotoi(VAR_0, VAR_1, l->u.value_ptr);", "} else if (USE_LONG_BRANCHES) {", "tcg_out16(VAR_0, RIL_BRCL | (VAR_1 << 4));", "tcg_out_reloc(VAR_0, VAR_0->code_ptr, R_390_PC32...
[ 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 ] ]
23,586
static void s390_pci_generate_event(uint8_t cc, uint16_t pec, uint32_t fh, uint32_t fid, uint64_t faddr, uint32_t e) { SeiContainer *sei_cont; S390pciState *s = S390_PCI_HOST_BRIDGE( object_resolve_path(TYPE_S390_PCI_HOST_BRIDGE, NULL)); if (!s) { ...
false
qemu
e7d336959b7c01699702dcda4b54a822972d74a8
static void s390_pci_generate_event(uint8_t cc, uint16_t pec, uint32_t fh, uint32_t fid, uint64_t faddr, uint32_t e) { SeiContainer *sei_cont; S390pciState *s = S390_PCI_HOST_BRIDGE( object_resolve_path(TYPE_S390_PCI_HOST_BRIDGE, NULL)); if (!s) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t VAR_0, uint16_t VAR_1, uint32_t VAR_2, uint32_t VAR_3, uint64_t VAR_4, uint32_t VAR_5) { SeiContainer *sei_cont; S390pciState *s = S390_PCI_HOST_BRIDGE( object_resolve_path(TYPE_S390_PCI_HOST_BRIDGE, NULL)); if (!s) { re...
[ "static void FUNC_0(uint8_t VAR_0, uint16_t VAR_1, uint32_t VAR_2,\nuint32_t VAR_3, uint64_t VAR_4, uint32_t VAR_5)\n{", "SeiContainer *sei_cont;", "S390pciState *s = S390_PCI_HOST_BRIDGE(\nobject_resolve_path(TYPE_S390_PCI_HOST_BRIDGE, NULL));", "if (!s) {", "return;", "}", "sei_cont = g_malloc0(sizeof...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ] ]
23,588
static void pci_spapr_set_irq(void *opaque, int irq_num, int level) { /* * Here we use the number returned by pci_spapr_map_irq to find a * corresponding qemu_irq. */ sPAPRPHBState *phb = opaque; qemu_set_irq(phb->lsi_table[irq_num].qirq, level); }
false
qemu
a307d59434ba78b97544b42b8cfd24a1b62e39a6
static void pci_spapr_set_irq(void *opaque, int irq_num, int level) { sPAPRPHBState *phb = opaque; qemu_set_irq(phb->lsi_table[irq_num].qirq, level); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { sPAPRPHBState *phb = VAR_0; qemu_set_irq(phb->lsi_table[VAR_1].qirq, VAR_2); }
[ "static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "sPAPRPHBState *phb = VAR_0;", "qemu_set_irq(phb->lsi_table[VAR_1].qirq, VAR_2);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 13 ], [ 17 ], [ 19 ] ]
23,591
static void test_io_channel(bool async, SocketAddress *listen_addr, SocketAddress *connect_addr, bool passFD) { QIOChannel *src, *dst; QIOChannelTest *test; if (async) { test_io_channel_setup_async(listen_add...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
static void test_io_channel(bool async, SocketAddress *listen_addr, SocketAddress *connect_addr, bool passFD) { QIOChannel *src, *dst; QIOChannelTest *test; if (async) { test_io_channel_setup_async(listen_add...
{ "code": [], "line_no": [] }
static void FUNC_0(bool VAR_0, SocketAddress *VAR_1, SocketAddress *VAR_2, bool VAR_3) { QIOChannel *src, *dst; QIOChannelTest *test; if (VAR_0) { test_io_channel_setup_async(VAR_1, VAR_2, &src, &dst); ...
[ "static void FUNC_0(bool VAR_0,\nSocketAddress *VAR_1,\nSocketAddress *VAR_2,\nbool VAR_3)\n{", "QIOChannel *src, *dst;", "QIOChannelTest *test;", "if (VAR_0) {", "test_io_channel_setup_async(VAR_1, VAR_2, &src, &dst);", "g_assert(!VAR_3 ||\nqio_channel_has_feature(src, QIO_CHANNEL_FEATURE_FD_PASS));", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 53, 55 ], [ 57,...
23,592
int floatx80_le(floatx80 a, floatx80 b, float_status *status) { flag aSign, bSign; if ( ( ( extractFloatx80Exp( a ) == 0x7FFF ) && (uint64_t) ( extractFloatx80Frac( a )<<1 ) ) || ( ( extractFloatx80Exp( b ) == 0x7FFF ) && (uint64_t) ( extractFloatx80Frac( b ...
false
qemu
d1eb8f2acba579830cf3798c3c15ce51be852c56
int floatx80_le(floatx80 a, floatx80 b, float_status *status) { flag aSign, bSign; if ( ( ( extractFloatx80Exp( a ) == 0x7FFF ) && (uint64_t) ( extractFloatx80Frac( a )<<1 ) ) || ( ( extractFloatx80Exp( b ) == 0x7FFF ) && (uint64_t) ( extractFloatx80Frac( b ...
{ "code": [], "line_no": [] }
int FUNC_0(floatx80 VAR_0, floatx80 VAR_1, float_status *VAR_2) { flag aSign, bSign; if ( ( ( extractFloatx80Exp( VAR_0 ) == 0x7FFF ) && (uint64_t) ( extractFloatx80Frac( VAR_0 )<<1 ) ) || ( ( extractFloatx80Exp( VAR_1 ) == 0x7FFF ) && (uint64_t) ( extractFl...
[ "int FUNC_0(floatx80 VAR_0, floatx80 VAR_1, float_status *VAR_2)\n{", "flag aSign, bSign;", "if ( ( ( extractFloatx80Exp( VAR_0 ) == 0x7FFF )\n&& (uint64_t) ( extractFloatx80Frac( VAR_0 )<<1 ) )\n|| ( ( extractFloatx80Exp( VAR_1 ) == 0x7FFF )\n&& (uint64_t) ( extractFloatx80Frac( VAR_1 )<<1 ) )\n) {", ...
[ 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 ], [ 49 ] ]
23,593
int coroutine_fn bdrv_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { trace_bdrv_co_writev(bs, sector_num, nb_sectors); return bdrv_co_do_writev(bs, sector_num, nb_sectors, qiov, 0); }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
int coroutine_fn bdrv_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { trace_bdrv_co_writev(bs, sector_num, nb_sectors); return bdrv_co_do_writev(bs, sector_num, nb_sectors, qiov, 0); }
{ "code": [], "line_no": [] }
int VAR_0 bdrv_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { trace_bdrv_co_writev(bs, sector_num, nb_sectors); return bdrv_co_do_writev(bs, sector_num, nb_sectors, qiov, 0); }
[ "int VAR_0 bdrv_co_writev(BlockDriverState *bs, int64_t sector_num,\nint nb_sectors, QEMUIOVector *qiov)\n{", "trace_bdrv_co_writev(bs, sector_num, nb_sectors);", "return bdrv_co_do_writev(bs, sector_num, nb_sectors, qiov, 0);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ] ]
23,595
static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap) { struct vfw_ctx *ctx = s->priv_data; AVCodecContext *codec; AVStream *st; int devnum; int bisize; BITMAPINFO *bi; CAPTUREPARMS cparms; DWORD biCompression; WORD biBitCount; int width; int heig...
false
FFmpeg
a9decf004189b86e110ccb70f728409db330a6c2
static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap) { struct vfw_ctx *ctx = s->priv_data; AVCodecContext *codec; AVStream *st; int devnum; int bisize; BITMAPINFO *bi; CAPTUREPARMS cparms; DWORD biCompression; WORD biBitCount; int width; int heig...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { struct vfw_ctx *VAR_2 = VAR_0->priv_data; AVCodecContext *codec; AVStream *st; int VAR_3; int VAR_4; BITMAPINFO *bi; CAPTUREPARMS cparms; DWORD biCompression; WORD biBitCount; int VAR_5; int VA...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "struct vfw_ctx *VAR_2 = VAR_0->priv_data;", "AVCodecContext *codec;", "AVStream *st;", "int VAR_3;", "int VAR_4;", "BITMAPINFO *bi;", "CAPTUREPARMS cparms;", "DWORD biCompression;", "WORD biBitCount;", "int VAR_5;", "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 ], [ 45 ], [ 47 ...
23,596
size_t v9fs_pack(struct iovec *in_sg, int in_num, size_t offset, const void *src, size_t size) { return v9fs_packunpack((void *)src, in_sg, in_num, offset, size, 1); }
false
qemu
ddca7f86ac022289840e0200fd4050b2b58e9176
size_t v9fs_pack(struct iovec *in_sg, int in_num, size_t offset, const void *src, size_t size) { return v9fs_packunpack((void *)src, in_sg, in_num, offset, size, 1); }
{ "code": [], "line_no": [] }
size_t FUNC_0(struct iovec *in_sg, int in_num, size_t offset, const void *src, size_t size) { return v9fs_packunpack((void *)src, in_sg, in_num, offset, size, 1); }
[ "size_t FUNC_0(struct iovec *in_sg, int in_num, size_t offset,\nconst void *src, size_t size)\n{", "return v9fs_packunpack((void *)src, in_sg, in_num, offset, size, 1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
23,597
void usb_packet_setup(USBPacket *p, int pid, uint8_t addr, uint8_t ep) { assert(!usb_packet_is_inflight(p)); p->state = USB_PACKET_SETUP; p->pid = pid; p->devaddr = addr; p->devep = ep; p->result = 0; qemu_iovec_reset(&p->iov); }
false
qemu
079d0b7f1eedcc634c371fe05b617fdc55c8b762
void usb_packet_setup(USBPacket *p, int pid, uint8_t addr, uint8_t ep) { assert(!usb_packet_is_inflight(p)); p->state = USB_PACKET_SETUP; p->pid = pid; p->devaddr = addr; p->devep = ep; p->result = 0; qemu_iovec_reset(&p->iov); }
{ "code": [], "line_no": [] }
void FUNC_0(USBPacket *VAR_0, int VAR_1, uint8_t VAR_2, uint8_t VAR_3) { assert(!usb_packet_is_inflight(VAR_0)); VAR_0->state = USB_PACKET_SETUP; VAR_0->VAR_1 = VAR_1; VAR_0->devaddr = VAR_2; VAR_0->devep = VAR_3; VAR_0->result = 0; qemu_iovec_reset(&VAR_0->iov); }
[ "void FUNC_0(USBPacket *VAR_0, int VAR_1, uint8_t VAR_2, uint8_t VAR_3)\n{", "assert(!usb_packet_is_inflight(VAR_0));", "VAR_0->state = USB_PACKET_SETUP;", "VAR_0->VAR_1 = VAR_1;", "VAR_0->devaddr = VAR_2;", "VAR_0->devep = VAR_3;", "VAR_0->result = 0;", "qemu_iovec_reset(&VAR_0->iov);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
23,598
int nbd_client_init(BlockDriverState *bs, QIOChannelSocket *sioc, const char *export, Error **errp) { NbdClientSession *client = nbd_get_client_session(bs); int ret; /* NBD handshake */ logout("session init %s\n", export); qio_channel_set_blocking(QIO_CHANNEL(sioc), true...
false
qemu
75822a12c046646684bc8cad6296842b60e7b6bb
int nbd_client_init(BlockDriverState *bs, QIOChannelSocket *sioc, const char *export, Error **errp) { NbdClientSession *client = nbd_get_client_session(bs); int ret; logout("session init %s\n", export); qio_channel_set_blocking(QIO_CHANNEL(sioc), true, NULL); ret...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, QIOChannelSocket *VAR_1, const char *VAR_2, Error **VAR_3) { NbdClientSession *client = nbd_get_client_session(VAR_0); int VAR_4; logout("session init %s\n", VAR_2); qio_channel_set_blocking(QIO_CHANNEL(VAR_1), true, NULL); VAR...
[ "int FUNC_0(BlockDriverState *VAR_0, QIOChannelSocket *VAR_1,\nconst char *VAR_2, Error **VAR_3)\n{", "NbdClientSession *client = nbd_get_client_session(VAR_0);", "int VAR_4;", "logout(\"session init %s\\n\", VAR_2);", "qio_channel_set_blocking(QIO_CHANNEL(VAR_1), true, NULL);", "VAR_4 = nbd_receive_negot...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 21, 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [...
23,599
static void cuda_writel (void *opaque, target_phys_addr_t addr, uint32_t value) { }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void cuda_writel (void *opaque, target_phys_addr_t addr, uint32_t value) { }
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { }
[ "static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3 ], [ 5 ] ]
23,600
static void tcg_out_brcond64(TCGContext *s, TCGCond cond, TCGArg arg1, TCGArg arg2, int const_arg2, int label_index, int small) { tcg_out_cmp(s, arg1, arg2, const_arg2, P_REXW); tcg_out_jxx(s, tcg_cond_to_jcc[cond], label_index, small); }
false
qemu
bec1631100323fac0900aea71043d5c4e22fc2fa
static void tcg_out_brcond64(TCGContext *s, TCGCond cond, TCGArg arg1, TCGArg arg2, int const_arg2, int label_index, int small) { tcg_out_cmp(s, arg1, arg2, const_arg2, P_REXW); tcg_out_jxx(s, tcg_cond_to_jcc[cond], label_index, small); }
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1, TCGArg VAR_2, TCGArg VAR_3, int VAR_4, int VAR_5, int VAR_6) { tcg_out_cmp(VAR_0, VAR_2, VAR_3, VAR_4, P_REXW); tcg_out_jxx(VAR_0, tcg_cond_to_jcc[VAR_1], VAR_5, VAR_6); }
[ "static void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1,\nTCGArg VAR_2, TCGArg VAR_3, int VAR_4,\nint VAR_5, int VAR_6)\n{", "tcg_out_cmp(VAR_0, VAR_2, VAR_3, VAR_4, P_REXW);", "tcg_out_jxx(VAR_0, tcg_cond_to_jcc[VAR_1], VAR_5, VAR_6);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ] ]
23,601
static void pci_init_wmask(PCIDevice *dev) { int i; int config_size = pci_config_size(dev); dev->wmask[PCI_CACHE_LINE_SIZE] = 0xff; dev->wmask[PCI_INTERRUPT_LINE] = 0xff; pci_set_word(dev->wmask + PCI_COMMAND, PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); ...
false
qemu
3e21ffc954c09e90b25a446813ff1c0b26817aef
static void pci_init_wmask(PCIDevice *dev) { int i; int config_size = pci_config_size(dev); dev->wmask[PCI_CACHE_LINE_SIZE] = 0xff; dev->wmask[PCI_INTERRUPT_LINE] = 0xff; pci_set_word(dev->wmask + PCI_COMMAND, PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); ...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIDevice *VAR_0) { int VAR_1; int VAR_2 = pci_config_size(VAR_0); VAR_0->wmask[PCI_CACHE_LINE_SIZE] = 0xff; VAR_0->wmask[PCI_INTERRUPT_LINE] = 0xff; pci_set_word(VAR_0->wmask + PCI_COMMAND, PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); ...
[ "static void FUNC_0(PCIDevice *VAR_0)\n{", "int VAR_1;", "int VAR_2 = pci_config_size(VAR_0);", "VAR_0->wmask[PCI_CACHE_LINE_SIZE] = 0xff;", "VAR_0->wmask[PCI_INTERRUPT_LINE] = 0xff;", "pci_set_word(VAR_0->wmask + PCI_COMMAND,\nPCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);", "for (VAR_1 = P...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
23,602
static void *vnc_worker_thread(void *arg) { VncJobQueue *queue = arg; qemu_thread_self(&queue->thread); while (!vnc_worker_thread_loop(queue)) ; vnc_queue_clear(queue); return NULL; }
false
qemu
b7680cb6078bd7294a3dd86473d3f2fdee991dd0
static void *vnc_worker_thread(void *arg) { VncJobQueue *queue = arg; qemu_thread_self(&queue->thread); while (!vnc_worker_thread_loop(queue)) ; vnc_queue_clear(queue); return NULL; }
{ "code": [], "line_no": [] }
static void *FUNC_0(void *VAR_0) { VncJobQueue *queue = VAR_0; qemu_thread_self(&queue->thread); while (!vnc_worker_thread_loop(queue)) ; vnc_queue_clear(queue); return NULL; }
[ "static void *FUNC_0(void *VAR_0)\n{", "VncJobQueue *queue = VAR_0;", "qemu_thread_self(&queue->thread);", "while (!vnc_worker_thread_loop(queue)) ;", "vnc_queue_clear(queue);", "return NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
23,603
int qemu_savevm_state(QEMUFile *f) { int saved_vm_running; int ret; saved_vm_running = vm_running; vm_stop(0); ret = qemu_savevm_state_begin(f); if (ret < 0) goto out; do { ret = qemu_savevm_state_iterate(f); if (ret < 0) goto out; }...
false
qemu
871d2f079661323a7645b388eb5ae8d7eeb3117c
int qemu_savevm_state(QEMUFile *f) { int saved_vm_running; int ret; saved_vm_running = vm_running; vm_stop(0); ret = qemu_savevm_state_begin(f); if (ret < 0) goto out; do { ret = qemu_savevm_state_iterate(f); if (ret < 0) goto out; }...
{ "code": [], "line_no": [] }
int FUNC_0(QEMUFile *VAR_0) { int VAR_1; int VAR_2; VAR_1 = vm_running; vm_stop(0); VAR_2 = qemu_savevm_state_begin(VAR_0); if (VAR_2 < 0) goto out; do { VAR_2 = qemu_savevm_state_iterate(VAR_0); if (VAR_2 < 0) goto out; } while (VAR...
[ "int FUNC_0(QEMUFile *VAR_0)\n{", "int VAR_1;", "int VAR_2;", "VAR_1 = vm_running;", "vm_stop(0);", "VAR_2 = qemu_savevm_state_begin(VAR_0);", "if (VAR_2 < 0)\ngoto out;", "do {", "VAR_2 = qemu_savevm_state_iterate(VAR_0);", "if (VAR_2 < 0)\ngoto out;", "} while (VAR_2 == 0);", "VAR_2 = qemu_s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 37 ], [ 41, 43, 45 ], [ 47 ], [ 49 ] ]
23,604
static int vmdk_create(const char *filename, QEMUOptionParameter *options, Error **errp) { int fd, idx = 0; char desc[BUF_SIZE]; int64_t total_size = 0, filesize; const char *adapter_type = NULL; const char *backing_file = NULL; const char *fmt = NULL; int fla...
false
qemu
c9fbb99d41b05acf0d7b93deb2fcdbf9047c238e
static int vmdk_create(const char *filename, QEMUOptionParameter *options, Error **errp) { int fd, idx = 0; char desc[BUF_SIZE]; int64_t total_size = 0, filesize; const char *adapter_type = NULL; const char *backing_file = NULL; const char *fmt = NULL; int fla...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1, Error **VAR_2) { int VAR_3, VAR_4 = 0; char VAR_5[BUF_SIZE]; int64_t total_size = 0, filesize; const char *VAR_6 = NULL; const char *VAR_7 = NULL; const char *VAR_8 = NULL; int VAR_9 = 0; in...
[ "static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1,\nError **VAR_2)\n{", "int VAR_3, VAR_4 = 0;", "char VAR_5[BUF_SIZE];", "int64_t total_size = 0, filesize;", "const char *VAR_6 = NULL;", "const char *VAR_7 = NULL;", "const char *VAR_8 = NULL;", "int VAR_9 = 0;", "int VAR_10 = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43,...
23,605
static void rtas_ibm_get_config_addr_info2(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, ...
false
qemu
46c5874e9cd752ed8ded31af03472edd8fc3efc1
static void rtas_ibm_get_config_addr_info2(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, ...
{ "code": [], "line_no": [] }
static void FUNC_0(PowerPCCPU *VAR_0, sPAPREnvironment *VAR_1, uint32_t VAR_2, uint32_t VAR_3, target_ulong VAR_4, uint32_t VAR_5, target_ulong ...
[ "static void FUNC_0(PowerPCCPU *VAR_0,\nsPAPREnvironment *VAR_1,\nuint32_t VAR_2, uint32_t VAR_3,\ntarget_ulong VAR_4, uint32_t VAR_5,\ntarget_ulong VAR_6)\n{", "sPAPRPHBState *sphb;", "sPAPRPHBClass *spc;", "PCIDevice *pdev;", "uint32_t addr, option;", "uint64_t buid;", "if ((VAR_3 != 4) || (VAR_5 != 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
23,606
__org_qemu_x_Union1 *qmp___org_qemu_x_command(__org_qemu_x_EnumList *a, __org_qemu_x_StructList *b, __org_qemu_x_Union2 *c, __org_qemu_x_Alt *d, ...
false
qemu
c363acef772647f66becdbf46dd54e70e67f3cc9
__org_qemu_x_Union1 *qmp___org_qemu_x_command(__org_qemu_x_EnumList *a, __org_qemu_x_StructList *b, __org_qemu_x_Union2 *c, __org_qemu_x_Alt *d, ...
{ "code": [], "line_no": [] }
__org_qemu_x_Union1 *FUNC_0(__org_qemu_x_EnumList *a, __org_qemu_x_StructList *b, __org_qemu_x_Union2 *c, __org_qemu_x_Alt *d, Error...
[ "__org_qemu_x_Union1 *FUNC_0(__org_qemu_x_EnumList *a,\n__org_qemu_x_StructList *b,\n__org_qemu_x_Union2 *c,\n__org_qemu_x_Alt *d,\nError **errp)\n{", "__org_qemu_x_Union1 *ret = g_new0(__org_qemu_x_Union1, 1);", "ret->kind = ORG_QEMU_X_UNION1_KIND___ORG_QEMU_X_BRANCH;", "ret->__org_qemu_x_branch = strdup(\"b...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
23,607
static CURLState *curl_init_state(BDRVCURLState *s) { CURLState *state = NULL; int i, j; do { for (i=0; i<CURL_NUM_STATES; i++) { for (j=0; j<CURL_NUM_ACB; j++) if (s->states[i].acb[j]) continue; if (s->states[i].in_use) ...
false
qemu
63f0f45f2e89b60ff8245fec81328ddfde42a303
static CURLState *curl_init_state(BDRVCURLState *s) { CURLState *state = NULL; int i, j; do { for (i=0; i<CURL_NUM_STATES; i++) { for (j=0; j<CURL_NUM_ACB; j++) if (s->states[i].acb[j]) continue; if (s->states[i].in_use) ...
{ "code": [], "line_no": [] }
static CURLState *FUNC_0(BDRVCURLState *s) { CURLState *state = NULL; int VAR_0, VAR_1; do { for (VAR_0=0; VAR_0<CURL_NUM_STATES; VAR_0++) { for (VAR_1=0; VAR_1<CURL_NUM_ACB; VAR_1++) if (s->states[VAR_0].acb[VAR_1]) continue; if...
[ "static CURLState *FUNC_0(BDRVCURLState *s)\n{", "CURLState *state = NULL;", "int VAR_0, VAR_1;", "do {", "for (VAR_0=0; VAR_0<CURL_NUM_STATES; VAR_0++) {", "for (VAR_1=0; VAR_1<CURL_NUM_ACB; VAR_1++)", "if (s->states[VAR_0].acb[VAR_1])\ncontinue;", "if (s->states[VAR_0].in_use)\ncontinue;", "state ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49...
23,608
static inline int check_physical(CPUPPCState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw) { int in_plb, ret; ctx->raddr = eaddr; ctx->prot = PAGE_READ | PAGE_EXEC; ret = 0; switch (env->mmu_model) { case POWERPC_MMU_32B: case POWERPC_MMU_601: ...
false
qemu
629bd516fda67c95ba1c7d1393bacb9e68ea0712
static inline int check_physical(CPUPPCState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw) { int in_plb, ret; ctx->raddr = eaddr; ctx->prot = PAGE_READ | PAGE_EXEC; ret = 0; switch (env->mmu_model) { case POWERPC_MMU_32B: case POWERPC_MMU_601: ...
{ "code": [], "line_no": [] }
static inline int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2, int VAR_3) { int VAR_4, VAR_5; VAR_1->raddr = VAR_2; VAR_1->prot = PAGE_READ | PAGE_EXEC; VAR_5 = 0; switch (VAR_0->mmu_model) { case POWERPC_MMU_32B: case POWERPC_M...
[ "static inline int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1,\ntarget_ulong VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "VAR_1->raddr = VAR_2;", "VAR_1->prot = PAGE_READ | PAGE_EXEC;", "VAR_5 = 0;", "switch (VAR_0->mmu_model) {", "case POWERPC_MMU_32B:\ncase POWERPC_MMU_601:\ncase POWERPC_MMU_SOFT_6xx...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25, 27, 29, 31, 33 ], [ 35 ], [ 37, 39, 41, 43, 47 ], [ 49 ], [ 51 ], [ 53, 55, 57 ], [ 65...
23,609
static void onenand_command(OneNANDState *s) { int b; int sec; void *buf; #define SETADDR(block, page) \ sec = (s->addr[page] & 3) + \ ((((s->addr[page] >> 2) & 0x3f) + \ (((s->addr[block] & 0xfff) | \ (s->addr[block] >> 15 ? \ s-...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void onenand_command(OneNANDState *s) { int b; int sec; void *buf; #define SETADDR(block, page) \ sec = (s->addr[page] & 3) + \ ((((s->addr[page] >> 2) & 0x3f) + \ (((s->addr[block] & 0xfff) | \ (s->addr[block] >> 15 ? \ s-...
{ "code": [], "line_no": [] }
static void FUNC_0(OneNANDState *VAR_0) { int VAR_1; int VAR_2; void *VAR_3; #define SETADDR(block, page) \ VAR_2 = (VAR_0->addr[page] & 3) + \ ((((VAR_0->addr[page] >> 2) & 0x3f) + \ (((VAR_0->addr[block] & 0xfff) | \ (VAR_0->addr[block] >> 15 ? \...
[ "static void FUNC_0(OneNANDState *VAR_0)\n{", "int VAR_1;", "int VAR_2;", "void *VAR_3;", "#define SETADDR(block, page)\t\t\t\\\nVAR_2 = (VAR_0->addr[page] & 3) +\t\t\t\\\n((((VAR_0->addr[page] >> 2) & 0x3f) +\t\\\n(((VAR_0->addr[block] & 0xfff) |\t\\\n(VAR_0->addr[block] >> 15 ?\t\t\\\nVAR_0->density_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, 0, 0, 0, 0, 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 ], [ 41 ], [ 43, 45, 49, 51, 53 ], [ 57, 59, 61, 63 ...
23,610
void address_space_destroy(AddressSpace *as) { /* Flush out anything from MemoryListeners listening in on this */ memory_region_transaction_begin(); as->root = NULL; memory_region_transaction_commit(); QTAILQ_REMOVE(&address_spaces, as, address_spaces_link); address_space_destroy_dispatch...
false
qemu
856d72454f03aea26fd61c728762ef9cd1d71512
void address_space_destroy(AddressSpace *as) { memory_region_transaction_begin(); as->root = NULL; memory_region_transaction_commit(); QTAILQ_REMOVE(&address_spaces, as, address_spaces_link); address_space_destroy_dispatch(as); flatview_destroy(as->current_map); g_free(as->name...
{ "code": [], "line_no": [] }
void FUNC_0(AddressSpace *VAR_0) { memory_region_transaction_begin(); VAR_0->root = NULL; memory_region_transaction_commit(); QTAILQ_REMOVE(&address_spaces, VAR_0, address_spaces_link); address_space_destroy_dispatch(VAR_0); flatview_destroy(VAR_0->current_map); g_free(VAR_0->n...
[ "void FUNC_0(AddressSpace *VAR_0)\n{", "memory_region_transaction_begin();", "VAR_0->root = NULL;", "memory_region_transaction_commit();", "QTAILQ_REMOVE(&address_spaces, VAR_0, address_spaces_link);", "address_space_destroy_dispatch(VAR_0);", "flatview_destroy(VAR_0->current_map);", "g_free(VAR_0->na...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]