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
24,110
static void formant_postfilter(G723_1_Context *p, int16_t *lpc, int16_t *buf) { int16_t filter_coef[2][LPC_ORDER], *buf_ptr; int filter_signal[LPC_ORDER + FRAME_LEN], *signal_ptr; int i, j, k; memcpy(buf, p->fir_mem, LPC_ORDER * sizeof(*buf)); memcpy(filter_signal, p->iir_mem, LPC_ORDER * si...
true
FFmpeg
05c36e0e5fbf0b75dbbbd327ad2f6a62992f9262
static void formant_postfilter(G723_1_Context *p, int16_t *lpc, int16_t *buf) { int16_t filter_coef[2][LPC_ORDER], *buf_ptr; int filter_signal[LPC_ORDER + FRAME_LEN], *signal_ptr; int i, j, k; memcpy(buf, p->fir_mem, LPC_ORDER * sizeof(*buf)); memcpy(filter_signal, p->iir_mem, LPC_ORDER * si...
{ "code": [ " buf_ptr[j] = av_clipl_int32(signal_ptr[j] +" ], "line_no": [ 105 ] }
static void FUNC_0(G723_1_Context *VAR_0, int16_t *VAR_1, int16_t *VAR_2) { int16_t filter_coef[2][LPC_ORDER], *buf_ptr; int VAR_3[LPC_ORDER + FRAME_LEN], *signal_ptr; int VAR_4, VAR_5, VAR_6; memcpy(VAR_2, VAR_0->fir_mem, LPC_ORDER * sizeof(*VAR_2)); memcpy(VAR_3, VAR_0->iir_mem, LPC_ORDER ...
[ "static void FUNC_0(G723_1_Context *VAR_0, int16_t *VAR_1, int16_t *VAR_2)\n{", "int16_t filter_coef[2][LPC_ORDER], *buf_ptr;", "int VAR_3[LPC_ORDER + FRAME_LEN], *signal_ptr;", "int VAR_4, VAR_5, VAR_6;", "memcpy(VAR_2, VAR_0->fir_mem, LPC_ORDER * sizeof(*VAR_2));", "memcpy(VAR_3, VAR_0->iir_mem, LPC_ORD...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 51 ], [ 53 ...
24,111
int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, uint8_t **output, int out_plane_size, int out_samples, uint8_t **input, int in_plane_size, int in_samples) { A...
true
FFmpeg
211ca69b13eb0a127a9ef7e70ddaccdab125d1c5
int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, uint8_t **output, int out_plane_size, int out_samples, uint8_t **input, int in_plane_size, int in_samples) { A...
{ "code": [ " av_dlog(avr, \"[resample] %s to %s\\n\", current_buffer->name," ], "line_no": [ 233 ] }
int VAR_0 avresample_convert(AVAudioResampleContext *avr, uint8_t **output, int out_plane_size, int out_samples, uint8_t **input, int in_plane_size, int in_samples) { AudioData input...
[ "int VAR_0 avresample_convert(AVAudioResampleContext *avr,\nuint8_t **output, int out_plane_size,\nint out_samples, uint8_t **input,\nint in_plane_size, int in_samples)\n{", "AudioData input_buffer;", "AudioData output_buffer;", "AudioData *current_buffer;", "int ret, direct_output;", "if (avr->in_buffer)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ...
24,112
static int ogg_read_header(AVFormatContext *avfcontext, AVFormatParameters *ap) { OggContext *context = avfcontext->priv_data; ogg_packet op ; char *buf ; ogg_page og ; AVStream *ast ; AVCodecContext *codec; uint8_t *p; int i; ogg_sync_init(&context->oy) ; b...
true
FFmpeg
568e18b15e2ddf494fd8926707d34ca08c8edce5
static int ogg_read_header(AVFormatContext *avfcontext, AVFormatParameters *ap) { OggContext *context = avfcontext->priv_data; ogg_packet op ; char *buf ; ogg_page og ; AVStream *ast ; AVCodecContext *codec; uint8_t *p; int i; ogg_sync_init(&context->oy) ; b...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { OggContext *context = VAR_0->priv_data; ogg_packet op ; char *VAR_2 ; ogg_page og ; AVStream *ast ; AVCodecContext *codec; uint8_t *p; int VAR_3; ogg_sync_init(&context->oy) ; VAR_2 = ogg...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "OggContext *context = VAR_0->priv_data;", "ogg_packet op ;", "char *VAR_2 ;", "ogg_page og ;", "AVStream *ast ;", "AVCodecContext *codec;", "uint8_t *p;", "int VAR_3;", "ogg_sync_init(&context->oy) ;", "VAR_2 = ogg_sync_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 49 ], [ 51, 53 ], [ 55 ...
24,113
static inline int tcg_temp_new_internal(TCGType type, int temp_local) { TCGContext *s = &tcg_ctx; TCGTemp *ts; int idx, k; k = type; if (temp_local) k += TCG_TYPE_COUNT; idx = s->first_free_temp[k]; if (idx != -1) { /* There is already an available temp with the ri...
true
qemu
27bfd83c336283d1f7a5345ee386c4cd7b80db61
static inline int tcg_temp_new_internal(TCGType type, int temp_local) { TCGContext *s = &tcg_ctx; TCGTemp *ts; int idx, k; k = type; if (temp_local) k += TCG_TYPE_COUNT; idx = s->first_free_temp[k]; if (idx != -1) { ts = &s->temps[idx]; s->first_free_temp[k]...
{ "code": [], "line_no": [] }
static inline int FUNC_0(TCGType VAR_0, int VAR_1) { TCGContext *s = &tcg_ctx; TCGTemp *ts; int VAR_2, VAR_3; VAR_3 = VAR_0; if (VAR_1) VAR_3 += TCG_TYPE_COUNT; VAR_2 = s->first_free_temp[VAR_3]; if (VAR_2 != -1) { ts = &s->temps[VAR_2]; s->first_free_temp[V...
[ "static inline int FUNC_0(TCGType VAR_0, int VAR_1)\n{", "TCGContext *s = &tcg_ctx;", "TCGTemp *ts;", "int VAR_2, VAR_3;", "VAR_3 = VAR_0;", "if (VAR_1)\nVAR_3 += TCG_TYPE_COUNT;", "VAR_2 = s->first_free_temp[VAR_3];", "if (VAR_2 != -1) {", "ts = &s->temps[VAR_2];", "s->first_free_temp[VAR_3] = ts...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19, 20 ], [ 21 ], [ 22 ], [ 23 ], [ 24 ],...
24,115
static int vp56_size_changed(VP56Context *s) { AVCodecContext *avctx = s->avctx; int stride = s->frames[VP56_FRAME_CURRENT]->linesize[0]; int i; s->plane_width[0] = s->plane_width[3] = avctx->coded_width; s->plane_width[1] = s->plane_width[2] = avctx->coded_width/2; s->plane_height[0] = s->p...
true
FFmpeg
6e913f212907048d7009cf2f15551781c69b9985
static int vp56_size_changed(VP56Context *s) { AVCodecContext *avctx = s->avctx; int stride = s->frames[VP56_FRAME_CURRENT]->linesize[0]; int i; s->plane_width[0] = s->plane_width[3] = avctx->coded_width; s->plane_width[1] = s->plane_width[2] = avctx->coded_width/2; s->plane_height[0] = s->p...
{ "code": [], "line_no": [] }
static int FUNC_0(VP56Context *VAR_0) { AVCodecContext *avctx = VAR_0->avctx; int VAR_1 = VAR_0->frames[VP56_FRAME_CURRENT]->linesize[0]; int VAR_2; VAR_0->plane_width[0] = VAR_0->plane_width[3] = avctx->coded_width; VAR_0->plane_width[1] = VAR_0->plane_width[2] = avctx->coded_width/2; VAR_0...
[ "static int FUNC_0(VP56Context *VAR_0)\n{", "AVCodecContext *avctx = VAR_0->avctx;", "int VAR_1 = VAR_0->frames[VP56_FRAME_CURRENT]->linesize[0];", "int VAR_2;", "VAR_0->plane_width[0] = VAR_0->plane_width[3] = avctx->coded_width;", "VAR_0->plane_width[1] = VAR_0->plane_width[2] = avctx->coded_width/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 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19, 20 ], [ 21, 22 ],...
24,116
static void rtsp_cmd_teardown(HTTPContext *c, const char *url, RTSPHeader *h) { HTTPContext *rtp_c; rtp_c = find_rtp_session_with_url(url, h->session_id); if (!rtp_c) { rtsp_reply_error(c, RTSP_STATUS_SESSION); return; } /* abort the session */ close_connection(rtp_c...
true
FFmpeg
b0b2faa70995caf710bf49c7c6eb6dc502a67672
static void rtsp_cmd_teardown(HTTPContext *c, const char *url, RTSPHeader *h) { HTTPContext *rtp_c; rtp_c = find_rtp_session_with_url(url, h->session_id); if (!rtp_c) { rtsp_reply_error(c, RTSP_STATUS_SESSION); return; } close_connection(rtp_c); rtsp_re...
{ "code": [ " url_fprintf(c->pb, \"Session: %s\\r\\n\", rtp_c->session_id);" ], "line_no": [ 33 ] }
static void FUNC_0(HTTPContext *VAR_0, const char *VAR_1, RTSPHeader *VAR_2) { HTTPContext *rtp_c; rtp_c = find_rtp_session_with_url(VAR_1, VAR_2->session_id); if (!rtp_c) { rtsp_reply_error(VAR_0, RTSP_STATUS_SESSION); return; } close_connection(rtp_c); ...
[ "static void FUNC_0(HTTPContext *VAR_0, const char *VAR_1, RTSPHeader *VAR_2)\n{", "HTTPContext *rtp_c;", "rtp_c = find_rtp_session_with_url(VAR_1, VAR_2->session_id);", "if (!rtp_c) {", "rtsp_reply_error(VAR_0, RTSP_STATUS_SESSION);", "return;", "}", "close_connection(rtp_c);", "rtsp_reply_header(V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ] ]
24,118
static CharDriverState *qemu_chr_open_win_path(const char *filename) { CharDriverState *chr; WinCharState *s; chr = qemu_chr_alloc(); s = g_malloc0(sizeof(WinCharState)); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr_close = win_chr_close; if (win_chr_init(chr, f...
true
qemu
2d528d45ecf5ee3c1a566a9f3d664464925ef830
static CharDriverState *qemu_chr_open_win_path(const char *filename) { CharDriverState *chr; WinCharState *s; chr = qemu_chr_alloc(); s = g_malloc0(sizeof(WinCharState)); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr_close = win_chr_close; if (win_chr_init(chr, f...
{ "code": [ " s = g_malloc0(sizeof(WinCharState));", " s = g_malloc0(sizeof(WinCharState));", " s = g_malloc0(sizeof(WinCharState));" ], "line_no": [ 13, 13, 13 ] }
static CharDriverState *FUNC_0(const char *filename) { CharDriverState *chr; WinCharState *s; chr = qemu_chr_alloc(); s = g_malloc0(sizeof(WinCharState)); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr_close = win_chr_close; if (win_chr_init(chr, filename) < 0) { ...
[ "static CharDriverState *FUNC_0(const char *filename)\n{", "CharDriverState *chr;", "WinCharState *s;", "chr = qemu_chr_alloc();", "s = g_malloc0(sizeof(WinCharState));", "chr->opaque = s;", "chr->chr_write = win_chr_write;", "chr->chr_close = win_chr_close;", "if (win_chr_init(chr, filename) < 0) {...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
24,119
static av_cold int twin_decode_init(AVCodecContext *avctx) { int ret; TwinContext *tctx = avctx->priv_data; int isampf, ibps; tctx->avctx = avctx; avctx->sample_fmt = AV_SAMPLE_FMT_FLTP; if (!avctx->extradata || avctx->extradata_size < 12) { av_log(avctx, AV_LOG_ERROR, ...
true
FFmpeg
8cc72ce5a0d8ab6bc88d28cf55cd62674240121d
static av_cold int twin_decode_init(AVCodecContext *avctx) { int ret; TwinContext *tctx = avctx->priv_data; int isampf, ibps; tctx->avctx = avctx; avctx->sample_fmt = AV_SAMPLE_FMT_FLTP; if (!avctx->extradata || avctx->extradata_size < 12) { av_log(avctx, AV_LOG_ERROR, ...
{ "code": [ " if (avctx->channels > CHANNELS_MAX) {" ], "line_no": [ 47 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { int VAR_0; TwinContext *tctx = avctx->priv_data; int VAR_1, VAR_2; tctx->avctx = avctx; avctx->sample_fmt = AV_SAMPLE_FMT_FLTP; if (!avctx->extradata || avctx->extradata_size < 12) { av_log(avctx, AV_LOG_ERROR, "Missing...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "int VAR_0;", "TwinContext *tctx = avctx->priv_data;", "int VAR_1, VAR_2;", "tctx->avctx = avctx;", "avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;", "if (!avctx->extradata || avctx->extradata_size < 12) {", "av_log(avctx, AV_LOG_ERROR, \"Missing o...
[ 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 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ...
24,120
static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int64_t offset = avio_tell(pb) + atom.size, pts, timestamp; uint8_t version; unsigned i, j, track_id, item_count; AVStream *st = NULL; AVStream *ref_st = NULL; MOVStreamContext *sc, *ref_sc = NULL; AVRational ti...
true
FFmpeg
bdddcb7b030d075dffa2989222d687106c06d50c
static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int64_t offset = avio_tell(pb) + atom.size, pts, timestamp; uint8_t version; unsigned i, j, track_id, item_count; AVStream *st = NULL; AVStream *ref_st = NULL; MOVStreamContext *sc, *ref_sc = NULL; AVRational ti...
{ "code": [ " ref_st = c->fc->streams[i];" ], "line_no": [ 171 ] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { int64_t offset = avio_tell(VAR_1) + VAR_2.size, pts, timestamp; uint8_t version; unsigned VAR_3, VAR_4, VAR_5, VAR_6; AVStream *st = NULL; AVStream *ref_st = NULL; MOVStreamContext *sc, *ref_sc = NULL; AVRation...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "int64_t offset = avio_tell(VAR_1) + VAR_2.size, pts, timestamp;", "uint8_t version;", "unsigned VAR_3, VAR_4, VAR_5, VAR_6;", "AVStream *st = NULL;", "AVStream *ref_st = NULL;", "MOVStreamContext *sc, *ref_sc = NULL;", "AVR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
24,121
static void shix_init(MachineState *machine) { const char *cpu_model = machine->cpu_model; int ret; SuperHCPU *cpu; struct SH7750State *s; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *rom = g_new(MemoryRegion, 1); MemoryRegion *sdram = g_new(MemoryRegion, 2); ...
true
qemu
4482e05cbbb7e50e476f6a9500cf0b38913bd939
static void shix_init(MachineState *machine) { const char *cpu_model = machine->cpu_model; int ret; SuperHCPU *cpu; struct SH7750State *s; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *rom = g_new(MemoryRegion, 1); MemoryRegion *sdram = g_new(MemoryRegion, 2); ...
{ "code": [ " fprintf(stderr, \"Unable to find CPU definition\\n\");", " exit(1);", " fprintf(stderr, \"Unable to find CPU definition\\n\");", " exit(1);", " fprintf(stderr, \"Unable to find CPU definition\\n\");", " exit(1);", " fprintf(std...
static void FUNC_0(MachineState *VAR_0) { const char *VAR_1 = VAR_0->VAR_1; int VAR_2; SuperHCPU *cpu; struct SH7750State *VAR_3; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *rom = g_new(MemoryRegion, 1); MemoryRegion *sdram = g_new(MemoryRegion, 2); if (!VAR_...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "const char *VAR_1 = VAR_0->VAR_1;", "int VAR_2;", "SuperHCPU *cpu;", "struct SH7750State *VAR_3;", "MemoryRegion *sysmem = get_system_memory();", "MemoryRegion *rom = g_new(MemoryRegion, 1);", "MemoryRegion *sdram = g_new(MemoryRegion, 2);", "if (!VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ...
24,122
static inline void gen_addr_imm_index (DisasContext *ctx) { target_long simm = SIMM(ctx->opcode); if (rA(ctx->opcode) == 0) { gen_op_set_T0(simm); } else { gen_op_load_gpr_T0(rA(ctx->opcode)); if (likely(simm != 0)) gen_op_addi(simm); } }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
static inline void gen_addr_imm_index (DisasContext *ctx) { target_long simm = SIMM(ctx->opcode); if (rA(ctx->opcode) == 0) { gen_op_set_T0(simm); } else { gen_op_load_gpr_T0(rA(ctx->opcode)); if (likely(simm != 0)) gen_op_addi(simm); } }
{ "code": [ " } else {", " } else {", " } else {", " } else {", " } else {", " } else {", " } else {", " } else {", " } else {", " } else {", " gen_op_set_T0(simm);", " gen_op_set_T0(simm);" ], "line_no": [ 13, 13,...
static inline void FUNC_0 (DisasContext *VAR_0) { target_long simm = SIMM(VAR_0->opcode); if (rA(VAR_0->opcode) == 0) { gen_op_set_T0(simm); } else { gen_op_load_gpr_T0(rA(VAR_0->opcode)); if (likely(simm != 0)) gen_op_addi(simm); } }
[ "static inline void FUNC_0 (DisasContext *VAR_0)\n{", "target_long simm = SIMM(VAR_0->opcode);", "if (rA(VAR_0->opcode) == 0) {", "gen_op_set_T0(simm);", "} else {", "gen_op_load_gpr_T0(rA(VAR_0->opcode));", "if (likely(simm != 0))\ngen_op_addi(simm);", "}", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ] ]
24,124
void qmp_guest_suspend_ram(Error **errp) { Error *local_err = NULL; GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode)); *mode = GUEST_SUSPEND_MODE_RAM; check_suspend_mode(*mode, &local_err); acquire_privilege(SE_SHUTDOWN_NAME, &local_err); execute_async(do_suspend, mode, &local...
true
qemu
f3a06403b82c7f036564e4caf18b52ce6885fcfb
void qmp_guest_suspend_ram(Error **errp) { Error *local_err = NULL; GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode)); *mode = GUEST_SUSPEND_MODE_RAM; check_suspend_mode(*mode, &local_err); acquire_privilege(SE_SHUTDOWN_NAME, &local_err); execute_async(do_suspend, mode, &local...
{ "code": [ " GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));", " GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));" ], "line_no": [ 7, 7 ] }
void FUNC_0(Error **VAR_0) { Error *local_err = NULL; GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode)); *mode = GUEST_SUSPEND_MODE_RAM; check_suspend_mode(*mode, &local_err); acquire_privilege(SE_SHUTDOWN_NAME, &local_err); execute_async(do_suspend, mode, &local_err); ...
[ "void FUNC_0(Error **VAR_0)\n{", "Error *local_err = NULL;", "GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));", "*mode = GUEST_SUSPEND_MODE_RAM;", "check_suspend_mode(*mode, &local_err);", "acquire_privilege(SE_SHUTDOWN_NAME, &local_err);", "execute_async(do_suspend, mode, &local_err);", ...
[ 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 ] ]
24,125
void ff_hevc_cabac_init(HEVCContext *s, int ctb_addr_ts) { if (ctb_addr_ts == s->ps.pps->ctb_addr_rs_to_ts[s->sh.slice_ctb_addr_rs]) { cabac_init_decoder(s); if (s->sh.dependent_slice_segment_flag == 0 || (s->ps.pps->tiles_enabled_flag && s->ps.pps->tile_id[ctb_addr_ts...
true
FFmpeg
933aa91e31d5cbf9dbc0cf416a988e6011bc4a40
void ff_hevc_cabac_init(HEVCContext *s, int ctb_addr_ts) { if (ctb_addr_ts == s->ps.pps->ctb_addr_rs_to_ts[s->sh.slice_ctb_addr_rs]) { cabac_init_decoder(s); if (s->sh.dependent_slice_segment_flag == 0 || (s->ps.pps->tiles_enabled_flag && s->ps.pps->tile_id[ctb_addr_ts...
{ "code": [ "void ff_hevc_cabac_init(HEVCContext *s, int ctb_addr_ts)", " cabac_init_decoder(s);", " cabac_init_decoder(s);", " cabac_init_decoder(s);" ], "line_no": [ 1, 7, 49, 67 ] }
void FUNC_0(HEVCContext *VAR_0, int VAR_1) { if (VAR_1 == VAR_0->ps.pps->ctb_addr_rs_to_ts[VAR_0->sh.slice_ctb_addr_rs]) { cabac_init_decoder(VAR_0); if (VAR_0->sh.dependent_slice_segment_flag == 0 || (VAR_0->ps.pps->tiles_enabled_flag && VAR_0->ps.pps->tile_id[VAR_1] ...
[ "void FUNC_0(HEVCContext *VAR_0, int VAR_1)\n{", "if (VAR_1 == VAR_0->ps.pps->ctb_addr_rs_to_ts[VAR_0->sh.slice_ctb_addr_rs]) {", "cabac_init_decoder(VAR_0);", "if (VAR_0->sh.dependent_slice_segment_flag == 0 ||\n(VAR_0->ps.pps->tiles_enabled_flag &&\nVAR_0->ps.pps->tile_id[VAR_1] != VAR_0->ps.pps->tile_id[VA...
[ 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11, 13, 15 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47, 49 ], [ 51 ], [...
24,126
void lance_init(NICInfo *nd, target_phys_addr_t leaddr, void *dma_opaque, qemu_irq irq, qemu_irq *reset) { PCNetState *d; int lance_io_memory; qemu_check_nic_model(nd, "lance"); d = qemu_mallocz(sizeof(PCNetState)); lance_io_memory = cpu_register_io_memory(0, la...
true
qemu
b946a1533209f61a93e34898aebb5b43154b99c3
void lance_init(NICInfo *nd, target_phys_addr_t leaddr, void *dma_opaque, qemu_irq irq, qemu_irq *reset) { PCNetState *d; int lance_io_memory; qemu_check_nic_model(nd, "lance"); d = qemu_mallocz(sizeof(PCNetState)); lance_io_memory = cpu_register_io_memory(0, la...
{ "code": [ " pcnet_common_init(d, nd);", " int lance_io_memory;", " lance_io_memory =", " *reset = *qemu_allocate_irqs(parent_lance_reset, d, 1);", " cpu_register_physical_memory(leaddr, 4, lance_io_memory);", " pcnet_common_init(d, nd);" ], "line_no": [ 47, 9, ...
void FUNC_0(NICInfo *VAR_0, target_phys_addr_t VAR_1, void *VAR_2, qemu_irq VAR_3, qemu_irq *VAR_4) { PCNetState *d; int VAR_5; qemu_check_nic_model(VAR_0, "lance"); d = qemu_mallocz(sizeof(PCNetState)); VAR_5 = cpu_register_io_memory(0, lance_mem_read, lance_me...
[ "void FUNC_0(NICInfo *VAR_0, target_phys_addr_t VAR_1, void *VAR_2,\nqemu_irq VAR_3, qemu_irq *VAR_4)\n{", "PCNetState *d;", "int VAR_5;", "qemu_check_nic_model(VAR_0, \"lance\");", "d = qemu_mallocz(sizeof(PCNetState));", "VAR_5 =\ncpu_register_io_memory(0, lance_mem_read, lance_mem_write, d);", "d->VA...
[ 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
24,127
static inline TCGv gen_load(DisasContext * s, int opsize, TCGv addr, int sign) { TCGv tmp; int index = IS_USER(s); s->is_mem = 1; tmp = tcg_temp_new_i32(); switch(opsize) { case OS_BYTE: if (sign) tcg_gen_qemu_ld8s(tmp, addr, index); else tcg_ge...
true
qemu
7372c2b926200db295412efbb53f93773b7f1754
static inline TCGv gen_load(DisasContext * s, int opsize, TCGv addr, int sign) { TCGv tmp; int index = IS_USER(s); s->is_mem = 1; tmp = tcg_temp_new_i32(); switch(opsize) { case OS_BYTE: if (sign) tcg_gen_qemu_ld8s(tmp, addr, index); else tcg_ge...
{ "code": [ " qemu_assert(0, \"bad load size\");", " break;" ], "line_no": [ 49, 25 ] }
static inline TCGv FUNC_0(DisasContext * s, int opsize, TCGv addr, int sign) { TCGv tmp; int VAR_0 = IS_USER(s); s->is_mem = 1; tmp = tcg_temp_new_i32(); switch(opsize) { case OS_BYTE: if (sign) tcg_gen_qemu_ld8s(tmp, addr, VAR_0); else tcg_gen_...
[ "static inline TCGv FUNC_0(DisasContext * s, int opsize, TCGv addr, int sign)\n{", "TCGv tmp;", "int VAR_0 = IS_USER(s);", "s->is_mem = 1;", "tmp = tcg_temp_new_i32();", "switch(opsize) {", "case OS_BYTE:\nif (sign)\ntcg_gen_qemu_ld8s(tmp, addr, VAR_0);", "else\ntcg_gen_qemu_ld8u(tmp, addr, VAR_0);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 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 ], [...
24,128
int ff_snow_frame_start(SnowContext *s){ AVFrame tmp; int i, ret; int w= s->avctx->width; //FIXME round up to x16 ? int h= s->avctx->height; if (s->current_picture.data[0] && !(s->avctx->flags&CODEC_FLAG_EMU_EDGE)) { s->dsp.draw_edges(s->current_picture.data[0], ...
true
FFmpeg
f13e733145132e39056027229ff954a798f58410
int ff_snow_frame_start(SnowContext *s){ AVFrame tmp; int i, ret; int w= s->avctx->width; int h= s->avctx->height; if (s->current_picture.data[0] && !(s->avctx->flags&CODEC_FLAG_EMU_EDGE)) { s->dsp.draw_edges(s->current_picture.data[0], s->current_picture.line...
{ "code": [ " if(USE_HALFPEL_PLANE && s->current_picture.data[0])", " halfpel_interpol(s, s->halfpel_plane[0], &s->current_picture);" ], "line_no": [ 49, 51 ] }
int FUNC_0(SnowContext *VAR_0){ AVFrame tmp; int VAR_5, VAR_2; int VAR_3= VAR_0->avctx->width; int VAR_4= VAR_0->avctx->height; if (VAR_0->current_picture.data[0] && !(VAR_0->avctx->flags&CODEC_FLAG_EMU_EDGE)) { VAR_0->dsp.draw_edges(VAR_0->current_picture.data[0], ...
[ "int FUNC_0(SnowContext *VAR_0){", "AVFrame tmp;", "int VAR_5, VAR_2;", "int VAR_3= VAR_0->avctx->width;", "int VAR_4= VAR_0->avctx->height;", "if (VAR_0->current_picture.data[0] && !(VAR_0->avctx->flags&CODEC_FLAG_EMU_EDGE)) {", "VAR_0->dsp.draw_edges(VAR_0->current_picture.data[0],\nVAR_0->current_pic...
[ 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 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17, 19 ], [ 21, 23, 25 ], [ 27, 29, 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53 ...
24,129
static int h264_slice_header_parse(const H264Context *h, H264SliceContext *sl, const H2645NAL *nal) { const SPS *sps; const PPS *pps; int ret; unsigned int slice_type, tmp, i; int field_pic_flag, bottom_field_flag; int first_slice = sl == h->slice_ctx &...
true
FFmpeg
09096fb68713089a8f97c8fa24e9d7f3bb9231d5
static int h264_slice_header_parse(const H264Context *h, H264SliceContext *sl, const H2645NAL *nal) { const SPS *sps; const PPS *pps; int ret; unsigned int slice_type, tmp, i; int field_pic_flag, bottom_field_flag; int first_slice = sl == h->slice_ctx &...
{ "code": [ " sl->slice_type_nos, &sl->pwt, h->avctx);" ], "line_no": [ 287 ] }
static int FUNC_0(const H264Context *VAR_0, H264SliceContext *VAR_1, const H2645NAL *VAR_2) { const SPS *VAR_3; const PPS *VAR_4; int VAR_5; unsigned int VAR_6, VAR_7, VAR_8; int VAR_9, VAR_10; int VAR_11 = VAR_1 == VAR_0->slice_ctx && !VAR_0->current_s...
[ "static int FUNC_0(const H264Context *VAR_0, H264SliceContext *VAR_1,\nconst H2645NAL *VAR_2)\n{", "const SPS *VAR_3;", "const PPS *VAR_4;", "int VAR_5;", "unsigned int VAR_6, VAR_7, VAR_8;", "int VAR_9, VAR_10;", "int VAR_11 = VAR_1 == VAR_0->slice_ctx && !VAR_0->current_slice;", "int VAR_12;", "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 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
24,130
static inline void RENAME(yuv2rgb565_2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const ...
true
FFmpeg
009f829dde811af654af7110326aea3a72c05d5e
static inline void RENAME(yuv2rgb565_2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const ...
{ "code": [ " x86_reg uv_off = c->uv_off << 1;", " x86_reg uv_off = c->uv_off << 1;", " YSCALEYUV2RGB(%%REGBP, %5, %6)", " \"a\" (&c->redDither), \"m\"(uv_off)", " x86_reg uv_off = c->uv_off << 1;", " YSCALEYUV2RGB(%%REGBP, %5, %6)", " \"a\" (&c->...
static inline void FUNC_0(yuv2rgb565_2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const ...
[ "static inline void FUNC_0(yuv2rgb565_2)(SwsContext *c, const uint16_t *buf0,\nconst uint16_t *buf1, const uint16_t *ubuf0,\nconst uint16_t *ubuf1, const uint16_t *vbuf0,\nconst uint16_t *vbuf1, const uint16_t *abuf0,\nconst uint16_t *abuf1, uint8_t *dest,\nint dstW, int yalpha, int uvalpha, int y)\n{", "x86_reg ...
[ 0, 1, 1, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 21, 23, 25, 27, 29, 31, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55 ], [ 57 ] ]
24,131
static int virtio_scsi_parse_req(VirtIOSCSIReq *req, unsigned req_size, unsigned resp_size) { VirtIODevice *vdev = (VirtIODevice *) req->dev; size_t in_size, out_size; if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0, &req->req, req_size) < re...
true
qemu
2034e324dabc55064553aaa07de1536ebf8ea497
static int virtio_scsi_parse_req(VirtIOSCSIReq *req, unsigned req_size, unsigned resp_size) { VirtIODevice *vdev = (VirtIODevice *) req->dev; size_t in_size, out_size; if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0, &req->req, req_size) < re...
{ "code": [ " req_size = req->elem.out_sg[0].iov_len;", " resp_size = req->elem.in_sg[0].iov_len;" ], "line_no": [ 61, 63 ] }
static int FUNC_0(VirtIOSCSIReq *VAR_0, unsigned VAR_1, unsigned VAR_2) { VirtIODevice *vdev = (VirtIODevice *) VAR_0->dev; size_t in_size, out_size; if (iov_to_buf(VAR_0->elem.out_sg, VAR_0->elem.out_num, 0, &VAR_0->VAR_0, VAR_1) < VAR_1) { ...
[ "static int FUNC_0(VirtIOSCSIReq *VAR_0,\nunsigned VAR_1, unsigned VAR_2)\n{", "VirtIODevice *vdev = (VirtIODevice *) VAR_0->dev;", "size_t in_size, out_size;", "if (iov_to_buf(VAR_0->elem.out_sg, VAR_0->elem.out_num, 0,\n&VAR_0->VAR_0, VAR_1) < VAR_1) {", "return -EINVAL;", "}", "if (qemu_iovec_concat_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 69, 71, 73 ], [ 75, 77, 79 ...
24,132
static int mov_write_moov_tag(AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s) { int i; int64_t pos = avio_tell(pb); avio_wb32(pb, 0); /* size placeholder*/ ffio_wfourcc(pb, "moov"); for (i = 0; i < mov->nb_streams; i++) { if (mov->tracks[i].en...
true
FFmpeg
da048c6d24729d3bab6ccb0ac340ea129e3e88d5
static int mov_write_moov_tag(AVIOContext *pb, MOVMuxContext *mov, AVFormatContext *s) { int i; int64_t pos = avio_tell(pb); avio_wb32(pb, 0); ffio_wfourcc(pb, "moov"); for (i = 0; i < mov->nb_streams; i++) { if (mov->tracks[i].entry <= 0 && !(mov->fl...
{ "code": [ " mov_write_trak_tag(pb, mov, &(mov->tracks[i]), i < s->nb_streams ? s->streams[i] : NULL);" ], "line_no": [ 97 ] }
static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1, AVFormatContext *VAR_2) { int VAR_3; int64_t pos = avio_tell(VAR_0); avio_wb32(VAR_0, 0); ffio_wfourcc(VAR_0, "moov"); for (VAR_3 = 0; VAR_3 < VAR_1->nb_streams; VAR_3++) { if (VAR_1->tracks[...
[ "static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,\nAVFormatContext *VAR_2)\n{", "int VAR_3;", "int64_t pos = avio_tell(VAR_0);", "avio_wb32(VAR_0, 0);", "ffio_wfourcc(VAR_0, \"moov\");", "for (VAR_3 = 0; VAR_3 < VAR_1->nb_streams; VAR_3++) {", "if (VAR_1->tracks[VAR_3].entry <= 0 && !(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, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
24,133
static void virtio_blk_handle_read(VirtIOBlockReq *req) { BlockDriverAIOCB *acb; uint64_t sector; sector = ldq_p(&req->out->sector); if (sector & req->dev->sector_mask) { acb = bdrv_aio_readv(req->dev->bs, sector, &req->qiov, req->qiov.size / BDRV_SECTOR_...
true
qemu
52c050236eaa4f0b5e1d160cd66dc18106445c4d
static void virtio_blk_handle_read(VirtIOBlockReq *req) { BlockDriverAIOCB *acb; uint64_t sector; sector = ldq_p(&req->out->sector); if (sector & req->dev->sector_mask) { acb = bdrv_aio_readv(req->dev->bs, sector, &req->qiov, req->qiov.size / BDRV_SECTOR_...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIOBlockReq *VAR_0) { BlockDriverAIOCB *acb; uint64_t sector; sector = ldq_p(&VAR_0->out->sector); if (sector & VAR_0->dev->sector_mask) { acb = bdrv_aio_readv(VAR_0->dev->bs, sector, &VAR_0->qiov, VAR_0->qiov.size / BDRV_SECTOR_SIZE...
[ "static void FUNC_0(VirtIOBlockReq *VAR_0)\n{", "BlockDriverAIOCB *acb;", "uint64_t sector;", "sector = ldq_p(&VAR_0->out->sector);", "if (sector & VAR_0->dev->sector_mask) {", "acb = bdrv_aio_readv(VAR_0->dev->bs, sector, &VAR_0->qiov,\nVAR_0->qiov.size / BDRV_SECTOR_SIZE,\nvirtio_blk_rw_complete, VAR_0)...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 26, 28, 30 ], [ 32 ] ]
24,134
void FUNC(ff_simple_idct_put)(uint8_t *dest_, int line_size, DCTELEM *block) { pixel *dest = (pixel *)dest_; int i; line_size /= sizeof(pixel); for (i = 0; i < 8; i++) FUNC(idctRowCondDC)(block + i*8); for (i = 0; i < 8; i++) FUNC(idctSparseColPut)(dest + i, line_size, ...
true
FFmpeg
f78cd0c243b9149c7f604ecf1006d78e344aa6ca
void FUNC(ff_simple_idct_put)(uint8_t *dest_, int line_size, DCTELEM *block) { pixel *dest = (pixel *)dest_; int i; line_size /= sizeof(pixel); for (i = 0; i < 8; i++) FUNC(idctRowCondDC)(block + i*8); for (i = 0; i < 8; i++) FUNC(idctSparseColPut)(dest + i, line_size, ...
{ "code": [ " FUNC(idctRowCondDC)(block + i*8);", " FUNC(idctRowCondDC)(block + i*8);", " FUNC(idctRowCondDC)(block + i*8);" ], "line_no": [ 17, 17, 17 ] }
void FUNC_0(ff_simple_idct_put)(uint8_t *dest_, int line_size, DCTELEM *block) { pixel *dest = (pixel *)dest_; int VAR_0; line_size /= sizeof(pixel); for (VAR_0 = 0; VAR_0 < 8; VAR_0++) FUNC_0(idctRowCondDC)(block + VAR_0*8); for (VAR_0 = 0; VAR_0 < 8; VAR_0++) FUNC_0(i...
[ "void FUNC_0(ff_simple_idct_put)(uint8_t *dest_, int line_size, DCTELEM *block)\n{", "pixel *dest = (pixel *)dest_;", "int VAR_0;", "line_size /= sizeof(pixel);", "for (VAR_0 = 0; VAR_0 < 8; VAR_0++)", "FUNC_0(idctRowCondDC)(block + VAR_0*8);", "for (VAR_0 = 0; VAR_0 < 8; VAR_0++)", "FUNC_0(idctSparse...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ] ]
24,135
static void quantize_and_encode_band_cost_UPAIR7_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, float *out, const float *scaled, int size, int scale_idx, ...
true
FFmpeg
01ecb7172b684f1c4b3e748f95c5a9a494ca36ec
static void quantize_and_encode_band_cost_UPAIR7_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, float *out, const float *scaled, int size, int scale_idx, ...
{ "code": [ " if (out) {", " if (out) {", " if (out) {", " vec2 = &p_vec[curidx2*2];", " int *bits, const float ROUNDING)", " if (out) {", " vec1 = &p_vec[curidx1*2];", " vec2...
static void FUNC_0(struct AACEncContext *VAR_0, PutBitContext *VAR_1, const float *VAR_2, float *VAR_3, const float *VAR_4, int VAR_5, int VAR_6, int VAR_7...
[ "static void FUNC_0(struct AACEncContext *VAR_0,\nPutBitContext *VAR_1, const float *VAR_2, float *VAR_3,\nconst float *VAR_4, int VAR_5, int VAR_6,\nint VAR_7, const float VAR_8, const float VAR_9,\nint *VAR_10, const float VAR_11)\n{", "const float VAR_12 = ff_aac_pow34sf_tab[POW_SF2_ZERO - VAR_6 + SCALE_ONE_PO...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 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 ], [ 51 ...
24,136
static int rtmp_packet_read_one_chunk(URLContext *h, RTMPPacket *p, int chunk_size, RTMPPacket **prev_pkt_ptr, int *nb_prev_pkt, uint8_t hdr) { uint8_t buf[16]; int channel_id, timestamp, size; uint32_t ts_field; // non-exte...
true
FFmpeg
f21c263c8979aa8a71c1c10909efb991679045c1
static int rtmp_packet_read_one_chunk(URLContext *h, RTMPPacket *p, int chunk_size, RTMPPacket **prev_pkt_ptr, int *nb_prev_pkt, uint8_t hdr) { uint8_t buf[16]; int channel_id, timestamp, size; uint32_t ts_field; uint3...
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, RTMPPacket *VAR_1, int VAR_2, RTMPPacket **VAR_3, int *VAR_4, uint8_t VAR_5) { uint8_t buf[16]; int VAR_6, VAR_7, VAR_8; uint32_t ts_field; uint32_t extra = 0; enum RTMPPacketT...
[ "static int FUNC_0(URLContext *VAR_0, RTMPPacket *VAR_1,\nint VAR_2, RTMPPacket **VAR_3,\nint *VAR_4, uint8_t VAR_5)\n{", "uint8_t buf[16];", "int VAR_6, VAR_7, VAR_8;", "uint32_t ts_field;", "uint32_t extra = 0;", "enum RTMPPacketType VAR_9;", "int VAR_10 = 0;", "int VAR_11, VAR_12;", "RTMPPacket *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51...
24,137
int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count) { int i, av_uninit(j); int current_ref_assigned = 0, err = 0; Picture *av_uninit(pic); if ((h->avctx->debug & FF_DEBUG_MMCO) && mmco_count == 0) av_log(h->avctx, AV_LOG_DEBUG, "no mmco here\n"); for (i...
true
FFmpeg
92002db3eb437414281ad4fb6e84e34862f7fc92
int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count) { int i, av_uninit(j); int current_ref_assigned = 0, err = 0; Picture *av_uninit(pic); if ((h->avctx->debug & FF_DEBUG_MMCO) && mmco_count == 0) av_log(h->avctx, AV_LOG_DEBUG, "no mmco here\n"); for (i...
{ "code": [], "line_no": [] }
int FUNC_0(H264Context *VAR_0, MMCO *VAR_1, int VAR_2) { int VAR_3, FUNC_2(j); int VAR_4 = 0, VAR_5 = 0; Picture *FUNC_2(pic); if ((VAR_0->avctx->debug & FF_DEBUG_MMCO) && VAR_2 == 0) av_log(VAR_0->avctx, AV_LOG_DEBUG, "no VAR_1 here\n"); for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) { ...
[ "int FUNC_0(H264Context *VAR_0, MMCO *VAR_1, int VAR_2)\n{", "int VAR_3, FUNC_2(j);", "int VAR_4 = 0, VAR_5 = 0;", "Picture *FUNC_2(pic);", "if ((VAR_0->avctx->debug & FF_DEBUG_MMCO) && VAR_2 == 0)\nav_log(VAR_0->avctx, AV_LOG_DEBUG, \"no VAR_1 here\\n\");", "for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43, 45 ], [ 47 ], [ 49 ], [ 52 ], [ 58 ...
24,138
static void pc_init1(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model, int pci_enab...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
static void pc_init1(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model, int pci_enab...
{ "code": [ " qdev_init(eeprom);" ], "line_no": [ 549 ] }
static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5, int VAR_6) { char *VAR_7; int VAR_8, VAR_9, V...
[ "static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nconst char *VAR_4,\nconst char *VAR_5,\nint VAR_6)\n{", "char *VAR_7;", "int VAR_8, VAR_9, VAR_10;", "ram_addr_t ram_addr, bios_offset, option_rom_offset;", "ram_addr_t below_4g_mem_size, above_4g_mem_size = 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
24,139
void *av_tree_insert(AVTreeNode **tp, void *key, int (*cmp)(void *key, const void *b), AVTreeNode **next){ AVTreeNode *t= *tp; if(t){ unsigned int v= cmp(t->elem, key); void *ret; if(!v){ if(*next) return t->elem; else if(t->child[0]||t->ch...
true
FFmpeg
eed36075645ecc3d3ef202c94badb66818114c2c
void *av_tree_insert(AVTreeNode **tp, void *key, int (*cmp)(void *key, const void *b), AVTreeNode **next){ AVTreeNode *t= *tp; if(t){ unsigned int v= cmp(t->elem, key); void *ret; if(!v){ if(*next) return t->elem; else if(t->child[0]||t->ch...
{ "code": [ " (*tp)->elem= key;", " return NULL;" ], "line_no": [ 145, 147 ] }
void *FUNC_0(AVTreeNode **VAR_0, void *VAR_3, int (*VAR_2)(void *VAR_3, const void *VAR_3), AVTreeNode **VAR_4){ AVTreeNode *t= *VAR_0; if(t){ unsigned int VAR_5= VAR_2(t->elem, VAR_3); void *VAR_6; if(!VAR_5){ if(*VAR_4) return t->elem; el...
[ "void *FUNC_0(AVTreeNode **VAR_0, void *VAR_3, int (*VAR_2)(void *VAR_3, const void *VAR_3), AVTreeNode **VAR_4){", "AVTreeNode *t= *VAR_0;", "if(t){", "unsigned int VAR_5= VAR_2(t->elem, VAR_3);", "void *VAR_6;", "if(!VAR_5){", "if(*VAR_4)\nreturn t->elem;", "else if(t->child[0]||t->child[1]){", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
24,140
static size_t refcount_array_byte_size(BDRVQcow2State *s, uint64_t entries) { /* This assertion holds because there is no way we can address more than * 2^(64 - 9) clusters at once (with cluster size 512 = 2^9, and because * offsets have to be representable in bytes); due to every cluster * corr...
true
qemu
c2551b47c9b9465962c4000268eda1307f55614a
static size_t refcount_array_byte_size(BDRVQcow2State *s, uint64_t entries) { assert(entries < (UINT64_C(1) << (64 - 9))); return DIV_ROUND_UP(entries << s->refcount_order, 8); }
{ "code": [ "static size_t refcount_array_byte_size(BDRVQcow2State *s, uint64_t entries)" ], "line_no": [ 1 ] }
static size_t FUNC_0(BDRVQcow2State *s, uint64_t entries) { assert(entries < (UINT64_C(1) << (64 - 9))); return DIV_ROUND_UP(entries << s->refcount_order, 8); }
[ "static size_t FUNC_0(BDRVQcow2State *s, uint64_t entries)\n{", "assert(entries < (UINT64_C(1) << (64 - 9)));", "return DIV_ROUND_UP(entries << s->refcount_order, 8);", "}" ]
[ 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 13 ], [ 23 ], [ 25 ] ]
24,142
static inline void RENAME(hyscale)(SwsContext *c, uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hLumFilter, int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode, ...
true
FFmpeg
aa13b0fc55f5aec58fce24d1a047271b3e5727f1
static inline void RENAME(hyscale)(SwsContext *c, uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hLumFilter, int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode, ...
{ "code": [ " dst[i]= (dst[i]*19077 - 39057361)>>14;" ], "line_no": [ 441 ] }
static inline void FUNC_0(hyscale)(SwsContext *c, uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hLumFilter, int16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode, ...
[ "static inline void FUNC_0(hyscale)(SwsContext *c, uint16_t *dst, long dstWidth, uint8_t *src, int srcW, int xInc,\nint flags, int canMMX2BeUsed, int16_t *hLumFilter,\nint16_t *hLumFilterPos, int hLumFilterSize, void *funnyYCode,\nint srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,\nint32_t *mmx2FilterPo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
24,143
static int applehttp_read_header(AVFormatContext *s, AVFormatParameters *ap) { AppleHTTPContext *c = s->priv_data; int ret = 0, i, j, stream_offset = 0; if ((ret = parse_playlist(c, s->filename, NULL, s->pb)) < 0) goto fail; if (c->n_variants == 0) { av_log(NULL, AV_LOG_WARNIN...
true
FFmpeg
b79c3df08807c96a945d9cea21c5d923c464d622
static int applehttp_read_header(AVFormatContext *s, AVFormatParameters *ap) { AppleHTTPContext *c = s->priv_data; int ret = 0, i, j, stream_offset = 0; if ((ret = parse_playlist(c, s->filename, NULL, s->pb)) < 0) goto fail; if (c->n_variants == 0) { av_log(NULL, AV_LOG_WARNIN...
{ "code": [ " int duration = 0;" ], "line_no": [ 65 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { AppleHTTPContext *c = VAR_0->priv_data; int VAR_2 = 0, VAR_3, VAR_4, VAR_5 = 0; if ((VAR_2 = parse_playlist(c, VAR_0->filename, NULL, VAR_0->pb)) < 0) goto fail; if (c->n_variants == 0) { av_log(NULL, AV_LO...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "AppleHTTPContext *c = VAR_0->priv_data;", "int VAR_2 = 0, VAR_3, VAR_4, VAR_5 = 0;", "if ((VAR_2 = parse_playlist(c, VAR_0->filename, NULL, VAR_0->pb)) < 0)\ngoto fail;", "if (c->n_variants == 0) {", "av_log(NULL, AV_LOG_WARNING, ...
[ 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, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
24,144
static int nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { NVENCSTATUS nv_status; NvencOutputSurface *tmpoutsurf; int res, i = 0; NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCOD...
true
FFmpeg
82d705e245050c1040321022e200969f9c3ff9c3
static int nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { NVENCSTATUS nv_status; NvencOutputSurface *tmpoutsurf; int res, i = 0; NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCOD...
{ "code": [ " NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;", " return AVERROR_EXTERNAL;", " switch (avctx->codec->id) {", " case AV_CODEC_ID_H264:", " case AV_CODEC_ID_H265:", " } else {", " } else {", " } else {", ...
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { NVENCSTATUS nv_status; NvencOutputSurface *tmpoutsurf; int VAR_4, VAR_5 = 0; NvencContext *ctx = VAR_0->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCODE_API_FUN...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "NVENCSTATUS nv_status;", "NvencOutputSurface *tmpoutsurf;", "int VAR_4, VAR_5 = 0;", "NvencContext *ctx = VAR_0->priv_data;", "NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;", "NV_ENCODE_API_FUNC...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
24,145
static int mov_read_glbl(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; if((uint64_t)atom.size > (1<<30)) return -1; av_free(st->codec->extradata); st->codec->extradata = av_mallocz(atom.size + FF_INPUT_BUFFER_PADDING_SIZE); i...
false
FFmpeg
6a63ff19b6a7fe3bc32c7fb4a62fca8f65786432
static int mov_read_glbl(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; if((uint64_t)atom.size > (1<<30)) return -1; av_free(st->codec->extradata); st->codec->extradata = av_mallocz(atom.size + FF_INPUT_BUFFER_PADDING_SIZE); i...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; if((uint64_t)VAR_2.size > (1<<30)) return -1; av_free(st->codec->extradata); st->codec->extradata = av_mallocz(VAR_2.size + FF_INPUT_BUFFER_PADDING_SI...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "if((uint64_t)VAR_2.size > (1<<30))\nreturn -1;", "av_free(st->codec->extradata);", "st->codec->extradata = av_mallocz(VAR_2.size + FF_INPUT_BUFFER_PADDING_SIZE);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
24,146
static uint64_t find_any_startcode(ByteIOContext *bc, int64_t pos){ uint64_t state=0; if(pos >= 0) url_fseek(bc, pos, SEEK_SET); //note, this may fail if the stream isnt seekable, but that shouldnt matter, as in this case we simply start where we are currently while(bytes_left(bc)){ ...
false
FFmpeg
465e1dadbef7596a3eb87089a66bb4ecdc26d3c4
static uint64_t find_any_startcode(ByteIOContext *bc, int64_t pos){ uint64_t state=0; if(pos >= 0) url_fseek(bc, pos, SEEK_SET); while(bytes_left(bc)){ state= (state<<8) | get_byte(bc); if((state>>56) != 'N') continue; switch(state){ case...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(ByteIOContext *bc, int64_t pos){ uint64_t state=0; if(pos >= 0) url_fseek(bc, pos, SEEK_SET); while(bytes_left(bc)){ state= (state<<8) | get_byte(bc); if((state>>56) != 'N') continue; switch(state){ case MAIN_STARTC...
[ "static uint64_t FUNC_0(ByteIOContext *bc, int64_t pos){", "uint64_t state=0;", "if(pos >= 0)\nurl_fseek(bc, pos, SEEK_SET);", "while(bytes_left(bc)){", "state= (state<<8) | get_byte(bc);", "if((state>>56) != 'N')\ncontinue;", "switch(state){", "case MAIN_STARTCODE:\ncase STREAM_STARTCODE:\ncase KEYFR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25, 27, 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
24,147
static void ape_unpack_stereo(APEContext *ctx, int count) { int32_t left, right; int32_t *decoded0 = ctx->decoded[0]; int32_t *decoded1 = ctx->decoded[1]; if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) { /* We are pure silence, so we're done. */ av_log(ctx->avctx, AV_LOG_DE...
false
FFmpeg
b164d66e35d349de414e2f0d7365a147aba8a620
static void ape_unpack_stereo(APEContext *ctx, int count) { int32_t left, right; int32_t *decoded0 = ctx->decoded[0]; int32_t *decoded1 = ctx->decoded[1]; if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) { av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence stereo\n"); r...
{ "code": [], "line_no": [] }
static void FUNC_0(APEContext *VAR_0, int VAR_1) { int32_t left, right; int32_t *decoded0 = VAR_0->decoded[0]; int32_t *decoded1 = VAR_0->decoded[1]; if (VAR_0->frameflags & APE_FRAMECODE_STEREO_SILENCE) { av_log(VAR_0->avctx, AV_LOG_DEBUG, "pure silence stereo\n"); re...
[ "static void FUNC_0(APEContext *VAR_0, int VAR_1)\n{", "int32_t left, right;", "int32_t *decoded0 = VAR_0->decoded[0];", "int32_t *decoded1 = VAR_0->decoded[1];", "if (VAR_0->frameflags & APE_FRAMECODE_STEREO_SILENCE) {", "av_log(VAR_0->avctx, AV_LOG_DEBUG, \"pure silence stereo\\n\");", "return;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ] ]
24,149
static void jpeg_init_destination(j_compress_ptr cinfo) { VncState *vs = cinfo->client_data; Buffer *buffer = &vs->tight_jpeg; cinfo->dest->next_output_byte = (JOCTET *)buffer->buffer + buffer->offset; cinfo->dest->free_in_buffer = (size_t)(buffer->capacity - buffer->offset); }
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
static void jpeg_init_destination(j_compress_ptr cinfo) { VncState *vs = cinfo->client_data; Buffer *buffer = &vs->tight_jpeg; cinfo->dest->next_output_byte = (JOCTET *)buffer->buffer + buffer->offset; cinfo->dest->free_in_buffer = (size_t)(buffer->capacity - buffer->offset); }
{ "code": [], "line_no": [] }
static void FUNC_0(j_compress_ptr VAR_0) { VncState *vs = VAR_0->client_data; Buffer *buffer = &vs->tight_jpeg; VAR_0->dest->next_output_byte = (JOCTET *)buffer->buffer + buffer->offset; VAR_0->dest->free_in_buffer = (size_t)(buffer->capacity - buffer->offset); }
[ "static void FUNC_0(j_compress_ptr VAR_0)\n{", "VncState *vs = VAR_0->client_data;", "Buffer *buffer = &vs->tight_jpeg;", "VAR_0->dest->next_output_byte = (JOCTET *)buffer->buffer + buffer->offset;", "VAR_0->dest->free_in_buffer = (size_t)(buffer->capacity - buffer->offset);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
24,150
static void ref405ep_init (ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model...
false
qemu
b6dcbe086c77ec683f5ff0b693593cda1d61f3a1
static void ref405ep_init (ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model...
{ "code": [], "line_no": [] }
static void FUNC_0 (ram_addr_t VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5) { char *VAR_6; ppc4xx_bd_info_t bd; ...
[ "static void FUNC_0 (ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nconst char *VAR_4,\nconst char *VAR_5)\n{", "char *VAR_6;", "ppc4xx_bd_info_t bd;", "CPUPPCState *env;", "qemu_irq *pic;", "ram_addr_t sram_offset, bios_offset, bdloc;", "target_phys_addr_t ram_bases[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 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [...
24,151
void ppc_store_sdr1 (CPUPPCState *env, target_ulong value) { LOG_MMU("%s: " TARGET_FMT_lx "\n", __func__, value); if (env->sdr1 != value) { /* XXX: for PowerPC 64, should check that the HTABSIZE value * is <= 28 */ env->sdr1 = value; tlb_flush(env, 1); ...
false
qemu
bb593904c18e22ea0671dfa1b02e24982f2bf0ea
void ppc_store_sdr1 (CPUPPCState *env, target_ulong value) { LOG_MMU("%s: " TARGET_FMT_lx "\n", __func__, value); if (env->sdr1 != value) { env->sdr1 = value; tlb_flush(env, 1); } }
{ "code": [], "line_no": [] }
void FUNC_0 (CPUPPCState *VAR_0, target_ulong VAR_1) { LOG_MMU("%s: " TARGET_FMT_lx "\n", __func__, VAR_1); if (VAR_0->sdr1 != VAR_1) { VAR_0->sdr1 = VAR_1; tlb_flush(VAR_0, 1); } }
[ "void FUNC_0 (CPUPPCState *VAR_0, target_ulong VAR_1)\n{", "LOG_MMU(\"%s: \" TARGET_FMT_lx \"\\n\", __func__, VAR_1);", "if (VAR_0->sdr1 != VAR_1) {", "VAR_0->sdr1 = VAR_1;", "tlb_flush(VAR_0, 1);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
24,152
static void memory_region_finalize(Object *obj) { MemoryRegion *mr = MEMORY_REGION(obj); assert(QTAILQ_EMPTY(&mr->subregions)); assert(memory_region_transaction_depth == 0); mr->destructor(mr); memory_region_clear_coalescing(mr); g_free((char *)mr->name); g_free(mr->ioeventfds); }...
false
qemu
b476c99d01519277e3494a10dc0329d07157ae02
static void memory_region_finalize(Object *obj) { MemoryRegion *mr = MEMORY_REGION(obj); assert(QTAILQ_EMPTY(&mr->subregions)); assert(memory_region_transaction_depth == 0); mr->destructor(mr); memory_region_clear_coalescing(mr); g_free((char *)mr->name); g_free(mr->ioeventfds); }...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { MemoryRegion *mr = MEMORY_REGION(VAR_0); assert(QTAILQ_EMPTY(&mr->subregions)); assert(memory_region_transaction_depth == 0); mr->destructor(mr); memory_region_clear_coalescing(mr); g_free((char *)mr->name); g_free(mr->ioeventfds); }
[ "static void FUNC_0(Object *VAR_0)\n{", "MemoryRegion *mr = MEMORY_REGION(VAR_0);", "assert(QTAILQ_EMPTY(&mr->subregions));", "assert(memory_region_transaction_depth == 0);", "mr->destructor(mr);", "memory_region_clear_coalescing(mr);", "g_free((char *)mr->name);", "g_free(mr->ioeventfds);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
24,153
static void tgen64_ori(TCGContext *s, TCGReg dest, tcg_target_ulong val) { static const S390Opcode oi_insns[4] = { RI_OILL, RI_OILH, RI_OIHL, RI_OIHH }; static const S390Opcode nif_insns[2] = { RIL_OILF, RIL_OIHF }; int i; /* Look for no-op. */ if (val == 0) { ...
false
qemu
b2c98d9d392c87c9b9e975d30f79924719d9cbbe
static void tgen64_ori(TCGContext *s, TCGReg dest, tcg_target_ulong val) { static const S390Opcode oi_insns[4] = { RI_OILL, RI_OILH, RI_OIHL, RI_OIHH }; static const S390Opcode nif_insns[2] = { RIL_OILF, RIL_OIHF }; int i; if (val == 0) { return; ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGReg VAR_1, tcg_target_ulong VAR_2) { static const S390Opcode VAR_3[4] = { RI_OILL, RI_OILH, RI_OIHL, RI_OIHH }; static const S390Opcode VAR_4[2] = { RIL_OILF, RIL_OIHF }; int VAR_5; if (VAR_2 == 0) { return; ...
[ "static void FUNC_0(TCGContext *VAR_0, TCGReg VAR_1, tcg_target_ulong VAR_2)\n{", "static const S390Opcode VAR_3[4] = {", "RI_OILL, RI_OILH, RI_OIHL, RI_OIHH\n};", "static const S390Opcode VAR_4[2] = {", "RIL_OILF, RIL_OIHF\n};", "int VAR_5;", "if (VAR_2 == 0) {", "return;", "}", "if (facilities &...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ...
24,154
int xen_be_init(void) { xenstore = xs_daemon_open(); if (!xenstore) { xen_be_printf(NULL, 0, "can't connect to xenstored\n"); return -1; } if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) { goto err; } xen_xc = xc_interface_open...
false
qemu
d5b93ddfefe63d5869a8eb97ea3474867d3b105b
int xen_be_init(void) { xenstore = xs_daemon_open(); if (!xenstore) { xen_be_printf(NULL, 0, "can't connect to xenstored\n"); return -1; } if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) { goto err; } xen_xc = xc_interface_open...
{ "code": [], "line_no": [] }
int FUNC_0(void) { xenstore = xs_daemon_open(); if (!xenstore) { xen_be_printf(NULL, 0, "can't connect to xenstored\n"); return -1; } if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) { goto err; } xen_xc = xc_interface_open(); ...
[ "int FUNC_0(void)\n{", "xenstore = xs_daemon_open();", "if (!xenstore) {", "xen_be_printf(NULL, 0, \"can't connect to xenstored\\n\");", "return -1;", "}", "if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) {", "goto err;", "}", "xen_xc = xc_interface_open();", "if (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [...
24,157
static void virtio_input_handle_event(DeviceState *dev, QemuConsole *src, InputEvent *evt) { VirtIOInput *vinput = VIRTIO_INPUT(dev); virtio_input_event event; int qcode; switch (evt->kind) { case INPUT_EVENT_KIND_KEY: qcode = qemu_input_key_va...
false
qemu
568c73a4783cd981e9aa6de4f15dcda7829643ad
static void virtio_input_handle_event(DeviceState *dev, QemuConsole *src, InputEvent *evt) { VirtIOInput *vinput = VIRTIO_INPUT(dev); virtio_input_event event; int qcode; switch (evt->kind) { case INPUT_EVENT_KIND_KEY: qcode = qemu_input_key_va...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1, InputEvent *VAR_2) { VirtIOInput *vinput = VIRTIO_INPUT(VAR_0); virtio_input_event event; int VAR_3; switch (VAR_2->kind) { case INPUT_EVENT_KIND_KEY: VAR_3 = qemu_input_key_value_to_qc...
[ "static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,\nInputEvent *VAR_2)\n{", "VirtIOInput *vinput = VIRTIO_INPUT(VAR_0);", "virtio_input_event event;", "int VAR_3;", "switch (VAR_2->kind) {", "case INPUT_EVENT_KIND_KEY:\nVAR_3 = qemu_input_key_value_to_qcode(VAR_2->key->key);", "if (VAR_3 && key...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ...
24,158
static int uhci_handle_td(UHCIState *s, uint32_t addr, UHCI_TD *td, uint32_t *int_mask, bool queuing) { UHCIAsync *async; int len = 0, max_len; uint8_t pid; USBDevice *dev; USBEndpoint *ep; /* Is active ? */ if (!(td->ctrl & TD_CTRL_ACTIVE)) retu...
false
qemu
883bca776daa43111e9c39008f0038f7c62ae723
static int uhci_handle_td(UHCIState *s, uint32_t addr, UHCI_TD *td, uint32_t *int_mask, bool queuing) { UHCIAsync *async; int len = 0, max_len; uint8_t pid; USBDevice *dev; USBEndpoint *ep; if (!(td->ctrl & TD_CTRL_ACTIVE)) return TD_RESULT_NEXT...
{ "code": [], "line_no": [] }
static int FUNC_0(UHCIState *VAR_0, uint32_t VAR_1, UHCI_TD *VAR_2, uint32_t *VAR_3, bool VAR_4) { UHCIAsync *async; int VAR_5 = 0, VAR_6; uint8_t pid; USBDevice *dev; USBEndpoint *ep; if (!(VAR_2->ctrl & TD_CTRL_ACTIVE)) return TD_RESULT_NEXT_Q...
[ "static int FUNC_0(UHCIState *VAR_0, uint32_t VAR_1, UHCI_TD *VAR_2,\nuint32_t *VAR_3, bool VAR_4)\n{", "UHCIAsync *async;", "int VAR_5 = 0, VAR_6;", "uint8_t pid;", "USBDevice *dev;", "USBEndpoint *ep;", "if (!(VAR_2->ctrl & TD_CTRL_ACTIVE))\nreturn TD_RESULT_NEXT_QH;", "async = uhci_async_find_td(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [ 65 ], [...
24,159
static void xen_pt_region_update(XenPCIPassthroughState *s, MemoryRegionSection *sec, bool adding) { PCIDevice *d = &s->dev; MemoryRegion *mr = sec->mr; int bar = -1; int rc; int op = adding ? DPCI_ADD_MAPPING : DPCI_REMOVE_MAPPING; struct CheckBarArgs ar...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static void xen_pt_region_update(XenPCIPassthroughState *s, MemoryRegionSection *sec, bool adding) { PCIDevice *d = &s->dev; MemoryRegion *mr = sec->mr; int bar = -1; int rc; int op = adding ? DPCI_ADD_MAPPING : DPCI_REMOVE_MAPPING; struct CheckBarArgs ar...
{ "code": [], "line_no": [] }
static void FUNC_0(XenPCIPassthroughState *VAR_0, MemoryRegionSection *VAR_1, bool VAR_2) { PCIDevice *d = &VAR_0->dev; MemoryRegion *mr = VAR_1->mr; int VAR_3 = -1; int VAR_4; int VAR_5 = VAR_2 ? DPCI_ADD_MAPPING : DPCI_REMOVE_MAPPING; struct CheckBarArg...
[ "static void FUNC_0(XenPCIPassthroughState *VAR_0,\nMemoryRegionSection *VAR_1, bool VAR_2)\n{", "PCIDevice *d = &VAR_0->dev;", "MemoryRegion *mr = VAR_1->mr;", "int VAR_3 = -1;", "int VAR_4;", "int VAR_5 = VAR_2 ? DPCI_ADD_MAPPING : DPCI_REMOVE_MAPPING;", "struct CheckBarArgs VAR_6 = {", ".VAR_0 = VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
24,163
static void omap_inth_sir_update(struct omap_intr_handler_s *s, int is_fiq) { int i, j, sir_intr, p_intr, p, f; uint32_t level; sir_intr = 0; p_intr = 255; /* Find the interrupt line with the highest dynamic priority. * Note: 0 denotes the hightest priority. * If all interrupts h...
false
qemu
41074f3d3ff0e9a3c6f638627c12ebbf6d757cea
static void omap_inth_sir_update(struct omap_intr_handler_s *s, int is_fiq) { int i, j, sir_intr, p_intr, p, f; uint32_t level; sir_intr = 0; p_intr = 255; for (j = 0; j < s->nbanks; ++j) { level = s->bank[j].irqs & ~s->bank[j].mask & (is_fiq ? s->bank[j...
{ "code": [], "line_no": [] }
static void FUNC_0(struct omap_intr_handler_s *VAR_0, int VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; uint32_t level; VAR_4 = 0; VAR_5 = 255; for (VAR_3 = 0; VAR_3 < VAR_0->nbanks; ++VAR_3) { level = VAR_0->bank[VAR_3].irqs & ~VAR_0->bank[VAR_3].mask & ...
[ "static void FUNC_0(struct omap_intr_handler_s *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "uint32_t level;", "VAR_4 = 0;", "VAR_5 = 255;", "for (VAR_3 = 0; VAR_3 < VAR_0->nbanks; ++VAR_3) {", "level = VAR_0->bank[VAR_3].irqs & ~VAR_0->bank[VAR_3].mask &\n(VAR_1 ? VAR_0->ban...
[ 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 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ] ]
24,165
static int coroutine_fn bdrv_co_do_writev(BdrvChild *child, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov, BdrvRequestFlags flags) { if (nb_sectors < 0 || nb_sectors > BDRV_REQUEST_MAX_SECTORS) { return -EINVAL; } return bdrv_co_pwritev(child->bs, sector_num << BDRV_SECTOR_...
false
qemu
a03ef88f77af045a2eb9629b5ce774a3fb973c5e
static int coroutine_fn bdrv_co_do_writev(BdrvChild *child, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov, BdrvRequestFlags flags) { if (nb_sectors < 0 || nb_sectors > BDRV_REQUEST_MAX_SECTORS) { return -EINVAL; } return bdrv_co_pwritev(child->bs, sector_num << BDRV_SECTOR_...
{ "code": [], "line_no": [] }
static int VAR_0 bdrv_co_do_writev(BdrvChild *child, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov, BdrvRequestFlags flags) { if (nb_sectors < 0 || nb_sectors > BDRV_REQUEST_MAX_SECTORS) { return -EINVAL; } return bdrv_co_pwritev(child->bs, sector_num << BDRV_SECTOR_BITS, ...
[ "static int VAR_0 bdrv_co_do_writev(BdrvChild *child,\nint64_t sector_num, int nb_sectors, QEMUIOVector *qiov,\nBdrvRequestFlags flags)\n{", "if (nb_sectors < 0 || nb_sectors > BDRV_REQUEST_MAX_SECTORS) {", "return -EINVAL;", "}", "return bdrv_co_pwritev(child->bs, sector_num << BDRV_SECTOR_BITS,\nnb_sector...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ] ]
24,166
static int decorrelate(TAKDecContext *s, int c1, int c2, int length) { GetBitContext *gb = &s->gb; int32_t *p1 = s->decoded[c1] + (s->dmode > 5); int32_t *p2 = s->decoded[c2] + (s->dmode > 5); int32_t bp1 = p1[0]; int32_t bp2 = p2[0]; int i; int dshift, dfacto...
false
FFmpeg
08b520636e96ba6888b669b9b3f4c414631ea1d2
static int decorrelate(TAKDecContext *s, int c1, int c2, int length) { GetBitContext *gb = &s->gb; int32_t *p1 = s->decoded[c1] + (s->dmode > 5); int32_t *p2 = s->decoded[c2] + (s->dmode > 5); int32_t bp1 = p1[0]; int32_t bp2 = p2[0]; int i; int dshift, dfacto...
{ "code": [], "line_no": [] }
static int FUNC_0(TAKDecContext *VAR_0, int VAR_1, int VAR_2, int VAR_3) { GetBitContext *gb = &VAR_0->gb; int32_t *p1 = VAR_0->decoded[VAR_1] + (VAR_0->dmode > 5); int32_t *p2 = VAR_0->decoded[VAR_2] + (VAR_0->dmode > 5); int32_t bp1 = p1[0]; int32_t bp2 = p2[0]; ...
[ "static int FUNC_0(TAKDecContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "GetBitContext *gb = &VAR_0->gb;", "int32_t *p1 = VAR_0->decoded[VAR_1] + (VAR_0->dmode > 5);", "int32_t *p2 = VAR_0->decoded[VAR_2] + (VAR_0->dmode > 5);", "int32_t bp1 = p1[0];", "int32_t bp2 = p2[0];"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ...
24,167
static MegasasCmd *megasas_lookup_frame(MegasasState *s, target_phys_addr_t frame) { MegasasCmd *cmd = NULL; int num = 0, index; index = s->reply_queue_head; while (num < s->fw_cmds) { if (s->frames[index].pa && s->frames[index].pa == frame) { cmd = &s->frames[index];...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static MegasasCmd *megasas_lookup_frame(MegasasState *s, target_phys_addr_t frame) { MegasasCmd *cmd = NULL; int num = 0, index; index = s->reply_queue_head; while (num < s->fw_cmds) { if (s->frames[index].pa && s->frames[index].pa == frame) { cmd = &s->frames[index];...
{ "code": [], "line_no": [] }
static MegasasCmd *FUNC_0(MegasasState *s, target_phys_addr_t frame) { MegasasCmd *cmd = NULL; int VAR_0 = 0, VAR_1; VAR_1 = s->reply_queue_head; while (VAR_0 < s->fw_cmds) { if (s->frames[VAR_1].pa && s->frames[VAR_1].pa == frame) { cmd = &s->frames[VAR_1]; ...
[ "static MegasasCmd *FUNC_0(MegasasState *s,\ntarget_phys_addr_t frame)\n{", "MegasasCmd *cmd = NULL;", "int VAR_0 = 0, VAR_1;", "VAR_1 = s->reply_queue_head;", "while (VAR_0 < s->fw_cmds) {", "if (s->frames[VAR_1].pa && s->frames[VAR_1].pa == frame) {", "cmd = &s->frames[VAR_1];", "break;", "}", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
24,169
static int ebml_parse_elem(MatroskaDemuxContext *matroska, EbmlSyntax *syntax, void *data) { static const uint64_t max_lengths[EBML_TYPE_COUNT] = { [EBML_UINT] = 8, [EBML_FLOAT] = 8, // max. 16 MB for strings [EBML_STR] = 0x1000000, [EBML...
true
FFmpeg
77d2ef13a8fa630e5081f14bde3fd20f84c90aec
static int ebml_parse_elem(MatroskaDemuxContext *matroska, EbmlSyntax *syntax, void *data) { static const uint64_t max_lengths[EBML_TYPE_COUNT] = { [EBML_UINT] = 8, [EBML_FLOAT] = 8, [EBML_STR] = 0x1000000, [EBML_UTF8] = 0x1000000, ...
{ "code": [ " list->elem = av_realloc(list->elem, (list->nb_elem+1)*syntax->list_elem_size);" ], "line_no": [ 43 ] }
static int FUNC_0(MatroskaDemuxContext *VAR_0, EbmlSyntax *VAR_1, void *VAR_2) { static const uint64_t VAR_3[EBML_TYPE_COUNT] = { [EBML_UINT] = 8, [EBML_FLOAT] = 8, [EBML_STR] = 0x1000000, [EBML_UTF8] = 0x1000000, [EB...
[ "static int FUNC_0(MatroskaDemuxContext *VAR_0,\nEbmlSyntax *VAR_1, void *VAR_2)\n{", "static const uint64_t VAR_3[EBML_TYPE_COUNT] = {", "[EBML_UINT] = 8,\n[EBML_FLOAT] = 8,\n[EBML_STR] = 0x1000000,\n[EBML_UTF8] = 0x1000000,\n[EBML_BIN] = 0x10000000,\n};", "AVIOContext *pb = VAR_0->ctx->pb;", "uint32...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11, 15, 17, 21, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ...
24,170
static int ehci_init_transfer(EHCIPacket *p) { uint32_t cpage, offset, bytes, plen; dma_addr_t page; cpage = get_field(p->qtd.token, QTD_TOKEN_CPAGE); bytes = get_field(p->qtd.token, QTD_TOKEN_TBYTES); offset = p->qtd.bufptr[0] & ~QTD_BUFPTR_MASK; qemu_sglist_init(&p->sgl, p->queue->e...
true
qemu
791f97758e223de3290592d169f8e6339c281714
static int ehci_init_transfer(EHCIPacket *p) { uint32_t cpage, offset, bytes, plen; dma_addr_t page; cpage = get_field(p->qtd.token, QTD_TOKEN_CPAGE); bytes = get_field(p->qtd.token, QTD_TOKEN_TBYTES); offset = p->qtd.bufptr[0] & ~QTD_BUFPTR_MASK; qemu_sglist_init(&p->sgl, p->queue->e...
{ "code": [], "line_no": [] }
static int FUNC_0(EHCIPacket *VAR_0) { uint32_t cpage, offset, bytes, plen; dma_addr_t page; cpage = get_field(VAR_0->qtd.token, QTD_TOKEN_CPAGE); bytes = get_field(VAR_0->qtd.token, QTD_TOKEN_TBYTES); offset = VAR_0->qtd.bufptr[0] & ~QTD_BUFPTR_MASK; qemu_sglist_init(&VAR_0->sgl, VAR...
[ "static int FUNC_0(EHCIPacket *VAR_0)\n{", "uint32_t cpage, offset, bytes, plen;", "dma_addr_t page;", "cpage = get_field(VAR_0->qtd.token, QTD_TOKEN_CPAGE);", "bytes = get_field(VAR_0->qtd.token, QTD_TOKEN_TBYTES);", "offset = VAR_0->qtd.bufptr[0] & ~QTD_BUFPTR_MASK;", "qemu_sglist_init(&VAR_0->sgl, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 28 ], [ 30 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 48...
24,171
static target_long monitor_get_pc (const struct MonitorDef *md, int val) { CPUState *env = mon_get_cpu(); if (!env) return 0; return env->eip + env->segs[R_CS].base; }
true
qemu
09b9418c6d085a0728372aa760ebd10128a020b1
static target_long monitor_get_pc (const struct MonitorDef *md, int val) { CPUState *env = mon_get_cpu(); if (!env) return 0; return env->eip + env->segs[R_CS].base; }
{ "code": [ " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " return 0;", " if (!env)", " return 0;", " if (!env)", " return 0;", " if (!env)", " return 0;", " if (!env)", " retu...
static target_long FUNC_0 (const struct MonitorDef *md, int val) { CPUState *env = mon_get_cpu(); if (!env) return 0; return env->eip + env->segs[R_CS].base; }
[ "static target_long FUNC_0 (const struct MonitorDef *md, int val)\n{", "CPUState *env = mon_get_cpu();", "if (!env)\nreturn 0;", "return env->eip + env->segs[R_CS].base;", "}" ]
[ 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ] ]
24,172
static void gen_stswi(DisasContext *ctx) { TCGv t0; TCGv_i32 t1, t2; int nb = NB(ctx->opcode); gen_set_access_type(ctx, ACCESS_INT); /* NIP cannot be restored if the memory exception comes from an helper */ gen_update_nip(ctx, ctx->nip - 4); t0 = tcg_temp_new(); gen_addr_registe...
true
qemu
e41029b378b4a65a0b89b5a8dc087aca6b5d012d
static void gen_stswi(DisasContext *ctx) { TCGv t0; TCGv_i32 t1, t2; int nb = NB(ctx->opcode); gen_set_access_type(ctx, ACCESS_INT); gen_update_nip(ctx, ctx->nip - 4); t0 = tcg_temp_new(); gen_addr_register(ctx, t0); if (nb == 0) nb = 32; t1 = tcg_const_i32(n...
{ "code": [ " gen_update_nip(ctx, ctx->nip - 4);", " gen_update_nip(ctx, ctx->nip - 4);", " gen_update_nip(ctx, ctx->nip - 4);", " gen_update_nip(ctx, ctx->nip - 4);" ], "line_no": [ 15, 15, 15, 15 ] }
static void FUNC_0(DisasContext *VAR_0) { TCGv t0; TCGv_i32 t1, t2; int VAR_1 = NB(VAR_0->opcode); gen_set_access_type(VAR_0, ACCESS_INT); gen_update_nip(VAR_0, VAR_0->nip - 4); t0 = tcg_temp_new(); gen_addr_register(VAR_0, t0); if (VAR_1 == 0) VAR_1 = 32; t1...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "TCGv t0;", "TCGv_i32 t1, t2;", "int VAR_1 = NB(VAR_0->opcode);", "gen_set_access_type(VAR_0, ACCESS_INT);", "gen_update_nip(VAR_0, VAR_0->nip - 4);", "t0 = tcg_temp_new();", "gen_addr_register(VAR_0, t0);", "if (VAR_1 == 0)\nVAR_1 = 32;", "t1 = tcg_co...
[ 0, 0, 0, 0, 0, 1, 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 ] ]
24,173
static void bufp_alloc(USBRedirDevice *dev, uint8_t *data, int len, int status, uint8_t ep) { struct buf_packet *bufp; if (!dev->endpoint[EP2I(ep)].bufpq_dropping_packets && dev->endpoint[EP2I(ep)].bufpq_size > 2 * dev->endpoint[EP2I(ep)].bufpq_target_size) { DPRINTF("bu...
true
qemu
b2d1fe67d09d2b6c7da647fbcea6ca0148c206d3
static void bufp_alloc(USBRedirDevice *dev, uint8_t *data, int len, int status, uint8_t ep) { struct buf_packet *bufp; if (!dev->endpoint[EP2I(ep)].bufpq_dropping_packets && dev->endpoint[EP2I(ep)].bufpq_size > 2 * dev->endpoint[EP2I(ep)].bufpq_target_size) { DPRINTF("bu...
{ "code": [ "static void bufp_alloc(USBRedirDevice *dev,", " uint8_t *data, int len, int status, uint8_t ep)" ], "line_no": [ 1, 3 ] }
static void FUNC_0(USBRedirDevice *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, uint8_t VAR_4) { struct buf_packet *VAR_5; if (!VAR_0->endpoint[EP2I(VAR_4)].bufpq_dropping_packets && VAR_0->endpoint[EP2I(VAR_4)].bufpq_size > 2 * VAR_0->endpoint[EP2I(VAR_4)].bufpq_target_size) { ...
[ "static void FUNC_0(USBRedirDevice *VAR_0,\nuint8_t *VAR_1, int VAR_2, int VAR_3, uint8_t VAR_4)\n{", "struct buf_packet *VAR_5;", "if (!VAR_0->endpoint[EP2I(VAR_4)].bufpq_dropping_packets &&\nVAR_0->endpoint[EP2I(VAR_4)].bufpq_size >\n2 * VAR_0->endpoint[EP2I(VAR_4)].bufpq_target_size) {", "DPRINTF(\"bufpq o...
[ 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 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
24,174
static int vmdk_open_vmfs_sparse(BlockDriverState *bs, BlockDriverState *file, int flags, Error **errp) { int ret; uint32_t magic; VMDK3Header header; VmdkExtent *extent; ret = bdrv_pread(file, sizeof(magic), &header, sizeof...
true
qemu
7237aecd7e8fcc3ccf7fded77b6c127b4df5d3ac
static int vmdk_open_vmfs_sparse(BlockDriverState *bs, BlockDriverState *file, int flags, Error **errp) { int ret; uint32_t magic; VMDK3Header header; VmdkExtent *extent; ret = bdrv_pread(file, sizeof(magic), &header, sizeof...
{ "code": [ " le32_to_cpu(header.l1dir_offset) << 9," ], "line_no": [ 37 ] }
static int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1, int VAR_2, Error **VAR_3) { int VAR_4; uint32_t magic; VMDK3Header header; VmdkExtent *extent; VAR_4 = bdrv_pread(VAR_1, sizeof(magic), &header, sizeof(head...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nBlockDriverState *VAR_1,\nint VAR_2, Error **VAR_3)\n{", "int VAR_4;", "uint32_t magic;", "VMDK3Header header;", "VmdkExtent *extent;", "VAR_4 = bdrv_pread(VAR_1, sizeof(magic), &header, sizeof(header));", "if (VAR_4 < 0) {", "error_setg_errno(VAR_3, -VAR_4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33, 35, 37, 39, 41, 43, 45, 47, 49 ], [ 51 ], [ 53 ], [ 55 ...
24,175
static int au_write_header(AVFormatContext *s) { AVIOContext *pb = s->pb; AVCodecContext *enc = s->streams[0]->codec; if (!enc->codec_tag) return AVERROR(EINVAL); ffio_wfourcc(pb, ".snd"); /* magic number */ avio_wb32(pb, AU_HEADER_SIZE); /* header s...
true
FFmpeg
0dcfccaa691bf533b0f144b6d98b49eb59f1f3ab
static int au_write_header(AVFormatContext *s) { AVIOContext *pb = s->pb; AVCodecContext *enc = s->streams[0]->codec; if (!enc->codec_tag) return AVERROR(EINVAL); ffio_wfourcc(pb, ".snd"); avio_wb32(pb, AU_HEADER_SIZE); avio_wb32(pb, AU_UNKNOW...
{ "code": [ " if (!enc->codec_tag)" ], "line_no": [ 11 ] }
static int FUNC_0(AVFormatContext *VAR_0) { AVIOContext *pb = VAR_0->pb; AVCodecContext *enc = VAR_0->streams[0]->codec; if (!enc->codec_tag) return AVERROR(EINVAL); ffio_wfourcc(pb, ".snd"); avio_wb32(pb, AU_HEADER_SIZE); avio_wb32(pb, AU_UNK...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVIOContext *pb = VAR_0->pb;", "AVCodecContext *enc = VAR_0->streams[0]->codec;", "if (!enc->codec_tag)\nreturn AVERROR(EINVAL);", "ffio_wfourcc(pb, \".snd\");", "avio_wb32(pb, AU_HEADER_SIZE);", "avio_wb32(pb, AU_UNKNOWN_SIZE);", "avio_wb32(pb, enc->co...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
24,176
static ssize_t nbd_co_receive_request(NBDRequest *req, struct nbd_request *request) { NBDClient *client = req->client; int csock = client->sock; ssize_t rc; client->recv_coroutine = qemu_coroutine_self(); if (nbd_receive_request(csock, request) == -1) { rc = -EIO; goto out;...
false
qemu
fc19f8a02e45c4d8ad24dd7eb374330b03dfc28e
static ssize_t nbd_co_receive_request(NBDRequest *req, struct nbd_request *request) { NBDClient *client = req->client; int csock = client->sock; ssize_t rc; client->recv_coroutine = qemu_coroutine_self(); if (nbd_receive_request(csock, request) == -1) { rc = -EIO; goto out;...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(NBDRequest *req, struct nbd_request *request) { NBDClient *client = req->client; int VAR_0 = client->sock; ssize_t rc; client->recv_coroutine = qemu_coroutine_self(); if (nbd_receive_request(VAR_0, request) == -1) { rc = -EIO; goto out; } i...
[ "static ssize_t FUNC_0(NBDRequest *req, struct nbd_request *request)\n{", "NBDClient *client = req->client;", "int VAR_0 = client->sock;", "ssize_t rc;", "client->recv_coroutine = qemu_coroutine_self();", "if (nbd_receive_request(VAR_0, request) == -1) {", "rc = -EIO;", "goto out;", "}", "if (requ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
24,177
static int pci_vga_initfn(PCIDevice *dev) { PCIVGAState *d = DO_UPCAST(PCIVGAState, dev, dev); VGACommonState *s = &d->vga; uint8_t *pci_conf = d->dev.config; // vga + console init vga_common_init(s, VGA_RAM_SIZE); vga_init(s); s->ds = graphic_console_init(s->update, s->in...
false
qemu
32902772833dbe424f754d5b841d996b90be87b2
static int pci_vga_initfn(PCIDevice *dev) { PCIVGAState *d = DO_UPCAST(PCIVGAState, dev, dev); VGACommonState *s = &d->vga; uint8_t *pci_conf = d->dev.config; vga_common_init(s, VGA_RAM_SIZE); vga_init(s); s->ds = graphic_console_init(s->update, s->invalidate, ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { PCIVGAState *d = DO_UPCAST(PCIVGAState, VAR_0, VAR_0); VGACommonState *s = &d->vga; uint8_t *pci_conf = d->VAR_0.config; vga_common_init(s, VGA_RAM_SIZE); vga_init(s); s->ds = graphic_console_init(s->update, s->invalidate, ...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "PCIVGAState *d = DO_UPCAST(PCIVGAState, VAR_0, VAR_0);", "VGACommonState *s = &d->vga;", "uint8_t *pci_conf = d->VAR_0.config;", "vga_common_init(s, VGA_RAM_SIZE);", "vga_init(s);", "s->ds = graphic_console_init(s->update, s->invalidate,\ns->screen_dump, s->tex...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 29 ], [ 31 ], [ 33 ], [ 39, 41 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ] ]
24,178
void portio_list_add(PortioList *piolist, MemoryRegion *address_space, uint32_t start) { const MemoryRegionPortio *pio, *pio_start = piolist->ports; unsigned int off_low, off_high, off_last, count; piolist->address_space = address_space; /* Handle the...
false
qemu
4080a13c11398d684668d286da27b6f8ee668e44
void portio_list_add(PortioList *piolist, MemoryRegion *address_space, uint32_t start) { const MemoryRegionPortio *pio, *pio_start = piolist->ports; unsigned int off_low, off_high, off_last, count; piolist->address_space = address_space; off_las...
{ "code": [], "line_no": [] }
void FUNC_0(PortioList *VAR_0, MemoryRegion *VAR_1, uint32_t VAR_2) { const MemoryRegionPortio *VAR_3, *pio_start = VAR_0->ports; unsigned int VAR_4, VAR_5, VAR_6, VAR_7; VAR_0->VAR_1 = VAR_1; VAR_6 = VAR_4 = pio_start->offset; VAR_5 = VAR_...
[ "void FUNC_0(PortioList *VAR_0,\nMemoryRegion *VAR_1,\nuint32_t VAR_2)\n{", "const MemoryRegionPortio *VAR_3, *pio_start = VAR_0->ports;", "unsigned int VAR_4, VAR_5, VAR_6, VAR_7;", "VAR_0->VAR_1 = VAR_1;", "VAR_6 = VAR_4 = pio_start->offset;", "VAR_5 = VAR_4 + pio_start->len;", "VAR_7 = 1;", "for (V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 41 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [...
24,180
void qemu_console_resize(QEMUConsole *console, int width, int height) { if (console->g_width != width || console->g_height != height) { console->g_width = width; console->g_height = height; if (active_console == console) { dpy_resize(console->ds, width, height); } ...
false
qemu
3bba22de7cb9631452dad492c907affce6a69a3b
void qemu_console_resize(QEMUConsole *console, int width, int height) { if (console->g_width != width || console->g_height != height) { console->g_width = width; console->g_height = height; if (active_console == console) { dpy_resize(console->ds, width, height); } ...
{ "code": [], "line_no": [] }
void FUNC_0(QEMUConsole *VAR_0, int VAR_1, int VAR_2) { if (VAR_0->g_width != VAR_1 || VAR_0->g_height != VAR_2) { VAR_0->g_width = VAR_1; VAR_0->g_height = VAR_2; if (active_console == VAR_0) { dpy_resize(VAR_0->ds, VAR_1, VAR_2); } } }
[ "void FUNC_0(QEMUConsole *VAR_0, int VAR_1, int VAR_2)\n{", "if (VAR_0->g_width != VAR_1 || VAR_0->g_height != VAR_2) {", "VAR_0->g_width = VAR_1;", "VAR_0->g_height = VAR_2;", "if (active_console == VAR_0) {", "dpy_resize(VAR_0->ds, VAR_1, VAR_2);", "}", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
24,181
static void coroutine_fn bdrv_get_block_status_co_entry(void *opaque) { BdrvCoGetBlockStatusData *data = opaque; BlockDriverState *bs = data->bs; data->ret = bdrv_co_get_block_status(bs, data->sector_num, data->nb_sectors, data->pnum); data->done = true; ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static void coroutine_fn bdrv_get_block_status_co_entry(void *opaque) { BdrvCoGetBlockStatusData *data = opaque; BlockDriverState *bs = data->bs; data->ret = bdrv_co_get_block_status(bs, data->sector_num, data->nb_sectors, data->pnum); data->done = true; ...
{ "code": [], "line_no": [] }
static void VAR_0 bdrv_get_block_status_co_entry(void *opaque) { BdrvCoGetBlockStatusData *data = opaque; BlockDriverState *bs = data->bs; data->ret = bdrv_co_get_block_status(bs, data->sector_num, data->nb_sectors, data->pnum); data->done = true; }
[ "static void VAR_0 bdrv_get_block_status_co_entry(void *opaque)\n{", "BdrvCoGetBlockStatusData *data = opaque;", "BlockDriverState *bs = data->bs;", "data->ret = bdrv_co_get_block_status(bs, data->sector_num, data->nb_sectors,\ndata->pnum);", "data->done = true;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
24,182
static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8_t lo) { int ret = 0; #define COR3(var, with1, with2, with3) ( (var) == (with1) || (var) == (with2) || (var) == (with3) ) if ( hi == ctx->prev_cmd[0] && lo == ctx->prev_cmd[1]) { /* ignore redundant command */ } else...
false
FFmpeg
229843aa359ae0c9519977d7fa952688db63f559
static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8_t lo) { int ret = 0; #define COR3(var, with1, with2, with3) ( (var) == (with1) || (var) == (with2) || (var) == (with3) ) if ( hi == ctx->prev_cmd[0] && lo == ctx->prev_cmd[1]) { } else if ( (hi == 0x10 && (lo >= 0x...
{ "code": [], "line_no": [] }
static int FUNC_0(CCaptionSubContext *VAR_0, int64_t VAR_1, uint8_t VAR_2, uint8_t VAR_3) { int VAR_4 = 0; #define COR3(var, with1, with2, with3) ( (var) == (with1) || (var) == (with2) || (var) == (with3) ) if ( VAR_2 == VAR_0->prev_cmd[0] && VAR_3 == VAR_0->prev_cmd[1]) { } else if ( (VAR_2 ==...
[ "static int FUNC_0(CCaptionSubContext *VAR_0, int64_t VAR_1, uint8_t VAR_2, uint8_t VAR_3)\n{", "int VAR_4 = 0;", "#define COR3(var, with1, with2, with3) ( (var) == (with1) || (var) == (with2) || (var) == (with3) )\nif ( VAR_2 == VAR_0->prev_cmd[0] && VAR_3 == VAR_0->prev_cmd[1]) {", "} else if ( (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 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
24,183
static uint32_t vmsvga_value_read(void *opaque, uint32_t address) { uint32_t caps; struct vmsvga_state_s *s = opaque; switch (s->index) { case SVGA_REG_ID: return s->svgaid; case SVGA_REG_ENABLE: return s->enable; case SVGA_REG_WIDTH: return s->width; ...
false
qemu
0d7937974cd0504f30ad483c3368b21da426ddf9
static uint32_t vmsvga_value_read(void *opaque, uint32_t address) { uint32_t caps; struct vmsvga_state_s *s = opaque; switch (s->index) { case SVGA_REG_ID: return s->svgaid; case SVGA_REG_ENABLE: return s->enable; case SVGA_REG_WIDTH: return s->width; ...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, uint32_t address) { uint32_t caps; struct vmsvga_state_s *VAR_0 = opaque; switch (VAR_0->index) { case SVGA_REG_ID: return VAR_0->svgaid; case SVGA_REG_ENABLE: return VAR_0->enable; case SVGA_REG_WIDTH: return VAR_0->widt...
[ "static uint32_t FUNC_0(void *opaque, uint32_t address)\n{", "uint32_t caps;", "struct vmsvga_state_s *VAR_0 = opaque;", "switch (VAR_0->index) {", "case SVGA_REG_ID:\nreturn VAR_0->svgaid;", "case SVGA_REG_ENABLE:\nreturn VAR_0->enable;", "case SVGA_REG_WIDTH:\nreturn VAR_0->width;", "case SVGA_REG_H...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35, 37 ], [ 41, 43 ], [ 47, 49 ], [ 53, 55 ], [ 59, 61 ], [ 65, 67 ], [ 69,...
24,184
static void qemu_chr_parse_file_out(QemuOpts *opts, ChardevBackend *backend, Error **errp) { const char *path = qemu_opt_get(opts, "path"); ChardevFile *file; if (path == NULL) { error_setg(errp, "chardev: file: no filename given"); return; }...
false
qemu
32bafa8fdd098d52fbf1102d5a5e48d29398c0aa
static void qemu_chr_parse_file_out(QemuOpts *opts, ChardevBackend *backend, Error **errp) { const char *path = qemu_opt_get(opts, "path"); ChardevFile *file; if (path == NULL) { error_setg(errp, "chardev: file: no filename given"); return; }...
{ "code": [], "line_no": [] }
static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1, Error **VAR_2) { const char *VAR_3 = qemu_opt_get(VAR_0, "VAR_3"); ChardevFile *file; if (VAR_3 == NULL) { error_setg(VAR_2, "chardev: file: no filename given"); return; } file =...
[ "static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,\nError **VAR_2)\n{", "const char *VAR_3 = qemu_opt_get(VAR_0, \"VAR_3\");", "ChardevFile *file;", "if (VAR_3 == NULL) {", "error_setg(VAR_2, \"chardev: file: no filename given\");", "return;", "}", "file = VAR_1->u.file = g_new0(ChardevFile, ...
[ 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 ], [ 29 ], [ 31 ], [ 33 ] ]
24,185
nvdimm_dsm_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { AcpiNVDIMMState *state = opaque; NvdimmDsmIn *in; hwaddr dsm_mem_addr = val; nvdimm_debug("dsm memory address %#" HWADDR_PRIx ".\n", dsm_mem_addr); /* * The DSM memory is mapped to guest address space so an ev...
false
qemu
c2fa30757a2ba1bb5b053883773a9a61fbdd7082
nvdimm_dsm_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { AcpiNVDIMMState *state = opaque; NvdimmDsmIn *in; hwaddr dsm_mem_addr = val; nvdimm_debug("dsm memory address %#" HWADDR_PRIx ".\n", dsm_mem_addr); in = g_new(NvdimmDsmIn, 1); cpu_physical_memory_...
{ "code": [], "line_no": [] }
FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { AcpiNVDIMMState *state = VAR_0; NvdimmDsmIn *in; hwaddr dsm_mem_addr = VAR_2; nvdimm_debug("dsm memory address %#" HWADDR_PRIx ".\n", dsm_mem_addr); in = g_new(NvdimmDsmIn, 1); cpu_physical_memory_read(d...
[ "FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3)\n{", "AcpiNVDIMMState *state = VAR_0;", "NvdimmDsmIn *in;", "hwaddr dsm_mem_addr = VAR_2;", "nvdimm_debug(\"dsm memory address %#\" HWADDR_PRIx \".\\n\", dsm_mem_addr);", "in = g_new(NvdimmDsmIn, 1);", "cpu_physical_memory_read(dsm_mem_a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ...
24,186
static BlockDriverAIOCB *hdev_aio_ioctl(BlockDriverState *bs, unsigned long int req, void *buf, BlockDriverCompletionFunc *cb, void *opaque) { BDRVRawState *s = bs->opaque; if (fd_open(bs) < 0) return NULL; return paio_ioctl(bs, s->fd, req, buf, cb, opaque); }
false
qemu
c208e8c2d88eea2bbafc2850d8856525637e495d
static BlockDriverAIOCB *hdev_aio_ioctl(BlockDriverState *bs, unsigned long int req, void *buf, BlockDriverCompletionFunc *cb, void *opaque) { BDRVRawState *s = bs->opaque; if (fd_open(bs) < 0) return NULL; return paio_ioctl(bs, s->fd, req, buf, cb, opaque); }
{ "code": [], "line_no": [] }
static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, unsigned long int req, void *buf, BlockDriverCompletionFunc *cb, void *opaque) { BDRVRawState *s = bs->opaque; if (fd_open(bs) < 0) return NULL; return paio_ioctl(bs, s->fd, req, buf, cb, opaque); }
[ "static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,\nunsigned long int req, void *buf,\nBlockDriverCompletionFunc *cb, void *opaque)\n{", "BDRVRawState *s = bs->opaque;", "if (fd_open(bs) < 0)\nreturn NULL;", "return paio_ioctl(bs, s->fd, req, buf, cb, opaque);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ] ]
24,187
static void qxl_init_ramsize(PCIQXLDevice *qxl) { /* vga mode framebuffer / primary surface (bar 0, first part) */ if (qxl->vgamem_size_mb < 8) { qxl->vgamem_size_mb = 8; } /* XXX: we round vgamem_size_mb up to a nearest power of two and it must be * less than vga_common_init()'s max...
false
qemu
de1b9b85eff3dca42fe2cabe6e026cd2a2d5c769
static void qxl_init_ramsize(PCIQXLDevice *qxl) { if (qxl->vgamem_size_mb < 8) { qxl->vgamem_size_mb = 8; } if (qxl->vgamem_size_mb > 256) { qxl->vgamem_size_mb = 256; } qxl->vgamem_size = qxl->vgamem_size_mb * 1024 * 1024; if (qxl->ram_size_mb !=...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIQXLDevice *VAR_0) { if (VAR_0->vgamem_size_mb < 8) { VAR_0->vgamem_size_mb = 8; } if (VAR_0->vgamem_size_mb > 256) { VAR_0->vgamem_size_mb = 256; } VAR_0->vgamem_size = VAR_0->vgamem_size_mb * 1024 * 1024; if (VAR_0->ram_size...
[ "static void FUNC_0(PCIQXLDevice *VAR_0)\n{", "if (VAR_0->vgamem_size_mb < 8) {", "VAR_0->vgamem_size_mb = 8;", "}", "if (VAR_0->vgamem_size_mb > 256) {", "VAR_0->vgamem_size_mb = 256;", "}", "VAR_0->vgamem_size = VAR_0->vgamem_size_mb * 1024 * 1024;", "if (VAR_0->ram_size_mb != -1) {", "VAR_0->vg...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57...
24,188
static int rtl8139_config_writable(RTL8139State *s) { if (s->Cfg9346 & Cfg9346_Unlock) { return 1; } DPRINTF("Configuration registers are write-protected\n"); return 0; }
false
qemu
eb46c5eda7d8b38c1407dd55f67cf4a6aa3b7b23
static int rtl8139_config_writable(RTL8139State *s) { if (s->Cfg9346 & Cfg9346_Unlock) { return 1; } DPRINTF("Configuration registers are write-protected\n"); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(RTL8139State *VAR_0) { if (VAR_0->Cfg9346 & Cfg9346_Unlock) { return 1; } DPRINTF("Configuration registers are write-protected\n"); return 0; }
[ "static int FUNC_0(RTL8139State *VAR_0)\n{", "if (VAR_0->Cfg9346 & Cfg9346_Unlock)\n{", "return 1;", "}", "DPRINTF(\"Configuration registers are write-protected\\n\");", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ] ]
24,189
static int vfio_container_do_ioctl(AddressSpace *as, int32_t groupid, int req, void *param) { VFIOGroup *group; VFIOContainer *container; int ret = -1; group = vfio_get_group(groupid, as); if (!group) { error_report("vfio: group %d not registered"...
false
qemu
3356128cd13d7ec7689b7cddd3efbfbc5339a262
static int vfio_container_do_ioctl(AddressSpace *as, int32_t groupid, int req, void *param) { VFIOGroup *group; VFIOContainer *container; int ret = -1; group = vfio_get_group(groupid, as); if (!group) { error_report("vfio: group %d not registered"...
{ "code": [], "line_no": [] }
static int FUNC_0(AddressSpace *VAR_0, int32_t VAR_1, int VAR_2, void *VAR_3) { VFIOGroup *group; VFIOContainer *container; int VAR_4 = -1; group = vfio_get_group(VAR_1, VAR_0); if (!group) { error_report("vfio: group %d not registered", VAR_1); ...
[ "static int FUNC_0(AddressSpace *VAR_0, int32_t VAR_1,\nint VAR_2, void *VAR_3)\n{", "VFIOGroup *group;", "VFIOContainer *container;", "int VAR_4 = -1;", "group = vfio_get_group(VAR_1, VAR_0);", "if (!group) {", "error_report(\"vfio: group %d not registered\", VAR_1);", "return VAR_4;", "}", "cont...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ...
24,190
void vnc_flush(VncState *vs) { vnc_lock_output(vs); if (vs->csock != -1 && (vs->output.offset #ifdef CONFIG_VNC_WS || vs->ws_output.offset #endif )) { vnc_client_write_locked(vs); } vnc_unlock_output(vs); }
false
qemu
8e9b0d24fb986d4241ae3b77752eca5dab4cb486
void vnc_flush(VncState *vs) { vnc_lock_output(vs); if (vs->csock != -1 && (vs->output.offset #ifdef CONFIG_VNC_WS || vs->ws_output.offset #endif )) { vnc_client_write_locked(vs); } vnc_unlock_output(vs); }
{ "code": [], "line_no": [] }
void FUNC_0(VncState *VAR_0) { vnc_lock_output(VAR_0); if (VAR_0->csock != -1 && (VAR_0->output.offset #ifdef CONFIG_VNC_WS || VAR_0->ws_output.offset #endif )) { vnc_client_write_locked(VAR_0); } vnc_unlock_output(VAR_0); }
[ "void FUNC_0(VncState *VAR_0)\n{", "vnc_lock_output(VAR_0);", "if (VAR_0->csock != -1 && (VAR_0->output.offset\n#ifdef CONFIG_VNC_WS\n|| VAR_0->ws_output.offset\n#endif\n)) {", "vnc_client_write_locked(VAR_0);", "}", "vnc_unlock_output(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
24,191
static float32 roundAndPackFloat32( flag zSign, int16 zExp, bits32 zSig STATUS_PARAM) { int8 roundingMode; flag roundNearestEven; int8 roundIncrement, roundBits; flag isTiny; roundingMode = STATUS(float_rounding_mode); roundNearestEven = ( roundingMode == float_round_nearest_even ); ...
false
qemu
f090c9d4ad5812fb92843d6470a1111c15190c4c
static float32 roundAndPackFloat32( flag zSign, int16 zExp, bits32 zSig STATUS_PARAM) { int8 roundingMode; flag roundNearestEven; int8 roundIncrement, roundBits; flag isTiny; roundingMode = STATUS(float_rounding_mode); roundNearestEven = ( roundingMode == float_round_nearest_even ); ...
{ "code": [], "line_no": [] }
static float32 FUNC_0( flag zSign, int16 zExp, bits32 zSig STATUS_PARAM) { int8 roundingMode; flag roundNearestEven; int8 roundIncrement, roundBits; flag isTiny; roundingMode = STATUS(float_rounding_mode); roundNearestEven = ( roundingMode == float_round_nearest_even ); roundIncrem...
[ "static float32 FUNC_0( flag zSign, int16 zExp, bits32 zSig STATUS_PARAM)\n{", "int8 roundingMode;", "flag roundNearestEven;", "int8 roundIncrement, roundBits;", "flag isTiny;", "roundingMode = STATUS(float_rounding_mode);", "roundNearestEven = ( roundingMode == float_round_nearest_even );", "roundInc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
24,192
static void omap_lpg_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_lpg_s *s = (struct omap_lpg_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (size != 1) { return omap_badwidth_write8(opaque, addr, value); }...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void omap_lpg_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_lpg_s *s = (struct omap_lpg_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (size != 1) { return omap_badwidth_write8(opaque, addr, value); }...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { struct omap_lpg_s *VAR_4 = (struct omap_lpg_s *) VAR_0; int VAR_5 = VAR_1 & OMAP_MPUI_REG_MASK; if (VAR_3 != 1) { return omap_badwidth_write8(VAR_0, VAR_1, VAR_2); } ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "struct omap_lpg_s *VAR_4 = (struct omap_lpg_s *) VAR_0;", "int VAR_5 = VAR_1 & OMAP_MPUI_REG_MASK;", "if (VAR_3 != 1) {", "return omap_badwidth_write8(VAR_0, VAR_1, VAR_2);", "}", "switch (VAR_5) {", "cas...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [ 53 ], [...
24,193
static int h264_find_frame_end(H264ParseContext *p, const uint8_t *buf, int buf_size) { int i; uint32_t state; ParseContext *pc = &p->pc; // mb_addr= pc->mb_addr - 1; state = pc->state; if (state > 13) state = 7; for (i = 0; i < buf_size; i++...
false
FFmpeg
5c2fb561d94fc51d76ab21d6f7cc5b6cc3aa599c
static int h264_find_frame_end(H264ParseContext *p, const uint8_t *buf, int buf_size) { int i; uint32_t state; ParseContext *pc = &p->pc; state = pc->state; if (state > 13) state = 7; for (i = 0; i < buf_size; i++) { if (state == 7) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(H264ParseContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { int VAR_3; uint32_t state; ParseContext *pc = &VAR_0->pc; state = pc->state; if (state > 13) state = 7; for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) { if (state =...
[ "static int FUNC_0(H264ParseContext *VAR_0, const uint8_t *VAR_1,\nint VAR_2)\n{", "int VAR_3;", "uint32_t state;", "ParseContext *pc = &VAR_0->pc;", "state = pc->state;", "if (state > 13)\nstate = 7;", "for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) {", "if (state == 7) {", "VAR_3 += VAR_0->h264dsp.startc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51,...
24,194
static uint64_t omap_mpu_timer_read(void *opaque, target_phys_addr_t addr, unsigned size) { struct omap_mpu_timer_s *s = (struct omap_mpu_timer_s *) opaque; if (size != 4) { return omap_badwidth_read32(opaque, addr); } switch (addr) { case 0x00...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t omap_mpu_timer_read(void *opaque, target_phys_addr_t addr, unsigned size) { struct omap_mpu_timer_s *s = (struct omap_mpu_timer_s *) opaque; if (size != 4) { return omap_badwidth_read32(opaque, addr); } switch (addr) { case 0x00...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { struct omap_mpu_timer_s *VAR_0 = (struct omap_mpu_timer_s *) opaque; if (size != 4) { return omap_badwidth_read32(opaque, addr); } switch (addr) { case 0x00: ...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "struct omap_mpu_timer_s *VAR_0 = (struct omap_mpu_timer_s *) opaque;", "if (size != 4) {", "return omap_badwidth_read32(opaque, addr);", "}", "switch (addr) {", "case 0x00:\nreturn (VAR_0->enable << 5) | (VAR_0->ptv << ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 27, 29 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ] ]
24,195
void bdrv_close(BlockDriverState *bs) { BdrvAioNotifier *ban, *ban_next; if (bs->job) { block_job_cancel_sync(bs->job); } /* Disable I/O limits and drain all pending throttled requests */ if (bs->io_limits_enabled) { bdrv_io_limits_disable(bs); } bdrv_drain(bs...
false
qemu
b4d02820d95e025e57d82144f7b2ccd677ac2418
void bdrv_close(BlockDriverState *bs) { BdrvAioNotifier *ban, *ban_next; if (bs->job) { block_job_cancel_sync(bs->job); } if (bs->io_limits_enabled) { bdrv_io_limits_disable(bs); } bdrv_drain(bs); bdrv_flush(bs); bdrv_drain(bs); notifier_list...
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0) { BdrvAioNotifier *ban, *ban_next; if (VAR_0->job) { block_job_cancel_sync(VAR_0->job); } if (VAR_0->io_limits_enabled) { bdrv_io_limits_disable(VAR_0); } bdrv_drain(VAR_0); bdrv_flush(VAR_0); bdrv_drain(VAR_0);...
[ "void FUNC_0(BlockDriverState *VAR_0)\n{", "BdrvAioNotifier *ban, *ban_next;", "if (VAR_0->job) {", "block_job_cancel_sync(VAR_0->job);", "}", "if (VAR_0->io_limits_enabled) {", "bdrv_io_limits_disable(VAR_0);", "}", "bdrv_drain(VAR_0);", "bdrv_flush(VAR_0);", "bdrv_drain(VAR_0);", "notifier_l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ], [ 57...
24,196
void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds, int select_error) { }
false
qemu
8917c3bdba37d6fe4393db0fad3fabbde9530d6b
void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds, int select_error) { }
{ "code": [], "line_no": [] }
void FUNC_0(fd_set *VAR_0, fd_set *VAR_1, fd_set *VAR_2, int VAR_3) { }
[ "void FUNC_0(fd_set *VAR_0, fd_set *VAR_1,\nfd_set *VAR_2, int VAR_3)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ] ]
24,197
struct omap_mcbsp_s *omap_mcbsp_init(MemoryRegion *system_memory, target_phys_addr_t base, qemu_irq *irq, qemu_irq *dma, omap_clk clk) { struct omap_mcbsp_s *s = (struct omap_mcbsp_s *) g_malloc0(sizeof(struct omap_mcbsp_s)); s->txirq = irq[0]; s->rxirq =...
false
qemu
0919ac787641db11024912651f3bc5764d4f1286
struct omap_mcbsp_s *omap_mcbsp_init(MemoryRegion *system_memory, target_phys_addr_t base, qemu_irq *irq, qemu_irq *dma, omap_clk clk) { struct omap_mcbsp_s *s = (struct omap_mcbsp_s *) g_malloc0(sizeof(struct omap_mcbsp_s)); s->txirq = irq[0]; s->rxirq =...
{ "code": [], "line_no": [] }
struct omap_mcbsp_s *FUNC_0(MemoryRegion *VAR_0, target_phys_addr_t VAR_1, qemu_irq *VAR_2, qemu_irq *VAR_3, omap_clk VAR_4) { struct omap_mcbsp_s *VAR_5 = (struct omap_mcbsp_s *) g_malloc0(sizeof(struct omap_mcbsp_s)); VAR_5->txirq = VAR_2[0]; VAR_5->rxi...
[ "struct omap_mcbsp_s *FUNC_0(MemoryRegion *VAR_0,\ntarget_phys_addr_t VAR_1,\nqemu_irq *VAR_2, qemu_irq *VAR_3, omap_clk VAR_4)\n{", "struct omap_mcbsp_s *VAR_5 = (struct omap_mcbsp_s *)\ng_malloc0(sizeof(struct omap_mcbsp_s));", "VAR_5->txirq = VAR_2[0];", "VAR_5->rxirq = VAR_2[1];", "VAR_5->txdrq = VAR_3[...
[ 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 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
24,198
static target_ulong h_rtas(PowerPCCPU *cpu, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { target_ulong rtas_r3 = args[0]; uint32_t token = ldl_be_phys(rtas_r3); uint32_t nargs = ldl_be_phys(rtas_r3 + 4); uint32_t nret = ldl_be_phys(rtas_r3 + 8); ...
false
qemu
210b580b106fa798149e28aa13c66b325a43204e
static target_ulong h_rtas(PowerPCCPU *cpu, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { target_ulong rtas_r3 = args[0]; uint32_t token = ldl_be_phys(rtas_r3); uint32_t nargs = ldl_be_phys(rtas_r3 + 4); uint32_t nret = ldl_be_phys(rtas_r3 + 8); ...
{ "code": [], "line_no": [] }
static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { target_ulong rtas_r3 = args[0]; uint32_t token = ldl_be_phys(rtas_r3); uint32_t nargs = ldl_be_phys(rtas_r3 + 4); uint32_t nret = ldl_be_phys(rtas_r3 + 8); ...
[ "static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPREnvironment *spapr,\ntarget_ulong opcode, target_ulong *args)\n{", "target_ulong rtas_r3 = args[0];", "uint32_t token = ldl_be_phys(rtas_r3);", "uint32_t nargs = ldl_be_phys(rtas_r3 + 4);", "uint32_t nret = ldl_be_phys(rtas_r3 + 8);", "return spapr_rtas_ca...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ] ]
24,202
static void do_info_balloon(Monitor *mon, QObject **ret_data) { ram_addr_t actual; actual = qemu_balloon_status(); if (kvm_enabled() && !kvm_has_sync_mmu()) qemu_error_new(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon"); else if (actual == 0) qemu_error_new(QERR_DEVICE_NOT_A...
false
qemu
cfdf2c40577ed99bb19cdc05d0537e2808d77a78
static void do_info_balloon(Monitor *mon, QObject **ret_data) { ram_addr_t actual; actual = qemu_balloon_status(); if (kvm_enabled() && !kvm_has_sync_mmu()) qemu_error_new(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon"); else if (actual == 0) qemu_error_new(QERR_DEVICE_NOT_A...
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0, QObject **VAR_1) { ram_addr_t actual; actual = qemu_balloon_status(); if (kvm_enabled() && !kvm_has_sync_mmu()) qemu_error_new(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon"); else if (actual == 0) qemu_error_new(QERR_DEVICE_NOT_ACTIVE, "ba...
[ "static void FUNC_0(Monitor *VAR_0, QObject **VAR_1)\n{", "ram_addr_t actual;", "actual = qemu_balloon_status();", "if (kvm_enabled() && !kvm_has_sync_mmu())\nqemu_error_new(QERR_KVM_MISSING_CAP, \"synchronous MMU\", \"balloon\");", "else if (actual == 0)\nqemu_error_new(QERR_DEVICE_NOT_ACTIVE, \"balloon\")...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ] ]
24,203
static void virtio_scsi_hotplug(SCSIBus *bus, SCSIDevice *dev) { VirtIOSCSI *s = container_of(bus, VirtIOSCSI, bus); if (((s->vdev.guest_features >> VIRTIO_SCSI_F_HOTPLUG) & 1) && (s->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) { virtio_scsi_push_event(s, dev, VIRTIO_SCSI_T_TRANSPORT_RESET,...
false
qemu
cd41a671b370a3dd603963432d2b02f1e5990fb7
static void virtio_scsi_hotplug(SCSIBus *bus, SCSIDevice *dev) { VirtIOSCSI *s = container_of(bus, VirtIOSCSI, bus); if (((s->vdev.guest_features >> VIRTIO_SCSI_F_HOTPLUG) & 1) && (s->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) { virtio_scsi_push_event(s, dev, VIRTIO_SCSI_T_TRANSPORT_RESET,...
{ "code": [], "line_no": [] }
static void FUNC_0(SCSIBus *VAR_0, SCSIDevice *VAR_1) { VirtIOSCSI *s = container_of(VAR_0, VirtIOSCSI, VAR_0); if (((s->vdev.guest_features >> VIRTIO_SCSI_F_HOTPLUG) & 1) && (s->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) { virtio_scsi_push_event(s, VAR_1, VIRTIO_SCSI_T_TRANSPORT_RESET, ...
[ "static void FUNC_0(SCSIBus *VAR_0, SCSIDevice *VAR_1)\n{", "VirtIOSCSI *s = container_of(VAR_0, VirtIOSCSI, VAR_0);", "if (((s->vdev.guest_features >> VIRTIO_SCSI_F_HOTPLUG) & 1) &&\n(s->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) {", "virtio_scsi_push_event(s, VAR_1, VIRTIO_SCSI_T_TRANSPORT_RESET,\nVIRTIO_SCS...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19 ] ]
24,204
void qio_channel_socket_listen_async(QIOChannelSocket *ioc, SocketAddressLegacy *addr, QIOTaskFunc callback, gpointer opaque, GDestroyNotify destroy) { QIOTask *t...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
void qio_channel_socket_listen_async(QIOChannelSocket *ioc, SocketAddressLegacy *addr, QIOTaskFunc callback, gpointer opaque, GDestroyNotify destroy) { QIOTask *t...
{ "code": [], "line_no": [] }
void FUNC_0(QIOChannelSocket *VAR_0, SocketAddressLegacy *VAR_1, QIOTaskFunc VAR_2, gpointer VAR_3, GDestroyNotify VAR_4) { QIOTask *task = qio_task_new( ...
[ "void FUNC_0(QIOChannelSocket *VAR_0,\nSocketAddressLegacy *VAR_1,\nQIOTaskFunc VAR_2,\ngpointer VAR_3,\nGDestroyNotify VAR_4)\n{", "QIOTask *task = qio_task_new(\nOBJECT(VAR_0), VAR_2, VAR_3, VAR_4);", "SocketAddressLegacy *addrCopy;", "addrCopy = QAPI_CLONE(SocketAddressLegacy, VAR_1);", "trace_qio_channe...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13, 15 ], [ 17 ], [ 21 ], [ 27 ], [ 29, 31, 33, 35 ], [ 37 ] ]
24,207
static void bmdma_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { BMDMAState *bm = opaque; if (size != 1) { return; } #ifdef DEBUG_IDE printf("bmdma: writeb 0x%02x : 0x%02x\n", addr, val); #endif switch (addr & 3) { case ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void bmdma_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { BMDMAState *bm = opaque; if (size != 1) { return; } #ifdef DEBUG_IDE printf("bmdma: writeb 0x%02x : 0x%02x\n", addr, val); #endif switch (addr & 3) { case ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { BMDMAState *bm = VAR_0; if (VAR_3 != 1) { return; } #ifdef DEBUG_IDE printf("bmdma: writeb 0x%02x : 0x%02x\n", VAR_1, VAR_2); #endif switch (VAR_1 & 3) { cas...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "BMDMAState *bm = VAR_0;", "if (VAR_3 != 1) {", "return;", "}", "#ifdef DEBUG_IDE\nprintf(\"bmdma: writeb 0x%02x : 0x%02x\\n\", VAR_1, VAR_2);", "#endif\nswitch (VAR_1 & 3) {", "case 0:\nbmdma_cmd_writeb(b...
[ 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 ] ]
24,208
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret, open_flags; char tmp_filename[PATH_MAX]; char backing_filename[PATH_MAX]; bs->is_temporary = 0; bs->encrypted = 0; bs->valid_key = 0; bs->open_flags = flags; /* buf...
false
qemu
84a12e6648444f517055138a7d7f25a22d7e1029
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret, open_flags; char tmp_filename[PATH_MAX]; char backing_filename[PATH_MAX]; bs->is_temporary = 0; bs->encrypted = 0; bs->valid_key = 0; bs->open_flags = flags; ...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2, BlockDriver *VAR_3) { int VAR_4, VAR_5; char VAR_6[PATH_MAX]; char VAR_7[PATH_MAX]; VAR_0->is_temporary = 0; VAR_0->encrypted = 0; VAR_0->valid_key = 0; VAR_0->VAR_5 = VAR_2; VAR_0->buffer_a...
[ "int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2,\nBlockDriver *VAR_3)\n{", "int VAR_4, VAR_5;", "char VAR_6[PATH_MAX];", "char VAR_7[PATH_MAX];", "VAR_0->is_temporary = 0;", "VAR_0->encrypted = 0;", "VAR_0->valid_key = 0;", "VAR_0->VAR_5 = VAR_2;", "VAR_0->buffer_alignment = 512;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [...
24,209
static uint32_t omap_l4_io_readw(void *opaque, target_phys_addr_t addr) { unsigned int i = (addr - OMAP2_L4_BASE) >> TARGET_PAGE_BITS; return omap_l4_io_readw_fn[i](omap_l4_io_opaque[i], addr); }
false
qemu
92c0bba9a95739c92e959fe478cb1acb92fa5446
static uint32_t omap_l4_io_readw(void *opaque, target_phys_addr_t addr) { unsigned int i = (addr - OMAP2_L4_BASE) >> TARGET_PAGE_BITS; return omap_l4_io_readw_fn[i](omap_l4_io_opaque[i], addr); }
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr) { unsigned int VAR_0 = (addr - OMAP2_L4_BASE) >> TARGET_PAGE_BITS; return omap_l4_io_readw_fn[VAR_0](omap_l4_io_opaque[VAR_0], addr); }
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{", "unsigned int VAR_0 = (addr - OMAP2_L4_BASE) >> TARGET_PAGE_BITS;", "return omap_l4_io_readw_fn[VAR_0](omap_l4_io_opaque[VAR_0], addr);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
24,210
PCIBus *typhoon_init(ram_addr_t ram_size, ISABus **isa_bus, qemu_irq *p_rtc_irq, AlphaCPU *cpus[4], pci_map_irq_fn sys_map_irq) { const uint64_t MB = 1024 * 1024; const uint64_t GB = 1024 * MB; MemoryRegion *addr_space = get_system_memory(); DeviceState *...
false
qemu
3661049fec64ffd7ab008e57e396881c6a4b53a4
PCIBus *typhoon_init(ram_addr_t ram_size, ISABus **isa_bus, qemu_irq *p_rtc_irq, AlphaCPU *cpus[4], pci_map_irq_fn sys_map_irq) { const uint64_t MB = 1024 * 1024; const uint64_t GB = 1024 * MB; MemoryRegion *addr_space = get_system_memory(); DeviceState *...
{ "code": [], "line_no": [] }
PCIBus *FUNC_0(ram_addr_t ram_size, ISABus **isa_bus, qemu_irq *p_rtc_irq, AlphaCPU *cpus[4], pci_map_irq_fn sys_map_irq) { const uint64_t VAR_0 = 1024 * 1024; const uint64_t VAR_1 = 1024 * VAR_0; MemoryRegion *addr_space = get_system_memory(); DeviceStat...
[ "PCIBus *FUNC_0(ram_addr_t ram_size, ISABus **isa_bus,\nqemu_irq *p_rtc_irq,\nAlphaCPU *cpus[4], pci_map_irq_fn sys_map_irq)\n{", "const uint64_t VAR_0 = 1024 * 1024;", "const uint64_t VAR_1 = 1024 * VAR_0;", "MemoryRegion *addr_space = get_system_memory();", "DeviceState *dev;", "TyphoonState *s;", "PC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51, 53 ...
24,211
static void qmp_output_end_struct(Visitor *v, void **obj) { QmpOutputVisitor *qov = to_qov(v); QObject *value = qmp_output_pop(qov, obj); assert(qobject_type(value) == QTYPE_QDICT); }
false
qemu
7d5e199ade76c53ec316ab6779800581bb47c50a
static void qmp_output_end_struct(Visitor *v, void **obj) { QmpOutputVisitor *qov = to_qov(v); QObject *value = qmp_output_pop(qov, obj); assert(qobject_type(value) == QTYPE_QDICT); }
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, void **VAR_1) { QmpOutputVisitor *qov = to_qov(VAR_0); QObject *value = qmp_output_pop(qov, VAR_1); assert(qobject_type(value) == QTYPE_QDICT); }
[ "static void FUNC_0(Visitor *VAR_0, void **VAR_1)\n{", "QmpOutputVisitor *qov = to_qov(VAR_0);", "QObject *value = qmp_output_pop(qov, VAR_1);", "assert(qobject_type(value) == QTYPE_QDICT);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
24,214
static void pmuserenr_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { env->cp15.c9_pmuserenr = value & 1; }
false
qemu
6ecd0b6ba0591ef280ed984103924d4bdca5ac32
static void pmuserenr_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { env->cp15.c9_pmuserenr = value & 1; }
{ "code": [], "line_no": [] }
static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2) { VAR_0->cp15.c9_pmuserenr = VAR_2 & 1; }
[ "static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1,\nuint64_t VAR_2)\n{", "VAR_0->cp15.c9_pmuserenr = VAR_2 & 1;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
24,215
static int parse_drive(DeviceState *dev, Property *prop, const char *str) { DriveInfo **ptr = qdev_get_prop_ptr(dev, prop); *ptr = drive_get_by_id(str); if (*ptr == NULL) return -ENOENT; return 0; }
false
qemu
f8b6cc0070aab8b75bd082582c829be1353f395f
static int parse_drive(DeviceState *dev, Property *prop, const char *str) { DriveInfo **ptr = qdev_get_prop_ptr(dev, prop); *ptr = drive_get_by_id(str); if (*ptr == NULL) return -ENOENT; return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2) { DriveInfo **ptr = qdev_get_prop_ptr(VAR_0, VAR_1); *ptr = drive_get_by_id(VAR_2); if (*ptr == NULL) return -ENOENT; return 0; }
[ "static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)\n{", "DriveInfo **ptr = qdev_get_prop_ptr(VAR_0, VAR_1);", "*ptr = drive_get_by_id(VAR_2);", "if (*ptr == NULL)\nreturn -ENOENT;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
24,216
void put_pixels8_xy2_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h) { POWERPC_TBL_DECLARE(altivec_put_pixels8_xy2_num, 1); #ifdef ALTIVEC_USE_REFERENCE_C_CODE int j; POWERPC_TBL_START_COUNT(altivec_put_pixels8_xy2_num, 1); for (j = 0; j < 2; j++) { int i; const uint32_t...
false
FFmpeg
e45a2872fafe631c14aee9f79d0963d68c4fc1fd
void put_pixels8_xy2_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h) { POWERPC_TBL_DECLARE(altivec_put_pixels8_xy2_num, 1); #ifdef ALTIVEC_USE_REFERENCE_C_CODE int j; POWERPC_TBL_START_COUNT(altivec_put_pixels8_xy2_num, 1); for (j = 0; j < 2; j++) { int i; const uint32_t...
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3) { POWERPC_TBL_DECLARE(altivec_put_pixels8_xy2_num, 1); #ifdef ALTIVEC_USE_REFERENCE_C_CODE int j; POWERPC_TBL_START_COUNT(altivec_put_pixels8_xy2_num, 1); for (j = 0; j < 2; j++) { int VAR_4; const uint32_t a = (((const ...
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3)\n{", "POWERPC_TBL_DECLARE(altivec_put_pixels8_xy2_num, 1);", "#ifdef ALTIVEC_USE_REFERENCE_C_CODE\nint j;", "POWERPC_TBL_START_COUNT(altivec_put_pixels8_xy2_num, 1);", "for (j = 0; j < 2; j++) {", "int VAR_4;", "const uint32_t a = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45,...
24,217
void cpu_x86_interrupt(CPUX86State *s) { s->interrupt_request = 1; }
false
qemu
e4533c7a8cdcc79ccdf695f0aaa2e23a5b926ed0
void cpu_x86_interrupt(CPUX86State *s) { s->interrupt_request = 1; }
{ "code": [], "line_no": [] }
void FUNC_0(CPUX86State *VAR_0) { VAR_0->interrupt_request = 1; }
[ "void FUNC_0(CPUX86State *VAR_0)\n{", "VAR_0->interrupt_request = 1;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
24,220
void hmp_block_stream(Monitor *mon, const QDict *qdict) { Error *error = NULL; const char *device = qdict_get_str(qdict, "device"); const char *base = qdict_get_try_str(qdict, "base"); qmp_block_stream(device, base != NULL, base, &error); hmp_handle_error(mon, &error); }
false
qemu
c83c66c3b58893a4dc056e272822beb88fe9ec7f
void hmp_block_stream(Monitor *mon, const QDict *qdict) { Error *error = NULL; const char *device = qdict_get_str(qdict, "device"); const char *base = qdict_get_try_str(qdict, "base"); qmp_block_stream(device, base != NULL, base, &error); hmp_handle_error(mon, &error); }
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { Error *error = NULL; const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2"); const char *VAR_3 = qdict_get_try_str(VAR_1, "VAR_3"); qmp_block_stream(VAR_2, VAR_3 != NULL, VAR_3, &error); hmp_handle_error(VAR_0, &error); }
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "Error *error = NULL;", "const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");", "const char *VAR_3 = qdict_get_try_str(VAR_1, \"VAR_3\");", "qmp_block_stream(VAR_2, VAR_3 != NULL, VAR_3, &error);", "hmp_handle_error(VAR_0, &error);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ] ]
24,223
static int flic_read_packet(AVFormatContext *s, AVPacket *pkt) { FlicDemuxContext *flic = (FlicDemuxContext *)s->priv_data; ByteIOContext *pb = &s->pb; int packet_read = 0; unsigned int size; int magic; int ret = 0; unsigned char preamble[FLIC_PREAMBLE_SI...
true
FFmpeg
0ecca7a49f8e254c12a3a1de048d738bfbb614c6
static int flic_read_packet(AVFormatContext *s, AVPacket *pkt) { FlicDemuxContext *flic = (FlicDemuxContext *)s->priv_data; ByteIOContext *pb = &s->pb; int packet_read = 0; unsigned int size; int magic; int ret = 0; unsigned char preamble[FLIC_PREAMBLE_SI...
{ "code": [ " if ((magic == FLIC_CHUNK_MAGIC_1) || (magic == FLIC_CHUNK_MAGIC_2)) {" ], "line_no": [ 45 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { FlicDemuxContext *flic = (FlicDemuxContext *)VAR_0->priv_data; ByteIOContext *pb = &VAR_0->pb; int VAR_2 = 0; unsigned int VAR_3; int VAR_4; int VAR_5 = 0; unsigned char VAR_6[FLIC_PREAMBLE_SIZE...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{", "FlicDemuxContext *flic = (FlicDemuxContext *)VAR_0->priv_data;", "ByteIOContext *pb = &VAR_0->pb;", "int VAR_2 = 0;", "unsigned int VAR_3;", "int VAR_4;", "int VAR_5 = 0;", "unsigned char VAR_6[FLIC_PREAMBLE_SIZE];", "while (!VAR_2) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
24,225
static int get_ref_idx(AVFrame *frame) { FrameDecodeData *fdd; NVDECFrame *cf; if (!frame || !frame->private_ref) return -1; fdd = (FrameDecodeData*)frame->private_ref->data; cf = (NVDECFrame*)fdd->hwaccel_priv; return cf->idx; }
false
FFmpeg
4c7b023d56e09a78a587d036db1b64bf7c493b3d
static int get_ref_idx(AVFrame *frame) { FrameDecodeData *fdd; NVDECFrame *cf; if (!frame || !frame->private_ref) return -1; fdd = (FrameDecodeData*)frame->private_ref->data; cf = (NVDECFrame*)fdd->hwaccel_priv; return cf->idx; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVFrame *VAR_0) { FrameDecodeData *fdd; NVDECFrame *cf; if (!VAR_0 || !VAR_0->private_ref) return -1; fdd = (FrameDecodeData*)VAR_0->private_ref->data; cf = (NVDECFrame*)fdd->hwaccel_priv; return cf->idx; }
[ "static int FUNC_0(AVFrame *VAR_0)\n{", "FrameDecodeData *fdd;", "NVDECFrame *cf;", "if (!VAR_0 || !VAR_0->private_ref)\nreturn -1;", "fdd = (FrameDecodeData*)VAR_0->private_ref->data;", "cf = (NVDECFrame*)fdd->hwaccel_priv;", "return cf->idx;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
24,228
static int put_packetheader(NUTContext *nut, ByteIOContext *bc, int max_size, int calculate_checksum) { put_flush_packet(bc); nut->packet_start[2]= url_ftell(bc) - 8; nut->written_packet_size = max_size; if(calculate_checksum) init_checksum(bc, update_adler32, 0); /* packet he...
false
FFmpeg
a26e1d4c1f7c93d24250dd9c0786241f92fcdea4
static int put_packetheader(NUTContext *nut, ByteIOContext *bc, int max_size, int calculate_checksum) { put_flush_packet(bc); nut->packet_start[2]= url_ftell(bc) - 8; nut->written_packet_size = max_size; if(calculate_checksum) init_checksum(bc, update_adler32, 0); put_v(...
{ "code": [], "line_no": [] }
static int FUNC_0(NUTContext *VAR_0, ByteIOContext *VAR_1, int VAR_2, int VAR_3) { put_flush_packet(VAR_1); VAR_0->packet_start[2]= url_ftell(VAR_1) - 8; VAR_0->written_packet_size = VAR_2; if(VAR_3) init_checksum(VAR_1, update_adler32, 0); put_v(VAR_1, VAR_0->written_pa...
[ "static int FUNC_0(NUTContext *VAR_0, ByteIOContext *VAR_1, int VAR_2, int VAR_3)\n{", "put_flush_packet(VAR_1);", "VAR_0->packet_start[2]= url_ftell(VAR_1) - 8;", "VAR_0->written_packet_size = VAR_2;", "if(VAR_3)\ninit_checksum(VAR_1, update_adler32, 0);", "put_v(VAR_1, VAR_0->written_packet_size);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 21 ], [ 25 ], [ 27 ] ]
24,229
inline static void RENAME(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter, int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode, ...
false
FFmpeg
4bb9adcff1be7ccbb6b8fab40cd68b3808544edc
inline static void RENAME(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter, int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode, ...
{ "code": [], "line_no": [] }
inline static void FUNC_0(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter, int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode, ...
[ "inline static void FUNC_0(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2,\nint srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter,\nint16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode,\nint srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,\nint3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [...
24,232
int avpriv_unlock_avformat(void) { if (lockmgr_cb) { if ((*lockmgr_cb)(&avformat_mutex, AV_LOCK_RELEASE)) return -1; } return 0; }
true
FFmpeg
a04c2c707de2ce850f79870e84ac9d7ec7aa9143
int avpriv_unlock_avformat(void) { if (lockmgr_cb) { if ((*lockmgr_cb)(&avformat_mutex, AV_LOCK_RELEASE)) return -1; } return 0; }
{ "code": [ " if (lockmgr_cb) {", " if (lockmgr_cb) {", " return -1;", " if (lockmgr_cb) {", " return -1;", " if (lockmgr_cb) {", " return -1;", " return 0;", " if (lockmgr_cb) {", " if ((*lockmgr_cb)(&avformat_mutex, AV...
int FUNC_0(void) { if (lockmgr_cb) { if ((*lockmgr_cb)(&avformat_mutex, AV_LOCK_RELEASE)) return -1; } return 0; }
[ "int FUNC_0(void)\n{", "if (lockmgr_cb) {", "if ((*lockmgr_cb)(&avformat_mutex, AV_LOCK_RELEASE))\nreturn -1;", "}", "return 0;", "}" ]
[ 0, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ] ]
24,233
static int disas_neon_ls_insn(CPUState * env, DisasContext *s, uint32_t insn) { int rd, rn, rm; int op; int nregs; int interleave; int spacing; int stride; int size; int reg; int pass; int load; int shift; int n; TCGv addr; TCGv tmp; TCGv tmp2;...
true
qemu
e318a60b94b152c1e80125861a8917ae177d845e
static int disas_neon_ls_insn(CPUState * env, DisasContext *s, uint32_t insn) { int rd, rn, rm; int op; int nregs; int interleave; int spacing; int stride; int size; int reg; int pass; int load; int shift; int n; TCGv addr; TCGv tmp; TCGv tmp2;...
{ "code": [ " addr = tcg_temp_new_i32();", " tcg_temp_free_i32(addr);" ], "line_no": [ 51, 471 ] }
static int FUNC_0(CPUState * VAR_0, DisasContext *VAR_1, uint32_t VAR_2) { int VAR_3, VAR_4, VAR_5; int VAR_6; int VAR_7; int VAR_8; int VAR_9; int VAR_10; int VAR_11; int VAR_12; int VAR_13; int VAR_14; int VAR_15; int VAR_16; TCGv addr; TCGv tmp; ...
[ "static int FUNC_0(CPUState * VAR_0, DisasContext *VAR_1, uint32_t VAR_2)\n{", "int VAR_3, VAR_4, VAR_5;", "int VAR_6;", "int VAR_7;", "int VAR_8;", "int VAR_9;", "int VAR_10;", "int VAR_11;", "int VAR_12;", "int VAR_13;", "int VAR_14;", "int VAR_15;", "int VAR_16;", "TCGv addr;", "TCGv ...
[ 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, 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 ], [ 39, 41 ], [ 43 ], [...
24,234
vu_queue_empty(VuDev *dev, VuVirtq *vq) { if (vq->shadow_avail_idx != vq->last_avail_idx) { return 0; } return vring_avail_idx(vq) == vq->last_avail_idx; }
true
qemu
640601c7cb1b6b41d3e1a435b986266c2b71e9bc
vu_queue_empty(VuDev *dev, VuVirtq *vq) { if (vq->shadow_avail_idx != vq->last_avail_idx) { return 0; } return vring_avail_idx(vq) == vq->last_avail_idx; }
{ "code": [ " return 0;" ], "line_no": [ 7 ] }
FUNC_0(VuDev *VAR_0, VuVirtq *VAR_1) { if (VAR_1->shadow_avail_idx != VAR_1->last_avail_idx) { return 0; } return vring_avail_idx(VAR_1) == VAR_1->last_avail_idx; }
[ "FUNC_0(VuDev *VAR_0, VuVirtq *VAR_1)\n{", "if (VAR_1->shadow_avail_idx != VAR_1->last_avail_idx) {", "return 0;", "}", "return vring_avail_idx(VAR_1) == VAR_1->last_avail_idx;", "}" ]
[ 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ] ]
24,236
static CURLState *curl_init_state(BlockDriverState *bs, BDRVCURLState *s) { CURLState *state = NULL; int i, j; do { for (i=0; i<CURL_NUM_STATES; i++) { for (j=0; j<CURL_NUM_ACB; j++) if (s->states[i].acb[j]) continue; if (s->stat...
true
qemu
3ce6a729b5d78b13283ddc6c529811f67519a62d
static CURLState *curl_init_state(BlockDriverState *bs, BDRVCURLState *s) { CURLState *state = NULL; int i, j; do { for (i=0; i<CURL_NUM_STATES; i++) { for (j=0; j<CURL_NUM_ACB; j++) if (s->states[i].acb[j]) continue; if (s->stat...
{ "code": [ "static CURLState *curl_init_state(BlockDriverState *bs, BDRVCURLState *s)", " int i, j;", " do {", " for (i=0; i<CURL_NUM_STATES; i++) {", " for (j=0; j<CURL_NUM_ACB; j++)", " if (s->states[i].acb[j])", " continue;", ...
static CURLState *FUNC_0(BlockDriverState *bs, BDRVCURLState *s) { CURLState *state = NULL; int VAR_0, VAR_1; do { for (VAR_0=0; VAR_0<CURL_NUM_STATES; VAR_0++) { for (VAR_1=0; VAR_1<CURL_NUM_ACB; VAR_1++) if (s->states[VAR_0].acb[VAR_1]) con...
[ "static CURLState *FUNC_0(BlockDriverState *bs, BDRVCURLState *s)\n{", "CURLState *state = NULL;", "int VAR_0, VAR_1;", "do {", "for (VAR_0=0; VAR_0<CURL_NUM_STATES; VAR_0++) {", "for (VAR_1=0; VAR_1<CURL_NUM_ACB; VAR_1++)", "if (s->states[VAR_0].acb[VAR_1])\ncontinue;", "if (s->states[VAR_0].in_use)\...
[ 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49...
24,237
static int ssi_sd_load(QEMUFile *f, void *opaque, int version_id) { SSISlave *ss = SSI_SLAVE(opaque); ssi_sd_state *s = (ssi_sd_state *)opaque; int i; if (version_id != 1) s->mode = qemu_get_be32(f); s->cmd = qemu_get_be32(f); for (i = 0; i < 4; i++) s->cmdarg[i] = qemu...
true
qemu
a9c380db3b8c6af19546a68145c8d1438a09c92b
static int ssi_sd_load(QEMUFile *f, void *opaque, int version_id) { SSISlave *ss = SSI_SLAVE(opaque); ssi_sd_state *s = (ssi_sd_state *)opaque; int i; if (version_id != 1) s->mode = qemu_get_be32(f); s->cmd = qemu_get_be32(f); for (i = 0; i < 4; i++) s->cmdarg[i] = qemu...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2) { SSISlave *ss = SSI_SLAVE(VAR_1); ssi_sd_state *s = (ssi_sd_state *)VAR_1; int VAR_3; if (VAR_2 != 1) s->mode = qemu_get_be32(VAR_0); s->cmd = qemu_get_be32(VAR_0); for (VAR_3 = 0; VAR_3 < 4; VAR_3++) s->cmdarg...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{", "SSISlave *ss = SSI_SLAVE(VAR_1);", "ssi_sd_state *s = (ssi_sd_state *)VAR_1;", "int VAR_3;", "if (VAR_2 != 1)\ns->mode = qemu_get_be32(VAR_0);", "s->cmd = qemu_get_be32(VAR_0);", "for (VAR_3 = 0; VAR_3 < 4; VAR_3++)", "s->cmdarg[VAR_3] ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 18 ], [ 20 ], [ 22 ], [ 24 ], [ 26 ], [ 28 ], [ 30 ], [ 36 ], [ 38 ], [ 47 ], [ 51 ] ]
24,238
static inline uint8_t *ram_chunk_end(const RDMALocalBlock *rdma_ram_block, uint64_t i) { uint8_t *result = ram_chunk_start(rdma_ram_block, i) + (1UL << RDMA_REG_CHUNK_SHIFT); if (result > (rdma_ram_block->local_host_addr + rdma...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static inline uint8_t *ram_chunk_end(const RDMALocalBlock *rdma_ram_block, uint64_t i) { uint8_t *result = ram_chunk_start(rdma_ram_block, i) + (1UL << RDMA_REG_CHUNK_SHIFT); if (result > (rdma_ram_block->local_host_addr + rdma...
{ "code": [], "line_no": [] }
static inline uint8_t *FUNC_0(const RDMALocalBlock *rdma_ram_block, uint64_t i) { uint8_t *result = ram_chunk_start(rdma_ram_block, i) + (1UL << RDMA_REG_CHUNK_SHIFT); if (result > (rdma_ram_block->local_host_addr + rdma_ram_bl...
[ "static inline uint8_t *FUNC_0(const RDMALocalBlock *rdma_ram_block,\nuint64_t i)\n{", "uint8_t *result = ram_chunk_start(rdma_ram_block, i) +\n(1UL << RDMA_REG_CHUNK_SHIFT);", "if (result > (rdma_ram_block->local_host_addr + rdma_ram_block->length)) {", "result = rdma_ram_block->local_host_addr + rdma_ram_bl...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
24,239
static int build_vlc(VLC *vlc, const uint8_t *bits_table, const uint8_t *val_table, int nb_codes) { uint8_t huff_size[256]; uint16_t huff_code[256]; memset(huff_size, 0, sizeof(huff_size)); build_huffman_codes(huff_size, huff_code, bits_table, val_table); return...
true
FFmpeg
073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1
static int build_vlc(VLC *vlc, const uint8_t *bits_table, const uint8_t *val_table, int nb_codes) { uint8_t huff_size[256]; uint16_t huff_code[256]; memset(huff_size, 0, sizeof(huff_size)); build_huffman_codes(huff_size, huff_code, bits_table, val_table); return...
{ "code": [ " int nb_codes)", " return init_vlc(vlc, 9, nb_codes, huff_size, 1, 1, huff_code, 2, 2);" ], "line_no": [ 3, 19 ] }
static int FUNC_0(VLC *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, int VAR_3) { uint8_t huff_size[256]; uint16_t huff_code[256]; memset(huff_size, 0, sizeof(huff_size)); build_huffman_codes(huff_size, huff_code, VAR_1, VAR_2); return init_vlc(VAR_0, 9, VA...
[ "static int FUNC_0(VLC *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2,\nint VAR_3)\n{", "uint8_t huff_size[256];", "uint16_t huff_code[256];", "memset(huff_size, 0, sizeof(huff_size));", "build_huffman_codes(huff_size, huff_code, VAR_1, VAR_2);", "return init_vlc(VAR_0, 9, VAR_3, huff_size, 1, 1, huff...
[ 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]