id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
24,369
void ff_init_elbg(int *points, int dim, int numpoints, int *codebook, int numCB, int max_steps, int *closest_cb, AVLFG *rand_state) { int i, k; if (numpoints > 24*numCB) { /* ELBG is very costly for a big number of points. So if we have a lot of th...
false
FFmpeg
ae2d41ec875965ce4ab9fdd88a5e8ba57cada67a
void ff_init_elbg(int *points, int dim, int numpoints, int *codebook, int numCB, int max_steps, int *closest_cb, AVLFG *rand_state) { int i, k; if (numpoints > 24*numCB) { int *temp_points = av_malloc(dim*(numpoints/8)*sizeof(int)); for (i...
{ "code": [], "line_no": [] }
void FUNC_0(int *VAR_0, int VAR_1, int VAR_2, int *VAR_3, int VAR_4, int VAR_5, int *VAR_6, AVLFG *VAR_7) { int VAR_8, VAR_9; if (VAR_2 > 24*VAR_4) { int *VAR_10 = av_malloc(VAR_1*(VAR_2/8)*sizeof(int)); for (VAR_8=0; VAR_8<VAR_2/8; VAR_8+...
[ "void FUNC_0(int *VAR_0, int VAR_1, int VAR_2, int *VAR_3,\nint VAR_4, int VAR_5, int *VAR_6,\nAVLFG *VAR_7)\n{", "int VAR_8, VAR_9;", "if (VAR_2 > 24*VAR_4) {", "int *VAR_10 = av_malloc(VAR_1*(VAR_2/8)*sizeof(int));", "for (VAR_8=0; VAR_8<VAR_2/8; VAR_8++) {", "VAR_9 = (VAR_8*BIG_PRIME) % VAR_2;", "mem...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 51 ] ]
24,370
av_cold void ff_lpc_init_x86(LPCContext *c) { #if HAVE_SSE2_INLINE int cpu_flags = av_get_cpu_flags(); if (INLINE_SSE2(cpu_flags) && (cpu_flags & AV_CPU_FLAG_SSE2SLOW)) { c->lpc_apply_welch_window = lpc_apply_welch_window_sse2; c->lpc_compute_autocorr = lpc_compute_autocorr_sse2; ...
false
FFmpeg
7fb758cd8ed08e4a37f10e25003953d13c68b8cd
av_cold void ff_lpc_init_x86(LPCContext *c) { #if HAVE_SSE2_INLINE int cpu_flags = av_get_cpu_flags(); if (INLINE_SSE2(cpu_flags) && (cpu_flags & AV_CPU_FLAG_SSE2SLOW)) { c->lpc_apply_welch_window = lpc_apply_welch_window_sse2; c->lpc_compute_autocorr = lpc_compute_autocorr_sse2; ...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(LPCContext *c) { #if HAVE_SSE2_INLINE int cpu_flags = av_get_cpu_flags(); if (INLINE_SSE2(cpu_flags) && (cpu_flags & AV_CPU_FLAG_SSE2SLOW)) { c->lpc_apply_welch_window = lpc_apply_welch_window_sse2; c->lpc_compute_autocorr = lpc_compute_autocorr_sse2; } #endif...
[ "av_cold void FUNC_0(LPCContext *c)\n{", "#if HAVE_SSE2_INLINE\nint cpu_flags = av_get_cpu_flags();", "if (INLINE_SSE2(cpu_flags) && (cpu_flags & AV_CPU_FLAG_SSE2SLOW)) {", "c->lpc_apply_welch_window = lpc_apply_welch_window_sse2;", "c->lpc_compute_autocorr = lpc_compute_autocorr_sse2;", "}", "#endif\...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ] ]
24,372
int ff_pcm_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size; size= RAW_SAMPLES*s->streams[0]->codec->block_align; if (size <= 0) return AVERROR(EINVAL); ret= av_get_packet(s->pb, pkt, size); pkt->flags &= ~AV_PKT_FLAG_CORRUPT; pkt->stream_index = 0; if (r...
false
FFmpeg
4d09bc98974d4602d71e71520535457a53d44222
int ff_pcm_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size; size= RAW_SAMPLES*s->streams[0]->codec->block_align; if (size <= 0) return AVERROR(EINVAL); ret= av_get_packet(s->pb, pkt, size); pkt->flags &= ~AV_PKT_FLAG_CORRUPT; pkt->stream_index = 0; if (r...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { int VAR_2, VAR_3; VAR_3= RAW_SAMPLES*VAR_0->streams[0]->codec->block_align; if (VAR_3 <= 0) return AVERROR(EINVAL); VAR_2= av_get_packet(VAR_0->pb, VAR_1, VAR_3); VAR_1->flags &= ~AV_PKT_FLAG_CORRUPT; VAR_1->stream_index...
[ "int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2, VAR_3;", "VAR_3= RAW_SAMPLES*VAR_0->streams[0]->codec->block_align;", "if (VAR_3 <= 0)\nreturn AVERROR(EINVAL);", "VAR_2= av_get_packet(VAR_0->pb, VAR_1, VAR_3);", "VAR_1->flags &= ~AV_PKT_FLAG_CORRUPT;", "VAR_1->stream_index = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33 ] ]
24,373
static int decode_cabac_mb_skip( H264Context *h, int mb_x, int mb_y ) { MpegEncContext * const s = &h->s; int mba_xy, mbb_xy; int ctx = 0; if(FRAME_MBAFF){ //FIXME merge with the stuff in fill_caches? int mb_xy = mb_x + (mb_y&~1)*s->mb_stride; mba_xy = mb_xy - 1; if( (mb...
false
FFmpeg
851ded8918c977d8160c6617b69604f758cabf50
static int decode_cabac_mb_skip( H264Context *h, int mb_x, int mb_y ) { MpegEncContext * const s = &h->s; int mba_xy, mbb_xy; int ctx = 0; if(FRAME_MBAFF){ int mb_xy = mb_x + (mb_y&~1)*s->mb_stride; mba_xy = mb_xy - 1; if( (mb_y&1) && h->slice_table[mba_xy]...
{ "code": [], "line_no": [] }
static int FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2 ) { MpegEncContext * const s = &VAR_0->s; int VAR_3, VAR_4; int VAR_5 = 0; if(FRAME_MBAFF){ int VAR_7 = VAR_1 + (VAR_2&~1)*s->mb_stride; VAR_3 = VAR_7 - 1; if( (VAR_2&1) && VAR_0->slice_table[VAR_3...
[ "static int FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2 ) {", "MpegEncContext * const s = &VAR_0->s;", "int VAR_3, VAR_4;", "int VAR_5 = 0;", "if(FRAME_MBAFF){", "int VAR_7 = VAR_1 + (VAR_2&~1)*s->mb_stride;", "VAR_3 = VAR_7 - 1;", "if( (VAR_2&1)\n&& VAR_0->slice_table[VAR_3] == VAR_0->slice_num\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 29, 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
24,374
static int handle_packets(AVFormatContext *s, int nb_packets) { MpegTSContext *ts = s->priv_data; ByteIOContext *pb = &s->pb; uint8_t packet[TS_FEC_PACKET_SIZE]; int packet_num, len; ts->stop_parse = 0; packet_num = 0; for(;;) { if (ts->stop_parse) break; ...
false
FFmpeg
ec23a47286a9be0ca67b78f4d8b9d87220c18286
static int handle_packets(AVFormatContext *s, int nb_packets) { MpegTSContext *ts = s->priv_data; ByteIOContext *pb = &s->pb; uint8_t packet[TS_FEC_PACKET_SIZE]; int packet_num, len; ts->stop_parse = 0; packet_num = 0; for(;;) { if (ts->stop_parse) break; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1) { MpegTSContext *ts = VAR_0->priv_data; ByteIOContext *pb = &VAR_0->pb; uint8_t packet[TS_FEC_PACKET_SIZE]; int VAR_2, VAR_3; ts->stop_parse = 0; VAR_2 = 0; for(;;) { if (ts->stop_parse) break; VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "MpegTSContext *ts = VAR_0->priv_data;", "ByteIOContext *pb = &VAR_0->pb;", "uint8_t packet[TS_FEC_PACKET_SIZE];", "int VAR_2, VAR_3;", "ts->stop_parse = 0;", "VAR_2 = 0;", "for(;;) {", "if (ts->stop_parse)\nbreak;", "VAR_2++;", "if (VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
24,376
QTestState *qtest_init(const char *extra_args) { QTestState *s; int sock, qmpsock, i; gchar *socket_path; gchar *qmp_socket_path; gchar *command; const char *qemu_binary; struct sigaction sigact; qemu_binary = getenv("QTEST_QEMU_BINARY"); g_assert(qemu_binary != NULL); ...
true
qemu
f8762027a33e2f5d0915c56a904962b1481f75c1
QTestState *qtest_init(const char *extra_args) { QTestState *s; int sock, qmpsock, i; gchar *socket_path; gchar *qmp_socket_path; gchar *command; const char *qemu_binary; struct sigaction sigact; qemu_binary = getenv("QTEST_QEMU_BINARY"); g_assert(qemu_binary != NULL); ...
{ "code": [ " s->qmp_fd = socket_accept(qmpsock);" ], "line_no": [ 91 ] }
QTestState *FUNC_0(const char *extra_args) { QTestState *s; int VAR_0, VAR_1, VAR_2; gchar *socket_path; gchar *qmp_socket_path; gchar *command; const char *VAR_3; struct sigaction VAR_4; VAR_3 = getenv("QTEST_QEMU_BINARY"); g_assert(VAR_3 != NULL); s = g_malloc(si...
[ "QTestState *FUNC_0(const char *extra_args)\n{", "QTestState *s;", "int VAR_0, VAR_1, VAR_2;", "gchar *socket_path;", "gchar *qmp_socket_path;", "gchar *command;", "const char *VAR_3;", "struct sigaction VAR_4;", "VAR_3 = getenv(\"QTEST_QEMU_BINARY\");", "g_assert(VAR_3 != NULL);", "s = g_malloc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 45 ], [ 47, 49, 51 ], [ 53 ], [ 55 ...
24,377
static void qxl_init_ramsize(PCIQXLDevice *qxl) { /* vga mode framebuffer / primary surface (bar 0, first part) */ if (qxl->vgamem_size_mb < 8) { qxl->vgamem_size_mb = 8; qxl->vgamem_size = qxl->vgamem_size_mb * 1024 * 1024; /* vga ram (bar 0, total) */ if (qxl->ram_size_mb !...
true
qemu
876d516311c1538a7d29f2abec48b7cda0645eea
static void qxl_init_ramsize(PCIQXLDevice *qxl) { if (qxl->vgamem_size_mb < 8) { qxl->vgamem_size_mb = 8; qxl->vgamem_size = qxl->vgamem_size_mb * 1024 * 1024; if (qxl->ram_size_mb != -1) { qxl->vga.vram_size = qxl->ram_size_mb * 1024 * 1024; if (qxl->vga.vra...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIQXLDevice *VAR_0) { if (VAR_0->vgamem_size_mb < 8) { VAR_0->vgamem_size_mb = 8; VAR_0->vgamem_size = VAR_0->vgamem_size_mb * 1024 * 1024; if (VAR_0->ram_size_mb != -1) { VAR_0->vga.vram_size = VAR_0->ram_size_mb * 1024 * 1024; if (VAR_0-...
[ "static void FUNC_0(PCIQXLDevice *VAR_0)\n{", "if (VAR_0->vgamem_size_mb < 8) {", "VAR_0->vgamem_size_mb = 8;", "VAR_0->vgamem_size = VAR_0->vgamem_size_mb * 1024 * 1024;", "if (VAR_0->ram_size_mb != -1) {", "VAR_0->vga.vram_size = VAR_0->ram_size_mb * 1024 * 1024;", "if (VAR_0->vga.vram_size < VAR_0->v...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 18 ], [ 24 ], [ 26 ], [ 29 ], [ 31 ], [ 38 ], [ 40 ], [ 43 ], [ 45 ], [ 52 ], [ 54 ], [ 57 ], [ 59 ], [ 64 ], [ 66 ], [ 68 ], [ 71...
24,378
static int decode_packet(J2kDecoderContext *s, J2kCodingStyle *codsty, J2kResLevel *rlevel, int precno, int layno, uint8_t *expn, int numgbits) { int bandno, cblkny, cblknx, cblkno, ret; if (!(ret = get_bits(s, 1))){ j2k_flush(s); return 0; } else if (ret < ...
true
FFmpeg
ddfa3751c092feaf1e080f66587024689dfe603c
static int decode_packet(J2kDecoderContext *s, J2kCodingStyle *codsty, J2kResLevel *rlevel, int precno, int layno, uint8_t *expn, int numgbits) { int bandno, cblkny, cblknx, cblkno, ret; if (!(ret = get_bits(s, 1))){ j2k_flush(s); return 0; } else if (ret < ...
{ "code": [ " if (AV_RB16(s->buf) == J2K_EPH) {", " s->buf += 2;", " if (s->buf_end - s->buf < cblk->lengthinc)", " bytestream_get_buffer(&s->buf, cblk->data, cblk->lengthinc);" ], "line_no": [ 101, 103, 129, 133 ] }
static int FUNC_0(J2kDecoderContext *VAR_0, J2kCodingStyle *VAR_1, J2kResLevel *VAR_2, int VAR_3, int VAR_4, uint8_t *VAR_5, int VAR_6) { int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11; if (!(VAR_11 = get_bits(VAR_0, 1))){ j2k_flush(VAR_0); return 0; } else if (VAR...
[ "static int FUNC_0(J2kDecoderContext *VAR_0, J2kCodingStyle *VAR_1, J2kResLevel *VAR_2, int VAR_3,\nint VAR_4, uint8_t *VAR_5, int VAR_6)\n{", "int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "if (!(VAR_11 = get_bits(VAR_0, 1))){", "j2k_flush(VAR_0);", "return 0;", "} else if (VAR_11 < 0)", "return VAR_11;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [ 55...
24,380
static SoftFloat sbr_sum_square_c(int (*x)[2], int n) { SoftFloat ret; uint64_t accu = 0, round; int i, nz; unsigned u; for (i = 0; i < n; i += 2) { // Larger values are inavlid and could cause overflows of accu. av_assert2(FFABS(x[i + 0][0]) >> 29 == 0); accu += (...
true
FFmpeg
b315a3cf42a15358ab38279723f3c93406a66f6a
static SoftFloat sbr_sum_square_c(int (*x)[2], int n) { SoftFloat ret; uint64_t accu = 0, round; int i, nz; unsigned u; for (i = 0; i < n; i += 2) { av_assert2(FFABS(x[i + 0][0]) >> 29 == 0); accu += (int64_t)x[i + 0][0] * x[i + 0][0]; av_assert2(FFABS(x[...
{ "code": [ " uint64_t accu = 0, round;", " int i, nz;", " av_assert2(FFABS(x[i + 0][0]) >> 29 == 0);", " accu += (int64_t)x[i + 0][0] * x[i + 0][0];", " av_assert2(FFABS(x[i + 0][1]) >> 29 == 0);", " accu += (int64_t)x[i + 0][1] * x[i + 0][1];", " ...
static SoftFloat FUNC_0(int (*x)[2], int n) { SoftFloat ret; uint64_t accu = 0, round; int VAR_0, VAR_1; unsigned VAR_2; for (VAR_0 = 0; VAR_0 < n; VAR_0 += 2) { av_assert2(FFABS(x[VAR_0 + 0][0]) >> 29 == 0); accu += (int64_t)x[VAR_0 + 0][0] * x[VAR_0 + 0][0]; ...
[ "static SoftFloat FUNC_0(int (*x)[2], int n)\n{", "SoftFloat ret;", "uint64_t accu = 0, round;", "int VAR_0, VAR_1;", "unsigned VAR_2;", "for (VAR_0 = 0; VAR_0 < n; VAR_0 += 2) {", "av_assert2(FFABS(x[VAR_0 + 0][0]) >> 29 == 0);", "accu += (int64_t)x[VAR_0 + 0][0] * x[VAR_0 + 0][0];", "av_assert2(FF...
[ 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
24,381
int kvm_log_stop(target_phys_addr_t phys_addr, target_phys_addr_t end_addr) { return kvm_dirty_pages_log_change(phys_addr, end_addr, 0, KVM_MEM_LOG_DIRTY_PAGES); }
true
qemu
d3f8d37fe2d0c24ec8bac9c94d5b0e2dc09c0d2a
int kvm_log_stop(target_phys_addr_t phys_addr, target_phys_addr_t end_addr) { return kvm_dirty_pages_log_change(phys_addr, end_addr, 0, KVM_MEM_LOG_DIRTY_PAGES); }
{ "code": [ " return kvm_dirty_pages_log_change(phys_addr, end_addr,", "int kvm_log_stop(target_phys_addr_t phys_addr, target_phys_addr_t end_addr)", " return kvm_dirty_pages_log_change(phys_addr, end_addr," ], "line_no": [ 5, 1, 5 ] }
int FUNC_0(target_phys_addr_t VAR_0, target_phys_addr_t VAR_1) { return kvm_dirty_pages_log_change(VAR_0, VAR_1, 0, KVM_MEM_LOG_DIRTY_PAGES); }
[ "int FUNC_0(target_phys_addr_t VAR_0, target_phys_addr_t VAR_1)\n{", "return kvm_dirty_pages_log_change(VAR_0, VAR_1,\n0,\nKVM_MEM_LOG_DIRTY_PAGES);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11 ] ]
24,382
int qemu_strtoll(const char *nptr, const char **endptr, int base, int64_t *result) { char *p; int err = 0; if (!nptr) { if (endptr) { *endptr = nptr; } err = -EINVAL; } else { errno = 0; *result = strtoll(nptr, &p, base); ...
true
qemu
47d4be12c3997343e436c6cca89aefbbbeb70863
int qemu_strtoll(const char *nptr, const char **endptr, int base, int64_t *result) { char *p; int err = 0; if (!nptr) { if (endptr) { *endptr = nptr; } err = -EINVAL; } else { errno = 0; *result = strtoll(nptr, &p, base); ...
{ "code": [ " err = check_strtox_error(endptr, p, errno);", " err = check_strtox_error(endptr, p, errno);", " err = check_strtox_error(endptr, p, errno);", " err = check_strtox_error(endptr, p, errno);" ], "line_no": [ 27, 27, 27, 27 ] }
int FUNC_0(const char *VAR_0, const char **VAR_1, int VAR_2, int64_t *VAR_3) { char *VAR_4; int VAR_5 = 0; if (!VAR_0) { if (VAR_1) { *VAR_1 = VAR_0; } VAR_5 = -EINVAL; } else { errno = 0; *VAR_3 = strtoll(VAR_0, &VAR_4, VA...
[ "int FUNC_0(const char *VAR_0, const char **VAR_1, int VAR_2,\nint64_t *VAR_3)\n{", "char *VAR_4;", "int VAR_5 = 0;", "if (!VAR_0) {", "if (VAR_1) {", "*VAR_1 = VAR_0;", "}", "VAR_5 = -EINVAL;", "} else {", "errno = 0;", "*VAR_3 = strtoll(VAR_0, &VAR_4, VAR_2);", "VAR_5 = check_strtox_error(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
24,383
static int sofalizer_convolute(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) { SOFAlizerContext *s = ctx->priv; ThreadData *td = arg; AVFrame *in = td->in, *out = td->out; int offset = jobnr; int *write = &td->write[jobnr]; const int *const delay = td->delay[jobnr]; const ...
true
FFmpeg
21234c835d2d003d390d462b6e1b2622e7b02c39
static int sofalizer_convolute(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) { SOFAlizerContext *s = ctx->priv; ThreadData *td = arg; AVFrame *in = td->in, *out = td->out; int offset = jobnr; int *write = &td->write[jobnr]; const int *const delay = td->delay[jobnr]; const ...
{ "code": [ " temp_ir += n_samples;", " temp_ir += n_samples;" ], "line_no": [ 97, 137 ] }
static int FUNC_0(AVFilterContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3) { SOFAlizerContext *s = VAR_0->priv; ThreadData *td = VAR_1; AVFrame *in = td->in, *out = td->out; int VAR_4 = VAR_2; int *VAR_5 = &td->VAR_5[VAR_2]; const int *const VAR_6 = td->VAR_6[VAR_2]; const float *c...
[ "static int FUNC_0(AVFilterContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3)\n{", "SOFAlizerContext *s = VAR_0->priv;", "ThreadData *td = VAR_1;", "AVFrame *in = td->in, *out = td->out;", "int VAR_4 = VAR_2;", "int *VAR_5 = &td->VAR_5[VAR_2];", "const int *const VAR_6 = td->VAR_6[VAR_2];", "const flo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
24,385
int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in) { char *param, buffer[128], tmp[128]; int len, tag_close, sptr = 1, line_start = 1, an = 0, end = 0; SrtStack stack[16]; int closing_brace_missing = 0; stack[0].tag[0] = 0; strcpy(stack[0].param[PARAM_SIZE], "{\\fs}...
true
FFmpeg
c61715e2c505c15a5cfc9eab18b4311a6504055a
int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in) { char *param, buffer[128], tmp[128]; int len, tag_close, sptr = 1, line_start = 1, an = 0, end = 0; SrtStack stack[16]; int closing_brace_missing = 0; stack[0].tag[0] = 0; strcpy(stack[0].param[PARAM_SIZE], "{\\fs}...
{ "code": [ " if (sscanf(in+tag_close+1, \"%127[^>]>%n\", buffer, &len) >= 1 && len > 0) {", " if ((!tag_close && sptr < FF_ARRAY_ELEMS(stack)) ||" ], "line_no": [ 71, 83 ] }
int FUNC_0(void *VAR_0, AVBPrint *VAR_1, const char *VAR_2) { char *VAR_3, VAR_4[128], VAR_5[128]; int VAR_6, VAR_7, VAR_8 = 1, VAR_9 = 1, VAR_10 = 0, VAR_11 = 0; SrtStack stack[16]; int VAR_12 = 0; stack[0].tag[0] = 0; strcpy(stack[0].VAR_3[PARAM_SIZE], "{\\fs}"); strcpy(stack[0]...
[ "int FUNC_0(void *VAR_0, AVBPrint *VAR_1, const char *VAR_2)\n{", "char *VAR_3, VAR_4[128], VAR_5[128];", "int VAR_6, VAR_7, VAR_8 = 1, VAR_9 = 1, VAR_10 = 0, VAR_11 = 0;", "SrtStack stack[16];", "int VAR_12 = 0;", "stack[0].tag[0] = 0;", "strcpy(stack[0].VAR_3[PARAM_SIZE], \"{\\\\fs}\");", "strcpy(s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
24,386
void qemu_mutex_destroy(QemuMutex *mutex) { assert(mutex->owner == 0); DeleteCriticalSection(&mutex->lock); }
true
qemu
12f8def0e02232d7c6416ad9b66640f973c531d1
void qemu_mutex_destroy(QemuMutex *mutex) { assert(mutex->owner == 0); DeleteCriticalSection(&mutex->lock); }
{ "code": [ " assert(mutex->owner == 0);", " DeleteCriticalSection(&mutex->lock);", " assert(mutex->owner == 0);" ], "line_no": [ 5, 7, 5 ] }
void FUNC_0(QemuMutex *VAR_0) { assert(VAR_0->owner == 0); DeleteCriticalSection(&VAR_0->lock); }
[ "void FUNC_0(QemuMutex *VAR_0)\n{", "assert(VAR_0->owner == 0);", "DeleteCriticalSection(&VAR_0->lock);", "}" ]
[ 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
24,387
static int usb_host_handle_iso_data(USBHostDevice *s, USBPacket *p, int in) { AsyncURB *aurb; int i, j, ret, max_packet_size, offset, len = 0; max_packet_size = get_max_packet_size(s, p->devep); if (max_packet_size == 0) return USB_RET_NAK; aurb = get_iso_urb(s, p->devep); if...
true
qemu
4f4321c11ff6e98583846bfd6f0e81954924b003
static int usb_host_handle_iso_data(USBHostDevice *s, USBPacket *p, int in) { AsyncURB *aurb; int i, j, ret, max_packet_size, offset, len = 0; max_packet_size = get_max_packet_size(s, p->devep); if (max_packet_size == 0) return USB_RET_NAK; aurb = get_iso_urb(s, p->devep); if...
{ "code": [ " } else if (aurb[i].urb.iso_frame_desc[j].actual_length > p->len) {", " memcpy(p->data,", " aurb[i].urb.buffer +", " j * aurb[i].urb.iso_frame_desc[0].length,", " len);", " l...
static int FUNC_0(USBHostDevice *VAR_0, USBPacket *VAR_1, int VAR_2) { AsyncURB *aurb; int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0; VAR_6 = get_max_packet_size(VAR_0, VAR_1->devep); if (VAR_6 == 0) return USB_RET_NAK; aurb = get_iso_urb(VAR_0, VAR_1->devep); if (!aurb) {...
[ "static int FUNC_0(USBHostDevice *VAR_0, USBPacket *VAR_1, int VAR_2)\n{", "AsyncURB *aurb;", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0;", "VAR_6 = get_max_packet_size(VAR_0, VAR_1->devep);", "if (VAR_6 == 0)\nreturn USB_RET_NAK;", "aurb = get_iso_urb(VAR_0, VAR_1->devep);", "if (!aurb) {", "a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51, 53 ], [ 57...
24,388
static void pcie_pci_bridge_realize(PCIDevice *d, Error **errp) { PCIBridge *br = PCI_BRIDGE(d); PCIEPCIBridge *pcie_br = PCIE_PCI_BRIDGE_DEV(d); int rc, pos; pci_bridge_initfn(d, TYPE_PCI_BUS); d->config[PCI_INTERRUPT_PIN] = 0x1; memory_region_init(&pcie_br->shpc_bar, OBJECT(d), "shp...
true
qemu
d659d94013390238961fac741572306c95496bf5
static void pcie_pci_bridge_realize(PCIDevice *d, Error **errp) { PCIBridge *br = PCI_BRIDGE(d); PCIEPCIBridge *pcie_br = PCIE_PCI_BRIDGE_DEV(d); int rc, pos; pci_bridge_initfn(d, TYPE_PCI_BUS); d->config[PCI_INTERRUPT_PIN] = 0x1; memory_region_init(&pcie_br->shpc_bar, OBJECT(d), "shp...
{ "code": [ " rc = msi_init(d, 0, 1, true, true, errp);", " goto msi_error;", " shpc_free(d);" ], "line_no": [ 75, 79, 105 ] }
static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1) { PCIBridge *br = PCI_BRIDGE(VAR_0); PCIEPCIBridge *pcie_br = PCIE_PCI_BRIDGE_DEV(VAR_0); int VAR_2, VAR_3; pci_bridge_initfn(VAR_0, TYPE_PCI_BUS); VAR_0->config[PCI_INTERRUPT_PIN] = 0x1; memory_region_init(&pcie_br->shpc_bar, OBJECT...
[ "static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{", "PCIBridge *br = PCI_BRIDGE(VAR_0);", "PCIEPCIBridge *pcie_br = PCIE_PCI_BRIDGE_DEV(VAR_0);", "int VAR_2, VAR_3;", "pci_bridge_initfn(VAR_0, TYPE_PCI_BUS);", "VAR_0->config[PCI_INTERRUPT_PIN] = 0x1;", "memory_region_init(&pcie_br->shpc_bar, OBJEC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
24,389
static int qcrypto_cipher_init_aes(QCryptoCipher *cipher, const uint8_t *key, size_t nkey, Error **errp) { QCryptoCipherBuiltin *ctxt; if (cipher->mode != QCRYPTO_CIPHER_MODE_CBC && cipher->mode != QCRYPTO_CIPHER_MODE_ECB) { ...
true
qemu
3a661f1eabf7e8db66e28489884d9b54aacb94ea
static int qcrypto_cipher_init_aes(QCryptoCipher *cipher, const uint8_t *key, size_t nkey, Error **errp) { QCryptoCipherBuiltin *ctxt; if (cipher->mode != QCRYPTO_CIPHER_MODE_CBC && cipher->mode != QCRYPTO_CIPHER_MODE_ECB) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(QCryptoCipher *VAR_0, const uint8_t *VAR_1, size_t VAR_2, Error **VAR_3) { QCryptoCipherBuiltin *ctxt; if (VAR_0->mode != QCRYPTO_CIPHER_MODE_CBC && VAR_0->mode != QCRYPTO_CIPHER_MODE_ECB) { error_se...
[ "static int FUNC_0(QCryptoCipher *VAR_0,\nconst uint8_t *VAR_1, size_t VAR_2,\nError **VAR_3)\n{", "QCryptoCipherBuiltin *ctxt;", "if (VAR_0->mode != QCRYPTO_CIPHER_MODE_CBC &&\nVAR_0->mode != QCRYPTO_CIPHER_MODE_ECB) {", "error_setg(VAR_3, \"Unsupported VAR_0 mode %d\", VAR_0->mode);", "return -1;", "}",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 50 ], [ 52 ], [ 54 ], [...
24,390
static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid) { MXFContext *mxf = arg; MXFPartition *partition; UID op; uint64_t footer_partition; if (mxf->partitions_count+1 >= UINT_MAX / sizeof(*mxf->partitions)) return AVERROR(ENOMEM); mxf->par...
true
FFmpeg
fd34dbea58e097609ff09cf7dcc59f74930195d3
static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid) { MXFContext *mxf = arg; MXFPartition *partition; UID op; uint64_t footer_partition; if (mxf->partitions_count+1 >= UINT_MAX / sizeof(*mxf->partitions)) return AVERROR(ENOMEM); mxf->par...
{ "code": [ "static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid)", " avio_skip(pb, 8);", " avio_skip(pb, 16);", " av_log(mxf->fc, AV_LOG_ERROR, \"unknown operational pattern: %02xh %02xh\\n\", op[12], op[13]);" ], "line_no": [ 1, 95, ...
static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4) { MXFContext *mxf = VAR_0; MXFPartition *partition; UID op; uint64_t footer_partition; if (mxf->partitions_count+1 >= UINT_MAX / sizeof(*mxf->partitions)) return AVERROR(ENOMEM); mxf->partitio...
[ "static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4)\n{", "MXFContext *mxf = VAR_0;", "MXFPartition *partition;", "UID op;", "uint64_t footer_partition;", "if (mxf->partitions_count+1 >= UINT_MAX / sizeof(*mxf->partitions))\nreturn AVERROR(ENOMEM);", "mxf->partitions = av...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 59 ...
24,391
static uint64_t getSSD(uint8_t *src1, uint8_t *src2, int stride1, int stride2, int w, int h){ int x,y; uint64_t ssd=0; //printf("%d %d\n", w, h); for(y=0; y<h; y++){ for(x=0; x<w; x++){ int d= src1[x + y*stride1] - src2[x + y*stride2]; ssd+= d*d; //printf("%d", abs(src1[x + y*stride1] - src2[x + ...
true
FFmpeg
221b804f3491638ecf2eec1302c669ad2d9ec799
static uint64_t getSSD(uint8_t *src1, uint8_t *src2, int stride1, int stride2, int w, int h){ int x,y; uint64_t ssd=0; for(y=0; y<h; y++){ for(x=0; x<w; x++){ int d= src1[x + y*stride1] - src2[x + y*stride2]; ssd+= d*d; } } return ssd; }
{ "code": [ "\tint x,y;", "\tuint64_t ssd=0;", "\tfor(y=0; y<h; y++){", "\t\tfor(x=0; x<w; x++){", "\t\t\tint d= src1[x + y*stride1] - src2[x + y*stride2];", "\t\t\tssd+= d*d;", "\treturn ssd;" ], "line_no": [ 3, 5, 13, 15, 17, 19, 29 ] }
static uint64_t FUNC_0(uint8_t *src1, uint8_t *src2, int stride1, int stride2, int w, int h){ int VAR_0,VAR_1; uint64_t ssd=0; for(VAR_1=0; VAR_1<h; VAR_1++){ for(VAR_0=0; VAR_0<w; VAR_0++){ int VAR_2= src1[VAR_0 + VAR_1*stride1] - src2[VAR_0 + VAR_1*stride2]; ssd+= VAR_2*VAR_2; } } re...
[ "static uint64_t FUNC_0(uint8_t *src1, uint8_t *src2, int stride1, int stride2, int w, int h){", "int VAR_0,VAR_1;", "uint64_t ssd=0;", "for(VAR_1=0; VAR_1<h; VAR_1++){", "for(VAR_0=0; VAR_0<w; VAR_0++){", "int VAR_2= src1[VAR_0 + VAR_1*stride1] - src2[VAR_0 + VAR_1*stride2];", "ssd+= VAR_2*VAR_2;", "...
[ 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ] ]
24,393
static inline void test_server_connect(TestServer *server) { test_server_create_chr(server, ",reconnect=1"); }
true
qemu
20784087eb875e22cf0021989e61716304b63c84
static inline void test_server_connect(TestServer *server) { test_server_create_chr(server, ",reconnect=1"); }
{ "code": [ "static inline void test_server_connect(TestServer *server)", " test_server_create_chr(server, \",reconnect=1\");" ], "line_no": [ 1, 5 ] }
static inline void FUNC_0(TestServer *VAR_0) { test_server_create_chr(VAR_0, ",reconnect=1"); }
[ "static inline void FUNC_0(TestServer *VAR_0)\n{", "test_server_create_chr(VAR_0, \",reconnect=1\");", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
24,394
static int put_system_header(AVFormatContext *ctx, uint8_t *buf,int only_for_stream_id) { MpegMuxContext *s = ctx->priv_data; int size, i, private_stream_coded, id; PutBitContext pb; init_put_bits(&pb, buf, 128); put_bits(&pb, 32, SYSTEM_HEADER_START_CODE); put_bits(&pb, 16, 0); ...
false
FFmpeg
24dc7776ff4452764d0365b12d0728153f879cf8
static int put_system_header(AVFormatContext *ctx, uint8_t *buf,int only_for_stream_id) { MpegMuxContext *s = ctx->priv_data; int size, i, private_stream_coded, id; PutBitContext pb; init_put_bits(&pb, buf, 128); put_bits(&pb, 32, SYSTEM_HEADER_START_CODE); put_bits(&pb, 16, 0); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1,int VAR_2) { MpegMuxContext *s = VAR_0->priv_data; int VAR_3, VAR_4, VAR_5, VAR_6; PutBitContext pb; init_put_bits(&pb, VAR_1, 128); put_bits(&pb, 32, SYSTEM_HEADER_START_CODE); put_bits(&pb, 16, 0); put_bits(&pb, 1, 1); ...
[ "static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1,int VAR_2)\n{", "MpegMuxContext *s = VAR_0->priv_data;", "int VAR_3, VAR_4, VAR_5, VAR_6;", "PutBitContext pb;", "init_put_bits(&pb, VAR_1, 128);", "put_bits(&pb, 32, SYSTEM_HEADER_START_CODE);", "put_bits(&pb, 16, 0);", "put_bits(&pb, 1, 1);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
24,395
static int standard_decode_i_mbs(VC9Context *v) { int x, y, ac_pred, cbpcy; /* Select ttmb table depending on pq */ if (v->pq < 5) v->ttmb_vlc = &vc9_ttmb_vlc[0]; else if (v->pq < 13) v->ttmb_vlc = &vc9_ttmb_vlc[1]; else v->ttmb_vlc = &vc9_ttmb_vlc[2]; for (y=0; y<v->height_mb; y++) ...
false
FFmpeg
e5540b3fd30367ce3cc33b2f34a04b660dbc4b38
static int standard_decode_i_mbs(VC9Context *v) { int x, y, ac_pred, cbpcy; if (v->pq < 5) v->ttmb_vlc = &vc9_ttmb_vlc[0]; else if (v->pq < 13) v->ttmb_vlc = &vc9_ttmb_vlc[1]; else v->ttmb_vlc = &vc9_ttmb_vlc[2]; for (y=0; y<v->height_mb; y++) { for (x=0; x<v->width_mb;...
{ "code": [], "line_no": [] }
static int FUNC_0(VC9Context *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4; if (VAR_0->pq < 5) VAR_0->ttmb_vlc = &vc9_ttmb_vlc[0]; else if (VAR_0->pq < 13) VAR_0->ttmb_vlc = &vc9_ttmb_vlc[1]; else VAR_0->ttmb_vlc = &vc9_ttmb_vlc[2]; for (VAR_2=0; VAR_2<VAR_0->height_mb; VAR_2++) { ...
[ "static int FUNC_0(VC9Context *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4;", "if (VAR_0->pq < 5) VAR_0->ttmb_vlc = &vc9_ttmb_vlc[0];", "else if (VAR_0->pq < 13) VAR_0->ttmb_vlc = &vc9_ttmb_vlc[1];", "else VAR_0->ttmb_vlc = &vc9_ttmb_vlc[2];", "for (VAR_2=0; VAR_2<VAR_0->height_mb; VAR_2++)", "{", "fo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
24,396
static void ff_h264_idct8_dc_add_mmx2(uint8_t *dst, int16_t *block, int stride) { int dc = (block[0] + 32) >> 6; int y; __asm__ volatile( "movd %0, %%mm0 \n\t" "pshufw $0, %%mm0, %%mm0 \n\t" "pxor %%mm1, %%mm1 \n\t" "psubw %%mm0, %%mm1 \n\t" ...
false
FFmpeg
1d16a1cf99488f16492b1bb48e023f4da8377e07
static void ff_h264_idct8_dc_add_mmx2(uint8_t *dst, int16_t *block, int stride) { int dc = (block[0] + 32) >> 6; int y; __asm__ volatile( "movd %0, %%mm0 \n\t" "pshufw $0, %%mm0, %%mm0 \n\t" "pxor %%mm1, %%mm1 \n\t" "psubw %%mm0, %%mm1 \n\t" ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int16_t *VAR_1, int VAR_2) { int VAR_3 = (VAR_1[0] + 32) >> 6; int VAR_4; __asm__ volatile( "movd %0, %%mm0 \n\t" "pshufw $0, %%mm0, %%mm0 \n\t" "pxor %%mm1, %%mm1 \n\t" "psubw %%mm0, %%mm1 \n\t" "packusw...
[ "static void FUNC_0(uint8_t *VAR_0, int16_t *VAR_1, int VAR_2)\n{", "int VAR_3 = (VAR_1[0] + 32) >> 6;", "int VAR_4;", "__asm__ volatile(\n\"movd %0, %%mm0 \\n\\t\"\n\"pshufw $0, %%mm0, %%mm0 \\n\\t\"\n\"pxor %%mm1, %%mm1 \\n\\t\"\n\"psubw %%mm0, %%mm1 \\n\\t\"\n\"packuswb %%mm0, %%mm0 \...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11, 13, 15, 17, 19, 21, 23, 25 ], [ 27 ], [ 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69,...
24,397
static int movie_get_frame(AVFilterLink *outlink) { MovieContext *movie = outlink->src->priv; AVPacket pkt; int ret, frame_decoded; AVStream *st = movie->format_ctx->streams[movie->stream_index]; if (movie->is_done == 1) return 0; while ((ret = av_read_frame(movie->format_ctx...
false
FFmpeg
d19d52d4a11547cc70bcbc3a2f8b83ccd24bb951
static int movie_get_frame(AVFilterLink *outlink) { MovieContext *movie = outlink->src->priv; AVPacket pkt; int ret, frame_decoded; AVStream *st = movie->format_ctx->streams[movie->stream_index]; if (movie->is_done == 1) return 0; while ((ret = av_read_frame(movie->format_ctx...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0) { MovieContext *movie = VAR_0->src->priv; AVPacket pkt; int VAR_1, VAR_2; AVStream *st = movie->format_ctx->streams[movie->stream_index]; if (movie->is_done == 1) return 0; while ((VAR_1 = av_read_frame(movie->format_ctx, &pkt)) >= 0) { ...
[ "static int FUNC_0(AVFilterLink *VAR_0)\n{", "MovieContext *movie = VAR_0->src->priv;", "AVPacket pkt;", "int VAR_1, VAR_2;", "AVStream *st = movie->format_ctx->streams[movie->stream_index];", "if (movie->is_done == 1)\nreturn 0;", "while ((VAR_1 = av_read_frame(movie->format_ctx, &pkt)) >= 0) {", "if...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37 ], [ 39, 41, 43 ], [ 45 ], [ 55, 57 ], [ 61, 63 ], [ 65, 67, 69,...
24,399
static void do_io_interrupt(CPUS390XState *env) { S390CPU *cpu = s390_env_get_cpu(env); LowCore *lowcore; IOIntQueue *q; uint8_t isc; int disable = 1; int found = 0; if (!(env->psw.mask & PSW_MASK_IO)) { cpu_abort(CPU(cpu), "I/O int w/o I/O mask\n"); } for (isc...
true
qemu
1a71992376792a0d11ea27688bd1a21cdffd1826
static void do_io_interrupt(CPUS390XState *env) { S390CPU *cpu = s390_env_get_cpu(env); LowCore *lowcore; IOIntQueue *q; uint8_t isc; int disable = 1; int found = 0; if (!(env->psw.mask & PSW_MASK_IO)) { cpu_abort(CPU(cpu), "I/O int w/o I/O mask\n"); } for (isc...
{ "code": [ " if (env->io_index[isc] > MAX_IO_QUEUE) {" ], "line_no": [ 39 ] }
static void FUNC_0(CPUS390XState *VAR_0) { S390CPU *cpu = s390_env_get_cpu(VAR_0); LowCore *lowcore; IOIntQueue *q; uint8_t isc; int VAR_1 = 1; int VAR_2 = 0; if (!(VAR_0->psw.mask & PSW_MASK_IO)) { cpu_abort(CPU(cpu), "I/O int w/o I/O mask\n"); } for (isc = 0;...
[ "static void FUNC_0(CPUS390XState *VAR_0)\n{", "S390CPU *cpu = s390_env_get_cpu(VAR_0);", "LowCore *lowcore;", "IOIntQueue *q;", "uint8_t isc;", "int VAR_1 = 1;", "int VAR_2 = 0;", "if (!(VAR_0->psw.mask & PSW_MASK_IO)) {", "cpu_abort(CPU(cpu), \"I/O int w/o I/O mask\\n\");", "}", "for (isc = 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 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 49 ], [...
24,401
static int rtp_new_av_stream(HTTPContext *c, int stream_index, struct sockaddr_in *dest_addr, HTTPContext *rtsp_c) { AVFormatContext *ctx; AVStream *st; char *ipaddr; URLContext *h = NULL; uint8_t *dummy_buf; int max_packet_size;...
true
FFmpeg
9cc9a155100d4364ad02d50e89b313ec94195102
static int rtp_new_av_stream(HTTPContext *c, int stream_index, struct sockaddr_in *dest_addr, HTTPContext *rtsp_c) { AVFormatContext *ctx; AVStream *st; char *ipaddr; URLContext *h = NULL; uint8_t *dummy_buf; int max_packet_size;...
{ "code": [ " st->codec= avcodec_alloc_context();" ], "line_no": [ 41 ] }
static int FUNC_0(HTTPContext *VAR_0, int VAR_1, struct sockaddr_in *VAR_2, HTTPContext *VAR_3) { AVFormatContext *ctx; AVStream *st; char *VAR_4; URLContext *h = NULL; uint8_t *dummy_buf; int VAR_5; ctx = avformat_a...
[ "static int FUNC_0(HTTPContext *VAR_0,\nint VAR_1, struct sockaddr_in *VAR_2,\nHTTPContext *VAR_3)\n{", "AVFormatContext *ctx;", "AVStream *st;", "char *VAR_4;", "URLContext *h = NULL;", "uint8_t *dummy_buf;", "int VAR_5;", "ctx = avformat_alloc_context();", "if (!ctx)\nreturn -1;", "ctx->oformat ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51, 53 ], [ 55,...
24,402
void unix_start_outgoing_migration(MigrationState *s, const char *path, Error **errp) { unix_nonblocking_connect(path, unix_wait_for_connect, s, errp); }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
void unix_start_outgoing_migration(MigrationState *s, const char *path, Error **errp) { unix_nonblocking_connect(path, unix_wait_for_connect, s, errp); }
{ "code": [], "line_no": [] }
void FUNC_0(MigrationState *VAR_0, const char *VAR_1, Error **VAR_2) { unix_nonblocking_connect(VAR_1, unix_wait_for_connect, VAR_0, VAR_2); }
[ "void FUNC_0(MigrationState *VAR_0, const char *VAR_1, Error **VAR_2)\n{", "unix_nonblocking_connect(VAR_1, unix_wait_for_connect, VAR_0, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
24,403
static void *mptsas_load_request(QEMUFile *f, SCSIRequest *sreq) { SCSIBus *bus = sreq->bus; MPTSASState *s = container_of(bus, MPTSASState, bus); PCIDevice *pci = PCI_DEVICE(s); MPTSASRequest *req; int i, n; req = g_new(MPTSASRequest, 1); qemu_get_buffer(f, (unsigned char *)&req->...
true
qemu
262a69f4282e44426c7a132138581d400053e0a1
static void *mptsas_load_request(QEMUFile *f, SCSIRequest *sreq) { SCSIBus *bus = sreq->bus; MPTSASState *s = container_of(bus, MPTSASState, bus); PCIDevice *pci = PCI_DEVICE(s); MPTSASRequest *req; int i, n; req = g_new(MPTSASRequest, 1); qemu_get_buffer(f, (unsigned char *)&req->...
{ "code": [ "#ifdef NDEBUG", "#error building with NDEBUG is not supported", "#endif", "#ifdef NDEBUG", "#error building with NDEBUG is not supported", "#endif" ], "line_no": [ 33, 35, 37, 33, 35, 37 ] }
static void *FUNC_0(QEMUFile *VAR_0, SCSIRequest *VAR_1) { SCSIBus *bus = VAR_1->bus; MPTSASState *s = container_of(bus, MPTSASState, bus); PCIDevice *pci = PCI_DEVICE(s); MPTSASRequest *req; int VAR_2, VAR_3; req = g_new(MPTSASRequest, 1); qemu_get_buffer(VAR_0, (unsigned char *)&...
[ "static void *FUNC_0(QEMUFile *VAR_0, SCSIRequest *VAR_1)\n{", "SCSIBus *bus = VAR_1->bus;", "MPTSASState *s = container_of(bus, MPTSASState, bus);", "PCIDevice *pci = PCI_DEVICE(s);", "MPTSASRequest *req;", "int VAR_2, VAR_3;", "req = g_new(MPTSASRequest, 1);", "qemu_get_buffer(VAR_0, (unsigned char ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 33, 35, 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ], [...
24,404
static int dvbsub_parse_clut_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { DVBSubContext *ctx = avctx->priv_data; const uint8_t *buf_end = buf + buf_size; int i, clut_id; int version; DVBSubCLUT *clut; int entry_id, depth , full...
true
FFmpeg
8a69f2602fea04b7ebae2db16f2581e8ff5ee0cd
static int dvbsub_parse_clut_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { DVBSubContext *ctx = avctx->priv_data; const uint8_t *buf_end = buf + buf_size; int i, clut_id; int version; DVBSubCLUT *clut; int entry_id, depth , full...
{ "code": [ " if (depth & 0x80)", " else if (depth & 0x40)" ], "line_no": [ 173, 177 ] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { DVBSubContext *ctx = VAR_0->priv_data; const uint8_t *VAR_3 = VAR_1 + VAR_2; int VAR_4, VAR_5; int VAR_6; DVBSubCLUT *clut; int VAR_7, VAR_8 , VAR_9; int VAR_10, VAR_11...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{", "DVBSubContext *ctx = VAR_0->priv_data;", "const uint8_t *VAR_3 = VAR_1 + VAR_2;", "int VAR_4, VAR_5;", "int VAR_6;", "DVBSubCLUT *clut;", "int VAR_7, VAR_8 , VAR_9;", "int VAR_10, VAR_11, VAR_12, VAR_13;", "int VAR_14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 53 ], ...
24,405
VLANClientState *qemu_new_vlan_client(VLANState *vlan, IOReadHandler *fd_read, void *opaque) { VLANClientState *vc, **pvc; vc = qemu_mallocz(sizeof(VLANClientState)); if (!vc) return NULL; vc->fd_read = fd_read; vc->opaque = opaque; vc->vlan...
true
qemu
d861b05ea30e6ac177de9b679da96194ebe21afc
VLANClientState *qemu_new_vlan_client(VLANState *vlan, IOReadHandler *fd_read, void *opaque) { VLANClientState *vc, **pvc; vc = qemu_mallocz(sizeof(VLANClientState)); if (!vc) return NULL; vc->fd_read = fd_read; vc->opaque = opaque; vc->vlan...
{ "code": [ " IOReadHandler *fd_read, void *opaque)" ], "line_no": [ 3 ] }
VLANClientState *FUNC_0(VLANState *vlan, IOReadHandler *fd_read, void *opaque) { VLANClientState *vc, **pvc; vc = qemu_mallocz(sizeof(VLANClientState)); if (!vc) return NULL; vc->fd_read = fd_read; vc->opaque = opaque; vc->vlan = vlan; ...
[ "VLANClientState *FUNC_0(VLANState *vlan,\nIOReadHandler *fd_read, void *opaque)\n{", "VLANClientState *vc, **pvc;", "vc = qemu_mallocz(sizeof(VLANClientState));", "if (!vc)\nreturn NULL;", "vc->fd_read = fd_read;", "vc->opaque = opaque;", "vc->vlan = vlan;", "vc->next = NULL;", "pvc = &vlan->first_...
[ 1, 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 ] ]
24,406
static void unterminated_escape(void) { QObject *obj = qobject_from_json("\"abc\\\"", NULL); g_assert(obj == NULL); }
true
qemu
aec4b054ea36c53c8b887da99f20010133b84378
static void unterminated_escape(void) { QObject *obj = qobject_from_json("\"abc\\\"", NULL); g_assert(obj == NULL); }
{ "code": [ " QObject *obj = qobject_from_json(\"\\\"abc\\\\\\\"\", NULL);" ], "line_no": [ 5 ] }
static void FUNC_0(void) { QObject *obj = qobject_from_json("\"abc\\\"", NULL); g_assert(obj == NULL); }
[ "static void FUNC_0(void)\n{", "QObject *obj = qobject_from_json(\"\\\"abc\\\\\\\"\", NULL);", "g_assert(obj == NULL);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
24,407
struct omap_gpmc_s *omap_gpmc_init(struct omap_mpu_state_s *mpu, hwaddr base, qemu_irq irq, qemu_irq drq) { int cs; struct omap_gpmc_s *s = (struct omap_gpmc_s *) g_malloc0(sizeof(struct omap_gpmc_s)); memory_region_i...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
struct omap_gpmc_s *omap_gpmc_init(struct omap_mpu_state_s *mpu, hwaddr base, qemu_irq irq, qemu_irq drq) { int cs; struct omap_gpmc_s *s = (struct omap_gpmc_s *) g_malloc0(sizeof(struct omap_gpmc_s)); memory_region_i...
{ "code": [ " struct omap_gpmc_s *s = (struct omap_gpmc_s *)", " g_malloc0(sizeof(struct omap_gpmc_s));" ], "line_no": [ 11, 13 ] }
struct omap_gpmc_s *FUNC_0(struct omap_mpu_state_s *VAR_0, hwaddr VAR_1, qemu_irq VAR_2, qemu_irq VAR_3) { int VAR_4; struct omap_gpmc_s *VAR_5 = (struct omap_gpmc_s *) g_malloc0(sizeof(struct omap_gpmc_s)); memory_re...
[ "struct omap_gpmc_s *FUNC_0(struct omap_mpu_state_s *VAR_0,\nhwaddr VAR_1,\nqemu_irq VAR_2, qemu_irq VAR_3)\n{", "int VAR_4;", "struct omap_gpmc_s *VAR_5 = (struct omap_gpmc_s *)\ng_malloc0(sizeof(struct omap_gpmc_s));", "memory_region_init_io(&VAR_5->iomem, NULL, &omap_gpmc_ops, VAR_5, \"omap-gpmc\", 0x1000)...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 49 ], [ 51, 53, 55, 57, 59 ], [ 61 ], [ 65, 67 ], [ 69 ...
24,408
bool trace_backend_init(const char *events, const char *file) { GThread *thread; if (!g_thread_supported()) { g_thread_init(NULL); } trace_available_cond = g_cond_new(); trace_empty_cond = g_cond_new(); thread = trace_thread_create(writeout_thread); if (!thread) {...
true
qemu
42ed3727536ccf80c87942b3f04e7378fe90f107
bool trace_backend_init(const char *events, const char *file) { GThread *thread; if (!g_thread_supported()) { g_thread_init(NULL); } trace_available_cond = g_cond_new(); trace_empty_cond = g_cond_new(); thread = trace_thread_create(writeout_thread); if (!thread) {...
{ "code": [], "line_no": [] }
bool FUNC_0(const char *events, const char *file) { GThread *thread; if (!g_thread_supported()) { g_thread_init(NULL); } trace_available_cond = g_cond_new(); trace_empty_cond = g_cond_new(); thread = trace_thread_create(writeout_thread); if (!thread) { fp...
[ "bool FUNC_0(const char *events, const char *file)\n{", "GThread *thread;", "if (!g_thread_supported()) {", "g_thread_init(NULL);", "}", "trace_available_cond = g_cond_new();", "trace_empty_cond = g_cond_new();", "thread = trace_thread_create(writeout_thread);", "if (!thread) {", "fprintf(stderr, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 12 ], [ 18 ], [ 22 ], [ 24 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 48 ] ]
24,409
static inline void vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y, int mvn, int r_x, int r_y, uint8_t* is_intra) { MpegEncContext *s = &v->s; int xy, wrap, off = 0; int A[2], B[2], C[2]; int px, py; int a_valid = 0, b_valid = 0, c_valid = 0; ...
true
FFmpeg
6136b989f658fff68e2b758db583f04358d3d412
static inline void vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y, int mvn, int r_x, int r_y, uint8_t* is_intra) { MpegEncContext *s = &v->s; int xy, wrap, off = 0; int A[2], B[2], C[2]; int px, py; int a_valid = 0, b_valid = 0, c_valid = 0; ...
{ "code": [ " if (a_valid) { px = A[0]; py = A[1]; }", " if (b_valid) { px = B[0]; py = B[1]; }", " if (c_valid) { px = C[0]; py = C[1]; }" ], "line_no": [ 281, 283, 285 ] }
static inline void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, uint8_t* VAR_7) { MpegEncContext *s = &VAR_0->s; int VAR_8, VAR_9, VAR_10 = 0; int VAR_11[2], VAR_12[2], VAR_13[2]; int VAR_14, VAR_15; int VAR_1...
[ "static inline void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6, uint8_t* VAR_7)\n{", "MpegEncContext *s = &VAR_0->s;", "int VAR_8, VAR_9, VAR_10 = 0;", "int VAR_11[2], VAR_12[2], VAR_13[2];", "int VAR_14, VAR_15;", "int VAR_16 = 0, VAR_17 = 0, VAR_18 = 0;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
24,411
ip_reass(register struct ip *ip, register struct ipq *fp) { register struct mbuf *m = dtom(ip); register struct ipasfrag *q; int hlen = ip->ip_hl << 2; int i, next; DEBUG_CALL("ip_reass"); DEBUG_ARG("ip = %lx", (long)ip); DEBUG_ARG("fp = %lx", (long)fp); DEBUG_ARG("m = %lx", (long)m); /* * Pre...
true
qemu
f2ba730e89b420903257e543c1bb7f7d945ba36a
ip_reass(register struct ip *ip, register struct ipq *fp) { register struct mbuf *m = dtom(ip); register struct ipasfrag *q; int hlen = ip->ip_hl << 2; int i, next; DEBUG_CALL("ip_reass"); DEBUG_ARG("ip = %lx", (long)ip); DEBUG_ARG("fp = %lx", (long)fp); DEBUG_ARG("m = %lx", (long)m); ...
{ "code": [ "\t int delta;", "\t delta = (char *)ip - m->m_dat;" ], "line_no": [ 253, 255 ] }
FUNC_0(register struct VAR_0 *VAR_0, register struct ipq *VAR_1) { register struct mbuf *VAR_2 = dtom(VAR_0); register struct ipasfrag *VAR_3; int VAR_4 = VAR_0->ip_hl << 2; int VAR_5, VAR_6; DEBUG_CALL("FUNC_0"); DEBUG_ARG("VAR_0 = %lx", (long)VAR_0); DEBUG_ARG("VAR_1 = %lx", (long)VAR_1); DEBUG_ARG...
[ "FUNC_0(register struct VAR_0 *VAR_0, register struct ipq *VAR_1)\n{", "register struct mbuf *VAR_2 = dtom(VAR_0);", "register struct ipasfrag *VAR_3;", "int VAR_4 = VAR_0->ip_hl << 2;", "int VAR_5, VAR_6;", "DEBUG_CALL(\"FUNC_0\");", "DEBUG_ARG(\"VAR_0 = %lx\", (long)VAR_0);", "DEBUG_ARG(\"VAR_1 = %l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 35 ], [ 37 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ...
24,412
static void qtrle_encode_line(QtrleEncContext *s, AVFrame *p, int line, uint8_t **buf) { int width=s->logical_width; int i; signed char rlecode; /* We will use it to compute the best bulk copy sequence */ unsigned int bulkcount; /* This will be the number of pixels equal to the preivous...
true
FFmpeg
8b18288c08fd450601251700eb42d9efbef89803
static void qtrle_encode_line(QtrleEncContext *s, AVFrame *p, int line, uint8_t **buf) { int width=s->logical_width; int i; signed char rlecode; unsigned int bulkcount; unsigned int skipcount; unsigned int repeatcount; int total_bulk_cost; int tot...
{ "code": [ " unsigned int bulkcount;", " unsigned int repeatcount;" ], "line_no": [ 15, 27 ] }
static void FUNC_0(QtrleEncContext *VAR_0, AVFrame *VAR_1, int VAR_2, uint8_t **VAR_3) { int VAR_4=VAR_0->logical_width; int VAR_5; signed char VAR_6; unsigned int VAR_7; unsigned int VAR_8; unsigned int VAR_9; int VAR_10; int VAR_11; int VAR...
[ "static void FUNC_0(QtrleEncContext *VAR_0, AVFrame *VAR_1, int VAR_2, uint8_t **VAR_3)\n{", "int VAR_4=VAR_0->logical_width;", "int VAR_5;", "signed char VAR_6;", "unsigned int VAR_7;", "unsigned int VAR_8;", "unsigned int VAR_9;", "int VAR_10;", "int VAR_11;", "int VAR_12;", "int VAR_13;", "...
[ 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 21 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51, 53 ], [ 57 ], [ 59 ], [ 63 ], [ 67, 69 ], [...
24,413
static void rv34_idct_add_c(uint8_t *dst, ptrdiff_t stride, DCTELEM *block){ int temp[16]; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int i; rv34_row_transform(temp, block); memset(block, 0, 16*sizeof(DCTELEM)); for(i = 0; i < 4; i++){ const int z0 = 13*(temp[4*0+i] + ...
true
FFmpeg
c23acbaed40101c677dfcfbbfe0d2c230a8e8f44
static void rv34_idct_add_c(uint8_t *dst, ptrdiff_t stride, DCTELEM *block){ int temp[16]; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int i; rv34_row_transform(temp, block); memset(block, 0, 16*sizeof(DCTELEM)); for(i = 0; i < 4; i++){ const int z0 = 13*(temp[4*0+i] + ...
{ "code": [ " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CR...
static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1, DCTELEM *VAR_2){ int VAR_3[16]; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int VAR_4; rv34_row_transform(VAR_3, VAR_2); memset(VAR_2, 0, 16*sizeof(DCTELEM)); for(VAR_4 = 0; VAR_4 < 4; VAR_4++){ const int VAR_5 = 13*(V...
[ "static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1, DCTELEM *VAR_2){", "int VAR_3[16];", "uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", "int VAR_4;", "rv34_row_transform(VAR_3, VAR_2);", "memset(VAR_2, 0, 16*sizeof(DCTELEM));", "for(VAR_4 = 0; VAR_4 < 4; VAR_4++){", "const int VAR_5 = 13*(VAR_...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ] ]
24,414
int ff_lpc_calc_coefs(DSPContext *s, const int32_t *samples, int blocksize, int min_order, int max_order, int precision, int32_t coefs[][MAX_LPC_ORDER], int *shift, int use_lpc, int omethod, int max_shift, int zero_shift) { ...
true
FFmpeg
3cfe88194a6ea8c720dfc85239d03c659473bcc3
int ff_lpc_calc_coefs(DSPContext *s, const int32_t *samples, int blocksize, int min_order, int max_order, int precision, int32_t coefs[][MAX_LPC_ORDER], int *shift, int use_lpc, int omethod, int max_shift, int zero_shift) { ...
{ "code": [ " double var[MAX_LPC_ORDER+1], weight;" ], "line_no": [ 47 ] }
int FUNC_0(DSPContext *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, int VAR_8, int VAR_9, int VAR_10, int VAR_11) { double VAR_12[MAX_LPC_ORDER+1]; ...
[ "int FUNC_0(DSPContext *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, int VAR_8,\nint VAR_9, int VAR_10, int VAR_11)\n{", "double VAR_12[MAX_LPC_ORDER+1];", "double VAR_13[MAX_LPC_ORDER];", "double VAR_14[MAX_LPC_ORDER][MAX_LPC_ORDER];"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 57 ...
24,416
av_cold void ff_cavsdsp_init_x86(CAVSDSPContext *c, AVCodecContext *avctx) { av_unused int cpu_flags = av_get_cpu_flags(); cavsdsp_init_mmx(c, avctx); #if HAVE_AMD3DNOW_INLINE if (INLINE_AMD3DNOW(cpu_flags)) cavsdsp_init_3dnow(c, avctx); #endif /* HAVE_AMD3DNOW_INLINE */ #if HAVE_MMXEXT_IN...
true
FFmpeg
835d9f299cf6b3704989a7b3eccfa1c2ec6866d9
av_cold void ff_cavsdsp_init_x86(CAVSDSPContext *c, AVCodecContext *avctx) { av_unused int cpu_flags = av_get_cpu_flags(); cavsdsp_init_mmx(c, avctx); #if HAVE_AMD3DNOW_INLINE if (INLINE_AMD3DNOW(cpu_flags)) cavsdsp_init_3dnow(c, avctx); #endif #if HAVE_MMXEXT_INLINE if (INLINE_MMXEX...
{ "code": [ " cavsdsp_init_mmx(c, avctx);" ], "line_no": [ 9 ] }
av_cold void FUNC_0(CAVSDSPContext *c, AVCodecContext *avctx) { av_unused int cpu_flags = av_get_cpu_flags(); cavsdsp_init_mmx(c, avctx); #if HAVE_AMD3DNOW_INLINE if (INLINE_AMD3DNOW(cpu_flags)) cavsdsp_init_3dnow(c, avctx); #endif #if HAVE_MMXEXT_INLINE if (INLINE_MMXEXT(cpu_flags))...
[ "av_cold void FUNC_0(CAVSDSPContext *c, AVCodecContext *avctx)\n{", "av_unused int cpu_flags = av_get_cpu_flags();", "cavsdsp_init_mmx(c, avctx);", "#if HAVE_AMD3DNOW_INLINE\nif (INLINE_AMD3DNOW(cpu_flags))\ncavsdsp_init_3dnow(c, avctx);", "#endif\n#if HAVE_MMXEXT_INLINE\nif (INLINE_MMXEXT(cpu_flags)) {", ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13, 15 ], [ 17, 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47, 49 ], [ 51...
24,417
static bool object_create_initial(const char *type) { if (g_str_equal(type, "rng-egd")) { /* * return false for concrete netfilters since * they depend on netdevs already existing if (g_str_equal(type, "filter-buffer") || g_str_equal(type, "filter-dump") || g_str_equal(type, "filte...
true
qemu
6546d0dba6c211c1a3eac1252a4f50a0c151a08a
static bool object_create_initial(const char *type) { if (g_str_equal(type, "rng-egd")) { /* * return false for concrete netfilters since * they depend on netdevs already existing if (g_str_equal(type, "filter-buffer") || g_str_equal(type, "filter-dump") || g_str_equal(type, "filte...
{ "code": [], "line_no": [] }
static bool FUNC_0(const char *type) { if (g_str_equal(type, "rng-egd")) { /* * return false for concrete netfilters since * they depend on netdevs already existing if (g_str_equal(type, "filter-buffer") || g_str_equal(type, "filter-dump") || g_str_equal(type, "filter-mirror") || ...
[ "static bool FUNC_0(const char *type)\n{", "if (g_str_equal(type, \"rng-egd\")) {", "/*\n* return false for concrete netfilters since\n* they depend on netdevs already existing\nif (g_str_equal(type, \"filter-buffer\") ||\ng_str_equal(type, \"filter-dump\") ||\ng_str_equal(type, \"filter-mirror\") ||\ng_str_equ...
[ 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4, 5, 6, 7, 8, 9, 10 ], [ 11 ] ]
24,418
static int bochs_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVBochsState *s = bs->opaque; int i; struct bochs_header bochs; struct bochs_header_v1 header_v1; int ret; bs->read_only = 1; // no write support yet ret = bdrv_pread(b...
true
qemu
3dd8a6763bcc50dfc3de8da9279b741c0dea9fb1
static int bochs_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVBochsState *s = bs->opaque; int i; struct bochs_header bochs; struct bochs_header_v1 header_v1; int ret; bs->read_only = 1; ret = bdrv_pread(bs->file, 0, &bochs, siz...
{ "code": [ " struct bochs_header_v1 header_v1;", " memcpy(&header_v1, &bochs, sizeof(bochs));", " bs->total_sectors = le64_to_cpu(header_v1.extra.redolog.disk) / 512;", " bs->total_sectors = le64_to_cpu(bochs.extra.redolog.disk) / 512;", " s->catalog_size = le32_to_cpu(bochs....
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVBochsState *s = VAR_0->opaque; int VAR_4; struct bochs_header VAR_5; struct bochs_header_v1 VAR_6; int VAR_7; VAR_0->read_only = 1; VAR_7 = bdrv_pread(VAR_0->file, 0, ...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVBochsState *s = VAR_0->opaque;", "int VAR_4;", "struct bochs_header VAR_5;", "struct bochs_header_v1 VAR_6;", "int VAR_7;", "VAR_0->read_only = 1;", "VAR_7 = bdrv_pread(VAR_0->file, 0, &VAR_5, sizeof(VAR_5))...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35, 37, 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [...
24,419
static int svq3_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { MpegEncContext *const s = avctx->priv_data; H264Context *const h = avctx->priv_data; int m, mb_type; unsigned char *extradata; unsig...
true
FFmpeg
0c74098b1c4cc566ee0af19374b03d1e425dd1f0
static int svq3_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { MpegEncContext *const s = avctx->priv_data; H264Context *const h = avctx->priv_data; int m, mb_type; unsigned char *extradata; unsig...
{ "code": [ " frame_start (h);" ], "line_no": [ 247 ] }
static int FUNC_0 (AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { MpegEncContext *const s = VAR_0->priv_data; H264Context *const h = VAR_0->priv_data; int VAR_5, VAR_6; unsigned char *VAR_7; unsigned int VAR_8; ...
[ "static int FUNC_0 (AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4) {", "MpegEncContext *const s = VAR_0->priv_data;", "H264Context *const h = VAR_0->priv_data;", "int VAR_5, VAR_6;", "unsigned char *VAR_7;", "unsigned int VAR_8;", "s->flags = VAR_0->flags;", "s->flags2 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ...
24,420
static inline void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUSH4State *env) { int i; for (i = 0; i < 16; i++) { (*regs[i]) = tswapreg(env->gregs[i]); } (*regs)[TARGET_REG_PC] = tswapreg(env->pc); (*regs)[TARGET_REG_PR] = tswapre...
true
qemu
72cd500b725fd9a3bbefeb468d54c192fdc28318
static inline void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUSH4State *env) { int i; for (i = 0; i < 16; i++) { (*regs[i]) = tswapreg(env->gregs[i]); } (*regs)[TARGET_REG_PC] = tswapreg(env->pc); (*regs)[TARGET_REG_PR] = tswapre...
{ "code": [ " (*regs[i]) = tswapreg(env->gregs[i]);" ], "line_no": [ 13 ] }
static inline void FUNC_0(target_elf_gregset_t *VAR_0, const CPUSH4State *VAR_1) { int VAR_2; for (VAR_2 = 0; VAR_2 < 16; VAR_2++) { (*VAR_0[VAR_2]) = tswapreg(VAR_1->gregs[VAR_2]); } (*VAR_0)[TARGET_REG_PC] = tswapreg(VAR_1->pc); (*VAR_0)[TA...
[ "static inline void FUNC_0(target_elf_gregset_t *VAR_0,\nconst CPUSH4State *VAR_1)\n{", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < 16; VAR_2++) {", "(*VAR_0[VAR_2]) = tswapreg(VAR_1->gregs[VAR_2]);", "}", "(*VAR_0)[TARGET_REG_PC] = tswapreg(VAR_1->pc);", "(*VAR_0)[TARGET_REG_PR] = tswapreg(VAR_1->pr);", "...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
24,421
static int vorbis_parse_id_hdr(vorbis_context *vc){ GetBitContext *gb=&vc->gb; uint_fast8_t bl0, bl1; if ((get_bits(gb, 8)!='v') || (get_bits(gb, 8)!='o') || (get_bits(gb, 8)!='r') || (get_bits(gb, 8)!='b') || (get_bits(gb, 8)!='i') || (get_bits(gb, 8)!='s')) { av_log(vc->avccontext,...
false
FFmpeg
90901860c21468d6e9ae437c2bacb099c7bd3acf
static int vorbis_parse_id_hdr(vorbis_context *vc){ GetBitContext *gb=&vc->gb; uint_fast8_t bl0, bl1; if ((get_bits(gb, 8)!='v') || (get_bits(gb, 8)!='o') || (get_bits(gb, 8)!='r') || (get_bits(gb, 8)!='b') || (get_bits(gb, 8)!='i') || (get_bits(gb, 8)!='s')) { av_log(vc->avccontext,...
{ "code": [], "line_no": [] }
static int FUNC_0(vorbis_context *VAR_0){ GetBitContext *gb=&VAR_0->gb; uint_fast8_t bl0, bl1; if ((get_bits(gb, 8)!='v') || (get_bits(gb, 8)!='o') || (get_bits(gb, 8)!='r') || (get_bits(gb, 8)!='b') || (get_bits(gb, 8)!='VAR_1') || (get_bits(gb, 8)!='s')) { av_log(VAR_0->avccontext,...
[ "static int FUNC_0(vorbis_context *VAR_0){", "GetBitContext *gb=&VAR_0->gb;", "uint_fast8_t bl0, bl1;", "if ((get_bits(gb, 8)!='v') || (get_bits(gb, 8)!='o') ||\n(get_bits(gb, 8)!='r') || (get_bits(gb, 8)!='b') ||\n(get_bits(gb, 8)!='VAR_1') || (get_bits(gb, 8)!='s')) {", "av_log(VAR_0->avccontext, AV_LOG_E...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...
24,422
static void tcg_out_ld (TCGContext *s, TCGType type, int ret, int arg1, tcg_target_long arg2) { if (type == TCG_TYPE_I32) tcg_out_ldst (s, ret, arg1, arg2, LWZ, LWZX); else tcg_out_ldst (s, ret, arg1, arg2, LD, LDX); }
true
qemu
828808f5ece20fd606218e000139799921c89d93
static void tcg_out_ld (TCGContext *s, TCGType type, int ret, int arg1, tcg_target_long arg2) { if (type == TCG_TYPE_I32) tcg_out_ldst (s, ret, arg1, arg2, LWZ, LWZX); else tcg_out_ldst (s, ret, arg1, arg2, LD, LDX); }
{ "code": [ " tcg_out_ldst (s, ret, arg1, arg2, LD, LDX);" ], "line_no": [ 13 ] }
static void FUNC_0 (TCGContext *VAR_0, TCGType VAR_1, int VAR_2, int VAR_3, tcg_target_long VAR_4) { if (VAR_1 == TCG_TYPE_I32) tcg_out_ldst (VAR_0, VAR_2, VAR_3, VAR_4, LWZ, LWZX); else tcg_out_ldst (VAR_0, VAR_2, VAR_3, VAR_4, LD, LDX); }
[ "static void FUNC_0 (TCGContext *VAR_0, TCGType VAR_1, int VAR_2, int VAR_3,\ntcg_target_long VAR_4)\n{", "if (VAR_1 == TCG_TYPE_I32)\ntcg_out_ldst (VAR_0, VAR_2, VAR_3, VAR_4, LWZ, LWZX);", "else\ntcg_out_ldst (VAR_0, VAR_2, VAR_3, VAR_4, LD, LDX);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11, 13 ], [ 15 ] ]
24,423
void fw_cfg_add_i64(FWCfgState *s, uint16_t key, uint64_t value) { uint64_t *copy; copy = g_malloc(sizeof(value)); *copy = cpu_to_le64(value); fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value)); }
true
qemu
089da572b956ef0f8f5b8d5917358e07892a77c2
void fw_cfg_add_i64(FWCfgState *s, uint16_t key, uint64_t value) { uint64_t *copy; copy = g_malloc(sizeof(value)); *copy = cpu_to_le64(value); fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value)); }
{ "code": [ " fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value));", " fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value));", " fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value));" ], "line_no": [ 13, 13, 13 ] }
void FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, uint64_t VAR_2) { uint64_t *copy; copy = g_malloc(sizeof(VAR_2)); *copy = cpu_to_le64(VAR_2); fw_cfg_add_bytes(VAR_0, VAR_1, (uint8_t *)copy, sizeof(VAR_2)); }
[ "void FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, uint64_t VAR_2)\n{", "uint64_t *copy;", "copy = g_malloc(sizeof(VAR_2));", "*copy = cpu_to_le64(VAR_2);", "fw_cfg_add_bytes(VAR_0, VAR_1, (uint8_t *)copy, sizeof(VAR_2));", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
24,425
static NetSocketState *net_socket_fd_init_stream(VLANState *vlan, int fd, int is_connected) { NetSocketState *s; s = qemu_mallocz(sizeof(NetSocketState)); if (!s) return NULL; s->fd = fd; s->vc = qemu_new_vlan_client(vlan, ...
true
qemu
d861b05ea30e6ac177de9b679da96194ebe21afc
static NetSocketState *net_socket_fd_init_stream(VLANState *vlan, int fd, int is_connected) { NetSocketState *s; s = qemu_mallocz(sizeof(NetSocketState)); if (!s) return NULL; s->fd = fd; s->vc = qemu_new_vlan_client(vlan, ...
{ "code": [ " net_socket_receive, s);" ], "line_no": [ 19 ] }
static NetSocketState *FUNC_0(VLANState *vlan, int fd, int is_connected) { NetSocketState *s; s = qemu_mallocz(sizeof(NetSocketState)); if (!s) return NULL; s->fd = fd; s->vc = qemu_new_vlan_client(vlan, ne...
[ "static NetSocketState *FUNC_0(VLANState *vlan, int fd,\nint is_connected)\n{", "NetSocketState *s;", "s = qemu_mallocz(sizeof(NetSocketState));", "if (!s)\nreturn NULL;", "s->fd = fd;", "s->vc = qemu_new_vlan_client(vlan,\nnet_socket_receive, s);", "snprintf(s->vc->info_str, sizeof(s->vc->info_str),\n\...
[ 0, 0, 0, 0, 0, 1, 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 ] ]
24,427
static int add_string_metadata(int count, const char *name, TiffContext *s) { char *value; if (bytestream2_get_bytes_left(&s->gb) < count) return AVERROR_INVALIDDATA; value = av_malloc(count + 1); if (!value) return AVERROR(ENOMEM); bytes...
false
FFmpeg
b16830840eb9bdec88fce2aebb38a582e093ab6b
static int add_string_metadata(int count, const char *name, TiffContext *s) { char *value; if (bytestream2_get_bytes_left(&s->gb) < count) return AVERROR_INVALIDDATA; value = av_malloc(count + 1); if (!value) return AVERROR(ENOMEM); bytes...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, const char *VAR_1, TiffContext *VAR_2) { char *VAR_3; if (bytestream2_get_bytes_left(&VAR_2->gb) < VAR_0) return AVERROR_INVALIDDATA; VAR_3 = av_malloc(VAR_0 + 1); if (!VAR_3) return AVERROR(ENOMEM); bytestrea...
[ "static int FUNC_0(int VAR_0, const char *VAR_1,\nTiffContext *VAR_2)\n{", "char *VAR_3;", "if (bytestream2_get_bytes_left(&VAR_2->gb) < VAR_0)\nreturn AVERROR_INVALIDDATA;", "VAR_3 = av_malloc(VAR_0 + 1);", "if (!VAR_3)\nreturn AVERROR(ENOMEM);", "bytestream2_get_bufferu(&VAR_2->gb, VAR_3, VAR_0);", "V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ] ]
24,428
static int idcin_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; IdcinDemuxContext *idcin = s->priv_data; AVStream *st; unsigned int width, height; unsigned int sample_rate, bytes_per_sample, channels; int ret; /* get the 5 header parameters */ width = avio_rl32(pb)...
false
FFmpeg
16e0416fa47ca391214ad20d162240e5d492bf0e
static int idcin_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; IdcinDemuxContext *idcin = s->priv_data; AVStream *st; unsigned int width, height; unsigned int sample_rate, bytes_per_sample, channels; int ret; width = avio_rl32(pb); height = avio_rl32(pb); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { AVIOContext *pb = VAR_0->pb; IdcinDemuxContext *idcin = VAR_0->priv_data; AVStream *st; unsigned int VAR_1, VAR_2; unsigned int VAR_3, VAR_4, VAR_5; int VAR_6; VAR_1 = avio_rl32(pb); VAR_2 = avio_rl32(pb); VAR_3 = avio_rl3...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVIOContext *pb = VAR_0->pb;", "IdcinDemuxContext *idcin = VAR_0->priv_data;", "AVStream *st;", "unsigned int VAR_1, VAR_2;", "unsigned int VAR_3, VAR_4, VAR_5;", "int VAR_6;", "VAR_1 = avio_rl32(pb);", "VAR_2 = avio_rl32(pb);", "VAR_3 = avio_rl32(p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
24,429
static int decode_profile_tier_level(GetBitContext *gb, AVCodecContext *avctx, PTLCommon *ptl) { int i; if (get_bits_left(gb) < 2+1+5 + 32 + 4 + 16 + 16 + 12) return -1; ptl->profile_space = get_bits(gb, 2); ptl->tier_flag = get_bits1(gb); ...
false
FFmpeg
f85cc3bf12236e974403667610b39b802b8651d6
static int decode_profile_tier_level(GetBitContext *gb, AVCodecContext *avctx, PTLCommon *ptl) { int i; if (get_bits_left(gb) < 2+1+5 + 32 + 4 + 16 + 16 + 12) return -1; ptl->profile_space = get_bits(gb, 2); ptl->tier_flag = get_bits1(gb); ...
{ "code": [], "line_no": [] }
static int FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1, PTLCommon *VAR_2) { int VAR_3; if (get_bits_left(VAR_0) < 2+1+5 + 32 + 4 + 16 + 16 + 12) return -1; VAR_2->profile_space = get_bits(VAR_0, 2); VAR_2->tier_flag = get_bits1(VAR_0); ...
[ "static int FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1,\nPTLCommon *VAR_2)\n{", "int VAR_3;", "if (get_bits_left(VAR_0) < 2+1+5 + 32 + 4 + 16 + 16 + 12)\nreturn -1;", "VAR_2->profile_space = get_bits(VAR_0, 2);", "VAR_2->tier_flag = get_bits1(VAR_0);", "VAR_2->profile_idc = get_bits(VAR_0, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], ...
24,431
int ff_dca_lbr_parse(DCALbrDecoder *s, uint8_t *data, DCAExssAsset *asset) { struct { LBRChunk lfe; LBRChunk tonal; LBRChunk tonal_grp[5]; LBRChunk grid1[DCA_LBR_CHANNELS / 2]; LBRChunk hr_grid[DCA_LBR_CHANNELS / 2]; LBRChunk ts1[DCA_LBR_CHAN...
false
FFmpeg
27506aceda8115f82f89691a4441d62a8cf24a6e
int ff_dca_lbr_parse(DCALbrDecoder *s, uint8_t *data, DCAExssAsset *asset) { struct { LBRChunk lfe; LBRChunk tonal; LBRChunk tonal_grp[5]; LBRChunk grid1[DCA_LBR_CHANNELS / 2]; LBRChunk hr_grid[DCA_LBR_CHANNELS / 2]; LBRChunk ts1[DCA_LBR_CHAN...
{ "code": [], "line_no": [] }
int FUNC_0(DCALbrDecoder *VAR_0, uint8_t *VAR_1, DCAExssAsset *VAR_2) { struct { LBRChunk lfe; LBRChunk tonal; LBRChunk tonal_grp[5]; LBRChunk grid1[DCA_LBR_CHANNELS / 2]; LBRChunk hr_grid[DCA_LBR_CHANNELS / 2]; LBRChunk ts1[DCA_LBR_CHANNELS ...
[ "int FUNC_0(DCALbrDecoder *VAR_0, uint8_t *VAR_1, DCAExssAsset *VAR_2)\n{", "struct {", "LBRChunk lfe;", "LBRChunk tonal;", "LBRChunk tonal_grp[5];", "LBRChunk grid1[DCA_LBR_CHANNELS / 2];", "LBRChunk hr_grid[DCA_LBR_CHANNELS / 2];", "LBRChunk ts1[DCA_LBR_CHANNELS / 2];", "LBRChunk...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53, 55 ], [...
24,432
static av_cold int wmv2_decode_init(AVCodecContext *avctx) { Wmv2Context *const w = avctx->priv_data; int ret; if ((ret = ff_msmpeg4_decode_init(avctx)) < 0) return ret; ff_wmv2_common_init(w); return ff_intrax8_common_init(&w->x8, &w->s.idsp, &w->s); }
false
FFmpeg
1eaae7abb8f208fefb4e8b9e983e61b2499206a3
static av_cold int wmv2_decode_init(AVCodecContext *avctx) { Wmv2Context *const w = avctx->priv_data; int ret; if ((ret = ff_msmpeg4_decode_init(avctx)) < 0) return ret; ff_wmv2_common_init(w); return ff_intrax8_common_init(&w->x8, &w->s.idsp, &w->s); }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { Wmv2Context *const w = avctx->priv_data; int VAR_0; if ((VAR_0 = ff_msmpeg4_decode_init(avctx)) < 0) return VAR_0; ff_wmv2_common_init(w); return ff_intrax8_common_init(&w->x8, &w->s.idsp, &w->s); }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "Wmv2Context *const w = avctx->priv_data;", "int VAR_0;", "if ((VAR_0 = ff_msmpeg4_decode_init(avctx)) < 0)\nreturn VAR_0;", "ff_wmv2_common_init(w);", "return ff_intrax8_common_init(&w->x8, &w->s.idsp, &w->s);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 21 ], [ 23 ] ]
24,434
static int amovie_get_samples(AVFilterLink *outlink) { MovieContext *movie = outlink->src->priv; AVPacket pkt; int ret, got_frame = 0; if (!movie->pkt.size && movie->is_done == 1) return AVERROR_EOF; /* check for another frame, in case the previous one was completely consumed */ ...
false
FFmpeg
ac726a4f0cd2fb8619b478af51312a4282215f0e
static int amovie_get_samples(AVFilterLink *outlink) { MovieContext *movie = outlink->src->priv; AVPacket pkt; int ret, got_frame = 0; if (!movie->pkt.size && movie->is_done == 1) return AVERROR_EOF; if (!movie->pkt.size) { while ((ret = av_read_frame(movie->format_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0) { MovieContext *movie = VAR_0->src->priv; AVPacket pkt; int VAR_1, VAR_2 = 0; if (!movie->pkt.size && movie->is_done == 1) return AVERROR_EOF; if (!movie->pkt.size) { while ((VAR_1 = av_read_frame(movie->format_ctx, &pkt)) >= 0...
[ "static int FUNC_0(AVFilterLink *VAR_0)\n{", "MovieContext *movie = VAR_0->src->priv;", "AVPacket pkt;", "int VAR_1, VAR_2 = 0;", "if (!movie->pkt.size && movie->is_done == 1)\nreturn AVERROR_EOF;", "if (!movie->pkt.size) {", "while ((VAR_1 = av_read_frame(movie->format_ctx, &pkt)) >= 0) {", "if (pkt....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
24,435
static int h264_init_context(AVCodecContext *avctx, H264Context *h) { int i; h->avctx = avctx; h->picture_structure = PICT_FRAME; h->slice_context_count = 1; h->workaround_bugs = avctx->workaround_bugs; h->flags = avctx->flags; h->prev_...
false
FFmpeg
c8dcff0cdb17d0aa03ac729eba12d1a20f1f59c8
static int h264_init_context(AVCodecContext *avctx, H264Context *h) { int i; h->avctx = avctx; h->picture_structure = PICT_FRAME; h->slice_context_count = 1; h->workaround_bugs = avctx->workaround_bugs; h->flags = avctx->flags; h->prev_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, H264Context *VAR_1) { int VAR_2; VAR_1->VAR_0 = VAR_0; VAR_1->picture_structure = PICT_FRAME; VAR_1->slice_context_count = 1; VAR_1->workaround_bugs = VAR_0->workaround_bugs; VAR_1->flags = VAR_0->fla...
[ "static int FUNC_0(AVCodecContext *VAR_0, H264Context *VAR_1)\n{", "int VAR_2;", "VAR_1->VAR_0 = VAR_0;", "VAR_1->picture_structure = PICT_FRAME;", "VAR_1->slice_context_count = 1;", "VAR_1->workaround_bugs = VAR_0->workaround_bugs;", "VAR_1->flags = VAR_0->fl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
24,436
static uint32_t nvic_readl(NVICState *s, uint32_t offset) { ARMCPU *cpu = s->cpu; uint32_t val; switch (offset) { case 4: /* Interrupt Control Type. */ return ((s->num_irq - NVIC_FIRST_IRQ) / 32) - 1; case 0xd00: /* CPUID Base. */ return cpu->midr; case 0xd04: /* Int...
false
qemu
45db7ba681ede57113a67499840e69ee586bcdf2
static uint32_t nvic_readl(NVICState *s, uint32_t offset) { ARMCPU *cpu = s->cpu; uint32_t val; switch (offset) { case 4: return ((s->num_irq - NVIC_FIRST_IRQ) / 32) - 1; case 0xd00: return cpu->midr; case 0xd04: val = cpu->env.v7m.exception; ...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(NVICState *s, uint32_t offset) { ARMCPU *cpu = s->cpu; uint32_t val; switch (offset) { case 4: return ((s->num_irq - NVIC_FIRST_IRQ) / 32) - 1; case 0xd00: return cpu->midr; case 0xd04: val = cpu->env.v7m.exception; ...
[ "static uint32_t FUNC_0(NVICState *s, uint32_t offset)\n{", "ARMCPU *cpu = s->cpu;", "uint32_t val;", "switch (offset) {", "case 4:\nreturn ((s->num_irq - NVIC_FIRST_IRQ) / 32) - 1;", "case 0xd00:\nreturn cpu->midr;", "case 0xd04:\nval = cpu->env.v7m.exception;", "val |= (s->vectpending & 0xff) << 12;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 21, 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], ...
24,437
static void parse_cmdline(const char *cmdline, int *pnb_args, char **args) { const char *p; int nb_args, ret; char buf[1024]; p = cmdline; nb_args = 0; for(;;) { while (qemu_isspace(*p)) p++; if (*p == '\0') break; ...
false
qemu
f5438c0500bb22c97b30987d2e0eab953416c7c5
static void parse_cmdline(const char *cmdline, int *pnb_args, char **args) { const char *p; int nb_args, ret; char buf[1024]; p = cmdline; nb_args = 0; for(;;) { while (qemu_isspace(*p)) p++; if (*p == '\0') break; ...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, int *VAR_1, char **VAR_2) { const char *VAR_3; int VAR_4, VAR_5; char VAR_6[1024]; VAR_3 = VAR_0; VAR_4 = 0; for(;;) { while (qemu_isspace(*VAR_3)) VAR_3++; if (*VAR_3 == '\0') br...
[ "static void FUNC_0(const char *VAR_0,\nint *VAR_1, char **VAR_2)\n{", "const char *VAR_3;", "int VAR_4, VAR_5;", "char VAR_6[1024];", "VAR_3 = VAR_0;", "VAR_4 = 0;", "for(;;) {", "while (qemu_isspace(*VAR_3))\nVAR_3++;", "if (*VAR_3 == '\\0')\nbreak;", "if (VAR_4 >= MAX_ARGS)\nbreak;", "VAR_5 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ] ]
24,438
void portio_list_destroy(PortioList *piolist) { g_free(piolist->regions); g_free(piolist->aliases); }
false
qemu
b40acf99bef69fa8ab0f9092ff162fde945eec12
void portio_list_destroy(PortioList *piolist) { g_free(piolist->regions); g_free(piolist->aliases); }
{ "code": [], "line_no": [] }
void FUNC_0(PortioList *VAR_0) { g_free(VAR_0->regions); g_free(VAR_0->aliases); }
[ "void FUNC_0(PortioList *VAR_0)\n{", "g_free(VAR_0->regions);", "g_free(VAR_0->aliases);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
24,439
INLINE flag extractFloat32Sign( float32 a ) { return a>>31; }
false
qemu
f090c9d4ad5812fb92843d6470a1111c15190c4c
INLINE flag extractFloat32Sign( float32 a ) { return a>>31; }
{ "code": [], "line_no": [] }
INLINE VAR_0 extractFloat32Sign( float32 a ) { return a>>31; }
[ "INLINE VAR_0 extractFloat32Sign( float32 a )\n{", "return a>>31;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 11 ] ]
24,440
static int proxy_mknod(FsContext *fs_ctx, V9fsPath *dir_path, const char *name, FsCred *credp) { int retval; V9fsString fullname; v9fs_string_init(&fullname); v9fs_string_sprintf(&fullname, "%s/%s", dir_path->data, name); retval = v9fs_request(fs_ctx->private, T_MKN...
false
qemu
494a8ebe713055d3946183f4b395f85a18b43e9e
static int proxy_mknod(FsContext *fs_ctx, V9fsPath *dir_path, const char *name, FsCred *credp) { int retval; V9fsString fullname; v9fs_string_init(&fullname); v9fs_string_sprintf(&fullname, "%s/%s", dir_path->data, name); retval = v9fs_request(fs_ctx->private, T_MKN...
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, const char *VAR_2, FsCred *VAR_3) { int VAR_4; V9fsString fullname; v9fs_string_init(&fullname); v9fs_string_sprintf(&fullname, "%s/%s", VAR_1->data, VAR_2); VAR_4 = v9fs_request(VAR_0->private, T_MKNOD, NULL, "sd...
[ "static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,\nconst char *VAR_2, FsCred *VAR_3)\n{", "int VAR_4;", "V9fsString fullname;", "v9fs_string_init(&fullname);", "v9fs_string_sprintf(&fullname, \"%s/%s\", VAR_1->data, VAR_2);", "VAR_4 = v9fs_request(VAR_0->private, T_MKNOD, NULL, \"sdqdd\",\n&fullname, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
24,441
static bool memory_region_get_may_overlap(Object *obj, Error **errp) { MemoryRegion *mr = MEMORY_REGION(obj); return mr->may_overlap; }
false
qemu
b61359781958759317ee6fd1a45b59be0b7dbbe1
static bool memory_region_get_may_overlap(Object *obj, Error **errp) { MemoryRegion *mr = MEMORY_REGION(obj); return mr->may_overlap; }
{ "code": [], "line_no": [] }
static bool FUNC_0(Object *obj, Error **errp) { MemoryRegion *mr = MEMORY_REGION(obj); return mr->may_overlap; }
[ "static bool FUNC_0(Object *obj, Error **errp)\n{", "MemoryRegion *mr = MEMORY_REGION(obj);", "return mr->may_overlap;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
24,443
static void DBDMA_run (DBDMA_channel *ch) { int channel; for (channel = 0; channel < DBDMA_CHANNELS; channel++, ch++) { uint32_t status = be32_to_cpu(ch->regs[DBDMA_STATUS]); if (!ch->processing && (status & RUN) && (status & ACTIVE)) channel_run(ch); } }
false
qemu
ad674e53b5cce265fadafbde2c6a4f190345cd00
static void DBDMA_run (DBDMA_channel *ch) { int channel; for (channel = 0; channel < DBDMA_CHANNELS; channel++, ch++) { uint32_t status = be32_to_cpu(ch->regs[DBDMA_STATUS]); if (!ch->processing && (status & RUN) && (status & ACTIVE)) channel_run(ch); } }
{ "code": [], "line_no": [] }
static void FUNC_0 (DBDMA_channel *VAR_0) { int VAR_1; for (VAR_1 = 0; VAR_1 < DBDMA_CHANNELS; VAR_1++, VAR_0++) { uint32_t status = be32_to_cpu(VAR_0->regs[DBDMA_STATUS]); if (!VAR_0->processing && (status & RUN) && (status & ACTIVE)) channel_run(VAR_0); } ...
[ "static void FUNC_0 (DBDMA_channel *VAR_0)\n{", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < DBDMA_CHANNELS; VAR_1++, VAR_0++) {", "uint32_t status = be32_to_cpu(VAR_0->regs[DBDMA_STATUS]);", "if (!VAR_0->processing && (status & RUN) && (status & ACTIVE))\nchannel_run(VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ] ]
24,444
void helper_fstoq(CPUSPARCState *env, float32 src) { clear_float_exceptions(env); QT0 = float32_to_float128(src, &env->fp_status); check_ieee_exceptions(env); }
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
void helper_fstoq(CPUSPARCState *env, float32 src) { clear_float_exceptions(env); QT0 = float32_to_float128(src, &env->fp_status); check_ieee_exceptions(env); }
{ "code": [], "line_no": [] }
void FUNC_0(CPUSPARCState *VAR_0, float32 VAR_1) { clear_float_exceptions(VAR_0); QT0 = float32_to_float128(VAR_1, &VAR_0->fp_status); check_ieee_exceptions(VAR_0); }
[ "void FUNC_0(CPUSPARCState *VAR_0, float32 VAR_1)\n{", "clear_float_exceptions(VAR_0);", "QT0 = float32_to_float128(VAR_1, &VAR_0->fp_status);", "check_ieee_exceptions(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
24,445
static void process_incoming_migration_bh(void *opaque) { Error *local_err = NULL; MigrationIncomingState *mis = opaque; /* Make sure all file formats flush their mutable metadata. * If we get an error here, just don't restart the VM yet. */ bdrv_invalidate_cache_all(&local_err); if (!...
false
qemu
4417ab7adf1613799054be5afedf810fc2524ee8
static void process_incoming_migration_bh(void *opaque) { Error *local_err = NULL; MigrationIncomingState *mis = opaque; bdrv_invalidate_cache_all(&local_err); if (!local_err) { blk_resume_after_migration(&local_err); } if (local_err) { error_report_err(local_e...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { Error *local_err = NULL; MigrationIncomingState *mis = VAR_0; bdrv_invalidate_cache_all(&local_err); if (!local_err) { blk_resume_after_migration(&local_err); } if (local_err) { error_report_err(local_err); local_err =...
[ "static void FUNC_0(void *VAR_0)\n{", "Error *local_err = NULL;", "MigrationIncomingState *mis = VAR_0;", "bdrv_invalidate_cache_all(&local_err);", "if (!local_err) {", "blk_resume_after_migration(&local_err);", "}", "if (local_err) {", "error_report_err(local_err);", "local_err = NULL;", "autos...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 43 ], [ 55, 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], ...
24,446
int float64_lt_quiet( float64 a, float64 b STATUS_PARAM ) { flag aSign, bSign; if ( ( ( extractFloat64Exp( a ) == 0x7FF ) && extractFloat64Frac( a ) ) || ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) ) ) { if ( float64_is_signaling_nan( a ) || float64_is_sig...
false
qemu
f090c9d4ad5812fb92843d6470a1111c15190c4c
int float64_lt_quiet( float64 a, float64 b STATUS_PARAM ) { flag aSign, bSign; if ( ( ( extractFloat64Exp( a ) == 0x7FF ) && extractFloat64Frac( a ) ) || ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) ) ) { if ( float64_is_signaling_nan( a ) || float64_is_sig...
{ "code": [], "line_no": [] }
int FUNC_0( float64 VAR_0, float64 VAR_1 STATUS_PARAM ) { flag aSign, bSign; if ( ( ( extractFloat64Exp( VAR_0 ) == 0x7FF ) && extractFloat64Frac( VAR_0 ) ) || ( ( extractFloat64Exp( VAR_1 ) == 0x7FF ) && extractFloat64Frac( VAR_1 ) ) ) { if ( float64_is_signaling_nan( VAR_0 )...
[ "int FUNC_0( float64 VAR_0, float64 VAR_1 STATUS_PARAM )\n{", "flag aSign, bSign;", "if ( ( ( extractFloat64Exp( VAR_0 ) == 0x7FF ) && extractFloat64Frac( VAR_0 ) )\n|| ( ( extractFloat64Exp( VAR_1 ) == 0x7FF ) && extractFloat64Frac( VAR_1 ) )\n) {", "if ( float64_is_signaling_nan( VAR_0 ) || float64_is_si...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ] ]
24,447
static void machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); QEMUMachine *qm = data; mc->name = qm->name; mc->desc = qm->desc; mc->init = qm->init; mc->kvm_type = qm->kvm_type; mc->block_default_type = qm->block_default_type; mc->max_cpus =...
false
qemu
076b35b5a56bca57c4aa41044ed304fe9c45d6c5
static void machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); QEMUMachine *qm = data; mc->name = qm->name; mc->desc = qm->desc; mc->init = qm->init; mc->kvm_type = qm->kvm_type; mc->block_default_type = qm->block_default_type; mc->max_cpus =...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { MachineClass *mc = MACHINE_CLASS(VAR_0); QEMUMachine *qm = VAR_1; mc->name = qm->name; mc->desc = qm->desc; mc->init = qm->init; mc->kvm_type = qm->kvm_type; mc->block_default_type = qm->block_default_type; mc->max_cpus = qm-...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "MachineClass *mc = MACHINE_CLASS(VAR_0);", "QEMUMachine *qm = VAR_1;", "mc->name = qm->name;", "mc->desc = qm->desc;", "mc->init = qm->init;", "mc->kvm_type = qm->kvm_type;", "mc->block_default_type = qm->block_default_type;", "mc->max_cpus ...
[ 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 ] ]
24,449
int kvm_irqchip_add_msi_route(KVMState *s, int vector, PCIDevice *dev) { struct kvm_irq_routing_entry kroute = {}; int virq; MSIMessage msg = {0, 0}; if (dev) { msg = pci_get_msi_message(dev, vector); } if (kvm_gsi_direct_mapping()) { return kvm_arch_msi_data_to_gsi(...
false
qemu
88c725c78e87eecb061f882177c7a6a2ac1059ad
int kvm_irqchip_add_msi_route(KVMState *s, int vector, PCIDevice *dev) { struct kvm_irq_routing_entry kroute = {}; int virq; MSIMessage msg = {0, 0}; if (dev) { msg = pci_get_msi_message(dev, vector); } if (kvm_gsi_direct_mapping()) { return kvm_arch_msi_data_to_gsi(...
{ "code": [], "line_no": [] }
int FUNC_0(KVMState *VAR_0, int VAR_1, PCIDevice *VAR_2) { struct kvm_irq_routing_entry VAR_3 = {}; int VAR_4; MSIMessage msg = {0, 0}; if (VAR_2) { msg = pci_get_msi_message(VAR_2, VAR_1); } if (kvm_gsi_direct_mapping()) { return kvm_arch_msi_data_to_gsi(msg.data); ...
[ "int FUNC_0(KVMState *VAR_0, int VAR_1, PCIDevice *VAR_2)\n{", "struct kvm_irq_routing_entry VAR_3 = {};", "int VAR_4;", "MSIMessage msg = {0, 0};", "if (VAR_2) {", "msg = pci_get_msi_message(VAR_2, VAR_1);", "}", "if (kvm_gsi_direct_mapping()) {", "return kvm_arch_msi_data_to_gsi(msg.data);", "}"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
24,450
gen_intermediate_code_internal(TriCoreCPU *cpu, struct TranslationBlock *tb, int search_pc) { CPUState *cs = CPU(cpu); CPUTriCoreState *env = &cpu->env; DisasContext ctx; target_ulong pc_start; int num_insns; uint16_t *gen_opc_end; if (search_pc) { ...
false
qemu
cd42d5b23691ad73edfd6dbcfc935a960a9c5a65
gen_intermediate_code_internal(TriCoreCPU *cpu, struct TranslationBlock *tb, int search_pc) { CPUState *cs = CPU(cpu); CPUTriCoreState *env = &cpu->env; DisasContext ctx; target_ulong pc_start; int num_insns; uint16_t *gen_opc_end; if (search_pc) { ...
{ "code": [], "line_no": [] }
FUNC_0(TriCoreCPU *VAR_0, struct TranslationBlock *VAR_1, int VAR_2) { CPUState *cs = CPU(VAR_0); CPUTriCoreState *env = &VAR_0->env; DisasContext ctx; target_ulong pc_start; int VAR_3; uint16_t *gen_opc_end; if (VAR_2) { qemu_log("search pc ...
[ "FUNC_0(TriCoreCPU *VAR_0, struct TranslationBlock *VAR_1,\nint VAR_2)\n{", "CPUState *cs = CPU(VAR_0);", "CPUTriCoreState *env = &VAR_0->env;", "DisasContext ctx;", "target_ulong pc_start;", "int VAR_3;", "uint16_t *gen_opc_end;", "if (VAR_2) {", "qemu_log(\"search pc %d\\n\", VAR_2);", "}", "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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
24,451
static int raw_pread_aligned(BlockDriverState *bs, int64_t offset, uint8_t *buf, int count) { BDRVRawState *s = bs->opaque; int ret; ret = fd_open(bs); if (ret < 0) return ret; ret = pread(s->fd, buf, count, offset); if (ret == count) goto label...
false
qemu
65d21bc73bda6515fd9b4ff5b2e90454f7a0b419
static int raw_pread_aligned(BlockDriverState *bs, int64_t offset, uint8_t *buf, int count) { BDRVRawState *s = bs->opaque; int ret; ret = fd_open(bs); if (ret < 0) return ret; ret = pread(s->fd, buf, count, offset); if (ret == count) goto label...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, uint8_t *VAR_2, int VAR_3) { BDRVRawState *s = VAR_0->opaque; int VAR_4; VAR_4 = fd_open(VAR_0); if (VAR_4 < 0) return VAR_4; VAR_4 = pread(s->fd, VAR_2, VAR_3, VAR_1); if (VAR_4 == VAR_3) ...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nuint8_t *VAR_2, int VAR_3)\n{", "BDRVRawState *s = VAR_0->opaque;", "int VAR_4;", "VAR_4 = fd_open(VAR_0);", "if (VAR_4 < 0)\nreturn VAR_4;", "VAR_4 = pread(s->fd, VAR_2, VAR_3, VAR_1);", "if (VAR_4 == VAR_3)\ngoto label__raw_read__success;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23, 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51, 53, 55 ], [ 61 ...
24,452
static void tcg_out_qemu_st_slow_path (TCGContext *s, TCGLabelQemuLdst *label) { int s_bits; int ir; int opc = label->opc; int mem_index = label->mem_index; int data_reg = label->datalo_reg; int data_reg2 = label->datahi_reg; int addr_reg = label->addrlo_reg; uint8_t *raddr = la...
false
qemu
c878da3b27ceeed953c9f9a1eb002d59e9dcb4c6
static void tcg_out_qemu_st_slow_path (TCGContext *s, TCGLabelQemuLdst *label) { int s_bits; int ir; int opc = label->opc; int mem_index = label->mem_index; int data_reg = label->datalo_reg; int data_reg2 = label->datahi_reg; int addr_reg = label->addrlo_reg; uint8_t *raddr = la...
{ "code": [], "line_no": [] }
static void FUNC_0 (TCGContext *VAR_0, TCGLabelQemuLdst *VAR_1) { int VAR_2; int VAR_3; int VAR_4 = VAR_1->VAR_4; int VAR_5 = VAR_1->VAR_5; int VAR_6 = VAR_1->datalo_reg; int VAR_7 = VAR_1->datahi_reg; int VAR_8 = VAR_1->addrlo_reg; uint8_t *raddr = VAR_1->raddr; uint8_t **...
[ "static void FUNC_0 (TCGContext *VAR_0, TCGLabelQemuLdst *VAR_1)\n{", "int VAR_2;", "int VAR_3;", "int VAR_4 = VAR_1->VAR_4;", "int VAR_5 = VAR_1->VAR_5;", "int VAR_6 = VAR_1->datalo_reg;", "int VAR_7 = VAR_1->datahi_reg;", "int VAR_8 = VAR_1->addrlo_reg;", "uint8_t *raddr = VAR_1->raddr;", "uint8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47, 49 ], [ 51, 53 ], [ 55 ...
24,453
static int mpegaudio_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { MpegAudioParseContext *s = s1->priv_data; int len, ret, sr; uint...
false
FFmpeg
c96bd21227e594856f8fd0610fd213b002056383
static int mpegaudio_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { MpegAudioParseContext *s = s1->priv_data; int len, ret, sr; uint...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1, const uint8_t **VAR_2, int *VAR_3, const uint8_t *VAR_4, int VAR_5) { MpegAudioParseContext *s = VAR_0->priv_data; int VAR_6, VAR_7, VAR_8; uint32_t h...
[ "static int FUNC_0(AVCodecParserContext *VAR_0,\nAVCodecContext *VAR_1,\nconst uint8_t **VAR_2, int *VAR_3,\nconst uint8_t *VAR_4, int VAR_5)\n{", "MpegAudioParseContext *s = VAR_0->priv_data;", "int VAR_6, VAR_7, VAR_8;", "uint32_t header;", "const uint8_t *VAR_9;", "*VAR_2 = NULL;", "*VAR_3 = 0;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [...
24,454
int ff_replaygain_export_raw(AVStream *st, int32_t tg, uint32_t tp, int32_t ag, uint32_t ap) { AVReplayGain *replaygain; if (tg == INT32_MIN && ag == INT32_MIN) return 0; replaygain = (AVReplayGain*)ff_stream_new_side_data(st, AV_PKT_DATA_REPLAYGAIN, ...
false
FFmpeg
7f4ec4364bc4a73036660c1c6a3c4801db524e9e
int ff_replaygain_export_raw(AVStream *st, int32_t tg, uint32_t tp, int32_t ag, uint32_t ap) { AVReplayGain *replaygain; if (tg == INT32_MIN && ag == INT32_MIN) return 0; replaygain = (AVReplayGain*)ff_stream_new_side_data(st, AV_PKT_DATA_REPLAYGAIN, ...
{ "code": [], "line_no": [] }
int FUNC_0(AVStream *VAR_0, int32_t VAR_1, uint32_t VAR_2, int32_t VAR_3, uint32_t VAR_4) { AVReplayGain *replaygain; if (VAR_1 == INT32_MIN && VAR_3 == INT32_MIN) return 0; replaygain = (AVReplayGain*)ff_stream_new_side_data(VAR_0, AV_PKT_DATA_REPLAYGAIN, ...
[ "int FUNC_0(AVStream *VAR_0, int32_t VAR_1, uint32_t VAR_2,\nint32_t VAR_3, uint32_t VAR_4)\n{", "AVReplayGain *replaygain;", "if (VAR_1 == INT32_MIN && VAR_3 == INT32_MIN)\nreturn 0;", "replaygain = (AVReplayGain*)ff_stream_new_side_data(VAR_0, AV_PKT_DATA_REPLAYGAIN,\nsizeof(*replaygain));", "if (!replayg...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 17, 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
24,455
static void dead_tmp(TCGv tmp) { int i; num_temps--; i = num_temps; if (GET_TCGV(temps[i]) == GET_TCGV(tmp)) return; /* Shuffle this temp to the last slot. */ while (GET_TCGV(temps[i]) != GET_TCGV(tmp)) i--; while (i < num_temps) { temps[i] = temps[i + 1...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static void dead_tmp(TCGv tmp) { int i; num_temps--; i = num_temps; if (GET_TCGV(temps[i]) == GET_TCGV(tmp)) return; while (GET_TCGV(temps[i]) != GET_TCGV(tmp)) i--; while (i < num_temps) { temps[i] = temps[i + 1]; i++; } temps[i] = tm...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGv VAR_0) { int VAR_1; num_temps--; VAR_1 = num_temps; if (GET_TCGV(temps[VAR_1]) == GET_TCGV(VAR_0)) return; while (GET_TCGV(temps[VAR_1]) != GET_TCGV(VAR_0)) VAR_1--; while (VAR_1 < num_temps) { temps[VAR_1] = temps[VAR_1 + 1]; ...
[ "static void FUNC_0(TCGv VAR_0)\n{", "int VAR_1;", "num_temps--;", "VAR_1 = num_temps;", "if (GET_TCGV(temps[VAR_1]) == GET_TCGV(VAR_0))\nreturn;", "while (GET_TCGV(temps[VAR_1]) != GET_TCGV(VAR_0))\nVAR_1--;", "while (VAR_1 < num_temps) {", "temps[VAR_1] = temps[VAR_1 + 1];", "VAR_1++;", "}", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
24,456
pvscsi_update_irq_status(PVSCSIState *s) { PCIDevice *d = PCI_DEVICE(s); bool should_raise = s->reg_interrupt_enabled & s->reg_interrupt_status; trace_pvscsi_update_irq_level(should_raise, s->reg_interrupt_enabled, s->reg_interrupt_status); if (s->msi_used && ...
false
qemu
269fe4c3ab0cf29329317eb868f8ec90ac761b41
pvscsi_update_irq_status(PVSCSIState *s) { PCIDevice *d = PCI_DEVICE(s); bool should_raise = s->reg_interrupt_enabled & s->reg_interrupt_status; trace_pvscsi_update_irq_level(should_raise, s->reg_interrupt_enabled, s->reg_interrupt_status); if (s->msi_used && ...
{ "code": [], "line_no": [] }
FUNC_0(PVSCSIState *VAR_0) { PCIDevice *d = PCI_DEVICE(VAR_0); bool should_raise = VAR_0->reg_interrupt_enabled & VAR_0->reg_interrupt_status; trace_pvscsi_update_irq_level(should_raise, VAR_0->reg_interrupt_enabled, VAR_0->reg_interrupt_status); if (VAR_0->ms...
[ "FUNC_0(PVSCSIState *VAR_0)\n{", "PCIDevice *d = PCI_DEVICE(VAR_0);", "bool should_raise = VAR_0->reg_interrupt_enabled & VAR_0->reg_interrupt_status;", "trace_pvscsi_update_irq_level(should_raise, VAR_0->reg_interrupt_enabled,\nVAR_0->reg_interrupt_status);", "if (VAR_0->msi_used && msi_enabled(d)) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
24,457
static inline void check_io(CPUX86State *env, int addr, int size) { int io_offset, val, mask; /* TSS must be a valid 32 bit one */ if (!(env->tr.flags & DESC_P_MASK) || ((env->tr.flags >> DESC_TYPE_SHIFT) & 0xf) != 9 || env->tr.limit < 103) { goto fail; } io_offset...
false
qemu
81cf8d8adc64203567e03326c13ea4abec9fe5df
static inline void check_io(CPUX86State *env, int addr, int size) { int io_offset, val, mask; if (!(env->tr.flags & DESC_P_MASK) || ((env->tr.flags >> DESC_TYPE_SHIFT) & 0xf) != 9 || env->tr.limit < 103) { goto fail; } io_offset = cpu_lduw_kernel(env, env->tr.base...
{ "code": [], "line_no": [] }
static inline void FUNC_0(CPUX86State *VAR_0, int VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5; if (!(VAR_0->tr.flags & DESC_P_MASK) || ((VAR_0->tr.flags >> DESC_TYPE_SHIFT) & 0xf) != 9 || VAR_0->tr.limit < 103) { goto fail; } VAR_3 = cpu_lduw_kernel(VAR_0, VAR_0->...
[ "static inline void FUNC_0(CPUX86State *VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5;", "if (!(VAR_0->tr.flags & DESC_P_MASK) ||\n((VAR_0->tr.flags >> DESC_TYPE_SHIFT) & 0xf) != 9 ||\nVAR_0->tr.limit < 103) {", "goto fail;", "}", "VAR_3 = cpu_lduw_kernel(VAR_0, VAR_0->tr.base + 0x66);", "V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ] ]
24,458
void page_set_flags(target_ulong start, target_ulong end, int flags) { PageDesc *p; target_ulong addr; /* mmap_lock should already be held. */ start = start & TARGET_PAGE_MASK; end = TARGET_PAGE_ALIGN(end); if (flags & PAGE_WRITE) flags |= PAGE_WRITE_ORG; for(addr = start...
false
qemu
376a790970de7e84170ee9360b6ff53ecfa4a1be
void page_set_flags(target_ulong start, target_ulong end, int flags) { PageDesc *p; target_ulong addr; start = start & TARGET_PAGE_MASK; end = TARGET_PAGE_ALIGN(end); if (flags & PAGE_WRITE) flags |= PAGE_WRITE_ORG; for(addr = start; addr < end; addr += TARGET_PAGE_SIZE) ...
{ "code": [], "line_no": [] }
void FUNC_0(target_ulong VAR_0, target_ulong VAR_1, int VAR_2) { PageDesc *p; target_ulong addr; VAR_0 = VAR_0 & TARGET_PAGE_MASK; VAR_1 = TARGET_PAGE_ALIGN(VAR_1); if (VAR_2 & PAGE_WRITE) VAR_2 |= PAGE_WRITE_ORG; for(addr = VAR_0; addr < VAR_1; addr += TARGET_PAGE_SIZE) ...
[ "void FUNC_0(target_ulong VAR_0, target_ulong VAR_1, int VAR_2)\n{", "PageDesc *p;", "target_ulong addr;", "VAR_0 = VAR_0 & TARGET_PAGE_MASK;", "VAR_1 = TARGET_PAGE_ALIGN(VAR_1);", "if (VAR_2 & PAGE_WRITE)\nVAR_2 |= PAGE_WRITE_ORG;", "for(addr = VAR_0; addr < VAR_1; addr += TARGET_PAGE_SIZE) {", "p = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 29, 31 ], [ 37, 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ] ]
24,459
static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size, int parse_extradata) { AVCodecContext *const avctx = h->avctx; H264SliceContext *sl; int buf_index; unsigned context_count; int next_avc; int nals_needed = 0; ///< number of NALs tha...
true
FFmpeg
c4b2017ba66e1623da9f527704c61c86a6e74844
static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size, int parse_extradata) { AVCodecContext *const avctx = h->avctx; H264SliceContext *sl; int buf_index; unsigned context_count; int next_avc; int nals_needed = 0; int nal_index; ...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3) { AVCodecContext *const avctx = VAR_0->avctx; H264SliceContext *sl; int VAR_4; unsigned VAR_5; int VAR_6; int VAR_7 = 0; int VAR_8; int VAR_9=0; int VAR_10 = 0; ...
[ "static int FUNC_0(H264Context *VAR_0, const uint8_t *VAR_1, int VAR_2,\nint VAR_3)\n{", "AVCodecContext *const avctx = VAR_0->avctx;", "H264SliceContext *sl;", "int VAR_4;", "unsigned VAR_5;", "int VAR_6;", "int VAR_7 = 0;", "int VAR_8;", "int VAR_9=0;", "int VAR_10 = 0;", "VAR_0->nal_unit_type...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 50 ], [...
24,460
static int check_tag(AVIOContext *s, int offset, unsigned int len) { char tag[4]; if (len > 4 || avio_seek(s, offset, SEEK_SET) < 0 || avio_read(s, tag, len) < len) return -1; else if (!AV_RB32(tag) || is_tag(tag, len)) return 1; return 0; }
true
FFmpeg
0382c94f13b4b20456b7259e90b170dc020419b8
static int check_tag(AVIOContext *s, int offset, unsigned int len) { char tag[4]; if (len > 4 || avio_seek(s, offset, SEEK_SET) < 0 || avio_read(s, tag, len) < len) return -1; else if (!AV_RB32(tag) || is_tag(tag, len)) return 1; return 0; }
{ "code": [ " avio_read(s, tag, len) < len)" ], "line_no": [ 13 ] }
static int FUNC_0(AVIOContext *VAR_0, int VAR_1, unsigned int VAR_2) { char VAR_3[4]; if (VAR_2 > 4 || avio_seek(VAR_0, VAR_1, SEEK_SET) < 0 || avio_read(VAR_0, VAR_3, VAR_2) < VAR_2) return -1; else if (!AV_RB32(VAR_3) || is_tag(VAR_3, VAR_2)) return 1; retu...
[ "static int FUNC_0(AVIOContext *VAR_0, int VAR_1, unsigned int VAR_2)\n{", "char VAR_3[4];", "if (VAR_2 > 4 ||\navio_seek(VAR_0, VAR_1, SEEK_SET) < 0 ||\navio_read(VAR_0, VAR_3, VAR_2) < VAR_2)\nreturn -1;", "else if (!AV_RB32(VAR_3) || is_tag(VAR_3, VAR_2))\nreturn 1;", "return 0;", "}" ]
[ 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13, 15 ], [ 17, 19 ], [ 23 ], [ 25 ] ]
24,461
static void fw_cfg_bootsplash(FWCfgState *s) { int boot_splash_time = -1; const char *boot_splash_filename = NULL; char *p; char *filename, *file_data; int file_size; int file_type = -1; const char *temp; /* get user configuration */ QemuOptsList *plist = qemu_find_opts("...
true
qemu
d09acb9b5ef0bb4fa94d3d459919a6ebaf8804bc
static void fw_cfg_bootsplash(FWCfgState *s) { int boot_splash_time = -1; const char *boot_splash_filename = NULL; char *p; char *filename, *file_data; int file_size; int file_type = -1; const char *temp; QemuOptsList *plist = qemu_find_opts("boot-opts"); QemuOpts *...
{ "code": [ " int file_size;" ], "line_no": [ 13 ] }
static void FUNC_0(FWCfgState *VAR_0) { int VAR_1 = -1; const char *VAR_2 = NULL; char *VAR_3; char *VAR_4, *VAR_5; int VAR_6; int VAR_7 = -1; const char *VAR_8; QemuOptsList *plist = qemu_find_opts("boot-opts"); QemuOpts *opts = QTAILQ_FIRST(&plist->head); if ...
[ "static void FUNC_0(FWCfgState *VAR_0)\n{", "int VAR_1 = -1;", "const char *VAR_2 = NULL;", "char *VAR_3;", "char *VAR_4, *VAR_5;", "int VAR_6;", "int VAR_7 = -1;", "const char *VAR_8;", "QemuOptsList *plist = qemu_find_opts(\"boot-opts\");", "QemuOpts *opts = QTAILQ_FIRST(&plist->head);", "if (...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
24,462
static ssize_t handle_aiocb_rw(RawPosixAIOData *aiocb) { ssize_t nbytes; char *buf; if (!(aiocb->aio_type & QEMU_AIO_MISALIGNED)) { /* * If there is just a single buffer, and it is properly aligned * we can just use plain pread/pwrite without any problems. */ ...
true
qemu
50d4a858e62b1d864227d13f07d2c79c118d046a
static ssize_t handle_aiocb_rw(RawPosixAIOData *aiocb) { ssize_t nbytes; char *buf; if (!(aiocb->aio_type & QEMU_AIO_MISALIGNED)) { if (aiocb->aio_niov == 1) { return handle_aiocb_rw_linear(aiocb, aiocb->aio_iov->iov_base); } ...
{ "code": [ " buf = qemu_blockalign(aiocb->bs, aiocb->aio_nbytes);" ], "line_no": [ 79 ] }
static ssize_t FUNC_0(RawPosixAIOData *aiocb) { ssize_t nbytes; char *VAR_0; if (!(aiocb->aio_type & QEMU_AIO_MISALIGNED)) { if (aiocb->aio_niov == 1) { return handle_aiocb_rw_linear(aiocb, aiocb->aio_iov->iov_base); } if (pr...
[ "static ssize_t FUNC_0(RawPosixAIOData *aiocb)\n{", "ssize_t nbytes;", "char *VAR_0;", "if (!(aiocb->aio_type & QEMU_AIO_MISALIGNED)) {", "if (aiocb->aio_niov == 1) {", "return handle_aiocb_rw_linear(aiocb, aiocb->aio_iov->iov_base);", "}", "if (preadv_present) {", "nbytes = handle_aiocb_rw_vector(a...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 21 ], [ 23 ], [ 25 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 67 ], [ 79 ], [ 81 ], [ 83 ], [ 85 ], ...
24,463
static inline void set_txint(ChannelState *s) { s->txint = 1; if (!s->rxint_under_svc) { s->txint_under_svc = 1; if (s->chn == chn_a) { s->rregs[R_INTR] |= INTR_TXINTA; if (s->wregs[W_MINTR] & MINTR_STATUSHI) s->otherchn->rregs[R_IVEC] = IVEC_HITXI...
true
qemu
f53671c054ba0b5d5b10e2a7294786fa2f73479e
static inline void set_txint(ChannelState *s) { s->txint = 1; if (!s->rxint_under_svc) { s->txint_under_svc = 1; if (s->chn == chn_a) { s->rregs[R_INTR] |= INTR_TXINTA; if (s->wregs[W_MINTR] & MINTR_STATUSHI) s->otherchn->rregs[R_IVEC] = IVEC_HITXI...
{ "code": [ " s->rregs[R_INTR] |= INTR_TXINTA;", " s->otherchn->rregs[R_INTR] |= INTR_TXINTB;" ], "line_no": [ 13, 27 ] }
static inline void FUNC_0(ChannelState *VAR_0) { VAR_0->txint = 1; if (!VAR_0->rxint_under_svc) { VAR_0->txint_under_svc = 1; if (VAR_0->chn == chn_a) { VAR_0->rregs[R_INTR] |= INTR_TXINTA; if (VAR_0->wregs[W_MINTR] & MINTR_STATUSHI) VAR_0->otherch...
[ "static inline void FUNC_0(ChannelState *VAR_0)\n{", "VAR_0->txint = 1;", "if (!VAR_0->rxint_under_svc) {", "VAR_0->txint_under_svc = 1;", "if (VAR_0->chn == chn_a) {", "VAR_0->rregs[R_INTR] |= INTR_TXINTA;", "if (VAR_0->wregs[W_MINTR] & MINTR_STATUSHI)\nVAR_0->otherchn->rregs[R_IVEC] = IVEC_HITXINTA;",...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
24,464
static int rm_probe(AVProbeData *p) { /* check file header */ if (p->buf_size <= 32) return 0; if ((p->buf[0] == '.' && p->buf[1] == 'R' && p->buf[2] == 'M' && p->buf[3] == 'F' && p->buf[4] == 0 && p->buf[5] == 0) || (p->buf[0] == '.' && p->buf[1] == 'r' && ...
false
FFmpeg
87e8788680e16c51f6048af26f3f7830c35207a5
static int rm_probe(AVProbeData *p) { if (p->buf_size <= 32) return 0; if ((p->buf[0] == '.' && p->buf[1] == 'R' && p->buf[2] == 'M' && p->buf[3] == 'F' && p->buf[4] == 0 && p->buf[5] == 0) || (p->buf[0] == '.' && p->buf[1] == 'r' && p->buf[2] == 'a' && p...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { if (VAR_0->buf_size <= 32) return 0; if ((VAR_0->buf[0] == '.' && VAR_0->buf[1] == 'R' && VAR_0->buf[2] == 'M' && VAR_0->buf[3] == 'F' && VAR_0->buf[4] == 0 && VAR_0->buf[5] == 0) || (VAR_0->buf[0] == '.' && VAR_0->buf[1] == ...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if (VAR_0->buf_size <= 32)\nreturn 0;", "if ((VAR_0->buf[0] == '.' && VAR_0->buf[1] == 'R' &&\nVAR_0->buf[2] == 'M' && VAR_0->buf[3] == 'F' &&\nVAR_0->buf[4] == 0 && VAR_0->buf[5] == 0) ||\n(VAR_0->buf[0] == '.' && VAR_0->buf[1] == 'r' &&\nVAR_0->buf[2] == 'a' && VAR...
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7, 9 ], [ 11, 13, 15, 17, 19, 21 ], [ 23, 25 ], [ 27 ] ]
24,465
static int read_sm_data(AVFormatContext *s, AVIOContext *bc, AVPacket *pkt, int is_meta, int64_t maxpos) { int count = ffio_read_varlen(bc); int skip_start = 0; int skip_end = 0; int channels = 0; int64_t channel_layout = 0; int sample_rate = 0; int width = 0; int height = 0; ...
false
FFmpeg
bb23a15df507440deb0dcf25099d321d0f73dc28
static int read_sm_data(AVFormatContext *s, AVIOContext *bc, AVPacket *pkt, int is_meta, int64_t maxpos) { int count = ffio_read_varlen(bc); int skip_start = 0; int skip_end = 0; int channels = 0; int64_t channel_layout = 0; int sample_rate = 0; int width = 0; int height = 0; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, AVPacket *VAR_2, int VAR_3, int64_t VAR_4) { int VAR_5 = ffio_read_varlen(VAR_1); int VAR_6 = 0; int VAR_7 = 0; int VAR_8 = 0; int64_t channel_layout = 0; int VAR_9 = 0; int VAR_10 = 0; int VAR_11 = 0; int VAR_12...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, AVPacket *VAR_2, int VAR_3, int64_t VAR_4)\n{", "int VAR_5 = ffio_read_varlen(VAR_1);", "int VAR_6 = 0;", "int VAR_7 = 0;", "int VAR_8 = 0;", "int64_t channel_layout = 0;", "int VAR_9 = 0;", "int VAR_10 = 0;", "int VAR_11 = 0;", "int 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [...
24,466
static FFPsyWindowInfo psy_lame_window(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel]; int grouping = 0; int uselo...
false
FFmpeg
8005b6de4f88c9e3739a3a4ceda4288804788df9
static FFPsyWindowInfo psy_lame_window(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel]; int grouping = 0; int uselo...
{ "code": [], "line_no": [] }
static FFPsyWindowInfo FUNC_0(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type) { AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data; AacPsyChannel *pch = &pctx->ch[channel]; int VAR_0 = 0; int VAR_1 = 1; i...
[ "static FFPsyWindowInfo FUNC_0(FFPsyContext *ctx, const float *audio,\nconst float *la, int channel, int prev_type)\n{", "AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;", "AacPsyChannel *pch = &pctx->ch[channel];", "int VAR_0 = 0;", "int VAR_1 = 1;", "int VAR_2[AAC_NUM_BLOCKS_SHORT + 1]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 51 ], [...
24,467
static inline void RENAME(yuvPlanartoyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride, long vertLumPerChroma) { long y; const long chromWidth= width>>1; for(y=0; y<height; y++) { #ifdef HAVE_MMX //...
false
FFmpeg
4bff9ef9d0781c4de228bf1f85634d2706fc589b
static inline void RENAME(yuvPlanartoyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride, long vertLumPerChroma) { long y; const long chromWidth= width>>1; for(y=0; y<height; y++) { #ifdef HAVE_MMX ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(yuvPlanartoyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride, long vertLumPerChroma) { long VAR_0; const long VAR_1= width>>1; for(VAR_0=0; VAR_0<height; VAR_0++) { #ifdef H...
[ "static inline void FUNC_0(yuvPlanartoyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,\nlong width, long height,\nlong lumStride, long chromStride, long dstStride, long vertLumPerChroma)\n{", "long VAR_0;", "const long VAR_1= width>>1;", "for(VAR_0=0; VAR_0<height; VAR_0++)",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 47, 49, 51, 53, 55, 57, 59, 61, 65, 67, 69, 71, 75, 77,...
24,468
static int ass_get_duration(const uint8_t *p) { int sh, sm, ss, sc, eh, em, es, ec; uint64_t start, end; if (sscanf(p, "%*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d", &sh, &sm, &ss, &sc, &eh, &em, &es, &ec) != 8) return 0; start = 3600000 * sh + 60000 * sm + 1000 * ss + 10 * sc; ...
false
FFmpeg
69c1fe7c9c9bc85eebfc02c6a19caf7e88cd74ff
static int ass_get_duration(const uint8_t *p) { int sh, sm, ss, sc, eh, em, es, ec; uint64_t start, end; if (sscanf(p, "%*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d", &sh, &sm, &ss, &sc, &eh, &em, &es, &ec) != 8) return 0; start = 3600000 * sh + 60000 * sm + 1000 * ss + 10 * sc; ...
{ "code": [], "line_no": [] }
static int FUNC_0(const uint8_t *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; uint64_t start, end; if (sscanf(VAR_0, "%*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d", &VAR_1, &VAR_2, &VAR_3, &VAR_4, &VAR_5, &VAR_6, &VAR_7, &VAR_8) != 8) return 0; start = 36000...
[ "static int FUNC_0(const uint8_t *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "uint64_t start, end;", "if (sscanf(VAR_0, \"%*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d\",\n&VAR_1, &VAR_2, &VAR_3, &VAR_4, &VAR_5, &VAR_6, &VAR_7, &VAR_8) != 8)\nreturn 0;", "start = 3600000 * VAR_1 + 60000...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
24,470
static inline abi_long host_to_target_cmsg(struct target_msghdr *target_msgh, struct msghdr *msgh) { struct cmsghdr *cmsg = CMSG_FIRSTHDR(msgh); abi_long msg_controllen; abi_ulong target_cmsg_addr; struct target_cmsghdr *target_cmsg, *target_cmsg_start; ...
true
qemu
7174970a94df10ee84143edc7c94a2472d654604
static inline abi_long host_to_target_cmsg(struct target_msghdr *target_msgh, struct msghdr *msgh) { struct cmsghdr *cmsg = CMSG_FIRSTHDR(msgh); abi_long msg_controllen; abi_ulong target_cmsg_addr; struct target_cmsghdr *target_cmsg, *target_cmsg_start; ...
{ "code": [ " if (msg_controllen < sizeof(struct cmsghdr)) {", " tgt_len = TARGET_CMSG_LEN(len);", " if (msg_controllen < tgt_len) {", " tgt_len = msg_controllen;", " target_cmsg->cmsg_len = tswapal(tgt_len);", " tgt_space = TARGET_CMSG_SPACE(len);...
static inline abi_long FUNC_0(struct target_msghdr *target_msgh, struct msghdr *msgh) { struct cmsghdr *VAR_0 = CMSG_FIRSTHDR(msgh); abi_long msg_controllen; abi_ulong target_cmsg_addr; struct target_cmsghdr *VAR_1, *VAR_2; socklen_t space = 0; ...
[ "static inline abi_long FUNC_0(struct target_msghdr *target_msgh,\nstruct msghdr *msgh)\n{", "struct cmsghdr *VAR_0 = CMSG_FIRSTHDR(msgh);", "abi_long msg_controllen;", "abi_ulong target_cmsg_addr;", "struct target_cmsghdr *VAR_1, *VAR_2;", "socklen_t space = 0;", "msg_controllen = tswapal(target_msgh->...
[ 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 63 ], [...
24,473
static void ib700_pc_init(PCIBus *unused) { register_savevm("ib700_wdt", -1, 0, ib700_save, ib700_load, NULL); register_ioport_write(0x441, 2, 1, ib700_write_disable_reg, NULL); register_ioport_write(0x443, 2, 1, ib700_write_enable_reg, NULL); }
true
qemu
09aaa1602f9381c0e0fb539390b1793e51bdfc7b
static void ib700_pc_init(PCIBus *unused) { register_savevm("ib700_wdt", -1, 0, ib700_save, ib700_load, NULL); register_ioport_write(0x441, 2, 1, ib700_write_disable_reg, NULL); register_ioport_write(0x443, 2, 1, ib700_write_enable_reg, NULL); }
{ "code": [ "static void ib700_pc_init(PCIBus *unused)" ], "line_no": [ 1 ] }
static void FUNC_0(PCIBus *VAR_0) { register_savevm("ib700_wdt", -1, 0, ib700_save, ib700_load, NULL); register_ioport_write(0x441, 2, 1, ib700_write_disable_reg, NULL); register_ioport_write(0x443, 2, 1, ib700_write_enable_reg, NULL); }
[ "static void FUNC_0(PCIBus *VAR_0)\n{", "register_savevm(\"ib700_wdt\", -1, 0, ib700_save, ib700_load, NULL);", "register_ioport_write(0x441, 2, 1, ib700_write_disable_reg, NULL);", "register_ioport_write(0x443, 2, 1, ib700_write_enable_reg, NULL);", "}" ]
[ 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
24,474
static int vscsi_srp_indirect_data(VSCSIState *s, vscsi_req *req, uint8_t *buf, uint32_t len) { struct srp_direct_buf *td = &req->ind_desc->table_desc; struct srp_direct_buf *md = req->cur_desc; int rc = 0; uint32_t llen, total = 0; dprintf("VSCSI: indirec...
true
qemu
ad0ebb91cd8b5fdc4a583b03645677771f420a46
static int vscsi_srp_indirect_data(VSCSIState *s, vscsi_req *req, uint8_t *buf, uint32_t len) { struct srp_direct_buf *td = &req->ind_desc->table_desc; struct srp_direct_buf *md = req->cur_desc; int rc = 0; uint32_t llen, total = 0; dprintf("VSCSI: indirec...
{ "code": [ " rc = spapr_tce_dma_read(&s->vdev, md->va, buf, llen);", " rc = spapr_tce_dma_write(&s->vdev, md->va, buf, llen);", " rc = spapr_tce_dma_read(&s->vdev, td->va, md,", " dprintf(\"VSCSI: tce_dma_read -> %d reading ext_desc\\n\", rc);", " ...
static int FUNC_0(VSCSIState *VAR_0, vscsi_req *VAR_1, uint8_t *VAR_2, uint32_t VAR_3) { struct srp_direct_buf *VAR_4 = &VAR_1->ind_desc->table_desc; struct srp_direct_buf *VAR_5 = VAR_1->cur_desc; int VAR_6 = 0; uint32_t llen, total = 0; dprintf("VSCSI: i...
[ "static int FUNC_0(VSCSIState *VAR_0, vscsi_req *VAR_1,\nuint8_t *VAR_2, uint32_t VAR_3)\n{", "struct srp_direct_buf *VAR_4 = &VAR_1->ind_desc->table_desc;", "struct srp_direct_buf *VAR_5 = VAR_1->cur_desc;", "int VAR_6 = 0;", "uint32_t llen, total = 0;", "dprintf(\"VSCSI: indirect segment 0x%x bytes, VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ...
24,475
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { BinkAudioContext *s = avctx->priv_data; AVFrame *frame = data; GetBitContext *gb = &s->gb; int ret, consumed = 0; if (!get_bits_left(gb)) { uint8_t *buf; ...
true
FFmpeg
07728a111583be6865b7ce2adea705af9d207588
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { BinkAudioContext *s = avctx->priv_data; AVFrame *frame = data; GetBitContext *gb = &s->gb; int ret, consumed = 0; if (!get_bits_left(gb)) { uint8_t *buf; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { BinkAudioContext *s = VAR_0->priv_data; AVFrame *frame = VAR_1; GetBitContext *gb = &s->gb; int VAR_4, VAR_5 = 0; if (!get_bits_left(gb)) { uint8_t *buf; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "BinkAudioContext *s = VAR_0->priv_data;", "AVFrame *frame = VAR_1;", "GetBitContext *gb = &s->gb;", "int VAR_4, VAR_5 = 0;", "if (!get_bits_left(gb)) {", "uint8_t *buf;", "if (!VAR_3->size) {", "*VAR_2 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 46 ], [ 48 ...
24,476
static int decode_cabac_intra_mb_type(H264Context *h, int ctx_base, int intra_slice) { uint8_t *state= &h->cabac_state[ctx_base]; int mb_type; if(intra_slice){ MpegEncContext * const s = &h->s; const int mba_xy = h->left_mb_xy[0]; const int mbb_xy = h->top_mb_xy; int...
false
FFmpeg
5806e8cd1f60c67d936fa44dd4421428489503f5
static int decode_cabac_intra_mb_type(H264Context *h, int ctx_base, int intra_slice) { uint8_t *state= &h->cabac_state[ctx_base]; int mb_type; if(intra_slice){ MpegEncContext * const s = &h->s; const int mba_xy = h->left_mb_xy[0]; const int mbb_xy = h->top_mb_xy; int...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0, int VAR_1, int VAR_2) { uint8_t *state= &VAR_0->cabac_state[VAR_1]; int VAR_3; if(VAR_2){ MpegEncContext * const s = &VAR_0->s; const int VAR_4 = VAR_0->left_mb_xy[0]; const int VAR_5 = VAR_0->top_mb_xy; int VAR_6=0; if(...
[ "static int FUNC_0(H264Context *VAR_0, int VAR_1, int VAR_2) {", "uint8_t *state= &VAR_0->cabac_state[VAR_1];", "int VAR_3;", "if(VAR_2){", "MpegEncContext * const s = &VAR_0->s;", "const int VAR_4 = VAR_0->left_mb_xy[0];", "const int VAR_5 = VAR_0->top_mb_xy;", "int VAR_6=0;", "if( VAR_0->slice_tab...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 49 ], [ 51...
24,477
static int decode_p_picture_header(VC9Context *v) { /* INTERFRM, FRMCNT, RANGEREDFRM read in caller */ int lowquant, pqindex; pqindex = get_bits(&v->gb, 5); if (v->quantizer_mode == QUANT_FRAME_IMPLICIT) v->pq = pquant_table[0][pqindex]; else { v->pq = pquant_table[v->...
false
FFmpeg
e5540b3fd30367ce3cc33b2f34a04b660dbc4b38
static int decode_p_picture_header(VC9Context *v) { int lowquant, pqindex; pqindex = get_bits(&v->gb, 5); if (v->quantizer_mode == QUANT_FRAME_IMPLICIT) v->pq = pquant_table[0][pqindex]; else { v->pq = pquant_table[v->quantizer_mode-1][pqindex]; } if (pqinde...
{ "code": [], "line_no": [] }
static int FUNC_0(VC9Context *VAR_0) { int VAR_1, VAR_2; VAR_2 = get_bits(&VAR_0->gb, 5); if (VAR_0->quantizer_mode == QUANT_FRAME_IMPLICIT) VAR_0->pq = pquant_table[0][VAR_2]; else { VAR_0->pq = pquant_table[VAR_0->quantizer_mode-1][VAR_2]; } if (VAR_2 < 9)...
[ "static int FUNC_0(VC9Context *VAR_0)\n{", "int VAR_1, VAR_2;", "VAR_2 = get_bits(&VAR_0->gb, 5);", "if (VAR_0->quantizer_mode == QUANT_FRAME_IMPLICIT)\nVAR_0->pq = pquant_table[0][VAR_2];", "else\n{", "VAR_0->pq = pquant_table[VAR_0->quantizer_mode-1][VAR_2];", "}", "if (VAR_2 < 9) VAR_0->halfpq = ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45 ], [ 47, 49, 51 ], [ 5...
24,479
void ff_avg_h264_qpel8_mc12_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_midh_qrt_and_aver_dst_8w_msa(src - (2 * stride) - 2, stride, dst, stride, 8, 0); }
false
FFmpeg
72dbc610be3272ba36603f78a39cc2d2d8fe0cc3
void ff_avg_h264_qpel8_mc12_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_midh_qrt_and_aver_dst_8w_msa(src - (2 * stride) - 2, stride, dst, stride, 8, 0); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_midh_qrt_and_aver_dst_8w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 8, 0); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_midh_qrt_and_aver_dst_8w_msa(VAR_1 - (2 * VAR_2) - 2,\nVAR_2, VAR_0, VAR_2, 8, 0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
24,480
static void sbr_hf_assemble(float Y[2][38][64][2], const float X_high[64][40][2], SpectralBandReplication *sbr, SBRData *ch_data, const int e_a[2]) { int e, i, j, m; const int h_SL = 4 * !sbr->bs_smoothing_mode; const int kx = sbr->kx[1]; co...
false
FFmpeg
aac46e088d67a390489af686b846dea4987d8ffb
static void sbr_hf_assemble(float Y[2][38][64][2], const float X_high[64][40][2], SpectralBandReplication *sbr, SBRData *ch_data, const int e_a[2]) { int e, i, j, m; const int h_SL = 4 * !sbr->bs_smoothing_mode; const int kx = sbr->kx[1]; co...
{ "code": [], "line_no": [] }
static void FUNC_0(float VAR_0[2][38][64][2], const float VAR_1[64][40][2], SpectralBandReplication *VAR_2, SBRData *VAR_3, const int VAR_4[2]) { int VAR_5, VAR_6, VAR_7, VAR_8; const int VAR_9 = 4 * !VAR_2->bs_smoothing_mode; const int VAR_10 = ...
[ "static void FUNC_0(float VAR_0[2][38][64][2], const float VAR_1[64][40][2],\nSpectralBandReplication *VAR_2, SBRData *VAR_3,\nconst int VAR_4[2])\n{", "int VAR_5, VAR_6, VAR_7, VAR_8;", "const int VAR_9 = 4 * !VAR_2->bs_smoothing_mode;", "const int VAR_10 = VAR_2->VAR_10[1];", "const int VAR_11 = VAR_2->VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [...
24,481
int ff_init_poc(H264Context *h, int pic_field_poc[2], int *pic_poc) { const SPS *sps = h->ps.sps; const int max_frame_num = 1 << sps->log2_max_frame_num; int field_poc[2]; h->frame_num_offset = h->prev_frame_num_offset; if (h->frame_num < h->prev_frame_num) h->frame_num_offset += ma...
false
FFmpeg
c8dcff0cdb17d0aa03ac729eba12d1a20f1f59c8
int ff_init_poc(H264Context *h, int pic_field_poc[2], int *pic_poc) { const SPS *sps = h->ps.sps; const int max_frame_num = 1 << sps->log2_max_frame_num; int field_poc[2]; h->frame_num_offset = h->prev_frame_num_offset; if (h->frame_num < h->prev_frame_num) h->frame_num_offset += ma...
{ "code": [], "line_no": [] }
int FUNC_0(H264Context *VAR_0, int VAR_1[2], int *VAR_2) { const SPS *VAR_3 = VAR_0->ps.VAR_3; const int VAR_4 = 1 << VAR_3->log2_max_frame_num; int VAR_5[2]; VAR_0->frame_num_offset = VAR_0->prev_frame_num_offset; if (VAR_0->frame_num < VAR_0->prev_frame_num) VAR_0->frame_num_offse...
[ "int FUNC_0(H264Context *VAR_0, int VAR_1[2], int *VAR_2)\n{", "const SPS *VAR_3 = VAR_0->ps.VAR_3;", "const int VAR_4 = 1 << VAR_3->log2_max_frame_num;", "int VAR_5[2];", "VAR_0->frame_num_offset = VAR_0->prev_frame_num_offset;", "if (VAR_0->frame_num < VAR_0->prev_frame_num)\nVAR_0->frame_num_offset += ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 27, 29, 31 ], [ 33, 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ...
24,482
static void mirror_start_job(BlockDriverState *bs, BlockDriverState *target, int64_t speed, int64_t granularity, int64_t buf_size, BlockdevOnError on_source_error, BlockdevOnError on_target_error, ...
true
qemu
b8afb520e479e693c227aa39c2fb7670743e104f
static void mirror_start_job(BlockDriverState *bs, BlockDriverState *target, int64_t speed, int64_t granularity, int64_t buf_size, BlockdevOnError on_source_error, BlockdevOnError on_target_error, ...
{ "code": [ " s->dirty_bitmap = bdrv_create_dirty_bitmap(bs, granularity);" ], "line_no": [ 95 ] }
static void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1, int64_t VAR_2, int64_t VAR_3, int64_t VAR_4, BlockdevOnError VAR_5, BlockdevOnError VAR_6, BlockDriverComp...
[ "static void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,\nint64_t VAR_2, int64_t VAR_3,\nint64_t VAR_4,\nBlockdevOnError VAR_5,\nBlockdevOnError VAR_6,\nBlockDriverCompletionFunc *VAR_7,\nvoid *VAR_8, Error **VAR_9,\nconst BlockJobDriver *VAR_10,\nbool VAR_11, BlockDriverState *VAR_12)\n{", "MirrorBl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19 ], [ 21 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 53, 55, 57 ], [ 59 ], [ 61 ...
24,487
static int sdp_parse_rtpmap(AVFormatContext *s, AVStream *st, RTSPStream *rtsp_st, int payload_type, const char *p) { AVCodecContext *codec = st->codec; char buf[256]; int i; AVCodec *c; const char *c_name; /* See if we can handl...
true
FFmpeg
078d43e23a7a3d64aafee8a58b380d3e139b3020
static int sdp_parse_rtpmap(AVFormatContext *s, AVStream *st, RTSPStream *rtsp_st, int payload_type, const char *p) { AVCodecContext *codec = st->codec; char buf[256]; int i; AVCodec *c; const char *c_name; get_word_s...
{ "code": [ " if (rtsp_st->dynamic_handler && rtsp_st->dynamic_handler->init)", " rtsp_st->dynamic_handler->init(s, st->index,", " rtsp_st->dynamic_protocol_context);" ], "line_no": [ 135, 137, 139 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, RTSPStream *VAR_2, int VAR_3, const char *VAR_4) { AVCodecContext *codec = VAR_1->codec; char VAR_5[256]; int VAR_6; AVCodec *c; const char *VAR_7; get_word_s...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVStream *VAR_1, RTSPStream *VAR_2,\nint VAR_3, const char *VAR_4)\n{", "AVCodecContext *codec = VAR_1->codec;", "char VAR_5[256];", "int VAR_6;", "AVCodec *c;", "const char *VAR_7;", "get_word_sep(VAR_5, sizeof(VAR_5), \"/ \", &VAR_4);", "if (VAR_3 < RTP_PT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 59, 61 ], [ 63 ], [ 67 ], [ 69, 71 ], [...
24,489
void ff_dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; // Common optimizations whether AltiVec is available or not c->prefetch = prefetch_ppc; if (!high_bit_depth) { switch (check_dcbzl_effect()) { case 32: ...
false
FFmpeg
28f9ab7029bd1a02f659995919f899f84ee7361b
void ff_dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; c->prefetch = prefetch_ppc; if (!high_bit_depth) { switch (check_dcbzl_effect()) { case 32: c->clear_blocks = clear_blocks_dcbz32_ppc; ...
{ "code": [], "line_no": [] }
void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1) { const int VAR_2 = VAR_1->bits_per_raw_sample > 8; VAR_0->prefetch = prefetch_ppc; if (!VAR_2) { switch (check_dcbzl_effect()) { case 32: VAR_0->clear_blocks = clear_blocks_dcbz32_ppc; break; ...
[ "void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1)\n{", "const int VAR_2 = VAR_1->bits_per_raw_sample > 8;", "VAR_0->prefetch = prefetch_ppc;", "if (!VAR_2) {", "switch (check_dcbzl_effect()) {", "case 32:\nVAR_0->clear_blocks = clear_blocks_dcbz32_ppc;", "break;", "case 128:\nVAR_0->clear_blocks ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 5...
24,490
bool hbitmap_get(const HBitmap *hb, uint64_t item) { /* Compute position and bit in the last layer. */ uint64_t pos = item >> hb->granularity; unsigned long bit = 1UL << (pos & (BITS_PER_LONG - 1)); return (hb->levels[HBITMAP_LEVELS - 1][pos >> BITS_PER_LEVEL] & bit) != 0; }
true
qemu
0e321191224c8cd137eef41da3257e096965c3d6
bool hbitmap_get(const HBitmap *hb, uint64_t item) { uint64_t pos = item >> hb->granularity; unsigned long bit = 1UL << (pos & (BITS_PER_LONG - 1)); return (hb->levels[HBITMAP_LEVELS - 1][pos >> BITS_PER_LEVEL] & bit) != 0; }
{ "code": [], "line_no": [] }
bool FUNC_0(const HBitmap *hb, uint64_t item) { uint64_t pos = item >> hb->granularity; unsigned long VAR_0 = 1UL << (pos & (BITS_PER_LONG - 1)); return (hb->levels[HBITMAP_LEVELS - 1][pos >> BITS_PER_LEVEL] & VAR_0) != 0; }
[ "bool FUNC_0(const HBitmap *hb, uint64_t item)\n{", "uint64_t pos = item >> hb->granularity;", "unsigned long VAR_0 = 1UL << (pos & (BITS_PER_LONG - 1));", "return (hb->levels[HBITMAP_LEVELS - 1][pos >> BITS_PER_LEVEL] & VAR_0) != 0;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 14 ], [ 16 ] ]
24,491
static int ffm_is_avail_data(AVFormatContext *s, int size) { FFMContext *ffm = s->priv_data; int64_t pos, avail_size; int len; len = ffm->packet_end - ffm->packet_ptr; if (size <= len) return 1; pos = avio_tell(s->pb); if (!ffm->write_index) { if (pos == ffm->file...
true
FFmpeg
f6e1c96730ebbcebbd0341329d51d3d3a36b4fa1
static int ffm_is_avail_data(AVFormatContext *s, int size) { FFMContext *ffm = s->priv_data; int64_t pos, avail_size; int len; len = ffm->packet_end - ffm->packet_ptr; if (size <= len) return 1; pos = avio_tell(s->pb); if (!ffm->write_index) { if (pos == ffm->file...
{ "code": [ " int len;" ], "line_no": [ 9 ] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1) { FFMContext *ffm = VAR_0->priv_data; int64_t pos, avail_size; int VAR_2; VAR_2 = ffm->packet_end - ffm->packet_ptr; if (VAR_1 <= VAR_2) return 1; pos = avio_tell(VAR_0->pb); if (!ffm->write_index) { if (pos == ...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "FFMContext *ffm = VAR_0->priv_data;", "int64_t pos, avail_size;", "int VAR_2;", "VAR_2 = ffm->packet_end - ffm->packet_ptr;", "if (VAR_1 <= VAR_2)\nreturn 1;", "pos = avio_tell(VAR_0->pb);", "if (!ffm->write_index) {", "if (pos == ffm->file...
[ 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 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
24,492
int fw_cfg_add_bytes(FWCfgState *s, uint16_t key, uint8_t *data, uint32_t len) { int arch = !!(key & FW_CFG_ARCH_LOCAL); key &= FW_CFG_ENTRY_MASK; if (key >= FW_CFG_MAX_ENTRY) return 0; s->entries[arch][key].data = data; s->entries[arch][key].len = len; return 1; }
true
qemu
4cad3867b6df2c0826ae508a9fe15dd0b9d8936a
int fw_cfg_add_bytes(FWCfgState *s, uint16_t key, uint8_t *data, uint32_t len) { int arch = !!(key & FW_CFG_ARCH_LOCAL); key &= FW_CFG_ENTRY_MASK; if (key >= FW_CFG_MAX_ENTRY) return 0; s->entries[arch][key].data = data; s->entries[arch][key].len = len; return 1; }
{ "code": [ "int fw_cfg_add_bytes(FWCfgState *s, uint16_t key, uint8_t *data, uint32_t len)", " if (key >= FW_CFG_MAX_ENTRY)", " return 0;", " return 1;", " return 0;", " return 0;", " return 1;", " return 0;", " return 1;" ], "line_no": ...
int FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, uint8_t *VAR_2, uint32_t VAR_3) { int VAR_4 = !!(VAR_1 & FW_CFG_ARCH_LOCAL); VAR_1 &= FW_CFG_ENTRY_MASK; if (VAR_1 >= FW_CFG_MAX_ENTRY) return 0; VAR_0->entries[VAR_4][VAR_1].VAR_2 = VAR_2; VAR_0->entries[VAR_4][VAR_1].VAR_3 = VAR_3;...
[ "int FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, uint8_t *VAR_2, uint32_t VAR_3)\n{", "int VAR_4 = !!(VAR_1 & FW_CFG_ARCH_LOCAL);", "VAR_1 &= FW_CFG_ENTRY_MASK;", "if (VAR_1 >= FW_CFG_MAX_ENTRY)\nreturn 0;", "VAR_0->entries[VAR_4][VAR_1].VAR_2 = VAR_2;", "VAR_0->entries[VAR_4][VAR_1].VAR_3 = VAR_3;", "ret...
[ 1, 0, 0, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]