id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
13,708
static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) { RTPMuxContext *s = s1->priv_data; AVStream *st = s1->streams[0]; int rtcp_bytes; int size= pkt->size; av_dlog(s1, "%d: write len=%d\n", pkt->stream_index, size); rtcp_bytes = ((s->octet_count - s->last_octet_count) * RT...
true
FFmpeg
c82bf15dca00f67a701d126e47ea9075fc9459cb
static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) { RTPMuxContext *s = s1->priv_data; AVStream *st = s1->streams[0]; int rtcp_bytes; int size= pkt->size; av_dlog(s1, "%d: write len=%d\n", pkt->stream_index, size); rtcp_bytes = ((s->octet_count - s->last_octet_count) * RT...
{ "code": [ " ff_rtp_send_h264(s1, pkt->data, size);", " ff_rtp_send_hevc(s1, pkt->data, size);", " RTPMuxContext *s = s1->priv_data;", " RTPMuxContext *s = s1->priv_data;", " av_log(s1, AV_LOG_ERROR,", " RTPMuxContext *s = s1->priv_data;", " RTPMuxCont...
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { RTPMuxContext *s = VAR_0->priv_data; AVStream *st = VAR_0->streams[0]; int VAR_2; int VAR_3= VAR_1->VAR_3; av_dlog(VAR_0, "%d: write len=%d\n", VAR_1->stream_index, VAR_3); VAR_2 = ((s->octet_count - s->last_octet_count) * R...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "RTPMuxContext *s = VAR_0->priv_data;", "AVStream *st = VAR_0->streams[0];", "int VAR_2;", "int VAR_3= VAR_1->VAR_3;", "av_dlog(VAR_0, \"%d: write len=%d\\n\", VAR_1->stream_index, VAR_3);", "VAR_2 = ((s->octet_count - s->last_octet_count)...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45, 47, 49, 51 ], [ 53, 55,...
13,709
static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) { int sx, sy; int dx, dy; int width, height; int depth; int notify = 0; depth = s->get_bpp((VGAState *)s) / 8; s->get_resolution((VGAState *)s, &width, &height); /* extra x, y */ sx = (src % (...
true
qemu
d85d0d3883f5a567fa2969a0396e42e0a662b3fa
static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) { int sx, sy; int dx, dy; int width, height; int depth; int notify = 0; depth = s->get_bpp((VGAState *)s) / 8; s->get_resolution((VGAState *)s, &width, &height); sx = (src % (width * depth)) ...
{ "code": [ " sx = (src % (width * depth)) / depth;", " sy = (src / (width * depth));", " dx = (dst % (width *depth)) / depth;", " dy = (dst / (width * depth));" ], "line_no": [ 25, 27, 29, 31 ] }
static void FUNC_0(CirrusVGAState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5, VAR_6; int VAR_7, VAR_8; int VAR_9, VAR_10; int VAR_11; int VAR_12 = 0; VAR_11 = VAR_0->get_bpp((VGAState *)VAR_0) / 8; VAR_0->get_resolution((VGAState *)VAR_0, &VAR_9, &VAR_10); ...
[ "static void FUNC_0(CirrusVGAState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6;", "int VAR_7, VAR_8;", "int VAR_9, VAR_10;", "int VAR_11;", "int VAR_12 = 0;", "VAR_11 = VAR_0->get_bpp((VGAState *)VAR_0) / 8;", "VAR_0->get_resolution((VGAState *)VAR_0, &VAR_9, &VAR_10);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 63,...
13,710
void vnc_write(VncState *vs, const void *data, size_t len) { buffer_reserve(&vs->output, len); if (buffer_empty(&vs->output)) { qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, vnc_client_write, vs); } buffer_append(&vs->output, data, len); }
true
qemu
198a0039c5fca224a77e9761e2350dd9cc102ad0
void vnc_write(VncState *vs, const void *data, size_t len) { buffer_reserve(&vs->output, len); if (buffer_empty(&vs->output)) { qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, vnc_client_write, vs); } buffer_append(&vs->output, data, len); }
{ "code": [ " if (buffer_empty(&vs->output)) {" ], "line_no": [ 9 ] }
void FUNC_0(VncState *VAR_0, const void *VAR_1, size_t VAR_2) { buffer_reserve(&VAR_0->output, VAR_2); if (buffer_empty(&VAR_0->output)) { qemu_set_fd_handler2(VAR_0->csock, NULL, vnc_client_read, vnc_client_write, VAR_0); } buffer_append(&VAR_0->output, VAR_1, VAR_2); }
[ "void FUNC_0(VncState *VAR_0, const void *VAR_1, size_t VAR_2)\n{", "buffer_reserve(&VAR_0->output, VAR_2);", "if (buffer_empty(&VAR_0->output)) {", "qemu_set_fd_handler2(VAR_0->csock, NULL, vnc_client_read, vnc_client_write, VAR_0);", "}", "buffer_append(&VAR_0->output, VAR_1, VAR_2);", "}" ]
[ 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ] ]
13,711
static void demap_tlb(SparcTLBEntry *tlb, target_ulong demap_addr, const char* strmmu, CPUState *env1) { unsigned int i; target_ulong mask; for (i = 0; i < 64; i++) { if (TTE_IS_VALID(tlb[i].tte)) { mask = 0xffffffffffffe000ULL; mask <<= 3 * ...
true
qemu
299b520cd4092be3c53f8380b81315c33927d9d3
static void demap_tlb(SparcTLBEntry *tlb, target_ulong demap_addr, const char* strmmu, CPUState *env1) { unsigned int i; target_ulong mask; for (i = 0; i < 64; i++) { if (TTE_IS_VALID(tlb[i].tte)) { mask = 0xffffffffffffe000ULL; mask <<= 3 * ...
{ "code": [ " mask = 0xffffffffffffe000ULL;", " mask <<= 3 * ((tlb[i].tte >> 61) & 3);", " if ((demap_addr & mask) == (tlb[i].tag & mask)) {", " replace_tlb_entry(&tlb[i], 0, 0, env1);", " DPRINTF_MMU(\"%s demap invalidated entry [%02u...
static void FUNC_0(SparcTLBEntry *VAR_0, target_ulong VAR_1, const char* VAR_2, CPUState *VAR_3) { unsigned int VAR_4; target_ulong mask; for (VAR_4 = 0; VAR_4 < 64; VAR_4++) { if (TTE_IS_VALID(VAR_0[VAR_4].tte)) { mask = 0xffffffffffffe000ULL; ...
[ "static void FUNC_0(SparcTLBEntry *VAR_0, target_ulong VAR_1,\nconst char* VAR_2, CPUState *VAR_3)\n{", "unsigned int VAR_4;", "target_ulong mask;", "for (VAR_4 = 0; VAR_4 < 64; VAR_4++) {", "if (TTE_IS_VALID(VAR_0[VAR_4].tte)) {", "mask = 0xffffffffffffe000ULL;", "mask <<= 3 * ((VAR_0[VAR_4].tte >> 61)...
[ 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 47 ] ]
13,715
static void vda_decoder_callback(void *vda_hw_ctx, CFDictionaryRef user_info, OSStatus status, uint32_t infoFlags, CVImageBufferRef image_buffer) { struct vda_context *vda_ctx = vda_hw...
true
FFmpeg
31a0ca9e75e4c91437c8681b9655a67f09b693dd
static void vda_decoder_callback(void *vda_hw_ctx, CFDictionaryRef user_info, OSStatus status, uint32_t infoFlags, CVImageBufferRef image_buffer) { struct vda_context *vda_ctx = vda_hw...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, CFDictionaryRef VAR_1, OSStatus VAR_2, uint32_t VAR_3, CVImageBufferRef VAR_4) { struct vda_context *VAR_5 = VAR_0; if (!VAR_4) return; ...
[ "static void FUNC_0(void *VAR_0,\nCFDictionaryRef VAR_1,\nOSStatus VAR_2,\nuint32_t VAR_3,\nCVImageBufferRef VAR_4)\n{", "struct vda_context *VAR_5 = VAR_0;", "if (!VAR_4)\nreturn;", "if (VAR_5->cv_pix_fmt_type != CVPixelBufferGetPixelFormatType(VAR_4))\nreturn;", "VAR_5->cv_buffer = CVPixelBufferRetain(VAR...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4, 5, 6 ], [ 7 ], [ 8, 9 ], [ 10, 11 ], [ 12 ], [ 13 ] ]
13,716
static int wc3_read_close(AVFormatContext *s) { Wc3DemuxContext *wc3 = s->priv_data; av_free(wc3->palettes); return 0; }
true
FFmpeg
24ae353dfbe61019a86093a9c5cd15476aabef49
static int wc3_read_close(AVFormatContext *s) { Wc3DemuxContext *wc3 = s->priv_data; av_free(wc3->palettes); return 0; }
{ "code": [ " av_free(wc3->palettes);" ], "line_no": [ 9 ] }
static int FUNC_0(AVFormatContext *VAR_0) { Wc3DemuxContext *wc3 = VAR_0->priv_data; av_free(wc3->palettes); return 0; }
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "Wc3DemuxContext *wc3 = VAR_0->priv_data;", "av_free(wc3->palettes);", "return 0;", "}" ]
[ 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ] ]
13,717
static int64_t cpu_get_clock_locked(void) { int64_t ti; if (!timers_state.cpu_ticks_enabled) { ti = timers_state.cpu_clock_offset; } else { ti = get_clock(); ti += timers_state.cpu_clock_offset; } return ti; }
true
qemu
5f3e31012e334f3410e04abae7f88565df17c91a
static int64_t cpu_get_clock_locked(void) { int64_t ti; if (!timers_state.cpu_ticks_enabled) { ti = timers_state.cpu_clock_offset; } else { ti = get_clock(); ti += timers_state.cpu_clock_offset; } return ti; }
{ "code": [ " if (!timers_state.cpu_ticks_enabled) {", " } else {", " int64_t ti;", " if (!timers_state.cpu_ticks_enabled) {", " ti = timers_state.cpu_clock_offset;", " } else {", " ti = get_clock();", " ti += timers_state.cpu_clock_offset;", " ...
static int64_t FUNC_0(void) { int64_t ti; if (!timers_state.cpu_ticks_enabled) { ti = timers_state.cpu_clock_offset; } else { ti = get_clock(); ti += timers_state.cpu_clock_offset; } return ti; }
[ "static int64_t FUNC_0(void)\n{", "int64_t ti;", "if (!timers_state.cpu_ticks_enabled) {", "ti = timers_state.cpu_clock_offset;", "} else {", "ti = get_clock();", "ti += timers_state.cpu_clock_offset;", "}", "return ti;", "}" ]
[ 0, 1, 1, 1, 0, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
13,718
int main(void){ int i,k; AVTreeNode *root= NULL, *node=NULL; for(i=0; i<10000; i++){ int j= (random()%86294); if(check(root) > 999){ av_log(NULL, AV_LOG_ERROR, "FATAL error %d\n", i); print(root, 0); return -1; } av_log(NULL, AV_LOG...
true
FFmpeg
eed36075645ecc3d3ef202c94badb66818114c2c
int main(void){ int i,k; AVTreeNode *root= NULL, *node=NULL; for(i=0; i<10000; i++){ int j= (random()%86294); if(check(root) > 999){ av_log(NULL, AV_LOG_ERROR, "FATAL error %d\n", i); print(root, 0); return -1; } av_log(NULL, AV_LOG...
{ "code": [ " k= av_tree_find(root, (void*)(j+1), cmp, NULL);", " if(k){" ], "line_no": [ 35, 37 ] }
int FUNC_0(void){ int VAR_0,VAR_1; AVTreeNode *root= NULL, *node=NULL; for(VAR_0=0; VAR_0<10000; VAR_0++){ int VAR_2= (random()%86294); if(check(root) > 999){ av_log(NULL, AV_LOG_ERROR, "FATAL error %d\n", VAR_0); print(root, 0); return -1; ...
[ "int FUNC_0(void){", "int VAR_0,VAR_1;", "AVTreeNode *root= NULL, *node=NULL;", "for(VAR_0=0; VAR_0<10000; VAR_0++){", "int VAR_2= (random()%86294);", "if(check(root) > 999){", "av_log(NULL, AV_LOG_ERROR, \"FATAL error %d\\n\", VAR_0);", "print(root, 0);", "return -1;", "}", "av_log(NULL, AV_LOG...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
13,719
static void qpeg_decode_inter(uint8_t *src, uint8_t *dst, int size, int stride, int width, int height, int delta, uint8_t *ctable, uint8_t *refdata) { int i, j; int code; int filled = 0; uint8_t *blkdata; /* copy prev frame */ for(i = 0; i < height; i++) memcpy(ref...
true
FFmpeg
f63166f8dff65942c633adf32da9847ee1da3a47
static void qpeg_decode_inter(uint8_t *src, uint8_t *dst, int size, int stride, int width, int height, int delta, uint8_t *ctable, uint8_t *refdata) { int i, j; int code; int filled = 0; uint8_t *blkdata; for(i = 0; i < height; i++) memcpy(refdata + (i * width), d...
{ "code": [ " while(size > 0) {", " while(size > 0) {", "\t\t me_plane = refdata + (filled + me_x) + (height - me_y) * width;", "\t\t for(j = 0; j < me_h; j++) {", "\t\t\tfor(i = 0; i < me_w; i++)", "\t\t\t dst[filled + i - (j * stride)] = me_plane[i - (j * width)];" ], "lin...
static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, uint8_t *VAR_7, uint8_t *VAR_8) { int VAR_9, VAR_10; int VAR_11; int VAR_12 = 0; uint8_t *blkdata; for(VAR_9 = 0; VAR_9 < VAR_5; VAR_9++) memcpy(VAR_8 + (VAR_...
[ "static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5,\nint VAR_6, uint8_t *VAR_7, uint8_t *VAR_8)\n{", "int VAR_9, VAR_10;", "int VAR_11;", "int VAR_12 = 0;", "uint8_t *blkdata;", "for(VAR_9 = 0; VAR_9 < VAR_5; VAR_9++)", "memcpy(VAR_8 + (VAR_9 * VAR_4), VAR_1 ...
[ 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, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
13,720
static int cpu_sparc_find_by_name(sparc_def_t *cpu_def, const char *cpu_model) { unsigned int i; const sparc_def_t *def = NULL; char *s = strdup(cpu_model); char *featurestr, *name = strtok(s, ","); uint32_t plus_features = 0; uint32_t minus_features = 0; uint64_t iu_version; ui...
true
qemu
bfad67399bcca8c1afbbc93593d365044d92f7c6
static int cpu_sparc_find_by_name(sparc_def_t *cpu_def, const char *cpu_model) { unsigned int i; const sparc_def_t *def = NULL; char *s = strdup(cpu_model); char *featurestr, *name = strtok(s, ","); uint32_t plus_features = 0; uint32_t minus_features = 0; uint64_t iu_version; ui...
{ "code": [ " char *s = strdup(cpu_model);", " free(s);" ], "line_no": [ 9, 193 ] }
static int FUNC_0(sparc_def_t *VAR_0, const char *VAR_1) { unsigned int VAR_2; const sparc_def_t *VAR_3 = NULL; char *VAR_4 = strdup(VAR_1); char *VAR_5, *VAR_6 = strtok(VAR_4, ","); uint32_t plus_features = 0; uint32_t minus_features = 0; uint64_t iu_version; uint32_t fpu_versi...
[ "static int FUNC_0(sparc_def_t *VAR_0, const char *VAR_1)\n{", "unsigned int VAR_2;", "const sparc_def_t *VAR_3 = NULL;", "char *VAR_4 = strdup(VAR_1);", "char *VAR_5, *VAR_6 = strtok(VAR_4, \",\");", "uint32_t plus_features = 0;", "uint32_t minus_features = 0;", "uint64_t iu_version;", "uint32_t fp...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ...
13,721
void spapr_drc_reset(sPAPRDRConnector *drc) { trace_spapr_drc_reset(spapr_drc_index(drc)); g_free(drc->ccs); drc->ccs = NULL; /* immediately upon reset we can safely assume DRCs whose devices * are pending removal can be safely removed. */ if (drc->awaiting_release) { ...
true
qemu
82a93a1d307064f35c363f79b04b0a0149ac53d9
void spapr_drc_reset(sPAPRDRConnector *drc) { trace_spapr_drc_reset(spapr_drc_index(drc)); g_free(drc->ccs); drc->ccs = NULL; if (drc->awaiting_release) { spapr_drc_release(drc); } drc->awaiting_allocation = false; if (drc->dev) { drc->is...
{ "code": [ " drc->awaiting_allocation = false;", " drc->awaiting_allocation = false;" ], "line_no": [ 29, 29 ] }
void FUNC_0(sPAPRDRConnector *VAR_0) { trace_spapr_drc_reset(spapr_drc_index(VAR_0)); g_free(VAR_0->ccs); VAR_0->ccs = NULL; if (VAR_0->awaiting_release) { spapr_drc_release(VAR_0); } VAR_0->awaiting_allocation = false; if (VAR_0->dev) { ...
[ "void FUNC_0(sPAPRDRConnector *VAR_0)\n{", "trace_spapr_drc_reset(spapr_drc_index(VAR_0));", "g_free(VAR_0->ccs);", "VAR_0->ccs = NULL;", "if (VAR_0->awaiting_release) {", "spapr_drc_release(VAR_0);", "}", "VAR_0->awaiting_allocation = false;", "if (VAR_0->dev) {", "VAR_0->isolation_state = SPAPR_...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59...
13,722
static void clipper_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_fil...
true
qemu
c18f855697ab6b64a895f37cf47fd7061ce9e798
static void clipper_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_fil...
{ "code": [ " const char *palcode_filename;", " palcode_filename = (bios_name ? bios_name : \"palcode-clipper\");", " palcode_filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, palcode_filename);" ], "line_no": [ 25, 117, 119 ] }
static void FUNC_0(MachineState *VAR_0) { ram_addr_t ram_size = VAR_0->ram_size; const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; AlphaCPU *cpus[4]; PCIBus *pci_bus; ISABus *isa_bus; qemu...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "AlphaCPU *cpus[4];", "PCIBus *pci_bus;", "ISABus *isa_bus;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ...
13,723
ogm_dshow_header(AVFormatContext *s, int idx) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + idx; AVStream *st = s->streams[idx]; uint8_t *p = os->buf + os->pstart; uint32_t t; if(!(*p & 1)) return 0; if(*p != 1) return 1; t = AV_RL32(p + 96); ...
true
FFmpeg
6359872877269fa0c1874587676e952d30f9b79f
ogm_dshow_header(AVFormatContext *s, int idx) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + idx; AVStream *st = s->streams[idx]; uint8_t *p = os->buf + os->pstart; uint32_t t; if(!(*p & 1)) return 0; if(*p != 1) return 1; t = AV_RL32(p + 96); ...
{ "code": [], "line_no": [] }
FUNC_0(AVFormatContext *VAR_0, int VAR_1) { struct VAR_2 *VAR_2 = VAR_0->priv_data; struct ogg_stream *VAR_3 = VAR_2->streams + VAR_1; AVStream *st = VAR_0->streams[VAR_1]; uint8_t *p = VAR_3->buf + VAR_3->pstart; uint32_t t; if(!(*p & 1)) return 0; if(*p != 1) return 1; ...
[ "FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "struct VAR_2 *VAR_2 = VAR_0->priv_data;", "struct ogg_stream *VAR_3 = VAR_2->streams + VAR_1;", "AVStream *st = VAR_0->streams[VAR_1];", "uint8_t *p = VAR_3->buf + VAR_3->pstart;", "uint32_t t;", "if(!(*p & 1))\nreturn 0;", "if(*p != 1)\nreturn 1;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8, 9 ], [ 10, 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ],...
13,724
void qemu_bh_schedule(QEMUBH *bh) { AioContext *ctx; if (bh->scheduled) return; ctx = bh->ctx; bh->idle = 0; /* Make sure that: * 1. idle & any writes needed by the callback are done before the * locations are read in the aio_bh_poll. * 2. ctx is loaded before s...
true
qemu
e8d3b1a25f284cdf9705b7cf0412281cc9ee3a36
void qemu_bh_schedule(QEMUBH *bh) { AioContext *ctx; if (bh->scheduled) return; ctx = bh->ctx; bh->idle = 0; smp_mb(); bh->scheduled = 1; aio_notify(ctx); }
{ "code": [ " if (bh->scheduled)", " bh->scheduled = 1;", " if (bh->scheduled)", " smp_mb();", " bh->scheduled = 1;", " aio_notify(ctx);" ], "line_no": [ 9, 31, 9, 29, 31, 33 ] }
void FUNC_0(QEMUBH *VAR_0) { AioContext *ctx; if (VAR_0->scheduled) return; ctx = VAR_0->ctx; VAR_0->idle = 0; smp_mb(); VAR_0->scheduled = 1; aio_notify(ctx); }
[ "void FUNC_0(QEMUBH *VAR_0)\n{", "AioContext *ctx;", "if (VAR_0->scheduled)\nreturn;", "ctx = VAR_0->ctx;", "VAR_0->idle = 0;", "smp_mb();", "VAR_0->scheduled = 1;", "aio_notify(ctx);", "}" ]
[ 0, 0, 1, 0, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
13,727
static void emulate_spapr_hypercall(CPUPPCState *env) { env->gpr[3] = spapr_hypercall(env, env->gpr[3], &env->gpr[4]); }
true
qemu
efcb9383b974114e5f682e531346006f8f2466c0
static void emulate_spapr_hypercall(CPUPPCState *env) { env->gpr[3] = spapr_hypercall(env, env->gpr[3], &env->gpr[4]); }
{ "code": [ " env->gpr[3] = spapr_hypercall(env, env->gpr[3], &env->gpr[4]);" ], "line_no": [ 5 ] }
static void FUNC_0(CPUPPCState *VAR_0) { VAR_0->gpr[3] = spapr_hypercall(VAR_0, VAR_0->gpr[3], &VAR_0->gpr[4]); }
[ "static void FUNC_0(CPUPPCState *VAR_0)\n{", "VAR_0->gpr[3] = spapr_hypercall(VAR_0, VAR_0->gpr[3], &VAR_0->gpr[4]);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
13,729
static struct pathelem *add_dir_maybe(struct pathelem *path) { DIR *dir; if ((dir = opendir(path->pathname)) != NULL) { struct dirent *dirent; while ((dirent = readdir(dir)) != NULL) { if (!streq(dirent->d_name,".") && !streq(dirent->d_name,"..")){ path = a...
true
qemu
2296f194dfde4c0a54f249d3fdb8c8ca21dc611b
static struct pathelem *add_dir_maybe(struct pathelem *path) { DIR *dir; if ((dir = opendir(path->pathname)) != NULL) { struct dirent *dirent; while ((dirent = readdir(dir)) != NULL) { if (!streq(dirent->d_name,".") && !streq(dirent->d_name,"..")){ path = a...
{ "code": [ " path = add_entry(path, dirent->d_name);" ], "line_no": [ 19 ] }
static struct pathelem *FUNC_0(struct pathelem *VAR_0) { DIR *dir; if ((dir = opendir(VAR_0->pathname)) != NULL) { struct VAR_1 *VAR_1; while ((VAR_1 = readdir(dir)) != NULL) { if (!streq(VAR_1->d_name,".") && !streq(VAR_1->d_name,"..")){ VAR_0 = add_entry(...
[ "static struct pathelem *FUNC_0(struct pathelem *VAR_0)\n{", "DIR *dir;", "if ((dir = opendir(VAR_0->pathname)) != NULL) {", "struct VAR_1 *VAR_1;", "while ((VAR_1 = readdir(dir)) != NULL) {", "if (!streq(VAR_1->d_name,\".\") && !streq(VAR_1->d_name,\"..\")){", "VAR_0 = add_entry(VAR_0, VAR_1->d_name);"...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
13,730
static void test_qemu_strtoul_whitespace(void) { const char *str = " \t "; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0); g_assert(endptr == ...
true
qemu
47d4be12c3997343e436c6cca89aefbbbeb70863
static void test_qemu_strtoul_whitespace(void) { const char *str = " \t "; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0); g_assert(endptr == ...
{ "code": [ " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, 0);", " g_assert(endptr == str);", " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, 0);", " g_assert(endptr == str);", " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, ...
static void FUNC_0(void) { const char *VAR_0 = " \t "; char VAR_1 = 'X'; const char *VAR_2 = &VAR_1; unsigned long VAR_3 = 999; int VAR_4; VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 0, &VAR_3); g_assert_cmpint(VAR_4, ==, 0); g_assert_cmpint(VAR_3, ==, 0); g_assert(VAR_2 == V...
[ "static void FUNC_0(void)\n{", "const char *VAR_0 = \" \\t \";", "char VAR_1 = 'X';", "const char *VAR_2 = &VAR_1;", "unsigned long VAR_3 = 999;", "int VAR_4;", "VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 0, &VAR_3);", "g_assert_cmpint(VAR_4, ==, 0);", "g_assert_cmpint(VAR_3, ==, 0);", "g_assert(VAR_2 ...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
13,731
static int vmd_read_packet(AVFormatContext *s, AVPacket *pkt) { VmdDemuxContext *vmd = (VmdDemuxContext *)s->priv_data; ByteIOContext *pb = &s->pb; int ret = 0; vmd_frame_t *frame; if (vmd->current_frame >= vmd->frame_count) return -EIO; frame = &v...
true
FFmpeg
23fe14bb20888038b91e62b16d50fe0b75043a10
static int vmd_read_packet(AVFormatContext *s, AVPacket *pkt) { VmdDemuxContext *vmd = (VmdDemuxContext *)s->priv_data; ByteIOContext *pb = &s->pb; int ret = 0; vmd_frame_t *frame; if (vmd->current_frame >= vmd->frame_count) return -EIO; frame = &v...
{ "code": [ " if (ret != frame->frame_size)", " pkt->pts = frame->pts;" ], "line_no": [ 43, 49 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { VmdDemuxContext *vmd = (VmdDemuxContext *)VAR_0->priv_data; ByteIOContext *pb = &VAR_0->pb; int VAR_2 = 0; vmd_frame_t *frame; if (vmd->current_frame >= vmd->frame_count) return -EIO; fra...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{", "VmdDemuxContext *vmd = (VmdDemuxContext *)VAR_0->priv_data;", "ByteIOContext *pb = &VAR_0->pb;", "int VAR_2 = 0;", "vmd_frame_t *frame;", "if (vmd->current_frame >= vmd->frame_count)\nreturn -EIO;", "frame = &vmd->frame_table[vmd->curren...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 53 ], [ 57 ], [ 59 ] ]
13,732
int qemu_add_balloon_handler(QEMUBalloonEvent *event_func, QEMUBalloonStatus *stat_func, void *opaque) { if (balloon_event_fn || balloon_stat_fn || balloon_opaque) { /* We're already registered one balloon handler. How many can * a guest really have? */ ...
true
qemu
46abb8124006887d071921c5e657eeec3c50a9e2
int qemu_add_balloon_handler(QEMUBalloonEvent *event_func, QEMUBalloonStatus *stat_func, void *opaque) { if (balloon_event_fn || balloon_stat_fn || balloon_opaque) { error_report("Another balloon device already registered"); return -1; } ball...
{ "code": [ " error_report(\"Another balloon device already registered\");" ], "line_no": [ 15 ] }
int FUNC_0(QEMUBalloonEvent *VAR_0, QEMUBalloonStatus *VAR_1, void *VAR_2) { if (balloon_event_fn || balloon_stat_fn || balloon_opaque) { error_report("Another balloon device already registered"); return -1; } balloon_event_fn = VAR_0; b...
[ "int FUNC_0(QEMUBalloonEvent *VAR_0,\nQEMUBalloonStatus *VAR_1, void *VAR_2)\n{", "if (balloon_event_fn || balloon_stat_fn || balloon_opaque) {", "error_report(\"Another balloon device already registered\");", "return -1;", "}", "balloon_event_fn = VAR_0;", "balloon_stat_fn = VAR_1;", "balloon_opaque ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
13,733
static int parse_object_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { PGSSubContext *ctx = avctx->priv_data; PGSSubObject *object; uint8_t sequence_desc; unsigned int rle_bitmap_len, width, height; int id; if (buf_size <= 4) buf_size -= ...
true
FFmpeg
d98e6c5d5d80c1dfe0c30f2e73d41a3aea0b920d
static int parse_object_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { PGSSubContext *ctx = avctx->priv_data; PGSSubObject *object; uint8_t sequence_desc; unsigned int rle_bitmap_len, width, height; int id; if (buf_size <= 4) buf_size -= ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { PGSSubContext *ctx = VAR_0->priv_data; PGSSubObject *object; uint8_t sequence_desc; unsigned int VAR_3, VAR_4, VAR_5; int VAR_6; if (VAR_2 <= 4) VAR_2 -= 4; VAR_6 = bytestream_ge...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{", "PGSSubContext *ctx = VAR_0->priv_data;", "PGSSubObject *object;", "uint8_t sequence_desc;", "unsigned int VAR_3, VAR_4, VAR_5;", "int VAR_6;", "if (VAR_2 <= 4)\nVAR_2 -= 4;", "VAR_6 = bytestream_get_be16(&VAR_1);", "ob...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 22 ], [ 24, 25 ], [ ...
13,735
static void pci_error_message(Monitor *mon) { monitor_printf(mon, "PCI devices not supported\n"); }
true
qemu
04e00c92ef75629a241ebc50537f75de0867928d
static void pci_error_message(Monitor *mon) { monitor_printf(mon, "PCI devices not supported\n"); }
{ "code": [ "static void pci_error_message(Monitor *mon)" ], "line_no": [ 1 ] }
static void FUNC_0(Monitor *VAR_0) { monitor_printf(VAR_0, "PCI devices not supported\n"); }
[ "static void FUNC_0(Monitor *VAR_0)\n{", "monitor_printf(VAR_0, \"PCI devices not supported\\n\");", "}" ]
[ 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
13,737
static void usbredir_interface_info(void *priv, struct usb_redir_interface_info_header *interface_info) { USBRedirDevice *dev = priv; dev->interface_info = *interface_info; /* * If we receive interface info after the device has already been * connected (ie on a set_config), re-check...
true
qemu
b2d1fe67d09d2b6c7da647fbcea6ca0148c206d3
static void usbredir_interface_info(void *priv, struct usb_redir_interface_info_header *interface_info) { USBRedirDevice *dev = priv; dev->interface_info = *interface_info; if (qemu_timer_pending(dev->attach_timer) || dev->dev.attached) { if (usbredir_check_filter(dev)) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, struct usb_redir_interface_info_header *VAR_1) { USBRedirDevice *dev = VAR_0; dev->VAR_1 = *VAR_1; if (qemu_timer_pending(dev->attach_timer) || dev->dev.attached) { if (usbredir_check_filter(dev)) { ERROR("Device no longer matche...
[ "static void FUNC_0(void *VAR_0,\nstruct usb_redir_interface_info_header *VAR_1)\n{", "USBRedirDevice *dev = VAR_0;", "dev->VAR_1 = *VAR_1;", "if (qemu_timer_pending(dev->attach_timer) || dev->dev.attached) {", "if (usbredir_check_filter(dev)) {", "ERROR(\"Device no longer matches filter after interface i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ] ]
13,741
static void update_irq(struct HPETTimer *timer) { qemu_irq irq; int route; if (timer->tn <= 1 && hpet_in_legacy_mode()) { /* if LegacyReplacementRoute bit is set, HPET specification requires * timer0 be routed to IRQ0 in NON-APIC or IRQ2 in the I/O APIC, * timer1 be routed...
true
qemu
27bb0b2d6f80f058bdb6fcc8fcdfa69b0c8a6d71
static void update_irq(struct HPETTimer *timer) { qemu_irq irq; int route; if (timer->tn <= 1 && hpet_in_legacy_mode()) { if (timer->tn == 0) { irq=timer->state->irqs[0]; } else irq=timer->state->irqs[8]; } else { route=timer_in...
{ "code": [ " qemu_irq irq;", " if (timer->tn == 0) {", " irq=timer->state->irqs[0];", " } else", " irq=timer->state->irqs[8];", " route=timer_int_route(timer);", " irq=timer->state->irqs[route];", " if (timer_enabled(timer) && hp...
static void FUNC_0(struct HPETTimer *VAR_0) { qemu_irq irq; int VAR_1; if (VAR_0->tn <= 1 && hpet_in_legacy_mode()) { if (VAR_0->tn == 0) { irq=VAR_0->state->irqs[0]; } else irq=VAR_0->state->irqs[8]; } else { VAR_1=timer_int_ro...
[ "static void FUNC_0(struct HPETTimer *VAR_0)\n{", "qemu_irq irq;", "int VAR_1;", "if (VAR_0->tn <= 1 && hpet_in_legacy_mode()) {", "if (VAR_0->tn == 0) {", "irq=VAR_0->state->irqs[0];", "} else", "irq=VAR_0->state->irqs[8];", "} else {", "VAR_1=timer_int_route(VAR_0);", "irq=VAR_0->state->irqs[V...
[ 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
13,742
void virtio_reset(void *opaque) { VirtIODevice *vdev = opaque; VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); int i; virtio_set_status(vdev, 0); if (current_cpu) { /* Guest initiated reset */ vdev->device_endian = virtio_current_cpu_endian(); } else { /...
true
qemu
f5ed36635d8fa73feb66fe12b3b9c2ed90a1adbe
void virtio_reset(void *opaque) { VirtIODevice *vdev = opaque; VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); int i; virtio_set_status(vdev, 0); if (current_cpu) { vdev->device_endian = virtio_current_cpu_endian(); } else { vdev->device_endia...
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0) { VirtIODevice *vdev = VAR_0; VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); int VAR_1; virtio_set_status(vdev, 0); if (current_cpu) { vdev->device_endian = virtio_current_cpu_endian(); } else { vdev->device_endian = ...
[ "void FUNC_0(void *VAR_0)\n{", "VirtIODevice *vdev = VAR_0;", "VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev);", "int VAR_1;", "virtio_set_status(vdev, 0);", "if (current_cpu) {", "vdev->device_endian = virtio_current_cpu_endian();", "} else {", "vdev->device_endian = virtio_default_endian();"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 48 ], [ 50 ], [ 54 ...
13,744
int ffurl_get_short_seek(URLContext *h) { if (!h->prot->url_get_short_seek) return AVERROR(ENOSYS); return h->prot->url_get_short_seek(h); }
false
FFmpeg
be4dfbf7b71e44a53ca8da882a081e35ea134c83
int ffurl_get_short_seek(URLContext *h) { if (!h->prot->url_get_short_seek) return AVERROR(ENOSYS); return h->prot->url_get_short_seek(h); }
{ "code": [], "line_no": [] }
int FUNC_0(URLContext *VAR_0) { if (!VAR_0->prot->url_get_short_seek) return AVERROR(ENOSYS); return VAR_0->prot->url_get_short_seek(VAR_0); }
[ "int FUNC_0(URLContext *VAR_0)\n{", "if (!VAR_0->prot->url_get_short_seek)\nreturn AVERROR(ENOSYS);", "return VAR_0->prot->url_get_short_seek(VAR_0);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ] ]
13,745
static uint64_t vmxnet3_get_command_status(VMXNET3State *s) { uint64_t ret; switch (s->last_command) { case VMXNET3_CMD_ACTIVATE_DEV: ret = (s->device_active) ? 0 : -1; VMW_CFPRN("Device active: %" PRIx64, ret); break; case VMXNET3_CMD_RESET_DEV: case VMXNET3_CMD...
true
qemu
fde58177aa112da377bbe1af71e0ec3ee7750196
static uint64_t vmxnet3_get_command_status(VMXNET3State *s) { uint64_t ret; switch (s->last_command) { case VMXNET3_CMD_ACTIVATE_DEV: ret = (s->device_active) ? 0 : -1; VMW_CFPRN("Device active: %" PRIx64, ret); break; case VMXNET3_CMD_RESET_DEV: case VMXNET3_CMD...
{ "code": [ " ret = (s->device_active) ? 0 : -1;" ], "line_no": [ 13 ] }
static uint64_t FUNC_0(VMXNET3State *s) { uint64_t ret; switch (s->last_command) { case VMXNET3_CMD_ACTIVATE_DEV: ret = (s->device_active) ? 0 : -1; VMW_CFPRN("Device active: %" PRIx64, ret); break; case VMXNET3_CMD_RESET_DEV: case VMXNET3_CMD_QUIESCE_DEV: c...
[ "static uint64_t FUNC_0(VMXNET3State *s)\n{", "uint64_t ret;", "switch (s->last_command) {", "case VMXNET3_CMD_ACTIVATE_DEV:\nret = (s->device_active) ? 0 : -1;", "VMW_CFPRN(\"Device active: %\" PRIx64, ret);", "break;", "case VMXNET3_CMD_RESET_DEV:\ncase VMXNET3_CMD_QUIESCE_DEV:\ncase VMXNET3_CMD_GET_Q...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 21, 23, 25, 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 51, 53 ], [ 55 ], [ 59, 61...
13,746
static int mxpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MXpegDecodeContext *s = avctx->priv_data; MJpegDecodeContext *jpg = &s->jpg; c...
true
FFmpeg
2884688bd51a808ccda3c0e13367619cd79e0579
static int mxpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MXpegDecodeContext *s = avctx->priv_data; MJpegDecodeContext *jpg = &s->jpg; c...
{ "code": [ " ret = ff_mjpeg_decode_sos(jpg, s->mxm_bitmask, reference_ptr);", " ret = ff_mjpeg_decode_sos(jpg, NULL, NULL);" ], "line_no": [ 231, 239 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MXpegDecodeContext *s = VAR_0->priv_data; MJpegDecodeContext *jpg = &s->jpg; const uint8_t *V...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MXpegDecodeContext *s = VAR_0->priv_data;", "MJpegDecodeContext *jpg = &s->jpg;", "const uint8_t *VAR_6, *buf_ptr;", "const uint8_t *VAR_7;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ...
13,747
int main(int argc, char* argv[]) { FILE *f[2]; uint8_t *buf[2], *plane[2][3]; int *temp; uint64_t ssd[3] = {0,0,0}; double ssim[3] = {0,0,0}; int frame_size, w, h; int frames, seek; int i; if( argc<4 || 2 != sscanf(argv[3], "%dx%d", &w, &h) ) { printf("tiny_...
true
FFmpeg
a69e16a97e40f3841766347bd0c0ba2c672c51ca
int main(int argc, char* argv[]) { FILE *f[2]; uint8_t *buf[2], *plane[2][3]; int *temp; uint64_t ssd[3] = {0,0,0}; double ssim[3] = {0,0,0}; int frame_size, w, h; int frames, seek; int i; if( argc<4 || 2 != sscanf(argv[3], "%dx%d", &w, &h) ) { printf("tiny_...
{ "code": [ " frame_size = w*h*3/2;" ], "line_no": [ 41 ] }
int FUNC_0(int VAR_0, char* VAR_1[]) { FILE *f[2]; uint8_t *buf[2], *plane[2][3]; int *VAR_2; uint64_t ssd[3] = {0,0,0}; double VAR_3[3] = {0,0,0}; int VAR_4, VAR_5, VAR_6; int VAR_7, VAR_8; int VAR_9; if( VAR_0<4 || 2 != sscanf(VAR_1[3], "%dx%d", &VAR_5, &VAR_6) ) {...
[ "int FUNC_0(int VAR_0, char* VAR_1[])\n{", "FILE *f[2];", "uint8_t *buf[2], *plane[2][3];", "int *VAR_2;", "uint64_t ssd[3] = {0,0,0};", "double VAR_3[3] = {0,0,0};", "int VAR_4, VAR_5, VAR_6;", "int VAR_7, VAR_8;", "int VAR_9;", "if( VAR_0<4 || 2 != sscanf(VAR_1[3], \"%dx%d\", &VAR_5, &VAR_6) )\n...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
13,749
static void load_linux(void *fw_cfg, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, target_phys_addr_t max_ram_size) { uint16_t protocol; int setup_size, kernel_size, initrd_size = 0, cmdline_size; uint32_...
true
qemu
d6fa4b77fb8f27ac84cf23fb1e15016673d98a47
static void load_linux(void *fw_cfg, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, target_phys_addr_t max_ram_size) { uint16_t protocol; int setup_size, kernel_size, initrd_size = 0, cmdline_size; uint32_...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, target_phys_addr_t VAR_4) { uint16_t protocol; int VAR_5, VAR_6, VAR_7 = 0, VAR_8; uint32_t initrd_max; uint8_t header[8192], *setup, *kernel, *initrd_...
[ "static void FUNC_0(void *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\ntarget_phys_addr_t VAR_4)\n{", "uint16_t protocol;", "int VAR_5, VAR_6, VAR_7 = 0, VAR_8;", "uint32_t initrd_max;", "uint8_t header[8192], *setup, *kernel, *initrd_data;", "target_phys_addr_t real_addr, prot_addr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 17 ], [ 18, 19, 20 ], [ 21, 22 ], [ 24, 25 ], [ 26, 27, 28 ], [ 29 ],...
13,750
target_ulong spapr_hypercall(CPUPPCState *env, target_ulong opcode, target_ulong *args) { if (msr_pr) { hcall_dprintf("Hypercall made with MSR[PR]=1\n"); return H_PRIVILEGE; } if ((opcode <= MAX_HCALL_OPCODE) && ((opcode & 0x3) == 0)) { ...
true
qemu
efcb9383b974114e5f682e531346006f8f2466c0
target_ulong spapr_hypercall(CPUPPCState *env, target_ulong opcode, target_ulong *args) { if (msr_pr) { hcall_dprintf("Hypercall made with MSR[PR]=1\n"); return H_PRIVILEGE; } if ((opcode <= MAX_HCALL_OPCODE) && ((opcode & 0x3) == 0)) { ...
{ "code": [ " if (msr_pr) {", " hcall_dprintf(\"Hypercall made with MSR[PR]=1\\n\");", " return H_PRIVILEGE;" ], "line_no": [ 7, 9, 11 ] }
target_ulong FUNC_0(CPUPPCState *env, target_ulong opcode, target_ulong *args) { if (msr_pr) { hcall_dprintf("Hypercall made with MSR[PR]=1\n"); return H_PRIVILEGE; } if ((opcode <= MAX_HCALL_OPCODE) && ((opcode & 0x3) == 0)) { spapr_hc...
[ "target_ulong FUNC_0(CPUPPCState *env, target_ulong opcode,\ntarget_ulong *args)\n{", "if (msr_pr) {", "hcall_dprintf(\"Hypercall made with MSR[PR]=1\\n\");", "return H_PRIVILEGE;", "}", "if ((opcode <= MAX_HCALL_OPCODE)\n&& ((opcode & 0x3) == 0)) {", "spapr_hcall_fn fn = papr_hypercall_table[opcode / 4...
[ 0, 1, 1, 1, 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 ], [ 51 ...
13,751
void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq, int err) { #if HAVE_THREADS pthread_mutex_lock(&mq->lock); mq->err_send = err; pthread_cond_broadcast(&mq->cond); pthread_mutex_unlock(&mq->lock); #endif /* HAVE_THREADS */ }
true
FFmpeg
bd5c860fdbc33d19d2ff0f6d1f06de07c17560dd
void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq, int err) { #if HAVE_THREADS pthread_mutex_lock(&mq->lock); mq->err_send = err; pthread_cond_broadcast(&mq->cond); pthread_mutex_unlock(&mq->lock); #endif }
{ "code": [ " pthread_cond_broadcast(&mq->cond);", " pthread_cond_broadcast(&mq->cond);", " pthread_cond_broadcast(&mq->cond);" ], "line_no": [ 13, 13, 13 ] }
void FUNC_0(AVThreadMessageQueue *VAR_0, int VAR_1) { #if HAVE_THREADS pthread_mutex_lock(&VAR_0->lock); VAR_0->err_send = VAR_1; pthread_cond_broadcast(&VAR_0->cond); pthread_mutex_unlock(&VAR_0->lock); #endif }
[ "void FUNC_0(AVThreadMessageQueue *VAR_0,\nint VAR_1)\n{", "#if HAVE_THREADS\npthread_mutex_lock(&VAR_0->lock);", "VAR_0->err_send = VAR_1;", "pthread_cond_broadcast(&VAR_0->cond);", "pthread_mutex_unlock(&VAR_0->lock);", "#endif\n}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ] ]
13,752
static int piix4_pm_initfn(PCIDevice *dev) { PIIX4PMState *s = DO_UPCAST(PIIX4PMState, dev, dev); uint8_t *pci_conf; pci_conf = s->dev.config; pci_conf[0x06] = 0x80; pci_conf[0x07] = 0x02; pci_conf[0x09] = 0x00; pci_conf[0x3d] = 0x01; // interrupt pin 1 /* APM */ apm_in...
false
qemu
560e63965232e37d1916a447125cf91c18a96930
static int piix4_pm_initfn(PCIDevice *dev) { PIIX4PMState *s = DO_UPCAST(PIIX4PMState, dev, dev); uint8_t *pci_conf; pci_conf = s->dev.config; pci_conf[0x06] = 0x80; pci_conf[0x07] = 0x02; pci_conf[0x09] = 0x00; pci_conf[0x3d] = 0x01; apm_init(dev, &s->apm, apm_ctrl_c...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { PIIX4PMState *s = DO_UPCAST(PIIX4PMState, VAR_0, VAR_0); uint8_t *pci_conf; pci_conf = s->VAR_0.config; pci_conf[0x06] = 0x80; pci_conf[0x07] = 0x02; pci_conf[0x09] = 0x00; pci_conf[0x3d] = 0x01; apm_init(VAR_0, &s->apm, apm_ctrl_...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "PIIX4PMState *s = DO_UPCAST(PIIX4PMState, VAR_0, VAR_0);", "uint8_t *pci_conf;", "pci_conf = s->VAR_0.config;", "pci_conf[0x06] = 0x80;", "pci_conf[0x07] = 0x02;", "pci_conf[0x09] = 0x00;", "pci_conf[0x3d] = 0x01;", "apm_init(VAR_0, &s->apm, apm_ctrl_change...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 29 ], [ 35 ], [ 37 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 57 ], [ 61 ], ...
13,755
static AVIndexEntry *mov_find_next_sample(AVFormatContext *s, AVStream **st) { AVIndexEntry *sample = NULL; int64_t best_dts = INT64_MAX; int i; for (i = 0; i < s->nb_streams; i++) { AVStream *avst = s->streams[i]; MOVStreamContext *msc = avst->priv_data; if (msc->pb && m...
false
FFmpeg
bbbc8c618884a838c00faaaa91898017dd431117
static AVIndexEntry *mov_find_next_sample(AVFormatContext *s, AVStream **st) { AVIndexEntry *sample = NULL; int64_t best_dts = INT64_MAX; int i; for (i = 0; i < s->nb_streams; i++) { AVStream *avst = s->streams[i]; MOVStreamContext *msc = avst->priv_data; if (msc->pb && m...
{ "code": [], "line_no": [] }
static AVIndexEntry *FUNC_0(AVFormatContext *s, AVStream **st) { AVIndexEntry *sample = NULL; int64_t best_dts = INT64_MAX; int VAR_0; for (VAR_0 = 0; VAR_0 < s->nb_streams; VAR_0++) { AVStream *avst = s->streams[VAR_0]; MOVStreamContext *msc = avst->priv_data; if (msc->p...
[ "static AVIndexEntry *FUNC_0(AVFormatContext *s, AVStream **st)\n{", "AVIndexEntry *sample = NULL;", "int64_t best_dts = INT64_MAX;", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < s->nb_streams; VAR_0++) {", "AVStream *avst = s->streams[VAR_0];", "MOVStreamContext *msc = avst->priv_data;", "if (msc->pb && ms...
[ 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 ], [...
13,756
static int kvm_put_msrs(X86CPU *cpu, int level) { CPUX86State *env = &cpu->env; int i; int ret; kvm_msr_buf_reset(cpu); kvm_msr_entry_add(cpu, MSR_IA32_SYSENTER_CS, env->sysenter_cs); kvm_msr_entry_add(cpu, MSR_IA32_SYSENTER_ESP, env->sysenter_esp); kvm_msr_entry_add(cpu, MSR_IA3...
false
qemu
112dad69d723a68205f255dd46d78871b5c5a8ca
static int kvm_put_msrs(X86CPU *cpu, int level) { CPUX86State *env = &cpu->env; int i; int ret; kvm_msr_buf_reset(cpu); kvm_msr_entry_add(cpu, MSR_IA32_SYSENTER_CS, env->sysenter_cs); kvm_msr_entry_add(cpu, MSR_IA32_SYSENTER_ESP, env->sysenter_esp); kvm_msr_entry_add(cpu, MSR_IA3...
{ "code": [], "line_no": [] }
static int FUNC_0(X86CPU *VAR_0, int VAR_1) { CPUX86State *env = &VAR_0->env; int VAR_5; int VAR_3; kvm_msr_buf_reset(VAR_0); kvm_msr_entry_add(VAR_0, MSR_IA32_SYSENTER_CS, env->sysenter_cs); kvm_msr_entry_add(VAR_0, MSR_IA32_SYSENTER_ESP, env->sysenter_esp); kvm_msr_entry_add(VA...
[ "static int FUNC_0(X86CPU *VAR_0, int VAR_1)\n{", "CPUX86State *env = &VAR_0->env;", "int VAR_5;", "int VAR_3;", "kvm_msr_buf_reset(VAR_0);", "kvm_msr_entry_add(VAR_0, MSR_IA32_SYSENTER_CS, env->sysenter_cs);", "kvm_msr_entry_add(VAR_0, MSR_IA32_SYSENTER_ESP, env->sysenter_esp);", "kvm_msr_entry_add(V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
13,757
static void mv88w8618_pic_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { mv88w8618_pic_state *s = opaque; switch (offset) { case MP_PIC_ENABLE_SET: s->enabled |= value; break; case MP_PIC_ENABLE_CLR: s-...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void mv88w8618_pic_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { mv88w8618_pic_state *s = opaque; switch (offset) { case MP_PIC_ENABLE_SET: s->enabled |= value; break; case MP_PIC_ENABLE_CLR: s-...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { mv88w8618_pic_state *s = VAR_0; switch (VAR_1) { case MP_PIC_ENABLE_SET: s->enabled |= VAR_2; break; case MP_PIC_ENABLE_CLR: s->enabled &= ~VAR...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "mv88w8618_pic_state *s = VAR_0;", "switch (VAR_1) {", "case MP_PIC_ENABLE_SET:\ns->enabled |= VAR_2;", "break;", "case MP_PIC_ENABLE_CLR:\ns->enabled &= ~VAR_2;", "s->level &= ~VAR_2;", "break;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
13,759
static int ram_load(QEMUFile *f, void *opaque, int version_id) { ram_addr_t addr; int flags; if (version_id != 3) return -EINVAL; do { addr = qemu_get_be64(f); flags = addr & ~TARGET_PAGE_MASK; addr &= TARGET_PAGE_MASK; if (flags & RAM_SAVE_FLAG_...
false
qemu
ad96090a01d848df67d70c5259ed8aa321fa8716
static int ram_load(QEMUFile *f, void *opaque, int version_id) { ram_addr_t addr; int flags; if (version_id != 3) return -EINVAL; do { addr = qemu_get_be64(f); flags = addr & ~TARGET_PAGE_MASK; addr &= TARGET_PAGE_MASK; if (flags & RAM_SAVE_FLAG_...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2) { ram_addr_t addr; int VAR_3; if (VAR_2 != 3) return -EINVAL; do { addr = qemu_get_be64(VAR_0); VAR_3 = addr & ~TARGET_PAGE_MASK; addr &= TARGET_PAGE_MASK; if (VAR_3 & RAM_SAVE_FLAG_MEM_S...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{", "ram_addr_t addr;", "int VAR_3;", "if (VAR_2 != 3)\nreturn -EINVAL;", "do {", "addr = qemu_get_be64(VAR_0);", "VAR_3 = addr & ~TARGET_PAGE_MASK;", "addr &= TARGET_PAGE_MASK;", "if (VAR_3 & RAM_SAVE_FLAG_MEM_SIZE) {", "if (addr != las...
[ 0, 0, 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 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47, 49 ], [ 51 ], [ 53 ], [ 55...
13,760
int gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb, int search_pc) { DisasContext ctx, *ctxp = &ctx; opc_handler_t **table, *handler; uint32_t pc_start; uint16_t *gen_opc_end; int j, lj = -1; pc_start = tb->pc; gen_opc_ptr =...
false
qemu
b769d8fef6c06ddb39ef0337882a4f8872b9c2bc
int gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb, int search_pc) { DisasContext ctx, *ctxp = &ctx; opc_handler_t **table, *handler; uint32_t pc_start; uint16_t *gen_opc_end; int j, lj = -1; pc_start = tb->pc; gen_opc_ptr =...
{ "code": [], "line_no": [] }
int FUNC_0 (CPUState *VAR_0, TranslationBlock *VAR_1, int VAR_2) { DisasContext ctx, *ctxp = &ctx; opc_handler_t **table, *handler; uint32_t pc_start; uint16_t *gen_opc_end; int VAR_3, VAR_4 = -1; pc_start = VAR_1->pc; gen_opc_ptr = gen_opc_buf;...
[ "int FUNC_0 (CPUState *VAR_0, TranslationBlock *VAR_1,\nint VAR_2)\n{", "DisasContext ctx, *ctxp = &ctx;", "opc_handler_t **table, *handler;", "uint32_t pc_start;", "uint16_t *gen_opc_end;", "int VAR_3, VAR_4 = -1;", "pc_start = VAR_1->pc;", "gen_opc_ptr = gen_opc_buf;", "gen_opc_end = gen_opc_buf +...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43, 45, 49 ], [...
13,761
static void bdrv_cow_init(void) { bdrv_register(&bdrv_cow); }
false
qemu
550830f9351291c585c963204ad9127998b1c1ce
static void bdrv_cow_init(void) { bdrv_register(&bdrv_cow); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { bdrv_register(&bdrv_cow); }
[ "static void FUNC_0(void)\n{", "bdrv_register(&bdrv_cow);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
13,762
void vnc_zlib_clear(VncState *vs) { if (vs->zlib_stream.opaque) { deflateEnd(&vs->zlib_stream); } buffer_free(&vs->zlib); }
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
void vnc_zlib_clear(VncState *vs) { if (vs->zlib_stream.opaque) { deflateEnd(&vs->zlib_stream); } buffer_free(&vs->zlib); }
{ "code": [], "line_no": [] }
void FUNC_0(VncState *VAR_0) { if (VAR_0->zlib_stream.opaque) { deflateEnd(&VAR_0->zlib_stream); } buffer_free(&VAR_0->zlib); }
[ "void FUNC_0(VncState *VAR_0)\n{", "if (VAR_0->zlib_stream.opaque) {", "deflateEnd(&VAR_0->zlib_stream);", "}", "buffer_free(&VAR_0->zlib);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
13,763
void bt_device_done(struct bt_device_s *dev) { struct bt_device_s **p = &dev->net->slave; while (*p && *p != dev) p = &(*p)->next; if (*p != dev) { fprintf(stderr, "%s: bad bt device \"%s\"\n", __FUNCTION__, dev->lmp_name ?: "(null)"); exit(-1); ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
void bt_device_done(struct bt_device_s *dev) { struct bt_device_s **p = &dev->net->slave; while (*p && *p != dev) p = &(*p)->next; if (*p != dev) { fprintf(stderr, "%s: bad bt device \"%s\"\n", __FUNCTION__, dev->lmp_name ?: "(null)"); exit(-1); ...
{ "code": [], "line_no": [] }
void FUNC_0(struct bt_device_s *VAR_0) { struct bt_device_s **VAR_1 = &VAR_0->net->slave; while (*VAR_1 && *VAR_1 != VAR_0) VAR_1 = &(*VAR_1)->next; if (*VAR_1 != VAR_0) { fprintf(stderr, "%s: bad bt device \"%s\"\n", __FUNCTION__, VAR_0->lmp_name ?: "(null)"...
[ "void FUNC_0(struct bt_device_s *VAR_0)\n{", "struct bt_device_s **VAR_1 = &VAR_0->net->slave;", "while (*VAR_1 && *VAR_1 != VAR_0)\nVAR_1 = &(*VAR_1)->next;", "if (*VAR_1 != VAR_0) {", "fprintf(stderr, \"%s: bad bt device \\\"%s\\\"\\n\", __FUNCTION__,\nVAR_0->lmp_name ?: \"(null)\");", "exit(-1);", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
13,764
static void s390_init(MachineState *machine) { ram_addr_t my_ram_size = machine->ram_size; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); int increment_size = 20; void *virtio_region; hwaddr virtio_region_len; hwaddr virtio_region_start; ...
false
qemu
1cf065fb87e8787e3e9cebcdb4713b81e4e61422
static void s390_init(MachineState *machine) { ram_addr_t my_ram_size = machine->ram_size; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); int increment_size = 20; void *virtio_region; hwaddr virtio_region_len; hwaddr virtio_region_start; ...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { ram_addr_t my_ram_size = VAR_0->ram_size; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); int VAR_1 = 20; void *VAR_2; hwaddr virtio_region_len; hwaddr virtio_region_start; if (VAR_0->ram_slots) ...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t my_ram_size = VAR_0->ram_size;", "MemoryRegion *sysmem = get_system_memory();", "MemoryRegion *ram = g_new(MemoryRegion, 1);", "int VAR_1 = 20;", "void *VAR_2;", "hwaddr virtio_region_len;", "hwaddr virtio_region_start;", "if (VAR_0->ram_slot...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 57 ], [ 59 ], [ 61,...
13,765
static bool scsi_block_is_passthrough(SCSIDiskState *s, uint8_t *buf) { switch (buf[0]) { case READ_6: case READ_10: case READ_12: case READ_16: case VERIFY_10: case VERIFY_12: case VERIFY_16: case WRITE_6: case WRITE_10: case WRITE_12: case WRITE_16: ca...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static bool scsi_block_is_passthrough(SCSIDiskState *s, uint8_t *buf) { switch (buf[0]) { case READ_6: case READ_10: case READ_12: case READ_16: case VERIFY_10: case VERIFY_12: case VERIFY_16: case WRITE_6: case WRITE_10: case WRITE_12: case WRITE_16: ca...
{ "code": [], "line_no": [] }
static bool FUNC_0(SCSIDiskState *s, uint8_t *buf) { switch (buf[0]) { case READ_6: case READ_10: case READ_12: case READ_16: case VERIFY_10: case VERIFY_12: case VERIFY_16: case WRITE_6: case WRITE_10: case WRITE_12: case WRITE_16: case WRITE_VERIFY_10:...
[ "static bool FUNC_0(SCSIDiskState *s, uint8_t *buf)\n{", "switch (buf[0]) {", "case READ_6:\ncase READ_10:\ncase READ_12:\ncase READ_16:\ncase VERIFY_10:\ncase VERIFY_12:\ncase VERIFY_16:\ncase WRITE_6:\ncase WRITE_10:\ncase WRITE_12:\ncase WRITE_16:\ncase WRITE_VERIFY_10:\ncase WRITE_VERIFY_12:\ncase WRITE_VER...
[ 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, 45 ], [ 47 ], [ 49 ], [ 73 ], [ 75 ], [ 77 ], [ 79 ], [ 83, 85 ], [ 87 ], [ 91 ], [...
13,766
int ff_lpc_calc_coefs(LPCContext *s, const int32_t *samples, int blocksize, int min_order, int max_order, int precision, int32_t coefs[][MAX_LPC_ORDER], int *shift, enum FFLPCType lpc_type, int lpc_passes, ...
false
FFmpeg
c4a36b6f70f37e668874d134f955eb96e23853c9
int ff_lpc_calc_coefs(LPCContext *s, const int32_t *samples, int blocksize, int min_order, int max_order, int precision, int32_t coefs[][MAX_LPC_ORDER], int *shift, enum FFLPCType lpc_type, int lpc_passes, ...
{ "code": [], "line_no": [] }
int FUNC_0(LPCContext *VAR_0, const int32_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int32_t VAR_6[][MAX_LPC_ORDER], int *VAR_7, enum FFLPCType VAR_8, int VAR_9, int VAR_10, int VAR_11, int VAR_...
[ "int FUNC_0(LPCContext *VAR_0,\nconst int32_t *VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint32_t VAR_6[][MAX_LPC_ORDER], int *VAR_7,\nenum FFLPCType VAR_8, int VAR_9,\nint VAR_10, int VAR_11, int VAR_12)\n{", "double VAR_13[MAX_LPC_ORDER+1];", "double VAR_14[MAX_LPC_ORDER];", "double VAR_15[MAX_LPC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ], [ 57 ], [ 61 ], [...
13,767
static uint64_t pci_config_get_memory_base(PCIDevice *d, uint32_t base) { return ((uint64_t)pci_get_word(d->config + base) & PCI_MEMORY_RANGE_MASK) << 16; }
false
qemu
d46636b88339ecc2cb8d10113f45ada164817773
static uint64_t pci_config_get_memory_base(PCIDevice *d, uint32_t base) { return ((uint64_t)pci_get_word(d->config + base) & PCI_MEMORY_RANGE_MASK) << 16; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(PCIDevice *d, uint32_t base) { return ((uint64_t)pci_get_word(d->config + base) & PCI_MEMORY_RANGE_MASK) << 16; }
[ "static uint64_t FUNC_0(PCIDevice *d, uint32_t base)\n{", "return ((uint64_t)pci_get_word(d->config + base) & PCI_MEMORY_RANGE_MASK)\n<< 16;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
13,769
void pci_default_write_config(PCIDevice *d, uint32_t address, uint32_t val, int len) { int can_write, i; uint32_t end, addr; if (len == 4 && ((address >= 0x10 && address < 0x10 + 4 * 6) || (address >= 0x30 && address < 0x34))) { PCIIORegion...
false
qemu
b7ee1603c16c1feb0d439d2ddf6cf824119d0aab
void pci_default_write_config(PCIDevice *d, uint32_t address, uint32_t val, int len) { int can_write, i; uint32_t end, addr; if (len == 4 && ((address >= 0x10 && address < 0x10 + 4 * 6) || (address >= 0x30 && address < 0x34))) { PCIIORegion...
{ "code": [], "line_no": [] }
void FUNC_0(PCIDevice *VAR_0, uint32_t VAR_1, uint32_t VAR_2, int VAR_3) { int VAR_4, VAR_5; uint32_t end, addr; if (VAR_3 == 4 && ((VAR_1 >= 0x10 && VAR_1 < 0x10 + 4 * 6) || (VAR_1 >= 0x30 && VAR_1 < 0x34))) { PCIIORegion *r; int ...
[ "void FUNC_0(PCIDevice *VAR_0,\nuint32_t VAR_1, uint32_t VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "uint32_t end, addr;", "if (VAR_3 == 4 && ((VAR_1 >= 0x10 && VAR_1 < 0x10 + 4 * 6) ||\n(VAR_1 >= 0x30 && VAR_1 < 0x34))) {", "PCIIORegion *r;", "int VAR_6;", "if ( VAR_1 >= 0x30 ) {", "VAR_6 = PCI_ROM_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
13,770
static int ehci_state_writeback(EHCIQueue *q, int async) { int again = 0; /* Write back the QTD from the QH area */ ehci_trace_qtd(q, NLPTR_GET(q->qtdaddr), (EHCIqtd*) &q->qh.next_qtd); put_dwords(NLPTR_GET(q->qtdaddr),(uint32_t *) &q->qh.next_qtd, sizeof(EHCIqtd) >> 2); ...
false
qemu
68d553587c0aa271c3eb2902921b503740d775b6
static int ehci_state_writeback(EHCIQueue *q, int async) { int again = 0; ehci_trace_qtd(q, NLPTR_GET(q->qtdaddr), (EHCIqtd*) &q->qh.next_qtd); put_dwords(NLPTR_GET(q->qtdaddr),(uint32_t *) &q->qh.next_qtd, sizeof(EHCIqtd) >> 2); if (q->qh.token & QTD_...
{ "code": [], "line_no": [] }
static int FUNC_0(EHCIQueue *VAR_0, int VAR_1) { int VAR_2 = 0; ehci_trace_qtd(VAR_0, NLPTR_GET(VAR_0->qtdaddr), (EHCIqtd*) &VAR_0->qh.next_qtd); put_dwords(NLPTR_GET(VAR_0->qtdaddr),(uint32_t *) &VAR_0->qh.next_qtd, sizeof(EHCIqtd) >> 2); if (VAR_0->q...
[ "static int FUNC_0(EHCIQueue *VAR_0, int VAR_1)\n{", "int VAR_2 = 0;", "ehci_trace_qtd(VAR_0, NLPTR_GET(VAR_0->qtdaddr), (EHCIqtd*) &VAR_0->qh.next_qtd);", "put_dwords(NLPTR_GET(VAR_0->qtdaddr),(uint32_t *) &VAR_0->qh.next_qtd,\nsizeof(EHCIqtd) >> 2);", "if (VAR_0->qh.token & QTD_TOKEN_HALT) {", "ehci_set...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13, 15 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ] ]
13,771
static uint64_t omap_dpll_read(void *opaque, target_phys_addr_t addr, unsigned size) { struct dpll_ctl_s *s = (struct dpll_ctl_s *) opaque; if (size != 2) { return omap_badwidth_read16(opaque, addr); } if (addr == 0x00) /* CTL_REG */ return s->m...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t omap_dpll_read(void *opaque, target_phys_addr_t addr, unsigned size) { struct dpll_ctl_s *s = (struct dpll_ctl_s *) opaque; if (size != 2) { return omap_badwidth_read16(opaque, addr); } if (addr == 0x00) return s->mode; O...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { struct dpll_ctl_s *VAR_0 = (struct dpll_ctl_s *) opaque; if (size != 2) { return omap_badwidth_read16(opaque, addr); } if (addr == 0x00) return VAR_0->mode; O...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "struct dpll_ctl_s *VAR_0 = (struct dpll_ctl_s *) opaque;", "if (size != 2) {", "return omap_badwidth_read16(opaque, addr);", "}", "if (addr == 0x00)\nreturn VAR_0->mode;", "OMAP_BAD_REG(addr);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ] ]
13,774
static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor) { QEMUCursor *c; uint8_t *image, *mask; size_t size; c = cursor_alloc(cursor->header.width, cursor->header.height); c->hot_x = cursor->header.hot_spot_x; c->hot_y = cursor->header.hot_spot_y; switch (cursor->header...
true
qemu
79c5a10cdda1aed00d7ee4ef87de2ef8c854f4a5
static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor) { QEMUCursor *c; uint8_t *image, *mask; size_t size; c = cursor_alloc(cursor->header.width, cursor->header.height); c->hot_x = cursor->header.hot_spot_x; c->hot_y = cursor->header.hot_spot_y; switch (cursor->header...
{ "code": [ " uint8_t *image, *mask;", " case SPICE_CURSOR_TYPE_MONO:", " mask = cursor->chunk.data;", " image = mask + cursor_get_mono_bpl(c) * c->width;", " cursor_set_mono(c, 0xffffff, 0x000000, image, 1, mask);", " if (qxl->debug > 2) {", " ...
static QEMUCursor *FUNC_0(PCIQXLDevice *qxl, QXLCursor *cursor) { QEMUCursor *c; uint8_t *image, *mask; size_t size; c = cursor_alloc(cursor->header.width, cursor->header.height); c->hot_x = cursor->header.hot_spot_x; c->hot_y = cursor->header.hot_spot_y; switch (cursor->header.typ...
[ "static QEMUCursor *FUNC_0(PCIQXLDevice *qxl, QXLCursor *cursor)\n{", "QEMUCursor *c;", "uint8_t *image, *mask;", "size_t size;", "c = cursor_alloc(cursor->header.width, cursor->header.height);", "c->hot_x = cursor->header.hot_spot_x;", "c->hot_y = cursor->header.hot_spot_y;", "switch (cursor->header....
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
13,775
static inline int silk_is_lpc_stable(const int16_t lpc[16], int order) { int k, j, DC_resp = 0; int32_t lpc32[2][16]; // Q24 int totalinvgain = 1 << 30; // 1.0 in Q30 int32_t *row = lpc32[0], *prevrow; /* initialize the first row for the Levinson recursion */ for (k = 0; k < order...
true
FFmpeg
511e6f17f493719058229630c7db4d8d7c05aeac
static inline int silk_is_lpc_stable(const int16_t lpc[16], int order) { int k, j, DC_resp = 0; int32_t lpc32[2][16]; int totalinvgain = 1 << 30; int32_t *row = lpc32[0], *prevrow; for (k = 0; k < order; k++) { DC_resp += lpc[k]; row[k] = lpc[k] * 4096; }...
{ "code": [ " int x = prevrow[j] - ROUND_MULL(prevrow[k - j - 1], rc, 31);", " row[j] = ROUND_MULL(x, gain, fbits);" ], "line_no": [ 91, 93 ] }
static inline int FUNC_0(const int16_t VAR_0[16], int VAR_1) { int VAR_2, VAR_3, VAR_4 = 0; int32_t lpc32[2][16]; int VAR_5 = 1 << 30; int32_t *row = lpc32[0], *prevrow; for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++) { VAR_4 += VAR_0[VAR_2]; row[VAR_2] = VAR_0[VAR_2]...
[ "static inline int FUNC_0(const int16_t VAR_0[16], int VAR_1)\n{", "int VAR_2, VAR_3, VAR_4 = 0;", "int32_t lpc32[2][16];", "int VAR_5 = 1 << 30;", "int32_t *row = lpc32[0], *prevrow;", "for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++) {", "VAR_4 += VAR_0[VAR_2];", "row[VAR_2] = VAR_0[VAR_2] * 4096;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 55 ], [ 57 ...
13,776
static inline int mov_get_stsc_samples(MOVStreamContext *sc, int index) { int chunk_count; if (mov_stsc_index_valid(index, sc->stsc_count)) chunk_count = sc->stsc_data[index + 1].first - sc->stsc_data[index].first; else chunk_count = sc->chunk_count - (sc->stsc_data[index].first - 1)...
true
FFmpeg
53ea595eec984e3109310e8bb7ff4b5786d91057
static inline int mov_get_stsc_samples(MOVStreamContext *sc, int index) { int chunk_count; if (mov_stsc_index_valid(index, sc->stsc_count)) chunk_count = sc->stsc_data[index + 1].first - sc->stsc_data[index].first; else chunk_count = sc->chunk_count - (sc->stsc_data[index].first - 1)...
{ "code": [ "static inline int mov_get_stsc_samples(MOVStreamContext *sc, int index)" ], "line_no": [ 1 ] }
static inline int FUNC_0(MOVStreamContext *VAR_0, int VAR_1) { int VAR_2; if (mov_stsc_index_valid(VAR_1, VAR_0->stsc_count)) VAR_2 = VAR_0->stsc_data[VAR_1 + 1].first - VAR_0->stsc_data[VAR_1].first; else VAR_2 = VAR_0->VAR_2 - (VAR_0->stsc_data[VAR_1].first - 1); return VAR_...
[ "static inline int FUNC_0(MOVStreamContext *VAR_0, int VAR_1)\n{", "int VAR_2;", "if (mov_stsc_index_valid(VAR_1, VAR_0->stsc_count))\nVAR_2 = VAR_0->stsc_data[VAR_1 + 1].first - VAR_0->stsc_data[VAR_1].first;", "else\nVAR_2 = VAR_0->VAR_2 - (VAR_0->stsc_data[VAR_1].first - 1);", "return VAR_0->stsc_data[VA...
[ 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 19 ], [ 21 ] ]
13,777
static void test_machine(const void *data) { const testdef_t *test = data; char *args; char tmpname[] = "/tmp/qtest-boot-serial-XXXXXX"; int fd; fd = mkstemp(tmpname); g_assert(fd != -1); args = g_strdup_printf("-M %s,accel=tcg -chardev file,id=serial0,path=%s" ...
true
qemu
7150d34a1d60851d73d6ab6783b12b1d25e68f86
static void test_machine(const void *data) { const testdef_t *test = data; char *args; char tmpname[] = "/tmp/qtest-boot-serial-XXXXXX"; int fd; fd = mkstemp(tmpname); g_assert(fd != -1); args = g_strdup_printf("-M %s,accel=tcg -chardev file,id=serial0,path=%s" ...
{ "code": [ " \" -serial chardev:serial0 %s\", test->machine,", " tmpname, test->extra);" ], "line_no": [ 23, 25 ] }
static void FUNC_0(const void *VAR_0) { const testdef_t *VAR_1 = VAR_0; char *VAR_2; char VAR_3[] = "/tmp/qtest-boot-serial-XXXXXX"; int VAR_4; VAR_4 = mkstemp(VAR_3); g_assert(VAR_4 != -1); VAR_2 = g_strdup_printf("-M %s,accel=tcg -chardev file,id=serial0,path=%s" ...
[ "static void FUNC_0(const void *VAR_0)\n{", "const testdef_t *VAR_1 = VAR_0;", "char *VAR_2;", "char VAR_3[] = \"/tmp/qtest-boot-serial-XXXXXX\";", "int VAR_4;", "VAR_4 = mkstemp(VAR_3);", "g_assert(VAR_4 != -1);", "VAR_2 = g_strdup_printf(\"-M %s,accel=tcg -chardev file,id=serial0,path=%s\"\n\" -seri...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21, 23, 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ] ]
13,778
static int write_number(void *obj, const AVOption *o, void *dst, double num, int den, int64_t intnum) { if (o->max*den < num*intnum || o->min*den > num*intnum) { av_log(obj, AV_LOG_ERROR, "Value %f for parameter '%s' out of range\n", num*intnum/den, o->name); return AVERROR(ERANG...
false
FFmpeg
0b357a8095e72b092cc5c2aacc2f806db75ecae3
static int write_number(void *obj, const AVOption *o, void *dst, double num, int den, int64_t intnum) { if (o->max*den < num*intnum || o->min*den > num*intnum) { av_log(obj, AV_LOG_ERROR, "Value %f for parameter '%s' out of range\n", num*intnum/den, o->name); return AVERROR(ERANG...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, const AVOption *VAR_1, void *VAR_2, double VAR_3, int VAR_4, int64_t VAR_5) { if (VAR_1->max*VAR_4 < VAR_3*VAR_5 || VAR_1->min*VAR_4 > VAR_3*VAR_5) { av_log(VAR_0, AV_LOG_ERROR, "Value %f for parameter '%s' out of range\n", VAR_3*VAR_5/VAR_4, VAR_1->name); ...
[ "static int FUNC_0(void *VAR_0, const AVOption *VAR_1, void *VAR_2, double VAR_3, int VAR_4, int64_t VAR_5)\n{", "if (VAR_1->max*VAR_4 < VAR_3*VAR_5 || VAR_1->min*VAR_4 > VAR_3*VAR_5) {", "av_log(VAR_0, AV_LOG_ERROR, \"Value %f for parameter '%s' out of range\\n\",\nVAR_3*VAR_5/VAR_4, VAR_1->name);", "return ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ] ]
13,779
static void rtas_stop_self(PowerPCCPU *cpu, sPAPRMachineState *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { CPUState *cs = CPU(cpu); CPUPPCState *env = &cpu->env; PowerPCCPUClass...
true
qemu
9a94ee5bb15793ef69692998ef57794a33074134
static void rtas_stop_self(PowerPCCPU *cpu, sPAPRMachineState *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { CPUState *cs = CPU(cpu); CPUPPCState *env = &cpu->env; PowerPCCPUClass...
{ "code": [], "line_no": [] }
static void FUNC_0(PowerPCCPU *VAR_0, sPAPRMachineState *VAR_1, uint32_t VAR_2, uint32_t VAR_3, target_ulong VAR_4, uint32_t VAR_5, target_ulong VAR_6) { CPUState *cs = CPU(VAR_0); CPUPPCState *env = &VAR_0->env; PowerPCCPUClas...
[ "static void FUNC_0(PowerPCCPU *VAR_0, sPAPRMachineState *VAR_1,\nuint32_t VAR_2, uint32_t VAR_3,\ntarget_ulong VAR_4,\nuint32_t VAR_5, target_ulong VAR_6)\n{", "CPUState *cs = CPU(VAR_0);", "CPUPPCState *env = &VAR_0->env;", "PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(VAR_0);", "cs->halted = 1;", "qemu...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4, 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 20 ], [ 21 ] ]
13,780
static void count_colors(AVCodecContext *avctx, unsigned hits[33], const AVSubtitleRect *r) { DVDSubtitleContext *dvdc = avctx->priv_data; unsigned count[256] = { 0 }; uint32_t *palette = (uint32_t *)r->pict.data[1]; uint32_t color; int x, y, i, j, match, d, best_d, a...
true
FFmpeg
5ed5e90f2ae299cbec66996860d794771a85fee8
static void count_colors(AVCodecContext *avctx, unsigned hits[33], const AVSubtitleRect *r) { DVDSubtitleContext *dvdc = avctx->priv_data; unsigned count[256] = { 0 }; uint32_t *palette = (uint32_t *)r->pict.data[1]; uint32_t color; int x, y, i, j, match, d, best_d, a...
{ "code": [ " d = color_distance(color & 0xFFFFFF, dvdc->global_palette[j]);" ], "line_no": [ 49 ] }
static void FUNC_0(AVCodecContext *VAR_0, unsigned VAR_1[33], const AVSubtitleRect *VAR_2) { DVDSubtitleContext *dvdc = VAR_0->priv_data; unsigned VAR_3[256] = { 0 }; uint32_t *palette = (uint32_t *)VAR_2->pict.data[1]; uint32_t color; int VAR_4, VAR_5, VAR_6, VAR_7, ...
[ "static void FUNC_0(AVCodecContext *VAR_0, unsigned VAR_1[33],\nconst AVSubtitleRect *VAR_2)\n{", "DVDSubtitleContext *dvdc = VAR_0->priv_data;", "unsigned VAR_3[256] = { 0 };", "uint32_t *palette = (uint32_t *)VAR_2->pict.data[1];", "uint32_t color;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
13,781
Coroutine *qemu_coroutine_new(void) { const size_t stack_size = 1 << 20; CoroutineUContext *co; CoroutineThreadState *coTS; struct sigaction sa; struct sigaction osa; stack_t ss; stack_t oss; sigset_t sigs; sigset_t osigs; jmp_buf old_env; /* The way to manipula...
true
qemu
7f151e6f718f2edaf8661c4dedf6fcdb30b10e1b
Coroutine *qemu_coroutine_new(void) { const size_t stack_size = 1 << 20; CoroutineUContext *co; CoroutineThreadState *coTS; struct sigaction sa; struct sigaction osa; stack_t ss; stack_t oss; sigset_t sigs; sigset_t osigs; jmp_buf old_env; ...
{ "code": [ " jmp_buf old_env;" ], "line_no": [ 23 ] }
Coroutine *FUNC_0(void) { const size_t VAR_0 = 1 << 20; CoroutineUContext *co; CoroutineThreadState *coTS; struct sigaction VAR_1; struct sigaction VAR_2; stack_t ss; stack_t oss; sigset_t sigs; sigset_t osigs; jmp_buf old_env; co = g_mallo...
[ "Coroutine *FUNC_0(void)\n{", "const size_t VAR_0 = 1 << 20;", "CoroutineUContext *co;", "CoroutineThreadState *coTS;", "struct sigaction VAR_1;", "struct sigaction VAR_2;", "stack_t ss;", "stack_t oss;", "sigset_t sigs;", "sigset_t osigs;", "jmp_buf old_env;", "co = g_malloc0(sizeof(*co));", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 69 ], [ 71 ], [ 73 ], [ 75 ...
13,782
static MemTxResult memory_region_read_with_attrs_accessor(MemoryRegion *mr, hwaddr addr, uint64_t *value, unsigned size, ...
true
qemu
f2d089425d43735b5369f70f3a36b712440578e5
static MemTxResult memory_region_read_with_attrs_accessor(MemoryRegion *mr, hwaddr addr, uint64_t *value, unsigned size, ...
{ "code": [], "line_no": [] }
static MemTxResult FUNC_0(MemoryRegion *mr, hwaddr addr, uint64_t *value, unsigned size, ...
[ "static MemTxResult FUNC_0(MemoryRegion *mr,\nhwaddr addr,\nuint64_t *value,\nunsigned size,\nunsigned shift,\nuint64_t mask,\nMemTxAttrs attrs)\n{", "uint64_t tmp = 0;", "MemTxResult r;", "r = mr->ops->read_with_attrs(mr->opaque, addr, &tmp, size, attrs);", "if (mr->subpage) {", "trace_memory_region_subp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ] ]
13,783
void kvm_arch_remove_all_hw_breakpoints(void) { }
true
qemu
88365d17d586bcf0d9f4432447db345f72278a2a
void kvm_arch_remove_all_hw_breakpoints(void) { }
{ "code": [ "void kvm_arch_remove_all_hw_breakpoints(void)" ], "line_no": [ 1 ] }
void FUNC_0(void) { }
[ "void FUNC_0(void)\n{", "}" ]
[ 1, 0 ]
[ [ 1, 3 ], [ 5 ] ]
13,785
static inline void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int i; assert(src1==src2); for(i=0; i<width; i++) { int r= src1[6*i + 0] + src1[6*i + 3]; int g= src1[6*i + 1] + src1[6*i + 4]; int b= src1[6*i + 2] + src1[6*i + 5]; dstU[i]= ((RU*...
true
FFmpeg
2da0d70d5eebe42f9fcd27ee554419ebe2a5da06
static inline void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int i; assert(src1==src2); for(i=0; i<width; i++) { int r= src1[6*i + 0] + src1[6*i + 3]; int g= src1[6*i + 1] + src1[6*i + 4]; int b= src1[6*i + 2] + src1[6*i + 5]; dstU[i]= ((RU*...
{ "code": [ "\tint i;", "\tint i;", "\tint i;", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", ...
static inline void FUNC_0(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int VAR_0; assert(src1==src2); for(VAR_0=0; VAR_0<width; VAR_0++) { int r= src1[6*VAR_0 + 0] + src1[6*VAR_0 + 3]; int g= src1[6*VAR_0 + 1] + src1[6*VAR_0 + 4]; int b= src1[6*VAR_0 + 2] ...
[ "static inline void FUNC_0(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)\n{", "int VAR_0;", "assert(src1==src2);", "for(VAR_0=0; VAR_0<width; VAR_0++)", "{", "int r= src1[6*VAR_0 + 0] + src1[6*VAR_0 + 3];", "int g= src1[6*VAR_0 + 1] + src1[6*VAR_0 + 4];", "int b= sr...
[ 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
13,786
void ff_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { void (*filter_samples)(AVFilterLink *, AVFilterBufferRef *); AVFilterPad *dst = link->dstpad; FF_DPRINTF_START(NULL, filter_samples); ff_dlog_link(NULL, link, 1); if (!(filter_samples = dst->filter_samples)) fi...
true
FFmpeg
9cdf74f904f76b2a1da474a2290c7e9ed34dd431
void ff_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) { void (*filter_samples)(AVFilterLink *, AVFilterBufferRef *); AVFilterPad *dst = link->dstpad; FF_DPRINTF_START(NULL, filter_samples); ff_dlog_link(NULL, link, 1); if (!(filter_samples = dst->filter_samples)) fi...
{ "code": [ " int i, planar = av_sample_fmt_is_planar(samplesref->format);", " int planes = !planar ? 1:", " av_get_channel_layout_nb_channels(samplesref->audio->channel_layout);", " for (i = 0; i < planes; i++)", " memcpy(link->cur_buf->extende...
VAR_4voidVAR_4 VAR_4ff_filter_samplesVAR_4(VAR_4AVFilterLinkVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVFilterBufferRefVAR_4 *VAR_4VAR_1VAR_4) { VAR_4voidVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFilterLinkVAR_4 *, VAR_4AVFilterBufferRefVAR_4 *); VAR_4AVFilterPadVAR_4 *VAR_4dstVAR_4 = VAR_4VAR_0VAR_4->VAR_4dstpadVAR_4; VAR_...
[ "VAR_4voidVAR_4 VAR_4ff_filter_samplesVAR_4(VAR_4AVFilterLinkVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVFilterBufferRefVAR_4 *VAR_4VAR_1VAR_4)\n{", "VAR_4voidVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFilterLinkVAR_4 *, VAR_4AVFilterBufferRefVAR_4 *);", "VAR_4AVFilterPadVAR_4 *VAR_4dstVAR_4 = VAR_4VAR_0VAR_4->VAR_4dstpadVAR_4;", "V...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 35, 37, 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [ 65...
13,787
int nbd_send_request(int csock, struct nbd_request *request) { uint8_t buf[4 + 4 + 8 + 8 + 4]; cpu_to_be32w((uint32_t*)buf, NBD_REQUEST_MAGIC); cpu_to_be32w((uint32_t*)(buf + 4), request->type); cpu_to_be64w((uint64_t*)(buf + 8), request->handle); cpu_to_be64w((uint64_t*)(buf + 16), request-...
true
qemu
94e7340b5db8bce7866e44e700ffa8fd26585c7e
int nbd_send_request(int csock, struct nbd_request *request) { uint8_t buf[4 + 4 + 8 + 8 + 4]; cpu_to_be32w((uint32_t*)buf, NBD_REQUEST_MAGIC); cpu_to_be32w((uint32_t*)(buf + 4), request->type); cpu_to_be64w((uint64_t*)(buf + 8), request->handle); cpu_to_be64w((uint64_t*)(buf + 16), request-...
{ "code": [ "int nbd_send_request(int csock, struct nbd_request *request)" ], "line_no": [ 1 ] }
int FUNC_0(int VAR_0, struct nbd_request *VAR_1) { uint8_t buf[4 + 4 + 8 + 8 + 4]; cpu_to_be32w((uint32_t*)buf, NBD_REQUEST_MAGIC); cpu_to_be32w((uint32_t*)(buf + 4), VAR_1->type); cpu_to_be64w((uint64_t*)(buf + 8), VAR_1->handle); cpu_to_be64w((uint64_t*)(buf + 16), VAR_1->from); cpu_t...
[ "int FUNC_0(int VAR_0, struct nbd_request *VAR_1)\n{", "uint8_t buf[4 + 4 + 8 + 8 + 4];", "cpu_to_be32w((uint32_t*)buf, NBD_REQUEST_MAGIC);", "cpu_to_be32w((uint32_t*)(buf + 4), VAR_1->type);", "cpu_to_be64w((uint64_t*)(buf + 8), VAR_1->handle);", "cpu_to_be64w((uint64_t*)(buf + 16), VAR_1->from);", "cp...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
13,788
static int movie_push_frame(AVFilterContext *ctx, unsigned out_id) { MovieContext *movie = ctx->priv; AVPacket *pkt = &movie->pkt; enum AVMediaType frame_type; MovieStream *st; int ret, got_frame = 0, pkt_out_id; AVFilterLink *outlink; if (!pkt->size) { if (movie->eof) { ...
true
FFmpeg
97392553656a7f4fabde9ded4d2b7f538d98ee17
static int movie_push_frame(AVFilterContext *ctx, unsigned out_id) { MovieContext *movie = ctx->priv; AVPacket *pkt = &movie->pkt; enum AVMediaType frame_type; MovieStream *st; int ret, got_frame = 0, pkt_out_id; AVFilterLink *outlink; if (!pkt->size) { if (movie->eof) { ...
{ "code": [ " movie->frame = av_frame_alloc();", " if (!movie->frame)", " ret = avcodec_decode_video2(st->st->codec, movie->frame, &got_frame, pkt);", " ret = avcodec_decode_audio4(st->st->codec, movie->frame, &got_frame, pkt);", " av_frame_free(&movie->frame);", " ...
static int FUNC_0(AVFilterContext *VAR_0, unsigned VAR_1) { MovieContext *movie = VAR_0->priv; AVPacket *pkt = &movie->pkt; enum AVMediaType VAR_2; MovieStream *st; int VAR_3, VAR_4 = 0, VAR_5; AVFilterLink *outlink; if (!pkt->size) { if (movie->eof) { if (mov...
[ "static int FUNC_0(AVFilterContext *VAR_0, unsigned VAR_1)\n{", "MovieContext *movie = VAR_0->priv;", "AVPacket *pkt = &movie->pkt;", "enum AVMediaType VAR_2;", "MovieStream *st;", "int VAR_3, VAR_4 = 0, VAR_5;", "AVFilterLink *outlink;", "if (!pkt->size) {", "if (movie->eof) {", "if (movie->st[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, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
13,789
void blk_remove_bs(BlockBackend *blk) { BlockDriverState *bs; ThrottleTimers *tt; notifier_list_notify(&blk->remove_bs_notifiers, blk); if (blk->public.throttle_group_member.throttle_state) { tt = &blk->public.throttle_group_member.throttle_timers; bs = blk_bs(blk); bdr...
true
qemu
c89bcf3af01e7a8834cca5344e098bf879e99999
void blk_remove_bs(BlockBackend *blk) { BlockDriverState *bs; ThrottleTimers *tt; notifier_list_notify(&blk->remove_bs_notifiers, blk); if (blk->public.throttle_group_member.throttle_state) { tt = &blk->public.throttle_group_member.throttle_timers; bs = blk_bs(blk); bdr...
{ "code": [ " ThrottleTimers *tt;", " if (blk->public.throttle_group_member.throttle_state) {", " tt = &blk->public.throttle_group_member.throttle_timers;", " throttle_timers_detach_aio_context(tt);", " if (blk->public.throttle_group_member.throttle_state) {" ], "line_no...
void FUNC_0(BlockBackend *VAR_0) { BlockDriverState *bs; ThrottleTimers *tt; notifier_list_notify(&VAR_0->remove_bs_notifiers, VAR_0); if (VAR_0->public.throttle_group_member.throttle_state) { tt = &VAR_0->public.throttle_group_member.throttle_timers; bs = blk_bs(VAR_0); ...
[ "void FUNC_0(BlockBackend *VAR_0)\n{", "BlockDriverState *bs;", "ThrottleTimers *tt;", "notifier_list_notify(&VAR_0->remove_bs_notifiers, VAR_0);", "if (VAR_0->public.throttle_group_member.throttle_state) {", "tt = &VAR_0->public.throttle_group_member.throttle_timers;", "bs = blk_bs(VAR_0);", "bdrv_dr...
[ 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ] ]
13,790
static void vmsvga_init(DeviceState *dev, struct vmsvga_state_s *s, MemoryRegion *address_space, MemoryRegion *io) { s->scratch_size = SVGA_SCRATCH_SIZE; s->scratch = g_malloc(s->scratch_size * 4); s->vga.con = graphic_console_init(dev, 0, &vmsvga_ops, s); s->fifo_size ...
true
qemu
f8ed85ac992c48814d916d5df4d44f9a971c5de4
static void vmsvga_init(DeviceState *dev, struct vmsvga_state_s *s, MemoryRegion *address_space, MemoryRegion *io) { s->scratch_size = SVGA_SCRATCH_SIZE; s->scratch = g_malloc(s->scratch_size * 4); s->vga.con = graphic_console_init(dev, 0, &vmsvga_ops, s); s->fifo_size ...
{ "code": [ " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " ...
static void FUNC_0(DeviceState *VAR_0, struct vmsvga_state_s *VAR_1, MemoryRegion *VAR_2, MemoryRegion *VAR_3) { VAR_1->scratch_size = SVGA_SCRATCH_SIZE; VAR_1->scratch = g_malloc(VAR_1->scratch_size * 4); VAR_1->vga.con = graphic_console_init(VAR_0, 0, &vmsvga_ops, VAR_1); ...
[ "static void FUNC_0(DeviceState *VAR_0, struct vmsvga_state_s *VAR_1,\nMemoryRegion *VAR_2, MemoryRegion *VAR_3)\n{", "VAR_1->scratch_size = SVGA_SCRATCH_SIZE;", "VAR_1->scratch = g_malloc(VAR_1->scratch_size * 4);", "VAR_1->vga.con = graphic_console_init(VAR_0, 0, &vmsvga_ops, VAR_1);", "VAR_1->fifo_size =...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
13,791
static void x86_cpu_common_class_init(ObjectClass *oc, void *data) { X86CPUClass *xcc = X86_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); DeviceClass *dc = DEVICE_CLASS(oc); xcc->parent_realize = dc->realize; dc->realize = x86_cpu_realizefn; dc->props = x86_cpu_properties; xcc->parent_reset =...
true
qemu
4c315c27661502a0813b129e41c0bf640c34a8d6
static void x86_cpu_common_class_init(ObjectClass *oc, void *data) { X86CPUClass *xcc = X86_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); DeviceClass *dc = DEVICE_CLASS(oc); xcc->parent_realize = dc->realize; dc->realize = x86_cpu_realizefn; dc->props = x86_cpu_properties; xcc->parent_reset =...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { X86CPUClass *xcc = X86_CPU_CLASS(VAR_0); CPUClass *cc = CPU_CLASS(VAR_0); DeviceClass *dc = DEVICE_CLASS(VAR_0); xcc->parent_realize = dc->realize; dc->realize = x86_cpu_realizefn; dc->props = x86_cpu_properties; xcc->parent_reset = cc->r...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "X86CPUClass *xcc = X86_CPU_CLASS(VAR_0);", "CPUClass *cc = CPU_CLASS(VAR_0);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "xcc->parent_realize = dc->realize;", "dc->realize = x86_cpu_realizefn;", "dc->props = x86_cpu_properties;", "xcc->parent_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ],...
13,792
static int ds1225y_set_to_mode(ds1225y_t *NVRAM, nvram_open_mode mode, const char *filemode) { if (NVRAM->open_mode != mode) { if (NVRAM->file) qemu_fclose(NVRAM->file); NVRAM->file = qemu_fopen(NVRAM->filename, filemode); NVRAM->open_mode = mode; } ...
true
qemu
30aa5c0d303c334c646e9db1ebadda0c0db8b13f
static int ds1225y_set_to_mode(ds1225y_t *NVRAM, nvram_open_mode mode, const char *filemode) { if (NVRAM->open_mode != mode) { if (NVRAM->file) qemu_fclose(NVRAM->file); NVRAM->file = qemu_fopen(NVRAM->filename, filemode); NVRAM->open_mode = mode; } ...
{ "code": [ "static int ds1225y_set_to_mode(ds1225y_t *NVRAM, nvram_open_mode mode, const char *filemode)\r", " if (NVRAM->open_mode != mode)\r", " if (NVRAM->file)\r", " qemu_fclose(NVRAM->file);\r", " NVRAM->file = qemu_fopen(NVRAM->filename, filemode);\r", " ...
static int FUNC_0(ds1225y_t *VAR_0, nvram_open_mode VAR_1, const char *VAR_2) { if (VAR_0->open_mode != VAR_1) { if (VAR_0->file) qemu_fclose(VAR_0->file); VAR_0->file = qemu_fopen(VAR_0->filename, VAR_2); VAR_0->open_mode = VAR_1; } return (VAR_0->f...
[ "static int FUNC_0(ds1225y_t *VAR_0, nvram_open_mode VAR_1, const char *VAR_2)\n{", "if (VAR_0->open_mode != VAR_1)\n{", "if (VAR_0->file)\nqemu_fclose(VAR_0->file);", "VAR_0->file = qemu_fopen(VAR_0->filename, VAR_2);", "VAR_0->open_mode = VAR_1;", "}", "return (VAR_0->file != NULL);", "}" ]
[ 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
13,793
static int usb_wacom_handle_data(USBDevice *dev, USBPacket *p) { USBWacomState *s = (USBWacomState *) dev; int ret = 0; switch (p->pid) { case USB_TOKEN_IN: if (p->devep == 1) { if (!(s->changed || s->idle)) return USB_RET_NAK; s->changed = 0; ...
true
qemu
4f4321c11ff6e98583846bfd6f0e81954924b003
static int usb_wacom_handle_data(USBDevice *dev, USBPacket *p) { USBWacomState *s = (USBWacomState *) dev; int ret = 0; switch (p->pid) { case USB_TOKEN_IN: if (p->devep == 1) { if (!(s->changed || s->idle)) return USB_RET_NAK; s->changed = 0; ...
{ "code": [ " ret = usb_mouse_poll(s, p->data, p->len);", " ret = usb_wacom_poll(s, p->data, p->len);" ], "line_no": [ 25, 29 ] }
static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1) { USBWacomState *s = (USBWacomState *) VAR_0; int VAR_2 = 0; switch (VAR_1->pid) { case USB_TOKEN_IN: if (VAR_1->devep == 1) { if (!(s->changed || s->idle)) return USB_RET_NAK; s->changed = 0...
[ "static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)\n{", "USBWacomState *s = (USBWacomState *) VAR_0;", "int VAR_2 = 0;", "switch (VAR_1->pid) {", "case USB_TOKEN_IN:\nif (VAR_1->devep == 1) {", "if (!(s->changed || s->idle))\nreturn USB_RET_NAK;", "s->changed = 0;", "if (s->mode == WACOM_MODE_HID)...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37, 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
13,794
static float quantize_band_cost(struct AACEncContext *s, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, int *bits) { const float IQ = ff_aac_pow2sf_tab[...
true
FFmpeg
508f092a783f7d305d1e9938c953e375139e2cba
static float quantize_band_cost(struct AACEncContext *s, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, int *bits) { const float IQ = ff_aac_pow2sf_tab[...
{ "code": [ "static float quantize_band_cost(struct AACEncContext *s, const float *in,", " minidx = j;", " if (bits)", " *bits = resbits;", " return cost;", " const float IQ = ff_aac_pow2sf_tab[200 + scale_idx - SCALE_ONE_POS + SCALE_DIV_512];", " const f...
static float FUNC_0(struct AACEncContext *VAR_0, const float *VAR_1, const float *VAR_2, int VAR_3, int VAR_4, int VAR_5, const float VAR_6, const float VAR_7, int *VAR_8) { const float VAR_9 = ff_aac_pow2sf_tab[200...
[ "static float FUNC_0(struct AACEncContext *VAR_0, const float *VAR_1,\nconst float *VAR_2, int VAR_3, int VAR_4,\nint VAR_5, const float VAR_6, const float VAR_7,\nint *VAR_8)\n{", "const float VAR_9 = ff_aac_pow2sf_tab[200 + VAR_4 - SCALE_ONE_POS + SCALE_DIV_512];", "const float VAR_10 = ff_aac_pow2sf_tab[200...
[ 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ...
13,795
static void sysbus_esp_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = sysbus_esp_realize; dc->reset = sysbus_esp_hard_reset; dc->vmsd = &vmstate_sysbus_esp_scsi; set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); }
true
qemu
e4f4fb1eca795e36f363b4647724221e774523c1
static void sysbus_esp_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = sysbus_esp_realize; dc->reset = sysbus_esp_hard_reset; dc->vmsd = &vmstate_sysbus_esp_scsi; set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = sysbus_esp_realize; dc->reset = sysbus_esp_hard_reset; dc->vmsd = &vmstate_sysbus_esp_scsi; set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = sysbus_esp_realize;", "dc->reset = sysbus_esp_hard_reset;", "dc->vmsd = &vmstate_sysbus_esp_scsi;", "set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 22 ] ]
13,796
static int vfio_initfn(PCIDevice *pdev) { VFIODevice *pvdev, *vdev = DO_UPCAST(VFIODevice, pdev, pdev); VFIOGroup *group; char path[PATH_MAX], iommu_group_path[PATH_MAX], *group_name; ssize_t len; struct stat st; int groupid; int ret; /* Check that the host device exists */ ...
true
qemu
13665a2d2f675341e73618fcd7f9d36b6c68b509
static int vfio_initfn(PCIDevice *pdev) { VFIODevice *pvdev, *vdev = DO_UPCAST(VFIODevice, pdev, pdev); VFIOGroup *group; char path[PATH_MAX], iommu_group_path[PATH_MAX], *group_name; ssize_t len; struct stat st; int groupid; int ret; snprintf(path, sizeof(path), ...
{ "code": [ " len = readlink(path, iommu_group_path, PATH_MAX);", " if (len <= 0) {", " return -errno;" ], "line_no": [ 45, 47, 35 ] }
static int FUNC_0(PCIDevice *VAR_0) { VFIODevice *pvdev, *vdev = DO_UPCAST(VFIODevice, VAR_0, VAR_0); VFIOGroup *group; char VAR_1[PATH_MAX], iommu_group_path[PATH_MAX], *group_name; ssize_t len; struct stat VAR_2; int VAR_3; int VAR_4; snprintf(VAR_1, sizeof(VAR_1), ...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "VFIODevice *pvdev, *vdev = DO_UPCAST(VFIODevice, VAR_0, VAR_0);", "VFIOGroup *group;", "char VAR_1[PATH_MAX], iommu_group_path[PATH_MAX], *group_name;", "ssize_t len;", "struct stat VAR_2;", "int VAR_3;", "int VAR_4;", "snprintf(VAR_1, sizeof(VAR_1),\n\"/sy...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
13,797
static target_ulong disas_insn(CPUX86State *env, DisasContext *s, target_ulong pc_start) { int b, prefixes, aflag, dflag; int shift, ot; int modrm, reg, rm, mod, reg_addr, op, opreg, offset_addr, val; target_ulong next_eip, tval; int rex_w, rex_r; if (unlikely(qemu...
true
qemu
bff93281a75def2e3197005d72ad5cdc4719383f
static target_ulong disas_insn(CPUX86State *env, DisasContext *s, target_ulong pc_start) { int b, prefixes, aflag, dflag; int shift, ot; int modrm, reg, rm, mod, reg_addr, op, opreg, offset_addr, val; target_ulong next_eip, tval; int rex_w, rex_r; if (unlikely(qemu...
{ "code": [], "line_no": [] }
static target_ulong FUNC_0(CPUX86State *env, DisasContext *s, target_ulong pc_start) { int VAR_0, VAR_1, VAR_2, VAR_3; int VAR_4, VAR_5; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_20, VAR_12, VAR_13, VAR_21; target_ulong next_eip, tval; int VAR_15, VAR_16; if (unl...
[ "static target_ulong FUNC_0(CPUX86State *env, DisasContext *s,\ntarget_ulong pc_start)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3;", "int VAR_4, VAR_5;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_20, VAR_12, VAR_13, VAR_21;", "target_ulong next_eip, tval;", "int VAR_15, VAR_16;", "if (unlikely(qemu_logleve...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ ...
13,798
int h261_decode_picture_header(H261Context *h){ MpegEncContext * const s = &h->s; int format, i; static int h261_framecounter = 0; uint32_t startcode; align_get_bits(&s->gb); startcode = (h->last_bits << (12 - (8-h->bits_left))) | get_bits(&s->gb, 20-8 - (8- h->bits_left)); for(i=...
true
FFmpeg
49e5dcbce5f9e08ec375fd54c413148beb81f1d7
int h261_decode_picture_header(H261Context *h){ MpegEncContext * const s = &h->s; int format, i; static int h261_framecounter = 0; uint32_t startcode; align_get_bits(&s->gb); startcode = (h->last_bits << (12 - (8-h->bits_left))) | get_bits(&s->gb, 20-8 - (8- h->bits_left)); for(i=...
{ "code": [ " return -1;", " align_get_bits(&s->gb);", " skip_bits(&s->gb, 8);", " return -1;", " return -1;", " static int h261_framecounter = 0;", " if(h261_framecounter > 1)", " s->pict_type = P_TYPE;", " s->pict_type = I_TYPE;"...
int FUNC_0(H261Context *VAR_0){ MpegEncContext * const s = &VAR_0->s; int VAR_1, VAR_2; static int VAR_3 = 0; uint32_t startcode; align_get_bits(&s->gb); startcode = (VAR_0->last_bits << (12 - (8-VAR_0->bits_left))) | get_bits(&s->gb, 20-8 - (8- VAR_0->bits_left)); for(VAR_2= s->g...
[ "int FUNC_0(H261Context *VAR_0){", "MpegEncContext * const s = &VAR_0->s;", "int VAR_1, VAR_2;", "static int VAR_3 = 0;", "uint32_t startcode;", "align_get_bits(&s->gb);", "startcode = (VAR_0->last_bits << (12 - (8-VAR_0->bits_left))) | get_bits(&s->gb, 20-8 - (8- VAR_0->bits_left));", "for(VAR_2= s->...
[ 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ...
13,799
void HELPER(srst)(CPUS390XState *env, uint32_t r1, uint32_t r2) { uintptr_t ra = GETPC(); uint64_t end, str; uint32_t len; uint8_t v, c = env->regs[0]; /* Bits 32-55 must contain all 0. */ if (env->regs[0] & 0xffffff00u) { cpu_restore_state(ENV_GET_CPU(env), ra); prog...
false
qemu
8d2f850a5ab7579a852f23b28273940a47dfd7ff
void HELPER(srst)(CPUS390XState *env, uint32_t r1, uint32_t r2) { uintptr_t ra = GETPC(); uint64_t end, str; uint32_t len; uint8_t v, c = env->regs[0]; if (env->regs[0] & 0xffffff00u) { cpu_restore_state(ENV_GET_CPU(env), ra); program_interrupt(env, PGM_SPECIFICATION,...
{ "code": [], "line_no": [] }
void FUNC_0(srst)(CPUS390XState *env, uint32_t r1, uint32_t r2) { uintptr_t ra = GETPC(); uint64_t end, str; uint32_t len; uint8_t v, c = env->regs[0]; if (env->regs[0] & 0xffffff00u) { cpu_restore_state(ENV_GET_CPU(env), ra); program_interrupt(env, PGM_SPECIFICATION,...
[ "void FUNC_0(srst)(CPUS390XState *env, uint32_t r1, uint32_t r2)\n{", "uintptr_t ra = GETPC();", "uint64_t end, str;", "uint32_t len;", "uint8_t v, c = env->regs[0];", "if (env->regs[0] & 0xffffff00u) {", "cpu_restore_state(ENV_GET_CPU(env), ra);", "program_interrupt(env, PGM_SPECIFICATION, 6);", "}...
[ 0, 0, 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 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ...
13,800
void qemu_vfree(void *ptr) { /* may be useful some day, but currently we do not need to free */ }
false
qemu
6cb7ee859a1b28aae8eab7f88908c9c9262b8a5c
void qemu_vfree(void *ptr) { }
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0) { }
[ "void FUNC_0(void *VAR_0)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3 ], [ 7 ] ]
13,801
int qemu_sem_timedwait(QemuSemaphore *sem, int ms) { int rc = WaitForSingleObject(sem->sema, ms); if (rc == WAIT_OBJECT_0) { return 0; } if (rc != WAIT_TIMEOUT) { error_exit(GetLastError(), __func__); } return -1; }
false
qemu
c096358e747e88fc7364e40e3c354ee0bb683960
int qemu_sem_timedwait(QemuSemaphore *sem, int ms) { int rc = WaitForSingleObject(sem->sema, ms); if (rc == WAIT_OBJECT_0) { return 0; } if (rc != WAIT_TIMEOUT) { error_exit(GetLastError(), __func__); } return -1; }
{ "code": [], "line_no": [] }
int FUNC_0(QemuSemaphore *VAR_0, int VAR_1) { int VAR_2 = WaitForSingleObject(VAR_0->sema, VAR_1); if (VAR_2 == WAIT_OBJECT_0) { return 0; } if (VAR_2 != WAIT_TIMEOUT) { error_exit(GetLastError(), __func__); } return -1; }
[ "int FUNC_0(QemuSemaphore *VAR_0, int VAR_1)\n{", "int VAR_2 = WaitForSingleObject(VAR_0->sema, VAR_1);", "if (VAR_2 == WAIT_OBJECT_0) {", "return 0;", "}", "if (VAR_2 != WAIT_TIMEOUT) {", "error_exit(GetLastError(), __func__);", "}", "return -1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
13,803
static void disas_simd_3same_int(DisasContext *s, uint32_t insn) { int is_q = extract32(insn, 30, 1); int u = extract32(insn, 29, 1); int size = extract32(insn, 22, 2); int opcode = extract32(insn, 11, 5); int rm = extract32(insn, 16, 5); int rn = extract32(insn, 5, 5); int rd = extr...
false
qemu
220ad4ca846d8e0734dd2d2af38c61a6f5436d66
static void disas_simd_3same_int(DisasContext *s, uint32_t insn) { int is_q = extract32(insn, 30, 1); int u = extract32(insn, 29, 1); int size = extract32(insn, 22, 2); int opcode = extract32(insn, 11, 5); int rm = extract32(insn, 16, 5); int rn = extract32(insn, 5, 5); int rd = extr...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1) { int VAR_2 = extract32(VAR_1, 30, 1); int VAR_3 = extract32(VAR_1, 29, 1); int VAR_4 = extract32(VAR_1, 22, 2); int VAR_5 = extract32(VAR_1, 11, 5); int VAR_6 = extract32(VAR_1, 16, 5); int VAR_7 = extract32(VAR_1, 5, 5); int V...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{", "int VAR_2 = extract32(VAR_1, 30, 1);", "int VAR_3 = extract32(VAR_1, 29, 1);", "int VAR_4 = extract32(VAR_1, 22, 2);", "int VAR_5 = extract32(VAR_1, 11, 5);", "int VAR_6 = extract32(VAR_1, 16, 5);", "int VAR_7 = extract32(VAR_1, 5, 5);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39, 41, 43, 45, 47, 49, 51, 53 ], [...
13,804
static ssize_t proxy_preadv(FsContext *ctx, V9fsFidOpenState *fs, const struct iovec *iov, int iovcnt, off_t offset) { ssize_t ret; #ifdef CONFIG_PREADV ret = preadv(fs->fd, iov, iovcnt, offset); #else ret = lseek(fs->fd, offset, SEEK_SET); ...
false
qemu
494a8ebe713055d3946183f4b395f85a18b43e9e
static ssize_t proxy_preadv(FsContext *ctx, V9fsFidOpenState *fs, const struct iovec *iov, int iovcnt, off_t offset) { ssize_t ret; #ifdef CONFIG_PREADV ret = preadv(fs->fd, iov, iovcnt, offset); #else ret = lseek(fs->fd, offset, SEEK_SET); ...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(FsContext *ctx, V9fsFidOpenState *fs, const struct iovec *iov, int iovcnt, off_t offset) { ssize_t ret; #ifdef CONFIG_PREADV ret = preadv(fs->fd, iov, iovcnt, offset); #else ret = lseek(fs->fd, offset, SEEK_SET); if (...
[ "static ssize_t FUNC_0(FsContext *ctx, V9fsFidOpenState *fs,\nconst struct iovec *iov,\nint iovcnt, off_t offset)\n{", "ssize_t ret;", "#ifdef CONFIG_PREADV\nret = preadv(fs->fd, iov, iovcnt, offset);", "#else\nret = lseek(fs->fd, offset, SEEK_SET);", "if (ret >= 0) {", "ret = readv(fs->fd, iov, iovcnt);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ] ]
13,805
MemoryRegion *address_space_translate(AddressSpace *as, hwaddr addr, hwaddr *xlat, hwaddr *plen, bool is_write) { IOMMUTLBEntry iotlb; MemoryRegionSection *section; MemoryRegion *mr; hwaddr len = *plen; for (;;) { ...
false
qemu
a87f39543a9259f671c5413723311180ee2ad2a8
MemoryRegion *address_space_translate(AddressSpace *as, hwaddr addr, hwaddr *xlat, hwaddr *plen, bool is_write) { IOMMUTLBEntry iotlb; MemoryRegionSection *section; MemoryRegion *mr; hwaddr len = *plen; for (;;) { ...
{ "code": [], "line_no": [] }
MemoryRegion *FUNC_0(AddressSpace *as, hwaddr addr, hwaddr *xlat, hwaddr *plen, bool is_write) { IOMMUTLBEntry iotlb; MemoryRegionSection *section; MemoryRegion *mr; hwaddr len = *plen; for (;;) { section ...
[ "MemoryRegion *FUNC_0(AddressSpace *as, hwaddr addr,\nhwaddr *xlat, hwaddr *plen,\nbool is_write)\n{", "IOMMUTLBEntry iotlb;", "MemoryRegionSection *section;", "MemoryRegion *mr;", "hwaddr len = *plen;", "for (;;) {", "section = address_space_translate_internal(as->dispatch, addr, &addr, &len, true);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
13,806
static void shpc_set_status(SHPCDevice *shpc, int slot, uint8_t value, uint16_t msk) { uint8_t *status = shpc->config + SHPC_SLOT_STATUS(slot); pci_word_test_and_clear_mask(status, msk); pci_word_test_and_set_mask(status, value << (ffs(msk) - 1)); }
false
qemu
786a4ea82ec9c87e3a895cf41081029b285a5fe5
static void shpc_set_status(SHPCDevice *shpc, int slot, uint8_t value, uint16_t msk) { uint8_t *status = shpc->config + SHPC_SLOT_STATUS(slot); pci_word_test_and_clear_mask(status, msk); pci_word_test_and_set_mask(status, value << (ffs(msk) - 1)); }
{ "code": [], "line_no": [] }
static void FUNC_0(SHPCDevice *VAR_0, int VAR_1, uint8_t VAR_2, uint16_t VAR_3) { uint8_t *status = VAR_0->config + SHPC_SLOT_STATUS(VAR_1); pci_word_test_and_clear_mask(status, VAR_3); pci_word_test_and_set_mask(status, VAR_2 << (ffs(VAR_3) - 1)); }
[ "static void FUNC_0(SHPCDevice *VAR_0,\nint VAR_1, uint8_t VAR_2, uint16_t VAR_3)\n{", "uint8_t *status = VAR_0->config + SHPC_SLOT_STATUS(VAR_1);", "pci_word_test_and_clear_mask(status, VAR_3);", "pci_word_test_and_set_mask(status, VAR_2 << (ffs(VAR_3) - 1));", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
13,807
static void prom_set(uint32_t* prom_buf, int index, const char *string, ...) { va_list ap; int32_t table_addr; if (index >= ENVP_NB_ENTRIES) return; if (string == NULL) { prom_buf[index] = 0; return; } table_addr = sizeof(int32_t) * ENVP_NB_ENTRIES + index...
false
qemu
8b7968f7c4ac8c07cad6a1a0891d38cf239a2839
static void prom_set(uint32_t* prom_buf, int index, const char *string, ...) { va_list ap; int32_t table_addr; if (index >= ENVP_NB_ENTRIES) return; if (string == NULL) { prom_buf[index] = 0; return; } table_addr = sizeof(int32_t) * ENVP_NB_ENTRIES + index...
{ "code": [], "line_no": [] }
static void FUNC_0(uint32_t* VAR_0, int VAR_1, const char *VAR_2, ...) { va_list ap; int32_t table_addr; if (VAR_1 >= ENVP_NB_ENTRIES) return; if (VAR_2 == NULL) { VAR_0[VAR_1] = 0; return; } table_addr = sizeof(int32_t) * ENVP_NB_ENTRIES + VAR_1 * ENVP_EN...
[ "static void FUNC_0(uint32_t* VAR_0, int VAR_1, const char *VAR_2, ...)\n{", "va_list ap;", "int32_t table_addr;", "if (VAR_1 >= ENVP_NB_ENTRIES)\nreturn;", "if (VAR_2 == NULL) {", "VAR_0[VAR_1] = 0;", "return;", "}", "table_addr = sizeof(int32_t) * ENVP_NB_ENTRIES + VAR_1 * ENVP_ENTRY_SIZE;", "VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
13,808
DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit) { DriveInfo *dinfo; /* seek interface, bus and unit */ TAILQ_FOREACH(dinfo, &drives, next) { if (dinfo->type == type && dinfo->bus == bus && dinfo->unit == unit) return dinfo; } return NULL...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit) { DriveInfo *dinfo; TAILQ_FOREACH(dinfo, &drives, next) { if (dinfo->type == type && dinfo->bus == bus && dinfo->unit == unit) return dinfo; } return NULL; }
{ "code": [], "line_no": [] }
DriveInfo *FUNC_0(BlockInterfaceType type, int bus, int unit) { DriveInfo *dinfo; TAILQ_FOREACH(dinfo, &drives, next) { if (dinfo->type == type && dinfo->bus == bus && dinfo->unit == unit) return dinfo; } return NULL; }
[ "DriveInfo *FUNC_0(BlockInterfaceType type, int bus, int unit)\n{", "DriveInfo *dinfo;", "TAILQ_FOREACH(dinfo, &drives, next) {", "if (dinfo->type == type &&\ndinfo->bus == bus &&\ndinfo->unit == unit)\nreturn dinfo;", "}", "return NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 13 ], [ 15, 17, 19, 21 ], [ 23 ], [ 27 ], [ 29 ] ]
13,810
static void do_rematrixing(AC3DecodeContext *ctx) { ac3_audio_block *ab = &ctx->audio_block; uint8_t bnd1 = 13, bnd2 = 25, bnd3 = 37, bnd4 = 61; uint8_t bndend; bndend = FFMIN(ab->endmant[0], ab->endmant[1]); if (ab->rematflg & 1) _do_rematrixing(ctx, bnd1, bnd2); if (ab->remat...
false
FFmpeg
0058584580b87feb47898e60e4b80c7f425882ad
static void do_rematrixing(AC3DecodeContext *ctx) { ac3_audio_block *ab = &ctx->audio_block; uint8_t bnd1 = 13, bnd2 = 25, bnd3 = 37, bnd4 = 61; uint8_t bndend; bndend = FFMIN(ab->endmant[0], ab->endmant[1]); if (ab->rematflg & 1) _do_rematrixing(ctx, bnd1, bnd2); if (ab->remat...
{ "code": [], "line_no": [] }
static void FUNC_0(AC3DecodeContext *VAR_0) { ac3_audio_block *ab = &VAR_0->audio_block; uint8_t bnd1 = 13, bnd2 = 25, bnd3 = 37, bnd4 = 61; uint8_t bndend; bndend = FFMIN(ab->endmant[0], ab->endmant[1]); if (ab->rematflg & 1) _do_rematrixing(VAR_0, bnd1, bnd2); if (ab->rematfl...
[ "static void FUNC_0(AC3DecodeContext *VAR_0)\n{", "ac3_audio_block *ab = &VAR_0->audio_block;", "uint8_t bnd1 = 13, bnd2 = 25, bnd3 = 37, bnd4 = 61;", "uint8_t bndend;", "bndend = FFMIN(ab->endmant[0], ab->endmant[1]);", "if (ab->rematflg & 1)\n_do_rematrixing(VAR_0, bnd1, bnd2);", "if (ab->rematflg & 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ] ]
13,811
static void acpi_table_install(const char unsigned *blob, size_t bloblen, bool has_header, const struct AcpiTableOptions *hdrs, Error **errp) { size_t body_start; const char unsigned *hdr_src; size_t body_siz...
false
qemu
8297be80f7cf71e09617669a8bd8b2836dcfd4c3
static void acpi_table_install(const char unsigned *blob, size_t bloblen, bool has_header, const struct AcpiTableOptions *hdrs, Error **errp) { size_t body_start; const char unsigned *hdr_src; size_t body_siz...
{ "code": [], "line_no": [] }
static void FUNC_0(const char unsigned *VAR_0, size_t VAR_1, bool VAR_2, const struct AcpiTableOptions *VAR_3, Error **VAR_4) { size_t body_start; const char unsigned *VAR_5; size_t body_size, acpi_payload_si...
[ "static void FUNC_0(const char unsigned *VAR_0, size_t VAR_1,\nbool VAR_2,\nconst struct AcpiTableOptions *VAR_3,\nError **VAR_4)\n{", "size_t body_start;", "const char unsigned *VAR_5;", "size_t body_size, acpi_payload_size;", "struct acpi_table_header *VAR_6;", "unsigned VAR_7;", "if (VAR_2) {", "bo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 47 ], [ 51 ], [ 53, 55, 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 83 ], [ 85 ], [ 87 ], [...
13,813
static void spapr_hotplug_req_event(uint8_t hp_id, uint8_t hp_action, sPAPRDRConnectorType drc_type, union drc_identifier *drc_id) { sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); struct hp_log_full *new_hp; struct ...
false
qemu
bff3063837a76b37a4bbbfe614324ca38e859f2b
static void spapr_hotplug_req_event(uint8_t hp_id, uint8_t hp_action, sPAPRDRConnectorType drc_type, union drc_identifier *drc_id) { sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); struct hp_log_full *new_hp; struct ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t VAR_0, uint8_t VAR_1, sPAPRDRConnectorType VAR_2, union drc_identifier *VAR_3) { sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); struct hp_log_full *VAR_4; struct rtas_error_log *VAR_5; ...
[ "static void FUNC_0(uint8_t VAR_0, uint8_t VAR_1,\nsPAPRDRConnectorType VAR_2,\nunion drc_identifier *VAR_3)\n{", "sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());", "struct hp_log_full *VAR_4;", "struct rtas_error_log *VAR_5;", "struct rtas_event_log_v6 *VAR_6;", "struct rtas_event_log_v6_ma...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41, 43, 45, 47, 49 ], [ 51, 53 ...
13,814
void qemu_aio_flush(void) { AioHandler *node; int ret; do { ret = 0; /* * If there are pending emulated aio start them now so flush * will be able to return 1. */ qemu_aio_wait(); QLIST_FOREACH(node, &aio_handlers, node) { if (node->io_flush) { ...
false
qemu
bcdc18578d5b41180db2e17baa7563c5f05b39ee
void qemu_aio_flush(void) { AioHandler *node; int ret; do { ret = 0; qemu_aio_wait(); QLIST_FOREACH(node, &aio_handlers, node) { if (node->io_flush) { ret |= node->io_flush(node->opaque); } } } while (qemu...
{ "code": [], "line_no": [] }
void FUNC_0(void) { AioHandler *node; int VAR_0; do { VAR_0 = 0; qemu_aio_wait(); QLIST_FOREACH(node, &aio_handlers, node) { if (node->io_flush) { VAR_0 |= node->io_flush(node->opaque); } } } while (qemu_b...
[ "void FUNC_0(void)\n{", "AioHandler *node;", "int VAR_0;", "do {", "VAR_0 = 0;", "qemu_aio_wait();", "QLIST_FOREACH(node, &aio_handlers, node) {", "if (node->io_flush) {", "VAR_0 |= node->io_flush(node->opaque);", "}", "}", "} while (qemu_bh_poll() || VAR_0 > 0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
13,815
static void gen_srs(DisasContext *s, uint32_t mode, uint32_t amode, bool writeback) { int32_t offset; TCGv_i32 addr = tcg_temp_new_i32(); TCGv_i32 tmp = tcg_const_i32(mode); gen_helper_get_r13_banked(addr, cpu_env, tmp); tcg_temp_free_i32(tmp); switch (amode) { c...
false
qemu
cbc0326b6fb905f80b7cef85b24571f7ebb62077
static void gen_srs(DisasContext *s, uint32_t mode, uint32_t amode, bool writeback) { int32_t offset; TCGv_i32 addr = tcg_temp_new_i32(); TCGv_i32 tmp = tcg_const_i32(mode); gen_helper_get_r13_banked(addr, cpu_env, tmp); tcg_temp_free_i32(tmp); switch (amode) { c...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, uint32_t VAR_2, bool VAR_3) { int32_t offset; TCGv_i32 addr = tcg_temp_new_i32(); TCGv_i32 tmp = tcg_const_i32(VAR_1); gen_helper_get_r13_banked(addr, cpu_env, tmp); tcg_temp_free_i32(tmp); switch (VAR_2) { ...
[ "static void FUNC_0(DisasContext *VAR_0,\nuint32_t VAR_1, uint32_t VAR_2, bool VAR_3)\n{", "int32_t offset;", "TCGv_i32 addr = tcg_temp_new_i32();", "TCGv_i32 tmp = tcg_const_i32(VAR_1);", "gen_helper_get_r13_banked(addr, cpu_env, tmp);", "tcg_temp_free_i32(tmp);", "switch (VAR_2) {", "case 0:\noffset...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
13,816
void kvm_mips_reset_vcpu(MIPSCPU *cpu) { CPUMIPSState *env = &cpu->env; if (env->CP0_Config1 & (1 << CP0C1_FP)) { fprintf(stderr, "Warning: FPU not supported with KVM, disabling\n"); env->CP0_Config1 &= ~(1 << CP0C1_FP); } DPRINTF("%s\n", __func__); }
false
qemu
152db36ae63c70adc95afc3228f858ef6369519a
void kvm_mips_reset_vcpu(MIPSCPU *cpu) { CPUMIPSState *env = &cpu->env; if (env->CP0_Config1 & (1 << CP0C1_FP)) { fprintf(stderr, "Warning: FPU not supported with KVM, disabling\n"); env->CP0_Config1 &= ~(1 << CP0C1_FP); } DPRINTF("%s\n", __func__); }
{ "code": [], "line_no": [] }
void FUNC_0(MIPSCPU *VAR_0) { CPUMIPSState *env = &VAR_0->env; if (env->CP0_Config1 & (1 << CP0C1_FP)) { fprintf(stderr, "Warning: FPU not supported with KVM, disabling\n"); env->CP0_Config1 &= ~(1 << CP0C1_FP); } DPRINTF("%s\n", __func__); }
[ "void FUNC_0(MIPSCPU *VAR_0)\n{", "CPUMIPSState *env = &VAR_0->env;", "if (env->CP0_Config1 & (1 << CP0C1_FP)) {", "fprintf(stderr, \"Warning: FPU not supported with KVM, disabling\\n\");", "env->CP0_Config1 &= ~(1 << CP0C1_FP);", "}", "DPRINTF(\"%s\\n\", __func__);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
13,817
static int qcow2_amend_options(BlockDriverState *bs, QemuOpts *opts, BlockDriverAmendStatusCB *status_cb, void *cb_opaque) { BDRVQcow2State *s = bs->opaque; int old_version = s->qcow_version, new_version = old_version; uint64_t new_size = 0...
false
qemu
b25b387fa5928e516cb2c9e7fde68e958bd7e50a
static int qcow2_amend_options(BlockDriverState *bs, QemuOpts *opts, BlockDriverAmendStatusCB *status_cb, void *cb_opaque) { BDRVQcow2State *s = bs->opaque; int old_version = s->qcow_version, new_version = old_version; uint64_t new_size = 0...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QemuOpts *VAR_1, BlockDriverAmendStatusCB *VAR_2, void *VAR_3) { BDRVQcow2State *s = VAR_0->opaque; int VAR_4 = s->qcow_version, VAR_5 = VAR_4; uint64_t new_size = 0; const char *VAR_6 = NULL,...
[ "static int FUNC_0(BlockDriverState *VAR_0, QemuOpts *VAR_1,\nBlockDriverAmendStatusCB *VAR_2,\nvoid *VAR_3)\n{", "BDRVQcow2State *s = VAR_0->opaque;", "int VAR_4 = s->qcow_version, VAR_5 = VAR_4;", "uint64_t new_size = 0;", "const char *VAR_6 = NULL, *VAR_7 = NULL;", "bool lazy_refcounts = s->use_lazy_re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
13,818
static void bmdma_map(PCIDevice *pci_dev, int region_num, pcibus_t addr, pcibus_t size, int type) { PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, pci_dev); int i; for(i = 0;i < 2; i++) { BMDMAState *bm = &d->bmdma[i]; d->bus[i].bmdma = bm; bm->bus = d->bu...
false
qemu
70ae65f5d91462e1905a53236179fde21cda3a2f
static void bmdma_map(PCIDevice *pci_dev, int region_num, pcibus_t addr, pcibus_t size, int type) { PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, pci_dev); int i; for(i = 0;i < 2; i++) { BMDMAState *bm = &d->bmdma[i]; d->bus[i].bmdma = bm; bm->bus = d->bu...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIDevice *VAR_0, int VAR_1, pcibus_t VAR_2, pcibus_t VAR_3, int VAR_4) { PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, VAR_0); int VAR_5; for(VAR_5 = 0;VAR_5 < 2; VAR_5++) { BMDMAState *bm = &d->bmdma[VAR_5]; d->bus[VAR_5].bmdma = bm; ...
[ "static void FUNC_0(PCIDevice *VAR_0, int VAR_1,\npcibus_t VAR_2, pcibus_t VAR_3, int VAR_4)\n{", "PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, VAR_0);", "int VAR_5;", "for(VAR_5 = 0;VAR_5 < 2; VAR_5++) {", "BMDMAState *bm = &d->bmdma[VAR_5];", "d->bus[VAR_5].bmdma = bm;", "bm->bus = d->bus+VAR_5;", "...
[ 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 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
13,819
static void pcnet_transmit(PCNetState *s) { target_phys_addr_t xmit_cxda = 0; int count = CSR_XMTRL(s)-1; s->xmit_pos = -1; if (!CSR_TXON(s)) { s->csr[0] &= ~0x0008; return; } s->tx_busy = 1; txagain: if (pcnet_tdte_poll(s)) { struct pcnet_TMD tm...
false
qemu
89b190a2bb82b1226b5cc05846e9a063c0d0efa3
static void pcnet_transmit(PCNetState *s) { target_phys_addr_t xmit_cxda = 0; int count = CSR_XMTRL(s)-1; s->xmit_pos = -1; if (!CSR_TXON(s)) { s->csr[0] &= ~0x0008; return; } s->tx_busy = 1; txagain: if (pcnet_tdte_poll(s)) { struct pcnet_TMD tm...
{ "code": [], "line_no": [] }
static void FUNC_0(PCNetState *VAR_0) { target_phys_addr_t xmit_cxda = 0; int VAR_1 = CSR_XMTRL(VAR_0)-1; VAR_0->xmit_pos = -1; if (!CSR_TXON(VAR_0)) { VAR_0->csr[0] &= ~0x0008; return; } VAR_0->tx_busy = 1; txagain: if (pcnet_tdte_poll(VAR_0)) { ...
[ "static void FUNC_0(PCNetState *VAR_0)\n{", "target_phys_addr_t xmit_cxda = 0;", "int VAR_1 = CSR_XMTRL(VAR_0)-1;", "VAR_0->xmit_pos = -1;", "if (!CSR_TXON(VAR_0)) {", "VAR_0->csr[0] &= ~0x0008;", "return;", "}", "VAR_0->tx_busy = 1;", "txagain:\nif (pcnet_tdte_poll(VAR_0)) {", "struct pcnet_TMD...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [...
13,821
static av_cold int decoder_init(AVCodecContext * avctx) { G729Context* ctx = avctx->priv_data; int i,k; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "Only mono sound is supported (requested channels: %d).\n", avctx->channels); return AVERROR(EINVAL); } avctx->sam...
false
FFmpeg
c3299726874829e8eb7a937c247956ab3c2ccae6
static av_cold int decoder_init(AVCodecContext * avctx) { G729Context* ctx = avctx->priv_data; int i,k; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "Only mono sound is supported (requested channels: %d).\n", avctx->channels); return AVERROR(EINVAL); } avctx->sam...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext * avctx) { G729Context* ctx = avctx->priv_data; int VAR_0,VAR_1; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "Only mono sound is supported (requested channels: %d).\n", avctx->channels); return AVERROR(EINVAL); } avctx->s...
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "G729Context* ctx = avctx->priv_data;", "int VAR_0,VAR_1;", "if (avctx->channels != 1) {", "av_log(avctx, AV_LOG_ERROR, \"Only mono sound is supported (requested channels: %d).\\n\", avctx->channels);", "return AVERROR(EINVAL);", "}", "avctx->sam...
[ 0, 0, 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 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 59...
13,822
static void set_enum(Object *obj, Visitor *v, void *opaque, const char *name, Error **errp) { DeviceState *dev = DEVICE(obj); Property *prop = opaque; int *ptr = qdev_get_prop_ptr(dev, prop); if (dev->state != DEV_STATE_CREATED) { error_set(errp, QERR_PERMISSION_DEN...
false
qemu
d4d34b0d3f5af5c8e09980da0de2eebe9a27dc71
static void set_enum(Object *obj, Visitor *v, void *opaque, const char *name, Error **errp) { DeviceState *dev = DEVICE(obj); Property *prop = opaque; int *ptr = qdev_get_prop_ptr(dev, prop); if (dev->state != DEV_STATE_CREATED) { error_set(errp, QERR_PERMISSION_DEN...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2, const char *VAR_3, Error **VAR_4) { DeviceState *dev = DEVICE(VAR_0); Property *prop = VAR_2; int *VAR_5 = qdev_get_prop_ptr(dev, prop); if (dev->state != DEV_STATE_CREATED) { error_set(VAR_4, QERR_PERMI...
[ "static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2,\nconst char *VAR_3, Error **VAR_4)\n{", "DeviceState *dev = DEVICE(VAR_0);", "Property *prop = VAR_2;", "int *VAR_5 = qdev_get_prop_ptr(dev, prop);", "if (dev->state != DEV_STATE_CREATED) {", "error_set(VAR_4, QERR_PERMISSION_DENIED);", "re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ] ]
13,823
static void imx_timerg_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { IMXTimerGState *s = (IMXTimerGState *)opaque; DPRINTF("g-write(offset=%x, value = 0x%x)\n", (unsigned int)offset >> 2, (unsigned int)value); switch (offset ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void imx_timerg_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { IMXTimerGState *s = (IMXTimerGState *)opaque; DPRINTF("g-write(offset=%x, value = 0x%x)\n", (unsigned int)offset >> 2, (unsigned int)value); switch (offset ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { IMXTimerGState *s = (IMXTimerGState *)VAR_0; DPRINTF("g-write(VAR_1=%x, VAR_2 = 0x%x)\n", (unsigned int)VAR_1 >> 2, (unsigned int)VAR_2); switch (VAR_1 >> 2) { ca...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "IMXTimerGState *s = (IMXTimerGState *)VAR_0;", "DPRINTF(\"g-write(VAR_1=%x, VAR_2 = 0x%x)\\n\", (unsigned int)VAR_1 >> 2,\n(unsigned int)VAR_2);", "switch (VAR_1 >> 2) {", "case 0: {", "uint32_t oldcr = s->cr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
13,824
GuestFileSeek *qmp_guest_file_seek(int64_t handle, int64_t offset, int64_t whence, Error **errp) { GuestFileHandle *gfh; GuestFileSeek *seek_data; HANDLE fh; LARGE_INTEGER new_pos, off_pos; off_pos.QuadPart = offset; BOOL res; gfh = guest_file_hand...
false
qemu
0a982b1bf3953dc8640c4d6e619fb1132ebbebc3
GuestFileSeek *qmp_guest_file_seek(int64_t handle, int64_t offset, int64_t whence, Error **errp) { GuestFileHandle *gfh; GuestFileSeek *seek_data; HANDLE fh; LARGE_INTEGER new_pos, off_pos; off_pos.QuadPart = offset; BOOL res; gfh = guest_file_hand...
{ "code": [], "line_no": [] }
GuestFileSeek *FUNC_0(int64_t handle, int64_t offset, int64_t whence, Error **errp) { GuestFileHandle *gfh; GuestFileSeek *seek_data; HANDLE fh; LARGE_INTEGER new_pos, off_pos; off_pos.QuadPart = offset; BOOL res; gfh = guest_file_handle_find(handl...
[ "GuestFileSeek *FUNC_0(int64_t handle, int64_t offset,\nint64_t whence, Error **errp)\n{", "GuestFileHandle *gfh;", "GuestFileSeek *seek_data;", "HANDLE fh;", "LARGE_INTEGER new_pos, off_pos;", "off_pos.QuadPart = offset;", "BOOL res;", "gfh = guest_file_handle_find(handle, errp);", "if (!gfh) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
13,825
static void add_to_iovec(QEMUFile *f, const uint8_t *buf, int size) { /* check for adjacent buffer and coalesce them */ if (f->iovcnt > 0 && buf == f->iov[f->iovcnt - 1].iov_base + f->iov[f->iovcnt - 1].iov_len) { f->iov[f->iovcnt - 1].iov_len += size; } else { f->iov[f->iovcn...
false
qemu
4d1172472cdf28a444321ca8b165ce7326eb919e
static void add_to_iovec(QEMUFile *f, const uint8_t *buf, int size) { if (f->iovcnt > 0 && buf == f->iov[f->iovcnt - 1].iov_base + f->iov[f->iovcnt - 1].iov_len) { f->iov[f->iovcnt - 1].iov_len += size; } else { f->iov[f->iovcnt].iov_base = (uint8_t *)buf; f->iov[f->...
{ "code": [], "line_no": [] }
static void FUNC_0(QEMUFile *VAR_0, const uint8_t *VAR_1, int VAR_2) { if (VAR_0->iovcnt > 0 && VAR_1 == VAR_0->iov[VAR_0->iovcnt - 1].iov_base + VAR_0->iov[VAR_0->iovcnt - 1].iov_len) { VAR_0->iov[VAR_0->iovcnt - 1].iov_len += VAR_2; } else { VAR_0->iov[VAR_0->iovcnt].iov_ba...
[ "static void FUNC_0(QEMUFile *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "if (VAR_0->iovcnt > 0 && VAR_1 == VAR_0->iov[VAR_0->iovcnt - 1].iov_base +\nVAR_0->iov[VAR_0->iovcnt - 1].iov_len) {", "VAR_0->iov[VAR_0->iovcnt - 1].iov_len += VAR_2;", "} else {", "VAR_0->iov[VAR_0->iovcnt].iov_base = (uint8_t *)V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
13,826
static void qapi_clone_type_str(Visitor *v, const char *name, char **obj, Error **errp) { QapiCloneVisitor *qcv = to_qcv(v); assert(qcv->depth); /* * Pointer was already cloned by g_memdup; create fresh copy. * Note that as long as qmp-output-visitor accep...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void qapi_clone_type_str(Visitor *v, const char *name, char **obj, Error **errp) { QapiCloneVisitor *qcv = to_qcv(v); assert(qcv->depth); *obj = g_strdup(*obj ?: ""); }
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2, Error **VAR_3) { QapiCloneVisitor *qcv = to_qcv(VAR_0); assert(qcv->depth); *VAR_2 = g_strdup(*VAR_2 ?: ""); }
[ "static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2,\nError **VAR_3)\n{", "QapiCloneVisitor *qcv = to_qcv(VAR_0);", "assert(qcv->depth);", "*VAR_2 = g_strdup(*VAR_2 ?: \"\");", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 27 ], [ 29 ] ]
13,827
static int eth_can_receive(void *opaque) { return 1; }
false
qemu
e3f5ec2b5e92706e3b807059f79b1fb5d936e567
static int eth_can_receive(void *opaque) { return 1; }
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0) { return 1; }
[ "static int FUNC_0(void *VAR_0)\n{", "return 1;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
13,828
static inline void terminate_compression_threads(void) { int idx, thread_count; thread_count = migrate_compress_threads(); quit_comp_thread = true; for (idx = 0; idx < thread_count; idx++) { qemu_mutex_lock(&comp_param[idx].mutex); qemu_cond_signal(&comp_param[idx].cond); ...
false
qemu
90e56fb46d0a7add88ed463efa4e723a6238f692
static inline void terminate_compression_threads(void) { int idx, thread_count; thread_count = migrate_compress_threads(); quit_comp_thread = true; for (idx = 0; idx < thread_count; idx++) { qemu_mutex_lock(&comp_param[idx].mutex); qemu_cond_signal(&comp_param[idx].cond); ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(void) { int VAR_0, VAR_1; VAR_1 = migrate_compress_threads(); quit_comp_thread = true; for (VAR_0 = 0; VAR_0 < VAR_1; VAR_0++) { qemu_mutex_lock(&comp_param[VAR_0].mutex); qemu_cond_signal(&comp_param[VAR_0].cond); qemu_mutex_unlock(&comp_param...
[ "static inline void FUNC_0(void)\n{", "int VAR_0, VAR_1;", "VAR_1 = migrate_compress_threads();", "quit_comp_thread = true;", "for (VAR_0 = 0; VAR_0 < VAR_1; VAR_0++) {", "qemu_mutex_lock(&comp_param[VAR_0].mutex);", "qemu_cond_signal(&comp_param[VAR_0].cond);", "qemu_mutex_unlock(&comp_param[VAR_0].m...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
13,830
static int vp8_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size) { VP56RangeCoder *c = &s->c; int header_size, hscale, vscale, ret; int width = s->avctx->width; int height = s->avctx->height; s->keyframe = !(buf[0] & 1); s->profile = (buf[0]>>1) & 7; s->invi...
false
FFmpeg
65875a8b3b079752da25a61ec188d2e3d90a569f
static int vp8_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size) { VP56RangeCoder *c = &s->c; int header_size, hscale, vscale, ret; int width = s->avctx->width; int height = s->avctx->height; s->keyframe = !(buf[0] & 1); s->profile = (buf[0]>>1) & 7; s->invi...
{ "code": [], "line_no": [] }
static int FUNC_0(VP8Context *VAR_0, const uint8_t *VAR_1, int VAR_2) { VP56RangeCoder *c = &VAR_0->c; int VAR_3, VAR_4, VAR_5, VAR_6; int VAR_7 = VAR_0->avctx->VAR_7; int VAR_8 = VAR_0->avctx->VAR_8; VAR_0->keyframe = !(VAR_1[0] & 1); VAR_0->profile = (VAR_1[0]>>1) & 7; VAR_0...
[ "static int FUNC_0(VP8Context *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "VP56RangeCoder *c = &VAR_0->c;", "int VAR_3, VAR_4, VAR_5, VAR_6;", "int VAR_7 = VAR_0->avctx->VAR_7;", "int VAR_8 = VAR_0->avctx->VAR_8;", "VAR_0->keyframe = !(VAR_1[0] & 1);", "VAR_0->profile = (VAR_1[0]>>1) & 7;", "VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35, 37, 39 ], [ 41, 43, 45 ], [ 49 ], [ 51 ], [ 53 ], [...
13,831
static inline void RENAME(planar2x)(const uint8_t *src, uint8_t *dst, long srcWidth, long srcHeight, long srcStride, long dstStride) { long x,y; dst[0]= src[0]; // first line for (x=0; x<srcWidth-1; x++) { dst[2*x+1]= (3*src[x] + src[x+1])>>2; dst[2*x+2]= ( src[x] + 3*src[x...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(planar2x)(const uint8_t *src, uint8_t *dst, long srcWidth, long srcHeight, long srcStride, long dstStride) { long x,y; dst[0]= src[0]; for (x=0; x<srcWidth-1; x++) { dst[2*x+1]= (3*src[x] + src[x+1])>>2; dst[2*x+2]= ( src[x] + 3*src[x+1])>>2; ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(planar2x)(const uint8_t *src, uint8_t *dst, long srcWidth, long srcHeight, long srcStride, long dstStride) { long VAR_0,VAR_1; dst[0]= src[0]; for (VAR_0=0; VAR_0<srcWidth-1; VAR_0++) { dst[2*VAR_0+1]= (3*src[VAR_0] + src[VAR_0+1])>>2; dst[2*VAR_0+...
[ "static inline void FUNC_0(planar2x)(const uint8_t *src, uint8_t *dst, long srcWidth, long srcHeight, long srcStride, long dstStride)\n{", "long VAR_0,VAR_1;", "dst[0]= src[0];", "for (VAR_0=0; VAR_0<srcWidth-1; VAR_0++) {", "dst[2*VAR_0+1]= (3*src[VAR_0] + src[VAR_0+1])>>2;", "dst[2*VAR_0+2]= ( src[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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67...
13,832
static av_cold void ffat_encode_flush(AVCodecContext *avctx) { ATDecodeContext *at = avctx->priv_data; AudioConverterReset(at->converter); av_frame_unref(&at->new_in_frame); av_frame_unref(&at->in_frame); }
false
FFmpeg
143685a42bbc8861b626457ce4cb8b1ce4b0c436
static av_cold void ffat_encode_flush(AVCodecContext *avctx) { ATDecodeContext *at = avctx->priv_data; AudioConverterReset(at->converter); av_frame_unref(&at->new_in_frame); av_frame_unref(&at->in_frame); }
{ "code": [], "line_no": [] }
static av_cold void FUNC_0(AVCodecContext *avctx) { ATDecodeContext *at = avctx->priv_data; AudioConverterReset(at->converter); av_frame_unref(&at->new_in_frame); av_frame_unref(&at->in_frame); }
[ "static av_cold void FUNC_0(AVCodecContext *avctx)\n{", "ATDecodeContext *at = avctx->priv_data;", "AudioConverterReset(at->converter);", "av_frame_unref(&at->new_in_frame);", "av_frame_unref(&at->in_frame);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]