id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
12,341
static void av_noinline filter_mb_edgecv( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) { const unsigned int index_a = 52 + qp + h->slice_alpha_c0_offset; const int alpha = alpha_table[index_a]; const int beta = (beta_table+52)[qp + h->slice_beta_offset]; if (alpha ==0 ...
false
FFmpeg
0c32e19d584ba6ddbc27f0a796260404daaf4b6a
static void av_noinline filter_mb_edgecv( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) { const unsigned int index_a = 52 + qp + h->slice_alpha_c0_offset; const int alpha = alpha_table[index_a]; const int beta = (beta_table+52)[qp + h->slice_beta_offset]; if (alpha ==0 ...
{ "code": [], "line_no": [] }
static void VAR_0 filter_mb_edgecv( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) { const unsigned int index_a = 52 + qp + h->slice_alpha_c0_offset; const int alpha = alpha_table[index_a]; const int beta = (beta_table+52)[qp + h->slice_beta_offset]; if (alpha ==0 || bet...
[ "static void VAR_0 filter_mb_edgecv( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h ) {", "const unsigned int index_a = 52 + qp + h->slice_alpha_c0_offset;", "const int alpha = alpha_table[index_a];", "const int beta = (beta_table+52)[qp + h->slice_beta_offset];", "if (alpha ==0 |...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
12,342
int qemu_recvv(int sockfd, struct iovec *iov, int len, int iov_offset) { return do_sendv_recvv(sockfd, iov, len, iov_offset, 0); }
true
qemu
3e80bf9351f8fec9085c46df6da075efd5e71003
int qemu_recvv(int sockfd, struct iovec *iov, int len, int iov_offset) { return do_sendv_recvv(sockfd, iov, len, iov_offset, 0); }
{ "code": [ "int qemu_recvv(int sockfd, struct iovec *iov, int len, int iov_offset)", " return do_sendv_recvv(sockfd, iov, len, iov_offset, 0);" ], "line_no": [ 1, 5 ] }
int FUNC_0(int VAR_0, struct iovec *VAR_1, int VAR_2, int VAR_3) { return do_sendv_recvv(VAR_0, VAR_1, VAR_2, VAR_3, 0); }
[ "int FUNC_0(int VAR_0, struct iovec *VAR_1, int VAR_2, int VAR_3)\n{", "return do_sendv_recvv(VAR_0, VAR_1, VAR_2, VAR_3, 0);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
12,343
static void vmxnet3_complete_packet(VMXNET3State *s, int qidx, uint32_t tx_ridx) { struct Vmxnet3_TxCompDesc txcq_descr; PCIDevice *d = PCI_DEVICE(s); VMXNET3_RING_DUMP(VMW_RIPRN, "TXC", qidx, &s->txq_descr[qidx].comp_ring); txcq_descr.txdIdx = tx_ridx; txcq_descr.gen = vmxnet3_ring_curr_...
true
qemu
fdda170e50b8af062cf5741e12c4fb5e57a2eacf
static void vmxnet3_complete_packet(VMXNET3State *s, int qidx, uint32_t tx_ridx) { struct Vmxnet3_TxCompDesc txcq_descr; PCIDevice *d = PCI_DEVICE(s); VMXNET3_RING_DUMP(VMW_RIPRN, "TXC", qidx, &s->txq_descr[qidx].comp_ring); txcq_descr.txdIdx = tx_ridx; txcq_descr.gen = vmxnet3_ring_curr_...
{ "code": [], "line_no": [] }
static void FUNC_0(VMXNET3State *VAR_0, int VAR_1, uint32_t VAR_2) { struct Vmxnet3_TxCompDesc VAR_3; PCIDevice *d = PCI_DEVICE(VAR_0); VMXNET3_RING_DUMP(VMW_RIPRN, "TXC", VAR_1, &VAR_0->txq_descr[VAR_1].comp_ring); VAR_3.txdIdx = VAR_2; VAR_3.gen = vmxnet3_ring_curr_gen(&VAR_0->txq_descr...
[ "static void FUNC_0(VMXNET3State *VAR_0, int VAR_1, uint32_t VAR_2)\n{", "struct Vmxnet3_TxCompDesc VAR_3;", "PCIDevice *d = PCI_DEVICE(VAR_0);", "VMXNET3_RING_DUMP(VMW_RIPRN, \"TXC\", VAR_1, &VAR_0->txq_descr[VAR_1].comp_ring);", "VAR_3.txdIdx = VAR_2;", "VAR_3.gen = vmxnet3_ring_curr_gen(&VAR_0->txq_des...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 16 ], [ 18 ], [ 22 ], [ 28 ], [ 32 ], [ 34 ], [ 36 ] ]
12,344
static void gen_mtc0(DisasContext *ctx, TCGv arg, int reg, int sel) { const char *rn = "invalid"; if (sel != 0) check_insn(ctx, ISA_MIPS32); if (ctx->tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } switch (reg) { case 0: switch (sel) { case 0: ...
true
qemu
cec56a733dd2c3fa81dbedbecf03922258747f7d
static void gen_mtc0(DisasContext *ctx, TCGv arg, int reg, int sel) { const char *rn = "invalid"; if (sel != 0) check_insn(ctx, ISA_MIPS32); if (ctx->tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } switch (reg) { case 0: switch (sel) { case 0: ...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, int VAR_2, int VAR_3) { const char *VAR_4 = "invalid"; if (VAR_3 != 0) check_insn(VAR_0, ISA_MIPS32); if (VAR_0->tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } switch (VAR_2) { case 0: switch (VAR_3) { ...
[ "static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, int VAR_2, int VAR_3)\n{", "const char *VAR_4 = \"invalid\";", "if (VAR_3 != 0)\ncheck_insn(VAR_0, ISA_MIPS32);", "if (VAR_0->tb->cflags & CF_USE_ICOUNT) {", "gen_io_start();", "}", "switch (VAR_2) {", "case 0:\nswitch (VAR_3) {", "case 0:\ngen_he...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 36, 38 ], [ 40 ], [ 42 ], [ 46 ], [ 50 ], [ 54 ], [ 58 ], [ 62...
12,345
void cpu_loop(CPUARMState *env) { int trapnr; unsigned int n, insn; target_siginfo_t info; uint32_t addr; for(;;) { cpu_exec_start(env); trapnr = cpu_arm_exec(env); cpu_exec_end(env); switch(trapnr) { case EXCP_UDEF: { ...
true
qemu
d8fd2954996255ba6ad610917e7849832d0120b7
void cpu_loop(CPUARMState *env) { int trapnr; unsigned int n, insn; target_siginfo_t info; uint32_t addr; for(;;) { cpu_exec_start(env); trapnr = cpu_arm_exec(env); cpu_exec_end(env); switch(trapnr) { case EXCP_UDEF: { ...
{ "code": [ " get_user_u32(opcode, env->regs[15]);", " get_user_u16(insn, env->regs[15]);", " get_user_u32(insn, env->regs[15]);", " get_user_u16(insn, env->regs[15] - 2);", " get_user_u32(in...
void FUNC_0(CPUARMState *VAR_0) { int VAR_1; unsigned int VAR_2, VAR_3; target_siginfo_t info; uint32_t addr; for(;;) { cpu_exec_start(VAR_0); VAR_1 = cpu_arm_exec(VAR_0); cpu_exec_end(VAR_0); switch(VAR_1) { case EXCP_UDEF: { ...
[ "void FUNC_0(CPUARMState *VAR_0)\n{", "int VAR_1;", "unsigned int VAR_2, VAR_3;", "target_siginfo_t info;", "uint32_t addr;", "for(;;) {", "cpu_exec_start(VAR_0);", "VAR_1 = cpu_arm_exec(VAR_0);", "cpu_exec_end(VAR_0);", "switch(VAR_1) {", "case EXCP_UDEF:\n{", "TaskState *ts = VAR_0->opaque;"...
[ 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, 0, 0, 1, 0, 0, 0, 1, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
12,346
static uint32_t cc_calc_abs_32(int32_t dst) { if ((uint32_t)dst == 0x80000000UL) { return 3; } else if (dst) { return 1; } else { return 0; } }
true
qemu
2aaa1940684a3bf2b381fd2a8ff26c287a05109d
static uint32_t cc_calc_abs_32(int32_t dst) { if ((uint32_t)dst == 0x80000000UL) { return 3; } else if (dst) { return 1; } else { return 0; } }
{ "code": [ " return 1;", " return 1;" ], "line_no": [ 11, 11 ] }
static uint32_t FUNC_0(int32_t dst) { if ((uint32_t)dst == 0x80000000UL) { return 3; } else if (dst) { return 1; } else { return 0; } }
[ "static uint32_t FUNC_0(int32_t dst)\n{", "if ((uint32_t)dst == 0x80000000UL) {", "return 3;", "} else if (dst) {", "return 1;", "} else {", "return 0;", "}", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
12,348
static int qemu_chr_open_pipe(QemuOpts *opts, CharDriverState **_chr) { int fd_in, fd_out; char filename_in[256], filename_out[256]; const char *filename = qemu_opt_get(opts, "path"); if (filename == NULL) { fprintf(stderr, "chardev: pipe: no filename given\n"); return -EINVAL; ...
true
qemu
1f51470d044852592922f91000e741c381582cdc
static int qemu_chr_open_pipe(QemuOpts *opts, CharDriverState **_chr) { int fd_in, fd_out; char filename_in[256], filename_out[256]; const char *filename = qemu_opt_get(opts, "path"); if (filename == NULL) { fprintf(stderr, "chardev: pipe: no filename given\n"); return -EINVAL; ...
{ "code": [ " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", "static int qemu_chr_open_pipe(QemuOpts *opts, CharDriverState **_chr)", " return -EINVAL;", " TFR(fd_in = fd_out = qemu_open(filename, O_RDWR | O_BINARY));", " if ...
static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1) { int VAR_2, VAR_3; char VAR_4[256], VAR_5[256]; const char *VAR_6 = qemu_opt_get(VAR_0, "path"); if (VAR_6 == NULL) { fprintf(stderr, "chardev: pipe: no VAR_6 given\n"); return -EINVAL; } snprintf(VAR_4, 25...
[ "static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)\n{", "int VAR_2, VAR_3;", "char VAR_4[256], VAR_5[256];", "const char *VAR_6 = qemu_opt_get(VAR_0, \"path\");", "if (VAR_6 == NULL) {", "fprintf(stderr, \"chardev: pipe: no VAR_6 given\\n\");", "return -EINVAL;", "}", "snprintf(VAR_4, 256,...
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
12,349
static void vp5_parse_coeff(VP56Context *s) { VP56RangeCoder *c = &s->c; VP56Model *model = s->modelp; uint8_t *permute = s->idct_scantable; uint8_t *model1, *model2; int coeff, sign, coeff_idx; int b, i, cg, idx, ctx, ctx_last; int pt = 0; /* plane type (0 for Y, 1 for U or V) */...
true
FFmpeg
9e6a2427558a718be0c1fffacffd935f630a7a8d
static void vp5_parse_coeff(VP56Context *s) { VP56RangeCoder *c = &s->c; VP56Model *model = s->modelp; uint8_t *permute = s->idct_scantable; uint8_t *model1, *model2; int coeff, sign, coeff_idx; int b, i, cg, idx, ctx, ctx_last; int pt = 0; for (b=0; b<6; b++) { i...
{ "code": [ "static void vp5_parse_coeff(VP56Context *s)" ], "line_no": [ 1 ] }
static void FUNC_0(VP56Context *VAR_0) { VP56RangeCoder *c = &VAR_0->c; VP56Model *model = VAR_0->modelp; uint8_t *permute = VAR_0->idct_scantable; uint8_t *model1, *model2; int VAR_1, VAR_2, VAR_3; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10 = 0; for (VAR_4=0...
[ "static void FUNC_0(VP56Context *VAR_0)\n{", "VP56RangeCoder *c = &VAR_0->c;", "VP56Model *model = VAR_0->modelp;", "uint8_t *permute = VAR_0->idct_scantable;", "uint8_t *model1, *model2;", "int VAR_1, VAR_2, VAR_3;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10 = 0;", "for (VAR_4=0;...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
12,350
static int nvdec_vc1_end_frame(AVCodecContext *avctx) { NVDECContext *ctx = avctx->internal->hwaccel_priv_data; int ret = ff_nvdec_end_frame(avctx); ctx->bitstream = NULL; return ret; }
false
FFmpeg
4c7b023d56e09a78a587d036db1b64bf7c493b3d
static int nvdec_vc1_end_frame(AVCodecContext *avctx) { NVDECContext *ctx = avctx->internal->hwaccel_priv_data; int ret = ff_nvdec_end_frame(avctx); ctx->bitstream = NULL; return ret; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { NVDECContext *ctx = VAR_0->internal->hwaccel_priv_data; int VAR_1 = ff_nvdec_end_frame(VAR_0); ctx->bitstream = NULL; return VAR_1; }
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "NVDECContext *ctx = VAR_0->internal->hwaccel_priv_data;", "int VAR_1 = ff_nvdec_end_frame(VAR_0);", "ctx->bitstream = NULL;", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
12,352
static inline void RENAME(yuy2toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride, long srcStride) { long y; const long chromWidth= width>>1; for(y=0; y<height; y+=2) { #ifdef HAVE_MMX asm volatile( "xor %%"REG_a", %%"RE...
false
FFmpeg
4bff9ef9d0781c4de228bf1f85634d2706fc589b
static inline void RENAME(yuy2toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride, long srcStride) { long y; const long chromWidth= width>>1; for(y=0; y<height; y+=2) { #ifdef HAVE_MMX asm volatile( "xor %%"REG_a", %%"RE...
{ "code": [], "line_no": [] }
static inline void FUNC_0(yuy2toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride, long srcStride) { long VAR_0; const long VAR_1= width>>1; for(VAR_0=0; VAR_0<height; VAR_0+=2) { #ifdef HAVE_MMX asm volatile( "xor %%"RE...
[ "static inline void FUNC_0(yuy2toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\nlong width, long height,\nlong lumStride, long chromStride, long srcStride)\n{", "long VAR_0;", "const long VAR_1= width>>1;", "for(VAR_0=0; VAR_0<height; VAR_0+=2)", "{", "#ifdef HAVE_MMX\nasm volatil...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 55, 59, 61, 63, 65, 67, 69, 71, 73,...
12,354
static int qtrle_decode_init(AVCodecContext *avctx) { QtrleContext *s = avctx->priv_data; s->avctx = avctx; switch (avctx->bits_per_sample) { case 1: case 2: case 4: case 8: case 33: case 34: case 36: case 40: avctx->pix_fmt = PIX_FMT_PAL8; bre...
false
FFmpeg
32c3047cac9294bb56d23c89a40a22409db5cc70
static int qtrle_decode_init(AVCodecContext *avctx) { QtrleContext *s = avctx->priv_data; s->avctx = avctx; switch (avctx->bits_per_sample) { case 1: case 2: case 4: case 8: case 33: case 34: case 36: case 40: avctx->pix_fmt = PIX_FMT_PAL8; bre...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { QtrleContext *s = VAR_0->priv_data; s->VAR_0 = VAR_0; switch (VAR_0->bits_per_sample) { case 1: case 2: case 4: case 8: case 33: case 34: case 36: case 40: VAR_0->pix_fmt = PIX_FMT_PAL8; break; ...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "QtrleContext *s = VAR_0->priv_data;", "s->VAR_0 = VAR_0;", "switch (VAR_0->bits_per_sample) {", "case 1:\ncase 2:\ncase 4:\ncase 8:\ncase 33:\ncase 34:\ncase 36:\ncase 40:\nVAR_0->pix_fmt = PIX_FMT_PAL8;", "break;", "case 16:\nVAR_0->pix_fmt = PIX_FMT_RGB5...
[ 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 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 51, 53 ], [ 55 ], [ 59, 61, 63 ], ...
12,355
void vp8_mc_part(VP8Context *s, uint8_t *dst[3], AVFrame *ref_frame, int x_off, int y_off, int bx_off, int by_off, int block_w, int block_h, int width, int height, VP56mv *mv) { VP56mv uvmv = *mv; /* Y */ vp8_mc(s, 1, dst[0] + by_...
false
FFmpeg
5ad4335c2233d5a6d9487d2d56387b7484aecded
void vp8_mc_part(VP8Context *s, uint8_t *dst[3], AVFrame *ref_frame, int x_off, int y_off, int bx_off, int by_off, int block_w, int block_h, int width, int height, VP56mv *mv) { VP56mv uvmv = *mv; vp8_mc(s, 1, dst[0] + by_off * s...
{ "code": [], "line_no": [] }
void FUNC_0(VP8Context *VAR_0, uint8_t *VAR_1[3], AVFrame *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10, VP56mv *VAR_11) { VP56mv uvmv = *VAR_11; vp8_mc(VAR_0, 1, VAR_1[0] + VAR_6...
[ "void FUNC_0(VP8Context *VAR_0, uint8_t *VAR_1[3],\nAVFrame *VAR_2, int VAR_3, int VAR_4,\nint VAR_5, int VAR_6,\nint VAR_7, int VAR_8,\nint VAR_9, int VAR_10, VP56mv *VAR_11)\n{", "VP56mv uvmv = *VAR_11;", "vp8_mc(VAR_0, 1, VAR_1[0] + VAR_6 * VAR_0->linesize + VAR_5,\nVAR_2->data[0], VAR_11, VAR_3 + VAR_5, VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 19, 21, 23, 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49, 51, 53 ], [ 55, 57, 59, 61 ], [...
12,356
static int decode_p_frame(FourXContext *f, const uint8_t *buf, int length){ int x, y; const int width= f->avctx->width; const int height= f->avctx->height; uint16_t *src= (uint16_t*)f->last_picture.data[0]; uint16_t *dst= (uint16_t*)f->current_picture.data[0]; const int stride= f->current_...
false
FFmpeg
bc78ceec2be6613c265387017221c7ceda15aa7d
static int decode_p_frame(FourXContext *f, const uint8_t *buf, int length){ int x, y; const int width= f->avctx->width; const int height= f->avctx->height; uint16_t *src= (uint16_t*)f->last_picture.data[0]; uint16_t *dst= (uint16_t*)f->current_picture.data[0]; const int stride= f->current_...
{ "code": [], "line_no": [] }
static int FUNC_0(FourXContext *VAR_0, const uint8_t *VAR_1, int VAR_2){ int VAR_3, VAR_4; const int VAR_5= VAR_0->avctx->VAR_5; const int VAR_6= VAR_0->avctx->VAR_6; uint16_t *src= (uint16_t*)VAR_0->last_picture.data[0]; uint16_t *dst= (uint16_t*)VAR_0->current_picture.data[0]; const int ...
[ "static int FUNC_0(FourXContext *VAR_0, const uint8_t *VAR_1, int VAR_2){", "int VAR_3, VAR_4;", "const int VAR_5= VAR_0->avctx->VAR_5;", "const int VAR_6= VAR_0->avctx->VAR_6;", "uint16_t *src= (uint16_t*)VAR_0->last_picture.data[0];", "uint16_t *dst= (uint16_t*)VAR_0->current_picture.data[0];", "const...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45,...
12,358
static inline int halfpel_motion_search(MpegEncContext * s, int *mx_ptr, int *my_ptr, int dmin, int xmin, int ymin, int xmax, int ymax, int pred_x, int pred_y, uint8_t *ref_picture) { UINT16 *mv_penalty= s->mv_penalty[s->f_code] + MAX_MV; // f_code of the prev fram...
false
FFmpeg
0d21a84605bad4e75dacb8196e5859902ed36f01
static inline int halfpel_motion_search(MpegEncContext * s, int *mx_ptr, int *my_ptr, int dmin, int xmin, int ymin, int xmax, int ymax, int pred_x, int pred_y, uint8_t *ref_picture) { UINT16 *mv_penalty= s->mv_penalty[s->f_code] + MAX_MV; const int quant= s->...
{ "code": [], "line_no": [] }
static inline int FUNC_0(MpegEncContext * VAR_0, int *VAR_1, int *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, uint8_t *VAR_10) { UINT16 *mv_penalty= VAR_0->mv_penalty[VAR_0->f_code] + MAX_MV; const int VAR_11= VAR_0->qs...
[ "static inline int FUNC_0(MpegEncContext * VAR_0,\nint *VAR_1, int *VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6, int VAR_7,\nint VAR_8, int VAR_9, uint8_t *VAR_10)\n{", "UINT16 *mv_penalty= VAR_0->mv_penalty[VAR_0->f_code] + MAX_MV;", "const int VAR_11= VAR_0->qscale;", "int VAR_12, VAR_13;", "int VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
12,359
void ff_avg_h264_qpel16_mc02_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_vt_and_aver_dst_16x16_msa(src - (stride * 2), stride, dst, stride); }
false
FFmpeg
72dbc610be3272ba36603f78a39cc2d2d8fe0cc3
void ff_avg_h264_qpel16_mc02_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_vt_and_aver_dst_16x16_msa(src - (stride * 2), stride, dst, stride); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_vt_and_aver_dst_16x16_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_vt_and_aver_dst_16x16_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
12,360
static inline int check_input_motion(MpegEncContext * s, int mb_x, int mb_y, int p_type){ MotionEstContext * const c= &s->me; Picture *p= s->current_picture_ptr; int mb_xy= mb_x + mb_y*s->mb_stride; int xy= 2*mb_x + 2*mb_y*s->b8_stride; int mb_type= s->current_picture.mb_type[mb_xy]; int f...
false
FFmpeg
ae1dbde1cf6a9a96d802dc38b6741824857b24c5
static inline int check_input_motion(MpegEncContext * s, int mb_x, int mb_y, int p_type){ MotionEstContext * const c= &s->me; Picture *p= s->current_picture_ptr; int mb_xy= mb_x + mb_y*s->mb_stride; int xy= 2*mb_x + 2*mb_y*s->b8_stride; int mb_type= s->current_picture.mb_type[mb_xy]; int f...
{ "code": [], "line_no": [] }
static inline int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2, int VAR_3){ MotionEstContext * const c= &VAR_0->me; Picture *p= VAR_0->current_picture_ptr; int VAR_4= VAR_1 + VAR_2*VAR_0->mb_stride; int VAR_5= 2*VAR_1 + 2*VAR_2*VAR_0->b8_stride; int VAR_6= VAR_0->current_picture.VAR_6[VA...
[ "static inline int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2, int VAR_3){", "MotionEstContext * const c= &VAR_0->me;", "Picture *p= VAR_0->current_picture_ptr;", "int VAR_4= VAR_1 + VAR_2*VAR_0->mb_stride;", "int VAR_5= 2*VAR_1 + 2*VAR_2*VAR_0->b8_stride;", "int VAR_6= VAR_0->current_picture.VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
12,361
void *checkasm_check_func(void *func, const char *name, ...) { char name_buf[256]; void *ref = func; CheckasmFuncVersion *v; int name_length; va_list arg; va_start(arg, name); name_length = vsnprintf(name_buf, sizeof(name_buf), name, arg); va_end(arg); if (!func || name...
false
FFmpeg
2ab65b652dc5e69fb738f1afdc55f7a2f9cbc0e0
void *checkasm_check_func(void *func, const char *name, ...) { char name_buf[256]; void *ref = func; CheckasmFuncVersion *v; int name_length; va_list arg; va_start(arg, name); name_length = vsnprintf(name_buf, sizeof(name_buf), name, arg); va_end(arg); if (!func || name...
{ "code": [], "line_no": [] }
void *FUNC_0(void *VAR_0, const char *VAR_1, ...) { char VAR_2[256]; void *VAR_3 = VAR_0; CheckasmFuncVersion *v; int VAR_4; va_list arg; va_start(arg, VAR_1); VAR_4 = vsnprintf(VAR_2, sizeof(VAR_2), VAR_1, arg); va_end(arg); if (!VAR_0 || VAR_4 <= 0 || VAR_4 >= sizeof(...
[ "void *FUNC_0(void *VAR_0, const char *VAR_1, ...)\n{", "char VAR_2[256];", "void *VAR_3 = VAR_0;", "CheckasmFuncVersion *v;", "int VAR_4;", "va_list arg;", "va_start(arg, VAR_1);", "VAR_4 = vsnprintf(VAR_2, sizeof(VAR_2), VAR_1, arg);", "va_end(arg);", "if (!VAR_0 || VAR_4 <= 0 || VAR_4 >= sizeof...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 51, 53 ], [ 57 ], [...
12,363
void ff_dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx) { int mm_flags = av_get_cpu_flags(); if (mm_flags & AV_CPU_FLAG_MMX) { #if HAVE_INLINE_ASM const int idct_algo = avctx->idct_algo; if (avctx->bits_per_raw_sample <= 8) { if (idct_algo == FF_IDCT_AUTO || idct_al...
false
FFmpeg
ef6ba1f2378ac1e40c3c1d606b4ace47ea119ac8
void ff_dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx) { int mm_flags = av_get_cpu_flags(); if (mm_flags & AV_CPU_FLAG_MMX) { #if HAVE_INLINE_ASM const int idct_algo = avctx->idct_algo; if (avctx->bits_per_raw_sample <= 8) { if (idct_algo == FF_IDCT_AUTO || idct_al...
{ "code": [], "line_no": [] }
void FUNC_0(DSPContext *VAR_0, AVCodecContext *VAR_1) { int VAR_2 = av_get_cpu_flags(); if (VAR_2 & AV_CPU_FLAG_MMX) { #if HAVE_INLINE_ASM const int idct_algo = VAR_1->idct_algo; if (VAR_1->bits_per_raw_sample <= 8) { if (idct_algo == FF_IDCT_AUTO || idct_algo == FF_IDCT_S...
[ "void FUNC_0(DSPContext *VAR_0, AVCodecContext *VAR_1)\n{", "int VAR_2 = av_get_cpu_flags();", "if (VAR_2 & AV_CPU_FLAG_MMX) {", "#if HAVE_INLINE_ASM\nconst int idct_algo = VAR_1->idct_algo;", "if (VAR_1->bits_per_raw_sample <= 8) {", "if (idct_algo == FF_IDCT_AUTO || idct_algo == FF_IDCT_SIMPLEMMX) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...
12,366
QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename) { char host[65], port[33], width[8], height[8]; int pos; const char *p; QemuOpts *opts; Error *local_err = NULL; opts = qemu_opts_create(qemu_find_opts("chardev"), label, 1, &local_err); if (local_err) { ...
false
qemu
dc523cd348c47372faa7271c9aab2030f94c290d
QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename) { char host[65], port[33], width[8], height[8]; int pos; const char *p; QemuOpts *opts; Error *local_err = NULL; opts = qemu_opts_create(qemu_find_opts("chardev"), label, 1, &local_err); if (local_err) { ...
{ "code": [], "line_no": [] }
QemuOpts *FUNC_0(const char *label, const char *filename) { char VAR_0[65], VAR_1[33], VAR_2[8], VAR_3[8]; int VAR_4; const char *VAR_5; QemuOpts *opts; Error *local_err = NULL; opts = qemu_opts_create(qemu_find_opts("chardev"), label, 1, &local_err); if (local_err) { erro...
[ "QemuOpts *FUNC_0(const char *label, const char *filename)\n{", "char VAR_0[65], VAR_1[33], VAR_2[8], VAR_3[8];", "int VAR_4;", "const char *VAR_5;", "QemuOpts *opts;", "Error *local_err = NULL;", "opts = qemu_opts_create(qemu_find_opts(\"chardev\"), label, 1, &local_err);", "if (local_err) {", "err...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 47 ], [ 49 ], [ 51 ], [ 55, 57, 59,...
12,368
static int check_refcounts_l1(BlockDriverState *bs, BdrvCheckResult *res, uint16_t *refcount_table, int refcount_table_size, int64_t l1_table_offset, int l1_size, in...
false
qemu
afdf0abe779f4b11712eb306ab2d4299820457b8
static int check_refcounts_l1(BlockDriverState *bs, BdrvCheckResult *res, uint16_t *refcount_table, int refcount_table_size, int64_t l1_table_offset, int l1_size, in...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, uint16_t *VAR_2, int VAR_3, int64_t VAR_4, int VAR_5, int VAR_6) { BDRVQcowState *s = VAR_0-...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nBdrvCheckResult *VAR_1,\nuint16_t *VAR_2,\nint VAR_3,\nint64_t VAR_4, int VAR_5,\nint VAR_6)\n{", "BDRVQcowState *s = VAR_0->opaque;", "uint64_t *l1_table, l2_offset, l1_size2;", "int VAR_7, VAR_8, VAR_9;", "l1_size2 = VAR_5 * sizeof(uint64_t);", "inc_refcounts...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 29, 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47, 49 ], [ 51 ], [ 53 ], [ 55 ], [ 61 ], [ 63 ...
12,369
static always_inline void gen_qemu_lds (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I32); tcg_gen_qemu_ld32u(tmp, t1, flags); tcg_gen_helper_1_1(helper_memory_to_s, t0, tmp); tcg_temp_free(tmp); }
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static always_inline void gen_qemu_lds (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I32); tcg_gen_qemu_ld32u(tmp, t1, flags); tcg_gen_helper_1_1(helper_memory_to_s, t0, tmp); tcg_temp_free(tmp); }
{ "code": [], "line_no": [] }
static always_inline void FUNC_0 (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I32); tcg_gen_qemu_ld32u(tmp, t1, flags); tcg_gen_helper_1_1(helper_memory_to_s, t0, tmp); tcg_temp_free(tmp); }
[ "static always_inline void FUNC_0 (TCGv t0, TCGv t1, int flags)\n{", "TCGv tmp = tcg_temp_new(TCG_TYPE_I32);", "tcg_gen_qemu_ld32u(tmp, t1, flags);", "tcg_gen_helper_1_1(helper_memory_to_s, t0, tmp);", "tcg_temp_free(tmp);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
12,370
static void pmac_ide_flush(DBDMA_io *io) { MACIOIDEState *m = io->opaque; if (m->aiocb) { bdrv_drain_all(); } }
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void pmac_ide_flush(DBDMA_io *io) { MACIOIDEState *m = io->opaque; if (m->aiocb) { bdrv_drain_all(); } }
{ "code": [], "line_no": [] }
static void FUNC_0(DBDMA_io *VAR_0) { MACIOIDEState *m = VAR_0->opaque; if (m->aiocb) { bdrv_drain_all(); } }
[ "static void FUNC_0(DBDMA_io *VAR_0)\n{", "MACIOIDEState *m = VAR_0->opaque;", "if (m->aiocb) {", "bdrv_drain_all();", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
12,371
static void socket_start_outgoing_migration(MigrationState *s, SocketAddress *saddr, Error **errp) { QIOChannelSocket *sioc = qio_channel_socket_new(); struct SocketConnectData *data = g_new0(struct SocketConnectData, 1...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
static void socket_start_outgoing_migration(MigrationState *s, SocketAddress *saddr, Error **errp) { QIOChannelSocket *sioc = qio_channel_socket_new(); struct SocketConnectData *data = g_new0(struct SocketConnectData, 1...
{ "code": [], "line_no": [] }
static void FUNC_0(MigrationState *VAR_0, SocketAddress *VAR_1, Error **VAR_2) { QIOChannelSocket *sioc = qio_channel_socket_new(); struct SocketConnectData *VAR_3 = g_new0(struct SocketConnectData, 1); VAR_3->VA...
[ "static void FUNC_0(MigrationState *VAR_0,\nSocketAddress *VAR_1,\nError **VAR_2)\n{", "QIOChannelSocket *sioc = qio_channel_socket_new();", "struct SocketConnectData *VAR_3 = g_new0(struct SocketConnectData, 1);", "VAR_3->VAR_0 = VAR_0;", "if (VAR_1->type == SOCKET_ADDRESS_KIND_INET) {", "VAR_3->hostname...
[ 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 ] ]
12,372
void qio_dns_resolver_lookup_async(QIODNSResolver *resolver, SocketAddressLegacy *addr, QIOTaskFunc func, gpointer opaque, GDestroyNotify notify) { QIOTask *task; st...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
void qio_dns_resolver_lookup_async(QIODNSResolver *resolver, SocketAddressLegacy *addr, QIOTaskFunc func, gpointer opaque, GDestroyNotify notify) { QIOTask *task; st...
{ "code": [], "line_no": [] }
void FUNC_0(QIODNSResolver *VAR_0, SocketAddressLegacy *VAR_1, QIOTaskFunc VAR_2, gpointer VAR_3, GDestroyNotify VAR_4) { QIOTask *task; struct QIODNSResolverLookupD...
[ "void FUNC_0(QIODNSResolver *VAR_0,\nSocketAddressLegacy *VAR_1,\nQIOTaskFunc VAR_2,\ngpointer VAR_3,\nGDestroyNotify VAR_4)\n{", "QIOTask *task;", "struct QIODNSResolverLookupData *VAR_5 =\ng_new0(struct QIODNSResolverLookupData, 1);", "VAR_5->VAR_1 = QAPI_CLONE(SocketAddressLegacy, VAR_1);", "task = qio_t...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 25 ], [ 29, 31, 33, 35 ], [ 37 ] ]
12,374
int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr; ...
false
FFmpeg
19b41f86457d945e98c236f67faf59d560861a4c
int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr; ...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { AVFrame *frame = VAR_1; const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MJpegDecodeContext *s = VAR_0->priv_data; const uint8_t *VAR_6, *buf_ptr; const uint8_t ...
[ "int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "AVFrame *frame = VAR_1;", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MJpegDecodeContext *s = VAR_0->priv_data;", "const uint8_t *VAR_6, *buf_ptr;", "const uint8_t *VAR_7;", "int VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47, 49 ], [...
12,380
void hpet_init(qemu_irq *irq) { int i, iomemtype; HPETState *s; dprintf ("hpet_init\n"); s = qemu_mallocz(sizeof(HPETState)); hpet_statep = s; s->irqs = irq; for (i=0; i<HPET_NUM_TIMERS; i++) { HPETTimer *timer = &s->timer[i]; timer->qemu_timer = qemu_new_timer(v...
false
qemu
c169998802505c244b8bcad562633f29de7d74a4
void hpet_init(qemu_irq *irq) { int i, iomemtype; HPETState *s; dprintf ("hpet_init\n"); s = qemu_mallocz(sizeof(HPETState)); hpet_statep = s; s->irqs = irq; for (i=0; i<HPET_NUM_TIMERS; i++) { HPETTimer *timer = &s->timer[i]; timer->qemu_timer = qemu_new_timer(v...
{ "code": [], "line_no": [] }
void FUNC_0(qemu_irq *VAR_0) { int VAR_1, VAR_2; HPETState *s; dprintf ("FUNC_0\n"); s = qemu_mallocz(sizeof(HPETState)); hpet_statep = s; s->irqs = VAR_0; for (VAR_1=0; VAR_1<HPET_NUM_TIMERS; VAR_1++) { HPETTimer *timer = &s->timer[VAR_1]; timer->qemu_timer = qe...
[ "void FUNC_0(qemu_irq *VAR_0) {", "int VAR_1, VAR_2;", "HPETState *s;", "dprintf (\"FUNC_0\\n\");", "s = qemu_mallocz(sizeof(HPETState));", "hpet_statep = s;", "s->irqs = VAR_0;", "for (VAR_1=0; VAR_1<HPET_NUM_TIMERS; VAR_1++) {", "HPETTimer *timer = &s->timer[VAR_1];", "timer->qemu_timer = qemu_n...
[ 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 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ] ]
12,381
static void x86_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); X86CPU *cpu = X86_CPU(obj); X86CPUClass *xcc = X86_CPU_GET_CLASS(obj); CPUX86State *env = &cpu->env; FeatureWord w; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); object_property_add(obj, "family", "int"...
false
qemu
42ecabaae16c0054dde6d8b0fdf90a8c7cce270d
static void x86_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); X86CPU *cpu = X86_CPU(obj); X86CPUClass *xcc = X86_CPU_GET_CLASS(obj); CPUX86State *env = &cpu->env; FeatureWord w; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); object_property_add(obj, "family", "int"...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { CPUState *cs = CPU(VAR_0); X86CPU *cpu = X86_CPU(VAR_0); X86CPUClass *xcc = X86_CPU_GET_CLASS(VAR_0); CPUX86State *env = &cpu->env; FeatureWord w; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); object_property_add(VAR_0, "family", "in...
[ "static void FUNC_0(Object *VAR_0)\n{", "CPUState *cs = CPU(VAR_0);", "X86CPU *cpu = X86_CPU(VAR_0);", "X86CPUClass *xcc = X86_CPU_GET_CLASS(VAR_0);", "CPUX86State *env = &cpu->env;", "FeatureWord w;", "cs->env_ptr = env;", "cpu_exec_init(cs, &error_abort);", "object_property_add(VAR_0, \"family\", ...
[ 0, 0, 0, 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, 45 ], [ 47, 49, 51 ], [ 53, 55, 57 ...
12,382
build_dsdt(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info) { Aml *scope, *dsdt; const MemMapEntry *memmap = guest_info->memmap; const int *irqmap = guest_info->irqmap; dsdt = init_aml_allocator(); /* Reserve space for header */ acpi_data_push(dsdt->buf, sizeof(AcpiTableHe...
false
qemu
37ad223c515da2fe9f1c679768cb5ccaa42e57e1
build_dsdt(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info) { Aml *scope, *dsdt; const MemMapEntry *memmap = guest_info->memmap; const int *irqmap = guest_info->irqmap; dsdt = init_aml_allocator(); acpi_data_push(dsdt->buf, sizeof(AcpiTableHeader)); s...
{ "code": [], "line_no": [] }
FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2) { Aml *scope, *dsdt; const MemMapEntry *VAR_3 = VAR_2->VAR_3; const int *VAR_4 = VAR_2->VAR_4; dsdt = init_aml_allocator(); acpi_data_push(dsdt->buf, sizeof(AcpiTableHeader)); scope = aml_scope("\\_SB"); ...
[ "FUNC_0(GArray *VAR_0, GArray *VAR_1, VirtGuestInfo *VAR_2)\n{", "Aml *scope, *dsdt;", "const MemMapEntry *VAR_3 = VAR_2->VAR_3;", "const int *VAR_4 = VAR_2->VAR_4;", "dsdt = init_aml_allocator();", "acpi_data_push(dsdt->buf, sizeof(AcpiTableHeader));", "scope = aml_scope(\"\\\\_SB\");", "acpi_dsdt_ad...
[ 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 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49, 51 ], [ 53 ], [ 57 ], [ 63 ], [ 65, 67, 69 ...
12,385
static int lag_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; unsigned int buf_size = avpkt->size; LagarithContext *l = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *const p = da...
false
FFmpeg
e981de81fea7b2c07ae178b917305184f6596430
static int lag_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; unsigned int buf_size = avpkt->size; LagarithContext *l = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *const p = da...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; unsigned int VAR_5 = VAR_3->size; LagarithContext *l = VAR_0->priv_data; ThreadFrame frame = { .f = VAR_1 }; AVFrame *const p = VAR_1; ui...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "unsigned int VAR_5 = VAR_3->size;", "LagarithContext *l = VAR_0->priv_data;", "ThreadFrame frame = { .f = VAR_1 };", "AVFrame *const p = VAR_1;", "uint8_t frametype = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51,...
12,387
static int line_in_init (HWVoiceIn *hw, struct audsettings *as) { SpiceVoiceIn *in = container_of (hw, SpiceVoiceIn, hw); struct audsettings settings; #if SPICE_INTERFACE_RECORD_MAJOR > 2 || SPICE_INTERFACE_RECORD_MINOR >= 3 settings.freq = spice_server_get_best_record_rate(NULL); #else s...
true
qemu
5706db1deb061ee9affdcea81e59c4c2cad7c41e
static int line_in_init (HWVoiceIn *hw, struct audsettings *as) { SpiceVoiceIn *in = container_of (hw, SpiceVoiceIn, hw); struct audsettings settings; #if SPICE_INTERFACE_RECORD_MAJOR > 2 || SPICE_INTERFACE_RECORD_MINOR >= 3 settings.freq = spice_server_get_best_record_rate(NULL); #else s...
{ "code": [ "static int line_in_init (HWVoiceIn *hw, struct audsettings *as)" ], "line_no": [ 1 ] }
static int FUNC_0 (HWVoiceIn *VAR_0, struct audsettings *VAR_1) { SpiceVoiceIn *in = container_of (VAR_0, SpiceVoiceIn, VAR_0); struct audsettings VAR_2; #if SPICE_INTERFACE_RECORD_MAJOR > 2 || SPICE_INTERFACE_RECORD_MINOR >= 3 VAR_2.freq = spice_server_get_best_record_rate(NULL); #else V...
[ "static int FUNC_0 (HWVoiceIn *VAR_0, struct audsettings *VAR_1)\n{", "SpiceVoiceIn *in = container_of (VAR_0, SpiceVoiceIn, VAR_0);", "struct audsettings VAR_2;", "#if SPICE_INTERFACE_RECORD_MAJOR > 2 || SPICE_INTERFACE_RECORD_MINOR >= 3\nVAR_2.freq = spice_server_get_best_record_rate(NULL);", "#else...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ] ]
12,388
static void virtio_queue_guest_notifier_read(EventNotifier *n) { VirtQueue *vq = container_of(n, VirtQueue, guest_notifier); if (event_notifier_test_and_clear(n)) { virtio_irq(vq); } }
true
qemu
83d768b5640946b7da55ce8335509df297e2c7cd
static void virtio_queue_guest_notifier_read(EventNotifier *n) { VirtQueue *vq = container_of(n, VirtQueue, guest_notifier); if (event_notifier_test_and_clear(n)) { virtio_irq(vq); } }
{ "code": [ " virtio_irq(vq);" ], "line_no": [ 9 ] }
static void FUNC_0(EventNotifier *VAR_0) { VirtQueue *vq = container_of(VAR_0, VirtQueue, guest_notifier); if (event_notifier_test_and_clear(VAR_0)) { virtio_irq(vq); } }
[ "static void FUNC_0(EventNotifier *VAR_0)\n{", "VirtQueue *vq = container_of(VAR_0, VirtQueue, guest_notifier);", "if (event_notifier_test_and_clear(VAR_0)) {", "virtio_irq(vq);", "}", "}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
12,389
int spapr_tce_dma_zero(VIOsPAPRDevice *dev, uint64_t taddr, uint32_t size) { /* FIXME: allocating a temp buffer is nasty, but just stepping * through writing zeroes is awkward. This will do for now. */ uint8_t zeroes[size]; #ifdef DEBUG_TCE fprintf(stderr, "spapr_tce_dma_zero taddr=0x%llx size...
true
qemu
ad0ebb91cd8b5fdc4a583b03645677771f420a46
int spapr_tce_dma_zero(VIOsPAPRDevice *dev, uint64_t taddr, uint32_t size) { uint8_t zeroes[size]; #ifdef DEBUG_TCE fprintf(stderr, "spapr_tce_dma_zero taddr=0x%llx size=0x%x\n", (unsigned long long)taddr, size); #endif memset(zeroes, 0, size); return spapr_tce_dma_write(...
{ "code": [ "#ifdef DEBUG_TCE", "#endif", "#ifdef DEBUG_TCE", "#endif", "#ifdef DEBUG_TCE", " (unsigned long long)taddr, size);", "#endif", "#ifdef DEBUG_TCE", "#endif", "#ifdef DEBUG_TCE", "#endif", "int spapr_tce_dma_zero(VIOsPAPRDevice *dev, uint64_t taddr...
int FUNC_0(VIOsPAPRDevice *VAR_0, uint64_t VAR_1, uint32_t VAR_2) { uint8_t zeroes[VAR_2]; #ifdef DEBUG_TCE fprintf(stderr, "FUNC_0 VAR_1=0x%llx VAR_2=0x%x\n", (unsigned long long)VAR_1, VAR_2); #endif memset(zeroes, 0, VAR_2); return spapr_tce_dma_write(VAR_0, VAR_1, zer...
[ "int FUNC_0(VIOsPAPRDevice *VAR_0, uint64_t VAR_1, uint32_t VAR_2)\n{", "uint8_t zeroes[VAR_2];", "#ifdef DEBUG_TCE\nfprintf(stderr, \"FUNC_0 VAR_1=0x%llx VAR_2=0x%x\\n\",\n(unsigned long long)VAR_1, VAR_2);", "#endif\nmemset(zeroes, 0, VAR_2);", "return spapr_tce_dma_write(VAR_0, VAR_1, zeroes, VAR_2);", ...
[ 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 9 ], [ 13, 15, 17 ], [ 19, 23 ], [ 25 ], [ 27 ] ]
12,390
static void do_video_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVPicture *picture1) { int n1, n2, nb, i, ret, frame_number; AVPicture *picture, *picture2, *pict; AVPicture picture_tmp1, picture_tmp2; ...
true
FFmpeg
544286b3d39365b30298ae07e66a755200b0895c
static void do_video_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVPicture *picture1) { int n1, n2, nb, i, ret, frame_number; AVPicture *picture, *picture2, *pict; AVPicture picture_tmp1, picture_tmp2; ...
{ "code": [ " UINT8 video_buffer[128*1024];", " UINT8 video_buffer[128*1024];" ], "line_no": [ 17, 17 ] }
static void FUNC_0(AVFormatContext *VAR_0, AVOutputStream *VAR_1, AVInputStream *VAR_2, AVPicture *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; AVPicture *picture, *picture2, *pict; AVPicture picture_tmp1, picture_...
[ "static void FUNC_0(AVFormatContext *VAR_0,\nAVOutputStream *VAR_1,\nAVInputStream *VAR_2,\nAVPicture *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "AVPicture *picture, *picture2, *pict;", "AVPicture picture_tmp1, picture_tmp2;", "UINT8 video_buffer[128*1024];", "UINT8 *buf = NULL, *buf1 =...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 49 ], [ 51 ], [ 57 ], [ 59 ...
12,391
static void test_visitor_in_fuzz(TestInputVisitorData *data, const void *unused) { int64_t ires; bool bres; double nres; char *sres; EnumOne eres; Error *errp = NULL; Visitor *v; unsigned int i; char buf[10000]; for (i = 0; i < 100; ...
true
qemu
0184543814354d37eab75132712c3874d71dd776
static void test_visitor_in_fuzz(TestInputVisitorData *data, const void *unused) { int64_t ires; bool bres; double nres; char *sres; EnumOne eres; Error *errp = NULL; Visitor *v; unsigned int i; char buf[10000]; for (i = 0; i < 100; ...
{ "code": [ " Error *errp = NULL;", " visit_type_int(v, &ires, NULL, &errp);", " visit_type_bool(v, &bres, NULL, &errp);", " visit_type_number(v, &nres, NULL, &errp);", " visit_type_str(v, &sres, NULL, &errp);", " visit_type_EnumOne(v, &eres, NULL, &errp);...
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { int64_t ires; bool bres; double VAR_2; char *VAR_3; EnumOne eres; Error *errp = NULL; Visitor *v; unsigned int VAR_4; char VAR_5[10000]; for (VAR_4 = 0; VAR_4 < 100...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "int64_t ires;", "bool bres;", "double VAR_2;", "char *VAR_3;", "EnumOne eres;", "Error *errp = NULL;", "Visitor *v;", "unsigned int VAR_4;", "char VAR_5[10000];", "for (VAR_4 = 0; VAR_4 < 100; VAR_4++) {", "unsigned int...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
12,392
static inline int _find_pte(CPUState *env, mmu_ctx_t *ctx, int is_64b, int h, int rw, int type, int target_page_bits) { target_phys_addr_t pteg_off; target_ulong pte0, pte1; int i, good = -1; int ret, r; ret = -1; /* No entry found */ pteg_off = get_pteg_off...
true
qemu
decb471488dd9e7e7ab9957f120cb501c4489f63
static inline int _find_pte(CPUState *env, mmu_ctx_t *ctx, int is_64b, int h, int rw, int type, int target_page_bits) { target_phys_addr_t pteg_off; target_ulong pte0, pte1; int i, good = -1; int ret, r; ret = -1; pteg_off = get_pteg_offset(env, ctx->hash[h...
{ "code": [ " pteg_base + (i * 16), pte0, pte1, (int)(pte0 & 1), h,", " pteg_base + (i * 8), pte0, pte1, (int)(pte0 >> 31), h," ], "line_no": [ 63, 93 ] }
static inline int FUNC_0(CPUState *VAR_0, mmu_ctx_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { target_phys_addr_t pteg_off; target_ulong pte0, pte1; int VAR_7, VAR_8 = -1; int VAR_9, VAR_10; VAR_9 = -1; pteg_off = get_pteg_offset(VAR_0...
[ "static inline int FUNC_0(CPUState *VAR_0, mmu_ctx_t *VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6)\n{", "target_phys_addr_t pteg_off;", "target_ulong pte0, pte1;", "int VAR_7, VAR_8 = -1;", "int VAR_9, VAR_10;", "VAR_9 = -1;", "pteg_off = get_pteg_offset(VAR_0, VAR_1->hash[VAR_3],\nVAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 49, 51, 53 ], [...
12,393
static int decode_sequence_header(AVCodecContext *avctx, GetBitContext *gb) { VC9Context *v = avctx->priv_data; v->profile = get_bits(gb, 2); av_log(avctx, AV_LOG_DEBUG, "Profile: %i\n", v->profile); #if HAS_ADVANCED_PROFILE if (v->profile > PROFILE_MAIN) { v->level = get_bits(gb...
false
FFmpeg
e5540b3fd30367ce3cc33b2f34a04b660dbc4b38
static int decode_sequence_header(AVCodecContext *avctx, GetBitContext *gb) { VC9Context *v = avctx->priv_data; v->profile = get_bits(gb, 2); av_log(avctx, AV_LOG_DEBUG, "Profile: %i\n", v->profile); #if HAS_ADVANCED_PROFILE if (v->profile > PROFILE_MAIN) { v->level = get_bits(gb...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, GetBitContext *VAR_1) { VC9Context *v = VAR_0->priv_data; v->profile = get_bits(VAR_1, 2); av_log(VAR_0, AV_LOG_DEBUG, "Profile: %i\n", v->profile); #if HAS_ADVANCED_PROFILE if (v->profile > PROFILE_MAIN) { v->level = get_bits(VAR_1, 3); ...
[ "static int FUNC_0(AVCodecContext *VAR_0, GetBitContext *VAR_1)\n{", "VC9Context *v = VAR_0->priv_data;", "v->profile = get_bits(VAR_1, 2);", "av_log(VAR_0, AV_LOG_DEBUG, \"Profile: %i\\n\", v->profile);", "#if HAS_ADVANCED_PROFILE\nif (v->profile > PROFILE_MAIN)\n{", "v->level = get_bits(VAR_1, 3);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47, 49 ], [ 51, 53...
12,394
static int mov_probe(AVProbeData *p) { int64_t offset; uint32_t tag; int score = 0; /* check file header */ offset = 0; for (;;) { /* ignore invalid offset */ if ((offset + 8) > (unsigned int)p->buf_size) return score; tag = AV_RL32(p->buf + offse...
false
FFmpeg
7abf394814d818973db562102f21ab9d10540840
static int mov_probe(AVProbeData *p) { int64_t offset; uint32_t tag; int score = 0; offset = 0; for (;;) { if ((offset + 8) > (unsigned int)p->buf_size) return score; tag = AV_RL32(p->buf + offset + 4); switch(tag) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { int64_t offset; uint32_t tag; int VAR_1 = 0; offset = 0; for (;;) { if ((offset + 8) > (unsigned int)VAR_0->buf_size) return VAR_1; tag = AV_RL32(VAR_0->buf + offset + 4); switch(tag) { ...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "int64_t offset;", "uint32_t tag;", "int VAR_1 = 0;", "offset = 0;", "for (;;) {", "if ((offset + 8) > (unsigned int)VAR_0->buf_size)\nreturn VAR_1;", "tag = AV_RL32(VAR_0->buf + offset + 4);", "switch(tag) {", "case MKTAG('j','P',' ',' '):\ncase MKTAG('...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31, 33, 35, 37, 39, 41, 43 ], [ 47, 49, 51, 53, 55, 57 ], [ 59, 61, 63, 65, 67 ...
12,398
static inline void RENAME(rgb32to15)(const uint8_t *src, uint8_t *dst, long src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX mm_end = end - 15; #if 1 //is faster only if multiplies ar...
false
FFmpeg
4bff9ef9d0781c4de228bf1f85634d2706fc589b
static inline void RENAME(rgb32to15)(const uint8_t *src, uint8_t *dst, long src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX mm_end = end - 15; #if 1 asm volatile( "movq %3, %%m...
{ "code": [], "line_no": [] }
static inline void FUNC_0(rgb32to15)(const uint8_t *src, uint8_t *dst, long src_size) { const uint8_t *VAR_0 = src; const uint8_t *VAR_1; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; #ifdef HAVE_MMX mm_end = VAR_1 - 15; #if 1 asm volatile( ...
[ "static inline void FUNC_0(rgb32to15)(const uint8_t *src, uint8_t *dst, long src_size)\n{", "const uint8_t *VAR_0 = src;", "const uint8_t *VAR_1;", "#ifdef HAVE_MMX\nconst uint8_t *mm_end;", "#endif\nuint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "#ifdef HAVE_MMX\nmm_end = VAR_1 - 15;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65,...
12,400
static int source_request_frame(AVFilterLink *outlink) { Frei0rContext *frei0r = outlink->src->priv; AVFilterBufferRef *picref = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h); int ret; picref->video->pixel_aspect = (AVRational) {1, 1}; picref->pts = frei0r->pts++; ...
false
FFmpeg
1dc42050185d63c1de5d16146fbaee92640af187
static int source_request_frame(AVFilterLink *outlink) { Frei0rContext *frei0r = outlink->src->priv; AVFilterBufferRef *picref = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h); int ret; picref->video->pixel_aspect = (AVRational) {1, 1}; picref->pts = frei0r->pts++; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0) { Frei0rContext *frei0r = VAR_0->src->priv; AVFilterBufferRef *picref = ff_get_video_buffer(VAR_0, AV_PERM_WRITE, VAR_0->w, VAR_0->h); int VAR_1; picref->video->pixel_aspect = (AVRational) {1, 1}; picref->pts = frei0r->pts++; picref->pos = -1; ...
[ "static int FUNC_0(AVFilterLink *VAR_0)\n{", "Frei0rContext *frei0r = VAR_0->src->priv;", "AVFilterBufferRef *picref = ff_get_video_buffer(VAR_0, AV_PERM_WRITE, VAR_0->w, VAR_0->h);", "int VAR_1;", "picref->video->pixel_aspect = (AVRational) {1, 1};", "picref->pts = frei0r->pts++;", "picref->pos = -1;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 41 ], [ 45, 47 ], [ 51 ], [ 53 ] ]
12,401
static int vmdk_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVVmdkState *s = bs->opaque; int index_in_cluster, n; uint64_t cluster_offset; cluster_offset = get_cluster_offset(bs, sector_num << 9, 0); index_in_cluster = ...
true
qemu
630530a6529bc3da9ab8aead7053dc753cb9ac77
static int vmdk_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVVmdkState *s = bs->opaque; int index_in_cluster, n; uint64_t cluster_offset; cluster_offset = get_cluster_offset(bs, sector_num << 9, 0); index_in_cluster = ...
{ "code": [ " cluster_offset = get_cluster_offset(bs, sector_num << 9, 0);" ], "line_no": [ 15 ] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2, int *VAR_3) { BDRVVmdkState *s = VAR_0->opaque; int VAR_4, VAR_5; uint64_t cluster_offset; cluster_offset = get_cluster_offset(VAR_0, VAR_1 << 9, 0); VAR_4 = VAR_1 % s->cluster_sectors; V...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nint VAR_2, int *VAR_3)\n{", "BDRVVmdkState *s = VAR_0->opaque;", "int VAR_4, VAR_5;", "uint64_t cluster_offset;", "cluster_offset = get_cluster_offset(VAR_0, VAR_1 << 9, 0);", "VAR_4 = VAR_1 % s->cluster_sectors;", "VAR_5 = s->cluster_sectors -...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ] ]
12,403
void put_vp8_epel_h_altivec_core(uint8_t *dst, int dst_stride, uint8_t *src, int src_stride, int h, int mx, int w, int is6tap) { LOAD_H_SUBPEL_FILTER(mx-1); vec_u8 align_vec0, align_vec8, permh0, permh8, filt; vec_u8 perm_6tap0, perm_6t...
true
FFmpeg
e0e46cae377347cbe1cd27c0d85568921b12c2ad
void put_vp8_epel_h_altivec_core(uint8_t *dst, int dst_stride, uint8_t *src, int src_stride, int h, int mx, int w, int is6tap) { LOAD_H_SUBPEL_FILTER(mx-1); vec_u8 align_vec0, align_vec8, permh0, permh8, filt; vec_u8 perm_6tap0, perm_6t...
{ "code": [ " vec_u8 perm_inner = { 1,2,3,4, 2,3,4,5, 3,4,5,6, 4,5,6,7 };", " align_vec0 = vec_lvsl( -2, src);", " align_vec8 = vec_lvsl(8-2, src);" ], "line_no": [ 23, 33, 35 ] }
void FUNC_0(uint8_t *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { LOAD_H_SUBPEL_FILTER(VAR_5-1); vec_u8 align_vec0, align_vec8, permh0, permh8, filt; vec_u8 perm_6tap0, perm_6tap8, perml0, p...
[ "void FUNC_0(uint8_t *VAR_0, int VAR_1,\nuint8_t *VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6, int VAR_7)\n{", "LOAD_H_SUBPEL_FILTER(VAR_5-1);", "vec_u8 align_vec0, align_vec8, permh0, permh8, filt;", "vec_u8 perm_6tap0, perm_6tap8, perml0, perml8;", "vec_u8 a, b, pixh, pixl, outer;", "vec_s16 f16h...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
12,404
static int mpidr_read(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t *value) { CPUState *cs = CPU(arm_env_get_cpu(env)); uint32_t mpidr = cs->cpu_index; /* We don't support setting cluster ID ([8..11]) * so these bits always RAZ. */ if (arm_feature(env, ARM_FE...
true
qemu
78dbbbe4dff95369c63bf77ee0df23371e1d6602
static int mpidr_read(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t *value) { CPUState *cs = CPU(arm_env_get_cpu(env)); uint32_t mpidr = cs->cpu_index; if (arm_feature(env, ARM_FEATURE_V7MP)) { mpidr |= (1 << 31); } *value = mpid...
{ "code": [ " mpidr |= (1 << 31);" ], "line_no": [ 19 ] }
static int FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t *VAR_2) { CPUState *cs = CPU(arm_env_get_cpu(VAR_0)); uint32_t mpidr = cs->cpu_index; if (arm_feature(VAR_0, ARM_FEATURE_V7MP)) { mpidr |= (1 << 31); } *VAR_2 =...
[ "static int FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1,\nuint64_t *VAR_2)\n{", "CPUState *cs = CPU(arm_env_get_cpu(VAR_0));", "uint32_t mpidr = cs->cpu_index;", "if (arm_feature(VAR_0, ARM_FEATURE_V7MP)) {", "mpidr |= (1 << 31);", "}", "*VAR_2 = mpidr;", "return 0;", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 17 ], [ 19 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
12,405
void cpu_loop (CPUSPARCState *env) { int trapnr, ret; target_siginfo_t info; while (1) { trapnr = cpu_sparc_exec (env); switch (trapnr) { #ifndef TARGET_SPARC64 case 0x88: case 0x90: #else case 0x110: case 0x16d: #endif ret = do_s...
true
qemu
8194f35a0c71a3bf169459bf715bea53b7bbc904
void cpu_loop (CPUSPARCState *env) { int trapnr, ret; target_siginfo_t info; while (1) { trapnr = cpu_sparc_exec (env); switch (trapnr) { #ifndef TARGET_SPARC64 case 0x88: case 0x90: #else case 0x110: case 0x16d: #endif ret = do_s...
{ "code": [ " info._sifields._sigfault._addr = env->tsptr->tpc;" ], "line_no": [ 167 ] }
void FUNC_0 (CPUSPARCState *VAR_0) { int VAR_1, VAR_2; target_siginfo_t info; while (1) { VAR_1 = cpu_sparc_exec (VAR_0); switch (VAR_1) { #ifndef TARGET_SPARC64 case 0x88: case 0x90: #else case 0x110: case 0x16d: #endif VAR_2 = d...
[ "void FUNC_0 (CPUSPARCState *VAR_0)\n{", "int VAR_1, VAR_2;", "target_siginfo_t info;", "while (1) {", "VAR_1 = cpu_sparc_exec (VAR_0);", "switch (VAR_1) {", "#ifndef TARGET_SPARC64\ncase 0x88:\ncase 0x90:\n#else\ncase 0x110:\ncase 0x16d:\n#endif\nVAR_2 = do_syscall (VAR_0, VAR_0->gregs[1],\nVAR_0->regw...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [ 51, 53 ], [ 55 ], [ 57, 59...
12,406
static av_cold int init(AVFilterContext *ctx, const char *args0) { PanContext *const pan = ctx->priv; char *arg, *arg0, *tokenizer, *args = av_strdup(args0); int out_ch_id, in_ch_id, len, named, ret; int nb_in_channels[2] = { 0, 0 }; // number of unnamed and named input channels double gain; ...
true
FFmpeg
e3a1eb9edf65edda301f3a727f11e0224b9f5ae2
static av_cold int init(AVFilterContext *ctx, const char *args0) { PanContext *const pan = ctx->priv; char *arg, *arg0, *tokenizer, *args = av_strdup(args0); int out_ch_id, in_ch_id, len, named, ret; int nb_in_channels[2] = { 0, 0 }; double gain; if (!args0) { av_log(ctx, AV_L...
{ "code": [ " if (sscanf(arg, \" %lf %n* %n\", &gain, &len, &len))", " skip_spaces(&arg);" ], "line_no": [ 121, 163 ] }
static av_cold int FUNC_0(AVFilterContext *ctx, const char *args0) { PanContext *const pan = ctx->priv; char *VAR_0, *VAR_1, *VAR_2, *VAR_3 = av_strdup(args0); int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9[2] = { 0, 0 }; double VAR_10; if (!args0) { av_log(ctx, AV_LOG_ERROR...
[ "static av_cold int FUNC_0(AVFilterContext *ctx, const char *args0)\n{", "PanContext *const pan = ctx->priv;", "char *VAR_0, *VAR_1, *VAR_2, *VAR_3 = av_strdup(args0);", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9[2] = { 0, 0 };", "double VAR_10;", "if (!args0) {", "av_log(ctx, AV_LOG_ERROR,\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 47 ], [ 51 ], [ 53,...
12,407
static void pvpanic_isa_realizefn(DeviceState *dev, Error **errp) { ISADevice *d = ISA_DEVICE(dev); PVPanicState *s = ISA_PVPANIC_DEVICE(dev); static bool port_configured; FWCfgState *fw_cfg; isa_register_ioport(d, &s->io, s->ioport); if (!port_configured) { fw_cfg = fw_cfg_f...
true
qemu
bc3e6a0d6c8ab6cd7cd4b576ed567756f1dcabd2
static void pvpanic_isa_realizefn(DeviceState *dev, Error **errp) { ISADevice *d = ISA_DEVICE(dev); PVPanicState *s = ISA_PVPANIC_DEVICE(dev); static bool port_configured; FWCfgState *fw_cfg; isa_register_ioport(d, &s->io, s->ioport); if (!port_configured) { fw_cfg = fw_cfg_f...
{ "code": [ " static bool port_configured;", " FWCfgState *fw_cfg;", " if (!port_configured) {", " fw_cfg = fw_cfg_find();", " if (fw_cfg) {", " fw_cfg_add_file(fw_cfg, \"etc/pvpanic-port\",", " g_memdup(&s->ioport, sizeof(s->iop...
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { ISADevice *d = ISA_DEVICE(VAR_0); PVPanicState *s = ISA_PVPANIC_DEVICE(VAR_0); static bool VAR_2; FWCfgState *fw_cfg; isa_register_ioport(d, &s->io, s->ioport); if (!VAR_2) { fw_cfg = fw_cfg_find(); if (fw_cfg) ...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "ISADevice *d = ISA_DEVICE(VAR_0);", "PVPanicState *s = ISA_PVPANIC_DEVICE(VAR_0);", "static bool VAR_2;", "FWCfgState *fw_cfg;", "isa_register_ioport(d, &s->io, s->ioport);", "if (!VAR_2) {", "fw_cfg = fw_cfg_find();", "if (fw_cfg) {", "...
[ 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
12,408
static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid, uint64_t pictx, bool bsr) { XHCISlot *slot; USBPort *uport; USBDevice *dev; dma_addr_t ictx, octx, dcbaap; uint64_t poctx; uint32_t ictl_ctx[2]; uint32_t slot_ctx[4]; uint32_t ep0_ct...
true
qemu
a67188743bc30a3ad1358b8cd0a2a3cb64c10ff9
static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid, uint64_t pictx, bool bsr) { XHCISlot *slot; USBPort *uport; USBDevice *dev; dma_addr_t ictx, octx, dcbaap; uint64_t poctx; uint32_t ictl_ctx[2]; uint32_t slot_ctx[4]; uint32_t ep0_ct...
{ "code": [], "line_no": [] }
static TRBCCode FUNC_0(XHCIState *xhci, unsigned int slotid, uint64_t pictx, bool bsr) { XHCISlot *slot; USBPort *uport; USBDevice *dev; dma_addr_t ictx, octx, dcbaap; uint64_t poctx; uint32_t ictl_ctx[2]; uint32_t slot_ctx[4]; uint32_t ep0_ctx[5]; i...
[ "static TRBCCode FUNC_0(XHCIState *xhci, unsigned int slotid,\nuint64_t pictx, bool bsr)\n{", "XHCISlot *slot;", "USBPort *uport;", "USBDevice *dev;", "dma_addr_t ictx, octx, dcbaap;", "uint64_t poctx;", "uint32_t ictl_ctx[2];", "uint32_t slot_ctx[4];", "uint32_t ep0_ctx[5];", "int VAR_0;", "TRB...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ ...
12,410
static int compare_ocl_device_desc(const void *a, const void *b) { return ((const OpenCLDeviceBenchmark*)a)->runtime - ((const OpenCLDeviceBenchmark*)b)->runtime; }
true
FFmpeg
92e483f8ed70d88d4f64337f65bae212502735d4
static int compare_ocl_device_desc(const void *a, const void *b) { return ((const OpenCLDeviceBenchmark*)a)->runtime - ((const OpenCLDeviceBenchmark*)b)->runtime; }
{ "code": [ " return ((const OpenCLDeviceBenchmark*)a)->runtime - ((const OpenCLDeviceBenchmark*)b)->runtime;" ], "line_no": [ 5 ] }
static int FUNC_0(const void *VAR_0, const void *VAR_1) { return ((const OpenCLDeviceBenchmark*)VAR_0)->runtime - ((const OpenCLDeviceBenchmark*)VAR_1)->runtime; }
[ "static int FUNC_0(const void *VAR_0, const void *VAR_1)\n{", "return ((const OpenCLDeviceBenchmark*)VAR_0)->runtime - ((const OpenCLDeviceBenchmark*)VAR_1)->runtime;", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
12,411
void ff_vc1dsp_init_mmx(VC1DSPContext *dsp) { int mm_flags = av_get_cpu_flags(); #if HAVE_INLINE_ASM if (mm_flags & AV_CPU_FLAG_MMX) { dsp->put_vc1_mspel_pixels_tab[ 0] = ff_put_vc1_mspel_mc00_mmx; dsp->put_vc1_mspel_pixels_tab[ 4] = put_vc1_mspel_mc01_mmx; dsp->put_vc1_mspel_pi...
false
FFmpeg
f2fd167835b6f039a593e46ab3a84e1b9a453660
void ff_vc1dsp_init_mmx(VC1DSPContext *dsp) { int mm_flags = av_get_cpu_flags(); #if HAVE_INLINE_ASM if (mm_flags & AV_CPU_FLAG_MMX) { dsp->put_vc1_mspel_pixels_tab[ 0] = ff_put_vc1_mspel_mc00_mmx; dsp->put_vc1_mspel_pixels_tab[ 4] = put_vc1_mspel_mc01_mmx; dsp->put_vc1_mspel_pi...
{ "code": [], "line_no": [] }
void FUNC_0(VC1DSPContext *VAR_0) { int VAR_1 = av_get_cpu_flags(); #if HAVE_INLINE_ASM if (VAR_1 & AV_CPU_FLAG_MMX) { VAR_0->put_vc1_mspel_pixels_tab[ 0] = ff_put_vc1_mspel_mc00_mmx; VAR_0->put_vc1_mspel_pixels_tab[ 4] = put_vc1_mspel_mc01_mmx; VAR_0->put_vc1_mspel_pixels_tab[ ...
[ "void FUNC_0(VC1DSPContext *VAR_0)\n{", "int VAR_1 = av_get_cpu_flags();", "#if HAVE_INLINE_ASM\nif (VAR_1 & AV_CPU_FLAG_MMX) {", "VAR_0->put_vc1_mspel_pixels_tab[ 0] = ff_put_vc1_mspel_mc00_mmx;", "VAR_0->put_vc1_mspel_pixels_tab[ 4] = put_vc1_mspel_mc01_mmx;", "VAR_0->put_vc1_mspel_pixels_tab[ 8] = put_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
12,413
static av_cold int ffv1_encode_close(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); ffv1_close(avctx); return 0; }
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int ffv1_encode_close(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); ffv1_close(avctx); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); ffv1_close(avctx); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "av_frame_free(&avctx->coded_frame);", "ffv1_close(avctx);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
12,414
static inline void conv_to_float(float *arr, int32_t *cof, int num) { int i; for (i = 0; i < num; i++) arr[i] = (float)cof[i]/INT32_MAX; }
false
FFmpeg
f20b67173ca6a05b8c3dee02dad3b7243b96292b
static inline void conv_to_float(float *arr, int32_t *cof, int num) { int i; for (i = 0; i < num; i++) arr[i] = (float)cof[i]/INT32_MAX; }
{ "code": [], "line_no": [] }
static inline void FUNC_0(float *VAR_0, int32_t *VAR_1, int VAR_2) { int VAR_3; for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) VAR_0[VAR_3] = (float)VAR_1[VAR_3]/INT32_MAX; }
[ "static inline void FUNC_0(float *VAR_0, int32_t *VAR_1, int VAR_2)\n{", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++)", "VAR_0[VAR_3] = (float)VAR_1[VAR_3]/INT32_MAX;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
12,415
static int process_input(int file_index) { InputFile *ifile = input_files[file_index]; AVFormatContext *is; InputStream *ist; AVPacket pkt; int ret, i, j; int64_t duration; int64_t pkt_dts; is = ifile->ctx; ret = get_input_packet(ifile, &pkt); if (ret == AVERROR(E...
false
FFmpeg
46cbb4c2312c654c44a94054e870840913a80024
static int process_input(int file_index) { InputFile *ifile = input_files[file_index]; AVFormatContext *is; InputStream *ist; AVPacket pkt; int ret, i, j; int64_t duration; int64_t pkt_dts; is = ifile->ctx; ret = get_input_packet(ifile, &pkt); if (ret == AVERROR(E...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0) { InputFile *ifile = input_files[VAR_0]; AVFormatContext *is; InputStream *ist; AVPacket pkt; int VAR_1, VAR_2, VAR_3; int64_t duration; int64_t pkt_dts; is = ifile->ctx; VAR_1 = get_input_packet(ifile, &pkt); if (VAR_1 == AVERROR(EAGA...
[ "static int FUNC_0(int VAR_0)\n{", "InputFile *ifile = input_files[VAR_0];", "AVFormatContext *is;", "InputStream *ist;", "AVPacket pkt;", "int VAR_1, VAR_2, VAR_3;", "int64_t duration;", "int64_t pkt_dts;", "is = ifile->ctx;", "VAR_1 = get_input_packet(ifile, &pkt);", "if (VAR_1 == AVERROR(EAG...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [...
12,416
void ff_put_h264_qpel4_mc23_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_midv_qrt_4w_msa(src - (2 * stride) - 2, stride, dst, stride, 4, 1); }
false
FFmpeg
662234a9a22f1cd0f0ac83b8bb1ffadedca90c0a
void ff_put_h264_qpel4_mc23_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_midv_qrt_4w_msa(src - (2 * stride) - 2, stride, dst, stride, 4, 1); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_midv_qrt_4w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 4, 1); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_midv_qrt_4w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 4, 1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
12,417
static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) { AVFilterLink *outlink = inlink->dst->outputs[0]; AVFilterBufferRef *outpicref = NULL; int ret = 0; if (inpicref->perms & AV_PERM_PRESERVE) { outpicref = ff_get_video_buffer(outlink, AV_PERM_WRITE, ...
false
FFmpeg
1dc42050185d63c1de5d16146fbaee92640af187
static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) { AVFilterLink *outlink = inlink->dst->outputs[0]; AVFilterBufferRef *outpicref = NULL; int ret = 0; if (inpicref->perms & AV_PERM_PRESERVE) { outpicref = ff_get_video_buffer(outlink, AV_PERM_WRITE, ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterLink *outlink = VAR_0->dst->outputs[0]; AVFilterBufferRef *outpicref = NULL; int VAR_2 = 0; if (VAR_1->perms & AV_PERM_PRESERVE) { outpicref = ff_get_video_buffer(outlink, AV_PERM_WRITE, ...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterLink *outlink = VAR_0->dst->outputs[0];", "AVFilterBufferRef *outpicref = NULL;", "int VAR_2 = 0;", "if (VAR_1->perms & AV_PERM_PRESERVE) {", "outpicref = ff_get_video_buffer(outlink, AV_PERM_WRITE,\noutlink->w, outlink->h);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
12,420
host_memory_backend_memory_complete(UserCreatable *uc, Error **errp) { HostMemoryBackend *backend = MEMORY_BACKEND(uc); HostMemoryBackendClass *bc = MEMORY_BACKEND_GET_CLASS(uc); Error *local_err = NULL; void *ptr; uint64_t sz; if (bc->alloc) { bc->alloc(backend, &local_err); ...
true
qemu
1e356fc14beaa3ece6c0e961bd479af58be3198b
host_memory_backend_memory_complete(UserCreatable *uc, Error **errp) { HostMemoryBackend *backend = MEMORY_BACKEND(uc); HostMemoryBackendClass *bc = MEMORY_BACKEND_GET_CLASS(uc); Error *local_err = NULL; void *ptr; uint64_t sz; if (bc->alloc) { bc->alloc(backend, &local_err); ...
{ "code": [ " &local_err);" ], "line_no": [ 137 ] }
FUNC_0(UserCreatable *VAR_0, Error **VAR_1) { HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0); HostMemoryBackendClass *bc = MEMORY_BACKEND_GET_CLASS(VAR_0); Error *local_err = NULL; void *VAR_2; uint64_t sz; if (bc->alloc) { bc->alloc(backend, &local_err); if (local...
[ "FUNC_0(UserCreatable *VAR_0, Error **VAR_1)\n{", "HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0);", "HostMemoryBackendClass *bc = MEMORY_BACKEND_GET_CLASS(VAR_0);", "Error *local_err = NULL;", "void *VAR_2;", "uint64_t sz;", "if (bc->alloc) {", "bc->alloc(backend, &local_err);", "if (local_err)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47,...
12,421
static void fill_gv_table(int table[256 + 2*YUVRGB_TABLE_HEADROOM], const int elemsize, const int inc) { int i; int off = -(inc >> 9); for (i = 0; i < 256 + 2*YUVRGB_TABLE_HEADROOM; i++) { int64_t cb = av_clip(i-YUVRGB_TABLE_HEADROOM, 0, 255)*inc; table[i] = elemsize * (off + (cb ...
true
FFmpeg
cccb45751e93142d71be78f6bb90bbfb50ee13be
static void fill_gv_table(int table[256 + 2*YUVRGB_TABLE_HEADROOM], const int elemsize, const int inc) { int i; int off = -(inc >> 9); for (i = 0; i < 256 + 2*YUVRGB_TABLE_HEADROOM; i++) { int64_t cb = av_clip(i-YUVRGB_TABLE_HEADROOM, 0, 255)*inc; table[i] = elemsize * (off + (cb ...
{ "code": [ "static void fill_gv_table(int table[256 + 2*YUVRGB_TABLE_HEADROOM], const int elemsize, const int inc)" ], "line_no": [ 1 ] }
static void FUNC_0(int VAR_0[256 + 2*YUVRGB_TABLE_HEADROOM], const int VAR_1, const int VAR_2) { int VAR_3; int VAR_4 = -(VAR_2 >> 9); for (VAR_3 = 0; VAR_3 < 256 + 2*YUVRGB_TABLE_HEADROOM; VAR_3++) { int64_t cb = av_clip(VAR_3-YUVRGB_TABLE_HEADROOM, 0, 255)*VAR_2; VAR_0[VAR_3] = ...
[ "static void FUNC_0(int VAR_0[256 + 2*YUVRGB_TABLE_HEADROOM], const int VAR_1, const int VAR_2)\n{", "int VAR_3;", "int VAR_4 = -(VAR_2 >> 9);", "for (VAR_3 = 0; VAR_3 < 256 + 2*YUVRGB_TABLE_HEADROOM; VAR_3++) {", "int64_t cb = av_clip(VAR_3-YUVRGB_TABLE_HEADROOM, 0, 255)*VAR_2;", "VAR_0[VAR_3] = VAR_1...
[ 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
12,422
static ssize_t write_console_data(SCLPEvent *event, const uint8_t *buf, size_t len) { SCLPConsole *scon = SCLP_CONSOLE(event); if (!scon->chr) { /* If there's no backend, we can just say we consumed all data. */ return len; } return qemu_ch...
true
qemu
6ab3fc32ea640026726bc5f9f4db622d0954fb8a
static ssize_t write_console_data(SCLPEvent *event, const uint8_t *buf, size_t len) { SCLPConsole *scon = SCLP_CONSOLE(event); if (!scon->chr) { return len; } return qemu_chr_fe_write_all(scon->chr, buf, len); }
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(SCLPEvent *event, const uint8_t *buf, size_t len) { SCLPConsole *scon = SCLP_CONSOLE(event); if (!scon->chr) { return len; } return qemu_chr_fe_write_all(scon->chr, buf, len); }
[ "static ssize_t FUNC_0(SCLPEvent *event, const uint8_t *buf,\nsize_t len)\n{", "SCLPConsole *scon = SCLP_CONSOLE(event);", "if (!scon->chr) {", "return len;", "}", "return qemu_chr_fe_write_all(scon->chr, buf, len);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ] ]
12,423
static int rewrite_footer(BlockDriverState* bs) { int ret; BDRVVPCState *s = bs->opaque; int64_t offset = s->free_data_block_offset; ret = bdrv_pwrite(bs->file, offset, s->footer_buf, HEADER_SIZE); if (ret < 0) return ret; return 0; }
true
qemu
078a458e077d6b0db262c4b05fee51d01de2d1d2
static int rewrite_footer(BlockDriverState* bs) { int ret; BDRVVPCState *s = bs->opaque; int64_t offset = s->free_data_block_offset; ret = bdrv_pwrite(bs->file, offset, s->footer_buf, HEADER_SIZE); if (ret < 0) return ret; return 0; }
{ "code": [ " ret = bdrv_pwrite(bs->file, offset, s->footer_buf, HEADER_SIZE);" ], "line_no": [ 13 ] }
static int FUNC_0(BlockDriverState* VAR_0) { int VAR_1; BDRVVPCState *s = VAR_0->opaque; int64_t offset = s->free_data_block_offset; VAR_1 = bdrv_pwrite(VAR_0->file, offset, s->footer_buf, HEADER_SIZE); if (VAR_1 < 0) return VAR_1; return 0; }
[ "static int FUNC_0(BlockDriverState* VAR_0)\n{", "int VAR_1;", "BDRVVPCState *s = VAR_0->opaque;", "int64_t offset = s->free_data_block_offset;", "VAR_1 = bdrv_pwrite(VAR_0->file, offset, s->footer_buf, HEADER_SIZE);", "if (VAR_1 < 0)\nreturn VAR_1;", "return 0;", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ] ]
12,424
static uint32_t sdhci_read_dataport(SDHCIState *s, unsigned size) { uint32_t value = 0; int i; /* first check that a valid data exists in host controller input buffer */ if ((s->prnsts & SDHC_DATA_AVAILABLE) == 0) { ERRPRINT("Trying to read from empty buffer\n"); return 0; ...
true
qemu
8be487d8f184f2f721cabeac559fb7a6cba18c95
static uint32_t sdhci_read_dataport(SDHCIState *s, unsigned size) { uint32_t value = 0; int i; if ((s->prnsts & SDHC_DATA_AVAILABLE) == 0) { ERRPRINT("Trying to read from empty buffer\n"); return 0; } for (i = 0; i < size; i++) { value |= s->fifo_buffer[s->...
{ "code": [ " ERRPRINT(\"Trying to read from empty buffer\\n\");", " DPRINT_L2(\"All %u bytes of data have been read from input buffer\\n\",", " s->data_count);", " s->data_count);" ], "line_no": [ 15, 33, 35, 35 ] }
static uint32_t FUNC_0(SDHCIState *s, unsigned size) { uint32_t value = 0; int VAR_0; if ((s->prnsts & SDHC_DATA_AVAILABLE) == 0) { ERRPRINT("Trying to read from empty buffer\n"); return 0; } for (VAR_0 = 0; VAR_0 < size; VAR_0++) { value |= s->fifo_buffer[...
[ "static uint32_t FUNC_0(SDHCIState *s, unsigned size)\n{", "uint32_t value = 0;", "int VAR_0;", "if ((s->prnsts & SDHC_DATA_AVAILABLE) == 0) {", "ERRPRINT(\"Trying to read from empty buffer\\n\");", "return 0;", "}", "for (VAR_0 = 0; VAR_0 < size; VAR_0++) {", "value |= s->fifo_buffer[s->data_count]...
[ 0, 0, 0, 0, 1, 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 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 53, 55, 59, 61...
12,425
static int archipelago_aio_segmented_rw(BDRVArchipelagoState *s, size_t count, off_t offset, ArchipelagoAIOCB *aio_cb, int op) { int i, ret, segments_...
true
qemu
5839e53bbc0fec56021d758aab7610df421ed8c8
static int archipelago_aio_segmented_rw(BDRVArchipelagoState *s, size_t count, off_t offset, ArchipelagoAIOCB *aio_cb, int op) { int i, ret, segments_...
{ "code": [ " segreq = g_malloc(sizeof(ArchipelagoSegmentedRequest));" ], "line_no": [ 19 ] }
static int FUNC_0(BDRVArchipelagoState *VAR_0, size_t VAR_1, off_t VAR_2, ArchipelagoAIOCB *VAR_3, int VAR_4) { int VAR_5, VAR_6, VAR_7, VAR_8; A...
[ "static int FUNC_0(BDRVArchipelagoState *VAR_0,\nsize_t VAR_1,\noff_t VAR_2,\nArchipelagoAIOCB *VAR_3,\nint VAR_4)\n{", "int VAR_5, VAR_6, VAR_7, VAR_8;", "ArchipelagoSegmentedRequest *segreq;", "segreq = g_malloc(sizeof(ArchipelagoSegmentedRequest));", "if (VAR_4 == ARCHIP_OP_FLUSH) {", "VAR_7 = 1;", "...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ...
12,427
static int ram_load_dead(QEMUFile *f, void *opaque) { RamDecompressState s1, *s = &s1; uint8_t buf[10]; ram_addr_t i; if (ram_decompress_open(s, f) < 0) return -EINVAL; for(i = 0; i < last_ram_offset; i+= BDRV_HASH_BLOCK_SIZE) { if (ram_decompress_buf(s, buf, 1) < 0) { ...
true
qemu
94fb0909645de18481cc726ee0ec9b5afa861394
static int ram_load_dead(QEMUFile *f, void *opaque) { RamDecompressState s1, *s = &s1; uint8_t buf[10]; ram_addr_t i; if (ram_decompress_open(s, f) < 0) return -EINVAL; for(i = 0; i < last_ram_offset; i+= BDRV_HASH_BLOCK_SIZE) { if (ram_decompress_buf(s, buf, 1) < 0) { ...
{ "code": [ " return 0;", " return 0;", "static int ram_load_dead(QEMUFile *f, void *opaque)", " RamDecompressState s1, *s = &s1;", " uint8_t buf[10];", " ram_addr_t i;", " if (ram_decompress_open(s, f) < 0)", " return -EINVAL;", " for(i = 0; i < last_ra...
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1) { RamDecompressState s1, *s = &s1; uint8_t buf[10]; ram_addr_t i; if (ram_decompress_open(s, VAR_0) < 0) return -EINVAL; for(i = 0; i < last_ram_offset; i+= BDRV_HASH_BLOCK_SIZE) { if (ram_decompress_buf(s, buf, 1) < 0) { ...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1)\n{", "RamDecompressState s1, *s = &s1;", "uint8_t buf[10];", "ram_addr_t i;", "if (ram_decompress_open(s, VAR_0) < 0)\nreturn -EINVAL;", "for(i = 0; i < last_ram_offset; i+= BDRV_HASH_BLOCK_SIZE) {", "if (ram_decompress_buf(s, buf, 1) < 0) {", "fprintf(...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [...
12,428
static void v9fs_attach(void *opaque) { V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; int32_t fid, afid, n_uname; V9fsString uname, aname; V9fsFidState *fidp; size_t offset = 7; V9fsQID qid; ssize_t err; pdu_unmarshal(pdu, offset, "ddssd", &fid, &afid, &uname, &aname, &n_...
true
qemu
c572f23a3e7180dbeab5e86583e43ea2afed6271
static void v9fs_attach(void *opaque) { V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; int32_t fid, afid, n_uname; V9fsString uname, aname; V9fsFidState *fidp; size_t offset = 7; V9fsQID qid; ssize_t err; pdu_unmarshal(pdu, offset, "ddssd", &fid, &afid, &uname, &aname, &n_...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; int32_t fid, afid, n_uname; V9fsString uname, aname; V9fsFidState *fidp; size_t offset = 7; V9fsQID qid; ssize_t err; pdu_unmarshal(pdu, offset, "ddssd", &fid, &afid, &uname, &aname, &n_uname);...
[ "static void FUNC_0(void *VAR_0)\n{", "V9fsPDU *pdu = VAR_0;", "V9fsState *s = pdu->s;", "int32_t fid, afid, n_uname;", "V9fsString uname, aname;", "V9fsFidState *fidp;", "size_t offset = 7;", "V9fsQID qid;", "ssize_t err;", "pdu_unmarshal(pdu, offset, \"ddssd\", &fid, &afid, &uname, &aname, &n_un...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
12,430
static void virtio_blk_free_request(VirtIOBlockReq *req) { if (req) { g_slice_free(VirtQueueElement, req->elem); g_slice_free(VirtIOBlockReq, req); } }
true
qemu
f897bf751fbd95e4015b95d202c706548586813a
static void virtio_blk_free_request(VirtIOBlockReq *req) { if (req) { g_slice_free(VirtQueueElement, req->elem); g_slice_free(VirtIOBlockReq, req); } }
{ "code": [ "static void virtio_blk_free_request(VirtIOBlockReq *req)", " g_slice_free(VirtQueueElement, req->elem);" ], "line_no": [ 1, 7 ] }
static void FUNC_0(VirtIOBlockReq *VAR_0) { if (VAR_0) { g_slice_free(VirtQueueElement, VAR_0->elem); g_slice_free(VirtIOBlockReq, VAR_0); } }
[ "static void FUNC_0(VirtIOBlockReq *VAR_0)\n{", "if (VAR_0) {", "g_slice_free(VirtQueueElement, VAR_0->elem);", "g_slice_free(VirtIOBlockReq, VAR_0);", "}", "}" ]
[ 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
12,431
static int vmd_decode(VmdVideoContext *s, AVFrame *frame) { int i; unsigned int *palette32; unsigned char r, g, b; GetByteContext gb; unsigned char meth; unsigned char *dp; /* pointer to current frame */ unsigned char *pp; /* pointer to previous frame */ unsigned char le...
true
FFmpeg
f07ca542e371ec137d7192ccecf61ea889c13510
static int vmd_decode(VmdVideoContext *s, AVFrame *frame) { int i; unsigned int *palette32; unsigned char r, g, b; GetByteContext gb; unsigned char meth; unsigned char *dp; unsigned char *pp; unsigned char len; int ofs; int frame_x, frame_y; int frame_...
{ "code": [ " lz_unpack(gb.buffer, bytestream2_get_bytes_left(&gb),", " s->unpack_buffer, s->unpack_buffer_size);", " bytestream2_init(&gb, s->unpack_buffer, s->unpack_buffer_size);" ], "line_no": [ 185, 187, 191 ] }
static int FUNC_0(VmdVideoContext *VAR_0, AVFrame *VAR_1) { int VAR_2; unsigned int *VAR_3; unsigned char VAR_4, VAR_5, VAR_6; GetByteContext gb; unsigned char VAR_7; unsigned char *VAR_8; unsigned char *VAR_9; unsigned char VAR_10; int VAR_11; int VAR_12, ...
[ "static int FUNC_0(VmdVideoContext *VAR_0, AVFrame *VAR_1)\n{", "int VAR_2;", "unsigned int *VAR_3;", "unsigned char VAR_4, VAR_5, VAR_6;", "GetByteContext gb;", "unsigned char VAR_7;", "unsigned char *VAR_8;", "unsigned char *VAR_9;", "unsigned char VAR_10;", "int VAR_11;", "int VAR_12, VAR_13;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 51 ], [ 53 ], [...
12,432
static void show_program(WriterContext *w, AVFormatContext *fmt_ctx, AVProgram *program) { int i; writer_print_section_header(w, SECTION_ID_PROGRAM); print_int("program_id", program->id); print_int("program_num", program->program_num); print_int("nb_streams", program->nb_stream_indexes); ...
false
FFmpeg
e87190f5d20d380608f792ceb14d0def1d80e24b
static void show_program(WriterContext *w, AVFormatContext *fmt_ctx, AVProgram *program) { int i; writer_print_section_header(w, SECTION_ID_PROGRAM); print_int("program_id", program->id); print_int("program_num", program->program_num); print_int("nb_streams", program->nb_stream_indexes); ...
{ "code": [], "line_no": [] }
static void FUNC_0(WriterContext *VAR_0, AVFormatContext *VAR_1, AVProgram *VAR_2) { int VAR_3; writer_print_section_header(VAR_0, SECTION_ID_PROGRAM); print_int("program_id", VAR_2->id); print_int("program_num", VAR_2->program_num); print_int("nb_streams", VAR_2->nb_stream_indexes); pr...
[ "static void FUNC_0(WriterContext *VAR_0, AVFormatContext *VAR_1, AVProgram *VAR_2)\n{", "int VAR_3;", "writer_print_section_header(VAR_0, SECTION_ID_PROGRAM);", "print_int(\"program_id\", VAR_2->id);", "print_int(\"program_num\", VAR_2->program_num);", "print_int(\"nb_streams\", VAR_2->nb_stream_indexes)...
[ 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 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], ...
12,433
static int vaapi_encode_h264_write_extra_header(AVCodecContext *avctx, VAAPIEncodePicture *pic, int index, int *type, char *data, size_t *data_len) { VAAPIEncodeContex...
false
FFmpeg
620f88a0b94a651c6cc912b1fb32d308762d59b5
static int vaapi_encode_h264_write_extra_header(AVCodecContext *avctx, VAAPIEncodePicture *pic, int index, int *type, char *data, size_t *data_len) { VAAPIEncodeContex...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, VAAPIEncodePicture *VAR_1, int VAR_2, int *VAR_3, char *VAR_4, size_t *VAR_5) { VAAPIEncodeContext *ctx = VAR_0->priv_dat...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nVAAPIEncodePicture *VAR_1,\nint VAR_2, int *VAR_3,\nchar *VAR_4, size_t *VAR_5)\n{", "VAAPIEncodeContext *ctx = VAR_0->priv_data;", "VAAPIEncodeH264Context *priv = ctx->priv_data;", "VAAPIEncodeH264Options *opt = ctx->codec_options;", "CodedBitstreamFragment ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
12,435
unsigned int DoubleCPDO(const unsigned int opcode) { FPA11 *fpa11 = GET_FPA11(); float64 rFm, rFn = 0; unsigned int Fd, Fm, Fn, nRc = 1; //printk("DoubleCPDO(0x%08x)\n",opcode); Fm = getFm(opcode); if (CONSTANT_FM(opcode)) { rFm = getDoubleConstant(Fm); } else { ...
false
qemu
f090c9d4ad5812fb92843d6470a1111c15190c4c
unsigned int DoubleCPDO(const unsigned int opcode) { FPA11 *fpa11 = GET_FPA11(); float64 rFm, rFn = 0; unsigned int Fd, Fm, Fn, nRc = 1; Fm = getFm(opcode); if (CONSTANT_FM(opcode)) { rFm = getDoubleConstant(Fm); } else { switch (fpa11->fType[Fm]) { ...
{ "code": [], "line_no": [] }
unsigned int FUNC_0(const unsigned int VAR_0) { FPA11 *fpa11 = GET_FPA11(); float64 rFm, rFn = 0; unsigned int VAR_1, VAR_2, VAR_3, VAR_4 = 1; VAR_2 = getFm(VAR_0); if (CONSTANT_FM(VAR_0)) { rFm = getDoubleConstant(VAR_2); } else { switch (fpa11->fType[VAR_2]) ...
[ "unsigned int FUNC_0(const unsigned int VAR_0)\n{", "FPA11 *fpa11 = GET_FPA11();", "float64 rFm, rFn = 0;", "unsigned int VAR_1, VAR_2, VAR_3, VAR_4 = 1;", "VAR_2 = getFm(VAR_0);", "if (CONSTANT_FM(VAR_0))\n{", "rFm = getDoubleConstant(VAR_2);", "}", "else\n{", "switch (fpa11->fType[VAR_2])\n{", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 51, 65 ], [ 69 ], [ 71 ...
12,436
static void pci_nop(void) { qvirtio_scsi_start(NULL); qvirtio_scsi_stop(); }
false
qemu
a980f7f2c2f4d7e9a1eba4f804cd66dbd458b6d4
static void pci_nop(void) { qvirtio_scsi_start(NULL); qvirtio_scsi_stop(); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { qvirtio_scsi_start(NULL); qvirtio_scsi_stop(); }
[ "static void FUNC_0(void)\n{", "qvirtio_scsi_start(NULL);", "qvirtio_scsi_stop();", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
12,437
long do_sigreturn(CPUS390XState *env) { sigframe *frame; abi_ulong frame_addr = env->regs[15]; qemu_log("%s: frame_addr 0x%llx\n", __FUNCTION__, (unsigned long long)frame_addr); target_sigset_t target_set; sigset_t set; if (!lock_user_struct(VERIFY_READ, frame, frame_addr,...
false
qemu
1c275925bfbbc2de84a8f0e09d1dd70bbefb6da3
long do_sigreturn(CPUS390XState *env) { sigframe *frame; abi_ulong frame_addr = env->regs[15]; qemu_log("%s: frame_addr 0x%llx\n", __FUNCTION__, (unsigned long long)frame_addr); target_sigset_t target_set; sigset_t set; if (!lock_user_struct(VERIFY_READ, frame, frame_addr,...
{ "code": [], "line_no": [] }
long FUNC_0(CPUS390XState *VAR_0) { sigframe *frame; abi_ulong frame_addr = VAR_0->regs[15]; qemu_log("%s: frame_addr 0x%llx\n", __FUNCTION__, (unsigned long long)frame_addr); target_sigset_t target_set; sigset_t set; if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1...
[ "long FUNC_0(CPUS390XState *VAR_0)\n{", "sigframe *frame;", "abi_ulong frame_addr = VAR_0->regs[15];", "qemu_log(\"%s: frame_addr 0x%llx\\n\", __FUNCTION__,\n(unsigned long long)frame_addr);", "target_sigset_t target_set;", "sigset_t set;", "if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
12,438
void helper_check_iow(CPUX86State *env, uint32_t t0) { check_io(env, t0, 2); }
false
qemu
81cf8d8adc64203567e03326c13ea4abec9fe5df
void helper_check_iow(CPUX86State *env, uint32_t t0) { check_io(env, t0, 2); }
{ "code": [], "line_no": [] }
void FUNC_0(CPUX86State *VAR_0, uint32_t VAR_1) { check_io(VAR_0, VAR_1, 2); }
[ "void FUNC_0(CPUX86State *VAR_0, uint32_t VAR_1)\n{", "check_io(VAR_0, VAR_1, 2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
12,439
AVStream *av_new_stream(AVFormatContext *s, int id) { AVStream *st; int i; #if LIBAVFORMAT_VERSION_MAJOR >= 53 AVStream **streams; if (s->nb_streams >= INT_MAX/sizeof(*streams)) return NULL; streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams)); if (!streams...
false
FFmpeg
61138c43e08b7bb039fbcf50f1e71d6e735e04a5
AVStream *av_new_stream(AVFormatContext *s, int id) { AVStream *st; int i; #if LIBAVFORMAT_VERSION_MAJOR >= 53 AVStream **streams; if (s->nb_streams >= INT_MAX/sizeof(*streams)) return NULL; streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams)); if (!streams...
{ "code": [], "line_no": [] }
AVStream *FUNC_0(AVFormatContext *s, int id) { AVStream *st; int VAR_0; #if LIBAVFORMAT_VERSION_MAJOR >= 53 AVStream **streams; if (s->nb_streams >= INT_MAX/sizeof(*streams)) return NULL; streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams)); if (!streams) ...
[ "AVStream *FUNC_0(AVFormatContext *s, int id)\n{", "AVStream *st;", "int VAR_0;", "#if LIBAVFORMAT_VERSION_MAJOR >= 53\nAVStream **streams;", "if (s->nb_streams >= INT_MAX/sizeof(*streams))\nreturn NULL;", "streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams));", "if (!streams)\nretur...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 41 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 55 ...
12,441
void tcg_prologue_init(TCGContext *s) { size_t prologue_size, total_size; void *buf0, *buf1; /* Put the prologue at the beginning of code_gen_buffer. */ buf0 = s->code_gen_buffer; s->code_ptr = buf0; s->code_buf = buf0; s->code_gen_prologue = buf0; /* Generate the prologue....
false
qemu
23dceda62a3643f734b7aa474fa6052593ae1a70
void tcg_prologue_init(TCGContext *s) { size_t prologue_size, total_size; void *buf0, *buf1; buf0 = s->code_gen_buffer; s->code_ptr = buf0; s->code_buf = buf0; s->code_gen_prologue = buf0; tcg_target_qemu_prologue(s); buf1 = s->code_ptr; flush_icache_range((...
{ "code": [], "line_no": [] }
void FUNC_0(TCGContext *VAR_0) { size_t prologue_size, total_size; void *VAR_1, *VAR_2; VAR_1 = VAR_0->code_gen_buffer; VAR_0->code_ptr = VAR_1; VAR_0->code_buf = VAR_1; VAR_0->code_gen_prologue = VAR_1; tcg_target_qemu_prologue(VAR_0); VAR_2 = VAR_0->code_ptr; ...
[ "void FUNC_0(TCGContext *VAR_0)\n{", "size_t prologue_size, total_size;", "void *VAR_1, *VAR_2;", "VAR_1 = VAR_0->code_gen_buffer;", "VAR_0->code_ptr = VAR_1;", "VAR_0->code_buf = VAR_1;", "VAR_0->code_gen_prologue = VAR_1;", "tcg_target_qemu_prologue(VAR_0);", "VAR_2 = VAR_0->code_ptr;", "flush_i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 63 ], [ 67 ], [ 71, 73 ], ...
12,442
void qemu_clock_warp(QEMUClockType type) { int64_t clock; int64_t deadline; /* * There are too many global variables to make the "warp" behavior * applicable to other clocks. But a clock argument removes the * need for if statements all over the place. */ if (type != QEMU...
false
qemu
efab87cf79077a9624f675fc5fc8f034eaedfe4d
void qemu_clock_warp(QEMUClockType type) { int64_t clock; int64_t deadline; if (type != QEMU_CLOCK_VIRTUAL || !use_icount) { return; } if (icount_sleep) { icount_warp_rt(NULL); timer_del(icount_warp_timer); } if (!a...
{ "code": [], "line_no": [] }
void FUNC_0(QEMUClockType VAR_0) { int64_t clock; int64_t deadline; if (VAR_0 != QEMU_CLOCK_VIRTUAL || !use_icount) { return; } if (icount_sleep) { icount_warp_rt(NULL); timer_del(icount_warp_timer); } if (!all_cpu_...
[ "void FUNC_0(QEMUClockType VAR_0)\n{", "int64_t clock;", "int64_t deadline;", "if (VAR_0 != QEMU_CLOCK_VIRTUAL || !use_icount) {", "return;", "}", "if (icount_sleep) {", "icount_warp_rt(NULL);", "timer_del(icount_warp_timer);", "}", "if (!all_cpu_threads_idle()) {", "return;", "}", "if (qt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 65 ], [ 67 ], [ 73 ], [ 75 ], [ 77 ], [ 79...
12,443
static void report_unavailable_features(FeatureWord w, uint32_t mask) { FeatureWordInfo *f = &feature_word_info[w]; int i; for (i = 0; i < 32; ++i) { if ((1UL << i) & mask) { const char *reg = get_register_name_32(f->cpuid_reg); assert(reg); fprintf(stde...
false
qemu
8297be80f7cf71e09617669a8bd8b2836dcfd4c3
static void report_unavailable_features(FeatureWord w, uint32_t mask) { FeatureWordInfo *f = &feature_word_info[w]; int i; for (i = 0; i < 32; ++i) { if ((1UL << i) & mask) { const char *reg = get_register_name_32(f->cpuid_reg); assert(reg); fprintf(stde...
{ "code": [], "line_no": [] }
static void FUNC_0(FeatureWord VAR_0, uint32_t VAR_1) { FeatureWordInfo *f = &feature_word_info[VAR_0]; int VAR_2; for (VAR_2 = 0; VAR_2 < 32; ++VAR_2) { if ((1UL << VAR_2) & VAR_1) { const char *VAR_3 = get_register_name_32(f->cpuid_reg); assert(VAR_3); ...
[ "static void FUNC_0(FeatureWord VAR_0, uint32_t VAR_1)\n{", "FeatureWordInfo *f = &feature_word_info[VAR_0];", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < 32; ++VAR_2) {", "if ((1UL << VAR_2) & VAR_1) {", "const char *VAR_3 = get_register_name_32(f->cpuid_reg);", "assert(VAR_3);", "fprintf(stderr, \"warnin...
[ 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 ] ]
12,444
static int nbd_receive_option_reply(QIOChannel *ioc, uint32_t opt, nbd_opt_reply *reply, Error **errp) { QEMU_BUILD_BUG_ON(sizeof(*reply) != 20); if (nbd_read(ioc, reply, sizeof(*reply), errp) < 0) { error_prepend(errp, "failed to read option reply"); nb...
false
qemu
3736cc5be31f0399999e37d8b28ca9a3ed0b4ccb
static int nbd_receive_option_reply(QIOChannel *ioc, uint32_t opt, nbd_opt_reply *reply, Error **errp) { QEMU_BUILD_BUG_ON(sizeof(*reply) != 20); if (nbd_read(ioc, reply, sizeof(*reply), errp) < 0) { error_prepend(errp, "failed to read option reply"); nb...
{ "code": [], "line_no": [] }
static int FUNC_0(QIOChannel *VAR_0, uint32_t VAR_1, nbd_opt_reply *VAR_2, Error **VAR_3) { QEMU_BUILD_BUG_ON(sizeof(*VAR_2) != 20); if (nbd_read(VAR_0, VAR_2, sizeof(*VAR_2), VAR_3) < 0) { error_prepend(VAR_3, "failed to read option VAR_2"); nbd_send_op...
[ "static int FUNC_0(QIOChannel *VAR_0, uint32_t VAR_1,\nnbd_opt_reply *VAR_2, Error **VAR_3)\n{", "QEMU_BUILD_BUG_ON(sizeof(*VAR_2) != 20);", "if (nbd_read(VAR_0, VAR_2, sizeof(*VAR_2), VAR_3) < 0) {", "error_prepend(VAR_3, \"failed to read option VAR_2\");", "nbd_send_opt_abort(VAR_0);", "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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ...
12,445
void omap_badwidth_write8(void *opaque, target_phys_addr_t addr, uint32_t value) { uint8_t val8 = value; OMAP_8B_REG(addr); cpu_physical_memory_write(addr, (void *) &val8, 1); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void omap_badwidth_write8(void *opaque, target_phys_addr_t addr, uint32_t value) { uint8_t val8 = value; OMAP_8B_REG(addr); cpu_physical_memory_write(addr, (void *) &val8, 1); }
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { uint8_t val8 = VAR_2; OMAP_8B_REG(VAR_1); cpu_physical_memory_write(VAR_1, (void *) &val8, 1); }
[ "void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "uint8_t val8 = VAR_2;", "OMAP_8B_REG(VAR_1);", "cpu_physical_memory_write(VAR_1, (void *) &val8, 1);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
12,447
static PCIDevice *qemu_pci_hot_add_storage(Monitor *mon, const char *devaddr, const char *opts) { PCIDevice *dev; DriveInfo *dinfo = NULL; int type = -1; char buf[128]; if (get_param_value(buf, sizeof(buf...
false
qemu
49bd1458da8909434eb83c5cda472c63ff6a529c
static PCIDevice *qemu_pci_hot_add_storage(Monitor *mon, const char *devaddr, const char *opts) { PCIDevice *dev; DriveInfo *dinfo = NULL; int type = -1; char buf[128]; if (get_param_value(buf, sizeof(buf...
{ "code": [], "line_no": [] }
static PCIDevice *FUNC_0(Monitor *mon, const char *devaddr, const char *opts) { PCIDevice *dev; DriveInfo *dinfo = NULL; int VAR_0 = -1; char VAR_1[128]; if (get_param_value(VAR_1, sizeof(VAR_1), "if", op...
[ "static PCIDevice *FUNC_0(Monitor *mon,\nconst char *devaddr,\nconst char *opts)\n{", "PCIDevice *dev;", "DriveInfo *dinfo = NULL;", "int VAR_0 = -1;", "char VAR_1[128];", "if (get_param_value(VAR_1, sizeof(VAR_1), \"if\", opts)) {", "if (!strcmp(VAR_1, \"scsi\"))\nVAR_0 = IF_SCSI;", "else if (!strcmp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
12,448
static inline void clear_float_exceptions(CPUSPARCState *env) { set_float_exception_flags(0, &env->fp_status); }
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
static inline void clear_float_exceptions(CPUSPARCState *env) { set_float_exception_flags(0, &env->fp_status); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(CPUSPARCState *VAR_0) { set_float_exception_flags(0, &VAR_0->fp_status); }
[ "static inline void FUNC_0(CPUSPARCState *VAR_0)\n{", "set_float_exception_flags(0, &VAR_0->fp_status);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
12,449
void helper_ldxfsr(CPUSPARCState *env, uint64_t new_fsr) { env->fsr = (new_fsr & FSR_LDXFSR_MASK) | (env->fsr & FSR_LDXFSR_OLDMASK); set_fsr(env); }
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
void helper_ldxfsr(CPUSPARCState *env, uint64_t new_fsr) { env->fsr = (new_fsr & FSR_LDXFSR_MASK) | (env->fsr & FSR_LDXFSR_OLDMASK); set_fsr(env); }
{ "code": [], "line_no": [] }
void FUNC_0(CPUSPARCState *VAR_0, uint64_t VAR_1) { VAR_0->fsr = (VAR_1 & FSR_LDXFSR_MASK) | (VAR_0->fsr & FSR_LDXFSR_OLDMASK); set_fsr(VAR_0); }
[ "void FUNC_0(CPUSPARCState *VAR_0, uint64_t VAR_1)\n{", "VAR_0->fsr = (VAR_1 & FSR_LDXFSR_MASK) | (VAR_0->fsr & FSR_LDXFSR_OLDMASK);", "set_fsr(VAR_0);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
12,450
static void apply_motion_4x4(RoqContext *ri, int x, int y, unsigned char mv, signed char mean_x, signed char mean_y) { int i, hw, mx, my; unsigned char *pa, *pb; mx = x + 8 - (mv >> 4) - mean_x; my = y + 8 - (mv & 0xf) - mean_y; pa = ri->current_frame.data[0] + (y * ri->y_stride) + x;...
false
FFmpeg
b9029997d4694b6533556480fe0ab1f3f9779a56
static void apply_motion_4x4(RoqContext *ri, int x, int y, unsigned char mv, signed char mean_x, signed char mean_y) { int i, hw, mx, my; unsigned char *pa, *pb; mx = x + 8 - (mv >> 4) - mean_x; my = y + 8 - (mv & 0xf) - mean_y; pa = ri->current_frame.data[0] + (y * ri->y_stride) + x;...
{ "code": [], "line_no": [] }
static void FUNC_0(RoqContext *VAR_0, int VAR_1, int VAR_2, unsigned char VAR_3, signed char VAR_4, signed char VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9; unsigned char *VAR_10, *VAR_11; VAR_8 = VAR_1 + 8 - (VAR_3 >> 4) - VAR_4; VAR_9 = VAR_2 + 8 - (VAR_3 & 0xf) - VAR_5; VAR_10 = VAR_0-...
[ "static void FUNC_0(RoqContext *VAR_0, int VAR_1, int VAR_2, unsigned char VAR_3,\nsigned char VAR_4, signed char VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9;", "unsigned char *VAR_10, *VAR_11;", "VAR_8 = VAR_1 + 8 - (VAR_3 >> 4) - VAR_4;", "VAR_9 = VAR_2 + 8 - (VAR_3 & 0xf) - VAR_5;", "VAR_10 = VAR_0->cu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
12,453
static void pty_chr_update_read_handler(CharDriverState *chr) { PtyCharDriver *s = chr->opaque; GPollFD pfd; pfd.fd = g_io_channel_unix_get_fd(s->fd); pfd.events = G_IO_OUT; pfd.revents = 0; g_poll(&pfd, 1, 0); if (pfd.revents & G_IO_HUP) { pty_chr_state(chr, 0); } el...
false
qemu
9005b2a7589540a3733b3abdcfbccfe7746cd1a1
static void pty_chr_update_read_handler(CharDriverState *chr) { PtyCharDriver *s = chr->opaque; GPollFD pfd; pfd.fd = g_io_channel_unix_get_fd(s->fd); pfd.events = G_IO_OUT; pfd.revents = 0; g_poll(&pfd, 1, 0); if (pfd.revents & G_IO_HUP) { pty_chr_state(chr, 0); } el...
{ "code": [], "line_no": [] }
static void FUNC_0(CharDriverState *VAR_0) { PtyCharDriver *s = VAR_0->opaque; GPollFD pfd; pfd.fd = g_io_channel_unix_get_fd(s->fd); pfd.events = G_IO_OUT; pfd.revents = 0; g_poll(&pfd, 1, 0); if (pfd.revents & G_IO_HUP) { pty_chr_state(VAR_0, 0); } else { p...
[ "static void FUNC_0(CharDriverState *VAR_0)\n{", "PtyCharDriver *s = VAR_0->opaque;", "GPollFD pfd;", "pfd.fd = g_io_channel_unix_get_fd(s->fd);", "pfd.events = G_IO_OUT;", "pfd.revents = 0;", "g_poll(&pfd, 1, 0);", "if (pfd.revents & G_IO_HUP) {", "pty_chr_state(VAR_0, 0);", "} else {", "pty_ch...
[ 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 ] ]
12,454
static int protocol_client_vencrypt_auth(VncState *vs, uint8_t *data, size_t len) { int auth = read_u32(data, 0); if (auth != vs->vd->subauth) { VNC_DEBUG("Rejecting auth %d\n", auth); vnc_write_u8(vs, 0); /* Reject auth */ vnc_flush(vs); vnc_client_error(vs); } else { VNC_DEBUG("Accepting a...
true
qemu
adc5ec856c557f75adc60b310e5b1d38210a289c
static int protocol_client_vencrypt_auth(VncState *vs, uint8_t *data, size_t len) { int auth = read_u32(data, 0); if (auth != vs->vd->subauth) { VNC_DEBUG("Rejecting auth %d\n", auth); vnc_write_u8(vs, 0); vnc_flush(vs); vnc_client_error(vs); } else { VNC_DEBUG("Accepting auth %d, starting ...
{ "code": [ "\tif (vs->wiremode == VNC_WIREMODE_TLS) {", "\t VNC_DEBUG(\"Starting VeNCrypt subauth\\n\");", "\t return start_auth_vencrypt_subauth(vs);", "\t} else {", "\t VNC_DEBUG(\"TLS handshake blocked\\n\");", "\t return 0;" ], "line_no": [ 39, 41, 43, 45, ...
static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2) { int VAR_3 = read_u32(VAR_1, 0); if (VAR_3 != VAR_0->vd->subauth) { VNC_DEBUG("Rejecting VAR_3 %d\n", VAR_3); vnc_write_u8(VAR_0, 0); vnc_flush(VAR_0); vnc_client_error(VAR_0); } else { VNC_DEBUG("Accepting VAR_3 %d, starting...
[ "static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)\n{", "int VAR_3 = read_u32(VAR_1, 0);", "if (VAR_3 != VAR_0->vd->subauth) {", "VNC_DEBUG(\"Rejecting VAR_3 %d\\n\", VAR_3);", "vnc_write_u8(VAR_0, 0);", "vnc_flush(VAR_0);", "vnc_client_error(VAR_0);", "} else {", "VNC_DEBUG(\"Accepti...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
12,455
static int ata_passthrough_16_xfer_size(SCSIDevice *dev, uint8_t *buf) { int extend = buf[1] & 0x1; int length = buf[2] & 0x3; int xfer; int unit = ata_passthrough_xfer_unit(dev, buf); switch (length) { case 0: case 3: /* USB-specific. */ xfer = 0; break; c...
true
qemu
d83c951cce14dd3c7600c386d3791c4993744622
static int ata_passthrough_16_xfer_size(SCSIDevice *dev, uint8_t *buf) { int extend = buf[1] & 0x1; int length = buf[2] & 0x3; int xfer; int unit = ata_passthrough_xfer_unit(dev, buf); switch (length) { case 0: case 3: xfer = 0; break; case 1: xfer...
{ "code": [], "line_no": [] }
static int FUNC_0(SCSIDevice *VAR_0, uint8_t *VAR_1) { int VAR_2 = VAR_1[1] & 0x1; int VAR_3 = VAR_1[2] & 0x3; int VAR_4; int VAR_5 = ata_passthrough_xfer_unit(VAR_0, VAR_1); switch (VAR_3) { case 0: case 3: VAR_4 = 0; break; case 1: VAR_4 = VAR_1[...
[ "static int FUNC_0(SCSIDevice *VAR_0, uint8_t *VAR_1)\n{", "int VAR_2 = VAR_1[1] & 0x1;", "int VAR_3 = VAR_1[2] & 0x3;", "int VAR_4;", "int VAR_5 = ata_passthrough_xfer_unit(VAR_0, VAR_1);", "switch (VAR_3) {", "case 0:\ncase 3:\nVAR_4 = 0;", "break;", "case 1:\nVAR_4 = VAR_1[4];", "VAR_4 |= (VAR_...
[ 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, 22 ], [ 24 ], [ 26, 28 ], [ 30 ], [ 32 ], [ 34, 36 ], [ 38 ], [ 40 ], [ 42 ], [ 46 ], [ 48 ] ]
12,456
void dsputil_init(DSPContext* c, AVCodecContext *avctx) { int i; ff_check_alignment(); #if CONFIG_ENCODERS if(avctx->dct_algo==FF_DCT_FASTINT) { c->fdct = fdct_ifast; c->fdct248 = fdct_ifast248; } else if(avctx->dct_algo==FF_DCT_FAAN) { c->fdct = ff_faandct; ...
false
FFmpeg
9be6f0d2f8393100a11c8527c7ba18c1dc2f1450
void dsputil_init(DSPContext* c, AVCodecContext *avctx) { int i; ff_check_alignment(); #if CONFIG_ENCODERS if(avctx->dct_algo==FF_DCT_FASTINT) { c->fdct = fdct_ifast; c->fdct248 = fdct_ifast248; } else if(avctx->dct_algo==FF_DCT_FAAN) { c->fdct = ff_faandct; ...
{ "code": [], "line_no": [] }
void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1) { int VAR_2; ff_check_alignment(); #if CONFIG_ENCODERS if(VAR_1->dct_algo==FF_DCT_FASTINT) { VAR_0->fdct = fdct_ifast; VAR_0->fdct248 = fdct_ifast248; } else if(VAR_1->dct_algo==FF_DCT_FAAN) { VAR_0->fdct = f...
[ "void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1)\n{", "int VAR_2;", "ff_check_alignment();", "#if CONFIG_ENCODERS\nif(VAR_1->dct_algo==FF_DCT_FASTINT) {", "VAR_0->fdct = fdct_ifast;", "VAR_0->fdct248 = fdct_ifast248;", "}", "else if(VAR_1->dct_algo==FF_DCT_FAAN) {", "VAR_0->fdct = ff_faandct;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 43 ], [ 45 ], [ 47 ], [ 49...
12,457
static void qio_channel_websock_handshake_send_res_ok(QIOChannelWebsock *ioc, const char *key, Error **errp) { char combined_key[QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN + QIO_CHANNEL_WEB...
true
qemu
7fc3fcefe2fc5966c6aa1ef4f10e9740d8d73bf2
static void qio_channel_websock_handshake_send_res_ok(QIOChannelWebsock *ioc, const char *key, Error **errp) { char combined_key[QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN + QIO_CHANNEL_WEB...
{ "code": [ " char *date = qio_channel_websock_date_str();" ], "line_no": [ 15 ] }
static void FUNC_0(QIOChannelWebsock *VAR_0, const char *VAR_1, Error **VAR_2) { char VAR_3[QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN + QIO_CHANNEL_WEBSOCK_GUID_LEN + 1]; char *VAR_4 ...
[ "static void FUNC_0(QIOChannelWebsock *VAR_0,\nconst char *VAR_1,\nError **VAR_2)\n{", "char VAR_3[QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN +\nQIO_CHANNEL_WEBSOCK_GUID_LEN + 1];", "char *VAR_4 = NULL;", "char *VAR_5 = qio_channel_websock_date_str();", "g_strlcpy(VAR_3, VAR_1, QIO_CHANNEL_WEBSOCK_CLIENT_KEY_LEN + ...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 31, 33, 35, 37, 39, 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 53, 55 ], [ 59 ], [ 61 ], [ 63 ...
12,458
static int a64_write_trailer(struct AVFormatContext *s) { A64MuxerContext *c = s->priv_data; AVPacket pkt; /* need to flush last packet? */ if(c->interleaved) a64_write_packet(s, &pkt); return 0; }
true
FFmpeg
8731c86d03d062ad19f098b77ab1f1bc4ad7c406
static int a64_write_trailer(struct AVFormatContext *s) { A64MuxerContext *c = s->priv_data; AVPacket pkt; if(c->interleaved) a64_write_packet(s, &pkt); return 0; }
{ "code": [ " AVPacket pkt;" ], "line_no": [ 7 ] }
static int FUNC_0(struct AVFormatContext *VAR_0) { A64MuxerContext *c = VAR_0->priv_data; AVPacket pkt; if(c->interleaved) a64_write_packet(VAR_0, &pkt); return 0; }
[ "static int FUNC_0(struct AVFormatContext *VAR_0)\n{", "A64MuxerContext *c = VAR_0->priv_data;", "AVPacket pkt;", "if(c->interleaved) a64_write_packet(VAR_0, &pkt);", "return 0;", "}" ]
[ 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
12,459
void vnc_display_open(const char *id, Error **errp) { VncDisplay *vs = vnc_display_find(id); QemuOpts *opts = qemu_opts_find(&qemu_vnc_opts, id); QemuOpts *sopts, *wsopts; const char *share, *device_id; QemuConsole *con; bool password = false; bool reverse = false; const char *v...
true
qemu
274c3b52e10466a4771d591f6298ef61e8354ce0
void vnc_display_open(const char *id, Error **errp) { VncDisplay *vs = vnc_display_find(id); QemuOpts *opts = qemu_opts_find(&qemu_vnc_opts, id); QemuOpts *sopts, *wsopts; const char *share, *device_id; QemuConsole *con; bool password = false; bool reverse = false; const char *v...
{ "code": [ " char *host = g_strndup(vnc, h - vnc);" ], "line_no": [ 95 ] }
void FUNC_0(const char *VAR_0, Error **VAR_1) { VncDisplay *vs = vnc_display_find(VAR_0); QemuOpts *opts = qemu_opts_find(&qemu_vnc_opts, VAR_0); QemuOpts *sopts, *wsopts; const char *VAR_2, *VAR_3; QemuConsole *con; bool password = false; bool reverse = false; const char *VAR_4...
[ "void FUNC_0(const char *VAR_0, Error **VAR_1)\n{", "VncDisplay *vs = vnc_display_find(VAR_0);", "QemuOpts *opts = qemu_opts_find(&qemu_vnc_opts, VAR_0);", "QemuOpts *sopts, *wsopts;", "const char *VAR_2, *VAR_3;", "QemuConsole *con;", "bool password = false;", "bool reverse = false;", "const char *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [...
12,460
static int rm_read_header(AVFormatContext *s) { RMDemuxContext *rm = s->priv_data; AVStream *st; AVIOContext *pb = s->pb; unsigned int tag; int tag_size; unsigned int start_time, duration; unsigned int data_off = 0, indx_off = 0; char buf[128], mime[128]; int flags = 0; ...
true
FFmpeg
bf87908cd8da31e8f8fe75c06577170928ea70a8
static int rm_read_header(AVFormatContext *s) { RMDemuxContext *rm = s->priv_data; AVStream *st; AVIOContext *pb = s->pb; unsigned int tag; int tag_size; unsigned int start_time, duration; unsigned int data_off = 0, indx_off = 0; char buf[128], mime[128]; int flags = 0; ...
{ "code": [ " rm_read_metadata(s, 1);" ], "line_no": [ 111 ] }
static int FUNC_0(AVFormatContext *VAR_0) { RMDemuxContext *rm = VAR_0->priv_data; AVStream *st; AVIOContext *pb = VAR_0->pb; unsigned int VAR_1; int VAR_2; unsigned int VAR_3, VAR_4; unsigned int VAR_5 = 0, VAR_6 = 0; char VAR_7[128], VAR_8[128]; int VAR_9 = 0; VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "RMDemuxContext *rm = VAR_0->priv_data;", "AVStream *st;", "AVIOContext *pb = VAR_0->pb;", "unsigned int VAR_1;", "int VAR_2;", "unsigned int VAR_3, VAR_4;", "unsigned int VAR_5 = 0, VAR_6 = 0;", "char VAR_7[128], VAR_8[128];", "int VAR_9 = 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, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49,...
12,461
int av_write_frame(AVFormatContext *s, int stream_index, const uint8_t *buf, int size) { AVStream *st; int64_t pts_mask; int ret, frame_size; st = s->streams[stream_index]; pts_mask = (1LL << s->pts_wrap_bits) - 1; ret = s->oformat->write_packet(s, stream_index, buf...
false
FFmpeg
b0c7f5a9d82feb7f4c4cdf77f1537193670ab58b
int av_write_frame(AVFormatContext *s, int stream_index, const uint8_t *buf, int size) { AVStream *st; int64_t pts_mask; int ret, frame_size; st = s->streams[stream_index]; pts_mask = (1LL << s->pts_wrap_bits) - 1; ret = s->oformat->write_packet(s, stream_index, buf...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, int VAR_1, const uint8_t *VAR_2, int VAR_3) { AVStream *st; int64_t pts_mask; int VAR_4, VAR_5; st = VAR_0->streams[VAR_1]; pts_mask = (1LL << VAR_0->pts_wrap_bits) - 1; VAR_4 = VAR_0->oformat->write_packet(VAR_0, VAR_1, VAR_2, VAR...
[ "int FUNC_0(AVFormatContext *VAR_0, int VAR_1, const uint8_t *VAR_2,\nint VAR_3)\n{", "AVStream *st;", "int64_t pts_mask;", "int VAR_4, VAR_5;", "st = VAR_0->streams[VAR_1];", "pts_mask = (1LL << VAR_0->pts_wrap_bits) - 1;", "VAR_4 = VAR_0->oformat->write_packet(VAR_0, VAR_1, VAR_2, VAR_3,\nst->pts.val ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 31 ], [ 33, 35 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55, 57, 59 ], [ 61 ], [...
12,462
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt) { CCaptionSubContext *ctx = avctx->priv_data; AVSubtitle *sub = data; const int64_t start_time = sub->pts; uint8_t *bptr = NULL; int len = avpkt->size; int ret = 0; int i; if (ctx->pktbuf->size...
false
FFmpeg
752e6dfa3ea97e7901870bdd9e5a51f860607240
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt) { CCaptionSubContext *ctx = avctx->priv_data; AVSubtitle *sub = data; const int64_t start_time = sub->pts; uint8_t *bptr = NULL; int len = avpkt->size; int ret = 0; int i; if (ctx->pktbuf->size...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { CCaptionSubContext *ctx = VAR_0->priv_data; AVSubtitle *sub = VAR_1; const int64_t VAR_4 = sub->pts; uint8_t *bptr = NULL; int VAR_5 = VAR_3->size; int VAR_6 = 0; int VAR_7; if (ctx->pktbuf->s...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "CCaptionSubContext *ctx = VAR_0->priv_data;", "AVSubtitle *sub = VAR_1;", "const int64_t VAR_4 = sub->pts;", "uint8_t *bptr = NULL;", "int VAR_5 = VAR_3->size;", "int VAR_6 = 0;", "int VAR_7;", "if (ctx->pktbuf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 43 ], [ 45 ...
12,463
static int config(struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt) { switch (vf->priv->mode) { case 0: case 3: return ff_vf_next_config(vf,width,height*2,d_width,d_height*2,flags,outfmt); case 1: /* odd ...
false
FFmpeg
04001767728fd4ed8b4f9d2ebbb9f9a8c9a7be0d
static int config(struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt) { switch (vf->priv->mode) { case 0: case 3: return ff_vf_next_config(vf,width,height*2,d_width,d_height*2,flags,outfmt); case 1: c...
{ "code": [], "line_no": [] }
static int FUNC_0(struct vf_instance *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, unsigned int VAR_5, unsigned int VAR_6) { switch (VAR_0->priv->mode) { case 0: case 3: return ff_vf_next_config(VAR_0,VAR_1,VAR_2*2,VAR_3,VAR_4*2,VAR_5,VAR_6); case 1: case 2...
[ "static int FUNC_0(struct vf_instance *VAR_0,\nint VAR_1, int VAR_2, int VAR_3, int VAR_4,\nunsigned int VAR_5, unsigned int VAR_6)\n{", "switch (VAR_0->priv->mode) {", "case 0:\ncase 3:\nreturn ff_vf_next_config(VAR_0,VAR_1,VAR_2*2,VAR_3,VAR_4*2,VAR_5,VAR_6);", "case 1:\ncase 2:\ncase 4:\nreturn ff_vf_next_c...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13, 15 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ] ]
12,464
static av_cold int vqa_decode_init(AVCodecContext *avctx) { VqaContext *s = avctx->priv_data; unsigned char *vqa_header; int i, j, codebook_index; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_PAL8; /* make sure the extradata made it */ if (s->avctx->extradata_size != VQA_HEADER_SIZ...
false
FFmpeg
341404f753fdbcddebb9fbce51f2ef057cceb79c
static av_cold int vqa_decode_init(AVCodecContext *avctx) { VqaContext *s = avctx->priv_data; unsigned char *vqa_header; int i, j, codebook_index; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_PAL8; if (s->avctx->extradata_size != VQA_HEADER_SIZE) { av_log(s->avctx, AV_LOG...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { VqaContext *s = avctx->priv_data; unsigned char *VAR_0; int VAR_1, VAR_2, VAR_3; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_PAL8; if (s->avctx->extradata_size != VQA_HEADER_SIZE) { av_log(s->avctx, AV_LOG_ERROR, " VQA ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "VqaContext *s = avctx->priv_data;", "unsigned char *VAR_0;", "int VAR_1, VAR_2, VAR_3;", "s->avctx = avctx;", "avctx->pix_fmt = PIX_FMT_PAL8;", "if (s->avctx->extradata_size != VQA_HEADER_SIZE) {", "av_log(s->avctx, AV_LOG_ERROR, \" VQA video: 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
12,465
static int coroutine_fn mirror_dirty_init(MirrorBlockJob *s) { int64_t sector_num, end; BlockDriverState *base = s->base; BlockDriverState *bs = blk_bs(s->common.blk); BlockDriverState *target_bs = blk_bs(s->target); int ret, n; end = s->bdev_length / BDRV_SECTOR_SIZE; if (base =...
false
qemu
bae8196d9f97916de6323e70e3e374362ee16ec4
static int coroutine_fn mirror_dirty_init(MirrorBlockJob *s) { int64_t sector_num, end; BlockDriverState *base = s->base; BlockDriverState *bs = blk_bs(s->common.blk); BlockDriverState *target_bs = blk_bs(s->target); int ret, n; end = s->bdev_length / BDRV_SECTOR_SIZE; if (base =...
{ "code": [], "line_no": [] }
static int VAR_0 mirror_dirty_init(MirrorBlockJob *s) { int64_t sector_num, end; BlockDriverState *base = s->base; BlockDriverState *bs = blk_bs(s->common.blk); BlockDriverState *target_bs = blk_bs(s->target); int ret, n; end = s->bdev_length / BDRV_SECTOR_SIZE; if (base == NULL ...
[ "static int VAR_0 mirror_dirty_init(MirrorBlockJob *s)\n{", "int64_t sector_num, end;", "BlockDriverState *base = s->base;", "BlockDriverState *bs = blk_bs(s->common.blk);", "BlockDriverState *target_bs = blk_bs(s->target);", "int ret, n;", "end = s->bdev_length / BDRV_SECTOR_SIZE;", "if (base == NULL...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [...
12,466
int xen_domain_build_pv(const char *kernel, const char *ramdisk, const char *cmdline) { uint32_t ssidref = 0; uint32_t flags = 0; xen_domain_handle_t uuid; unsigned int xenstore_port = 0, console_port = 0; unsigned long xenstore_mfn = 0, console_mfn = 0; int rc; ...
false
qemu
acdc3f0c59d076099c63425158c4811aaee984b6
int xen_domain_build_pv(const char *kernel, const char *ramdisk, const char *cmdline) { uint32_t ssidref = 0; uint32_t flags = 0; xen_domain_handle_t uuid; unsigned int xenstore_port = 0, console_port = 0; unsigned long xenstore_mfn = 0, console_mfn = 0; int rc; ...
{ "code": [], "line_no": [] }
int FUNC_0(const char *VAR_0, const char *VAR_1, const char *VAR_2) { uint32_t ssidref = 0; uint32_t flags = 0; xen_domain_handle_t uuid; unsigned int VAR_3 = 0, VAR_4 = 0; unsigned long VAR_5 = 0, VAR_6 = 0; int VAR_7; memcpy(uuid, qemu_uuid, sizeof(uuid))...
[ "int FUNC_0(const char *VAR_0, const char *VAR_1,\nconst char *VAR_2)\n{", "uint32_t ssidref = 0;", "uint32_t flags = 0;", "xen_domain_handle_t uuid;", "unsigned int VAR_3 = 0, VAR_4 = 0;", "unsigned long VAR_5 = 0, VAR_6 = 0;", "int VAR_7;", "memcpy(uuid, qemu_uuid, sizeof(uuid));", "VAR_7 = xc_dom...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 41 ], [ 45 ], [ 47 ], [...
12,467
static int kvm_physical_sync_dirty_bitmap(target_phys_addr_t start_addr, target_phys_addr_t end_addr) { KVMState *s = kvm_state; unsigned long size, allocated_size = 0; KVMDirtyLog d; KVMSlot *mem; int ret = 0; d.dirty_bitmap = NULL; while (start_addr < end_addr) { ...
false
qemu
a426e122173f36f05ea2cb72dcff77b7408546ce
static int kvm_physical_sync_dirty_bitmap(target_phys_addr_t start_addr, target_phys_addr_t end_addr) { KVMState *s = kvm_state; unsigned long size, allocated_size = 0; KVMDirtyLog d; KVMSlot *mem; int ret = 0; d.dirty_bitmap = NULL; while (start_addr < end_addr) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(target_phys_addr_t VAR_0, target_phys_addr_t VAR_1) { KVMState *s = kvm_state; unsigned long VAR_2, VAR_3 = 0; KVMDirtyLog d; KVMSlot *mem; int VAR_4 = 0; d.dirty_bitmap = NULL; while (VAR_0 < VAR_1) { mem = kvm_lookup_overlapping_slot(s, VAR_0, V...
[ "static int FUNC_0(target_phys_addr_t VAR_0,\ntarget_phys_addr_t VAR_1)\n{", "KVMState *s = kvm_state;", "unsigned long VAR_2, VAR_3 = 0;", "KVMDirtyLog d;", "KVMSlot *mem;", "int VAR_4 = 0;", "d.dirty_bitmap = NULL;", "while (VAR_0 < VAR_1) {", "mem = kvm_lookup_overlapping_slot(s, VAR_0, VAR_1);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
12,468
static void gic_dist_writew(void *opaque, target_phys_addr_t offset, uint32_t value) { gic_dist_writeb(opaque, offset, value & 0xff); gic_dist_writeb(opaque, offset + 1, value >> 8); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void gic_dist_writew(void *opaque, target_phys_addr_t offset, uint32_t value) { gic_dist_writeb(opaque, offset, value & 0xff); gic_dist_writeb(opaque, offset + 1, value >> 8); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { gic_dist_writeb(VAR_0, VAR_1, VAR_2 & 0xff); gic_dist_writeb(VAR_0, VAR_1 + 1, VAR_2 >> 8); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "gic_dist_writeb(VAR_0, VAR_1, VAR_2 & 0xff);", "gic_dist_writeb(VAR_0, VAR_1 + 1, VAR_2 >> 8);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
12,469
static float64 roundAndPackFloat64( flag zSign, int16 zExp, bits64 zSig STATUS_PARAM) { int8 roundingMode; flag roundNearestEven; int16 roundIncrement, roundBits; flag isTiny; roundingMode = STATUS(float_rounding_mode); roundNearestEven = ( roundingMode == float_round_nearest_even ); ...
false
qemu
f090c9d4ad5812fb92843d6470a1111c15190c4c
static float64 roundAndPackFloat64( flag zSign, int16 zExp, bits64 zSig STATUS_PARAM) { int8 roundingMode; flag roundNearestEven; int16 roundIncrement, roundBits; flag isTiny; roundingMode = STATUS(float_rounding_mode); roundNearestEven = ( roundingMode == float_round_nearest_even ); ...
{ "code": [], "line_no": [] }
static float64 FUNC_0( flag zSign, int16 zExp, bits64 zSig STATUS_PARAM) { int8 roundingMode; flag roundNearestEven; int16 roundIncrement, roundBits; flag isTiny; roundingMode = STATUS(float_rounding_mode); roundNearestEven = ( roundingMode == float_round_nearest_even ); roundIncre...
[ "static float64 FUNC_0( flag zSign, int16 zExp, bits64 zSig STATUS_PARAM)\n{", "int8 roundingMode;", "flag roundNearestEven;", "int16 roundIncrement, roundBits;", "flag isTiny;", "roundingMode = STATUS(float_rounding_mode);", "roundNearestEven = ( roundingMode == float_round_nearest_even );", "roundIn...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
12,471
static void intel_hda_parse_bdl(IntelHDAState *d, IntelHDAStream *st) { target_phys_addr_t addr; uint8_t buf[16]; uint32_t i; addr = intel_hda_addr(st->bdlp_lbase, st->bdlp_ubase); st->bentries = st->lvi +1; g_free(st->bpl); st->bpl = g_malloc(sizeof(bpl) * st->bentries); for ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void intel_hda_parse_bdl(IntelHDAState *d, IntelHDAStream *st) { target_phys_addr_t addr; uint8_t buf[16]; uint32_t i; addr = intel_hda_addr(st->bdlp_lbase, st->bdlp_ubase); st->bentries = st->lvi +1; g_free(st->bpl); st->bpl = g_malloc(sizeof(bpl) * st->bentries); for ...
{ "code": [], "line_no": [] }
static void FUNC_0(IntelHDAState *VAR_0, IntelHDAStream *VAR_1) { target_phys_addr_t addr; uint8_t buf[16]; uint32_t i; addr = intel_hda_addr(VAR_1->bdlp_lbase, VAR_1->bdlp_ubase); VAR_1->bentries = VAR_1->lvi +1; g_free(VAR_1->bpl); VAR_1->bpl = g_malloc(sizeof(bpl) * VAR_1->bentr...
[ "static void FUNC_0(IntelHDAState *VAR_0, IntelHDAStream *VAR_1)\n{", "target_phys_addr_t addr;", "uint8_t buf[16];", "uint32_t i;", "addr = intel_hda_addr(VAR_1->bdlp_lbase, VAR_1->bdlp_ubase);", "VAR_1->bentries = VAR_1->lvi +1;", "g_free(VAR_1->bpl);", "VAR_1->bpl = g_malloc(sizeof(bpl) * VAR_1->be...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
12,472
static void mptsas_fetch_request(MPTSASState *s) { PCIDevice *pci = (PCIDevice *) s; char req[MPTSAS_MAX_REQUEST_SIZE]; MPIRequestHeader *hdr = (MPIRequestHeader *)req; hwaddr addr; int size; if (s->state != MPI_IOC_STATE_OPERATIONAL) { mptsas_set_fault(s, MPI_IOCSTATUS_INVALID...
false
qemu
06630554ccbdd25780aa03c3548aaff1eb56dffd
static void mptsas_fetch_request(MPTSASState *s) { PCIDevice *pci = (PCIDevice *) s; char req[MPTSAS_MAX_REQUEST_SIZE]; MPIRequestHeader *hdr = (MPIRequestHeader *)req; hwaddr addr; int size; if (s->state != MPI_IOC_STATE_OPERATIONAL) { mptsas_set_fault(s, MPI_IOCSTATUS_INVALID...
{ "code": [], "line_no": [] }
static void FUNC_0(MPTSASState *VAR_0) { PCIDevice *pci = (PCIDevice *) VAR_0; char VAR_1[MPTSAS_MAX_REQUEST_SIZE]; MPIRequestHeader *hdr = (MPIRequestHeader *)VAR_1; hwaddr addr; int VAR_2; if (VAR_0->state != MPI_IOC_STATE_OPERATIONAL) { mptsas_set_fault(VAR_0, MPI_IOCSTATUS_...
[ "static void FUNC_0(MPTSASState *VAR_0)\n{", "PCIDevice *pci = (PCIDevice *) VAR_0;", "char VAR_1[MPTSAS_MAX_REQUEST_SIZE];", "MPIRequestHeader *hdr = (MPIRequestHeader *)VAR_1;", "hwaddr addr;", "int VAR_2;", "if (VAR_0->state != MPI_IOC_STATE_OPERATIONAL) {", "mptsas_set_fault(VAR_0, MPI_IOCSTATUS_I...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 59 ], [ 67 ...
12,473
static void test_qemu_strtoull_full_max(void) { char *str = g_strdup_printf("%lld", ULLONG_MAX); uint64_t res = 999; int err; err = qemu_strtoull(str, NULL, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, ULLONG_MAX); g_free(str); }
false
qemu
bc7c08a2c375acb7ae4d433054415588b176d34c
static void test_qemu_strtoull_full_max(void) { char *str = g_strdup_printf("%lld", ULLONG_MAX); uint64_t res = 999; int err; err = qemu_strtoull(str, NULL, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, ULLONG_MAX); g_free(str); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { char *VAR_0 = g_strdup_printf("%lld", ULLONG_MAX); uint64_t res = 999; int VAR_1; VAR_1 = qemu_strtoull(VAR_0, NULL, 0, &res); g_assert_cmpint(VAR_1, ==, 0); g_assert_cmpint(res, ==, ULLONG_MAX); g_free(VAR_0); }
[ "static void FUNC_0(void)\n{", "char *VAR_0 = g_strdup_printf(\"%lld\", ULLONG_MAX);", "uint64_t res = 999;", "int VAR_1;", "VAR_1 = qemu_strtoull(VAR_0, NULL, 0, &res);", "g_assert_cmpint(VAR_1, ==, 0);", "g_assert_cmpint(res, ==, ULLONG_MAX);", "g_free(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
12,474
static void mem_add(MemoryListener *listener, MemoryRegionSection *section) { AddressSpaceDispatch *d = container_of(listener, AddressSpaceDispatch, listener); MemoryRegionSection now = limit(*section), remain = limit(*section); if ((now.offset_within_address_space & ~TARGET_PAGE_MASK) || (no...
false
qemu
99b9cc0679585b2d495d7d31ce556549b6b2721c
static void mem_add(MemoryListener *listener, MemoryRegionSection *section) { AddressSpaceDispatch *d = container_of(listener, AddressSpaceDispatch, listener); MemoryRegionSection now = limit(*section), remain = limit(*section); if ((now.offset_within_address_space & ~TARGET_PAGE_MASK) || (no...
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryListener *VAR_0, MemoryRegionSection *VAR_1) { AddressSpaceDispatch *d = container_of(VAR_0, AddressSpaceDispatch, VAR_0); MemoryRegionSection now = limit(*VAR_1), remain = limit(*VAR_1); if ((now.offset_within_address_space & ~TARGET_PAGE_MASK) || (now.size < TARGET_...
[ "static void FUNC_0(MemoryListener *VAR_0, MemoryRegionSection *VAR_1)\n{", "AddressSpaceDispatch *d = container_of(VAR_0, AddressSpaceDispatch, VAR_0);", "MemoryRegionSection now = limit(*VAR_1), remain = limit(*VAR_1);", "if ((now.offset_within_address_space & ~TARGET_PAGE_MASK)\n|| (now.size < TARGET_PAGE_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...