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
12,084
static int crystalhd_receive_frame(AVCodecContext *avctx, AVFrame *frame) { BC_STATUS bc_ret; BC_DTS_STATUS decoder_status = { 0, }; CopyRet rec_ret; CHDContext *priv = avctx->priv_data; HANDLE dev = priv->dev; int got_frame = 0; av_log(avctx, AV_LOG_VERBOSE, "CrystalHD: ...
false
FFmpeg
3019b4f6480a5d8c38e0e32ef75dabe6e0f3ae98
static int crystalhd_receive_frame(AVCodecContext *avctx, AVFrame *frame) { BC_STATUS bc_ret; BC_DTS_STATUS decoder_status = { 0, }; CopyRet rec_ret; CHDContext *priv = avctx->priv_data; HANDLE dev = priv->dev; int got_frame = 0; av_log(avctx, AV_LOG_VERBOSE, "CrystalHD: ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1) { BC_STATUS bc_ret; BC_DTS_STATUS decoder_status = { 0, }; CopyRet rec_ret; CHDContext *priv = VAR_0->priv_data; HANDLE dev = priv->dev; int VAR_2 = 0; av_log(VAR_0, AV_LOG_VERBOSE, "CrystalHD: receive_frame\n"); ...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{", "BC_STATUS bc_ret;", "BC_DTS_STATUS decoder_status = { 0, };", "CopyRet rec_ret;", "CHDContext *priv = VAR_0->priv_data;", "HANDLE dev = priv->dev;", "int VAR_2 = 0;", "av_log(VAR_0, AV_LOG_VERBOSE, \"CrystalHD: receive_frame\\n\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
12,085
av_cold int ff_opus_parse_extradata(AVCodecContext *avctx, OpusContext *s) { static const uint8_t default_channel_map[2] = { 0, 1 }; int (*channel_reorder)(int, int) = channel_reorder_unknown; const uint8_t *extradata, *channel_map; int extradata_size; ...
true
FFmpeg
7d3baebe408cb7377dbb6fa1a7fd285e8e366440
av_cold int ff_opus_parse_extradata(AVCodecContext *avctx, OpusContext *s) { static const uint8_t default_channel_map[2] = { 0, 1 }; int (*channel_reorder)(int, int) = channel_reorder_unknown; const uint8_t *extradata, *channel_map; int extradata_size; ...
{ "code": [], "line_no": [] }
VAR_3av_coldVAR_3 VAR_3intVAR_3 VAR_3ff_opus_parse_extradataVAR_3(VAR_3AVCodecContextVAR_3 *VAR_3avctxVAR_3, VAR_3OpusContextVAR_3 *VAR_3sVAR_3) { VAR_3staticVAR_3 VAR_3constVAR_3 VAR_3uint8_tVAR_3 VAR_3VAR_0VAR_3[VAR_32VAR_3] = { VAR_30VAR_3, VAR_31VAR_3 }; VAR_3intVAR...
[ "VAR_3av_coldVAR_3 VAR_3intVAR_3 VAR_3ff_opus_parse_extradataVAR_3(VAR_3AVCodecContextVAR_3 *VAR_3avctxVAR_3,\nVAR_3OpusContextVAR_3 *VAR_3sVAR_3)\n{", "VAR_3staticVAR_3 VAR_3constVAR_3 VAR_3uint8_tVAR_3 VAR_3VAR_0VAR_3[VAR_32VAR_3] = { VAR_30VAR_3, VAR_31VAR_3 };", "VAR_3intVAR_3 (*VAR_3VAR_1VAR_3)(VAR_3intVAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51...
12,087
uint32 float32_to_uint32_round_to_zero( float32 a STATUS_PARAM ) { int64_t v; uint32 res; v = float32_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffffffff) { res = 0xffffffff; fl...
true
qemu
34e1c27bc3094ffe484d9855e07ad104bddf579f
uint32 float32_to_uint32_round_to_zero( float32 a STATUS_PARAM ) { int64_t v; uint32 res; v = float32_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffffffff) { res = 0xffffffff; fl...
{ "code": [ " float_raise( float_flag_invalid STATUS_VAR);", " float_raise( float_flag_invalid STATUS_VAR);", " res = v;", " float_raise( float_flag_invalid STATUS_VAR);", " float_raise( float_flag_invalid STATUS_VAR);", " res = v;", " float...
uint32 FUNC_0( float32 a STATUS_PARAM ) { int64_t v; uint32 res; v = float32_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffffffff) { res = 0xffffffff; float_raise( float_flag_inv...
[ "uint32 FUNC_0( float32 a STATUS_PARAM )\n{", "int64_t v;", "uint32 res;", "v = float32_to_int64_round_to_zero(a STATUS_VAR);", "if (v < 0) {", "res = 0;", "float_raise( float_flag_invalid STATUS_VAR);", "} else if (v > 0xffffffff) {", "res = 0xffffffff;", "float_raise( float_flag_invalid STATUS_V...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
12,088
static inline abi_long do_msgrcv(int msqid, abi_long msgp, unsigned int msgsz, abi_long msgtyp, int msgflg) { struct target_msgbuf *target_mb; char *target_mtext; struct msgbuf *host_mb; abi_long ret = 0; if (!lock_user_stru...
true
qemu
0d07fe47d4986271a21ed4ff5237275ff55dd93f
static inline abi_long do_msgrcv(int msqid, abi_long msgp, unsigned int msgsz, abi_long msgtyp, int msgflg) { struct target_msgbuf *target_mb; char *target_mtext; struct msgbuf *host_mb; abi_long ret = 0; if (!lock_user_stru...
{ "code": [ " host_mb = malloc(msgsz+sizeof(long));", " free(host_mb);" ], "line_no": [ 25, 55 ] }
static inline abi_long FUNC_0(int msqid, abi_long msgp, unsigned int msgsz, abi_long msgtyp, int msgflg) { struct target_msgbuf *VAR_0; char *VAR_1; struct msgbuf *VAR_2; abi_long ret = 0; if (!lock_user_struct(VERIFY_WRITE,...
[ "static inline abi_long FUNC_0(int msqid, abi_long msgp,\nunsigned int msgsz, abi_long msgtyp,\nint msgflg)\n{", "struct target_msgbuf *VAR_0;", "char *VAR_1;", "struct msgbuf *VAR_2;", "abi_long ret = 0;", "if (!lock_user_struct(VERIFY_WRITE, VAR_0, msgp, 0))\nreturn -TARGET_EFAULT;", "VAR_2 = malloc(m...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
12,089
restore_sigcontext(CPUM68KState *env, struct target_sigcontext *sc, int *pd0) { int err = 0; int temp; __get_user(env->aregs[7], &sc->sc_usp); __get_user(env->dregs[1], &sc->sc_d1); __get_user(env->aregs[0], &sc->sc_a0); __get_user(env->aregs[1], &sc->sc_a1); __get_user(env->pc, &s...
true
qemu
016d2e1dfa21b64a524d3629fdd317d4c25bc3b8
restore_sigcontext(CPUM68KState *env, struct target_sigcontext *sc, int *pd0) { int err = 0; int temp; __get_user(env->aregs[7], &sc->sc_usp); __get_user(env->dregs[1], &sc->sc_d1); __get_user(env->aregs[0], &sc->sc_a0); __get_user(env->aregs[1], &sc->sc_a1); __get_user(env->pc, &s...
{ "code": [ " int err = 0;", " return err;", " return err;", " int err = 0;", " return err;", " return err;" ], "line_no": [ 5, 31, 31, 5, 31, 31 ] }
FUNC_0(CPUM68KState *VAR_0, struct target_sigcontext *VAR_1, int *VAR_2) { int VAR_3 = 0; int VAR_4; __get_user(VAR_0->aregs[7], &VAR_1->sc_usp); __get_user(VAR_0->dregs[1], &VAR_1->sc_d1); __get_user(VAR_0->aregs[0], &VAR_1->sc_a0); __get_user(VAR_0->aregs[1], &VAR_1->sc_a1); __ge...
[ "FUNC_0(CPUM68KState *VAR_0, struct target_sigcontext *VAR_1, int *VAR_2)\n{", "int VAR_3 = 0;", "int VAR_4;", "__get_user(VAR_0->aregs[7], &VAR_1->sc_usp);", "__get_user(VAR_0->dregs[1], &VAR_1->sc_d1);", "__get_user(VAR_0->aregs[0], &VAR_1->sc_a0);", "__get_user(VAR_0->aregs[1], &VAR_1->sc_a1);", "_...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ] ]
12,090
static ssize_t mp_pacl_getxattr(FsContext *ctx, const char *path, const char *name, void *value, size_t size) { char *buffer; ssize_t ret; buffer = rpath(ctx, path); ret = lgetxattr(buffer, MAP_ACL_ACCESS, value, size); g_free(buffer); return ret; }
true
qemu
56ad3e54dad6cdcee8668d170df161d89581846f
static ssize_t mp_pacl_getxattr(FsContext *ctx, const char *path, const char *name, void *value, size_t size) { char *buffer; ssize_t ret; buffer = rpath(ctx, path); ret = lgetxattr(buffer, MAP_ACL_ACCESS, value, size); g_free(buffer); return ret; }
{ "code": [ " char *buffer;", " ssize_t ret;", " buffer = rpath(ctx, path);", " ret = lgetxattr(buffer, MAP_ACL_ACCESS, value, size);", " g_free(buffer);", " return ret;", " char *buffer;", " ssize_t ret;", " buffer = rpath(ctx, path);", " g_free(b...
static ssize_t FUNC_0(FsContext *ctx, const char *path, const char *name, void *value, size_t size) { char *VAR_0; ssize_t ret; VAR_0 = rpath(ctx, path); ret = lgetxattr(VAR_0, MAP_ACL_ACCESS, value, size); g_free(VAR_0); return ret; }
[ "static ssize_t FUNC_0(FsContext *ctx, const char *path,\nconst char *name, void *value, size_t size)\n{", "char *VAR_0;", "ssize_t ret;", "VAR_0 = rpath(ctx, path);", "ret = lgetxattr(VAR_0, MAP_ACL_ACCESS, value, size);", "g_free(VAR_0);", "return ret;", "}" ]
[ 0, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
12,091
int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info) { BDRVQcowState *s = bs->opaque; QCowSnapshot *new_snapshot_list = NULL; QCowSnapshot *old_snapshot_list = NULL; QCowSnapshot sn1, *sn = &sn1; int i, ret; uint64_t *l1_table = NULL; int64_t l1_table_offset; ...
true
qemu
231bb267644ee3a9ebfd9c7f42d5d41610194b45
int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info) { BDRVQcowState *s = bs->opaque; QCowSnapshot *new_snapshot_list = NULL; QCowSnapshot *old_snapshot_list = NULL; QCowSnapshot sn1, *sn = &sn1; int i, ret; uint64_t *l1_table = NULL; int64_t l1_table_offset; ...
{ "code": [ " ret = qcow2_pre_write_overlap_check(bs, QCOW2_OL_DEFAULT,", " ret = qcow2_pre_write_overlap_check(bs, QCOW2_OL_DEFAULT,", " ret = qcow2_pre_write_overlap_check(bs, QCOW2_OL_DEFAULT,", " sn->l1_table_offset, s->l1_size * sizeof(uint64_t));" ], "line_no": [ 95, ...
int FUNC_0(BlockDriverState *VAR_0, QEMUSnapshotInfo *VAR_1) { BDRVQcowState *s = VAR_0->opaque; QCowSnapshot *new_snapshot_list = NULL; QCowSnapshot *old_snapshot_list = NULL; QCowSnapshot sn1, *sn = &sn1; int VAR_2, VAR_3; uint64_t *l1_table = NULL; int64_t l1_table_offset; ...
[ "int FUNC_0(BlockDriverState *VAR_0, QEMUSnapshotInfo *VAR_1)\n{", "BDRVQcowState *s = VAR_0->opaque;", "QCowSnapshot *new_snapshot_list = NULL;", "QCowSnapshot *old_snapshot_list = NULL;", "QCowSnapshot sn1, *sn = &sn1;", "int VAR_2, VAR_3;", "uint64_t *l1_table = NULL;", "int64_t l1_table_offset;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ...
12,092
static int omap_i2c_init(SysBusDevice *sbd) { DeviceState *dev = DEVICE(sbd); OMAPI2CState *s = OMAP_I2C(dev); if (!s->fclk) { hw_error("omap_i2c: fclk not connected\n"); } if (s->revision >= OMAP2_INTR_REV && !s->iclk) { /* Note that OMAP1 doesn't have a separate interface...
true
qemu
84a3a53cf61ef691478bd91afa455c801696053c
static int omap_i2c_init(SysBusDevice *sbd) { DeviceState *dev = DEVICE(sbd); OMAPI2CState *s = OMAP_I2C(dev); if (!s->fclk) { hw_error("omap_i2c: fclk not connected\n"); } if (s->revision >= OMAP2_INTR_REV && !s->iclk) { hw_error("omap_i2c: iclk not connected\n")...
{ "code": [ " hw_error(\"omap_i2c: fclk not connected\\n\");", " hw_error(\"omap_i2c: iclk not connected\\n\");" ], "line_no": [ 13, 21 ] }
static int FUNC_0(SysBusDevice *VAR_0) { DeviceState *dev = DEVICE(VAR_0); OMAPI2CState *s = OMAP_I2C(dev); if (!s->fclk) { hw_error("omap_i2c: fclk not connected\n"); } if (s->revision >= OMAP2_INTR_REV && !s->iclk) { hw_error("omap_i2c: iclk not connected\n"); ...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "DeviceState *dev = DEVICE(VAR_0);", "OMAPI2CState *s = OMAP_I2C(dev);", "if (!s->fclk) {", "hw_error(\"omap_i2c: fclk not connected\\n\");", "}", "if (s->revision >= OMAP2_INTR_REV && !s->iclk) {", "hw_error(\"omap_i2c: iclk not connected\\n\");", "}", ...
[ 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
12,096
static int is_rndis(USBNetState *s) { return s->dev.config->bConfigurationValue == DEV_RNDIS_CONFIG_VALUE; }
true
qemu
80eecda8e5d09c442c24307f340840a5b70ea3b9
static int is_rndis(USBNetState *s) { return s->dev.config->bConfigurationValue == DEV_RNDIS_CONFIG_VALUE; }
{ "code": [ " return s->dev.config->bConfigurationValue == DEV_RNDIS_CONFIG_VALUE;" ], "line_no": [ 5 ] }
static int FUNC_0(USBNetState *VAR_0) { return VAR_0->dev.config->bConfigurationValue == DEV_RNDIS_CONFIG_VALUE; }
[ "static int FUNC_0(USBNetState *VAR_0)\n{", "return VAR_0->dev.config->bConfigurationValue == DEV_RNDIS_CONFIG_VALUE;", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
12,097
static int do_packet_auto_bsf(AVFormatContext *s, AVPacket *pkt) { AVStream *st = s->streams[pkt->stream_index]; int i, ret; if (!(s->flags & AVFMT_FLAG_AUTO_BSF)) return 1; if (s->oformat->check_bitstream) { if (!st->internal->bitstream_checked) { if ((ret = s->of...
false
FFmpeg
437ad467c250f8b96dc3456997906866d748f6ba
static int do_packet_auto_bsf(AVFormatContext *s, AVPacket *pkt) { AVStream *st = s->streams[pkt->stream_index]; int i, ret; if (!(s->flags & AVFMT_FLAG_AUTO_BSF)) return 1; if (s->oformat->check_bitstream) { if (!st->internal->bitstream_checked) { if ((ret = s->of...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { AVStream *st = VAR_0->streams[VAR_1->stream_index]; int VAR_2, VAR_3; if (!(VAR_0->flags & AVFMT_FLAG_AUTO_BSF)) return 1; if (VAR_0->oformat->check_bitstream) { if (!st->internal->bitstream_checked) { if...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) {", "AVStream *st = VAR_0->streams[VAR_1->stream_index];", "int VAR_2, VAR_3;", "if (!(VAR_0->flags & AVFMT_FLAG_AUTO_BSF))\nreturn 1;", "if (VAR_0->oformat->check_bitstream) {", "if (!st->internal->bitstream_checked) {", "if ((VAR_3 = VAR_0->o...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33, 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49, 53 ], [ 55 ], ...
12,100
AVFilterContext *ff_filter_alloc(const AVFilter *filter, const char *inst_name) { AVFilterContext *ret; if (!filter) return NULL; ret = av_mallocz(sizeof(AVFilterContext)); if (!ret) return NULL; ret->av_class = &avfilter_class; ret->filter = filter; ret->na...
false
FFmpeg
7e8fe4be5fb4c98aa3c6a4ed3cec999f4e3cc3aa
AVFilterContext *ff_filter_alloc(const AVFilter *filter, const char *inst_name) { AVFilterContext *ret; if (!filter) return NULL; ret = av_mallocz(sizeof(AVFilterContext)); if (!ret) return NULL; ret->av_class = &avfilter_class; ret->filter = filter; ret->na...
{ "code": [], "line_no": [] }
AVFilterContext *FUNC_0(const AVFilter *filter, const char *inst_name) { AVFilterContext *ret; if (!filter) return NULL; ret = av_mallocz(sizeof(AVFilterContext)); if (!ret) return NULL; ret->av_class = &avfilter_class; ret->filter = filter; ret->name = ...
[ "AVFilterContext *FUNC_0(const AVFilter *filter, const char *inst_name)\n{", "AVFilterContext *ret;", "if (!filter)\nreturn NULL;", "ret = av_mallocz(sizeof(AVFilterContext));", "if (!ret)\nreturn NULL;", "ret->av_class = &avfilter_class;", "ret->filter = filter;", "ret->name = inst_name ? av_st...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], ...
12,102
static int dv_decode_video_segment(AVCodecContext *avctx, void *arg) { DVVideoContext *s = avctx->priv_data; DVwork_chunk *work_chunk = arg; int quant, dc, dct_mode, class1, j; int mb_index, mb_x, mb_y, last_index; int y_stride, linesize; DCTELEM *block, *block1; int c_offset; u...
false
FFmpeg
70d54392f5015b9c6594fcae558f59f952501e3b
static int dv_decode_video_segment(AVCodecContext *avctx, void *arg) { DVVideoContext *s = avctx->priv_data; DVwork_chunk *work_chunk = arg; int quant, dc, dct_mode, class1, j; int mb_index, mb_x, mb_y, last_index; int y_stride, linesize; DCTELEM *block, *block1; int c_offset; u...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1) { DVVideoContext *s = VAR_0->priv_data; DVwork_chunk *work_chunk = VAR_1; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; int VAR_7, VAR_8, VAR_9, VAR_10; int VAR_11, VAR_12; DCTELEM *block, *block1; int VAR_13; uint8_t *y_ptr; c...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1)\n{", "DVVideoContext *s = VAR_0->priv_data;", "DVwork_chunk *work_chunk = VAR_1;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;", "int VAR_7, VAR_8, VAR_9, VAR_10;", "int VAR_11, VAR_12;", "DCTELEM *block, *block1;", "int VAR_13;", "uint8_t *y_ptr;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ...
12,103
static void compute_default_clut(AVSubtitleRect *rect, int w, int h) { uint8_t list[256] = {0}; uint8_t list_inv[256]; int counttab[256] = {0}; int count, i, x, y; #define V(x,y) rect->data[0][(x) + (y)*rect->linesize[0]] for (y = 0; y<h; y++) { for (x = 0; x<w; x++) { ...
false
FFmpeg
cd2f69cdd63d3ca5c2388d9ce6737b3e46bb19b2
static void compute_default_clut(AVSubtitleRect *rect, int w, int h) { uint8_t list[256] = {0}; uint8_t list_inv[256]; int counttab[256] = {0}; int count, i, x, y; #define V(x,y) rect->data[0][(x) + (y)*rect->linesize[0]] for (y = 0; y<h; y++) { for (x = 0; x<w; x++) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVSubtitleRect *VAR_0, int VAR_1, int VAR_2) { uint8_t list[256] = {0}; uint8_t list_inv[256]; int VAR_3[256] = {0}; int VAR_4, VAR_5, VAR_6, VAR_7; #define V(VAR_6,VAR_7) VAR_0->data[0][(VAR_6) + (VAR_7)*VAR_0->linesize[0]] for (VAR_7 = 0; VAR_7<VAR_2; VAR_7++) { ...
[ "static void FUNC_0(AVSubtitleRect *VAR_0, int VAR_1, int VAR_2)\n{", "uint8_t list[256] = {0};", "uint8_t list_inv[256];", "int VAR_3[256] = {0};", "int VAR_4, VAR_5, VAR_6, VAR_7;", "#define V(VAR_6,VAR_7) VAR_0->data[0][(VAR_6) + (VAR_7)*VAR_0->linesize[0]]\nfor (VAR_7 = 0; VAR_7<VAR_2; VAR_7++) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 41 ], [ 43 ], [ 45 ], [ 47 ...
12,104
static int seqvideo_decode(SeqVideoContext *seq, const unsigned char *data, int data_size) { const unsigned char *data_end = data + data_size; GetBitContext gb; int flags, i, j, x, y, op; unsigned char c[3]; unsigned char *dst; uint32_t *palette; flags = *data++; if (flags &...
false
FFmpeg
fd09cd08c0ad059ee41ccafc6836a285c1b35c45
static int seqvideo_decode(SeqVideoContext *seq, const unsigned char *data, int data_size) { const unsigned char *data_end = data + data_size; GetBitContext gb; int flags, i, j, x, y, op; unsigned char c[3]; unsigned char *dst; uint32_t *palette; flags = *data++; if (flags &...
{ "code": [], "line_no": [] }
static int FUNC_0(SeqVideoContext *VAR_0, const unsigned char *VAR_1, int VAR_2) { const unsigned char *VAR_3 = VAR_1 + VAR_2; GetBitContext gb; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; unsigned char VAR_10[3]; unsigned char *VAR_11; uint32_t *palette; VAR_4 = *VAR_1++; ...
[ "static int FUNC_0(SeqVideoContext *VAR_0, const unsigned char *VAR_1, int VAR_2)\n{", "const unsigned char *VAR_3 = VAR_1 + VAR_2;", "GetBitContext gb;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "unsigned char VAR_10[3];", "unsigned char *VAR_11;", "uint32_t *palette;", "VAR_4 = *VAR_1++;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
12,107
int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info) { assert(con != NULL); con->ui_info = *info; if (!con->hw_ops->ui_info) { return -1; } /* * Typically we get a flood of these as the user resizes the window. * Wait until the dust has settled (one second without upd...
false
qemu
b7fb49f0c709a406f79372be397367ff2550373b
int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info) { assert(con != NULL); con->ui_info = *info; if (!con->hw_ops->ui_info) { return -1; } timer_mod(con->ui_timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + 1000); return 0; }
{ "code": [], "line_no": [] }
int FUNC_0(QemuConsole *VAR_0, QemuUIInfo *VAR_1) { assert(VAR_0 != NULL); VAR_0->ui_info = *VAR_1; if (!VAR_0->hw_ops->ui_info) { return -1; } timer_mod(VAR_0->ui_timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + 1000); return 0; }
[ "int FUNC_0(QemuConsole *VAR_0, QemuUIInfo *VAR_1)\n{", "assert(VAR_0 != NULL);", "VAR_0->ui_info = *VAR_1;", "if (!VAR_0->hw_ops->ui_info) {", "return -1;", "}", "timer_mod(VAR_0->ui_timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + 1000);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 27 ], [ 29 ], [ 31 ] ]
12,108
static void dma_aio_cancel(BlockAIOCB *acb) { DMAAIOCB *dbs = container_of(acb, DMAAIOCB, common); trace_dma_aio_cancel(dbs); if (dbs->acb) { bdrv_aio_cancel_async(dbs->acb); } }
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void dma_aio_cancel(BlockAIOCB *acb) { DMAAIOCB *dbs = container_of(acb, DMAAIOCB, common); trace_dma_aio_cancel(dbs); if (dbs->acb) { bdrv_aio_cancel_async(dbs->acb); } }
{ "code": [], "line_no": [] }
static void FUNC_0(BlockAIOCB *VAR_0) { DMAAIOCB *dbs = container_of(VAR_0, DMAAIOCB, common); trace_dma_aio_cancel(dbs); if (dbs->VAR_0) { bdrv_aio_cancel_async(dbs->VAR_0); } }
[ "static void FUNC_0(BlockAIOCB *VAR_0)\n{", "DMAAIOCB *dbs = container_of(VAR_0, DMAAIOCB, common);", "trace_dma_aio_cancel(dbs);", "if (dbs->VAR_0) {", "bdrv_aio_cancel_async(dbs->VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
12,110
static void kvmppc_host_cpu_initfn(Object *obj) { assert(kvm_enabled()); }
false
qemu
40fda982f2e887f7d5cc36b8a7e3b5a07a1e6704
static void kvmppc_host_cpu_initfn(Object *obj) { assert(kvm_enabled()); }
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { assert(kvm_enabled()); }
[ "static void FUNC_0(Object *VAR_0)\n{", "assert(kvm_enabled());", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
12,112
static void virtio_pci_modern_regions_init(VirtIOPCIProxy *proxy) { static const MemoryRegionOps common_ops = { .read = virtio_pci_common_read, .write = virtio_pci_common_write, .impl = { .min_access_size = 1, .max_access_size = 4, }, .endiann...
false
qemu
b6ce27a593ab39ac28baebc3045901925046bebd
static void virtio_pci_modern_regions_init(VirtIOPCIProxy *proxy) { static const MemoryRegionOps common_ops = { .read = virtio_pci_common_read, .write = virtio_pci_common_write, .impl = { .min_access_size = 1, .max_access_size = 4, }, .endiann...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIOPCIProxy *VAR_0) { static const MemoryRegionOps VAR_1 = { .read = virtio_pci_common_read, .write = virtio_pci_common_write, .impl = { .min_access_size = 1, .max_access_size = 4, }, .endianness = DEVICE_LITTLE_ENDIAN, ...
[ "static void FUNC_0(VirtIOPCIProxy *VAR_0)\n{", "static const MemoryRegionOps VAR_1 = {", ".read = virtio_pci_common_read,\n.write = virtio_pci_common_write,\n.impl = {", ".min_access_size = 1,\n.max_access_size = 4,\n},", ".endianness = DEVICE_LITTLE_ENDIAN,\n};", "static const MemoryRegionOps VAR_2 = {"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11 ], [ 13, 15, 17 ], [ 19, 21 ], [ 23 ], [ 25, 27, 29 ], [ 31, 33, 35 ], [ 37, 39 ], [ 41 ], [ 43, 45, 47 ], [ 49, 51, 53 ], [ 55,...
12,113
static void coroutine_fn v9fs_flush(void *opaque) { ssize_t err; int16_t tag; size_t offset = 7; V9fsPDU *cancel_pdu = NULL; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; err = pdu_unmarshal(pdu, offset, "w", &tag); if (err < 0) { pdu_complete(pdu, err); retu...
false
qemu
3dc6f8693694a649a9c83f1e2746565b47683923
static void coroutine_fn v9fs_flush(void *opaque) { ssize_t err; int16_t tag; size_t offset = 7; V9fsPDU *cancel_pdu = NULL; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; err = pdu_unmarshal(pdu, offset, "w", &tag); if (err < 0) { pdu_complete(pdu, err); retu...
{ "code": [], "line_no": [] }
static void VAR_0 v9fs_flush(void *opaque) { ssize_t err; int16_t tag; size_t offset = 7; V9fsPDU *cancel_pdu = NULL; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; err = pdu_unmarshal(pdu, offset, "w", &tag); if (err < 0) { pdu_complete(pdu, err); return; ...
[ "static void VAR_0 v9fs_flush(void *opaque)\n{", "ssize_t err;", "int16_t tag;", "size_t offset = 7;", "V9fsPDU *cancel_pdu = NULL;", "V9fsPDU *pdu = opaque;", "V9fsState *s = pdu->s;", "err = pdu_unmarshal(pdu, offset, \"w\", &tag);", "if (err < 0) {", "pdu_complete(pdu, err);", "return;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
12,114
static PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr) { int dom, bus; unsigned slot; if (!devaddr) { *devfnp = -1; return pci_find_bus(0); } if (pci_parse_devaddr(devaddr, &dom, &bus, &slot) < 0) { return NULL; } *devfnp = slot << 3; ...
false
qemu
49bd1458da8909434eb83c5cda472c63ff6a529c
static PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr) { int dom, bus; unsigned slot; if (!devaddr) { *devfnp = -1; return pci_find_bus(0); } if (pci_parse_devaddr(devaddr, &dom, &bus, &slot) < 0) { return NULL; } *devfnp = slot << 3; ...
{ "code": [], "line_no": [] }
static PCIBus *FUNC_0(int *devfnp, const char *devaddr) { int VAR_0, VAR_1; unsigned VAR_2; if (!devaddr) { *devfnp = -1; return pci_find_bus(0); } if (pci_parse_devaddr(devaddr, &VAR_0, &VAR_1, &VAR_2) < 0) { return NULL; } *devfnp = VAR_2 << 3; ...
[ "static PCIBus *FUNC_0(int *devfnp, const char *devaddr)\n{", "int VAR_0, VAR_1;", "unsigned VAR_2;", "if (!devaddr) {", "*devfnp = -1;", "return pci_find_bus(0);", "}", "if (pci_parse_devaddr(devaddr, &VAR_0, &VAR_1, &VAR_2) < 0) {", "return NULL;", "}", "*devfnp = VAR_2 << 3;", "return pci_f...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ] ]
12,115
static void vnc_connect(VncDisplay *vd, int csock) { VncState *vs = qemu_mallocz(sizeof(VncState)); int i; vs->csock = csock; vs->lossy_rect = qemu_mallocz(VNC_STAT_ROWS * sizeof (*vs->lossy_rect)); for (i = 0; i < VNC_STAT_ROWS; ++i) { vs->lossy_rect[i] = qemu_mallocz(VNC_STAT_COLS...
false
qemu
7e7e2ebc942da8285931ceabf12823e165dced8b
static void vnc_connect(VncDisplay *vd, int csock) { VncState *vs = qemu_mallocz(sizeof(VncState)); int i; vs->csock = csock; vs->lossy_rect = qemu_mallocz(VNC_STAT_ROWS * sizeof (*vs->lossy_rect)); for (i = 0; i < VNC_STAT_ROWS; ++i) { vs->lossy_rect[i] = qemu_mallocz(VNC_STAT_COLS...
{ "code": [], "line_no": [] }
static void FUNC_0(VncDisplay *VAR_0, int VAR_1) { VncState *vs = qemu_mallocz(sizeof(VncState)); int VAR_2; vs->VAR_1 = VAR_1; vs->lossy_rect = qemu_mallocz(VNC_STAT_ROWS * sizeof (*vs->lossy_rect)); for (VAR_2 = 0; VAR_2 < VNC_STAT_ROWS; ++VAR_2) { vs->lossy_rect[VAR_2] = qemu_mal...
[ "static void FUNC_0(VncDisplay *VAR_0, int VAR_1)\n{", "VncState *vs = qemu_mallocz(sizeof(VncState));", "int VAR_2;", "vs->VAR_1 = VAR_1;", "vs->lossy_rect = qemu_mallocz(VNC_STAT_ROWS * sizeof (*vs->lossy_rect));", "for (VAR_2 = 0; VAR_2 < VNC_STAT_ROWS; ++VAR_2) {", "vs->lossy_rect[VAR_2] = qemu_mall...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51...
12,116
qcrypto_tls_session_new(QCryptoTLSCreds *creds, const char *hostname, const char *aclname, QCryptoTLSCredsEndpoint endpoint, Error **errp) { QCryptoTLSSession *session; int ret; session = g_new0(QCrypto...
false
qemu
13f12430d48b62e2304e0e5a7c607279af68b98a
qcrypto_tls_session_new(QCryptoTLSCreds *creds, const char *hostname, const char *aclname, QCryptoTLSCredsEndpoint endpoint, Error **errp) { QCryptoTLSSession *session; int ret; session = g_new0(QCrypto...
{ "code": [], "line_no": [] }
FUNC_0(QCryptoTLSCreds *VAR_0, const char *VAR_1, const char *VAR_2, QCryptoTLSCredsEndpoint VAR_3, Error **VAR_4) { QCryptoTLSSession *session; int VAR_5; session = g_new0(QCryptoTLSSession, 1); t...
[ "FUNC_0(QCryptoTLSCreds *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nQCryptoTLSCredsEndpoint VAR_3,\nError **VAR_4)\n{", "QCryptoTLSSession *session;", "int VAR_5;", "session = g_new0(QCryptoTLSSession, 1);", "trace_qcrypto_tls_session_new(\nsession, VAR_0, VAR_1 ? VAR_1 : \"<none>\",\nVAR_2 ? VAR_2 : \...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
12,118
static void tcg_cpu_exec(void) { int ret = 0; if (next_cpu == NULL) next_cpu = first_cpu; for (; next_cpu != NULL; next_cpu = next_cpu->next_cpu) { CPUState *env = cur_cpu = next_cpu; if (timer_alarm_pending) { timer_alarm_pending = 0; break; ...
false
qemu
1828be316f6637d43dd4c4f5f32925b17fb8107f
static void tcg_cpu_exec(void) { int ret = 0; if (next_cpu == NULL) next_cpu = first_cpu; for (; next_cpu != NULL; next_cpu = next_cpu->next_cpu) { CPUState *env = cur_cpu = next_cpu; if (timer_alarm_pending) { timer_alarm_pending = 0; break; ...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { int VAR_0 = 0; if (next_cpu == NULL) next_cpu = first_cpu; for (; next_cpu != NULL; next_cpu = next_cpu->next_cpu) { CPUState *env = cur_cpu = next_cpu; if (timer_alarm_pending) { timer_alarm_pending = 0; break; ...
[ "static void FUNC_0(void)\n{", "int VAR_0 = 0;", "if (next_cpu == NULL)\nnext_cpu = first_cpu;", "for (; next_cpu != NULL; next_cpu = next_cpu->next_cpu) {", "CPUState *env = cur_cpu = next_cpu;", "if (timer_alarm_pending) {", "timer_alarm_pending = 0;", "break;", "}", "if (cpu_can_run(env))\nVAR_...
[ 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
12,119
static int vfio_base_device_init(VFIODevice *vbasedev) { VFIOGroup *group; VFIODevice *vbasedev_iter; char path[PATH_MAX], iommu_group_path[PATH_MAX], *group_name; ssize_t len; struct stat st; int groupid; int ret; /* name must be set prior to the call */ if (!vbasedev->n...
false
qemu
7df9381b7aa56c897e344f3bfe43bf5848bbd3e0
static int vfio_base_device_init(VFIODevice *vbasedev) { VFIOGroup *group; VFIODevice *vbasedev_iter; char path[PATH_MAX], iommu_group_path[PATH_MAX], *group_name; ssize_t len; struct stat st; int groupid; int ret; if (!vbasedev->name || strchr(vbasedev->name, '/')) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(VFIODevice *VAR_0) { VFIOGroup *group; VFIODevice *vbasedev_iter; char VAR_1[PATH_MAX], iommu_group_path[PATH_MAX], *group_name; ssize_t len; struct stat VAR_2; int VAR_3; int VAR_4; if (!VAR_0->name || strchr(VAR_0->name, '/')) { return -EINVA...
[ "static int FUNC_0(VFIODevice *VAR_0)\n{", "VFIOGroup *group;", "VFIODevice *vbasedev_iter;", "char VAR_1[PATH_MAX], iommu_group_path[PATH_MAX], *group_name;", "ssize_t len;", "struct stat VAR_2;", "int VAR_3;", "int VAR_4;", "if (!VAR_0->name || strchr(VAR_0->name, '/')) {", "return -EINVAL;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [...
12,120
void Y8950UpdateOne(FM_OPL *OPL, INT16 *buffer, int length) { int i; int data; OPLSAMPLE *buf = buffer; UINT32 amsCnt = OPL->amsCnt; UINT32 vibCnt = OPL->vibCnt; UINT8 rythm = OPL->rythm&0x20; OPL_CH *CH,*R_CH; YM_DELTAT *DELTAT = OPL->deltat; /* setup DELTA-T unit */ YM_DELTAT_DECODE_PRESET...
false
qemu
c11e80e299e57c64934c164b231fa0d4279db445
void Y8950UpdateOne(FM_OPL *OPL, INT16 *buffer, int length) { int i; int data; OPLSAMPLE *buf = buffer; UINT32 amsCnt = OPL->amsCnt; UINT32 vibCnt = OPL->vibCnt; UINT8 rythm = OPL->rythm&0x20; OPL_CH *CH,*R_CH; YM_DELTAT *DELTAT = OPL->deltat; YM_DELTAT_DECODE_PRESET(DELTAT); if( (void ...
{ "code": [], "line_no": [] }
void FUNC_0(FM_OPL *VAR_0, INT16 *VAR_1, int VAR_2) { int VAR_3; int VAR_4; OPLSAMPLE *buf = VAR_1; UINT32 amsCnt = VAR_0->amsCnt; UINT32 vibCnt = VAR_0->vibCnt; UINT8 rythm = VAR_0->rythm&0x20; OPL_CH *CH,*R_CH; YM_DELTAT *DELTAT = VAR_0->deltat; YM_DELTAT_DECODE_PRESET(DELTAT); if( (v...
[ "void FUNC_0(FM_OPL *VAR_0, INT16 *VAR_1, int VAR_2)\n{", "int VAR_3;", "int VAR_4;", "OPLSAMPLE *buf = VAR_1;", "UINT32 amsCnt = VAR_0->amsCnt;", "UINT32 vibCnt = VAR_0->vibCnt;", "UINT8 rythm = VAR_0->rythm&0x20;", "OPL_CH *CH,*R_CH;", "YM_DELTAT *DELTAT = VAR_0->deltat;", "YM_DELTAT_DECODE_PR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
12,122
static const ppc_def_t *ppc_find_by_pvr (uint32_t pvr) { int i; for (i = 0; i < ARRAY_SIZE(ppc_defs); i++) { /* If we have an exact match, we're done */ if (pvr == ppc_defs[i].pvr) { return &ppc_defs[i]; } } return NULL; }
false
qemu
a1e985833cde3208b0f57c4c7e640b60fbc6c54d
static const ppc_def_t *ppc_find_by_pvr (uint32_t pvr) { int i; for (i = 0; i < ARRAY_SIZE(ppc_defs); i++) { if (pvr == ppc_defs[i].pvr) { return &ppc_defs[i]; } } return NULL; }
{ "code": [], "line_no": [] }
static const ppc_def_t *FUNC_0 (uint32_t pvr) { int VAR_0; for (VAR_0 = 0; VAR_0 < ARRAY_SIZE(ppc_defs); VAR_0++) { if (pvr == ppc_defs[VAR_0].pvr) { return &ppc_defs[VAR_0]; } } return NULL; }
[ "static const ppc_def_t *FUNC_0 (uint32_t pvr)\n{", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < ARRAY_SIZE(ppc_defs); VAR_0++) {", "if (pvr == ppc_defs[VAR_0].pvr) {", "return &ppc_defs[VAR_0];", "}", "}", "return NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
12,124
static int slirp_state_load(QEMUFile *f, void *opaque, int version_id) { Slirp *slirp = opaque; struct ex_list *ex_ptr; while (qemu_get_byte(f)) { int ret; struct socket *so = socreate(slirp); if (!so) return -ENOMEM; ret = vmstate_load_state(f, &vm...
false
qemu
eb5d4f5329df83ea15244b47f7fbca21adaae41b
static int slirp_state_load(QEMUFile *f, void *opaque, int version_id) { Slirp *slirp = opaque; struct ex_list *ex_ptr; while (qemu_get_byte(f)) { int ret; struct socket *so = socreate(slirp); if (!so) return -ENOMEM; ret = vmstate_load_state(f, &vm...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2) { Slirp *slirp = VAR_1; struct ex_list *VAR_3; while (qemu_get_byte(VAR_0)) { int VAR_4; struct socket *VAR_5 = socreate(slirp); if (!VAR_5) return -ENOMEM; VAR_4 = vmstate_load_state(VAR_0,...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{", "Slirp *slirp = VAR_1;", "struct ex_list *VAR_3;", "while (qemu_get_byte(VAR_0)) {", "int VAR_4;", "struct socket *VAR_5 = socreate(slirp);", "if (!VAR_5)\nreturn -ENOMEM;", "VAR_4 = vmstate_load_state(VAR_0, &vmstate_slirp_socket, VAR_5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 29, 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47, 49 ], [ 51 ], [ 53 ], [ 55 ], ...
12,125
int get_segment32(CPUPPCState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int type) { hwaddr hash; target_ulong vsid; int ds, pr, target_page_bits; int ret, ret2; target_ulong sr, pgidx; pr = msr_pr; ctx->eaddr = eaddr; sr = env->sr[eaddr >> 28]; ...
false
qemu
629bd516fda67c95ba1c7d1393bacb9e68ea0712
int get_segment32(CPUPPCState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int type) { hwaddr hash; target_ulong vsid; int ds, pr, target_page_bits; int ret, ret2; target_ulong sr, pgidx; pr = msr_pr; ctx->eaddr = eaddr; sr = env->sr[eaddr >> 28]; ...
{ "code": [], "line_no": [] }
int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { hwaddr hash; target_ulong vsid; int VAR_5, VAR_6, VAR_7; int VAR_8, VAR_9; target_ulong sr, pgidx; VAR_6 = msr_pr; VAR_1->VAR_2 = VAR_2; sr = VAR_0->sr[VAR_2 >> 28...
[ "int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4)\n{", "hwaddr hash;", "target_ulong vsid;", "int VAR_5, VAR_6, VAR_7;", "int VAR_8, VAR_9;", "target_ulong sr, pgidx;", "VAR_6 = msr_pr;", "VAR_1->VAR_2 = VAR_2;", "sr = VAR_0->sr[VAR_2 >> 28];", "VAR_1->ke...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43, 45, 47 ], [ 49 ], [ 51 ...
12,126
static void bonito_cop_writel(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIBonitoState *s = opaque; ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)] = val & 0xffffffff; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void bonito_cop_writel(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIBonitoState *s = opaque; ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)] = val & 0xffffffff; }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { PCIBonitoState *s = VAR_0; ((uint32_t *)(&s->boncop))[VAR_1/sizeof(uint32_t)] = VAR_2 & 0xffffffff; }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "PCIBonitoState *s = VAR_0;", "((uint32_t *)(&s->boncop))[VAR_1/sizeof(uint32_t)] = VAR_2 & 0xffffffff;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ] ]
12,127
static void scsi_dma_restart_cb(void *opaque, int running, int reason) { SCSIDeviceState *s = opaque; SCSIRequest *r = s->requests; if (!running) return; while (r) { if (r->status & SCSI_REQ_STATUS_RETRY) { r->status &= ~SCSI_REQ_STATUS_RETRY; scsi_writ...
false
qemu
213189ab65d83ecd9072f27c80a15dcb91b6bdbf
static void scsi_dma_restart_cb(void *opaque, int running, int reason) { SCSIDeviceState *s = opaque; SCSIRequest *r = s->requests; if (!running) return; while (r) { if (r->status & SCSI_REQ_STATUS_RETRY) { r->status &= ~SCSI_REQ_STATUS_RETRY; scsi_writ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { SCSIDeviceState *s = VAR_0; SCSIRequest *r = s->requests; if (!VAR_1) return; while (r) { if (r->status & SCSI_REQ_STATUS_RETRY) { r->status &= ~SCSI_REQ_STATUS_RETRY; scsi_write_request(r); ...
[ "static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "SCSIDeviceState *s = VAR_0;", "SCSIRequest *r = s->requests;", "if (!VAR_1)\nreturn;", "while (r) {", "if (r->status & SCSI_REQ_STATUS_RETRY) {", "r->status &= ~SCSI_REQ_STATUS_RETRY;", "scsi_write_request(r);", "}", "r = r->next;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
12,128
int ff_eac3_parse_header(AC3DecodeContext *s) { int i, blk, ch; int ac3_exponent_strategy, parse_aht_info, parse_spx_atten_data; int parse_transient_proc_info; int num_cpl_blocks; GetBitContext *gbc = &s->gbc; /* An E-AC-3 stream can have multiple independent streams which the a...
false
FFmpeg
fef2147b7a689b80d716c3edb9d4a18904865275
int ff_eac3_parse_header(AC3DecodeContext *s) { int i, blk, ch; int ac3_exponent_strategy, parse_aht_info, parse_spx_atten_data; int parse_transient_proc_info; int num_cpl_blocks; GetBitContext *gbc = &s->gbc; if (s->frame_type == EAC3_FRAME_TYPE_DEPENDENT) { avpriv_r...
{ "code": [], "line_no": [] }
int FUNC_0(AC3DecodeContext *VAR_0) { int VAR_1, VAR_2, VAR_3; int VAR_4, VAR_5, VAR_6; int VAR_7; int VAR_8; GetBitContext *gbc = &VAR_0->gbc; if (VAR_0->frame_type == EAC3_FRAME_TYPE_DEPENDENT) { avpriv_request_sample(VAR_0->avctx, "Dependent substream decoding"); ...
[ "int FUNC_0(AC3DecodeContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3;", "int VAR_4, VAR_5, VAR_6;", "int VAR_7;", "int VAR_8;", "GetBitContext *gbc = &VAR_0->gbc;", "if (VAR_0->frame_type == EAC3_FRAME_TYPE_DEPENDENT) {", "avpriv_request_sample(VAR_0->avctx, \"Dependent substream decoding\");", "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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 67 ], [ 69 ...
12,129
qemu_irq *mcf_intc_init(MemoryRegion *sysmem, target_phys_addr_t base, CPUM68KState *env) { mcf_intc_state *s; s = g_malloc0(sizeof(mcf_intc_state)); s->env = env; mcf_intc_reset(s); memory_region_init_io(&s->iomem, &mcf_intc_ops, s, "mcf",...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
qemu_irq *mcf_intc_init(MemoryRegion *sysmem, target_phys_addr_t base, CPUM68KState *env) { mcf_intc_state *s; s = g_malloc0(sizeof(mcf_intc_state)); s->env = env; mcf_intc_reset(s); memory_region_init_io(&s->iomem, &mcf_intc_ops, s, "mcf",...
{ "code": [], "line_no": [] }
qemu_irq *FUNC_0(MemoryRegion *sysmem, target_phys_addr_t base, CPUM68KState *env) { mcf_intc_state *s; s = g_malloc0(sizeof(mcf_intc_state)); s->env = env; mcf_intc_reset(s); memory_region_init_io(&s->iomem, &mcf_intc_ops, s, "mcf", 0x100)...
[ "qemu_irq *FUNC_0(MemoryRegion *sysmem,\ntarget_phys_addr_t base,\nCPUM68KState *env)\n{", "mcf_intc_state *s;", "s = g_malloc0(sizeof(mcf_intc_state));", "s->env = env;", "mcf_intc_reset(s);", "memory_region_init_io(&s->iomem, &mcf_intc_ops, s, \"mcf\", 0x100);", "memory_region_add_subregion(sysmem, ba...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
12,131
SDState *sd_init(BlockDriverState *bs, bool is_spi) { SDState *sd; if (bs && bdrv_is_read_only(bs)) { fprintf(stderr, "sd_init: Cannot use read-only drive\n"); return NULL; } sd = (SDState *) g_malloc0(sizeof(SDState)); sd->buf = qemu_blockalign(bs, 512); sd->spi = i...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
SDState *sd_init(BlockDriverState *bs, bool is_spi) { SDState *sd; if (bs && bdrv_is_read_only(bs)) { fprintf(stderr, "sd_init: Cannot use read-only drive\n"); return NULL; } sd = (SDState *) g_malloc0(sizeof(SDState)); sd->buf = qemu_blockalign(bs, 512); sd->spi = i...
{ "code": [], "line_no": [] }
SDState *FUNC_0(BlockDriverState *bs, bool is_spi) { SDState *sd; if (bs && bdrv_is_read_only(bs)) { fprintf(stderr, "FUNC_0: Cannot use read-only drive\n"); return NULL; } sd = (SDState *) g_malloc0(sizeof(SDState)); sd->buf = qemu_blockalign(bs, 512); sd->spi = is_...
[ "SDState *FUNC_0(BlockDriverState *bs, bool is_spi)\n{", "SDState *sd;", "if (bs && bdrv_is_read_only(bs)) {", "fprintf(stderr, \"FUNC_0: Cannot use read-only drive\\n\");", "return NULL;", "}", "sd = (SDState *) g_malloc0(sizeof(SDState));", "sd->buf = qemu_blockalign(bs, 512);", "sd->spi = is_spi;...
[ 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
12,135
static void isa_ne2000_cleanup(NetClientState *nc) { NE2000State *s = qemu_get_nic_opaque(nc); s->nic = NULL; }
false
qemu
57407ea44cc0a3d630b9b89a2be011f1955ce5c1
static void isa_ne2000_cleanup(NetClientState *nc) { NE2000State *s = qemu_get_nic_opaque(nc); s->nic = NULL; }
{ "code": [], "line_no": [] }
static void FUNC_0(NetClientState *VAR_0) { NE2000State *s = qemu_get_nic_opaque(VAR_0); s->nic = NULL; }
[ "static void FUNC_0(NetClientState *VAR_0)\n{", "NE2000State *s = qemu_get_nic_opaque(VAR_0);", "s->nic = NULL;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
12,136
static int configure_accelerator(MachineClass *mc) { const char *p; char buf[10]; int i, ret; bool accel_initialised = false; bool init_failed = false; p = qemu_opt_get(qemu_get_machine_opts(), "accel"); if (p == NULL) { /* Use the default "accelerator", tcg */ p ...
false
qemu
20674449453924ac808a82619456f68bb14df007
static int configure_accelerator(MachineClass *mc) { const char *p; char buf[10]; int i, ret; bool accel_initialised = false; bool init_failed = false; p = qemu_opt_get(qemu_get_machine_opts(), "accel"); if (p == NULL) { p = "tcg"; } while (!accel_ini...
{ "code": [], "line_no": [] }
static int FUNC_0(MachineClass *VAR_0) { const char *VAR_1; char VAR_2[10]; int VAR_3, VAR_4; bool accel_initialised = false; bool init_failed = false; VAR_1 = qemu_opt_get(qemu_get_machine_opts(), "accel"); if (VAR_1 == NULL) { VAR_1 = "tcg"; } while...
[ "static int FUNC_0(MachineClass *VAR_0)\n{", "const char *VAR_1;", "char VAR_2[10];", "int VAR_3, VAR_4;", "bool accel_initialised = false;", "bool init_failed = false;", "VAR_1 = qemu_opt_get(qemu_get_machine_opts(), \"accel\");", "if (VAR_1 == NULL) {", "VAR_1 = \"tcg\";", "}", "while (!accel_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [...
12,138
VirtIODevice *virtio_net_init(DeviceState *dev) { VirtIONet *n; static int virtio_net_id; n = (VirtIONet *)virtio_common_init("virtio-net", VIRTIO_ID_NET, sizeof(struct virtio_net_config), sizeof(VirtIONet)); n->v...
false
qemu
4ffb17f5c3244e405198ae285ffbb20a62e0d4b3
VirtIODevice *virtio_net_init(DeviceState *dev) { VirtIONet *n; static int virtio_net_id; n = (VirtIONet *)virtio_common_init("virtio-net", VIRTIO_ID_NET, sizeof(struct virtio_net_config), sizeof(VirtIONet)); n->v...
{ "code": [], "line_no": [] }
VirtIODevice *FUNC_0(DeviceState *dev) { VirtIONet *n; static int VAR_0; n = (VirtIONet *)virtio_common_init("virtio-net", VIRTIO_ID_NET, sizeof(struct virtio_net_config), sizeof(VirtIONet)); n->vdev.get_config = ...
[ "VirtIODevice *FUNC_0(DeviceState *dev)\n{", "VirtIONet *n;", "static int VAR_0;", "n = (VirtIONet *)virtio_common_init(\"virtio-net\", VIRTIO_ID_NET,\nsizeof(struct virtio_net_config),\nsizeof(VirtIONet));", "n->vdev.get_config = virtio_net_get_config;", "n->vdev.set_config = virtio_net_set_config;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43, 45, 47 ], [ 49 ], ...
12,140
static void process_ncq_command(AHCIState *s, int port, uint8_t *cmd_fis, int slot) { AHCIDevice *ad = &s->dev[port]; IDEState *ide_state = &ad->port.ifs[0]; NCQFrame *ncq_fis = (NCQFrame*)cmd_fis; uint8_t tag = ncq_fis->tag >> 3; NCQTransferState *ncq_tfs = &a...
false
qemu
922f893e57da24bc80db3e79bea56485d1c111fa
static void process_ncq_command(AHCIState *s, int port, uint8_t *cmd_fis, int slot) { AHCIDevice *ad = &s->dev[port]; IDEState *ide_state = &ad->port.ifs[0]; NCQFrame *ncq_fis = (NCQFrame*)cmd_fis; uint8_t tag = ncq_fis->tag >> 3; NCQTransferState *ncq_tfs = &a...
{ "code": [], "line_no": [] }
static void FUNC_0(AHCIState *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3) { AHCIDevice *ad = &VAR_0->dev[VAR_1]; IDEState *ide_state = &ad->VAR_1.ifs[0]; NCQFrame *ncq_fis = (NCQFrame*)VAR_2; uint8_t tag = ncq_fis->tag >> 3; NCQTransferState *ncq_tfs = &ad->nc...
[ "static void FUNC_0(AHCIState *VAR_0, int VAR_1, uint8_t *VAR_2,\nint VAR_3)\n{", "AHCIDevice *ad = &VAR_0->dev[VAR_1];", "IDEState *ide_state = &ad->VAR_1.ifs[0];", "NCQFrame *ncq_fis = (NCQFrame*)VAR_2;", "uint8_t tag = ncq_fis->tag >> 3;", "NCQTransferState *ncq_tfs = &ad->ncq_tfs[tag];", "size_t siz...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43, 45, 47, 49, 51 ], [ 53 ...
12,141
static inline uint32_t lduw_phys_internal(hwaddr addr, enum device_endian endian) { uint8_t *ptr; uint64_t val; MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS); if (!(memory_region_is...
false
qemu
149f54b53b7666a3facd45e86eece60ce7d3b114
static inline uint32_t lduw_phys_internal(hwaddr addr, enum device_endian endian) { uint8_t *ptr; uint64_t val; MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS); if (!(memory_region_is...
{ "code": [], "line_no": [] }
static inline uint32_t FUNC_0(hwaddr addr, enum device_endian endian) { uint8_t *ptr; uint64_t val; MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS); if (!(memory_region_is_ram(section...
[ "static inline uint32_t FUNC_0(hwaddr addr,\nenum device_endian endian)\n{", "uint8_t *ptr;", "uint64_t val;", "MemoryRegionSection *section;", "section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS);", "if (!(memory_region_is_ram(section->mr) ||\nmemory_region_is_romd(section->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 51, 53, 55 ], [...
12,143
static void decode_block(BinkAudioContext *s, short *out, int use_dct) { int ch, i, j, k; float q, quant[25]; int width, coeff; GetBitContext *gb = &s->gb; if (use_dct) skip_bits(gb, 2); for (ch = 0; ch < s->channels; ch++) { FFTSample *coeffs = s->coeffs_ptr[ch]; ...
false
FFmpeg
a304def1dca50d63bf2a39651f84792980db3508
static void decode_block(BinkAudioContext *s, short *out, int use_dct) { int ch, i, j, k; float q, quant[25]; int width, coeff; GetBitContext *gb = &s->gb; if (use_dct) skip_bits(gb, 2); for (ch = 0; ch < s->channels; ch++) { FFTSample *coeffs = s->coeffs_ptr[ch]; ...
{ "code": [], "line_no": [] }
static void FUNC_0(BinkAudioContext *VAR_0, short *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6; float VAR_7, VAR_8[25]; int VAR_9, VAR_10; GetBitContext *gb = &VAR_0->gb; if (VAR_2) skip_bits(gb, 2); for (VAR_3 = 0; VAR_3 < VAR_0->channels; VAR_3++) { FFTSampl...
[ "static void FUNC_0(BinkAudioContext *VAR_0, short *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6;", "float VAR_7, VAR_8[25];", "int VAR_9, VAR_10;", "GetBitContext *gb = &VAR_0->gb;", "if (VAR_2)\nskip_bits(gb, 2);", "for (VAR_3 = 0; VAR_3 < VAR_0->channels; VAR_3++) {", "FFTSample *coeffs =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ], [...
12,144
static void sun4c_hw_init(const struct sun4c_hwdef *hwdef, ram_addr_t RAM_size, const char *boot_device, DisplayState *ds, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, con...
false
qemu
0ae18ceeaaa2c1749e742c4b112f6c3bf0896408
static void sun4c_hw_init(const struct sun4c_hwdef *hwdef, ram_addr_t RAM_size, const char *boot_device, DisplayState *ds, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, con...
{ "code": [], "line_no": [] }
static void FUNC_0(const struct sun4c_hwdef *VAR_0, ram_addr_t VAR_1, const char *VAR_2, DisplayState *VAR_3, const char *VAR_4, const char *VAR_5, const char *VAR_6, const char *VAR_7) { CPUState *env; ...
[ "static void FUNC_0(const struct sun4c_hwdef *VAR_0, ram_addr_t VAR_1,\nconst char *VAR_2,\nDisplayState *VAR_3, const char *VAR_4,\nconst char *VAR_5,\nconst char *VAR_6, const char *VAR_7)\n{", "CPUState *env;", "unsigned int VAR_8;", "void *VAR_9, *VAR_10, *VAR_11, *VAR_12, *VAR_13;", "qemu_irq *cpu_irqs...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43, 45 ], [ 49 ], [ 51 ], [...
12,146
static inline void tcg_out_goto_label(TCGContext *s, int cond, int label_index) { TCGLabel *l = &s->labels[label_index]; if (l->has_value) { tcg_out_goto(s, cond, l->u.value_ptr); } else { tcg_out_reloc(s, s->code_ptr, R_ARM_PC24, label_index, 0); tcg_out_b_noaddr(s, cond); ...
false
qemu
bec1631100323fac0900aea71043d5c4e22fc2fa
static inline void tcg_out_goto_label(TCGContext *s, int cond, int label_index) { TCGLabel *l = &s->labels[label_index]; if (l->has_value) { tcg_out_goto(s, cond, l->u.value_ptr); } else { tcg_out_reloc(s, s->code_ptr, R_ARM_PC24, label_index, 0); tcg_out_b_noaddr(s, cond); ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2) { TCGLabel *l = &VAR_0->labels[VAR_2]; if (l->has_value) { tcg_out_goto(VAR_0, VAR_1, l->u.value_ptr); } else { tcg_out_reloc(VAR_0, VAR_0->code_ptr, R_ARM_PC24, VAR_2, 0); tcg_out_b_noaddr(VAR_0, VAR_1); ...
[ "static inline void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2)\n{", "TCGLabel *l = &VAR_0->labels[VAR_2];", "if (l->has_value) {", "tcg_out_goto(VAR_0, VAR_1, l->u.value_ptr);", "} else {", "tcg_out_reloc(VAR_0, VAR_0->code_ptr, R_ARM_PC24, VAR_2, 0);", "tcg_out_b_noaddr(VAR_0, VAR_1);", "}", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
12,147
static uint32_t nabm_readl (void *opaque, uint32_t addr) { PCIAC97LinkState *d = opaque; AC97LinkState *s = &d->ac97; AC97BusMasterRegs *r = NULL; uint32_t index = addr - s->base[1]; uint32_t val = ~0U; switch (index) { case PI_BDBAR: case PO_BDBAR: case MC_BDBAR: ...
false
qemu
10ee2aaa417d8d8978cdb2bbed55ebb152df5f6b
static uint32_t nabm_readl (void *opaque, uint32_t addr) { PCIAC97LinkState *d = opaque; AC97LinkState *s = &d->ac97; AC97BusMasterRegs *r = NULL; uint32_t index = addr - s->base[1]; uint32_t val = ~0U; switch (index) { case PI_BDBAR: case PO_BDBAR: case MC_BDBAR: ...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0 (void *opaque, uint32_t addr) { PCIAC97LinkState *d = opaque; AC97LinkState *s = &d->ac97; AC97BusMasterRegs *r = NULL; uint32_t index = addr - s->base[1]; uint32_t val = ~0U; switch (index) { case PI_BDBAR: case PO_BDBAR: case MC_BDBAR: r ...
[ "static uint32_t FUNC_0 (void *opaque, uint32_t addr)\n{", "PCIAC97LinkState *d = opaque;", "AC97LinkState *s = &d->ac97;", "AC97BusMasterRegs *r = NULL;", "uint32_t index = addr - s->base[1];", "uint32_t val = ~0U;", "switch (index) {", "case PI_BDBAR:\ncase PO_BDBAR:\ncase MC_BDBAR:\nr = &s->bm_regs...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49, 51,...
12,149
static uint32_t dp8393x_readl(void *opaque, target_phys_addr_t addr) { uint32_t v; v = dp8393x_readw(opaque, addr); v |= dp8393x_readw(opaque, addr + 2) << 16; return v; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint32_t dp8393x_readl(void *opaque, target_phys_addr_t addr) { uint32_t v; v = dp8393x_readw(opaque, addr); v |= dp8393x_readw(opaque, addr + 2) << 16; return v; }
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr) { uint32_t v; v = dp8393x_readw(opaque, addr); v |= dp8393x_readw(opaque, addr + 2) << 16; return v; }
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{", "uint32_t v;", "v = dp8393x_readw(opaque, addr);", "v |= dp8393x_readw(opaque, addr + 2) << 16;", "return v;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
12,150
qcrypto_tls_creds_x509_sanity_check(QCryptoTLSCredsX509 *creds, bool isServer, const char *cacertFile, const char *certFile, Error **errp) { gnutls_x509_crt_t cert = ...
false
qemu
08cb175a24d642a40e41db2fef2892b0a1ab504e
qcrypto_tls_creds_x509_sanity_check(QCryptoTLSCredsX509 *creds, bool isServer, const char *cacertFile, const char *certFile, Error **errp) { gnutls_x509_crt_t cert = ...
{ "code": [], "line_no": [] }
FUNC_0(QCryptoTLSCredsX509 *VAR_0, bool VAR_1, const char *VAR_2, const char *VAR_3, Error **VAR_4) { gnutls_x509_crt_t cert = NULL; gnutls_x509_crt_t cacerts[MA...
[ "FUNC_0(QCryptoTLSCredsX509 *VAR_0,\nbool VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nError **VAR_4)\n{", "gnutls_x509_crt_t cert = NULL;", "gnutls_x509_crt_t cacerts[MAX_CERTS];", "size_t ncacerts = 0;", "size_t i;", "int VAR_5 = -1;", "memset(cacerts, 0, sizeof(cacerts));", "if (access(VAR_3, R_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47, 49, 51 ], [...
12,151
static void qemu_aio_wait_all(void) { while (qemu_aio_wait()) { /* Do nothing */ } }
false
qemu
c4d9d19645a484298a67e9021060bc7c2b081d0f
static void qemu_aio_wait_all(void) { while (qemu_aio_wait()) { } }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { while (qemu_aio_wait()) { } }
[ "static void FUNC_0(void)\n{", "while (qemu_aio_wait()) {", "}", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
12,152
static inline void gen_jcc1(DisasContext *s, int b, int l1) { CCPrepare cc = gen_prepare_cc(s, b, cpu_T[0]); gen_update_cc_op(s); if (cc.mask != -1) { tcg_gen_andi_tl(cpu_T[0], cc.reg, cc.mask); cc.reg = cpu_T[0]; } set_cc_op(s, CC_OP_DYNAMIC); if (cc.use_reg2) { ...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static inline void gen_jcc1(DisasContext *s, int b, int l1) { CCPrepare cc = gen_prepare_cc(s, b, cpu_T[0]); gen_update_cc_op(s); if (cc.mask != -1) { tcg_gen_andi_tl(cpu_T[0], cc.reg, cc.mask); cc.reg = cpu_T[0]; } set_cc_op(s, CC_OP_DYNAMIC); if (cc.use_reg2) { ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2) { CCPrepare cc = gen_prepare_cc(VAR_0, VAR_1, cpu_T[0]); gen_update_cc_op(VAR_0); if (cc.mask != -1) { tcg_gen_andi_tl(cpu_T[0], cc.reg, cc.mask); cc.reg = cpu_T[0]; } set_cc_op(VAR_0, CC_OP_DYNAMIC); ...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2)\n{", "CCPrepare cc = gen_prepare_cc(VAR_0, VAR_1, cpu_T[0]);", "gen_update_cc_op(VAR_0);", "if (cc.mask != -1) {", "tcg_gen_andi_tl(cpu_T[0], cc.reg, cc.mask);", "cc.reg = cpu_T[0];", "}", "set_cc_op(VAR_0, CC_OP_DYNAMIC);", "if (...
[ 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 ] ]
12,153
static void rtl8139_do_receive(void *opaque, const uint8_t *buf, int size, int do_interrupt) { RTL8139State *s = opaque; uint32_t packet_header = 0; uint8_t buf1[60]; static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; DEBUG_PRINT((">>> RTL8139: ...
false
qemu
ccf1d14a1e37abe1f0da162c00a8941963b47a4c
static void rtl8139_do_receive(void *opaque, const uint8_t *buf, int size, int do_interrupt) { RTL8139State *s = opaque; uint32_t packet_header = 0; uint8_t buf1[60]; static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; DEBUG_PRINT((">>> RTL8139: ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3) { RTL8139State *s = VAR_0; uint32_t packet_header = 0; uint8_t buf1[60]; static const uint8_t VAR_4[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; DEBUG_PRINT((">>> RTL8139: received len=%d\n", VAR_2)); ...
[ "static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3)\n{", "RTL8139State *s = VAR_0;", "uint32_t packet_header = 0;", "uint8_t buf1[60];", "static const uint8_t VAR_4[6] =\n{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };", "DEBUG_PRINT((\">>> RTL8139: received len=%d\\n\", VAR_2));", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15, 17 ], [ 21 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ], [ 61 ], [ 65 ], [ 67 ], ...
12,154
static int img_read_packet(AVFormatContext *s1, AVPacket *pkt) { VideoData *s = s1->priv_data; char filename[1024]; int ret; ByteIOContext f1, *f; if (!s->is_pipe) { if (get_frame_filename(filename, sizeof(filename), s->path, s->img_number) < 0) ...
false
FFmpeg
22b37f5d3200cfe4c15eded883663cf0612093c1
static int img_read_packet(AVFormatContext *s1, AVPacket *pkt) { VideoData *s = s1->priv_data; char filename[1024]; int ret; ByteIOContext f1, *f; if (!s->is_pipe) { if (get_frame_filename(filename, sizeof(filename), s->path, s->img_number) < 0) ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { VideoData *s = VAR_0->priv_data; char VAR_2[1024]; int VAR_3; ByteIOContext f1, *f; if (!s->is_pipe) { if (get_frame_filename(VAR_2, sizeof(VAR_2), s->path, s->img_number) < 0) ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "VideoData *s = VAR_0->priv_data;", "char VAR_2[1024];", "int VAR_3;", "ByteIOContext f1, *f;", "if (!s->is_pipe) {", "if (get_frame_filename(VAR_2, sizeof(VAR_2),\ns->path, s->img_number) < 0)\nreturn -EIO;", "f = &f1;", "if (url_fope...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
12,155
int qemu_chr_fe_write_all(CharDriverState *s, const uint8_t *buf, int len) { int offset = 0; int res; qemu_mutex_lock(&s->chr_write_lock); while (offset < len) { do { res = s->chr_write(s, buf + offset, len - offset); if (res == -1 && errno == EAGAIN) { ...
true
qemu
0931304788ecac6c7871f570c7ac8407b54e30c6
int qemu_chr_fe_write_all(CharDriverState *s, const uint8_t *buf, int len) { int offset = 0; int res; qemu_mutex_lock(&s->chr_write_lock); while (offset < len) { do { res = s->chr_write(s, buf + offset, len - offset); if (res == -1 && errno == EAGAIN) { ...
{ "code": [ " int res;" ], "line_no": [ 7 ] }
int FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2) { int VAR_3 = 0; int VAR_4; qemu_mutex_lock(&VAR_0->chr_write_lock); while (VAR_3 < VAR_2) { do { VAR_4 = VAR_0->chr_write(VAR_0, VAR_1 + VAR_3, VAR_2 - VAR_3); if (VAR_4 == -1 && errno == EAGAI...
[ "int FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "int VAR_3 = 0;", "int VAR_4;", "qemu_mutex_lock(&VAR_0->chr_write_lock);", "while (VAR_3 < VAR_2) {", "do {", "VAR_4 = VAR_0->chr_write(VAR_0, VAR_1 + VAR_3, VAR_2 - VAR_3);", "if (VAR_4 == -1 && errno == EAGAIN) {", "g_uslee...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49...
12,156
static void blkreplay_bh_cb(void *opaque) { Request *req = opaque; qemu_coroutine_enter(req->co, NULL); qemu_bh_delete(req->bh); g_free(req); }
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static void blkreplay_bh_cb(void *opaque) { Request *req = opaque; qemu_coroutine_enter(req->co, NULL); qemu_bh_delete(req->bh); g_free(req); }
{ "code": [ " qemu_coroutine_enter(req->co, NULL);" ], "line_no": [ 7 ] }
static void FUNC_0(void *VAR_0) { Request *req = VAR_0; qemu_coroutine_enter(req->co, NULL); qemu_bh_delete(req->bh); g_free(req); }
[ "static void FUNC_0(void *VAR_0)\n{", "Request *req = VAR_0;", "qemu_coroutine_enter(req->co, NULL);", "qemu_bh_delete(req->bh);", "g_free(req);", "}" ]
[ 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
12,157
static void store_slice_c(uint8_t *dst, const uint16_t *src, int dst_linesize, int src_linesize, int width, int height, int log2_scale, const uint8_t dither[8][8]) { int y, x; #define STORE(pos) do { ...
true
FFmpeg
6706a2986c48e3f20f1274b24345e6555d8f0f48
static void store_slice_c(uint8_t *dst, const uint16_t *src, int dst_linesize, int src_linesize, int width, int height, int log2_scale, const uint8_t dither[8][8]) { int y, x; #define STORE(pos) do { ...
{ "code": [ "static void store_slice_c(uint8_t *dst, const uint16_t *src," ], "line_no": [ 1 ] }
static void FUNC_0(uint8_t *VAR_0, const uint16_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, const uint8_t VAR_7[8][8]) { int VAR_8, VAR_9; #define STORE(pos) do { ...
[ "static void FUNC_0(uint8_t *VAR_0, const uint16_t *VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6,\nconst uint8_t VAR_7[8][8])\n{", "int VAR_8, VAR_9;", "#define STORE(pos) do { \\", "temp = ((VAR_1[VAR_9 + VAR_8*VAR_3 + pos] << VAR_6) + d[p...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
12,158
static QObject *qobject_input_get_object(QObjectInputVisitor *qiv, const char *name, bool consume, Error **errp) { StackObject *tos; QObject *qobj; QObject *ret; if (QSLIST_EMPTY(&qiv->stack)) { /* Starti...
true
qemu
a9fc37f6bc3f2ab90585cb16493da9f6dcfbfbcf
static QObject *qobject_input_get_object(QObjectInputVisitor *qiv, const char *name, bool consume, Error **errp) { StackObject *tos; QObject *qobj; QObject *ret; if (QSLIST_EMPTY(&qiv->stack)) { ...
{ "code": [ "static QObject *qobject_input_get_object(QObjectInputVisitor *qiv,", " const char *name,", " bool consume, Error **errp)", " if (!ret) {", " error_setg(errp, QERR_MISSING_PARAMETER, name)...
static QObject *FUNC_0(QObjectInputVisitor *qiv, const char *name, bool consume, Error **errp) { StackObject *tos; QObject *qobj; QObject *ret; if (QSLIST_EMPTY(&qiv->stack)) { assert(qiv->root)...
[ "static QObject *FUNC_0(QObjectInputVisitor *qiv,\nconst char *name,\nbool consume, Error **errp)\n{", "StackObject *tos;", "QObject *qobj;", "QObject *ret;", "if (QSLIST_EMPTY(&qiv->stack)) {", "assert(qiv->root);", "return qiv->root;", "}", "tos = QSLIST_FIRST(&qiv->stack);", "qobj = tos->obj;",...
[ 1, 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
12,159
static void test_qemu_strtoll_full_empty(void) { const char *str = ""; int64_t res = 999; int err; err = qemu_strtoll(str, NULL, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0); }
true
qemu
47d4be12c3997343e436c6cca89aefbbbeb70863
static void test_qemu_strtoll_full_empty(void) { const char *str = ""; int64_t res = 999; int err; err = qemu_strtoll(str, NULL, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0); }
{ "code": [ " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, 0);", " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, 0);", " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, 0);", " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(r...
static void FUNC_0(void) { const char *VAR_0 = ""; int64_t res = 999; int VAR_1; VAR_1 = qemu_strtoll(VAR_0, NULL, 0, &res); g_assert_cmpint(VAR_1, ==, 0); g_assert_cmpint(res, ==, 0); }
[ "static void FUNC_0(void)\n{", "const char *VAR_0 = \"\";", "int64_t res = 999;", "int VAR_1;", "VAR_1 = qemu_strtoll(VAR_0, NULL, 0, &res);", "g_assert_cmpint(VAR_1, ==, 0);", "g_assert_cmpint(res, ==, 0);", "}" ]
[ 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ] ]
12,160
static int64_t try_fiemap(BlockDriverState *bs, off_t start, off_t *data, off_t *hole, int nb_sectors, int *pnum) { #ifdef CONFIG_FIEMAP BDRVRawState *s = bs->opaque; int64_t ret = BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | start; struct { struct fiemap fm; ...
true
qemu
38c4d0aea3e1264c86e282d99560330adf2b6e25
static int64_t try_fiemap(BlockDriverState *bs, off_t start, off_t *data, off_t *hole, int nb_sectors, int *pnum) { #ifdef CONFIG_FIEMAP BDRVRawState *s = bs->opaque; int64_t ret = BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | start; struct { struct fiemap fm; ...
{ "code": [ " f.fm.fm_flags = 0;" ], "line_no": [ 35 ] }
static int64_t FUNC_0(BlockDriverState *bs, off_t start, off_t *data, off_t *hole, int nb_sectors, int *pnum) { #ifdef CONFIG_FIEMAP BDRVRawState *s = bs->opaque; int64_t ret = BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | start; struct { struct fiemap fm; str...
[ "static int64_t FUNC_0(BlockDriverState *bs, off_t start, off_t *data,\noff_t *hole, int nb_sectors, int *pnum)\n{", "#ifdef CONFIG_FIEMAP\nBDRVRawState *s = bs->opaque;", "int64_t ret = BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | start;", "struct {", "struct fiemap fm;", "struct fiemap_extent fe;", "} ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
12,161
static void calxeda_init(MachineState *machine, enum cxmachines machine_id) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_fi...
true
qemu
60ff4e63e2ea4738f114cbaf1f17e6e0184fc09c
static void calxeda_init(MachineState *machine, enum cxmachines machine_id) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_fi...
{ "code": [ " uint32_t filesize = get_image_size(sysboot_filename);", " if (load_image_targphys(\"sysram.bin\", 0xfff88000, filesize) < 0) {" ], "line_no": [ 159, 161 ] }
static void FUNC_0(MachineState *VAR_0, enum cxmachines VAR_1) { ram_addr_t ram_size = VAR_0->ram_size; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; const char *VAR_5 = VAR_0->VAR_5; DeviceState *dev = NULL; SysBusDevice *busde...
[ "static void FUNC_0(MachineState *VAR_0, enum cxmachines VAR_1)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "const char *VAR_5 = VAR_0->VAR_5;", "DeviceState *dev = NULL;", "SysBusDevice *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [...
12,162
bool trace_init_backends(void) { #ifdef CONFIG_TRACE_SIMPLE if (!st_init()) { fprintf(stderr, "failed to initialize simple tracing backend.\n"); return false; } #ifdef CONFIG_TRACE_FTRACE if (!ftrace_init()) { fprintf(stderr, "failed to initialize ftrace backend.\n"); return ...
true
qemu
0a852417564bc59441dc09509beacf7b49bc1e57
bool trace_init_backends(void) { #ifdef CONFIG_TRACE_SIMPLE if (!st_init()) { fprintf(stderr, "failed to initialize simple tracing backend.\n"); return false; } #ifdef CONFIG_TRACE_FTRACE if (!ftrace_init()) { fprintf(stderr, "failed to initialize ftrace backend.\n"); return ...
{ "code": [], "line_no": [] }
bool FUNC_0(void) { #ifdef CONFIG_TRACE_SIMPLE if (!st_init()) { fprintf(stderr, "failed to initialize simple tracing backend.\n"); return false; } #ifdef CONFIG_TRACE_FTRACE if (!ftrace_init()) { fprintf(stderr, "failed to initialize ftrace backend.\n"); return false; } ...
[ "bool FUNC_0(void)\n{", "#ifdef CONFIG_TRACE_SIMPLE\nif (!st_init()) {", "fprintf(stderr, \"failed to initialize simple tracing backend.\\n\");", "return false;", "}", "#ifdef CONFIG_TRACE_FTRACE\nif (!ftrace_init()) {", "fprintf(stderr, \"failed to initialize ftrace backend.\\n\");", "return false;",...
[ 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 ] ]
12,163
static inline void acpi_build_tables_cleanup(AcpiBuildTables *tables, bool mfre) { void *linker_data = bios_linker_loader_cleanup(tables->linker); if (mfre) { g_free(linker_data); } g_array_free(tables->rsdp, mfre); g_array_free(tables->table_data, mfre); g_array_free(tables->tcp...
true
qemu
ac369a77967d5dd984a5430505eaf24a380af1c0
static inline void acpi_build_tables_cleanup(AcpiBuildTables *tables, bool mfre) { void *linker_data = bios_linker_loader_cleanup(tables->linker); if (mfre) { g_free(linker_data); } g_array_free(tables->rsdp, mfre); g_array_free(tables->table_data, mfre); g_array_free(tables->tcp...
{ "code": [ " if (mfre) {", " g_free(linker_data);", " g_array_free(tables->table_data, mfre);" ], "line_no": [ 7, 9, 15 ] }
static inline void FUNC_0(AcpiBuildTables *VAR_0, bool VAR_1) { void *VAR_2 = bios_linker_loader_cleanup(VAR_0->linker); if (VAR_1) { g_free(VAR_2); } g_array_free(VAR_0->rsdp, VAR_1); g_array_free(VAR_0->table_data, VAR_1); g_array_free(VAR_0->tcpalog, VAR_1); }
[ "static inline void FUNC_0(AcpiBuildTables *VAR_0, bool VAR_1)\n{", "void *VAR_2 = bios_linker_loader_cleanup(VAR_0->linker);", "if (VAR_1) {", "g_free(VAR_2);", "}", "g_array_free(VAR_0->rsdp, VAR_1);", "g_array_free(VAR_0->table_data, VAR_1);", "g_array_free(VAR_0->tcpalog, VAR_1);", "}" ]
[ 0, 0, 1, 1, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
12,164
static void dec_mul(DisasContext *dc) { if (dc->format == OP_FMT_RI) { LOG_DIS("muli r%d, r%d, %d\n", dc->r0, dc->r1, sign_extend(dc->imm16, 16)); } else { LOG_DIS("mul r%d, r%d, r%d\n", dc->r2, dc->r0, dc->r1); } if (!(dc->env->features & LM32_FEATURE_MULTIPLY)...
true
qemu
3604a76fea6ff37738d4a8f596be38407be74a83
static void dec_mul(DisasContext *dc) { if (dc->format == OP_FMT_RI) { LOG_DIS("muli r%d, r%d, %d\n", dc->r0, dc->r1, sign_extend(dc->imm16, 16)); } else { LOG_DIS("mul r%d, r%d, r%d\n", dc->r2, dc->r0, dc->r1); } if (!(dc->env->features & LM32_FEATURE_MULTIPLY)...
{ "code": [ " cpu_abort(dc->env, \"hardware multiplier is not available\\n\");", " } else {" ], "line_no": [ 21, 11 ] }
static void FUNC_0(DisasContext *VAR_0) { if (VAR_0->format == OP_FMT_RI) { LOG_DIS("muli r%d, r%d, %d\n", VAR_0->r0, VAR_0->r1, sign_extend(VAR_0->imm16, 16)); } else { LOG_DIS("mul r%d, r%d, r%d\n", VAR_0->r2, VAR_0->r0, VAR_0->r1); } if (!(VAR_0->env->feature...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "if (VAR_0->format == OP_FMT_RI) {", "LOG_DIS(\"muli r%d, r%d, %d\\n\", VAR_0->r0, VAR_0->r1,\nsign_extend(VAR_0->imm16, 16));", "} else {", "LOG_DIS(\"mul r%d, r%d, r%d\\n\", VAR_0->r2, VAR_0->r0, VAR_0->r1);", "}", "if (!(VAR_0->env->features & LM32_FEATUR...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
12,165
static void v9fs_clunk(void *opaque) { int err; int32_t fid; size_t offset = 7; V9fsFidState *fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "d", &fid); fidp = clunk_fid(s, fid); if (fidp == NULL) { err = -ENOENT; goto ...
true
qemu
c572f23a3e7180dbeab5e86583e43ea2afed6271
static void v9fs_clunk(void *opaque) { int err; int32_t fid; size_t offset = 7; V9fsFidState *fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "d", &fid); fidp = clunk_fid(s, fid); if (fidp == NULL) { err = -ENOENT; goto ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int VAR_1; int32_t fid; size_t offset = 7; V9fsFidState *fidp; V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "d", &fid); fidp = clunk_fid(s, fid); if (fidp == NULL) { VAR_1 = -ENOENT; goto ou...
[ "static void FUNC_0(void *VAR_0)\n{", "int VAR_1;", "int32_t fid;", "size_t offset = 7;", "V9fsFidState *fidp;", "V9fsPDU *pdu = VAR_0;", "V9fsState *s = pdu->s;", "pdu_unmarshal(pdu, offset, \"d\", &fid);", "fidp = clunk_fid(s, fid);", "if (fidp == NULL) {", "VAR_1 = -ENOENT;", "goto out_nofi...
[ 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 ], [ 24 ], [ 26 ], [ 28 ], [ 30 ], [ 32 ], [ 42 ], [ 44 ], [ 48 ], [ 50, 52 ], [ 54 ] ]
12,167
static int cbs_mpeg2_read_unit(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit) { BitstreamContext bc; int err; err = bitstream_init(&bc, unit->data, 8 * unit->data_size); if (err < 0) return err; if (MPEG2_START_IS_SLICE(unit->type)) { ...
true
FFmpeg
7bf3f380466eeff24916fd6218aca13e414c6240
static int cbs_mpeg2_read_unit(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit) { BitstreamContext bc; int err; err = bitstream_init(&bc, unit->data, 8 * unit->data_size); if (err < 0) return err; if (MPEG2_START_IS_SLICE(unit->type)) { ...
{ "code": [ " slice->data = av_malloc(slice->data_size);" ], "line_no": [ 55 ] }
static int FUNC_0(CodedBitstreamContext *VAR_0, CodedBitstreamUnit *VAR_1) { BitstreamContext bc; int VAR_2; VAR_2 = bitstream_init(&bc, VAR_1->data, 8 * VAR_1->data_size); if (VAR_2 < 0) return VAR_2; if (MPEG2_START_IS_SLICE(VAR_1->type)) { ...
[ "static int FUNC_0(CodedBitstreamContext *VAR_0,\nCodedBitstreamUnit *VAR_1)\n{", "BitstreamContext bc;", "int VAR_2;", "VAR_2 = bitstream_init(&bc, VAR_1->data, 8 * VAR_1->data_size);", "if (VAR_2 < 0)\nreturn VAR_2;", "if (MPEG2_START_IS_SLICE(VAR_1->type)) {", "MPEG2RawSlice *slice;", "int VAR_3, V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ], [...
12,168
static int scan_for_extensions(AVCodecContext *avctx) { DCAContext *s = avctx->priv_data; int core_ss_end, ret; core_ss_end = FFMIN(s->frame_size, s->dca_buffer_size) * 8; /* only scan for extensions if ext_descr was unknown or indicated a * supported XCh extension */ if (s->core_ext...
true
FFmpeg
4c160fa23996c05efcd952ccfac2359311d8a1bc
static int scan_for_extensions(AVCodecContext *avctx) { DCAContext *s = avctx->priv_data; int core_ss_end, ret; core_ss_end = FFMIN(s->frame_size, s->dca_buffer_size) * 8; if (s->core_ext_mask < 0 || s->core_ext_mask & DCA_EXT_XCH) { s->core_ext_mask = FFMAX(s->core...
{ "code": [ " int core_ss_end, ret;" ], "line_no": [ 7 ] }
static int FUNC_0(AVCodecContext *VAR_0) { DCAContext *s = VAR_0->priv_data; int VAR_1, VAR_2; VAR_1 = FFMIN(s->frame_size, s->dca_buffer_size) * 8; if (s->core_ext_mask < 0 || s->core_ext_mask & DCA_EXT_XCH) { s->core_ext_mask = FFMAX(s->core_ext_mask, 0); ...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "DCAContext *s = VAR_0->priv_data;", "int VAR_1, VAR_2;", "VAR_1 = FFMIN(s->frame_size, s->dca_buffer_size) * 8;", "if (s->core_ext_mask < 0 || s->core_ext_mask & DCA_EXT_XCH) {", "s->core_ext_mask = FFMAX(s->core_ext_mask, 0);", "skip_bits_long(&s->gb, (-g...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 19 ], [ 25 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 57 ], [ 59, 61, 63 ], [ 69 ], [ 73 ], [ 81...
12,169
udp_input(register struct mbuf *m, int iphlen) { Slirp *slirp = m->slirp; register struct ip *ip; register struct udphdr *uh; int len; struct ip save_ip; struct socket *so; DEBUG_CALL("udp_input"); DEBUG_ARG("m = %lx", (long)m); DEBUG_ARG("iphlen = %d", iphlen); /* * Strip IP options, if any...
true
qemu
01f7cecf0037997cb0e58ec0d56bf9b5a6f7cb2a
udp_input(register struct mbuf *m, int iphlen) { Slirp *slirp = m->slirp; register struct ip *ip; register struct udphdr *uh; int len; struct ip save_ip; struct socket *so; DEBUG_CALL("udp_input"); DEBUG_ARG("m = %lx", (long)m); DEBUG_ARG("iphlen = %d", iphlen); if(iphlen > sizeof(...
{ "code": [ "\tif (so->so_lport != uh->uh_sport ||" ], "line_no": [ 181 ] }
FUNC_0(register struct mbuf *VAR_0, int VAR_1) { Slirp *slirp = VAR_0->slirp; register struct VAR_2 *VAR_2; register struct udphdr *VAR_3; int VAR_4; struct VAR_2 VAR_5; struct socket *VAR_6; DEBUG_CALL("FUNC_0"); DEBUG_ARG("VAR_0 = %lx", (long)VAR_0); DEBUG_ARG("VAR_1 = %d", VAR_1); ...
[ "FUNC_0(register struct mbuf *VAR_0, int VAR_1)\n{", "Slirp *slirp = VAR_0->slirp;", "register struct VAR_2 *VAR_2;", "register struct udphdr *VAR_3;", "int VAR_4;", "struct VAR_2 VAR_5;", "struct socket *VAR_6;", "DEBUG_CALL(\"FUNC_0\");", "DEBUG_ARG(\"VAR_0 = %lx\", (long)VAR_0);", "DEBUG_ARG(\"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 55 ], [ 57 ], [ 69 ], [ 73 ], [ 75 ], [ 77 ...
12,170
static int con_init(struct XenDevice *xendev) { struct XenConsole *con = container_of(xendev, struct XenConsole, xendev); char *type, *dom; /* setup */ dom = xs_get_domain_path(xenstore, con->xendev.dom); snprintf(con->console, sizeof(con->console), "%s/console", dom); free(dom); ...
true
qemu
5e6b701aba8689a336297dda047bf760ffc05291
static int con_init(struct XenDevice *xendev) { struct XenConsole *con = container_of(xendev, struct XenConsole, xendev); char *type, *dom; dom = xs_get_domain_path(xenstore, con->xendev.dom); snprintf(con->console, sizeof(con->console), "%s/console", dom); free(dom); type = xen...
{ "code": [ "\treturn -1;", " return 0;" ], "line_no": [ 27, 45 ] }
static int FUNC_0(struct XenDevice *VAR_0) { struct XenConsole *VAR_1 = container_of(VAR_0, struct XenConsole, VAR_0); char *VAR_2, *VAR_3; VAR_3 = xs_get_domain_path(xenstore, VAR_1->VAR_0.VAR_3); snprintf(VAR_1->console, sizeof(VAR_1->console), "%s/console", VAR_3); free(VAR_3); ...
[ "static int FUNC_0(struct XenDevice *VAR_0)\n{", "struct XenConsole *VAR_1 = container_of(VAR_0, struct XenConsole, VAR_0);", "char *VAR_2, *VAR_3;", "VAR_3 = xs_get_domain_path(xenstore, VAR_1->VAR_0.VAR_3);", "snprintf(VAR_1->console, sizeof(VAR_1->console), \"%s/console\", VAR_3);", "free(VAR_3);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35, 37 ], [ 39, 41 ], [ 45 ], [ 47 ] ]
12,171
static av_unused FFPsyWindowInfo psy_3gpp_window(FFPsyContext *ctx, const int16_t *audio, const int16_t *la, int channel, int prev_type) { int i, j; int br ...
true
FFmpeg
01ecb7172b684f1c4b3e748f95c5a9a494ca36ec
static av_unused FFPsyWindowInfo psy_3gpp_window(FFPsyContext *ctx, const int16_t *audio, const int16_t *la, int channel, int prev_type) { int i, j; int br ...
{ "code": [ " int br = ctx->avctx->bit_rate / ctx->avctx->channels;" ], "line_no": [ 13 ] }
static av_unused VAR_0 psy_3gpp_window(FFPsyContext *ctx, const int16_t *audio, const int16_t *la, int channel, int prev_type) { int i, j; int br ...
[ "static av_unused VAR_0 psy_3gpp_window(FFPsyContext *ctx,\nconst int16_t *audio,\nconst int16_t *la,\nint channel, int prev_type)\n{", "int i, j;", "int br = ctx->avctx->bit_rate / ctx->avctx->channels;", "int attack_ratio = br <= 16000 ? 18 : 10;", "AacPsyContext *pctx = (AacPsyContext*)...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
12,172
static int rac_get_model_sym(RangeCoder *c, Model *m) { int prob, prob2, helper, val; int end, end2; prob = 0; prob2 = c->range; c->range >>= MODEL_SCALE; val = 0; end = m->num_syms >> 1; end2 = m->num_syms; do { helper = m->freqs[e...
true
FFmpeg
2ef0f392711445e173a56b2c073dedb021ae3783
static int rac_get_model_sym(RangeCoder *c, Model *m) { int prob, prob2, helper, val; int end, end2; prob = 0; prob2 = c->range; c->range >>= MODEL_SCALE; val = 0; end = m->num_syms >> 1; end2 = m->num_syms; do { helper = m->freqs[e...
{ "code": [ " int prob, prob2, helper, val;" ], "line_no": [ 5 ] }
static int FUNC_0(RangeCoder *VAR_0, Model *VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5; int VAR_6, VAR_7; VAR_2 = 0; VAR_3 = VAR_0->range; VAR_0->range >>= MODEL_SCALE; VAR_5 = 0; VAR_6 = VAR_1->num_syms >> 1; VAR_7 = VAR_1->num_syms; do { ...
[ "static int FUNC_0(RangeCoder *VAR_0, Model *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6, VAR_7;", "VAR_2 = 0;", "VAR_3 = VAR_0->range;", "VAR_0->range >>= MODEL_SCALE;", "VAR_5 = 0;", "VAR_6 = VAR_1->num_syms >> 1;", "VAR_7 = VAR_1->num_syms;", "do {",...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
12,173
static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size, AVSubtitle *sub) { DVBSubContext *ctx = avctx->priv_data; DVBSubDisplayDefinition *display_def = ctx->display_definition; DVBSubRegion *region; DVBSubRegionDispl...
true
FFmpeg
af09be4f4b2f87e71a3396f54c24a166092ec8e3
static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size, AVSubtitle *sub) { DVBSubContext *ctx = avctx->priv_data; DVBSubDisplayDefinition *display_def = ctx->display_definition; DVBSubRegion *region; DVBSubRegionDispl...
{ "code": [ " sub->num_rects = ctx->display_list_size;", " sub->num_rects = i;" ], "line_no": [ 43, 151 ] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2, AVSubtitle *VAR_3) { DVBSubContext *ctx = VAR_0->priv_data; DVBSubDisplayDefinition *display_def = ctx->display_definition; DVBSubRegion *region; DVBSubRegionDisplay *display; A...
[ "static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1,\nint VAR_2, AVSubtitle *VAR_3)\n{", "DVBSubContext *ctx = VAR_0->priv_data;", "DVBSubDisplayDefinition *display_def = ctx->display_definition;", "DVBSubRegion *region;", "DVBSubRegionDisplay *display;", "AVSubtitleRect *rect;", "DVBSubCLUT ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [...
12,174
static void pnv_chip_realize(DeviceState *dev, Error **errp) { PnvChip *chip = PNV_CHIP(dev); Error *error = NULL; PnvChipClass *pcc = PNV_CHIP_GET_CLASS(chip); char *typename = pnv_core_typename(pcc->cpu_model); size_t typesize = object_type_get_instance_size(typename); int i, core_hwid; if...
true
qemu
967b75230b9720ea2b3ae49f38f8287026125f9f
static void pnv_chip_realize(DeviceState *dev, Error **errp) { PnvChip *chip = PNV_CHIP(dev); Error *error = NULL; PnvChipClass *pcc = PNV_CHIP_GET_CLASS(chip); char *typename = pnv_core_typename(pcc->cpu_model); size_t typesize = object_type_get_instance_size(typename); int i, core_hwid; if...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { PnvChip *chip = PNV_CHIP(VAR_0); Error *error = NULL; PnvChipClass *pcc = PNV_CHIP_GET_CLASS(chip); char *VAR_2 = pnv_core_typename(pcc->cpu_model); size_t typesize = object_type_get_instance_size(VAR_2); int VAR_3, VAR_4; if (!object_c...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "PnvChip *chip = PNV_CHIP(VAR_0);", "Error *error = NULL;", "PnvChipClass *pcc = PNV_CHIP_GET_CLASS(chip);", "char *VAR_2 = pnv_core_typename(pcc->cpu_model);", "size_t typesize = object_type_get_instance_size(VAR_2);", "int VAR_3, VAR_4;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22, ...
12,175
static void bt_l2cap_sdp_close_ch(void *opaque) { struct bt_l2cap_sdp_state_s *sdp = opaque; int i; for (i = 0; i < sdp->services; i ++) { g_free(sdp->service_list[i].attribute_list->pair); g_free(sdp->service_list[i].attribute_list); g_free(sdp->service_list[i].uuid); ...
true
qemu
393c13b940be8f2e5b126cd9f442c12e7ecb4cac
static void bt_l2cap_sdp_close_ch(void *opaque) { struct bt_l2cap_sdp_state_s *sdp = opaque; int i; for (i = 0; i < sdp->services; i ++) { g_free(sdp->service_list[i].attribute_list->pair); g_free(sdp->service_list[i].attribute_list); g_free(sdp->service_list[i].uuid); ...
{ "code": [ " g_free(sdp->service_list[i].attribute_list->pair);" ], "line_no": [ 13 ] }
static void FUNC_0(void *VAR_0) { struct bt_l2cap_sdp_state_s *VAR_1 = VAR_0; int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_1->services; VAR_2 ++) { g_free(VAR_1->service_list[VAR_2].attribute_list->pair); g_free(VAR_1->service_list[VAR_2].attribute_list); g_free(VAR_1->service_lis...
[ "static void FUNC_0(void *VAR_0)\n{", "struct bt_l2cap_sdp_state_s *VAR_1 = VAR_0;", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < VAR_1->services; VAR_2 ++) {", "g_free(VAR_1->service_list[VAR_2].attribute_list->pair);", "g_free(VAR_1->service_list[VAR_2].attribute_list);", "g_free(VAR_1->service_list[VAR_2]....
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
12,176
static uint16_t vring_used_idx(VirtQueue *vq) { VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches); hwaddr pa = offsetof(VRingUsed, idx); return virtio_lduw_phys_cached(vq->vdev, &caches->used, pa); }
true
qemu
e0e2d644096c79a71099b176d08f465f6803a8b1
static uint16_t vring_used_idx(VirtQueue *vq) { VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches); hwaddr pa = offsetof(VRingUsed, idx); return virtio_lduw_phys_cached(vq->vdev, &caches->used, pa); }
{ "code": [ " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq-...
static uint16_t FUNC_0(VirtQueue *vq) { VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches); hwaddr pa = offsetof(VRingUsed, idx); return virtio_lduw_phys_cached(vq->vdev, &caches->used, pa); }
[ "static uint16_t FUNC_0(VirtQueue *vq)\n{", "VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", "hwaddr pa = offsetof(VRingUsed, idx);", "return virtio_lduw_phys_cached(vq->vdev, &caches->used, pa);", "}" ]
[ 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
12,177
static av_always_inline void hl_decode_mb_internal(H264Context *h, int simple){ MpegEncContext * const s = &h->s; const int mb_x= s->mb_x; const int mb_y= s->mb_y; const int mb_xy= mb_x + mb_y*s->mb_stride; const int mb_type= s->current_picture.mb_type[mb_xy]; uint8_t *dest_y, *dest_cb, *...
true
FFmpeg
4691a77db4672026d62d524fd292fb17db6514b4
static av_always_inline void hl_decode_mb_internal(H264Context *h, int simple){ MpegEncContext * const s = &h->s; const int mb_x= s->mb_x; const int mb_y= s->mb_y; const int mb_xy= mb_x + mb_y*s->mb_stride; const int mb_type= s->current_picture.mb_type[mb_xy]; uint8_t *dest_y, *dest_cb, *...
{ "code": [ " chroma_dc_dequant_idct_c(h->mb + 16*16, h->chroma_qp, h->dequant4_coeff[IS_INTRA(mb_type) ? 1:4][h->chroma_qp][0]);", " chroma_dc_dequant_idct_c(h->mb + 16*16+4*16, h->chroma_qp, h->dequant4_coeff[IS_INTRA(mb_type) ? 2:5][h->chroma_qp][0]);", " h->chr...
static av_always_inline void FUNC_0(H264Context *h, int simple){ MpegEncContext * const s = &h->s; const int VAR_0= s->VAR_0; const int VAR_25= s->VAR_25; const int VAR_25= VAR_0 + VAR_25*s->mb_stride; const int VAR_3= s->current_picture.VAR_3[VAR_25]; uint8_t *dest_y, *dest_cb, *dest_cr;...
[ "static av_always_inline void FUNC_0(H264Context *h, int simple){", "MpegEncContext * const s = &h->s;", "const int VAR_0= s->VAR_0;", "const int VAR_25= s->VAR_25;", "const int VAR_25= VAR_0 + VAR_25*s->mb_stride;", "const int VAR_3= s->current_picture.VAR_3[VAR_25];", "uint8_t *dest_y, *dest_cb, *des...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [...
12,178
static void spapr_rtc_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); dc->realize = spapr_rtc_realize; dc->vmsd = &vmstate_spapr_rtc; spapr_rtas_register(RTAS_GET_TIME_OF_DAY, "get-time-of-day", rtas_get_time_of_day); spapr_rtas_regi...
true
qemu
8ccccff9dd7ba24c7a78861172e8dc6b07f1c392
static void spapr_rtc_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); dc->realize = spapr_rtc_realize; dc->vmsd = &vmstate_spapr_rtc; spapr_rtas_register(RTAS_GET_TIME_OF_DAY, "get-time-of-day", rtas_get_time_of_day); spapr_rtas_regi...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = spapr_rtc_realize; dc->vmsd = &vmstate_spapr_rtc; spapr_rtas_register(RTAS_GET_TIME_OF_DAY, "get-time-of-day", rtas_get_time_of_day); spapr_rtas_register(RT...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = spapr_rtc_realize;", "dc->vmsd = &vmstate_spapr_rtc;", "spapr_rtas_register(RTAS_GET_TIME_OF_DAY, \"get-time-of-day\",\nrtas_get_time_of_day);", "spapr_rtas_register(RTAS_SET_TIME_OF_DAY, \"s...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 17, 19 ], [ 21, 23 ], [ 25 ] ]
12,179
static int read_len_table(uint8_t *dst, GetBitContext *gb){ int i, val, repeat; for(i=0; i<256;){ repeat= get_bits(gb, 3); val = get_bits(gb, 5); if(repeat==0) repeat= get_bits(gb, 8); //printf("%d %d\n", val, repeat); if(i+repeat > 256) { av_...
true
FFmpeg
84c202cc37024bd78261e4222e46631ea73c48dd
static int read_len_table(uint8_t *dst, GetBitContext *gb){ int i, val, repeat; for(i=0; i<256;){ repeat= get_bits(gb, 3); val = get_bits(gb, 5); if(repeat==0) repeat= get_bits(gb, 8); if(i+repeat > 256) { av_log(NULL, AV_LOG_ERROR, "Error re...
{ "code": [ " if(i+repeat > 256) {" ], "line_no": [ 19 ] }
static int FUNC_0(uint8_t *VAR_0, GetBitContext *VAR_1){ int VAR_2, VAR_3, VAR_4; for(VAR_2=0; VAR_2<256;){ VAR_4= get_bits(VAR_1, 3); VAR_3 = get_bits(VAR_1, 5); if(VAR_4==0) VAR_4= get_bits(VAR_1, 8); if(VAR_2+VAR_4 > 256) { av_log(NULL, AV...
[ "static int FUNC_0(uint8_t *VAR_0, GetBitContext *VAR_1){", "int VAR_2, VAR_3, VAR_4;", "for(VAR_2=0; VAR_2<256;){", "VAR_4= get_bits(VAR_1, 3);", "VAR_3 = get_bits(VAR_1, 5);", "if(VAR_4==0)\nVAR_4= get_bits(VAR_1, 8);", "if(VAR_2+VAR_4 > 256) {", "av_log(NULL, AV_LOG_ERROR, \"Error reading huffman...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ] ]
12,180
static int coroutine_fn bdrv_co_do_write_zeroes(BlockDriverState *bs, int64_t sector_num, int nb_sectors, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; QEMUIOVector qiov; struct iovec iov = {0}; int ret = 0; int max_write_zeroes = bs->bl.max_write_zeroes ? ...
true
qemu
857d4f46c31d2f4d57d2f0fad9dfb584262bf9b9
static int coroutine_fn bdrv_co_do_write_zeroes(BlockDriverState *bs, int64_t sector_num, int nb_sectors, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; QEMUIOVector qiov; struct iovec iov = {0}; int ret = 0; int max_write_zeroes = bs->bl.max_write_zeroes ? ...
{ "code": [ " iov.iov_base = qemu_blockalign(bs, num * BDRV_SECTOR_SIZE);" ], "line_no": [ 93 ] }
static int VAR_0 bdrv_co_do_write_zeroes(BlockDriverState *bs, int64_t sector_num, int nb_sectors, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; QEMUIOVector qiov; struct iovec iov = {0}; int ret = 0; int max_write_zeroes = bs->bl.max_write_zeroes ? b...
[ "static int VAR_0 bdrv_co_do_write_zeroes(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, BdrvRequestFlags flags)\n{", "BlockDriver *drv = bs->drv;", "QEMUIOVector qiov;", "struct iovec iov = {0};", "int ret = 0;", "int max_write_zeroes = bs->bl.max_write_zeroes ?\nbs->bl.max_write_zeroes : MAX...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 55 ], [ 57 ], [ 59 ], [ 65 ], [ 67 ], [...
12,181
void ff_ivi_inverse_haar_4x4(const int32_t *in, int16_t *out, ptrdiff_t pitch, const uint8_t *flags) { int i, shift, sp1, sp2; const int32_t *src; int32_t *dst; int tmp[16]; int t0, t1, t2, t3, t4; /* apply the InvHaar4 to all columns */ #defin...
true
FFmpeg
357f2316a08478a4442e8051978c7b161e10281c
void ff_ivi_inverse_haar_4x4(const int32_t *in, int16_t *out, ptrdiff_t pitch, const uint8_t *flags) { int i, shift, sp1, sp2; const int32_t *src; int32_t *dst; int tmp[16]; int t0, t1, t2, t3, t4; #define COMPENSATE(x) (x) src = in; ...
{ "code": [ " sp1 = src[0] << shift;", " sp2 = src[4] << shift;" ], "line_no": [ 35, 37 ] }
void FUNC_0(const int32_t *VAR_0, int16_t *VAR_1, ptrdiff_t VAR_2, const uint8_t *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7; const int32_t *VAR_8; int32_t *dst; int VAR_9[16]; int VAR_10, VAR_11, VAR_12, VAR_13, VAR_14; #define COMPENSATE(x) (x)...
[ "void FUNC_0(const int32_t *VAR_0, int16_t *VAR_1, ptrdiff_t VAR_2,\nconst uint8_t *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7;", "const int32_t *VAR_8;", "int32_t *dst;", "int VAR_9[16];", "int VAR_10, VAR_11, VAR_12, VAR_13, VAR_14;", "#define COMPENSATE(x) (x)\nVAR_8 = VAR_0;", "dst = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
12,183
static int submit_packet(PerThreadContext *p, AVPacket *avpkt) { FrameThreadContext *fctx = p->parent; PerThreadContext *prev_thread = fctx->prev_thread; const AVCodec *codec = p->avctx->codec; if (!avpkt->size && !(codec->capabilities & AV_CODEC_CAP_DELAY)) return 0; pthread_mute...
true
FFmpeg
1e5cfad57e88d168f50794e1523abfa477ad9aed
static int submit_packet(PerThreadContext *p, AVPacket *avpkt) { FrameThreadContext *fctx = p->parent; PerThreadContext *prev_thread = fctx->prev_thread; const AVCodec *codec = p->avctx->codec; if (!avpkt->size && !(codec->capabilities & AV_CODEC_CAP_DELAY)) return 0; pthread_mute...
{ "code": [ " av_packet_ref(&p->avpkt, avpkt);" ], "line_no": [ 61 ] }
static int FUNC_0(PerThreadContext *VAR_0, AVPacket *VAR_1) { FrameThreadContext *fctx = VAR_0->parent; PerThreadContext *prev_thread = fctx->prev_thread; const AVCodec *VAR_2 = VAR_0->avctx->VAR_2; if (!VAR_1->size && !(VAR_2->capabilities & AV_CODEC_CAP_DELAY)) return 0; pthread...
[ "static int FUNC_0(PerThreadContext *VAR_0, AVPacket *VAR_1)\n{", "FrameThreadContext *fctx = VAR_0->parent;", "PerThreadContext *prev_thread = fctx->prev_thread;", "const AVCodec *VAR_2 = VAR_0->avctx->VAR_2;", "if (!VAR_1->size && !(VAR_2->capabilities & AV_CODEC_CAP_DELAY))\nreturn 0;", "pthread_mutex_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
12,184
static int ty_read_packet(AVFormatContext *s, AVPacket *pkt) { TYDemuxContext *ty = s->priv_data; AVIOContext *pb = s->pb; TyRecHdr *rec; int64_t rec_size = 0; int ret = 0; if (avio_feof(pb)) return AVERROR_EOF; while (ret <= 0) { if (ty->first_chunk || ty->cur_...
false
FFmpeg
6665938ca8b7ad8b7ec77c23e611bb8224e88a90
static int ty_read_packet(AVFormatContext *s, AVPacket *pkt) { TYDemuxContext *ty = s->priv_data; AVIOContext *pb = s->pb; TyRecHdr *rec; int64_t rec_size = 0; int ret = 0; if (avio_feof(pb)) return AVERROR_EOF; while (ret <= 0) { if (ty->first_chunk || ty->cur_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { TYDemuxContext *ty = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; TyRecHdr *rec; int64_t rec_size = 0; int VAR_2 = 0; if (avio_feof(pb)) return AVERROR_EOF; while (VAR_2 <= 0) { if (ty->first_chunk |...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "TYDemuxContext *ty = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "TyRecHdr *rec;", "int64_t rec_size = 0;", "int VAR_2 = 0;", "if (avio_feof(pb))\nreturn AVERROR_EOF;", "while (VAR_2 <= 0) {", "if (ty->first_chunk || ty->cur_r...
[ 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 49, 51 ], [ 55, 57 ], [...
12,185
static int lag_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; LagarithContext *l = avctx->priv_data; AVFrame *const p = &l->picture; uint8_t frametype = 0; uint32...
false
FFmpeg
96d0494123a05fb78a0fd3f03b0b5aaefc170b1c
static int lag_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; LagarithContext *l = avctx->priv_data; AVFrame *const p = &l->picture; uint8_t frametype = 0; uint32...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; LagarithContext *l = VAR_0->priv_data; AVFrame *const p = &l->picture; uint8_t frametype = 0; uint32_t offset_gu ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "LagarithContext *l = VAR_0->priv_data;", "AVFrame *const p = &l->picture;", "uint8_t frametype = 0;", "uint32_t offset_gu = 0, offset_bv = 0, off...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ], [ 55,...
12,186
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; int align; if(h->mbx) return 0; align = (-get_bits_count(gb)) & 7; /* check for stuffing byte */ if(!align && (show_bits(gb,8) == 0x80)) get_bits(gb,8); if((show_bits_long(gb,24+align)...
false
FFmpeg
470de55aa17cb933a21f7e4c4015202eaba7277f
static inline int check_for_slice(AVSContext *h) { GetBitContext *gb = &h->s.gb; int align; if(h->mbx) return 0; align = (-get_bits_count(gb)) & 7; if(!align && (show_bits(gb,8) == 0x80)) get_bits(gb,8); if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { ...
{ "code": [], "line_no": [] }
static inline int FUNC_0(AVSContext *VAR_0) { GetBitContext *gb = &VAR_0->s.gb; int VAR_1; if(VAR_0->mbx) return 0; VAR_1 = (-get_bits_count(gb)) & 7; if(!VAR_1 && (show_bits(gb,8) == 0x80)) get_bits(gb,8); if((show_bits_long(gb,24+VAR_1) & 0xFFFFFF) == 0x000001) ...
[ "static inline int FUNC_0(AVSContext *VAR_0) {", "GetBitContext *gb = &VAR_0->s.gb;", "int VAR_1;", "if(VAR_0->mbx)\nreturn 0;", "VAR_1 = (-get_bits_count(gb)) & 7;", "if(!VAR_1 && (show_bits(gb,8) == 0x80))\nget_bits(gb,8);", "if((show_bits_long(gb,24+VAR_1) & 0xFFFFFF) == 0x000001) {", "skip_bits_lo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
12,187
static int decode_display_orientation(H264Context *h) { h->sei_display_orientation_present = !get_bits1(&h->gb); if (h->sei_display_orientation_present) { h->sei_hflip = get_bits1(&h->gb); // hor_flip h->sei_vflip = get_bits1(&h->gb); // ver_flip h->sei_anticlockwise_ro...
false
FFmpeg
c51c08e0e70c186971385bdbb225f69edd4e3375
static int decode_display_orientation(H264Context *h) { h->sei_display_orientation_present = !get_bits1(&h->gb); if (h->sei_display_orientation_present) { h->sei_hflip = get_bits1(&h->gb); h->sei_vflip = get_bits1(&h->gb); h->sei_anticlockwise_rotation = get_bits(&h->...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0) { VAR_0->sei_display_orientation_present = !get_bits1(&VAR_0->gb); if (VAR_0->sei_display_orientation_present) { VAR_0->sei_hflip = get_bits1(&VAR_0->gb); VAR_0->sei_vflip = get_bits1(&VAR_0->gb); VAR_0->sei_anticlockwise_rotation...
[ "static int FUNC_0(H264Context *VAR_0)\n{", "VAR_0->sei_display_orientation_present = !get_bits1(&VAR_0->gb);", "if (VAR_0->sei_display_orientation_present) {", "VAR_0->sei_hflip = get_bits1(&VAR_0->gb);", "VAR_0->sei_vflip = get_bits1(&VAR_0->gb);", "VAR_0->sei_anticlockwise_rotation = get_bits(&VAR_0->g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
12,188
static int init_image(TiffContext *s) { int i, ret; uint32_t *pal; switch (s->bpp * 10 + s->bppcount) { case 11: if (!s->palette_is_set) { s->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK; break; } case 21: case 41: case 81: s->avctx->pi...
true
FFmpeg
b12d92efd6c0d48665383a9baecc13e7ebbd8a22
static int init_image(TiffContext *s) { int i, ret; uint32_t *pal; switch (s->bpp * 10 + s->bppcount) { case 11: if (!s->palette_is_set) { s->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK; break; } case 21: case 41: case 81: s->avctx->pi...
{ "code": [ " pal[i] = 0xFF << 24 | i * 255 / ((1<<s->bpp) - 1) * 0x010101;" ], "line_no": [ 117 ] }
static int FUNC_0(TiffContext *VAR_0) { int VAR_1, VAR_2; uint32_t *pal; switch (VAR_0->bpp * 10 + VAR_0->bppcount) { case 11: if (!VAR_0->palette_is_set) { VAR_0->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK; break; } case 21: case 41: case 81:...
[ "static int FUNC_0(TiffContext *VAR_0)\n{", "int VAR_1, VAR_2;", "uint32_t *pal;", "switch (VAR_0->bpp * 10 + VAR_0->bppcount) {", "case 11:\nif (!VAR_0->palette_is_set) {", "VAR_0->avctx->pix_fmt = AV_PIX_FMT_MONOBLACK;", "break;", "}", "case 21:\ncase 41:\ncase 81:\nVAR_0->avctx->pix_fmt = AV_PIX_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], ...
12,189
static int handle_sigp(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1) { CPUS390XState *env = &cpu->env; const uint8_t r1 = ipa1 >> 4; const uint8_t r3 = ipa1 & 0x0f; int ret; uint8_t order; uint64_t *status_reg; uint64_t param; S390CPU *dst_cpu = NULL; cpu_synchronize_s...
true
qemu
f9530c32420fff941b7bc8bb5d90310eecab5a96
static int handle_sigp(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1) { CPUS390XState *env = &cpu->env; const uint8_t r1 = ipa1 >> 4; const uint8_t r3 = ipa1 & 0x0f; int ret; uint8_t order; uint64_t *status_reg; uint64_t param; S390CPU *dst_cpu = NULL; cpu_synchronize_s...
{ "code": [], "line_no": [] }
static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1, uint8_t VAR_2) { CPUS390XState *env = &VAR_0->env; const uint8_t VAR_3 = VAR_2 >> 4; const uint8_t VAR_4 = VAR_2 & 0x0f; int VAR_5; uint8_t order; uint64_t *status_reg; uint64_t param; S390CPU *dst_cpu = NULL; cpu_s...
[ "static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1, uint8_t VAR_2)\n{", "CPUS390XState *env = &VAR_0->env;", "const uint8_t VAR_3 = VAR_2 >> 4;", "const uint8_t VAR_4 = VAR_2 & 0x0f;", "int VAR_5;", "uint8_t order;", "uint64_t *status_reg;", "uint64_t param;", "S390CPU *dst_cpu = NULL;", "cp...
[ 0, 0, 0, 0, 0, 0, 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 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51, 53 ...
12,191
static int h261_decode_gob_header(H261Context *h) { unsigned int val; MpegEncContext *const s = &h->s; if (!h->gob_start_code_skipped) { /* Check for GOB Start Code */ val = show_bits(&s->gb, 15); if (val) return -1; /* We have a GBSC */ skip...
false
FFmpeg
719dbe86ea0e85b3b89f492c69e10bb0e733bcbb
static int h261_decode_gob_header(H261Context *h) { unsigned int val; MpegEncContext *const s = &h->s; if (!h->gob_start_code_skipped) { val = show_bits(&s->gb, 15); if (val) return -1; skip_bits(&s->gb, 16); } h->gob_start_code...
{ "code": [], "line_no": [] }
static int FUNC_0(H261Context *VAR_0) { unsigned int VAR_1; MpegEncContext *const s = &VAR_0->s; if (!VAR_0->gob_start_code_skipped) { VAR_1 = show_bits(&s->gb, 15); if (VAR_1) return -1; skip_bits(&s->gb, 16); } VAR_0->gob_star...
[ "static int FUNC_0(H261Context *VAR_0)\n{", "unsigned int VAR_1;", "MpegEncContext *const s = &VAR_0->s;", "if (!VAR_0->gob_start_code_skipped) {", "VAR_1 = show_bits(&s->gb, 15);", "if (VAR_1)\nreturn -1;", "skip_bits(&s->gb, 16);", "}", "VAR_0->gob_start_code_skipped = 0;", "VAR_0->gob_number = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51, 53, 55 ], [ 57 ], [ 63, 65 ], ...
12,193
static int has_decode_delay_been_guessed(AVStream *st) { return st->codec->codec_id != CODEC_ID_H264 || st->codec_info_nb_frames >= 6 + st->codec->has_b_frames; }
false
FFmpeg
38a4be3fa7a7bb83f0a553577427e916a7bda390
static int has_decode_delay_been_guessed(AVStream *st) { return st->codec->codec_id != CODEC_ID_H264 || st->codec_info_nb_frames >= 6 + st->codec->has_b_frames; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVStream *VAR_0) { return VAR_0->codec->codec_id != CODEC_ID_H264 || VAR_0->codec_info_nb_frames >= 6 + VAR_0->codec->has_b_frames; }
[ "static int FUNC_0(AVStream *VAR_0)\n{", "return VAR_0->codec->codec_id != CODEC_ID_H264 ||\nVAR_0->codec_info_nb_frames >= 6 + VAR_0->codec->has_b_frames;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
12,195
static int64_t scene_sad8(FrameRateContext *s, uint8_t *p1, int p1_linesize, uint8_t* p2, int p2_linesize, int height) { int64_t sad; int x, y; for (sad = y = 0; y < height; y += 8) { for (x = 0; x < p1_linesize; x += 8) { sad += s->sad(p1 + y * p1_linesize + x, ...
true
FFmpeg
e403e4bdbea08af0c4a068eb560b577d1b64cf7a
static int64_t scene_sad8(FrameRateContext *s, uint8_t *p1, int p1_linesize, uint8_t* p2, int p2_linesize, int height) { int64_t sad; int x, y; for (sad = y = 0; y < height; y += 8) { for (x = 0; x < p1_linesize; x += 8) { sad += s->sad(p1 + y * p1_linesize + x, ...
{ "code": [ " for (sad = y = 0; y < height; y += 8) {", " for (x = 0; x < p1_linesize; x += 8) {", "static int64_t scene_sad8(FrameRateContext *s, uint8_t *p1, int p1_linesize, uint8_t* p2, int p2_linesize, int height)", " for (sad = y = 0; y < height; y += 8) {", " for (x = 0;...
static int64_t FUNC_0(FrameRateContext *s, uint8_t *p1, int p1_linesize, uint8_t* p2, int p2_linesize, int height) { int64_t sad; int VAR_0, VAR_1; for (sad = VAR_1 = 0; VAR_1 < height; VAR_1 += 8) { for (VAR_0 = 0; VAR_0 < p1_linesize; VAR_0 += 8) { sad += s->sad(p1 + VAR_1 * p1_l...
[ "static int64_t FUNC_0(FrameRateContext *s, uint8_t *p1, int p1_linesize, uint8_t* p2, int p2_linesize, int height)\n{", "int64_t sad;", "int VAR_0, VAR_1;", "for (sad = VAR_1 = 0; VAR_1 < height; VAR_1 += 8) {", "for (VAR_0 = 0; VAR_0 < p1_linesize; VAR_0 += 8) {", "sad += s->sad(p1 + VAR_1 * p1_linesize...
[ 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
12,196
e1000_link_up(E1000State *s) { s->mac_reg[STATUS] |= E1000_STATUS_LU; s->phy_reg[PHY_STATUS] |= MII_SR_LINK_STATUS; }
true
qemu
5df6a1855b62dc653515d919e48c5b6f00c48f32
e1000_link_up(E1000State *s) { s->mac_reg[STATUS] |= E1000_STATUS_LU; s->phy_reg[PHY_STATUS] |= MII_SR_LINK_STATUS; }
{ "code": [], "line_no": [] }
FUNC_0(E1000State *VAR_0) { VAR_0->mac_reg[STATUS] |= E1000_STATUS_LU; VAR_0->phy_reg[PHY_STATUS] |= MII_SR_LINK_STATUS; }
[ "FUNC_0(E1000State *VAR_0)\n{", "VAR_0->mac_reg[STATUS] |= E1000_STATUS_LU;", "VAR_0->phy_reg[PHY_STATUS] |= MII_SR_LINK_STATUS;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ] ]
12,197
static void omap_gp_timer_clk_setup(struct omap_gp_timer_s *timer) { omap_clk_adduser(timer->clk, qemu_allocate_irqs(omap_gp_timer_clk_update, timer, 1)[0]); timer->rate = omap_clk_getrate(timer->clk); }
true
qemu
f3c7d0389fe8a2792fd4c1cf151b885de03c8f62
static void omap_gp_timer_clk_setup(struct omap_gp_timer_s *timer) { omap_clk_adduser(timer->clk, qemu_allocate_irqs(omap_gp_timer_clk_update, timer, 1)[0]); timer->rate = omap_clk_getrate(timer->clk); }
{ "code": [ " qemu_allocate_irqs(omap_gp_timer_clk_update, timer, 1)[0]);" ], "line_no": [ 7 ] }
static void FUNC_0(struct omap_gp_timer_s *VAR_0) { omap_clk_adduser(VAR_0->clk, qemu_allocate_irqs(omap_gp_timer_clk_update, VAR_0, 1)[0]); VAR_0->rate = omap_clk_getrate(VAR_0->clk); }
[ "static void FUNC_0(struct omap_gp_timer_s *VAR_0)\n{", "omap_clk_adduser(VAR_0->clk,\nqemu_allocate_irqs(omap_gp_timer_clk_update, VAR_0, 1)[0]);", "VAR_0->rate = omap_clk_getrate(VAR_0->clk);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ] ]
12,198
static inline void FUNC(idctRowCondDC)(DCTELEM *row) { int a0, a1, a2, a3, b0, b1, b2, b3; #if HAVE_FAST_64BIT #define ROW0_MASK (0xffffLL << 48 * HAVE_BIGENDIAN) if (((((uint64_t *)row)[0] & ~ROW0_MASK) | ((uint64_t *)row)[1]) == 0) { uint64_t temp = (row[0] << DC_SHIFT) & 0xffff; temp...
true
FFmpeg
f78cd0c243b9149c7f604ecf1006d78e344aa6ca
static inline void FUNC(idctRowCondDC)(DCTELEM *row) { int a0, a1, a2, a3, b0, b1, b2, b3; #if HAVE_FAST_64BIT #define ROW0_MASK (0xffffLL << 48 * HAVE_BIGENDIAN) if (((((uint64_t *)row)[0] & ~ROW0_MASK) | ((uint64_t *)row)[1]) == 0) { uint64_t temp = (row[0] << DC_SHIFT) & 0xffff; temp...
{ "code": [ "static inline void FUNC(idctRowCondDC)(DCTELEM *row)", " uint64_t temp = (row[0] << DC_SHIFT) & 0xffff;", " uint32_t temp = (row[0] << DC_SHIFT) & 0xffff;", " row[0] = (a0 + b0) >> ROW_SHIFT;", " row[7] = (a0 - b0) >> ROW_SHIFT;", " row[1] = (a1 + b1) >> ROW...
static inline void FUNC_0(idctRowCondDC)(DCTELEM *row) { int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; #if HAVE_FAST_64BIT #define ROW0_MASK (0xffffLL << 48 * HAVE_BIGENDIAN) if (((((uint64_t *)row)[0] & ~ROW0_MASK) | ((uint64_t *)row)[1]) == 0) { uint64_t temp = (row[0] << DC_SHIF...
[ "static inline void FUNC_0(idctRowCondDC)(DCTELEM *row)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "#if HAVE_FAST_64BIT\n#define ROW0_MASK (0xffffLL << 48 * HAVE_BIGENDIAN)\nif (((((uint64_t *)row)[0] & ~ROW0_MASK) | ((uint64_t *)row)[1]) == 0) {", "uint64_t temp = (row[0] << DC_SHIFT...
[ 1, 0, 0, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33, 35, 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], ...
12,199
Object *user_creatable_add_type(const char *type, const char *id, const QDict *qdict, Visitor *v, Error **errp) { Object *obj; ObjectClass *klass; const QDictEntry *e; Error *local_err = NULL; klass = object_class_by_name(type...
true
qemu
ad739706bbadee49f164b4b7f4c7f5454ddf83cd
Object *user_creatable_add_type(const char *type, const char *id, const QDict *qdict, Visitor *v, Error **errp) { Object *obj; ObjectClass *klass; const QDictEntry *e; Error *local_err = NULL; klass = object_class_by_name(type...
{ "code": [ " if (qdict) {", " for (e = qdict_first(qdict); e; e = qdict_next(qdict, e)) {", " object_property_set(obj, v, e->key, &local_err);", " if (local_err) {", " goto out;" ], "line_no": [ 55, 57, 59, 61, 63 ] }
Object *FUNC_0(const char *type, const char *id, const QDict *qdict, Visitor *v, Error **errp) { Object *obj; ObjectClass *klass; const QDictEntry *VAR_0; Error *local_err = NULL; klass = object_class_by_name(type); if (!...
[ "Object *FUNC_0(const char *type, const char *id,\nconst QDict *qdict,\nVisitor *v, Error **errp)\n{", "Object *obj;", "ObjectClass *klass;", "const QDictEntry *VAR_0;", "Error *local_err = NULL;", "klass = object_class_by_name(type);", "if (!klass) {", "error_setg(errp, \"invalid object type: %s\", t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
12,201
static int get_slice_offset(AVCodecContext *avctx, const uint8_t *buf, int n) { if(avctx->slice_count) return avctx->slice_offset[n]; else return AV_RL32(buf + n*8 - 4) == 1 ? AV_RL32(buf + n*8) : AV_RB32(buf + n*8); }
true
FFmpeg
8696f254444c2ec24daa570f26feadbd3df911e4
static int get_slice_offset(AVCodecContext *avctx, const uint8_t *buf, int n) { if(avctx->slice_count) return avctx->slice_offset[n]; else return AV_RL32(buf + n*8 - 4) == 1 ? AV_RL32(buf + n*8) : AV_RB32(buf + n*8); }
{ "code": [ "static int get_slice_offset(AVCodecContext *avctx, const uint8_t *buf, int n)", " if(avctx->slice_count) return avctx->slice_offset[n];", " else return AV_RL32(buf + n*8 - 4) == 1 ? AV_RL32(buf + n*8) : AV_RB32(buf + n*8);" ], "line_no": [ 1, 5, 7 ] ...
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { if(VAR_0->slice_count) return VAR_0->slice_offset[VAR_2]; else return AV_RL32(VAR_1 + VAR_2*8 - 4) == 1 ? AV_RL32(VAR_1 + VAR_2*8) : AV_RB32(VAR_1 + VAR_2*8); }
[ "static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "if(VAR_0->slice_count) return VAR_0->slice_offset[VAR_2];", "else return AV_RL32(VAR_1 + VAR_2*8 - 4) == 1 ? AV_RL32(VAR_1 + VAR_2*8) : AV_RB32(VAR_1 + VAR_2*8);", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
12,202
static int tls_read(URLContext *h, uint8_t *buf, int size) { TLSContext *c = h->priv_data; size_t processed = 0; int ret = SSLRead(c->ssl_context, buf, size, &processed); ret = map_ssl_error(ret, processed); if (ret > 0) return ret; if (ret == 0) return AVERROR_EOF; ...
true
FFmpeg
9c8922acadb5187c274250d6cde653b7bad2559e
static int tls_read(URLContext *h, uint8_t *buf, int size) { TLSContext *c = h->priv_data; size_t processed = 0; int ret = SSLRead(c->ssl_context, buf, size, &processed); ret = map_ssl_error(ret, processed); if (ret > 0) return ret; if (ret == 0) return AVERROR_EOF; ...
{ "code": [ " size_t processed = 0;", " int ret = SSLRead(c->ssl_context, buf, size, &processed);" ], "line_no": [ 7, 9 ] }
static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2) { TLSContext *c = VAR_0->priv_data; size_t processed = 0; int VAR_3 = SSLRead(c->ssl_context, VAR_1, VAR_2, &processed); VAR_3 = map_ssl_error(VAR_3, processed); if (VAR_3 > 0) return VAR_3; if (VAR_3 == 0) ...
[ "static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "TLSContext *c = VAR_0->priv_data;", "size_t processed = 0;", "int VAR_3 = SSLRead(c->ssl_context, VAR_1, VAR_2, &processed);", "VAR_3 = map_ssl_error(VAR_3, processed);", "if (VAR_3 > 0)\nreturn VAR_3;", "if (VAR_3 == 0)\nreturn AVER...
[ 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23 ] ]
12,204
static void test_io_channel_tls(const void *opaque) { struct QIOChannelTLSTestData *data = (struct QIOChannelTLSTestData *)opaque; QCryptoTLSCreds *clientCreds; QCryptoTLSCreds *serverCreds; QIOChannelTLS *clientChanTLS; QIOChannelTLS *serverChanTLS; QIOChannelSocket *clientChanS...
true
qemu
689ed13e73bdb5a5ca3366524475e3065fae854a
static void test_io_channel_tls(const void *opaque) { struct QIOChannelTLSTestData *data = (struct QIOChannelTLSTestData *)opaque; QCryptoTLSCreds *clientCreds; QCryptoTLSCreds *serverCreds; QIOChannelTLS *clientChanTLS; QIOChannelTLS *serverChanTLS; QIOChannelSocket *clientChanS...
{ "code": [ " } while (!clientHandshake.finished &&" ], "line_no": [ 227 ] }
static void FUNC_0(const void *VAR_0) { struct QIOChannelTLSTestData *VAR_1 = (struct QIOChannelTLSTestData *)VAR_0; QCryptoTLSCreds *clientCreds; QCryptoTLSCreds *serverCreds; QIOChannelTLS *clientChanTLS; QIOChannelTLS *serverChanTLS; QIOChannelSocket *clientChanSock; QIOC...
[ "static void FUNC_0(const void *VAR_0)\n{", "struct QIOChannelTLSTestData *VAR_1 =\n(struct QIOChannelTLSTestData *)VAR_0;", "QCryptoTLSCreds *clientCreds;", "QCryptoTLSCreds *serverCreds;", "QIOChannelTLS *clientChanTLS;", "QIOChannelTLS *serverChanTLS;", "QIOChannelSocket *clientChanSock;", "QIOChan...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 45, 47, 49 ], [...
12,206
int ff_wma_run_level_decode(AVCodecContext* avctx, GetBitContext* gb, VLC *vlc, const uint16_t *level_table, const uint16_t *run_table, int version, WMACoef *ptr, int offset, int num_coefs, int block_len,...
true
FFmpeg
4df8bdeef3c8042659147daafad34bd76ad09096
int ff_wma_run_level_decode(AVCodecContext* avctx, GetBitContext* gb, VLC *vlc, const uint16_t *level_table, const uint16_t *run_table, int version, WMACoef *ptr, int offset, int num_coefs, int block_len,...
{ "code": [ " int code, run, level, sign;", " WMACoef* eptr = ptr + num_coefs;", " ptr += offset;", " for(;;) {", " if (code < 0)", " return -1;", " if (code == 1) {", " } else if (code == 0) {", " run = get_bits(gb, frame_...
int FUNC_0(AVCodecContext* VAR_0, GetBitContext* VAR_1, VLC *VAR_2, const uint16_t *VAR_3, const uint16_t *VAR_4, int VAR_5, WMACoef *VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10, ...
[ "int FUNC_0(AVCodecContext* VAR_0, GetBitContext* VAR_1,\nVLC *VAR_2,\nconst uint16_t *VAR_3, const uint16_t *VAR_4,\nint VAR_5, WMACoef *VAR_6, int VAR_7,\nint VAR_8, int VAR_9, int VAR_10,\nint VAR_11)\n{", "int VAR_12, VAR_13, VAR_14, VAR_15;", "WMACoef* eptr = VAR_6 + VAR_8;", "VAR_6 += VAR_7;", "for(;;...
[ 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ...
12,207
static int qemu_rbd_snap_remove(BlockDriverState *bs, const char *snapshot_name) { BDRVRBDState *s = bs->opaque; int r; r = rbd_snap_remove(s->image, snapshot_name); return r; }
true
qemu
a89d89d3e65800fa4a8e00de7af0ea8272bef779
static int qemu_rbd_snap_remove(BlockDriverState *bs, const char *snapshot_name) { BDRVRBDState *s = bs->opaque; int r; r = rbd_snap_remove(s->image, snapshot_name); return r; }
{ "code": [ " const char *snapshot_name)" ], "line_no": [ 3 ] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1) { BDRVRBDState *s = VAR_0->opaque; int VAR_2; VAR_2 = rbd_snap_remove(s->image, VAR_1); return VAR_2; }
[ "static int FUNC_0(BlockDriverState *VAR_0,\nconst char *VAR_1)\n{", "BDRVRBDState *s = VAR_0->opaque;", "int VAR_2;", "VAR_2 = rbd_snap_remove(s->image, VAR_1);", "return VAR_2;", "}" ]
[ 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ] ]
12,208
static void blend_frames_c(BLEND_FUNC_PARAMS) { int line, pixel; for (line = 0; line < height; line++) { for (pixel = 0; pixel < width; pixel++) { // integer version of (src1 * factor1) + (src2 * factor2) + 0.5 // 0.5 is for rounding // 128 is the integer repre...
true
FFmpeg
2cbe6bac0337939f023bd1c37a9c455e6d535f3a
static void blend_frames_c(BLEND_FUNC_PARAMS) { int line, pixel; for (line = 0; line < height; line++) { for (pixel = 0; pixel < width; pixel++) { dst[pixel] = ((src1[pixel] * factor1) + (src2[pixel] * factor2) + 128) >> 8; } s...
{ "code": [ " for (pixel = 0; pixel < width; pixel++) {", " dst[pixel] = ((src1[pixel] * factor1) + (src2[pixel] * factor2) + 128) >> 8;" ], "line_no": [ 9, 17 ] }
static void FUNC_0(VAR_0) { int VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < height; VAR_1++) { for (VAR_2 = 0; VAR_2 < width; VAR_2++) { dst[VAR_2] = ((src1[VAR_2] * factor1) + (src2[VAR_2] * factor2) + 128) >> 8; } src1 += src1_line...
[ "static void FUNC_0(VAR_0)\n{", "int VAR_1, VAR_2;", "for (VAR_1 = 0; VAR_1 < height; VAR_1++) {", "for (VAR_2 = 0; VAR_2 < width; VAR_2++) {", "dst[VAR_2] = ((src1[VAR_2] * factor1) + (src2[VAR_2] * factor2) + 128) >> 8;", "}", "src1 += src1_linesize;", "src2 += src2_linesize;", "dst += dst_linesi...
[ 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
12,209
int tcp_start_incoming_migration(const char *host_port) { struct sockaddr_in addr; int val; int s; if (parse_host_port(&addr, host_port) < 0) { fprintf(stderr, "invalid host/port combination: %s\n", host_port); return -EINVAL; } s = socket(PF_INET, SOCK_STREAM, 0); ...
true
qemu
40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4
int tcp_start_incoming_migration(const char *host_port) { struct sockaddr_in addr; int val; int s; if (parse_host_port(&addr, host_port) < 0) { fprintf(stderr, "invalid host/port combination: %s\n", host_port); return -EINVAL; } s = socket(PF_INET, SOCK_STREAM, 0); ...
{ "code": [ " s = socket(PF_INET, SOCK_STREAM, 0);" ], "line_no": [ 23 ] }
int FUNC_0(const char *VAR_0) { struct sockaddr_in VAR_1; int VAR_2; int VAR_3; if (parse_host_port(&VAR_1, VAR_0) < 0) { fprintf(stderr, "invalid host/port combination: %VAR_3\n", VAR_0); return -EINVAL; } VAR_3 = socket(PF_INET, SOCK_STREAM, 0); if (VAR_3 == -...
[ "int FUNC_0(const char *VAR_0)\n{", "struct sockaddr_in VAR_1;", "int VAR_2;", "int VAR_3;", "if (parse_host_port(&VAR_1, VAR_0) < 0) {", "fprintf(stderr, \"invalid host/port combination: %VAR_3\\n\", VAR_0);", "return -EINVAL;", "}", "VAR_3 = socket(PF_INET, SOCK_STREAM, 0);", "if (VAR_3 == -1)\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 43, 45 ], [ 49, 51 ], [ 55 ], [ 59, 61 ], [...
12,210
opts_type_size(Visitor *v, uint64_t *obj, const char *name, Error **errp) { OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, v); const QemuOpt *opt; int64_t val; char *endptr; opt = lookup_scalar(ov, name, errp); if (!opt) { return; } val = strtosz_suffix(opt->str ...
true
qemu
cb45de6798956975c4b13a6233f7a00d2239b61a
opts_type_size(Visitor *v, uint64_t *obj, const char *name, Error **errp) { OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, v); const QemuOpt *opt; int64_t val; char *endptr; opt = lookup_scalar(ov, name, errp); if (!opt) { return; } val = strtosz_suffix(opt->str ...
{ "code": [ " if (val != -1 && *endptr == '\\0') {", " *obj = val;", " processed(ov, name);", " error_set(errp, QERR_INVALID_PARAMETER_VALUE, opt->name,", " \"a size value representible as a non-negative int64\");" ], "line_no": [ 29, 31, 33, 39...
FUNC_0(Visitor *VAR_0, uint64_t *VAR_1, const char *VAR_2, Error **VAR_3) { OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, VAR_0); const QemuOpt *VAR_4; int64_t val; char *VAR_5; VAR_4 = lookup_scalar(ov, VAR_2, VAR_3); if (!VAR_4) { return; } val = strtosz_suffi...
[ "FUNC_0(Visitor *VAR_0, uint64_t *VAR_1, const char *VAR_2, Error **VAR_3)\n{", "OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, VAR_0);", "const QemuOpt *VAR_4;", "int64_t val;", "char *VAR_5;", "VAR_4 = lookup_scalar(ov, VAR_2, VAR_3);", "if (!VAR_4) {", "return;", "}", "val = strtosz_suffix(V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ] ]
12,213
static void gen_sse(DisasContext *s, int b, target_ulong pc_start, int rex_r) { int b1, op1_offset, op2_offset, is_xmm, val, ot; int modrm, mod, rm, reg, reg_addr, offset_addr; void *sse_op2; b &= 0xff; if (s->prefix & PREFIX_DATA) b1 = 1; else if (s->prefix & PREFIX_REPZ) ...
true
qemu
000cacf6f9dce7d71f88aadf7e9b3688eaa3ab69
static void gen_sse(DisasContext *s, int b, target_ulong pc_start, int rex_r) { int b1, op1_offset, op2_offset, is_xmm, val, ot; int modrm, mod, rm, reg, reg_addr, offset_addr; void *sse_op2; b &= 0xff; if (s->prefix & PREFIX_DATA) b1 = 1; else if (s->prefix & PREFIX_REPZ) ...
{ "code": [ " case 0x038:", " if (s->prefix & PREFIX_REPNZ)", " goto crc32;" ], "line_no": [ 1127, 1143, 1145 ] }
static void FUNC_0(DisasContext *VAR_0, int VAR_1, target_ulong VAR_2, int VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15; void *VAR_16; VAR_1 &= 0xff; if (VAR_0->prefix & PREFIX_DATA) VAR_4 = 1; else if (VAR_0->prefix ...
[ "static void FUNC_0(DisasContext *VAR_0, int VAR_1, target_ulong VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15;", "void *VAR_16;", "VAR_1 &= 0xff;", "if (VAR_0->prefix & PREFIX_DATA)\nVAR_4 = 1;", "else if (VAR_0->prefix & PRE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 47 ], [ 49 ], [...
12,214
static void ff_jref_idct1_add(uint8_t *dest, int line_size, DCTELEM *block) { uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; dest[0] = cm[dest[0] + ((block[0] + 4)>>3)]; }
true
FFmpeg
c23acbaed40101c677dfcfbbfe0d2c230a8e8f44
static void ff_jref_idct1_add(uint8_t *dest, int line_size, DCTELEM *block) { uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; dest[0] = cm[dest[0] + ((block[0] + 4)>>3)]; }
{ "code": [ " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CR...
static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2) { uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; VAR_0[0] = cm[VAR_0[0] + ((VAR_2[0] + 4)>>3)]; }
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)\n{", "uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", "VAR_0[0] = cm[VAR_0[0] + ((VAR_2[0] + 4)>>3)];", "}" ]
[ 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
12,217
static void hScale_altivec_real(SwsContext *c, int16_t *dst, int dstW, const uint8_t *src, const int16_t *filter, const int16_t *filterPos, int filterSize) { register int i; DECLARE_ALIGNED(16, int, tempo)[4]; if (filterSize % 4) { ...
true
FFmpeg
2254b559cbcfc0418135f09add37c0a5866b1981
static void hScale_altivec_real(SwsContext *c, int16_t *dst, int dstW, const uint8_t *src, const int16_t *filter, const int16_t *filterPos, int filterSize) { register int i; DECLARE_ALIGNED(16, int, tempo)[4]; if (filterSize % 4) { ...
{ "code": [ " const int16_t *filterPos, int filterSize)" ], "line_no": [ 5 ] }
static void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int VAR_2, const uint8_t *VAR_3, const int16_t *VAR_4, const int16_t *VAR_5, int VAR_6) { register int VAR_7; DECLARE_ALIGNED(16, int, tempo)[4]; if (VAR_6 % 4) { for (VAR_7...
[ "static void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int VAR_2,\nconst uint8_t *VAR_3, const int16_t *VAR_4,\nconst int16_t *VAR_5, int VAR_6)\n{", "register int VAR_7;", "DECLARE_ALIGNED(16, int, tempo)[4];", "if (VAR_6 % 4) {", "for (VAR_7 = 0; VAR_7 < VAR_2; VAR_7++) {", "register int VAR_11;", "re...
[ 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 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 45 ], [ 47 ], [...
12,218
static int dfa_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { DfaContext *s = avctx->priv_data; const uint8_t *buf = avpkt->data; const uint8_t *buf_end = avpkt->data + avpkt->size; const uint8_t *tmp_buf;...
true
FFmpeg
29b0d94b43ac960cb442049a5d737a3386ff0337
static int dfa_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { DfaContext *s = avctx->priv_data; const uint8_t *buf = avpkt->data; const uint8_t *buf_end = avpkt->data + avpkt->size; const uint8_t *tmp_buf;...
{ "code": [ " return -1;", " return -1;", " return -1;", " return -1;", " return -1;", " const uint8_t *buf_end = avpkt->data + avpkt->size;", " const uint8_t *tmp_buf;", " while (buf < buf_end) {", ...
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { DfaContext *s = VAR_0->priv_data; const uint8_t *VAR_4 = VAR_3->VAR_1; const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size; const uint8_t *VAR_6; uint32_...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "DfaContext *s = VAR_0->priv_data;", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size;", "const uint8_t *VAR_6;", "uint32_t chunk_type, chunk_size;", "uint8_t *dst;", "i...
[ 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...