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
13,089
void ff_jpeg2000_cleanup(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty) { int reslevelno, bandno, precno; for (reslevelno = 0; comp->reslevel && reslevelno < codsty->nreslevels; reslevelno++) { Jpeg2000ResLevel *reslevel; if (!comp->reslevel) contin...
true
FFmpeg
3d5822d9cf07d08bce82903e4715658f46b01b5c
void ff_jpeg2000_cleanup(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty) { int reslevelno, bandno, precno; for (reslevelno = 0; comp->reslevel && reslevelno < codsty->nreslevels; reslevelno++) { Jpeg2000ResLevel *reslevel; if (!comp->reslevel) contin...
{ "code": [ " av_freep(&prec->cblk);" ], "line_no": [ 49 ] }
void FUNC_0(Jpeg2000Component *VAR_0, Jpeg2000CodingStyle *VAR_1) { int VAR_2, VAR_3, VAR_4; for (VAR_2 = 0; VAR_0->reslevel && VAR_2 < VAR_1->nreslevels; VAR_2++) { Jpeg2000ResLevel *reslevel; if (!VAR_0->reslevel) continue; reslevel = VAR_0->r...
[ "void FUNC_0(Jpeg2000Component *VAR_0, Jpeg2000CodingStyle *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "for (VAR_2 = 0;", "VAR_0->reslevel && VAR_2 < VAR_1->nreslevels;", "VAR_2++) {", "Jpeg2000ResLevel *reslevel;", "if (!VAR_0->reslevel)\ncontinue;", "reslevel = VAR_0->reslevel + VAR_2;", "for (VAR_3 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
13,090
SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk, int unit, bool removable, int bootindex, const char *serial, Error **errp) { const char *driver; char *name; DeviceState *dev; Error *err = NULL; ...
true
qemu
390e90a90736f98ca47f2e767d7f2a15d68d6bc4
SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk, int unit, bool removable, int bootindex, const char *serial, Error **errp) { const char *driver; char *name; DeviceState *dev; Error *err = NULL; ...
{ "code": [ " qerror_report_err(err);", " error_free(err);", " error_setg(errp, \"Setting drive property failed\");" ], "line_no": [ 57, 59, 61 ] }
SCSIDevice *FUNC_0(SCSIBus *bus, BlockBackend *blk, int unit, bool removable, int bootindex, const char *serial, Error **errp) { const char *VAR_0; char *VAR_1; DeviceState *dev; Error *err = NULL; VAR_0 = blk_is_s...
[ "SCSIDevice *FUNC_0(SCSIBus *bus, BlockBackend *blk,\nint unit, bool removable, int bootindex,\nconst char *serial, Error **errp)\n{", "const char *VAR_0;", "char *VAR_1;", "DeviceState *dev;", "Error *err = NULL;", "VAR_0 = blk_is_sg(blk) ? \"scsi-generic\" : \"scsi-disk\";", "dev = qdev_create(&bus->q...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
13,092
static int smacker_decode_header_tree(SmackVContext *smk, BitstreamContext *bc, int **recodes, int *last, int size) { int res; HuffContext huff; HuffContext tmp1, tmp2; VLC vlc[2] = { { 0 } }; int escapes[3]; DBCtx ctx; int err = 0; if(si...
true
FFmpeg
0ccddbad200c1d9439c5a836501917d515cddf76
static int smacker_decode_header_tree(SmackVContext *smk, BitstreamContext *bc, int **recodes, int *last, int size) { int res; HuffContext huff; HuffContext tmp1, tmp2; VLC vlc[2] = { { 0 } }; int escapes[3]; DBCtx ctx; int err = 0; if(si...
{ "code": [ " if ((res = smacker_decode_bigtree(bc, &huff, &ctx)) < 0)" ], "line_no": [ 183 ] }
static int FUNC_0(SmackVContext *VAR_0, BitstreamContext *VAR_1, int **VAR_2, int *VAR_3, int VAR_4) { int VAR_5; HuffContext huff; HuffContext tmp1, tmp2; VLC vlc[2] = { { 0 } }; int VAR_6[3]; DBCtx ctx; int VAR_7 = 0; if(VAR_4 >= UINT_M...
[ "static int FUNC_0(SmackVContext *VAR_0, BitstreamContext *VAR_1,\nint **VAR_2, int *VAR_3, int VAR_4)\n{", "int VAR_5;", "HuffContext huff;", "HuffContext tmp1, tmp2;", "VLC vlc[2] = { { 0 } };", "int VAR_6[3];", "DBCtx ctx;", "int VAR_7 = 0;", "if(VAR_4 >= UINT_MAX>>4){", "av_log(VAR_0->avctx, A...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
13,093
static BlockAIOCB *hdev_aio_ioctl(BlockDriverState *bs, unsigned long int req, void *buf, BlockCompletionFunc *cb, void *opaque) { BDRVRawState *s = bs->opaque; RawPosixAIOData *acb; ThreadPool *pool; if (fd_open(bs) < 0) return NULL; acb = g_new(RawPosixAIOData, 1); acb-...
true
qemu
7c9e527659c67d4d7b41d9504f93d2d7ee482488
static BlockAIOCB *hdev_aio_ioctl(BlockDriverState *bs, unsigned long int req, void *buf, BlockCompletionFunc *cb, void *opaque) { BDRVRawState *s = bs->opaque; RawPosixAIOData *acb; ThreadPool *pool; if (fd_open(bs) < 0) return NULL; acb = g_new(RawPosixAIOData, 1); acb-...
{ "code": [], "line_no": [] }
static BlockAIOCB *FUNC_0(BlockDriverState *bs, unsigned long int req, void *buf, BlockCompletionFunc *cb, void *opaque) { BDRVRawState *s = bs->opaque; RawPosixAIOData *acb; ThreadPool *pool; if (fd_open(bs) < 0) return NULL; acb = g_new(RawPosixAIOData, 1); acb->bs = bs...
[ "static BlockAIOCB *FUNC_0(BlockDriverState *bs,\nunsigned long int req, void *buf,\nBlockCompletionFunc *cb, void *opaque)\n{", "BDRVRawState *s = bs->opaque;", "RawPosixAIOData *acb;", "ThreadPool *pool;", "if (fd_open(bs) < 0)\nreturn NULL;", "acb = g_new(RawPosixAIOData, 1);", "acb->bs = bs;", "ac...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8, 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ] ]
13,094
static int blkdebug_debug_remove_breakpoint(BlockDriverState *bs, const char *tag) { BDRVBlkdebugState *s = bs->opaque; BlkdebugSuspendedReq *r, *r_next; BlkdebugRule *rule, *next; int i, ret = -ENOENT; for (i = 0; i < BLKDBG__MAX; i++) { ...
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static int blkdebug_debug_remove_breakpoint(BlockDriverState *bs, const char *tag) { BDRVBlkdebugState *s = bs->opaque; BlkdebugSuspendedReq *r, *r_next; BlkdebugRule *rule, *next; int i, ret = -ENOENT; for (i = 0; i < BLKDBG__MAX; i++) { ...
{ "code": [ " qemu_coroutine_enter(r->co, NULL);", " qemu_coroutine_enter(r->co, NULL);" ], "line_no": [ 39, 39 ] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1) { BDRVBlkdebugState *s = VAR_0->opaque; BlkdebugSuspendedReq *r, *r_next; BlkdebugRule *rule, *next; int VAR_2, VAR_3 = -ENOENT; for (VAR_2 = 0; VAR_2 < BLKDBG__MAX; VAR_2++) { ...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nconst char *VAR_1)\n{", "BDRVBlkdebugState *s = VAR_0->opaque;", "BlkdebugSuspendedReq *r, *r_next;", "BlkdebugRule *rule, *next;", "int VAR_2, VAR_3 = -ENOENT;", "for (VAR_2 = 0; VAR_2 < BLKDBG__MAX; VAR_2++) {", "QLIST_FOREACH_SAFE(rule, &s->rules[VAR_2], n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
13,095
static int ram_save_target_page(MigrationState *ms, QEMUFile *f, RAMBlock *block, ram_addr_t offset, bool last_stage, uint64_t *bytes_transferred, ram_addr_t dirty_ram_abs) { int res...
true
qemu
3fd3c4b37c116cce7e9810fcc15a0a2cf15115a5
static int ram_save_target_page(MigrationState *ms, QEMUFile *f, RAMBlock *block, ram_addr_t offset, bool last_stage, uint64_t *bytes_transferred, ram_addr_t dirty_ram_abs) { int res...
{ "code": [ " last_sent_block = block;" ], "line_no": [ 55 ] }
static int FUNC_0(MigrationState *VAR_0, QEMUFile *VAR_1, RAMBlock *VAR_2, ram_addr_t VAR_3, bool VAR_4, uint64_t *VAR_5, ram_addr_t VAR_6) { int VAR_7 = 0; if (migratio...
[ "static int FUNC_0(MigrationState *VAR_0, QEMUFile *VAR_1,\nRAMBlock *VAR_2, ram_addr_t VAR_3,\nbool VAR_4,\nuint64_t *VAR_5,\nram_addr_t VAR_6)\n{", "int VAR_7 = 0;", "if (migration_bitmap_clear_dirty(VAR_6)) {", "unsigned long *VAR_8;", "if (compression_switch && migrate_use_compression()) {", "VAR_7 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
13,096
static inline void RENAME(yuv2rgb565_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8...
true
FFmpeg
009f829dde811af654af7110326aea3a72c05d5e
static inline void RENAME(yuv2rgb565_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8...
{ "code": [ " x86_reg uv_off = c->uv_off << 1;", " \"a\" (&c->redDither), \"m\"(uv_off)", " \"a\" (&c->redDither), \"m\"(uv_off)", " x86_reg uv_off = c->uv_off << 1;", " x86_reg uv_off = c->uv_off << 1;", " x86_reg uv_off = c->uv_off << 1;", " x86...
static inline void FUNC_0(yuv2rgb565_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8...
[ "static inline void FUNC_0(yuv2rgb565_1)(SwsContext *c, const uint16_t *buf0,\nconst uint16_t *ubuf0, const uint16_t *ubuf1,\nconst uint16_t *vbuf0, const uint16_t *vbuf1,\nconst uint16_t *abuf0, uint8_t *dest,\nint dstW, int uvalpha, enum PixelFormat dstFormat,\nint flags, int y)\n{", "x86_reg uv_off = c->uv_off...
[ 0, 1, 0, 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25, 27, 29, 31, 33, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57 ], [ 59 ], [ 61, 63, 65, 67, 69, 71,...
13,098
static void coroutine_enter_cb(void *opaque, int ret) { Coroutine *co = opaque; qemu_coroutine_enter(co, NULL); }
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static void coroutine_enter_cb(void *opaque, int ret) { Coroutine *co = opaque; qemu_coroutine_enter(co, NULL); }
{ "code": [ " qemu_coroutine_enter(co, NULL);", " qemu_coroutine_enter(co, NULL);", " qemu_coroutine_enter(co, NULL);", " qemu_coroutine_enter(co, NULL);", " qemu_coroutine_enter(co, NULL);", " qemu_coroutine_enter(co, NULL);", " qemu_coroutine_enter(co, NULL);" ], ...
static void FUNC_0(void *VAR_0, int VAR_1) { Coroutine *co = VAR_0; qemu_coroutine_enter(co, NULL); }
[ "static void FUNC_0(void *VAR_0, int VAR_1)\n{", "Coroutine *co = VAR_0;", "qemu_coroutine_enter(co, NULL);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
13,099
static int ppc6xx_tlb_check (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int access_type) { ppc_tlb_t *tlb; int nr, best, way; int ret; best = -1; ret = -1; /* No TLB found */ for (way = 0; way < env->nb_ways; way++) { nr = ppc6x...
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
static int ppc6xx_tlb_check (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int access_type) { ppc_tlb_t *tlb; int nr, best, way; int ret; best = -1; ret = -1; for (way = 0; way < env->nb_ways; way++) { nr = ppc6xx_tlb_getnum(env, ...
{ "code": [ "#endif", "#endif" ], "line_no": [ 45, 45 ] }
static int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { ppc_tlb_t *tlb; int VAR_5, VAR_6, VAR_7; int VAR_8; VAR_6 = -1; VAR_8 = -1; for (VAR_7 = 0; VAR_7 < VAR_0->nb_ways; VAR_7++) { VAR_5 = ppc6xx_tlb...
[ "static int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4)\n{", "ppc_tlb_t *tlb;", "int VAR_5, VAR_6, VAR_7;", "int VAR_8;", "VAR_6 = -1;", "VAR_8 = -1;", "for (VAR_7 = 0; VAR_7 < VAR_0->nb_ways; VAR_7++) {", "VAR_5 = ppc6xx_tlb_getnum(VAR_0, VAR_2, VAR_7,\nVAR_4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35, 37, 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51, 53 ...
13,101
int bdrv_all_goto_snapshot(const char *name, BlockDriverState **first_bad_bs) { int err = 0; BlockDriverState *bs; BdrvNextIterator *it = NULL; while (err == 0 && (it = bdrv_next(it, &bs))) { AioContext *ctx = bdrv_get_aio_context(bs); aio_context_acquire(ctx); if (bd...
true
qemu
88be7b4be4aa17c88247e162bdd7577ea79db94f
int bdrv_all_goto_snapshot(const char *name, BlockDriverState **first_bad_bs) { int err = 0; BlockDriverState *bs; BdrvNextIterator *it = NULL; while (err == 0 && (it = bdrv_next(it, &bs))) { AioContext *ctx = bdrv_get_aio_context(bs); aio_context_acquire(ctx); if (bd...
{ "code": [ " BdrvNextIterator *it = NULL;", " BdrvNextIterator *it = NULL;", " BdrvNextIterator *it = NULL;", " BlockDriverState *bs;", " BdrvNextIterator *it = NULL;", " BdrvNextIterator *it = NULL;", " BdrvNextIterator *it = NULL;", " BdrvNextIterator *it = N...
int FUNC_0(const char *VAR_0, BlockDriverState **VAR_1) { int VAR_2 = 0; BlockDriverState *bs; BdrvNextIterator *it = NULL; while (VAR_2 == 0 && (it = bdrv_next(it, &bs))) { AioContext *ctx = bdrv_get_aio_context(bs); aio_context_acquire(ctx); if (bdrv_can_snapshot(bs...
[ "int FUNC_0(const char *VAR_0, BlockDriverState **VAR_1)\n{", "int VAR_2 = 0;", "BlockDriverState *bs;", "BdrvNextIterator *it = NULL;", "while (VAR_2 == 0 && (it = bdrv_next(it, &bs))) {", "AioContext *ctx = bdrv_get_aio_context(bs);", "aio_context_acquire(ctx);", "if (bdrv_can_snapshot(bs)) {", "V...
[ 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ] ]
13,102
int RENAME(swri_resample)(ResampleContext *c, DELEM *dst, const DELEM *src, int *consumed, int src_size, int dst_size, int update_ctx){ int dst_index, i; int index= c->index; int frac= c->frac; int dst_incr_frac= c->dst_incr % c->src_incr; int dst_incr= c->dst_incr / c->src_incr; int ...
true
FFmpeg
2c23f87c8553d5cfc1c130bc3e487660a3c826ec
int RENAME(swri_resample)(ResampleContext *c, DELEM *dst, const DELEM *src, int *consumed, int src_size, int dst_size, int update_ctx){ int dst_index, i; int index= c->index; int frac= c->frac; int dst_incr_frac= c->dst_incr % c->src_incr; int dst_incr= c->dst_incr / c->src_incr; int ...
{ "code": [ " } else if (compensation_distance == 0 && index >= 0) {", " int64_t end_index = (1 + src_size - c->filter_length) << c->phase_shift;" ], "line_no": [ 57, 59 ] }
int FUNC_0(swri_resample)(ResampleContext *c, DELEM *dst, const DELEM *src, int *consumed, int src_size, int dst_size, int update_ctx){ int VAR_0, VAR_1; int VAR_2= c->VAR_2; int VAR_3= c->VAR_3; int VAR_4= c->VAR_5 % c->src_incr; int VAR_5= c->VAR_5 / c->src_incr; int VAR_6= c->VAR_6...
[ "int FUNC_0(swri_resample)(ResampleContext *c, DELEM *dst, const DELEM *src, int *consumed, int src_size, int dst_size, int update_ctx){", "int VAR_0, VAR_1;", "int VAR_2= c->VAR_2;", "int VAR_3= c->VAR_3;", "int VAR_4= c->VAR_5 % c->src_incr;", "int VAR_5= c->VAR_5 / c->src_incr;", "int VAR_6= 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
13,103
static void gen_rdhwr(DisasContext *ctx, int rt, int rd, int sel) { TCGv t0; #if !defined(CONFIG_USER_ONLY) /* The Linux kernel will emulate rdhwr if it's not supported natively. Therefore only check the ISA in system mode. */ check_insn(ctx, ISA_MIPS32R2); #endif t0 = tcg_temp_new(); ...
true
qemu
c5a49c63fa26e8825ad101dfe86339ae4c216539
static void gen_rdhwr(DisasContext *ctx, int rt, int rd, int sel) { TCGv t0; #if !defined(CONFIG_USER_ONLY) check_insn(ctx, ISA_MIPS32R2); #endif t0 = tcg_temp_new(); switch (rd) { case 0: gen_helper_rdhwr_cpunum(t0, cpu_env); gen_store_gpr(t0, rt); bre...
{ "code": [ " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {" ], "line_no": [ 43, 43 ] }
static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3) { TCGv t0; #if !defined(CONFIG_USER_ONLY) check_insn(VAR_0, ISA_MIPS32R2); #endif t0 = tcg_temp_new(); switch (VAR_2) { case 0: gen_helper_rdhwr_cpunum(t0, cpu_env); gen_store_gpr(t0, VAR_1...
[ "static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "TCGv t0;", "#if !defined(CONFIG_USER_ONLY)\ncheck_insn(VAR_0, ISA_MIPS32R2);", "#endif\nt0 = tcg_temp_new();", "switch (VAR_2) {", "case 0:\ngen_helper_rdhwr_cpunum(t0, cpu_env);", "gen_store_gpr(t0, VAR_1);", "break;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 15 ], [ 17, 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], ...
13,104
static int dca_subframe_footer(DCAContext *s, int base_channel) { int in, out, aux_data_count, aux_data_end, reserved; uint32_t nsyncaux; /* * Unpack optional information */ /* presumably optional information only appears in the core? */ if (!base_channel) { if (s->tim...
true
FFmpeg
c12c085be7e86880924249e5cb3f898e45dee134
static int dca_subframe_footer(DCAContext *s, int base_channel) { int in, out, aux_data_count, aux_data_end, reserved; uint32_t nsyncaux; if (!base_channel) { if (s->timestamp) skip_bits_long(&s->gb, 32); if (s->aux_data) { aux_data_count...
{ "code": [ " if ((reserved = (aux_data_end - get_bits_count(&s->gb))) < 0) {", " av_log(s->avctx, AV_LOG_ERROR,", " \"Overread auxiliary data by %d bits\\n\", -reserved);", " return AVERROR_INVALIDDATA;", " } else if (reser...
static int FUNC_0(DCAContext *VAR_0, int VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; uint32_t nsyncaux; if (!VAR_1) { if (VAR_0->timestamp) skip_bits_long(&VAR_0->gb, 32); if (VAR_0->aux_data) { VAR_4 = get_bits(&VAR_0->gb, 6); ...
[ "static int FUNC_0(DCAContext *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;", "uint32_t nsyncaux;", "if (!VAR_1) {", "if (VAR_0->timestamp)\nskip_bits_long(&VAR_0->gb, 32);", "if (VAR_0->aux_data) {", "VAR_4 = get_bits(&VAR_0->gb, 6);", "skip_bits_long(&VAR_0->gb, (-get_bits_count(&V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 37 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59, 61 ], [ 65 ], [ 69 ], [ 71 ], ...
13,105
static void pred_temp_direct_motion(const H264Context *const h, H264SliceContext *sl, int *mb_type) { int b8_stride = 2; int b4_stride = h->b_stride; int mb_xy = sl->mb_xy, mb_y = sl->mb_y; int mb_type_col[2]; const int16_t (*l1mv0)[2], (*l1mv1)[2]; co...
true
FFmpeg
04763c6f87690b31cfcd0d324cf36a451531dcd0
static void pred_temp_direct_motion(const H264Context *const h, H264SliceContext *sl, int *mb_type) { int b8_stride = 2; int b4_stride = h->b_stride; int mb_xy = sl->mb_xy, mb_y = sl->mb_y; int mb_type_col[2]; const int16_t (*l1mv0)[2], (*l1mv1)[2]; co...
{ "code": [ " await_reference_mb_row(h, sl->ref_list[1][0].parent,", " await_reference_mb_row(h, sl->ref_list[1][0].parent, mb_y);", " await_reference_mb_row(h, sl->ref_list[1][0].parent,", " await_reference_mb_row(h, sl->ref_list[1][0].parent, mb_y);" ], "line_no": [ 31, 161, ...
static void FUNC_0(const H264Context *const VAR_0, H264SliceContext *VAR_1, int *VAR_2) { int VAR_3 = 2; int VAR_4 = VAR_0->b_stride; int VAR_5 = VAR_1->VAR_5, VAR_6 = VAR_1->VAR_6; int VAR_7[2]; const FUNC_2 (*l1mv0)[2], (*l1mv1)[2]; const int8_t *VAR...
[ "static void FUNC_0(const H264Context *const VAR_0, H264SliceContext *VAR_1,\nint *VAR_2)\n{", "int VAR_3 = 2;", "int VAR_4 = VAR_0->b_stride;", "int VAR_5 = VAR_1->VAR_5, VAR_6 = VAR_1->VAR_6;", "int VAR_7[2];", "const FUNC_2 (*l1mv0)[2], (*l1mv1)[2];", "const int8_t *VAR_8, *l1ref1;", "const int VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
13,106
static void ff_mpeg4_init_direct_mv(MpegEncContext *s){ //FIXME table is stored in MpegEncContext for thread-safety, // but a static array would be faster static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t); static const int tab_bias = (tab_size/2); int i; for(i=0; i<...
true
FFmpeg
c4e2a535b3a8b192c144acfaa9f1a7bc8b7f99f3
static void ff_mpeg4_init_direct_mv(MpegEncContext *s){ static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t); static const int tab_bias = (tab_size/2); int i; for(i=0; i<tab_size; i++){ s->direct_scale_mv[0][i] = (i-tab_bias)*s->pb_time/s->pp_time; ...
{ "code": [ " static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t);", " static const int tab_bias = (tab_size/2);", " static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t);", " static const int tab_bias = (tab_size/2);" ], "line_no": [ 7, ...
static void FUNC_0(MpegEncContext *VAR_0){ static const int VAR_1 = sizeof(VAR_0->direct_scale_mv[0])/sizeof(int16_t); static const int VAR_2 = (VAR_1/2); int VAR_3; for(VAR_3=0; VAR_3<VAR_1; VAR_3++){ VAR_0->direct_scale_mv[0][VAR_3] = (VAR_3-VAR_2)*VAR_0->pb_time/VAR_0->pp_tim...
[ "static void FUNC_0(MpegEncContext *VAR_0){", "static const int VAR_1 = sizeof(VAR_0->direct_scale_mv[0])/sizeof(int16_t);", "static const int VAR_2 = (VAR_1/2);", "int VAR_3;", "for(VAR_3=0; VAR_3<VAR_1; VAR_3++){", "VAR_0->direct_scale_mv[0][VAR_3] = (VAR_3-VAR_2)*VAR_0->pb_time/VAR_0->pp_time;", "VAR...
[ 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
13,107
static void video_image_display(VideoState *is) { Frame *vp; Frame *sp; AVPicture pict; SDL_Rect rect; int i; vp = frame_queue_peek(&is->pictq); if (vp->bmp) { if (is->subtitle_st) { if (frame_queue_nb_remaining(&is->subpq) > 0) { sp = frame_q...
false
FFmpeg
03037a4aad8b92c00ef2f115605ad20fc4410fe5
static void video_image_display(VideoState *is) { Frame *vp; Frame *sp; AVPicture pict; SDL_Rect rect; int i; vp = frame_queue_peek(&is->pictq); if (vp->bmp) { if (is->subtitle_st) { if (frame_queue_nb_remaining(&is->subpq) > 0) { sp = frame_q...
{ "code": [], "line_no": [] }
static void FUNC_0(VideoState *VAR_0) { Frame *vp; Frame *sp; AVPicture pict; SDL_Rect rect; int VAR_1; vp = frame_queue_peek(&VAR_0->pictq); if (vp->bmp) { if (VAR_0->subtitle_st) { if (frame_queue_nb_remaining(&VAR_0->subpq) > 0) { sp = fram...
[ "static void FUNC_0(VideoState *VAR_0)\n{", "Frame *vp;", "Frame *sp;", "AVPicture pict;", "SDL_Rect rect;", "int VAR_1;", "vp = frame_queue_peek(&VAR_0->pictq);", "if (vp->bmp) {", "if (VAR_0->subtitle_st) {", "if (frame_queue_nb_remaining(&VAR_0->subpq) > 0) {", "sp = frame_queue_peek(&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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
13,108
static int pad_count(const AVFilterPad *pads) { int count; if (!pads) return 0; for(count = 0; pads->name; count ++) pads ++; return count; }
false
FFmpeg
7e8fe4be5fb4c98aa3c6a4ed3cec999f4e3cc3aa
static int pad_count(const AVFilterPad *pads) { int count; if (!pads) return 0; for(count = 0; pads->name; count ++) pads ++; return count; }
{ "code": [], "line_no": [] }
static int FUNC_0(const AVFilterPad *VAR_0) { int VAR_1; if (!VAR_0) return 0; for(VAR_1 = 0; VAR_0->name; VAR_1 ++) VAR_0 ++; return VAR_1; }
[ "static int FUNC_0(const AVFilterPad *VAR_0)\n{", "int VAR_1;", "if (!VAR_0)\nreturn 0;", "for(VAR_1 = 0; VAR_0->name; VAR_1 ++) VAR_0 ++;", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ] ]
13,109
rtsp_read_reply (AVFormatContext *s, RTSPMessageHeader *reply, unsigned char **content_ptr, int return_on_interleaved_data) { RTSPState *rt = s->priv_data; char buf[4096], buf1[1024], *q; unsigned char ch; const char *p; int ret, content_length, line_count = 0; unsigned ...
false
FFmpeg
c89658008705d949c319df3fa6f400c481ad73e1
rtsp_read_reply (AVFormatContext *s, RTSPMessageHeader *reply, unsigned char **content_ptr, int return_on_interleaved_data) { RTSPState *rt = s->priv_data; char buf[4096], buf1[1024], *q; unsigned char ch; const char *p; int ret, content_length, line_count = 0; unsigned ...
{ "code": [], "line_no": [] }
FUNC_0 (AVFormatContext *VAR_0, RTSPMessageHeader *VAR_1, unsigned char **VAR_2, int VAR_3) { RTSPState *rt = VAR_0->priv_data; char VAR_4[4096], VAR_5[1024], *VAR_6; unsigned char VAR_7; const char *VAR_8; int VAR_9, VAR_10, VAR_11 = 0; unsigned char *VAR_12 = NULL; ...
[ "FUNC_0 (AVFormatContext *VAR_0, RTSPMessageHeader *VAR_1,\nunsigned char **VAR_2, int VAR_3)\n{", "RTSPState *rt = VAR_0->priv_data;", "char VAR_4[4096], VAR_5[1024], *VAR_6;", "unsigned char VAR_7;", "const char *VAR_8;", "int VAR_9, VAR_10, VAR_11 = 0;", "unsigned char *VAR_12 = NULL;", "memset(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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43, 45 ], [ 47, 49 ], [ 51 ], [...
13,111
int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)) { int total = size; do { int len = FFMIN(f->end - f->wptr, size); if (func) { if (func(src, f->wptr, len) <= 0) break; } else { memcpy(f->wptr,...
false
FFmpeg
9eb0d8bab1c475edf73c36146d1c3d31ea47f997
int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)) { int total = size; do { int len = FFMIN(f->end - f->wptr, size); if (func) { if (func(src, f->wptr, len) <= 0) break; } else { memcpy(f->wptr,...
{ "code": [], "line_no": [] }
VAR_5intVAR_5 VAR_5av_fifo_generic_writeVAR_5(VAR_5AVFifoBufferVAR_5 *VAR_5VAR_0VAR_5, VAR_5voidVAR_5 *VAR_5VAR_1VAR_5, VAR_5intVAR_5 VAR_5VAR_2VAR_5, VAR_5intVAR_5 (*VAR_5VAR_3VAR_5)(VAR_5voidVAR_5*, VAR_5voidVAR_5*, VAR_5intVAR_5)) { VAR_5intVAR_5 VAR_5totalVAR_5 = VAR_5VAR_2VAR_5; VAR_5doVAR_5 { ...
[ "VAR_5intVAR_5 VAR_5av_fifo_generic_writeVAR_5(VAR_5AVFifoBufferVAR_5 *VAR_5VAR_0VAR_5, VAR_5voidVAR_5 *VAR_5VAR_1VAR_5, VAR_5intVAR_5 VAR_5VAR_2VAR_5, VAR_5intVAR_5 (*VAR_5VAR_3VAR_5)(VAR_5voidVAR_5*, VAR_5voidVAR_5*, VAR_5intVAR_5))\n{", "VAR_5intVAR_5 VAR_5totalVAR_5 = VAR_5VAR_2VAR_5;", "VAR_5doVAR_5 {", ...
[ 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 ] ]
13,112
int av_image_get_linesize(enum AVPixelFormat pix_fmt, int width, int plane) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt); int max_step [4]; /* max pixel step for each plane */ int max_step_comp[4]; /* the component for each plane which has the max pixel step */ ...
false
FFmpeg
ea37df2d528c15dc472e7272ac5278090f01f38e
int av_image_get_linesize(enum AVPixelFormat pix_fmt, int width, int plane) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt); int max_step [4]; int max_step_comp[4]; if ((unsigned)pix_fmt >= AV_PIX_FMT_NB || desc->flags & AV_PIX_FMT_FLAG_HWACCEL) return A...
{ "code": [], "line_no": [] }
int FUNC_0(enum AVPixelFormat VAR_0, int VAR_1, int VAR_2) { const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_0); int VAR_4 [4]; int VAR_5[4]; if ((unsigned)VAR_0 >= AV_PIX_FMT_NB || VAR_3->flags & AV_PIX_FMT_FLAG_HWACCEL) return AVERROR(EINVAL); av_imag...
[ "int FUNC_0(enum AVPixelFormat VAR_0, int VAR_1, int VAR_2)\n{", "const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_0);", "int VAR_4 [4];", "int VAR_5[4];", "if ((unsigned)VAR_0 >= AV_PIX_FMT_NB || VAR_3->flags & AV_PIX_FMT_FLAG_HWACCEL)\nreturn AVERROR(EINVAL);", "av_image_fill_max_pixsteps(V...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ] ]
13,113
static int encode_slice(AVCodecContext *c, void *arg) { FFV1Context *fs = *(void **)arg; FFV1Context *f = fs->avctx->priv_data; int width = fs->slice_width; int height = fs->slice_height; int x = fs->slice_x; int y = fs->slice_y; const AVFrame *c...
false
FFmpeg
4bb1070c154e49d35805fbcdac9c9e92f702ef96
static int encode_slice(AVCodecContext *c, void *arg) { FFV1Context *fs = *(void **)arg; FFV1Context *f = fs->avctx->priv_data; int width = fs->slice_width; int height = fs->slice_height; int x = fs->slice_x; int y = fs->slice_y; const AVFrame *c...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1) { FFV1Context *fs = *(void **)VAR_1; FFV1Context *f = fs->avctx->priv_data; int VAR_2 = fs->slice_width; int VAR_3 = fs->slice_height; int VAR_4 = fs->slice_x; int VAR_5 = fs->slice_y; const A...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1)\n{", "FFV1Context *fs = *(void **)VAR_1;", "FFV1Context *f = fs->avctx->priv_data;", "int VAR_2 = fs->slice_width;", "int VAR_3 = fs->slice_height;", "int VAR_4 = fs->slice_x;", "int VAR_5 = fs->slice_y;", "co...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [...
13,115
static int qemu_rbd_open(BlockDriverState *bs, const char *filename, int flags) { BDRVRBDState *s = bs->opaque; char pool[RBD_MAX_POOL_NAME_SIZE]; char snap_buf[RBD_MAX_SNAP_NAME_SIZE]; char conf[RBD_MAX_CONF_SIZE]; char clientname_buf[RBD_MAX_CONF_SIZE]; char *clientname; int r; ...
true
qemu
eb93d5d9906cfa9fb6c3039a310d796dddfddeea
static int qemu_rbd_open(BlockDriverState *bs, const char *filename, int flags) { BDRVRBDState *s = bs->opaque; char pool[RBD_MAX_POOL_NAME_SIZE]; char snap_buf[RBD_MAX_SNAP_NAME_SIZE]; char conf[RBD_MAX_CONF_SIZE]; char clientname_buf[RBD_MAX_CONF_SIZE]; char *clientname; int r; ...
{ "code": [ " s->snap = NULL;", " if (snap_buf[0] != '\\0') {", " s->snap = g_strdup(snap_buf);", " rados_shutdown(s->cluster);", " return r;", " rados_shutdown(s->cluster);", " return r;", " rados_shutdown(s->cluster);", ...
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2) { BDRVRBDState *s = VAR_0->opaque; char VAR_3[RBD_MAX_POOL_NAME_SIZE]; char VAR_4[RBD_MAX_SNAP_NAME_SIZE]; char VAR_5[RBD_MAX_CONF_SIZE]; char VAR_6[RBD_MAX_CONF_SIZE]; char *VAR_7; int VAR_8; if (qemu_rb...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)\n{", "BDRVRBDState *s = VAR_0->opaque;", "char VAR_3[RBD_MAX_POOL_NAME_SIZE];", "char VAR_4[RBD_MAX_SNAP_NAME_SIZE];", "char VAR_5[RBD_MAX_CONF_SIZE];", "char VAR_6[RBD_MAX_CONF_SIZE];", "char *VAR_7;", "int VAR_8;", "if (qemu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...
13,116
static inline int coupling_strategy(AC3DecodeContext *s, int blk, uint8_t *bit_alloc_stages) { GetBitContext *bc = &s->gbc; int fbw_channels = s->fbw_channels; int channel_mode = s->channel_mode; int ch; memset(bit_alloc_stages, 3, AC3_MAX_CHANNELS); ...
true
FFmpeg
9351a156de724edb69ba6e1f05884fe806a13a21
static inline int coupling_strategy(AC3DecodeContext *s, int blk, uint8_t *bit_alloc_stages) { GetBitContext *bc = &s->gbc; int fbw_channels = s->fbw_channels; int channel_mode = s->channel_mode; int ch; memset(bit_alloc_stages, 3, AC3_MAX_CHANNELS); ...
{ "code": [ " } else {", " &s->num_cpl_bands, s->cpl_band_sizes);" ], "line_no": [ 113, 111 ] }
static inline int FUNC_0(AC3DecodeContext *VAR_0, int VAR_1, uint8_t *VAR_2) { GetBitContext *bc = &VAR_0->gbc; int VAR_3 = VAR_0->VAR_3; int VAR_4 = VAR_0->VAR_4; int VAR_5; memset(VAR_2, 3, AC3_MAX_CHANNELS); if (!VAR_0->eac3) VAR_0->cpl_i...
[ "static inline int FUNC_0(AC3DecodeContext *VAR_0, int VAR_1,\nuint8_t *VAR_2)\n{", "GetBitContext *bc = &VAR_0->gbc;", "int VAR_3 = VAR_0->VAR_3;", "int VAR_4 = VAR_0->VAR_4;", "int VAR_5;", "memset(VAR_2, 3, AC3_MAX_CHANNELS);", "if (!VAR_0->eac3)\nVAR_0->cpl_in_use[VAR_1] = get_bits1(bc);", "if (VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ], [ 59 ...
13,117
static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *buf, const uint8_t *end_buf) { int tag, type, count, off, value = 0; int i, j; uint32_t *pal; const uint8_t *rp, *gp, *bp; tag = tget_short(&buf, s->le); type = tget_short(&buf, s->le); count = tget_lon...
false
FFmpeg
9706d1c766b609961bea44d475c84c01b7ee10a5
static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *buf, const uint8_t *end_buf) { int tag, type, count, off, value = 0; int i, j; uint32_t *pal; const uint8_t *rp, *gp, *bp; tag = tget_short(&buf, s->le); type = tget_short(&buf, s->le); count = tget_lon...
{ "code": [], "line_no": [] }
static int FUNC_0(TiffContext *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, const uint8_t *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0; int VAR_9, VAR_10; uint32_t *pal; const uint8_t *VAR_11, *gp, *bp; VAR_4 = tget_short(&VAR_2, VAR_0->le); VAR_5 = tget_short(&VAR_2, VAR_0...
[ "static int FUNC_0(TiffContext *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, const uint8_t *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0;", "int VAR_9, VAR_10;", "uint32_t *pal;", "const uint8_t *VAR_11, *gp, *bp;", "VAR_4 = tget_short(&VAR_2, VAR_0->le);", "VAR_5 = tget_short(&VAR_2, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [...
13,119
static int slirp_hostfwd(SlirpState *s, const char *redir_str, int legacy_format) { struct in_addr host_addr = { .s_addr = INADDR_ANY }; struct in_addr guest_addr = { .s_addr = 0 }; int host_port, guest_port; const char *p; char buf[256]; int is_udp; char *e...
true
qemu
5c843af22604edecda10d4bb89d4eede9e1bd3d0
static int slirp_hostfwd(SlirpState *s, const char *redir_str, int legacy_format) { struct in_addr host_addr = { .s_addr = INADDR_ANY }; struct in_addr guest_addr = { .s_addr = 0 }; int host_port, guest_port; const char *p; char buf[256]; int is_udp; char *e...
{ "code": [ " int legacy_format)", " error_report(\"could not set up host forwarding rule '%s'\",", " redir_str);", " error_report(\"invalid host forwarding rule '%s'\", redir_str);" ], "line_no": [ 3, 109, 111, 123 ] }
static int FUNC_0(SlirpState *VAR_0, const char *VAR_1, int VAR_2) { struct in_addr VAR_3 = { .s_addr = INADDR_ANY }; struct in_addr VAR_4 = { .s_addr = 0 }; int VAR_5, VAR_6; const char *VAR_7; char VAR_8[256]; int VAR_9; char *VAR_10; VAR_7 = VAR_1;...
[ "static int FUNC_0(SlirpState *VAR_0, const char *VAR_1,\nint VAR_2)\n{", "struct in_addr VAR_3 = { .s_addr = INADDR_ANY };", "struct in_addr VAR_4 = { .s_addr = 0 };", "int VAR_5, VAR_6;", "const char *VAR_7;", "char VAR_8[256];", "int VAR_9;", "char *VAR_10;", "VAR_7 = VAR_1;", "if (!VAR_7 || ge...
[ 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, 1, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
13,120
int dma_memory_set(DMAContext *dma, dma_addr_t addr, uint8_t c, dma_addr_t len) { if (dma_has_iommu(dma)) { return iommu_dma_memory_set(dma, addr, c, len); } do_dma_memory_set(addr, c, len); return 0; }
true
qemu
7a0bac4da9c6a2e36d388412f3b4074b10429e8e
int dma_memory_set(DMAContext *dma, dma_addr_t addr, uint8_t c, dma_addr_t len) { if (dma_has_iommu(dma)) { return iommu_dma_memory_set(dma, addr, c, len); } do_dma_memory_set(addr, c, len); return 0; }
{ "code": [], "line_no": [] }
int FUNC_0(DMAContext *VAR_0, dma_addr_t VAR_1, uint8_t VAR_2, dma_addr_t VAR_3) { if (dma_has_iommu(VAR_0)) { return iommu_dma_memory_set(VAR_0, VAR_1, VAR_2, VAR_3); } do_dma_memory_set(VAR_1, VAR_2, VAR_3); return 0; }
[ "int FUNC_0(DMAContext *VAR_0, dma_addr_t VAR_1, uint8_t VAR_2, dma_addr_t VAR_3)\n{", "if (dma_has_iommu(VAR_0)) {", "return iommu_dma_memory_set(VAR_0, VAR_1, VAR_2, VAR_3);", "}", "do_dma_memory_set(VAR_1, VAR_2, VAR_3);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ] ]
13,122
static int loadvm_postcopy_handle_run(MigrationIncomingState *mis) { PostcopyState ps = postcopy_state_set(POSTCOPY_INCOMING_RUNNING); trace_loadvm_postcopy_handle_run(); if (ps != POSTCOPY_INCOMING_LISTENING) { error_report("CMD_POSTCOPY_RUN in wrong postcopy state (%d)", ps); retur...
true
qemu
864699227911909ef1e33ecf91bf3c900715a9b1
static int loadvm_postcopy_handle_run(MigrationIncomingState *mis) { PostcopyState ps = postcopy_state_set(POSTCOPY_INCOMING_RUNNING); trace_loadvm_postcopy_handle_run(); if (ps != POSTCOPY_INCOMING_LISTENING) { error_report("CMD_POSTCOPY_RUN in wrong postcopy state (%d)", ps); retur...
{ "code": [ " mis->bh = qemu_bh_new(loadvm_postcopy_handle_run_bh, NULL);", " qemu_bh_schedule(mis->bh);" ], "line_no": [ 21, 23 ] }
static int FUNC_0(MigrationIncomingState *VAR_0) { PostcopyState ps = postcopy_state_set(POSTCOPY_INCOMING_RUNNING); trace_loadvm_postcopy_handle_run(); if (ps != POSTCOPY_INCOMING_LISTENING) { error_report("CMD_POSTCOPY_RUN in wrong postcopy state (%d)", ps); return -1; } ...
[ "static int FUNC_0(MigrationIncomingState *VAR_0)\n{", "PostcopyState ps = postcopy_state_set(POSTCOPY_INCOMING_RUNNING);", "trace_loadvm_postcopy_handle_run();", "if (ps != POSTCOPY_INCOMING_LISTENING) {", "error_report(\"CMD_POSTCOPY_RUN in wrong postcopy state (%d)\", ps);", "return -1;", "}", "VAR...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 37 ], [ 39 ] ]
13,123
int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples) { AVPacket pkt; AVFrame *frame; int ret, samples_size, got_packet; av_init_packet(&pkt)...
true
FFmpeg
38004051b53ddecb518053e6dadafa9adc4fc1b2
int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples) { AVPacket pkt; AVFrame *frame; int ret, samples_size, got_packet; av_init_packet(&pkt)...
{ "code": [], "line_no": [] }
int VAR_0 avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples) { AVPacket pkt; AVFrame *frame; int ret, samples_size, got_packet; av_init_packet(&pkt); pkt.dat...
[ "int VAR_0 avcodec_encode_audio(AVCodecContext *avctx,\nuint8_t *buf, int buf_size,\nconst short *samples)\n{", "AVPacket pkt;", "AVFrame *frame;", "int ret, samples_size, got_packet;", "av_init_packet(&pkt);", "pkt.data = buf;", "pkt.size = buf_size;", "if (samples) {", "frame = av_frame_alloc();",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ], [...
13,124
void main_loop_wait(int nonblocking) { IOHandlerRecord *ioh; fd_set rfds, wfds, xfds; int ret, nfds; struct timeval tv; int timeout; if (nonblocking) timeout = 0; else { timeout = qemu_calculate_timeout(); qemu_bh_update_timeout(&timeout); } o...
true
qemu
0290b57bdfec83ca78b6d119ea9847bb17943328
void main_loop_wait(int nonblocking) { IOHandlerRecord *ioh; fd_set rfds, wfds, xfds; int ret, nfds; struct timeval tv; int timeout; if (nonblocking) timeout = 0; else { timeout = qemu_calculate_timeout(); qemu_bh_update_timeout(&timeout); } o...
{ "code": [ " if (ioh->deleted) {", " QLIST_REMOVE(ioh, next);", " qemu_free(ioh);", " continue;", " if (ioh->fd_read && FD_ISSET(ioh->fd, &rfds)) {", " if (ioh->fd_write && FD_ISSET(ioh->fd, &wfds)) {" ], "line_...
void FUNC_0(int VAR_0) { IOHandlerRecord *ioh; fd_set rfds, wfds, xfds; int VAR_1, VAR_2; struct timeval VAR_3; int VAR_4; if (VAR_0) VAR_4 = 0; else { VAR_4 = qemu_calculate_timeout(); qemu_bh_update_timeout(&VAR_4); } os_host_main_loop_wait(...
[ "void FUNC_0(int VAR_0)\n{", "IOHandlerRecord *ioh;", "fd_set rfds, wfds, xfds;", "int VAR_1, VAR_2;", "struct timeval VAR_3;", "int VAR_4;", "if (VAR_0)\nVAR_4 = 0;", "else {", "VAR_4 = qemu_calculate_timeout();", "qemu_bh_update_timeout(&VAR_4);", "}", "os_host_main_loop_wait(&VAR_4);", "V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53,...
13,125
static void gen_lswx(DisasContext *ctx) { TCGv t0; TCGv_i32 t1, t2, t3; gen_set_access_type(ctx, ACCESS_INT); /* NIP cannot be restored if the memory exception comes from an helper */ gen_update_nip(ctx, ctx->nip - 4); t0 = tcg_temp_new(); gen_addr_reg_index(ctx, t0); t1 = tcg_c...
true
qemu
e41029b378b4a65a0b89b5a8dc087aca6b5d012d
static void gen_lswx(DisasContext *ctx) { TCGv t0; TCGv_i32 t1, t2, t3; gen_set_access_type(ctx, ACCESS_INT); gen_update_nip(ctx, ctx->nip - 4); t0 = tcg_temp_new(); gen_addr_reg_index(ctx, t0); t1 = tcg_const_i32(rD(ctx->opcode)); t2 = tcg_const_i32(rA(ctx->opcode)); ...
{ "code": [ " gen_update_nip(ctx, ctx->nip - 4);", " gen_update_nip(ctx, ctx->nip - 4);", " gen_update_nip(ctx, ctx->nip - 4);", " gen_update_nip(ctx, ctx->nip - 4);" ], "line_no": [ 13, 13, 13, 13 ] }
static void FUNC_0(DisasContext *VAR_0) { TCGv t0; TCGv_i32 t1, t2, t3; gen_set_access_type(VAR_0, ACCESS_INT); gen_update_nip(VAR_0, VAR_0->nip - 4); t0 = tcg_temp_new(); gen_addr_reg_index(VAR_0, t0); t1 = tcg_const_i32(rD(VAR_0->opcode)); t2 = tcg_const_i32(rA(VAR_0->op...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "TCGv t0;", "TCGv_i32 t1, t2, t3;", "gen_set_access_type(VAR_0, ACCESS_INT);", "gen_update_nip(VAR_0, VAR_0->nip - 4);", "t0 = tcg_temp_new();", "gen_addr_reg_index(VAR_0, t0);", "t1 = tcg_const_i32(rD(VAR_0->opcode));", "t2 = tcg_const_i32(rA(VAR_0->opc...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
13,126
static void get_sensor_reading(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { IPMISensor *sens; IPMI_CHECK_CMD_LEN(3); if ((cmd[2] > MA...
true
qemu
73d60fa5fae60c8e07e1f295d8c7fd5d04320160
static void get_sensor_reading(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { IPMISensor *sens; IPMI_CHECK_CMD_LEN(3); if ((cmd[2] > MA...
{ "code": [ " if ((cmd[2] > MAX_SENSORS) ||", " if ((cmd[2] > MAX_SENSORS) ||", " if ((cmd[2] > MAX_SENSORS) ||", " if ((cmd[2] > MAX_SENSORS) ||", " if ((cmd[2] > MAX_SENSORS) ||", " if ((cmd[2] > MAX_SENSORS) ||", " if ((cmd[2] > MAX_SENSORS) ||" ], "line_no": [ ...
static void FUNC_0(IPMIBmcSim *VAR_0, uint8_t *VAR_1, unsigned int VAR_2, uint8_t *VAR_3, unsigned int *VAR_4, unsigned int VAR_5) { IPMISensor *sens; IPMI_CHECK_CMD_LEN(3); if ((VAR_1[2] > MAX_SENSORS) || ...
[ "static void FUNC_0(IPMIBmcSim *VAR_0,\nuint8_t *VAR_1, unsigned int VAR_2,\nuint8_t *VAR_3, unsigned int *VAR_4,\nunsigned int VAR_5)\n{", "IPMISensor *sens;", "IPMI_CHECK_CMD_LEN(3);", "if ((VAR_1[2] > MAX_SENSORS) ||\n!IPMI_SENSOR_GET_PRESENT(VAR_0->sensors + VAR_1[2])) {", "VAR_3[2] = IPMI_CC_REQ_ENTRY_...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
13,127
int spapr_tce_dma_read(VIOsPAPRDevice *dev, uint64_t taddr, void *buf, uint32_t size) { #ifdef DEBUG_TCE fprintf(stderr, "spapr_tce_dma_write taddr=0x%llx size=0x%x\n", (unsigned long long)taddr, size); #endif while (size) { uint64_t tce; uint32_t lsize; ...
true
qemu
08942ac17922d923a7cc5cf9854e9cc4b150b942
int spapr_tce_dma_read(VIOsPAPRDevice *dev, uint64_t taddr, void *buf, uint32_t size) { #ifdef DEBUG_TCE fprintf(stderr, "spapr_tce_dma_write taddr=0x%llx size=0x%x\n", (unsigned long long)taddr, size); #endif while (size) { uint64_t tce; uint32_t lsize; ...
{ "code": [], "line_no": [] }
int FUNC_0(VIOsPAPRDevice *VAR_0, uint64_t VAR_1, void *VAR_2, uint32_t VAR_3) { #ifdef DEBUG_TCE fprintf(stderr, "spapr_tce_dma_write VAR_1=0x%llx VAR_3=0x%x\n", (unsigned long long)VAR_1, VAR_3); #endif while (VAR_3) { uint64_t tce; uint32_t lsize; ui...
[ "int FUNC_0(VIOsPAPRDevice *VAR_0, uint64_t VAR_1, void *VAR_2,\nuint32_t VAR_3)\n{", "#ifdef DEBUG_TCE\nfprintf(stderr, \"spapr_tce_dma_write VAR_1=0x%llx VAR_3=0x%x\\n\",\n(unsigned long long)VAR_1, VAR_3);", "#endif\nwhile (VAR_3) {", "uint64_t tce;", "uint32_t lsize;", "uint64_t txaddr;", "if (VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8 ], [ 9 ], [ 10 ], [ 11 ], [ 13 ], [ 14, 15 ], [ 16, 17 ], [ 18 ], [ 20 ], [ 22 ], [ 23 ], [ 25, 26 ], [ 27, 28, 29 ], [ ...
13,128
static inline void RENAME(rgb32tobgr15)(const uint8_t *src, uint8_t *dst, int src_size) { const uint8_t *s = src; const uint8_t *end; const uint8_t *mm_end; uint16_t *d = (uint16_t *)dst; end = s + src_size; __asm__ volatile(PREFETCH" %0"::"m"(*src):"memory"); __asm__ volatile( ...
true
FFmpeg
90540c2d5ace46a1e9789c75fde0b1f7dbb12a9b
static inline void RENAME(rgb32tobgr15)(const uint8_t *src, uint8_t *dst, int src_size) { const uint8_t *s = src; const uint8_t *end; const uint8_t *mm_end; uint16_t *d = (uint16_t *)dst; end = s + src_size; __asm__ volatile(PREFETCH" %0"::"m"(*src):"memory"); __asm__ volatile( ...
{ "code": [ " PREFETCH\" 32%1 \\n\\t\"", " \"movd %1, %%mm0 \\n\\t\"", " PREFETCH\" 32%1 \\n\\t\"", " PREFETCH\" 32%1 \\n\\t\"", " \"movd %1, %%mm0 \\n\\t\"", " \"mo...
static inline void FUNC_0(rgb32tobgr15)(const uint8_t *src, uint8_t *dst, int src_size) { const uint8_t *VAR_0 = src; const uint8_t *VAR_1; const uint8_t *VAR_2; uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; __asm__ volatile(PREFETCH" %0"::"m"(*src):"memory"); __asm__ v...
[ "static inline void FUNC_0(rgb32tobgr15)(const uint8_t *src, uint8_t *dst, int src_size)\n{", "const uint8_t *VAR_0 = src;", "const uint8_t *VAR_1;", "const uint8_t *VAR_2;", "uint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "__asm__ volatile(PREFETCH\" %0\"::\"m\"(*src):\"memory\");", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59,...
13,129
void usb_test_hotplug(const char *hcd_id, const int port, void (*port_check)(void)) { QDict *response; char *cmd; cmd = g_strdup_printf("{'execute': 'device_add'," " 'arguments': {" " 'driver': 'usb-tablet'," ...
true
qemu
dc491fead04a92a612df93b85b0ebf9dcc3f6684
void usb_test_hotplug(const char *hcd_id, const int port, void (*port_check)(void)) { QDict *response; char *cmd; cmd = g_strdup_printf("{'execute': 'device_add'," " 'arguments': {" " 'driver': 'usb-tablet'," ...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, const int VAR_1, void (*VAR_2)(void)) { QDict *response; char *VAR_3; VAR_3 = g_strdup_printf("{'execute': 'device_add'," " 'arguments': {" " 'driver': 'usb-tablet'," ...
[ "void FUNC_0(const char *VAR_0, const int VAR_1,\nvoid (*VAR_2)(void))\n{", "QDict *response;", "char *VAR_3;", "VAR_3 = g_strdup_printf(\"{'execute': 'device_add',\"", "\" 'arguments': {\"", "\" 'driver': 'usb-tablet',\"\n\" 'VAR_1': '%d',\"\n\" 'bus': '%s.0',\"\n\" 'id': 'usbdev%d'\"\n\"}}\", V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 38 ], [ 40 ], [ 42 ], [ 46 ], [ 48 ], [ 50, 52 ], [ 54 ...
13,131
static inline int target_to_host_errno(int err) { if (target_to_host_errno_table[err]) return target_to_host_errno_table[err]; return err; }
true
qemu
2466119c9551d606a0f92f9832e0c865bc04b488
static inline int target_to_host_errno(int err) { if (target_to_host_errno_table[err]) return target_to_host_errno_table[err]; return err; }
{ "code": [ " if (target_to_host_errno_table[err])" ], "line_no": [ 5 ] }
static inline int FUNC_0(int VAR_0) { if (target_to_host_errno_table[VAR_0]) return target_to_host_errno_table[VAR_0]; return VAR_0; }
[ "static inline int FUNC_0(int VAR_0)\n{", "if (target_to_host_errno_table[VAR_0])\nreturn target_to_host_errno_table[VAR_0];", "return VAR_0;", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ] ]
13,132
int pcistb_service_call(S390CPU *cpu, uint8_t r1, uint8_t r3, uint64_t gaddr, uint8_t ar) { CPUS390XState *env = &cpu->env; S390PCIBusDevice *pbdev; MemoryRegion *mr; int i; uint32_t fh; uint8_t pcias; uint8_t len; uint8_t buffer[128]; if (env->ps...
true
qemu
88ee13c7b656e5504613b527f3a51591e9afae69
int pcistb_service_call(S390CPU *cpu, uint8_t r1, uint8_t r3, uint64_t gaddr, uint8_t ar) { CPUS390XState *env = &cpu->env; S390PCIBusDevice *pbdev; MemoryRegion *mr; int i; uint32_t fh; uint8_t pcias; uint8_t len; uint8_t buffer[128]; if (env->ps...
{ "code": [ " program_interrupt(env, PGM_ADDRESSING, 6);", " memory_region_dispatch_write(mr, env->regs[r3] + i * 8," ], "line_no": [ 127, 145 ] }
int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1, uint8_t VAR_2, uint64_t VAR_3, uint8_t VAR_4) { CPUS390XState *env = &VAR_0->env; S390PCIBusDevice *pbdev; MemoryRegion *mr; int VAR_5; uint32_t fh; uint8_t pcias; uint8_t len; uint8_t buffer[128]; if (env...
[ "int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1, uint8_t VAR_2, uint64_t VAR_3,\nuint8_t VAR_4)\n{", "CPUS390XState *env = &VAR_0->env;", "S390PCIBusDevice *pbdev;", "MemoryRegion *mr;", "int VAR_5;", "uint32_t fh;", "uint8_t pcias;", "uint8_t len;", "uint8_t buffer[128];", "if (env->psw.mask & PSW_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, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...
13,133
static void disas_sparc_insn(DisasContext * dc, unsigned int insn) { unsigned int opc, rs1, rs2, rd; TCGv cpu_src1, cpu_src2, cpu_tmp1, cpu_tmp2; TCGv_i32 cpu_src1_32, cpu_src2_32, cpu_dst_32; TCGv_i64 cpu_src1_64, cpu_src2_64, cpu_dst_64; target_long simm; if (unlikely(qemu_loglevel_ma...
true
qemu
a4273524875a960e8ef22ed676853e5988fefbea
static void disas_sparc_insn(DisasContext * dc, unsigned int insn) { unsigned int opc, rs1, rs2, rd; TCGv cpu_src1, cpu_src2, cpu_tmp1, cpu_tmp2; TCGv_i32 cpu_src1_32, cpu_src2_32, cpu_dst_32; TCGv_i64 cpu_src1_64, cpu_src2_64, cpu_dst_64; target_long simm; if (unlikely(qemu_loglevel_ma...
{ "code": [ " TCGv cpu_src1, cpu_src2, cpu_tmp1, cpu_tmp2;", " cpu_tmp1 = cpu_src1 = tcg_temp_new();", " cpu_tmp2 = cpu_src2 = tcg_temp_new();", " rs2 = GET_FIELD(insn, 27, 31);", " cpu_src2 = gen_load_gpr(dc, rs2);", " } else", " tcg_te...
static void FUNC_0(DisasContext * VAR_0, unsigned int VAR_1) { unsigned int VAR_2, VAR_3, VAR_4, VAR_5; TCGv cpu_src1, cpu_src2, cpu_tmp1, cpu_tmp2; TCGv_i32 cpu_src1_32, cpu_src2_32, cpu_dst_32; TCGv_i64 cpu_src1_64, cpu_src2_64, cpu_dst_64; target_long simm; if (unlikely(qemu_loglevel...
[ "static void FUNC_0(DisasContext * VAR_0, unsigned int VAR_1)\n{", "unsigned int VAR_2, VAR_3, VAR_4, VAR_5;", "TCGv cpu_src1, cpu_src2, cpu_tmp1, cpu_tmp2;", "TCGv_i32 cpu_src1_32, cpu_src2_32, cpu_dst_32;", "TCGv_i64 cpu_src1_64, cpu_src2_64, cpu_dst_64;", "target_long simm;", "if (unlikely(qemu_logle...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53,...
13,134
MigrationState *migrate_init(const MigrationParams *params) { MigrationState *s = migrate_get_current(); int64_t bandwidth_limit = s->bandwidth_limit; bool enabled_capabilities[MIGRATION_CAPABILITY_MAX]; int64_t xbzrle_cache_size = s->xbzrle_cache_size; int compress_level = s->parameters[MIGRA...
true
qemu
389775d1f67b2c8f44f9473b1e5363735972e389
MigrationState *migrate_init(const MigrationParams *params) { MigrationState *s = migrate_get_current(); int64_t bandwidth_limit = s->bandwidth_limit; bool enabled_capabilities[MIGRATION_CAPABILITY_MAX]; int64_t xbzrle_cache_size = s->xbzrle_cache_size; int compress_level = s->parameters[MIGRA...
{ "code": [ " int64_t bandwidth_limit = s->bandwidth_limit;", " bool enabled_capabilities[MIGRATION_CAPABILITY_MAX];", " int64_t xbzrle_cache_size = s->xbzrle_cache_size;", " int compress_level = s->parameters[MIGRATION_PARAMETER_COMPRESS_LEVEL];", " int compress_thread_count =", ...
MigrationState *FUNC_0(const MigrationParams *params) { MigrationState *s = migrate_get_current(); int64_t bandwidth_limit = s->bandwidth_limit; bool enabled_capabilities[MIGRATION_CAPABILITY_MAX]; int64_t xbzrle_cache_size = s->xbzrle_cache_size; int VAR_0 = s->parameters[MIGRATION_PARAMETER_...
[ "MigrationState *FUNC_0(const MigrationParams *params)\n{", "MigrationState *s = migrate_get_current();", "int64_t bandwidth_limit = s->bandwidth_limit;", "bool enabled_capabilities[MIGRATION_CAPABILITY_MAX];", "int64_t xbzrle_cache_size = s->xbzrle_cache_size;", "int VAR_0 = s->parameters[MIGRATION_PARAM...
[ 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51 ], [ 53,...
13,138
static void vc1_put_ver_16b_shift2_mmx(int16_t *dst, const uint8_t *src, x86_reg stride, int rnd, int64_t shift) { __asm__ volatile( "mov $3, %%"REG_c" \n\t" LOAD_ROUNDER_MMX("%5") "movq ...
false
FFmpeg
ab5f43e6342c4c07faf5c9ae87628d7d7c83abb6
static void vc1_put_ver_16b_shift2_mmx(int16_t *dst, const uint8_t *src, x86_reg stride, int rnd, int64_t shift) { __asm__ volatile( "mov $3, %%"REG_c" \n\t" LOAD_ROUNDER_MMX("%5") "movq ...
{ "code": [], "line_no": [] }
static void FUNC_0(int16_t *VAR_0, const uint8_t *VAR_1, x86_reg VAR_2, int VAR_3, int64_t VAR_4) { __asm__ volatile( "mov $3, %%"REG_c" \n\t" LOAD_ROUNDER_MMX("%5") "movq "MANGLE(ff_pw_...
[ "static void FUNC_0(int16_t *VAR_0,\nconst uint8_t *VAR_1, x86_reg VAR_2,\nint VAR_3, int64_t VAR_4)\n{", "__asm__ volatile(\n\"mov $3, %%\"REG_c\" \\n\\t\"\nLOAD_ROUNDER_MMX(\"%5\")\n\"movq \"MANGLE(ff_pw_9)\", %%mm6 \\n\\t\"\n\"1: \\n\\t\"\n\"movd (%0), %...
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63 ], [ 65 ] ]
13,139
static int mov_read_custom(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int64_t end = avio_tell(pb) + atom.size; uint8_t *key = NULL, *val = NULL, *mean = NULL; int i; AVStream *st; MOVStreamContext *sc; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb...
true
FFmpeg
e22bd239c046014652a3487f542f2ab7b34f7a62
static int mov_read_custom(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int64_t end = avio_tell(pb) + atom.size; uint8_t *key = NULL, *val = NULL, *mean = NULL; int i; AVStream *st; MOVStreamContext *sc; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb...
{ "code": [ " int ret;", " return ret;", " return 0;" ], "line_no": [ 33, 93, 147 ] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { int64_t end = avio_tell(VAR_1) + VAR_2.size; uint8_t *key = NULL, *val = NULL, *mean = NULL; int VAR_3; AVStream *st; MOVStreamContext *sc; if (VAR_0->fc->nb_streams < 1) return 0; st = VAR_0->fc->st...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "int64_t end = avio_tell(VAR_1) + VAR_2.size;", "uint8_t *key = NULL, *val = NULL, *mean = NULL;", "int VAR_3;", "AVStream *st;", "MOVStreamContext *sc;", "if (VAR_0->fc->nb_streams < 1)\nreturn 0;", "st = VAR_0->fc->streams...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [...
13,141
static AVBufferRef *dxva2_pool_alloc(void *opaque, int size) { AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; DXVA2FramesContext *s = ctx->internal->priv; AVDXVA2FramesContext *hwctx = ctx->hwctx; if (s->nb_surfaces_used < hwctx->nb_surfaces) { s->nb_surfaces_used++; ...
true
FFmpeg
3d040513a1de4797a4f81dde4984395f51db76b7
static AVBufferRef *dxva2_pool_alloc(void *opaque, int size) { AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; DXVA2FramesContext *s = ctx->internal->priv; AVDXVA2FramesContext *hwctx = ctx->hwctx; if (s->nb_surfaces_used < hwctx->nb_surfaces) { s->nb_surfaces_used++; ...
{ "code": [ " sizeof(*hwctx->surfaces), NULL, 0, 0);" ], "line_no": [ 19 ] }
static AVBufferRef *FUNC_0(void *opaque, int size) { AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; DXVA2FramesContext *s = ctx->internal->priv; AVDXVA2FramesContext *hwctx = ctx->hwctx; if (s->nb_surfaces_used < hwctx->nb_surfaces) { s->nb_surfaces_used++; retu...
[ "static AVBufferRef *FUNC_0(void *opaque, int size)\n{", "AVHWFramesContext *ctx = (AVHWFramesContext*)opaque;", "DXVA2FramesContext *s = ctx->internal->priv;", "AVDXVA2FramesContext *hwctx = ctx->hwctx;", "if (s->nb_surfaces_used < hwctx->nb_surfaces) {", "s->nb_surfaces_used++;", "return av...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ] ]
13,142
void put_string(PutBitContext * pbc, char *s) { while(*s){ put_bits(pbc, 8, *s); s++; } put_bits(pbc, 8, 0); }
true
FFmpeg
99683a307776a7638ccce236a4ce5aa3e914e77d
void put_string(PutBitContext * pbc, char *s) { while(*s){ put_bits(pbc, 8, *s); s++; } put_bits(pbc, 8, 0); }
{ "code": [ "void put_string(PutBitContext * pbc, char *s)", " put_bits(pbc, 8, 0);" ], "line_no": [ 1, 13 ] }
void FUNC_0(PutBitContext * VAR_0, char *VAR_1) { while(*VAR_1){ put_bits(VAR_0, 8, *VAR_1); VAR_1++; } put_bits(VAR_0, 8, 0); }
[ "void FUNC_0(PutBitContext * VAR_0, char *VAR_1)\n{", "while(*VAR_1){", "put_bits(VAR_0, 8, *VAR_1);", "VAR_1++;", "}", "put_bits(VAR_0, 8, 0);", "}" ]
[ 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
13,143
static void mp_decode_frame_helper(MotionPixelsContext *mp, GetBitContext *gb) { YuvPixel p; int y, y0; for (y = 0; y < mp->avctx->height; ++y) { if (mp->changes_map[y * mp->avctx->width] != 0) { memset(mp->gradient_scale, 1, sizeof(mp->gradient_scale)); p = mp_get_yuv_from_r...
true
FFmpeg
05b0337025f629d0a6c6321147f06d0da5e32a62
static void mp_decode_frame_helper(MotionPixelsContext *mp, GetBitContext *gb) { YuvPixel p; int y, y0; for (y = 0; y < mp->avctx->height; ++y) { if (mp->changes_map[y * mp->avctx->width] != 0) { memset(mp->gradient_scale, 1, sizeof(mp->gradient_scale)); p = mp_get_yuv_from_r...
{ "code": [], "line_no": [] }
static void FUNC_0(MotionPixelsContext *VAR_0, GetBitContext *VAR_1) { YuvPixel p; int VAR_2, VAR_3; for (VAR_2 = 0; VAR_2 < VAR_0->avctx->height; ++VAR_2) { if (VAR_0->changes_map[VAR_2 * VAR_0->avctx->width] != 0) { memset(VAR_0->gradient_scale, 1, sizeof(VAR_0->gradient_scale)); ...
[ "static void FUNC_0(MotionPixelsContext *VAR_0, GetBitContext *VAR_1)\n{", "YuvPixel p;", "int VAR_2, VAR_3;", "for (VAR_2 = 0; VAR_2 < VAR_0->avctx->height; ++VAR_2) {", "if (VAR_0->changes_map[VAR_2 * VAR_0->avctx->width] != 0) {", "memset(VAR_0->gradient_scale, 1, sizeof(VAR_0->gradient_scale));", "p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ],...
13,144
static int find_start_code(const uint8_t **pbuf_ptr, const uint8_t *buf_end) { const uint8_t *buf_ptr= *pbuf_ptr; buf_ptr++; //gurantees that -1 is within the array buf_end -= 2; // gurantees that +2 is within the array while (buf_ptr < buf_end) { if(*buf_ptr==0){ while(bu...
true
FFmpeg
dd1a74d25decd6eaa7c78a7062fa12edb043efaf
static int find_start_code(const uint8_t **pbuf_ptr, const uint8_t *buf_end) { const uint8_t *buf_ptr= *pbuf_ptr; buf_ptr++; buf_end -= 2; while (buf_ptr < buf_end) { if(*buf_ptr==0){ while(buf_ptr < buf_end && buf_ptr[1]==0) buf_ptr++; if...
{ "code": [], "line_no": [] }
static int FUNC_0(const uint8_t **VAR_0, const uint8_t *VAR_1) { const uint8_t *VAR_2= *VAR_0; VAR_2++; VAR_1 -= 2; while (VAR_2 < VAR_1) { if(*VAR_2==0){ while(VAR_2 < VAR_1 && VAR_2[1]==0) VAR_2++; if(VAR_2[-1] == 0 && VAR_2[1] == 1){ ...
[ "static int FUNC_0(const uint8_t **VAR_0, const uint8_t *VAR_1)\n{", "const uint8_t *VAR_2= *VAR_0;", "VAR_2++;", "VAR_1 -= 2;", "while (VAR_2 < VAR_1) {", "if(*VAR_2==0){", "while(VAR_2 < VAR_1 && VAR_2[1]==0)\nVAR_2++;", "if(VAR_2[-1] == 0 && VAR_2[1] == 1){", "*VAR_0 = VAR_2+3;", "return VAR_2[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ] ]
13,145
static void pc_q35_2_4_machine_options(MachineClass *m) { PCMachineClass *pcmc = PC_MACHINE_CLASS(m); pc_q35_2_5_machine_options(m); m->alias = NULL; pcmc->broken_reserved_end = true; pcmc->inter_dimm_gap = false; SET_MACHINE_COMPAT(m, PC_COMPAT_2_4); }
true
qemu
340065e5a11a515382c8b1112424c97e86ad2a3f
static void pc_q35_2_4_machine_options(MachineClass *m) { PCMachineClass *pcmc = PC_MACHINE_CLASS(m); pc_q35_2_5_machine_options(m); m->alias = NULL; pcmc->broken_reserved_end = true; pcmc->inter_dimm_gap = false; SET_MACHINE_COMPAT(m, PC_COMPAT_2_4); }
{ "code": [ " pcmc->inter_dimm_gap = false;", " pcmc->inter_dimm_gap = false;" ], "line_no": [ 13, 13 ] }
static void FUNC_0(MachineClass *VAR_0) { PCMachineClass *pcmc = PC_MACHINE_CLASS(VAR_0); pc_q35_2_5_machine_options(VAR_0); VAR_0->alias = NULL; pcmc->broken_reserved_end = true; pcmc->inter_dimm_gap = false; SET_MACHINE_COMPAT(VAR_0, PC_COMPAT_2_4); }
[ "static void FUNC_0(MachineClass *VAR_0)\n{", "PCMachineClass *pcmc = PC_MACHINE_CLASS(VAR_0);", "pc_q35_2_5_machine_options(VAR_0);", "VAR_0->alias = NULL;", "pcmc->broken_reserved_end = true;", "pcmc->inter_dimm_gap = false;", "SET_MACHINE_COMPAT(VAR_0, PC_COMPAT_2_4);", "}" ]
[ 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
13,146
av_cold int ff_nvenc_encode_init(AVCodecContext *avctx) { int ret; if ((ret = nvenc_load_libraries(avctx)) < 0) return ret; if ((ret = nvenc_setup_device(avctx)) < 0) return ret; if ((ret = nvenc_setup_encoder(avctx)) < 0) return ret; if ((ret = nvenc_setup_s...
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
av_cold int ff_nvenc_encode_init(AVCodecContext *avctx) { int ret; if ((ret = nvenc_load_libraries(avctx)) < 0) return ret; if ((ret = nvenc_setup_device(avctx)) < 0) return ret; if ((ret = nvenc_setup_encoder(avctx)) < 0) return ret; if ((ret = nvenc_setup_s...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(AVCodecContext *avctx) { int VAR_0; if ((VAR_0 = nvenc_load_libraries(avctx)) < 0) return VAR_0; if ((VAR_0 = nvenc_setup_device(avctx)) < 0) return VAR_0; if ((VAR_0 = nvenc_setup_encoder(avctx)) < 0) return VAR_0; if ((VAR_0 = nvenc_setup...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "int VAR_0;", "if ((VAR_0 = nvenc_load_libraries(avctx)) < 0)\nreturn VAR_0;", "if ((VAR_0 = nvenc_setup_device(avctx)) < 0)\nreturn VAR_0;", "if ((VAR_0 = nvenc_setup_encoder(avctx)) < 0)\nreturn VAR_0;", "if ((VAR_0 = nvenc_setup_surfaces(avctx)) < 0)\nret...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15, 17 ], [ 21, 23 ], [ 27, 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 51 ], [ 53 ] ]
13,148
static int qemu_rdma_exchange_get_response(RDMAContext *rdma, RDMAControlHeader *head, int expecting, int idx) { uint32_t byte_len; int ret = qemu_rdma_block_for_wrid(rdma, RDMA_WRID_RECV_CONTROL + idx, &byte_len); if (ret < 0) { fprint...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int qemu_rdma_exchange_get_response(RDMAContext *rdma, RDMAControlHeader *head, int expecting, int idx) { uint32_t byte_len; int ret = qemu_rdma_block_for_wrid(rdma, RDMA_WRID_RECV_CONTROL + idx, &byte_len); if (ret < 0) { fprint...
{ "code": [], "line_no": [] }
static int FUNC_0(RDMAContext *VAR_0, RDMAControlHeader *VAR_1, int VAR_2, int VAR_3) { uint32_t byte_len; int VAR_4 = qemu_rdma_block_for_wrid(VAR_0, RDMA_WRID_RECV_CONTROL + VAR_3, &byte_len); if (VAR_4 < 0) { fprintf(stderr, "VAR_0 m...
[ "static int FUNC_0(RDMAContext *VAR_0,\nRDMAControlHeader *VAR_1, int VAR_2, int VAR_3)\n{", "uint32_t byte_len;", "int VAR_4 = qemu_rdma_block_for_wrid(VAR_0, RDMA_WRID_RECV_CONTROL + VAR_3,\n&byte_len);", "if (VAR_4 < 0) {", "fprintf(stderr, \"VAR_0 migration: recv polling control error!\\n\");", "retur...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45, 47, 49 ], [ 51 ], [ 53 ], [ 55 ...
13,150
static inline void kqemu_load_seg(struct kqemu_segment_cache *ksc, const SegmentCache *sc) { ksc->selector = sc->selector; ksc->flags = sc->flags; ksc->limit = sc->limit; ksc->base = sc->base; }
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
static inline void kqemu_load_seg(struct kqemu_segment_cache *ksc, const SegmentCache *sc) { ksc->selector = sc->selector; ksc->flags = sc->flags; ksc->limit = sc->limit; ksc->base = sc->base; }
{ "code": [], "line_no": [] }
static inline void FUNC_0(struct kqemu_segment_cache *VAR_0, const SegmentCache *VAR_1) { VAR_0->selector = VAR_1->selector; VAR_0->flags = VAR_1->flags; VAR_0->limit = VAR_1->limit; VAR_0->base = VAR_1->base; }
[ "static inline void FUNC_0(struct kqemu_segment_cache *VAR_0,\nconst SegmentCache *VAR_1)\n{", "VAR_0->selector = VAR_1->selector;", "VAR_0->flags = VAR_1->flags;", "VAR_0->limit = VAR_1->limit;", "VAR_0->base = VAR_1->base;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
13,151
int avcodec_decode_audio2(AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, uint8_t *buf, int buf_size) { int ret; //FIXME remove the check below _after_ ensuring that all audio check that the available space is enough if(*frame_size_ptr ...
false
FFmpeg
9c856d62be91f9bf4c4c671ce5cea1feef4936c7
int avcodec_decode_audio2(AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, uint8_t *buf, int buf_size) { int ret; if(*frame_size_ptr < AVCODEC_MAX_AUDIO_FRAME_SIZE){ av_log(avctx, AV_LOG_ERROR, "buffer smaller than AVCODEC_MAX_...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, int16_t *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { int VAR_5; if(*VAR_2 < AVCODEC_MAX_AUDIO_FRAME_SIZE){ av_log(VAR_0, AV_LOG_ERROR, "buffer smaller than AVCODEC_MAX_AUDIO_FRAME_SIZE\n"); ret...
[ "int FUNC_0(AVCodecContext *VAR_0, int16_t *VAR_1,\nint *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "int VAR_5;", "if(*VAR_2 < AVCODEC_MAX_AUDIO_FRAME_SIZE){", "av_log(VAR_0, AV_LOG_ERROR, \"buffer smaller than AVCODEC_MAX_AUDIO_FRAME_SIZE\\n\");", "return -1;", "}", "if(*VAR_2 < FF_MIN_BUFFER_SIZE ||\n*VA...
[ 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 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
13,152
static int64_t ffm_read_write_index(int fd) { uint8_t buf[8]; lseek(fd, 8, SEEK_SET); if (read(fd, buf, 8) != 8) return AVERROR(EIO); return AV_RB64(buf); }
false
FFmpeg
71bc8c95d7cac552d3a2cb3120e41207dfb48e50
static int64_t ffm_read_write_index(int fd) { uint8_t buf[8]; lseek(fd, 8, SEEK_SET); if (read(fd, buf, 8) != 8) return AVERROR(EIO); return AV_RB64(buf); }
{ "code": [], "line_no": [] }
static int64_t FUNC_0(int fd) { uint8_t buf[8]; lseek(fd, 8, SEEK_SET); if (read(fd, buf, 8) != 8) return AVERROR(EIO); return AV_RB64(buf); }
[ "static int64_t FUNC_0(int fd)\n{", "uint8_t buf[8];", "lseek(fd, 8, SEEK_SET);", "if (read(fd, buf, 8) != 8)\nreturn AVERROR(EIO);", "return AV_RB64(buf);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
13,153
static void virtio_net_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq) { VirtIONet *n = VIRTIO_NET(vdev); struct virtio_net_ctrl_hdr ctrl; virtio_net_ctrl_ack status = VIRTIO_NET_ERR; VirtQueueElement elem; size_t s; struct iovec *iov, *iov2; unsigned int iov_cnt; while (virtqu...
false
qemu
51b19ebe4320f3dcd93cea71235c1219318ddfd2
static void virtio_net_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq) { VirtIONet *n = VIRTIO_NET(vdev); struct virtio_net_ctrl_hdr ctrl; virtio_net_ctrl_ack status = VIRTIO_NET_ERR; VirtQueueElement elem; size_t s; struct iovec *iov, *iov2; unsigned int iov_cnt; while (virtqu...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1) { VirtIONet *n = VIRTIO_NET(VAR_0); struct virtio_net_ctrl_hdr VAR_2; virtio_net_ctrl_ack status = VIRTIO_NET_ERR; VirtQueueElement elem; size_t s; struct iovec *VAR_3, *VAR_4; unsigned int VAR_5; while (virtqueue_pop(V...
[ "static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{", "VirtIONet *n = VIRTIO_NET(VAR_0);", "struct virtio_net_ctrl_hdr VAR_2;", "virtio_net_ctrl_ack status = VIRTIO_NET_ERR;", "VirtQueueElement elem;", "size_t s;", "struct iovec *VAR_3, *VAR_4;", "unsigned int VAR_5;", "while (virtqueue_po...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 41 ], [ 43 ], [ 45 ], [...
13,157
void cpu_exec_realizefn(CPUState *cpu, Error **errp) { CPUClass *cc = CPU_GET_CLASS(cpu); cpu_list_add(cpu); if (tcg_enabled() && !cc->tcg_initialized) { cc->tcg_initialized = true; cc->tcg_initialize(); } #ifndef CONFIG_USER_ONLY if (qdev_get_vmsd(DEVICE(cpu)) == NULL...
false
qemu
2dda635410e95843562e5257a8f173e7115a7a1e
void cpu_exec_realizefn(CPUState *cpu, Error **errp) { CPUClass *cc = CPU_GET_CLASS(cpu); cpu_list_add(cpu); if (tcg_enabled() && !cc->tcg_initialized) { cc->tcg_initialized = true; cc->tcg_initialize(); } #ifndef CONFIG_USER_ONLY if (qdev_get_vmsd(DEVICE(cpu)) == NULL...
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, Error **VAR_1) { CPUClass *cc = CPU_GET_CLASS(VAR_0); cpu_list_add(VAR_0); if (tcg_enabled() && !cc->tcg_initialized) { cc->tcg_initialized = true; cc->tcg_initialize(); } #ifndef CONFIG_USER_ONLY if (qdev_get_vmsd(DEVICE(VAR_0)) == NULL) {...
[ "void FUNC_0(CPUState *VAR_0, Error **VAR_1)\n{", "CPUClass *cc = CPU_GET_CLASS(VAR_0);", "cpu_list_add(VAR_0);", "if (tcg_enabled() && !cc->tcg_initialized) {", "cc->tcg_initialized = true;", "cc->tcg_initialize();", "}", "#ifndef CONFIG_USER_ONLY\nif (qdev_get_vmsd(DEVICE(VAR_0)) == NULL) {", "vms...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ] ]
13,158
float32 helper_fitos(CPUSPARCState *env, int32_t src) { /* Inexact error possible converting int to float. */ float32 ret; clear_float_exceptions(env); ret = int32_to_float32(src, &env->fp_status); check_ieee_exceptions(env); return ret; }
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
float32 helper_fitos(CPUSPARCState *env, int32_t src) { float32 ret; clear_float_exceptions(env); ret = int32_to_float32(src, &env->fp_status); check_ieee_exceptions(env); return ret; }
{ "code": [], "line_no": [] }
float32 FUNC_0(CPUSPARCState *env, int32_t src) { float32 ret; clear_float_exceptions(env); ret = int32_to_float32(src, &env->fp_status); check_ieee_exceptions(env); return ret; }
[ "float32 FUNC_0(CPUSPARCState *env, int32_t src)\n{", "float32 ret;", "clear_float_exceptions(env);", "ret = int32_to_float32(src, &env->fp_status);", "check_ieee_exceptions(env);", "return ret;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
13,159
static void test_wait_event_notifier(void) { EventNotifierTestData data = { .n = 0, .active = 1 }; event_notifier_init(&data.e, false); aio_set_event_notifier(ctx, &data.e, event_ready_cb); g_assert(!aio_poll(ctx, false)); g_assert_cmpint(data.n, ==, 0); g_assert_cmpint(data.active, ==, 1...
false
qemu
12d69ac03b45156356b240424623719f15d8143e
static void test_wait_event_notifier(void) { EventNotifierTestData data = { .n = 0, .active = 1 }; event_notifier_init(&data.e, false); aio_set_event_notifier(ctx, &data.e, event_ready_cb); g_assert(!aio_poll(ctx, false)); g_assert_cmpint(data.n, ==, 0); g_assert_cmpint(data.active, ==, 1...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { EventNotifierTestData data = { .n = 0, .active = 1 }; event_notifier_init(&data.e, false); aio_set_event_notifier(ctx, &data.e, event_ready_cb); g_assert(!aio_poll(ctx, false)); g_assert_cmpint(data.n, ==, 0); g_assert_cmpint(data.active, ==, 1); event_no...
[ "static void FUNC_0(void)\n{", "EventNotifierTestData data = { .n = 0, .active = 1 };", "event_notifier_init(&data.e, false);", "aio_set_event_notifier(ctx, &data.e, event_ready_cb);", "g_assert(!aio_poll(ctx, false));", "g_assert_cmpint(data.n, ==, 0);", "g_assert_cmpint(data.active, ==, 1);", "event...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
13,160
static void bswap_shdr(struct elf_shdr *shdr) { bswap32s(&shdr->sh_name); bswap32s(&shdr->sh_type); bswaptls(&shdr->sh_flags); bswaptls(&shdr->sh_addr); bswaptls(&shdr->sh_offset); bswaptls(&shdr->sh_size); bswap32s(&shdr->sh_link); bswap32s(&shdr->sh_info); bswaptls(&shdr-...
false
qemu
991f8f0c91d65cebf51fa931450e02b0d5209012
static void bswap_shdr(struct elf_shdr *shdr) { bswap32s(&shdr->sh_name); bswap32s(&shdr->sh_type); bswaptls(&shdr->sh_flags); bswaptls(&shdr->sh_addr); bswaptls(&shdr->sh_offset); bswaptls(&shdr->sh_size); bswap32s(&shdr->sh_link); bswap32s(&shdr->sh_info); bswaptls(&shdr-...
{ "code": [], "line_no": [] }
static void FUNC_0(struct elf_shdr *VAR_0) { bswap32s(&VAR_0->sh_name); bswap32s(&VAR_0->sh_type); bswaptls(&VAR_0->sh_flags); bswaptls(&VAR_0->sh_addr); bswaptls(&VAR_0->sh_offset); bswaptls(&VAR_0->sh_size); bswap32s(&VAR_0->sh_link); bswap32s(&VAR_0->sh_info); bswaptls(&...
[ "static void FUNC_0(struct elf_shdr *VAR_0)\n{", "bswap32s(&VAR_0->sh_name);", "bswap32s(&VAR_0->sh_type);", "bswaptls(&VAR_0->sh_flags);", "bswaptls(&VAR_0->sh_addr);", "bswaptls(&VAR_0->sh_offset);", "bswaptls(&VAR_0->sh_size);", "bswap32s(&VAR_0->sh_link);", "bswap32s(&VAR_0->sh_info);", "bswap...
[ 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 ] ]
13,161
void fdt_build_clock_node(void *host_fdt, void *guest_fdt, uint32_t host_phandle, uint32_t guest_phandle) { char *node_path = NULL; char *nodename; const void *r; int ret, node_offset, prop_len, path_len = 16; node_offset = fdt_node_offset_...
false
qemu
cf5a13e370afad57f1cfab0a8871ed839f5eda48
void fdt_build_clock_node(void *host_fdt, void *guest_fdt, uint32_t host_phandle, uint32_t guest_phandle) { char *node_path = NULL; char *nodename; const void *r; int ret, node_offset, prop_len, path_len = 16; node_offset = fdt_node_offset_...
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, void *VAR_1, uint32_t VAR_2, uint32_t VAR_3) { char *VAR_4 = NULL; char *VAR_5; const void *VAR_6; int VAR_7, VAR_8, VAR_9, VAR_10 = 16; VAR_8 = fdt_node_offset_by_phandle(VAR_0, VAR_2); if (VAR_8 <= 0) { ...
[ "void FUNC_0(void *VAR_0, void *VAR_1,\nuint32_t VAR_2,\nuint32_t VAR_3)\n{", "char *VAR_4 = NULL;", "char *VAR_5;", "const void *VAR_6;", "int VAR_7, VAR_8, VAR_9, VAR_10 = 16;", "VAR_8 = fdt_node_offset_by_phandle(VAR_0, VAR_2);", "if (VAR_8 <= 0) {", "error_setg(&error_fatal,\n\"not able to locate ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47, 49 ], [...
13,162
static always_inline int _find_pte (mmu_ctx_t *ctx, int is_64b, int h, int rw) { target_ulong base, pte0, pte1; int i, good = -1; int ret, r; ret = -1; /* No entry found */ base = ctx->pg_addr[h]; for (i = 0; i < 8; i++) { #if defined(TARGET_PPC64) if (is_64b) { p...
false
qemu
b227a8e9aa5f27d29f77ba90d5eb9d0662a1175e
static always_inline int _find_pte (mmu_ctx_t *ctx, int is_64b, int h, int rw) { target_ulong base, pte0, pte1; int i, good = -1; int ret, r; ret = -1; base = ctx->pg_addr[h]; for (i = 0; i < 8; i++) { #if defined(TARGET_PPC64) if (is_64b) { pte0 = ldq_phys(base ...
{ "code": [], "line_no": [] }
static always_inline int FUNC_0 (mmu_ctx_t *ctx, int is_64b, int h, int rw) { target_ulong base, pte0, pte1; int VAR_0, VAR_1 = -1; int VAR_2, VAR_3; VAR_2 = -1; base = ctx->pg_addr[h]; for (VAR_0 = 0; VAR_0 < 8; VAR_0++) { #if defined(TARGET_PPC64) if (is_64b) { ...
[ "static always_inline int FUNC_0 (mmu_ctx_t *ctx, int is_64b, int h, int rw)\n{", "target_ulong base, pte0, pte1;", "int VAR_0, VAR_1 = -1;", "int VAR_2, VAR_3;", "VAR_2 = -1;", "base = ctx->pg_addr[h];", "for (VAR_0 = 0; VAR_0 < 8; VAR_0++) {", "#if defined(TARGET_PPC64)\nif (is_64b) {", "pte0 = ld...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35, 37, 39, 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ...
13,164
static void x86_cpu_register_feature_bit_props(X86CPU *cpu, FeatureWord w, int bitnr) { Object *obj = OBJECT(cpu); int i; char **names; FeatureWordInfo *fi = &feature_word_info[w]; if (!fi->feat_n...
false
qemu
fc7dfd205f3287893c436d932a167bffa30579c8
static void x86_cpu_register_feature_bit_props(X86CPU *cpu, FeatureWord w, int bitnr) { Object *obj = OBJECT(cpu); int i; char **names; FeatureWordInfo *fi = &feature_word_info[w]; if (!fi->feat_n...
{ "code": [], "line_no": [] }
static void FUNC_0(X86CPU *VAR_0, FeatureWord VAR_1, int VAR_2) { Object *obj = OBJECT(VAR_0); int VAR_3; char **VAR_4; FeatureWordInfo *fi = &feature_word_info[VAR_1]; if (!fi->feat_names[VAR_2])...
[ "static void FUNC_0(X86CPU *VAR_0,\nFeatureWord VAR_1,\nint VAR_2)\n{", "Object *obj = OBJECT(VAR_0);", "int VAR_3;", "char **VAR_4;", "FeatureWordInfo *fi = &feature_word_info[VAR_1];", "if (!fi->feat_names[VAR_2]) {", "return;", "}", "VAR_4 = g_strsplit(fi->feat_names[VAR_2], \"|\", 0);", "feat2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 49 ], [ 51 ] ]
13,165
static void reschedule_dma(void *opaque) { DMAAIOCB *dbs = (DMAAIOCB *)opaque; qemu_bh_delete(dbs->bh); dbs->bh = NULL; dma_bdrv_cb(dbs, 0); }
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void reschedule_dma(void *opaque) { DMAAIOCB *dbs = (DMAAIOCB *)opaque; qemu_bh_delete(dbs->bh); dbs->bh = NULL; dma_bdrv_cb(dbs, 0); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { DMAAIOCB *dbs = (DMAAIOCB *)VAR_0; qemu_bh_delete(dbs->bh); dbs->bh = NULL; dma_bdrv_cb(dbs, 0); }
[ "static void FUNC_0(void *VAR_0)\n{", "DMAAIOCB *dbs = (DMAAIOCB *)VAR_0;", "qemu_bh_delete(dbs->bh);", "dbs->bh = NULL;", "dma_bdrv_cb(dbs, 0);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
13,166
static inline void gen_lookup_tb(DisasContext *s) { tcg_gen_movi_i32(cpu_R[15], s->pc & ~1); s->is_jmp = DISAS_JUMP; }
false
qemu
8a6b28c7b5104263344508df0f4bce97f22cfcaf
static inline void gen_lookup_tb(DisasContext *s) { tcg_gen_movi_i32(cpu_R[15], s->pc & ~1); s->is_jmp = DISAS_JUMP; }
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0) { tcg_gen_movi_i32(cpu_R[15], VAR_0->pc & ~1); VAR_0->is_jmp = DISAS_JUMP; }
[ "static inline void FUNC_0(DisasContext *VAR_0)\n{", "tcg_gen_movi_i32(cpu_R[15], VAR_0->pc & ~1);", "VAR_0->is_jmp = DISAS_JUMP;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
13,168
int kvm_arch_init_vcpu(CPUState *env) { struct { struct kvm_cpuid2 cpuid; struct kvm_cpuid_entry2 entries[100]; } __attribute__((packed)) cpuid_data; uint32_t limit, i, j, cpuid_i; uint32_t unused; struct kvm_cpuid_entry2 *c; uint32_t signature[3]; env->cpuid_feat...
false
qemu
ba9bc59e1f5dc91caf35e0ef08da137b3a5e7386
int kvm_arch_init_vcpu(CPUState *env) { struct { struct kvm_cpuid2 cpuid; struct kvm_cpuid_entry2 entries[100]; } __attribute__((packed)) cpuid_data; uint32_t limit, i, j, cpuid_i; uint32_t unused; struct kvm_cpuid_entry2 *c; uint32_t signature[3]; env->cpuid_feat...
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0) { struct { struct kvm_cpuid2 cpuid; struct kvm_cpuid_entry2 entries[100]; } __attribute__((packed)) VAR_1; uint32_t limit, i, j, cpuid_i; uint32_t unused; struct kvm_cpuid_entry2 *VAR_2; uint32_t signature[3]; VAR_0->cpuid_features &= k...
[ "int FUNC_0(CPUState *VAR_0)\n{", "struct {", "struct kvm_cpuid2 cpuid;", "struct kvm_cpuid_entry2 entries[100];", "} __attribute__((packed)) VAR_1;", "uint32_t limit, i, j, cpuid_i;", "uint32_t unused;", "struct kvm_cpuid_entry2 *VAR_2;", "uint32_t signature[3];", "VAR_0->cpuid_features &= kvm_ar...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 51 ], [ 57 ], [...
13,169
static int pci_bridge_initfn(PCIDevice *dev) { PCIBridge *s = DO_UPCAST(PCIBridge, dev, dev); pci_config_set_vendor_id(s->dev.config, s->vid); pci_config_set_device_id(s->dev.config, s->did); s->dev.config[0x04] = 0x06; // command = bus master, pci mem s->dev.config[0x05] = 0x00; s->d...
false
qemu
74c01823badbf4637c18ac4cad5967b4f9669514
static int pci_bridge_initfn(PCIDevice *dev) { PCIBridge *s = DO_UPCAST(PCIBridge, dev, dev); pci_config_set_vendor_id(s->dev.config, s->vid); pci_config_set_device_id(s->dev.config, s->did); s->dev.config[0x04] = 0x06; s->dev.config[0x05] = 0x00; s->dev.config[0x06] = 0xa0; s-...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { PCIBridge *s = DO_UPCAST(PCIBridge, VAR_0, VAR_0); pci_config_set_vendor_id(s->VAR_0.config, s->vid); pci_config_set_device_id(s->VAR_0.config, s->did); s->VAR_0.config[0x04] = 0x06; s->VAR_0.config[0x05] = 0x00; s->VAR_0.config[0x06] = 0xa0; ...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "PCIBridge *s = DO_UPCAST(PCIBridge, VAR_0, VAR_0);", "pci_config_set_vendor_id(s->VAR_0.config, s->vid);", "pci_config_set_device_id(s->VAR_0.config, s->did);", "s->VAR_0.config[0x04] = 0x06;", "s->VAR_0.config[0x05] = 0x00;", "s->VAR_0.config[0x06] = 0xa0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ] ]
13,170
static void write_palette(const char *key, QObject *obj, void *opaque) { struct palette_cb_priv *priv = opaque; VncState *vs = priv->vs; uint32_t bytes = vs->clientds.pf.bytes_per_pixel; uint8_t idx = qint_get_int(qobject_to_qint(obj)); if (bytes == 4) { uint32_t color = tight_palet...
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
static void write_palette(const char *key, QObject *obj, void *opaque) { struct palette_cb_priv *priv = opaque; VncState *vs = priv->vs; uint32_t bytes = vs->clientds.pf.bytes_per_pixel; uint8_t idx = qint_get_int(qobject_to_qint(obj)); if (bytes == 4) { uint32_t color = tight_palet...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, QObject *VAR_1, void *VAR_2) { struct palette_cb_priv *VAR_3 = VAR_2; VncState *vs = VAR_3->vs; uint32_t bytes = vs->clientds.pf.bytes_per_pixel; uint8_t idx = qint_get_int(qobject_to_qint(VAR_1)); if (bytes == 4) { uint32_t color = tight_palett...
[ "static void FUNC_0(const char *VAR_0, QObject *VAR_1, void *VAR_2)\n{", "struct palette_cb_priv *VAR_3 = VAR_2;", "VncState *vs = VAR_3->vs;", "uint32_t bytes = vs->clientds.pf.bytes_per_pixel;", "uint8_t idx = qint_get_int(qobject_to_qint(VAR_1));", "if (bytes == 4) {", "uint32_t color = tight_palette...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ] ]
13,171
static void rtas_get_xive(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { struct ics_state *ics = spapr->icp->ics; uint32_t nr; if ((nargs != 1) || (nret != 3)) { rtas_st(rets...
false
qemu
210b580b106fa798149e28aa13c66b325a43204e
static void rtas_get_xive(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { struct ics_state *ics = spapr->icp->ics; uint32_t nr; if ((nargs != 1) || (nret != 3)) { rtas_st(rets...
{ "code": [], "line_no": [] }
static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1, uint32_t VAR_2, target_ulong VAR_3, uint32_t VAR_4, target_ulong VAR_5) { struct ics_state *VAR_6 = VAR_0->icp->VAR_6; uint32_t nr; if ((VAR_2 != 1) || (VAR_4 != 3)) { rtas_st(VAR...
[ "static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, target_ulong VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{", "struct ics_state *VAR_6 = VAR_0->icp->VAR_6;", "uint32_t nr;", "if ((VAR_2 != 1) || (VAR_4 != 3)) {", "rtas_st(VAR_5, 0, -3);", "return;", "}", "nr = rtas_ld(VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
13,173
VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING) VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_RET_CORUPT) VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_BUF_END_BEFORE_LE) VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_INVALID_FILE_SELECTED) VCARD_RESPONSE_NEW_STATIC_STA...
false
qemu
1687a089f103f9b7a1b4a1555068054cb46ee9e9
VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING) VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_RET_CORUPT) VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_BUF_END_BEFORE_LE) VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_INVALID_FILE_SELECTED) VCARD_RESPONSE_NEW_STATIC_STA...
{ "code": [], "line_no": [] }
VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING) VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_RET_CORUPT) VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_BUF_END_BEFORE_LE) VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_INVALID_FILE_SELECTED) VCARD_RESPONSE_NEW_STATIC_STA...
[ "VCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING)\nVCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_RET_CORUPT)\nVCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_BUF_END_BEFORE_LE)\nVCARD_RESPONSE_NEW_STATIC_STATUS(VCARD7816_STATUS_WARNING_INVALID_FILE_SELECTED)\nVCARD_RESPONSE_NEW_STATI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 89,...
13,174
static inline void dv_decode_video_segment(DVVideoContext *s, uint8_t *buf_ptr1, const uint16_t *mb_pos_ptr) { int quant, dc, dct_mode, class1, j; int mb_index, mb_x, mb_y, v, last_index; DCTELEM *block, *block1; ...
false
FFmpeg
c619ff6daf93a8f3c03decf2d3345d2474c3db91
static inline void dv_decode_video_segment(DVVideoContext *s, uint8_t *buf_ptr1, const uint16_t *mb_pos_ptr) { int quant, dc, dct_mode, class1, j; int mb_index, mb_x, mb_y, v, last_index; DCTELEM *block, *block1; ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DVVideoContext *VAR_0, uint8_t *VAR_1, const uint16_t *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; DCTELEM *VAR_17, *block1; int VAR_13; ...
[ "static inline void FUNC_0(DVVideoContext *VAR_0,\nuint8_t *VAR_1,\nconst uint16_t *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "DCTELEM *VAR_17, *block1;", "int VAR_13;", "uint8_t *y_ptr;", "void (*VAR_14)(uint8_t *VAR_15, int VAR_16, DCTELEM *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 ], [ 31 ], [ 33 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
13,175
BlockDeviceInfo *bdrv_block_device_info(BlockDriverState *bs, Error **errp) { ImageInfo **p_image_info; BlockDriverState *bs0; BlockDeviceInfo *info = g_malloc0(sizeof(*info)); info->file = g_strdup(bs->filename); info->ro = bs->read_only; info->drv...
false
qemu
a0d64a61db602696f4f1895a890c65eda5b3b618
BlockDeviceInfo *bdrv_block_device_info(BlockDriverState *bs, Error **errp) { ImageInfo **p_image_info; BlockDriverState *bs0; BlockDeviceInfo *info = g_malloc0(sizeof(*info)); info->file = g_strdup(bs->filename); info->ro = bs->read_only; info->drv...
{ "code": [], "line_no": [] }
BlockDeviceInfo *FUNC_0(BlockDriverState *bs, Error **errp) { ImageInfo **p_image_info; BlockDriverState *bs0; BlockDeviceInfo *info = g_malloc0(sizeof(*info)); info->file = g_strdup(bs->filename); info->ro = bs->read_only; info->drv ...
[ "BlockDeviceInfo *FUNC_0(BlockDriverState *bs, Error **errp)\n{", "ImageInfo **p_image_info;", "BlockDriverState *bs0;", "BlockDeviceInfo *info = g_malloc0(sizeof(*info));", "info->file = g_strdup(bs->filename);", "info->ro = bs->read_only;", "info->drv ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31, 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
13,177
void tcg_set_frame(TCGContext *s, int reg, intptr_t start, intptr_t size) { s->frame_start = start; s->frame_end = start + size; s->frame_reg = reg; }
false
qemu
b3a62939561e07bc34493444fa926b6137cba4e8
void tcg_set_frame(TCGContext *s, int reg, intptr_t start, intptr_t size) { s->frame_start = start; s->frame_end = start + size; s->frame_reg = reg; }
{ "code": [], "line_no": [] }
void FUNC_0(TCGContext *VAR_0, int VAR_1, intptr_t VAR_2, intptr_t VAR_3) { VAR_0->frame_start = VAR_2; VAR_0->frame_end = VAR_2 + VAR_3; VAR_0->frame_reg = VAR_1; }
[ "void FUNC_0(TCGContext *VAR_0, int VAR_1, intptr_t VAR_2, intptr_t VAR_3)\n{", "VAR_0->frame_start = VAR_2;", "VAR_0->frame_end = VAR_2 + VAR_3;", "VAR_0->frame_reg = VAR_1;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
13,178
static int target_to_host_fcntl_cmd(int cmd) { switch(cmd) { case TARGET_F_DUPFD: case TARGET_F_GETFD: case TARGET_F_SETFD: case TARGET_F_GETFL: case TARGET_F_SETFL: return cmd; case TARGET_F_GETLK: return F_GETLK; case TARGET_F_SETLK: return F_SETLK; case TARGET_F_...
false
qemu
213d3e9ea27f7fc55db7272c05255294b52ed3e4
static int target_to_host_fcntl_cmd(int cmd) { switch(cmd) { case TARGET_F_DUPFD: case TARGET_F_GETFD: case TARGET_F_SETFD: case TARGET_F_GETFL: case TARGET_F_SETFL: return cmd; case TARGET_F_GETLK: return F_GETLK; case TARGET_F_SETLK: return F_SETLK; case TARGET_F_...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0) { switch(VAR_0) { case TARGET_F_DUPFD: case TARGET_F_GETFD: case TARGET_F_SETFD: case TARGET_F_GETFL: case TARGET_F_SETFL: return VAR_0; case TARGET_F_GETLK: return F_GETLK; case TARGET_F_SETLK: return F_SETLK; case TARGET_F_SETLKW: ...
[ "static int FUNC_0(int VAR_0)\n{", "switch(VAR_0) {", "case TARGET_F_DUPFD:\ncase TARGET_F_GETFD:\ncase TARGET_F_SETFD:\ncase TARGET_F_GETFL:\ncase TARGET_F_SETFL:\nreturn VAR_0;", "case TARGET_F_GETLK:\nreturn F_GETLK;", "case TARGET_F_SETLK:\nreturn F_SETLK;", "case TARGET_F_SETLKW:\nreturn F_SETLKW;", ...
[ 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 ], [...
13,179
static void test_io_channel_ipv6(bool async) { SocketAddress *listen_addr = g_new0(SocketAddress, 1); SocketAddress *connect_addr = g_new0(SocketAddress, 1); listen_addr->type = SOCKET_ADDRESS_KIND_INET; listen_addr->u.inet = g_new(InetSocketAddress, 1); *listen_addr->u.inet = (InetSocketAdd...
false
qemu
32bafa8fdd098d52fbf1102d5a5e48d29398c0aa
static void test_io_channel_ipv6(bool async) { SocketAddress *listen_addr = g_new0(SocketAddress, 1); SocketAddress *connect_addr = g_new0(SocketAddress, 1); listen_addr->type = SOCKET_ADDRESS_KIND_INET; listen_addr->u.inet = g_new(InetSocketAddress, 1); *listen_addr->u.inet = (InetSocketAdd...
{ "code": [], "line_no": [] }
static void FUNC_0(bool VAR_0) { SocketAddress *listen_addr = g_new0(SocketAddress, 1); SocketAddress *connect_addr = g_new0(SocketAddress, 1); listen_addr->type = SOCKET_ADDRESS_KIND_INET; listen_addr->u.inet = g_new(InetSocketAddress, 1); *listen_addr->u.inet = (InetSocketAddress) { ...
[ "static void FUNC_0(bool VAR_0)\n{", "SocketAddress *listen_addr = g_new0(SocketAddress, 1);", "SocketAddress *connect_addr = g_new0(SocketAddress, 1);", "listen_addr->type = SOCKET_ADDRESS_KIND_INET;", "listen_addr->u.inet = g_new(InetSocketAddress, 1);", "*listen_addr->u.inet = (InetSocketAddress) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33, 35 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ] ]
13,181
ssize_t nbd_receive_reply(QIOChannel *ioc, NBDReply *reply) { uint8_t buf[NBD_REPLY_SIZE]; uint32_t magic; ssize_t ret; ret = read_sync(ioc, buf, sizeof(buf)); if (ret <= 0) { return ret; } if (ret != sizeof(buf)) { LOG("read failed"); return -EINVAL; ...
false
qemu
a12a712a7dfbd2e2f4882ef2c90a9b2162166dd7
ssize_t nbd_receive_reply(QIOChannel *ioc, NBDReply *reply) { uint8_t buf[NBD_REPLY_SIZE]; uint32_t magic; ssize_t ret; ret = read_sync(ioc, buf, sizeof(buf)); if (ret <= 0) { return ret; } if (ret != sizeof(buf)) { LOG("read failed"); return -EINVAL; ...
{ "code": [], "line_no": [] }
ssize_t FUNC_0(QIOChannel *ioc, NBDReply *reply) { uint8_t buf[NBD_REPLY_SIZE]; uint32_t magic; ssize_t ret; ret = read_sync(ioc, buf, sizeof(buf)); if (ret <= 0) { return ret; } if (ret != sizeof(buf)) { LOG("read failed"); return -EINVAL; } ...
[ "ssize_t FUNC_0(QIOChannel *ioc, NBDReply *reply)\n{", "uint8_t buf[NBD_REPLY_SIZE];", "uint32_t magic;", "ssize_t ret;", "ret = read_sync(ioc, buf, sizeof(buf));", "if (ret <= 0) {", "return ret;", "}", "if (ret != sizeof(buf)) {", "LOG(\"read failed\");", "return -EINVAL;", "}", "magic = l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ...
13,183
void qemu_map_cache_init(void) { unsigned long size; struct rlimit rlimit_as; mapcache = qemu_mallocz(sizeof (MapCache)); QTAILQ_INIT(&mapcache->locked_entries); mapcache->last_address_index = -1; getrlimit(RLIMIT_AS, &rlimit_as); rlimit_as.rlim_cur = rlimit_as.rlim_max; s...
false
qemu
ea6c5f8ffe6de12e04e63acbb9937683b30216e2
void qemu_map_cache_init(void) { unsigned long size; struct rlimit rlimit_as; mapcache = qemu_mallocz(sizeof (MapCache)); QTAILQ_INIT(&mapcache->locked_entries); mapcache->last_address_index = -1; getrlimit(RLIMIT_AS, &rlimit_as); rlimit_as.rlim_cur = rlimit_as.rlim_max; s...
{ "code": [], "line_no": [] }
void FUNC_0(void) { unsigned long VAR_0; struct rlimit VAR_1; mapcache = qemu_mallocz(sizeof (MapCache)); QTAILQ_INIT(&mapcache->locked_entries); mapcache->last_address_index = -1; getrlimit(RLIMIT_AS, &VAR_1); VAR_1.rlim_cur = VAR_1.rlim_max; setrlimit(RLIMIT_AS, &VAR_1);...
[ "void FUNC_0(void)\n{", "unsigned long VAR_0;", "struct rlimit VAR_1;", "mapcache = qemu_mallocz(sizeof (MapCache));", "QTAILQ_INIT(&mapcache->locked_entries);", "mapcache->last_address_index = -1;", "getrlimit(RLIMIT_AS, &VAR_1);", "VAR_1.rlim_cur = VAR_1.rlim_max;", "setrlimit(RLIMIT_AS, &VAR_1);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33, 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
13,184
static inline void gen_op_fcmpes(int fccno, TCGv_i32 r_rs1, TCGv_i32 r_rs2) { switch (fccno) { case 0: gen_helper_fcmpes(cpu_env, r_rs1, r_rs2); break; case 1: gen_helper_fcmpes_fcc1(cpu_env, r_rs1, r_rs2); break; case 2: gen_helper_fcmpes_fcc2(cpu_env, ...
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
static inline void gen_op_fcmpes(int fccno, TCGv_i32 r_rs1, TCGv_i32 r_rs2) { switch (fccno) { case 0: gen_helper_fcmpes(cpu_env, r_rs1, r_rs2); break; case 1: gen_helper_fcmpes_fcc1(cpu_env, r_rs1, r_rs2); break; case 2: gen_helper_fcmpes_fcc2(cpu_env, ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(int VAR_0, TCGv_i32 VAR_1, TCGv_i32 VAR_2) { switch (VAR_0) { case 0: gen_helper_fcmpes(cpu_env, VAR_1, VAR_2); break; case 1: gen_helper_fcmpes_fcc1(cpu_env, VAR_1, VAR_2); break; case 2: gen_helper_fcmpes_fcc2(cpu_env, VAR_1, ...
[ "static inline void FUNC_0(int VAR_0, TCGv_i32 VAR_1, TCGv_i32 VAR_2)\n{", "switch (VAR_0) {", "case 0:\ngen_helper_fcmpes(cpu_env, VAR_1, VAR_2);", "break;", "case 1:\ngen_helper_fcmpes_fcc1(cpu_env, VAR_1, VAR_2);", "break;", "case 2:\ngen_helper_fcmpes_fcc2(cpu_env, VAR_1, VAR_2);", "break;", "ca...
[ 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 ] ]
13,185
static inline int decode_bytes(const uint8_t* inbuffer, uint8_t* out, int bytes){ int i, off; uint32_t c; const uint32_t* buf; uint32_t* obuf = (uint32_t*) out; /* FIXME: 64 bit platforms would be able to do 64 bits at a time. * I'm too lazy though, should be something like * for(i=...
false
FFmpeg
b7581b5c839d1e293bb9dc34352a76df9d3158a9
static inline int decode_bytes(const uint8_t* inbuffer, uint8_t* out, int bytes){ int i, off; uint32_t c; const uint32_t* buf; uint32_t* obuf = (uint32_t*) out; off = (intptr_t)inbuffer & 3; buf = (const uint32_t*) (inbuffer - off); c = av_be2ne32((0x37c511f2 >> (off*8...
{ "code": [], "line_no": [] }
static inline int FUNC_0(const uint8_t* VAR_0, uint8_t* VAR_1, int VAR_2){ int VAR_3, VAR_4; uint32_t c; const uint32_t* VAR_5; uint32_t* obuf = (uint32_t*) VAR_1; VAR_4 = (intptr_t)VAR_0 & 3; VAR_5 = (const uint32_t*) (VAR_0 - VAR_4); c = av_be2ne32((0x37c511f2 >> (VA...
[ "static inline int FUNC_0(const uint8_t* VAR_0, uint8_t* VAR_1, int VAR_2){", "int VAR_3, VAR_4;", "uint32_t c;", "const uint32_t* VAR_5;", "uint32_t* obuf = (uint32_t*) VAR_1;", "VAR_4 = (intptr_t)VAR_0 & 3;", "VAR_5 = (const uint32_t*) (VAR_0 - VAR_4);", "c = av_be2ne32((0x37c511f2 >> (VAR_4*8)) | (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
13,187
int net_init_socket(const Netdev *netdev, const char *name, NetClientState *peer, Error **errp) { /* FIXME error_setg(errp, ...) on failure */ Error *err = NULL; const NetdevSocketOptions *sock; assert(netdev->type == NET_CLIENT_DRIVER_SOCKET); sock = &netdev->u.socket; ...
true
qemu
0f8c289ad539feb5135c545bea947b310a893f4b
int net_init_socket(const Netdev *netdev, const char *name, NetClientState *peer, Error **errp) { Error *err = NULL; const NetdevSocketOptions *sock; assert(netdev->type == NET_CLIENT_DRIVER_SOCKET); sock = &netdev->u.socket; if (sock->has_fd + sock->has_listen +...
{ "code": [ " if (sock->has_fd + sock->has_listen + sock->has_connect + sock->has_mcast +", " sock->has_udp != 1) {", " error_report(\"exactly one of fd=, listen=, connect=, mcast= or udp=\"", " if (!net_socket_fd_init(peer, \"socket\", name, fd, 1)) {" ], "line_no": [ ...
int FUNC_0(const Netdev *VAR_0, const char *VAR_1, NetClientState *VAR_2, Error **VAR_3) { Error *err = NULL; const NetdevSocketOptions *VAR_4; assert(VAR_0->type == NET_CLIENT_DRIVER_SOCKET); VAR_4 = &VAR_0->u.socket; if (VAR_4->has_fd + VAR_4->has_listen + VAR_...
[ "int FUNC_0(const Netdev *VAR_0, const char *VAR_1,\nNetClientState *VAR_2, Error **VAR_3)\n{", "Error *err = NULL;", "const NetdevSocketOptions *VAR_4;", "assert(VAR_0->type == NET_CLIENT_DRIVER_SOCKET);", "VAR_4 = &VAR_0->u.socket;", "if (VAR_4->has_fd + VAR_4->has_listen + VAR_4->has_connect + VAR_4->h...
[ 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], ...
13,188
static void isabus_fdc_realize(DeviceState *dev, Error **errp) { ISADevice *isadev = ISA_DEVICE(dev); FDCtrlISABus *isa = ISA_FDC(dev); FDCtrl *fdctrl = &isa->state; Error *err = NULL; isa_register_portio_list(isadev, isa->iobase, fdc_portio_list, fdctrl, "fdc")...
true
qemu
e305a16510afa74eec20390479e349402e55ef4c
static void isabus_fdc_realize(DeviceState *dev, Error **errp) { ISADevice *isadev = ISA_DEVICE(dev); FDCtrlISABus *isa = ISA_FDC(dev); FDCtrl *fdctrl = &isa->state; Error *err = NULL; isa_register_portio_list(isadev, isa->iobase, fdc_portio_list, fdctrl, "fdc")...
{ "code": [ " isa_register_portio_list(isadev, isa->iobase, fdc_portio_list, fdctrl," ], "line_no": [ 15 ] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { ISADevice *isadev = ISA_DEVICE(VAR_0); FDCtrlISABus *isa = ISA_FDC(VAR_0); FDCtrl *fdctrl = &isa->state; Error *err = NULL; isa_register_portio_list(isadev, isa->iobase, fdc_portio_list, fdctrl, "fdc"); ...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "ISADevice *isadev = ISA_DEVICE(VAR_0);", "FDCtrlISABus *isa = ISA_FDC(VAR_0);", "FDCtrl *fdctrl = &isa->state;", "Error *err = NULL;", "isa_register_portio_list(isadev, isa->iobase, fdc_portio_list, fdctrl,\n\"fdc\");", "isa_init_irq(isadev, &...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
13,189
static void network_to_register(RDMARegister *reg) { reg->key.current_addr = ntohll(reg->key.current_addr); reg->current_index = ntohl(reg->current_index); reg->chunks = ntohll(reg->chunks); }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void network_to_register(RDMARegister *reg) { reg->key.current_addr = ntohll(reg->key.current_addr); reg->current_index = ntohl(reg->current_index); reg->chunks = ntohll(reg->chunks); }
{ "code": [], "line_no": [] }
static void FUNC_0(RDMARegister *VAR_0) { VAR_0->key.current_addr = ntohll(VAR_0->key.current_addr); VAR_0->current_index = ntohl(VAR_0->current_index); VAR_0->chunks = ntohll(VAR_0->chunks); }
[ "static void FUNC_0(RDMARegister *VAR_0)\n{", "VAR_0->key.current_addr = ntohll(VAR_0->key.current_addr);", "VAR_0->current_index = ntohl(VAR_0->current_index);", "VAR_0->chunks = ntohll(VAR_0->chunks);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
13,190
ogg_get_length (AVFormatContext * s) { ogg_t *ogg = s->priv_data; int idx = -1, i; offset_t size, end; if(s->pb.is_streamed) return 0; // already set if (s->duration != AV_NOPTS_VALUE) return 0; size = url_fsize(&s->pb); if(size < 0) return 0; e...
true
FFmpeg
e22f2aaf99c59d788f292c4d7594493068eb4d69
ogg_get_length (AVFormatContext * s) { ogg_t *ogg = s->priv_data; int idx = -1, i; offset_t size, end; if(s->pb.is_streamed) return 0; if (s->duration != AV_NOPTS_VALUE) return 0; size = url_fsize(&s->pb); if(size < 0) return 0; end = size > MA...
{ "code": [ " if (ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0)" ], "line_no": [ 45 ] }
FUNC_0 (AVFormatContext * VAR_0) { ogg_t *ogg = VAR_0->priv_data; int VAR_1 = -1, VAR_2; offset_t size, end; if(VAR_0->pb.is_streamed) return 0; if (VAR_0->duration != AV_NOPTS_VALUE) return 0; size = url_fsize(&VAR_0->pb); if(size < 0) return 0; ...
[ "FUNC_0 (AVFormatContext * VAR_0)\n{", "ogg_t *ogg = VAR_0->priv_data;", "int VAR_1 = -1, VAR_2;", "offset_t size, end;", "if(VAR_0->pb.is_streamed)\nreturn 0;", "if (VAR_0->duration != AV_NOPTS_VALUE)\nreturn 0;", "size = url_fsize(&VAR_0->pb);", "if(size < 0)\nreturn 0;", "end = size > MAX_PAGE_SI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 21, 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 53 ], [ 55, 57 ], [ 59 ], [...
13,191
static void qemu_event_increment(void) { SetEvent(qemu_event_handle); }
true
qemu
de1c90cf8b73992b4197561850d2da1075fb82eb
static void qemu_event_increment(void) { SetEvent(qemu_event_handle); }
{ "code": [ " SetEvent(qemu_event_handle);" ], "line_no": [ 5 ] }
static void FUNC_0(void) { SetEvent(qemu_event_handle); }
[ "static void FUNC_0(void)\n{", "SetEvent(qemu_event_handle);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
13,192
static int qemu_balloon(ram_addr_t target, MonitorCompletion cb, void *opaque) { if (!balloon_event_fn) { return 0; } trace_balloon_event(balloon_opaque, target); balloon_event_fn(balloon_opaque, target, cb, opaque); return 1; }
true
qemu
30fb2ca603e8b8d0f02630ef18bc0d0637a88ffa
static int qemu_balloon(ram_addr_t target, MonitorCompletion cb, void *opaque) { if (!balloon_event_fn) { return 0; } trace_balloon_event(balloon_opaque, target); balloon_event_fn(balloon_opaque, target, cb, opaque); return 1; }
{ "code": [ "static int qemu_balloon(ram_addr_t target, MonitorCompletion cb, void *opaque)", " balloon_event_fn(balloon_opaque, target, cb, opaque);", " if (!balloon_event_fn) {" ], "line_no": [ 1, 13, 5 ] }
static int FUNC_0(ram_addr_t VAR_0, MonitorCompletion VAR_1, void *VAR_2) { if (!balloon_event_fn) { return 0; } trace_balloon_event(balloon_opaque, VAR_0); balloon_event_fn(balloon_opaque, VAR_0, VAR_1, VAR_2); return 1; }
[ "static int FUNC_0(ram_addr_t VAR_0, MonitorCompletion VAR_1, void *VAR_2)\n{", "if (!balloon_event_fn) {", "return 0;", "}", "trace_balloon_event(balloon_opaque, VAR_0);", "balloon_event_fn(balloon_opaque, VAR_0, VAR_1, VAR_2);", "return 1;", "}" ]
[ 1, 1, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
13,193
void helper_wrmsr(void) { uint64_t val; helper_svm_check_intercept_param(SVM_EXIT_MSR, 1); val = ((uint32_t)EAX) | ((uint64_t)((uint32_t)EDX) << 32); switch((uint32_t)ECX) { case MSR_IA32_SYSENTER_CS: env->sysenter_cs = val & 0xffff; case MSR_IA32_SYSENTER_ESP: en...
true
qemu
165d9b82eb8c877ee691a7b7bde5930bc2d07037
void helper_wrmsr(void) { uint64_t val; helper_svm_check_intercept_param(SVM_EXIT_MSR, 1); val = ((uint32_t)EAX) | ((uint64_t)((uint32_t)EDX) << 32); switch((uint32_t)ECX) { case MSR_IA32_SYSENTER_CS: env->sysenter_cs = val & 0xffff; case MSR_IA32_SYSENTER_ESP: en...
{ "code": [], "line_no": [] }
void FUNC_0(void) { uint64_t val; helper_svm_check_intercept_param(SVM_EXIT_MSR, 1); val = ((uint32_t)EAX) | ((uint64_t)((uint32_t)EDX) << 32); switch((uint32_t)ECX) { case MSR_IA32_SYSENTER_CS: env->sysenter_cs = val & 0xffff; case MSR_IA32_SYSENTER_ESP: env->sys...
[ "void FUNC_0(void)\n{", "uint64_t val;", "helper_svm_check_intercept_param(SVM_EXIT_MSR, 1);", "val = ((uint32_t)EAX) | ((uint64_t)((uint32_t)EDX) << 32);", "switch((uint32_t)ECX) {", "case MSR_IA32_SYSENTER_CS:\nenv->sysenter_cs = val & 0xffff;", "case MSR_IA32_SYSENTER_ESP:\nenv->sysenter_esp = val;",...
[ 0, 0, 0, 0, 0, 0, 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 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 24, 26 ], [ 29, 31 ], [ 34, 36 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51, 53 ], [ 55, 57 ], [ 59...
13,194
static int rm_write_header(AVFormatContext *s) { RMMuxContext *rm = s->priv_data; StreamInfo *stream; int n; AVCodecContext *codec; for(n=0;n<s->nb_streams;n++) { s->streams[n]->id = n; codec = s->streams[n]->codec; stream = &rm->streams[n]; memset(stream, 0, sizeof(S...
true
FFmpeg
755667eebc0b6303814faadef047870071ccb5c6
static int rm_write_header(AVFormatContext *s) { RMMuxContext *rm = s->priv_data; StreamInfo *stream; int n; AVCodecContext *codec; for(n=0;n<s->nb_streams;n++) { s->streams[n]->id = n; codec = s->streams[n]->codec; stream = &rm->streams[n]; memset(stream, 0, sizeof(S...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { RMMuxContext *rm = VAR_0->priv_data; StreamInfo *stream; int VAR_1; AVCodecContext *codec; for(VAR_1=0;VAR_1<VAR_0->nb_streams;VAR_1++) { VAR_0->streams[VAR_1]->id = VAR_1; codec = VAR_0->streams[VAR_1]->codec; stream = &rm->streams...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "RMMuxContext *rm = VAR_0->priv_data;", "StreamInfo *stream;", "int VAR_1;", "AVCodecContext *codec;", "for(VAR_1=0;VAR_1<VAR_0->nb_streams;VAR_1++) {", "VAR_0->streams[VAR_1]->id = VAR_1;", "codec = VAR_0->streams[VAR_1]->codec;", "stream = &rm->strea...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16, 17 ], [ 18 ], [ 20 ], [ 21 ], [ 22 ], [ ...
13,195
static inline void mix_stereo_to_mono(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) output[1][i] += output[2][i]; memset(output[2], 0, sizeof(output[2])); }
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline void mix_stereo_to_mono(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) output[1][i] += output[2][i]; memset(output[2], 0, sizeof(output[2])); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(AC3DecodeContext *VAR_0) { int VAR_1; float (*VAR_2)[256] = VAR_0->audio_block.block_output; for (VAR_1 = 0; VAR_1 < 256; VAR_1++) VAR_2[1][VAR_1] += VAR_2[2][VAR_1]; memset(VAR_2[2], 0, sizeof(VAR_2[2])); }
[ "static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{", "int VAR_1;", "float (*VAR_2)[256] = VAR_0->audio_block.block_output;", "for (VAR_1 = 0; VAR_1 < 256; VAR_1++)", "VAR_2[1][VAR_1] += VAR_2[2][VAR_1];", "memset(VAR_2[2], 0, sizeof(VAR_2[2]));", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
13,196
static int msmpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr) { int level, pred; if(s->msmpeg4_version<=2){ if (n < 4) { level = get_vlc2(&s->gb, v2_dc_lum_vlc.table, DC_VLC_BITS, 3); } else { level = get_vlc2(&s->gb, v2_dc_chroma_vlc.table, DC_VLC_BITS, ...
false
FFmpeg
81230e2612a9c88e5b35ed2f67d828450cc50abf
static int msmpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr) { int level, pred; if(s->msmpeg4_version<=2){ if (n < 4) { level = get_vlc2(&s->gb, v2_dc_lum_vlc.table, DC_VLC_BITS, 3); } else { level = get_vlc2(&s->gb, v2_dc_chroma_vlc.table, DC_VLC_BITS, ...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int *VAR_2) { int VAR_3, VAR_4; if(VAR_0->msmpeg4_version<=2){ if (VAR_1 < 4) { VAR_3 = get_vlc2(&VAR_0->gb, v2_dc_lum_vlc.table, DC_VLC_BITS, 3); } else { VAR_3 = get_vlc2(&VAR_0->gb, v2_dc_chroma_vlc.table, D...
[ "static int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int *VAR_2)\n{", "int VAR_3, VAR_4;", "if(VAR_0->msmpeg4_version<=2){", "if (VAR_1 < 4) {", "VAR_3 = get_vlc2(&VAR_0->gb, v2_dc_lum_vlc.table, DC_VLC_BITS, 3);", "} else {", "VAR_3 = get_vlc2(&VAR_0->gb, v2_dc_chroma_vlc.table, DC_VLC_BITS, 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], ...
13,197
void ff_put_h264_qpel16_mc21_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_midv_qrt_16w_msa(src - (2 * stride) - 2, stride, dst, stride, 16, 0); }
false
FFmpeg
662234a9a22f1cd0f0ac83b8bb1ffadedca90c0a
void ff_put_h264_qpel16_mc21_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_midv_qrt_16w_msa(src - (2 * stride) - 2, stride, dst, stride, 16, 0); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_midv_qrt_16w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 16, 0); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_midv_qrt_16w_msa(VAR_1 - (2 * VAR_2) - 2,\nVAR_2, VAR_0, VAR_2, 16, 0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
13,198
av_cold int ff_ivi_init_tiles(IVIPlaneDesc *planes, int tile_width, int tile_height) { int p, b, x, y, x_tiles, y_tiles, t_width, t_height; IVIBandDesc *band; IVITile *tile, *ref_tile; for (p = 0; p < 3; p++) { t_width = !p ? tile_width : (tile_width + 3) >> 2; t_...
false
FFmpeg
dab70c62d20081bcf879b7b6bc3ffabc2e331542
av_cold int ff_ivi_init_tiles(IVIPlaneDesc *planes, int tile_width, int tile_height) { int p, b, x, y, x_tiles, y_tiles, t_width, t_height; IVIBandDesc *band; IVITile *tile, *ref_tile; for (p = 0; p < 3; p++) { t_width = !p ? tile_width : (tile_width + 3) >> 2; t_...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(IVIPlaneDesc *planes, int tile_width, int tile_height) { int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; IVIBandDesc *band; IVITile *tile, *ref_tile; for (VAR_0 = 0; VAR_0 < 3; VAR_0++) { VAR_6 = !VAR_0 ? tile_width : (tile_width + 3) >> 2; ...
[ "av_cold int FUNC_0(IVIPlaneDesc *planes, int tile_width, int tile_height)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "IVIBandDesc *band;", "IVITile *tile, *ref_tile;", "for (VAR_0 = 0; VAR_0 < 3; VAR_0++) {", "VAR_6 = !VAR_0 ? tile_width : (tile_width + 3) >> 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
13,199
static int mxf_read_content_storage(void *arg, AVIOContext *pb, int tag, int size, UID uid) { MXFContext *mxf = arg; switch (tag) { case 0x1901: mxf->packages_count = avio_rb32(pb); if (mxf->packages_count >= UINT_MAX / sizeof(UID)) return -1; mxf->packages_refs =...
true
FFmpeg
fd34dbea58e097609ff09cf7dcc59f74930195d3
static int mxf_read_content_storage(void *arg, AVIOContext *pb, int tag, int size, UID uid) { MXFContext *mxf = arg; switch (tag) { case 0x1901: mxf->packages_count = avio_rb32(pb); if (mxf->packages_count >= UINT_MAX / sizeof(UID)) return -1; mxf->packages_refs =...
{ "code": [ "static int mxf_read_content_storage(void *arg, AVIOContext *pb, int tag, int size, UID uid)" ], "line_no": [ 1 ] }
static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4) { MXFContext *mxf = VAR_0; switch (VAR_2) { case 0x1901: mxf->packages_count = avio_rb32(VAR_1); if (mxf->packages_count >= UINT_MAX / sizeof(UID)) return -1; mxf->packages_refs = ...
[ "static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4)\n{", "MXFContext *mxf = VAR_0;", "switch (VAR_2) {", "case 0x1901:\nmxf->packages_count = avio_rb32(VAR_1);", "if (mxf->packages_count >= UINT_MAX / sizeof(UID))\nreturn -1;", "mxf->packages_refs = av_malloc(mxf->packages...
[ 1, 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 ] ]
13,200
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) { int64_t r = 0; av_assert2(c > 0); av_assert2(b >=0); av_assert2((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rnd&~AV_ROUND_PASS_MINMAX)!=4); if (c <= 0 || b < 0 || !((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rn...
true
FFmpeg
bc8b1e694cc395fdf5e2917377ef11263c937d85
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) { int64_t r = 0; av_assert2(c > 0); av_assert2(b >=0); av_assert2((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rnd&~AV_ROUND_PASS_MINMAX)!=4); if (c <= 0 || b < 0 || !((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rn...
{ "code": [ " if (ad >= INT32_MAX && ad > (INT64_MAX - a2) / b)" ], "line_no": [ 61 ] }
int64_t FUNC_0(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) { int64_t r = 0; av_assert2(c > 0); av_assert2(b >=0); av_assert2((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rnd&~AV_ROUND_PASS_MINMAX)!=4); if (c <= 0 || b < 0 || !((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rnd&~AV_RO...
[ "int64_t FUNC_0(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)\n{", "int64_t r = 0;", "av_assert2(c > 0);", "av_assert2(b >=0);", "av_assert2((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rnd&~AV_ROUND_PASS_MINMAX)!=4);", "if (c <= 0 || b < 0 || !((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rnd&~AV...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39, 41 ], [ 43, 45 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 57 ...
13,201
static void gen_check_cpenable(DisasContext *dc, unsigned cp) { if (option_enabled(dc, XTENSA_OPTION_COPROCESSOR) && !(dc->cpenable & (1 << cp))) { gen_exception_cause(dc, COPROCESSOR0_DISABLED + cp); dc->is_jmp = DISAS_UPDATE; } }
true
qemu
97e89ee914411384dcda771d38bf89f13726d71e
static void gen_check_cpenable(DisasContext *dc, unsigned cp) { if (option_enabled(dc, XTENSA_OPTION_COPROCESSOR) && !(dc->cpenable & (1 << cp))) { gen_exception_cause(dc, COPROCESSOR0_DISABLED + cp); dc->is_jmp = DISAS_UPDATE; } }
{ "code": [ "static void gen_check_cpenable(DisasContext *dc, unsigned cp)" ], "line_no": [ 1 ] }
static void FUNC_0(DisasContext *VAR_0, unsigned VAR_1) { if (option_enabled(VAR_0, XTENSA_OPTION_COPROCESSOR) && !(VAR_0->cpenable & (1 << VAR_1))) { gen_exception_cause(VAR_0, COPROCESSOR0_DISABLED + VAR_1); VAR_0->is_jmp = DISAS_UPDATE; } }
[ "static void FUNC_0(DisasContext *VAR_0, unsigned VAR_1)\n{", "if (option_enabled(VAR_0, XTENSA_OPTION_COPROCESSOR) &&\n!(VAR_0->cpenable & (1 << VAR_1))) {", "gen_exception_cause(VAR_0, COPROCESSOR0_DISABLED + VAR_1);", "VAR_0->is_jmp = DISAS_UPDATE;", "}", "}" ]
[ 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
13,202
static void gen_write_xer(TCGv src) { tcg_gen_andi_tl(cpu_xer, src, ~((1u << XER_SO) | (1u << XER_OV) | (1u << XER_CA))); tcg_gen_extract_tl(cpu_so, src, XER_SO, 1); tcg_gen_extract_tl(cpu_ov, src, XER_OV, 1); tcg_gen_extract_tl(cpu_ca, src, XER_CA, 1); }
true
qemu
dd09c36159858c66ab6e47c688e4177dd3912bf0
static void gen_write_xer(TCGv src) { tcg_gen_andi_tl(cpu_xer, src, ~((1u << XER_SO) | (1u << XER_OV) | (1u << XER_CA))); tcg_gen_extract_tl(cpu_so, src, XER_SO, 1); tcg_gen_extract_tl(cpu_ov, src, XER_OV, 1); tcg_gen_extract_tl(cpu_ca, src, XER_CA, 1); }
{ "code": [ " ~((1u << XER_SO) | (1u << XER_OV) | (1u << XER_CA)));" ], "line_no": [ 7 ] }
static void FUNC_0(TCGv VAR_0) { tcg_gen_andi_tl(cpu_xer, VAR_0, ~((1u << XER_SO) | (1u << XER_OV) | (1u << XER_CA))); tcg_gen_extract_tl(cpu_so, VAR_0, XER_SO, 1); tcg_gen_extract_tl(cpu_ov, VAR_0, XER_OV, 1); tcg_gen_extract_tl(cpu_ca, VAR_0, XER_CA, 1); }
[ "static void FUNC_0(TCGv VAR_0)\n{", "tcg_gen_andi_tl(cpu_xer, VAR_0,\n~((1u << XER_SO) | (1u << XER_OV) | (1u << XER_CA)));", "tcg_gen_extract_tl(cpu_so, VAR_0, XER_SO, 1);", "tcg_gen_extract_tl(cpu_ov, VAR_0, XER_OV, 1);", "tcg_gen_extract_tl(cpu_ca, VAR_0, XER_CA, 1);", "}" ]
[ 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
13,203
void decode_mvs(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y, int layout) { VP8Macroblock *mb_edge[3] = { 0 /* top */, mb - 1 /* left */, 0 /* top-left */ }; enum { CNT_ZERO, CNT_NEAREST, CNT_NEAR, CNT_SP...
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
void decode_mvs(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y, int layout) { VP8Macroblock *mb_edge[3] = { 0 , mb - 1 , 0 }; enum { CNT_ZERO, CNT_NEAREST, CNT_NEAR, CNT_SPLITMV }; enum { VP8_EDGE_TOP...
{ "code": [ "void decode_mvs(VP8Context *s, VP8Macroblock *mb,", " int mb_x, int mb_y, int layout)", " mb->mv = mb->bmv[decode_splitmvs(s, c, mb, layout) - 1];", " mb->mv.y += read_mv_component(c, s->prob->mvc[0]);", " mb->...
void FUNC_0(VP8Context *VAR_0, VP8Macroblock *VAR_1, int VAR_2, int VAR_3, int VAR_4) { VP8Macroblock *mb_edge[3] = { 0 , VAR_1 - 1 , 0 }; enum { CNT_ZERO, CNT_NEAREST, CNT_NEAR, CNT_SPLITMV }; enum { VP8_E...
[ "void FUNC_0(VP8Context *VAR_0, VP8Macroblock *VAR_1,\nint VAR_2, int VAR_3, int VAR_4)\n{", "VP8Macroblock *mb_edge[3] = { 0 ,", "VAR_1 - 1 ,\n0 };", "enum { CNT_ZERO, CNT_NEAREST, CNT_NEAR, CNT_SPLITMV };", "enum { VP8_EDGE_TOP, VP8_EDGE_LEFT, VP8_EDGE_TOPLEFT };", "int VAR_5 = CNT_ZERO;", ...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 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 ], [ 41 ], [ 43 ], [ 47 ...
13,206
static void fw_cfg_initfn(Object *obj) { SysBusDevice *sbd = SYS_BUS_DEVICE(obj); FWCfgState *s = FW_CFG(obj); memory_region_init_io(&s->ctl_iomem, OBJECT(s), &fw_cfg_ctl_mem_ops, s, "fwcfg.ctl", FW_CFG_SIZE); sysbus_init_mmio(sbd, &s->ctl_iomem); memory_region_ini...
true
qemu
5712db6ae5101db645f71edc393368cd59bfd314
static void fw_cfg_initfn(Object *obj) { SysBusDevice *sbd = SYS_BUS_DEVICE(obj); FWCfgState *s = FW_CFG(obj); memory_region_init_io(&s->ctl_iomem, OBJECT(s), &fw_cfg_ctl_mem_ops, s, "fwcfg.ctl", FW_CFG_SIZE); sysbus_init_mmio(sbd, &s->ctl_iomem); memory_region_ini...
{ "code": [ "static void fw_cfg_initfn(Object *obj)", " SysBusDevice *sbd = SYS_BUS_DEVICE(obj);", " FWCfgState *s = FW_CFG(obj);", " memory_region_init_io(&s->ctl_iomem, OBJECT(s), &fw_cfg_ctl_mem_ops, s,", " \"fwcfg.ctl\", FW_CFG_SIZE);", " sysbus_init_mm...
static void FUNC_0(Object *VAR_0) { SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0); FWCfgState *s = FW_CFG(VAR_0); memory_region_init_io(&s->ctl_iomem, OBJECT(s), &fw_cfg_ctl_mem_ops, s, "fwcfg.ctl", FW_CFG_SIZE); sysbus_init_mmio(sbd, &s->ctl_iomem); memory_region_init...
[ "static void FUNC_0(Object *VAR_0)\n{", "SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0);", "FWCfgState *s = FW_CFG(VAR_0);", "memory_region_init_io(&s->ctl_iomem, OBJECT(s), &fw_cfg_ctl_mem_ops, s,\n\"fwcfg.ctl\", FW_CFG_SIZE);", "sysbus_init_mmio(sbd, &s->ctl_iomem);", "memory_region_init_io(&s->data_iomem, O...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25, 27 ], [ 29 ] ]
13,207
int av_get_cpu_flags(void) { int flags = cpu_flags; if (flags == -1) { flags = get_cpu_flags(); cpu_flags = flags; } return flags; }
true
FFmpeg
fed50c4304eecb352e29ce789cdb96ea84d6162f
int av_get_cpu_flags(void) { int flags = cpu_flags; if (flags == -1) { flags = get_cpu_flags(); cpu_flags = flags; } return flags; }
{ "code": [ " int flags = cpu_flags;", " cpu_flags = flags;" ], "line_no": [ 5, 11 ] }
int FUNC_0(void) { int VAR_0 = cpu_flags; if (VAR_0 == -1) { VAR_0 = get_cpu_flags(); cpu_flags = VAR_0; } return VAR_0; }
[ "int FUNC_0(void)\n{", "int VAR_0 = cpu_flags;", "if (VAR_0 == -1) {", "VAR_0 = get_cpu_flags();", "cpu_flags = VAR_0;", "}", "return VAR_0;", "}" ]
[ 0, 1, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
13,208
static ExitStatus trans_fop_weww_0c(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned rt = extract32(insn, 0, 5); unsigned rb = extract32(insn, 16, 5); unsigned ra = extract32(insn, 21, 5); return do_fop_weww(ctx, rt, ra, rb, di->f_weww); }
true
qemu
eff235eb2bcd7092901f4698a7907e742f3b7f2f
static ExitStatus trans_fop_weww_0c(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned rt = extract32(insn, 0, 5); unsigned rb = extract32(insn, 16, 5); unsigned ra = extract32(insn, 21, 5); return do_fop_weww(ctx, rt, ra, rb, di->f_weww); }
{ "code": [ " return do_fop_weww(ctx, rt, ra, rb, di->f_weww);", " return do_fop_weww(ctx, rt, ra, rb, di->f_weww);" ], "line_no": [ 13, 13 ] }
static ExitStatus FUNC_0(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned VAR_0 = extract32(insn, 0, 5); unsigned VAR_1 = extract32(insn, 16, 5); unsigned VAR_2 = extract32(insn, 21, 5); return do_fop_weww(ctx, VAR_0, VAR_2, VAR_1, di->f_weww); ...
[ "static ExitStatus FUNC_0(DisasContext *ctx, uint32_t insn,\nconst DisasInsn *di)\n{", "unsigned VAR_0 = extract32(insn, 0, 5);", "unsigned VAR_1 = extract32(insn, 16, 5);", "unsigned VAR_2 = extract32(insn, 21, 5);", "return do_fop_weww(ctx, VAR_0, VAR_2, VAR_1, di->f_weww);", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
13,209
static int inc_refcounts(BlockDriverState *bs, BdrvCheckResult *res, void **refcount_table, int64_t *refcount_table_size, int64_t offset, int64_t size) { BDRVQcow2State *s = bs->opaque; uint64_t start, las...
true
qemu
03bb78ed250874f76e0854aa4d5d95af1e12613e
static int inc_refcounts(BlockDriverState *bs, BdrvCheckResult *res, void **refcount_table, int64_t *refcount_table_size, int64_t offset, int64_t size) { BDRVQcow2State *s = bs->opaque; uint64_t start, las...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, void **VAR_2, int64_t *VAR_3, int64_t VAR_4, int64_t VAR_5) { BDRVQcow2State *s = VAR_0->opaque; uint64_t start, last, cluster_offset, k, ...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nBdrvCheckResult *VAR_1,\nvoid **VAR_2,\nint64_t *VAR_3,\nint64_t VAR_4, int64_t VAR_5)\n{", "BDRVQcow2State *s = VAR_0->opaque;", "uint64_t start, last, cluster_offset, k, refcount;", "int VAR_6;", "if (VAR_5 <= 0) {", "return 0;", "}", "start = start_of_cl...
[ 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [...
13,210
static int gdb_get_avr_reg(CPUState *env, uint8_t *mem_buf, int n) { if (n < 32) { #ifdef WORDS_BIGENDIAN stq_p(mem_buf, env->avr[n].u64[0]); stq_p(mem_buf+8, env->avr[n].u64[1]); #else stq_p(mem_buf, env->avr[n].u64[1]); stq_p(mem_buf+8, env->avr[n].u64[0]); #endif ...
true
qemu
70976a7926b42d87e0c575412b85a8f5c1e48fad
static int gdb_get_avr_reg(CPUState *env, uint8_t *mem_buf, int n) { if (n < 32) { #ifdef WORDS_BIGENDIAN stq_p(mem_buf, env->avr[n].u64[0]); stq_p(mem_buf+8, env->avr[n].u64[1]); #else stq_p(mem_buf, env->avr[n].u64[1]); stq_p(mem_buf+8, env->avr[n].u64[0]); #endif ...
{ "code": [ " if (n == 33) {", " if (n == 34) {", " if (n == 33) {", " if (n == 34) {", " if (n == 33) {", " if (n == 34) {", " if (n == 33) {", " if (n == 34) {" ], "line_no": [ 25, 33, 25, 33, 25, 33, 25, 33 ] }
static int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2) { if (VAR_2 < 32) { #ifdef WORDS_BIGENDIAN stq_p(VAR_1, VAR_0->avr[VAR_2].u64[0]); stq_p(VAR_1+8, VAR_0->avr[VAR_2].u64[1]); #else stq_p(VAR_1, VAR_0->avr[VAR_2].u64[1]); stq_p(VAR_1+8, VAR_0->avr[VAR_2].u64[0]); ...
[ "static int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "if (VAR_2 < 32) {", "#ifdef WORDS_BIGENDIAN\nstq_p(VAR_1, VAR_0->avr[VAR_2].u64[0]);", "stq_p(VAR_1+8, VAR_0->avr[VAR_2].u64[1]);", "#else\nstq_p(VAR_1, VAR_0->avr[VAR_2].u64[1]);", "stq_p(VAR_1+8, VAR_0->avr[VAR_2].u64[0]);", "#endif\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 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 ] ]
13,211
static void tpm_backend_worker_thread(gpointer data, gpointer user_data) { TPMBackend *s = TPM_BACKEND(user_data); TPMBackendClass *k = TPM_BACKEND_GET_CLASS(s); assert(k->handle_request != NULL); k->handle_request(s, (TPMBackendCmd *)data); qemu_bh_schedule(s->bh); }
true
qemu
ebca2df783a5a742bb93784524336d8cbb9e662b
static void tpm_backend_worker_thread(gpointer data, gpointer user_data) { TPMBackend *s = TPM_BACKEND(user_data); TPMBackendClass *k = TPM_BACKEND_GET_CLASS(s); assert(k->handle_request != NULL); k->handle_request(s, (TPMBackendCmd *)data); qemu_bh_schedule(s->bh); }
{ "code": [ " assert(k->handle_request != NULL);" ], "line_no": [ 11 ] }
static void FUNC_0(gpointer VAR_0, gpointer VAR_1) { TPMBackend *s = TPM_BACKEND(VAR_1); TPMBackendClass *k = TPM_BACKEND_GET_CLASS(s); assert(k->handle_request != NULL); k->handle_request(s, (TPMBackendCmd *)VAR_0); qemu_bh_schedule(s->bh); }
[ "static void FUNC_0(gpointer VAR_0, gpointer VAR_1)\n{", "TPMBackend *s = TPM_BACKEND(VAR_1);", "TPMBackendClass *k = TPM_BACKEND_GET_CLASS(s);", "assert(k->handle_request != NULL);", "k->handle_request(s, (TPMBackendCmd *)VAR_0);", "qemu_bh_schedule(s->bh);", "}" ]
[ 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ] ]
13,212
static uint_fast8_t vorbis_floor0_decode(vorbis_context *vc, vorbis_floor_data *vfu, float *vec) { vorbis_floor0 *vf = &vfu->t0; float *lsp = vf->lsp; uint_fast32_t amplitude; uint_fast32_t book_idx; uint_fast8_t blockflag = vc->modes[vc->mode_number]....
true
FFmpeg
3dde66752d59dfdd0f3727efd66e7202b3c75078
static uint_fast8_t vorbis_floor0_decode(vorbis_context *vc, vorbis_floor_data *vfu, float *vec) { vorbis_floor0 *vf = &vfu->t0; float *lsp = vf->lsp; uint_fast32_t amplitude; uint_fast32_t book_idx; uint_fast8_t blockflag = vc->modes[vc->mode_number]....
{ "code": [ "static uint_fast8_t vorbis_floor0_decode(vorbis_context *vc,", "static uint_fast8_t vorbis_floor0_decode(vorbis_context *vc,", " vorbis_floor_data *vfu, float *vec)", " vorbis_floor_data *vfu, float *vec)" ]...
static uint_fast8_t FUNC_0(vorbis_context *vc, vorbis_floor_data *vfu, float *vec) { vorbis_floor0 *vf = &vfu->t0; float *VAR_0 = vf->VAR_0; uint_fast32_t amplitude; uint_fast32_t book_idx; uint_fast8_t blockflag = vc->modes[vc->mode_number].blockflag;...
[ "static uint_fast8_t FUNC_0(vorbis_context *vc,\nvorbis_floor_data *vfu, float *vec)\n{", "vorbis_floor0 *vf = &vfu->t0;", "float *VAR_0 = vf->VAR_0;", "uint_fast32_t amplitude;", "uint_fast32_t book_idx;", "uint_fast8_t blockflag = vc->modes[vc->mode_number].blockflag;", "amplitude = get_bits(&vc->gb, ...
[ 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...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
13,214
static void add_entry(TiffEncoderContext *s, enum TiffTags tag, enum TiffTypes type, int count, const void *ptr_val) { uint8_t *entries_ptr = s->entries + 12 * s->num_entries; assert(s->num_entries < TIFF_MAX_ENTRY); bytestream_put_le16(&entries_ptr, tag); bytestream_put_...
false
FFmpeg
3c27275c1309190f2d6ed69140b67d014215b6c9
static void add_entry(TiffEncoderContext *s, enum TiffTags tag, enum TiffTypes type, int count, const void *ptr_val) { uint8_t *entries_ptr = s->entries + 12 * s->num_entries; assert(s->num_entries < TIFF_MAX_ENTRY); bytestream_put_le16(&entries_ptr, tag); bytestream_put_...
{ "code": [], "line_no": [] }
static void FUNC_0(TiffEncoderContext *VAR_0, enum TiffTags VAR_1, enum TiffTypes VAR_2, int VAR_3, const void *VAR_4) { uint8_t *entries_ptr = VAR_0->entries + 12 * VAR_0->num_entries; assert(VAR_0->num_entries < TIFF_MAX_ENTRY); bytestream_put_le16(&entries_ptr, VAR_1); ...
[ "static void FUNC_0(TiffEncoderContext *VAR_0, enum TiffTags VAR_1,\nenum TiffTypes VAR_2, int VAR_3, const void *VAR_4)\n{", "uint8_t *entries_ptr = VAR_0->entries + 12 * VAR_0->num_entries;", "assert(VAR_0->num_entries < TIFF_MAX_ENTRY);", "bytestream_put_le16(&entries_ptr, VAR_1);", "bytestream_put_le16(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
13,215
static int set_hwframe_ctx(AVCodecContext *ctx, AVBufferRef *hw_device_ctx) { AVBufferRef *hw_frames_ref; AVHWFramesContext *frames_ctx = NULL; int err = 0; if (!(hw_frames_ref = av_hwframe_ctx_alloc(hw_device_ctx))) { fprintf(stderr, "Failed to create VAAPI frame context.\n"); ...
true
FFmpeg
a763d278274cfbda4e78e21b338b9b525fe22eab
static int set_hwframe_ctx(AVCodecContext *ctx, AVBufferRef *hw_device_ctx) { AVBufferRef *hw_frames_ref; AVHWFramesContext *frames_ctx = NULL; int err = 0; if (!(hw_frames_ref = av_hwframe_ctx_alloc(hw_device_ctx))) { fprintf(stderr, "Failed to create VAAPI frame context.\n"); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVBufferRef *VAR_1) { AVBufferRef *hw_frames_ref; AVHWFramesContext *frames_ctx = NULL; int VAR_2 = 0; if (!(hw_frames_ref = av_hwframe_ctx_alloc(VAR_1))) { fprintf(stderr, "Failed to create VAAPI frame context.\n"); return -1; } ...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVBufferRef *VAR_1)\n{", "AVBufferRef *hw_frames_ref;", "AVHWFramesContext *frames_ctx = NULL;", "int VAR_2 = 0;", "if (!(hw_frames_ref = av_hwframe_ctx_alloc(VAR_1))) {", "fprintf(stderr, \"Failed to create VAAPI frame context.\\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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 40 ], [ 42 ], [ 44 ], [...