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
9,444
bool qvirtio_wait_config_isr(const QVirtioBus *bus, QVirtioDevice *d, uint64_t timeout) { do { clock_step(100); if (bus->get_config_isr_status(d)) { break; /* It has ended */ } } while (--timeout); ret...
true
qemu
70556264a89a268efba1d7e8e341adcdd7881eb4
bool qvirtio_wait_config_isr(const QVirtioBus *bus, QVirtioDevice *d, uint64_t timeout) { do { clock_step(100); if (bus->get_config_isr_status(d)) { break; } } while (--timeout); return timeout != 0; ...
{ "code": [ " do {", " } while (--timeout);", " return timeout != 0;", "bool qvirtio_wait_config_isr(const QVirtioBus *bus, QVirtioDevice *d,", " uint64_t timeout)", " do {", " } while (--timeout);", " return ...
bool FUNC_0(const QVirtioBus *bus, QVirtioDevice *d, uint64_t timeout) { do { clock_step(100); if (bus->get_config_isr_status(d)) { break; } } while (--timeout); return timeout != 0; }
[ "bool FUNC_0(const QVirtioBus *bus, QVirtioDevice *d,\nuint64_t timeout)\n{", "do {", "clock_step(100);", "if (bus->get_config_isr_status(d)) {", "break;", "}", "} while (--timeout);", "return timeout != 0;", "}" ]
[ 1, 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
9,446
void serial_exit_core(SerialState *s) { qemu_chr_fe_deinit(&s->chr); qemu_unregister_reset(serial_reset, s); }
true
qemu
8409dc884a201bf74b30a9d232b6bbdd00cb7e2b
void serial_exit_core(SerialState *s) { qemu_chr_fe_deinit(&s->chr); qemu_unregister_reset(serial_reset, s); }
{ "code": [], "line_no": [] }
void FUNC_0(SerialState *VAR_0) { qemu_chr_fe_deinit(&VAR_0->chr); qemu_unregister_reset(serial_reset, VAR_0); }
[ "void FUNC_0(SerialState *VAR_0)\n{", "qemu_chr_fe_deinit(&VAR_0->chr);", "qemu_unregister_reset(serial_reset, VAR_0);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ] ]
9,447
int ff_nvdec_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, int dpb_size) { AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ctx->data; const AVPixFmtDescriptor *sw_desc; int cuvid_codec_type, cuvid_chroma_format; ...
false
FFmpeg
3e0e1634585b1a26b7d753aa42c7f350636927ae
int ff_nvdec_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, int dpb_size) { AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ctx->data; const AVPixFmtDescriptor *sw_desc; int cuvid_codec_type, cuvid_chroma_format; ...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, AVBufferRef *VAR_1, int VAR_2) { AVHWFramesContext *frames_ctx = (AVHWFramesContext*)VAR_1->data; const AVPixFmtDescriptor *VAR_3; int VAR_4, VAR_5; VAR_3 = av_pix_fmt_desc_get(VAR_0->sw_pix_fmt); if (!VA...
[ "int FUNC_0(AVCodecContext *VAR_0,\nAVBufferRef *VAR_1,\nint VAR_2)\n{", "AVHWFramesContext *frames_ctx = (AVHWFramesContext*)VAR_1->data;", "const AVPixFmtDescriptor *VAR_3;", "int VAR_4, VAR_5;", "VAR_3 = av_pix_fmt_desc_get(VAR_0->sw_pix_fmt);", "if (!VAR_3)\nreturn AVERROR_BUG;", "VAR_4 = map_avcode...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 55 ...
9,448
static const char *ass_split_section(ASSSplitContext *ctx, const char *buf) { const ASSSection *section = &ass_sections[ctx->current_section]; int *number = &ctx->field_number[ctx->current_section]; int *order = ctx->field_order[ctx->current_section]; int *tmp, i, len; while (buf && *buf) { ...
false
FFmpeg
97b1ba696baa1bb87415bad244533ac2beaf3568
static const char *ass_split_section(ASSSplitContext *ctx, const char *buf) { const ASSSection *section = &ass_sections[ctx->current_section]; int *number = &ctx->field_number[ctx->current_section]; int *order = ctx->field_order[ctx->current_section]; int *tmp, i, len; while (buf && *buf) { ...
{ "code": [], "line_no": [] }
static const char *FUNC_0(ASSSplitContext *VAR_0, const char *VAR_1) { const ASSSection *VAR_2 = &ass_sections[VAR_0->current_section]; int *VAR_3 = &VAR_0->field_number[VAR_0->current_section]; int *VAR_4 = VAR_0->field_order[VAR_0->current_section]; int *VAR_5, VAR_6, VAR_7; while (VAR_1 &...
[ "static const char *FUNC_0(ASSSplitContext *VAR_0, const char *VAR_1)\n{", "const ASSSection *VAR_2 = &ass_sections[VAR_0->current_section];", "int *VAR_3 = &VAR_0->field_number[VAR_0->current_section];", "int *VAR_4 = VAR_0->field_order[VAR_0->current_section];", "int *VAR_5, VAR_6, VAR_7;", "while (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 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ...
9,449
void ff_put_h264_qpel16_mc10_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_qrt_16w_msa(src - 2, stride, dst, stride, 16, 0); }
false
FFmpeg
b5da07d4340a8e8e40dcd1900977a76ff31fbb84
void ff_put_h264_qpel16_mc10_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_qrt_16w_msa(src - 2, stride, dst, stride, 16, 0); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_hz_qrt_16w_msa(VAR_1 - 2, VAR_2, VAR_0, VAR_2, 16, 0); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_hz_qrt_16w_msa(VAR_1 - 2, VAR_2, VAR_0, VAR_2, 16, 0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
9,450
static void do_memory_save(Monitor *mon, const QDict *qdict, QObject **ret_data) { FILE *f; uint32_t size = qdict_get_int(qdict, "size"); const char *filename = qdict_get_str(qdict, "filename"); target_long addr = qdict_get_int(qdict, "val"); uint32_t l; CPUState *env; uint8_t buf[10...
true
qemu
09b9418c6d085a0728372aa760ebd10128a020b1
static void do_memory_save(Monitor *mon, const QDict *qdict, QObject **ret_data) { FILE *f; uint32_t size = qdict_get_int(qdict, "size"); const char *filename = qdict_get_str(qdict, "filename"); target_long addr = qdict_get_int(qdict, "val"); uint32_t l; CPUState *env; uint8_t buf[10...
{ "code": [ " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)" ], "line_no": [ 23, 23...
static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2) { FILE *f; uint32_t size = qdict_get_int(VAR_1, "size"); const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3"); target_long addr = qdict_get_int(VAR_1, "val"); uint32_t l; CPUState *env; uint8_t buf[1024]; env...
[ "static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{", "FILE *f;", "uint32_t size = qdict_get_int(VAR_1, \"size\");", "const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");", "target_long addr = qdict_get_int(VAR_1, \"val\");", "uint32_t l;", "CPUState *env;", "uint8_t buf[1024];...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
9,451
static uint32_t virtio_read_config(PCIDevice *pci_dev, uint32_t address, int len) { VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); struct virtio_pci_cfg_cap *cfg; if (proxy->config_cap && ranges_overlap(address, len, proxy->config_cap ...
true
qemu
2a6391232fa58f32469fb61d55343eff32a91083
static uint32_t virtio_read_config(PCIDevice *pci_dev, uint32_t address, int len) { VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); struct virtio_pci_cfg_cap *cfg; if (proxy->config_cap && ranges_overlap(address, len, proxy->config_cap ...
{ "code": [ " if (len <= sizeof cfg->pci_cfg_data) {", " if (len <= sizeof cfg->pci_cfg_data) {" ], "line_no": [ 35, 35 ] }
static uint32_t FUNC_0(PCIDevice *pci_dev, uint32_t address, int len) { VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); struct virtio_pci_cfg_cap *VAR_0; if (proxy->config_cap && ranges_overlap(address, len, proxy->config_cap + offsetof...
[ "static uint32_t FUNC_0(PCIDevice *pci_dev,\nuint32_t address, int len)\n{", "VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);", "struct virtio_pci_cfg_cap *VAR_0;", "if (proxy->config_cap &&\nranges_overlap(address, len, proxy->config_cap + offsetof(struct virtio_pci_cfg_cap,\npci_cfg_dat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15, 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
9,452
static struct omap_mcbsp_s *omap_mcbsp_init(MemoryRegion *system_memory, hwaddr base, qemu_irq txirq, qemu_irq rxirq, qemu_irq *dma, omap_clk clk) { struct omap_mcbsp_s *s = (stru...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
static struct omap_mcbsp_s *omap_mcbsp_init(MemoryRegion *system_memory, hwaddr base, qemu_irq txirq, qemu_irq rxirq, qemu_irq *dma, omap_clk clk) { struct omap_mcbsp_s *s = (stru...
{ "code": [ " struct omap_mcbsp_s *s = (struct omap_mcbsp_s *)", " g_malloc0(sizeof(struct omap_mcbsp_s));" ], "line_no": [ 11, 13 ] }
static struct omap_mcbsp_s *FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1, qemu_irq VAR_2, qemu_irq VAR_3, qemu_irq *VAR_4, omap_clk VAR_5) { struct omap_mcbsp_s *VAR_6 = (struct omap_...
[ "static struct omap_mcbsp_s *FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nqemu_irq VAR_2, qemu_irq VAR_3,\nqemu_irq *VAR_4, omap_clk VAR_5)\n{", "struct omap_mcbsp_s *VAR_6 = (struct omap_mcbsp_s *)\ng_malloc0(sizeof(struct omap_mcbsp_s));", "VAR_6->VAR_2 = VAR_2;", "VAR_6->VAR_3 = VAR_3;", "VAR_6->txdrq = V...
[ 0, 1, 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 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
9,453
FWCfgState *pc_memory_init(MachineState *machine, MemoryRegion *system_memory, ram_addr_t below_4g_mem_size, ram_addr_t above_4g_mem_size, MemoryRegion *rom_memory, MemoryRegion **ram_m...
true
qemu
f2c385220598523c8b9fefbfff1a6754cfd8232a
FWCfgState *pc_memory_init(MachineState *machine, MemoryRegion *system_memory, ram_addr_t below_4g_mem_size, ram_addr_t above_4g_mem_size, MemoryRegion *rom_memory, MemoryRegion **ram_m...
{ "code": [], "line_no": [] }
FWCfgState *FUNC_0(MachineState *machine, MemoryRegion *system_memory, ram_addr_t below_4g_mem_size, ram_addr_t above_4g_mem_size, MemoryRegion *rom_memory, MemoryRegion **ram_memory, ...
[ "FWCfgState *FUNC_0(MachineState *machine,\nMemoryRegion *system_memory,\nram_addr_t below_4g_mem_size,\nram_addr_t above_4g_mem_size,\nMemoryRegion *rom_memory,\nMemoryRegion **ram_memory,\nPcGuestInfo *guest_info)\n{", "int VAR_0, VAR_1;", "MemoryRegion *ram, *option_rom_mr;", "MemoryRegion *ram_below_4g, *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 20 ], [ 21, 22 ], [ 23 ], [ 24 ], [ 25, 26 ], [ 27 ], [ 28 ], [ 29 ],...
9,454
static MegasasCmd *megasas_next_frame(MegasasState *s, hwaddr frame) { MegasasCmd *cmd = NULL; int num = 0, index; cmd = megasas_lookup_frame(s, frame); if (cmd) { trace_megasas_qf_found(cmd->index, cmd->pa); return cmd; } index = s->reply_queue_head; num = 0...
true
qemu
6df5718bd3ec56225c44cf96440c723c1b611b87
static MegasasCmd *megasas_next_frame(MegasasState *s, hwaddr frame) { MegasasCmd *cmd = NULL; int num = 0, index; cmd = megasas_lookup_frame(s, frame); if (cmd) { trace_megasas_qf_found(cmd->index, cmd->pa); return cmd; } index = s->reply_queue_head; num = 0...
{ "code": [ "static MegasasCmd *megasas_next_frame(MegasasState *s,", " hwaddr frame)", " MegasasCmd *cmd = NULL;", " int num = 0, index;", " cmd = megasas_lookup_frame(s, frame);", " if (cmd) {", " trace_megasas_qf_found(cmd->index, cmd->pa);", " return cm...
static MegasasCmd *FUNC_0(MegasasState *s, hwaddr frame) { MegasasCmd *cmd = NULL; int VAR_0 = 0, VAR_1; cmd = megasas_lookup_frame(s, frame); if (cmd) { trace_megasas_qf_found(cmd->VAR_1, cmd->pa); return cmd; } VAR_1 = s->reply_queue_head; VAR_0 = 0; w...
[ "static MegasasCmd *FUNC_0(MegasasState *s,\nhwaddr frame)\n{", "MegasasCmd *cmd = NULL;", "int VAR_0 = 0, VAR_1;", "cmd = megasas_lookup_frame(s, frame);", "if (cmd) {", "trace_megasas_qf_found(cmd->VAR_1, cmd->pa);", "return cmd;", "}", "VAR_1 = s->reply_queue_head;", "VAR_0 = 0;", "while (VAR...
[ 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 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 ], [...
9,455
static int mpegts_audio_write(void *opaque, uint8_t *buf, int size) { MpegTSWriteStream *ts_st = (MpegTSWriteStream *)opaque; if (ts_st->adata_pos + size > ts_st->adata_size) return AVERROR(EIO); memcpy(ts_st->adata + ts_st->adata_pos, buf, size); ts_st->adata_pos += size; return ...
true
FFmpeg
328e203ca9b5e5afcd0769dae149075735150346
static int mpegts_audio_write(void *opaque, uint8_t *buf, int size) { MpegTSWriteStream *ts_st = (MpegTSWriteStream *)opaque; if (ts_st->adata_pos + size > ts_st->adata_size) return AVERROR(EIO); memcpy(ts_st->adata + ts_st->adata_pos, buf, size); ts_st->adata_pos += size; return ...
{ "code": [ " if (ts_st->adata_pos + size > ts_st->adata_size)" ], "line_no": [ 7 ] }
static int FUNC_0(void *VAR_0, uint8_t *VAR_1, int VAR_2) { MpegTSWriteStream *ts_st = (MpegTSWriteStream *)VAR_0; if (ts_st->adata_pos + VAR_2 > ts_st->adata_size) return AVERROR(EIO); memcpy(ts_st->adata + ts_st->adata_pos, VAR_1, VAR_2); ts_st->adata_pos += VAR_2; return 0; }
[ "static int FUNC_0(void *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "MpegTSWriteStream *ts_st = (MpegTSWriteStream *)VAR_0;", "if (ts_st->adata_pos + VAR_2 > ts_st->adata_size)\nreturn AVERROR(EIO);", "memcpy(ts_st->adata + ts_st->adata_pos, VAR_1, VAR_2);", "ts_st->adata_pos += VAR_2;", "return 0;", "}" ]
[ 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
9,456
AVFormatContext *avformat_alloc_context(void) { AVFormatContext *ic; ic = av_malloc(sizeof(AVFormatContext)); if (!ic) return ic; avformat_get_context_defaults(ic); ic->internal = av_mallocz(sizeof(*ic->internal)); if (!ic->internal) { avformat_free_context(ic); retur...
true
FFmpeg
9257692ac15eff7b07540c1f61cebde0d8823fbd
AVFormatContext *avformat_alloc_context(void) { AVFormatContext *ic; ic = av_malloc(sizeof(AVFormatContext)); if (!ic) return ic; avformat_get_context_defaults(ic); ic->internal = av_mallocz(sizeof(*ic->internal)); if (!ic->internal) { avformat_free_context(ic); retur...
{ "code": [], "line_no": [] }
AVFormatContext *FUNC_0(void) { AVFormatContext *ic; ic = av_malloc(sizeof(AVFormatContext)); if (!ic) return ic; avformat_get_context_defaults(ic); ic->internal = av_mallocz(sizeof(*ic->internal)); if (!ic->internal) { avformat_free_context(ic); return NULL; } ...
[ "AVFormatContext *FUNC_0(void)\n{", "AVFormatContext *ic;", "ic = av_malloc(sizeof(AVFormatContext));", "if (!ic) return ic;", "avformat_get_context_defaults(ic);", "ic->internal = av_mallocz(sizeof(*ic->internal));", "if (!ic->internal) {", "avformat_free_context(ic);", "return NULL;", "}", "re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 16 ], [ 18 ], [ 20 ], [ 22 ], [ 24 ], [ 28 ], [ 30 ] ]
9,459
void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb) { CPUSH4State *env = cs->env_ptr; DisasContext ctx; target_ulong pc_start; int num_insns; int max_insns; pc_start = tb->pc; ctx.pc = pc_start; ctx.tbflags = (uint32_t)tb->flags; ctx.envflags = tb->flags...
true
qemu
c5a49c63fa26e8825ad101dfe86339ae4c216539
void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb) { CPUSH4State *env = cs->env_ptr; DisasContext ctx; target_ulong pc_start; int num_insns; int max_insns; pc_start = tb->pc; ctx.pc = pc_start; ctx.tbflags = (uint32_t)tb->flags; ctx.envflags = tb->flags...
{ "code": [ " max_insns = tb->cflags & CF_COUNT_MASK;", " if (num_insns == max_insns && (tb->cflags & CF_LAST_IO)) {", " max_insns = tb->cflags & CF_COUNT_MASK;", " if (num_insns == max_insns && (tb->cflags & CF_LAST_IO)) {", " if (tb->cflags & CF_LAST_IO) {", " max_i...
void FUNC_0(CPUState *VAR_0, struct TranslationBlock *VAR_1) { CPUSH4State *env = VAR_0->env_ptr; DisasContext ctx; target_ulong pc_start; int VAR_2; int VAR_3; pc_start = VAR_1->pc; ctx.pc = pc_start; ctx.tbflags = (uint32_t)VAR_1->flags; ctx.envflags = VAR_1->flags & TB...
[ "void FUNC_0(CPUState *VAR_0, struct TranslationBlock *VAR_1)\n{", "CPUSH4State *env = VAR_0->env_ptr;", "DisasContext ctx;", "target_ulong pc_start;", "int VAR_2;", "int VAR_3;", "pc_start = VAR_1->pc;", "ctx.pc = pc_start;", "ctx.tbflags = (uint32_t)VAR_1->flags;", "ctx.envflags = VAR_1->flags &...
[ 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, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
9,461
static void sh_serial_ioport_write(void *opaque, uint32_t offs, uint32_t val) { sh_serial_state *s = opaque; unsigned char ch; #ifdef DEBUG_SERIAL printf("sh_serial: write offs=0x%02x val=0x%02x\n", offs, val); #endif switch(offs) { case 0x00: /* SMR */ s->smr = val & ((s->fe...
true
qemu
d1f193b0edb919ab109f88c53469ec9073f2e142
static void sh_serial_ioport_write(void *opaque, uint32_t offs, uint32_t val) { sh_serial_state *s = opaque; unsigned char ch; #ifdef DEBUG_SERIAL printf("sh_serial: write offs=0x%02x val=0x%02x\n", offs, val); #endif switch(offs) { case 0x00: s->smr = val & ((s->feat & SH_S...
{ "code": [ "#if 0", " ret = s->sptr;", " break;", "#endif", "#if 0", "#endif" ], "line_no": [ 73, 203, 193, 17, 73, 17 ] }
static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { sh_serial_state *s = VAR_0; unsigned char VAR_3; #ifdef DEBUG_SERIAL printf("sh_serial: write VAR_1=0x%02x VAR_2=0x%02x\n", VAR_1, VAR_2); #endif switch(VAR_1) { case 0x00: s->smr = VAR_2 & ((s->feat & SH_SERI...
[ "static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "sh_serial_state *s = VAR_0;", "unsigned char VAR_3;", "#ifdef DEBUG_SERIAL\nprintf(\"sh_serial: write VAR_1=0x%02x VAR_2=0x%02x\\n\",\nVAR_1, VAR_2);", "#endif\nswitch(VAR_1) {", "case 0x00:\ns->smr = VAR_2 & ((s->feat & SH_SERIAL_FEAT...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
9,462
int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples) { AVPacket pkt; AVFrame frame0 = { 0 }; AVFrame *frame; int ret, samples_size, got_packet...
false
FFmpeg
e55c3857d20ba015e4914c2e80fcab037af0799d
int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples) { AVPacket pkt; AVFrame frame0 = { 0 }; AVFrame *frame; int ret, samples_size, got_packet...
{ "code": [], "line_no": [] }
int VAR_0 avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples) { AVPacket pkt; AVFrame frame0 = { 0 }; AVFrame *frame; int ret, samples_size, got_packet; av_in...
[ "int VAR_0 avcodec_encode_audio(AVCodecContext *avctx,\nuint8_t *buf, int buf_size,\nconst short *samples)\n{", "AVPacket pkt;", "AVFrame frame0 = { 0 };", "AVFrame *frame;", "int ret, samples_size, got_packet;", "av_init_packet(&pkt);", "pkt.data = buf;", "pkt.size = buf_size;", "if (samples) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53 ], [...
9,463
static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size, int64_t pos, uint64_t cluster_time, uint64_t block_duration, int is_keyframe, uint8_t *additional, uint64_t additional_id, int addit...
true
FFmpeg
81e85bc95cb1e4f8cc7b1ba71ec027c8791b55d1
static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size, int64_t pos, uint64_t cluster_time, uint64_t block_duration, int is_keyframe, uint8_t *additional, uint64_t additional_id, int addit...
{ "code": [ " res = matroska_parse_laces(matroska, &data, size, (flags & 0x06) >> 1," ], "line_no": [ 125 ] }
static int FUNC_0(MatroskaDemuxContext *VAR_0, uint8_t *VAR_1, int VAR_2, int64_t VAR_3, uint64_t VAR_4, uint64_t VAR_5, int VAR_6, uint8_t *VAR_7, uint64_t VAR_8, int VAR_9, int64_t VAR_1...
[ "static int FUNC_0(MatroskaDemuxContext *VAR_0, uint8_t *VAR_1,\nint VAR_2, int64_t VAR_3, uint64_t VAR_4,\nuint64_t VAR_5, int VAR_6,\nuint8_t *VAR_7, uint64_t VAR_8, int VAR_9,\nint64_t VAR_10)\n{", "uint64_t timecode = AV_NOPTS_VALUE;", "MatroskaTrack *track;", "int VAR_11 = 0;", "AVStream *st;", "int1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49,...
9,465
static void test_hbitmap_iter_past(TestHBitmapData *data, const void *unused) { hbitmap_test_init(data, L3, 0); hbitmap_test_set(data, 0, L3); hbitmap_test_check(data, L3); }
true
qemu
1b0952445522af73b0e78420a9078b3653923703
static void test_hbitmap_iter_past(TestHBitmapData *data, const void *unused) { hbitmap_test_init(data, L3, 0); hbitmap_test_set(data, 0, L3); hbitmap_test_check(data, L3); }
{ "code": [ "static void test_hbitmap_iter_past(TestHBitmapData *data,", " const void *unused)", " hbitmap_test_init(data, L3, 0);", " hbitmap_test_set(data, 0, L3);", " hbitmap_test_check(data, L3);" ], "line_no": [ 1, 3, 7, 9, 1...
static void FUNC_0(TestHBitmapData *VAR_0, const void *VAR_1) { hbitmap_test_init(VAR_0, L3, 0); hbitmap_test_set(VAR_0, 0, L3); hbitmap_test_check(VAR_0, L3); }
[ "static void FUNC_0(TestHBitmapData *VAR_0,\nconst void *VAR_1)\n{", "hbitmap_test_init(VAR_0, L3, 0);", "hbitmap_test_set(VAR_0, 0, L3);", "hbitmap_test_check(VAR_0, L3);", "}" ]
[ 1, 1, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
9,467
int do_balloon(Monitor *mon, const QDict *params, MonitorCompletion cb, void *opaque) { int ret; if (kvm_enabled() && !kvm_has_sync_mmu()) { qerror_report(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon"); return -1; } ret = qemu_balloon(qdict_get_int(params, "value...
true
qemu
30fb2ca603e8b8d0f02630ef18bc0d0637a88ffa
int do_balloon(Monitor *mon, const QDict *params, MonitorCompletion cb, void *opaque) { int ret; if (kvm_enabled() && !kvm_has_sync_mmu()) { qerror_report(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon"); return -1; } ret = qemu_balloon(qdict_get_int(params, "value...
{ "code": [ " ret = qemu_balloon(qdict_get_int(params, \"value\"), cb, opaque);" ], "line_no": [ 21 ] }
int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, MonitorCompletion VAR_2, void *VAR_3) { int VAR_4; if (kvm_enabled() && !kvm_has_sync_mmu()) { qerror_report(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon"); return -1; } VAR_4 = qemu_balloon(qdict_get_int(VAR_1, "val...
[ "int FUNC_0(Monitor *VAR_0, const QDict *VAR_1,\nMonitorCompletion VAR_2, void *VAR_3)\n{", "int VAR_4;", "if (kvm_enabled() && !kvm_has_sync_mmu()) {", "qerror_report(QERR_KVM_MISSING_CAP, \"synchronous MMU\", \"balloon\");", "return -1;", "}", "VAR_4 = qemu_balloon(qdict_get_int(VAR_1, \"value\"), VAR...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ] ]
9,468
static void gif_put_bits_rev(PutBitContext *s, int n, unsigned int value) { unsigned int bit_buf; int bit_cnt; // printf("put_bits=%d %x\n", n, value); assert(n == 32 || value < (1U << n)); bit_buf = s->bit_buf; bit_cnt = 32 - s->bit_left; /* XXX:lazyness... was = s->bit_cnt; */ ...
true
FFmpeg
76d7c327eba042106b729e9d671b6f85f515b1af
static void gif_put_bits_rev(PutBitContext *s, int n, unsigned int value) { unsigned int bit_buf; int bit_cnt; assert(n == 32 || value < (1U << n)); bit_buf = s->bit_buf; bit_cnt = 32 - s->bit_left; if (n < (32-bit_cnt)) { bit_buf |= value << (bit_cnt); ...
{ "code": [], "line_no": [] }
static void FUNC_0(PutBitContext *VAR_0, int VAR_1, unsigned int VAR_2) { unsigned int VAR_3; int VAR_4; assert(VAR_1 == 32 || VAR_2 < (1U << VAR_1)); VAR_3 = VAR_0->VAR_3; VAR_4 = 32 - VAR_0->bit_left; if (VAR_1 < (32-VAR_4)) { VAR_3 |= VAR_2 << (VAR_4);...
[ "static void FUNC_0(PutBitContext *VAR_0, int VAR_1, unsigned int VAR_2)\n{", "unsigned int VAR_3;", "int VAR_4;", "assert(VAR_1 == 32 || VAR_2 < (1U << VAR_1));", "VAR_3 = VAR_0->VAR_3;", "VAR_4 = 32 - VAR_0->bit_left;", "if (VAR_1 < (32-VAR_4)) {", "VAR_3 |= VAR_2 << (VAR_4);", "VAR_4+=VAR_1;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 17 ], [ 19 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53, 55 ], [ 59 ], [ 61 ], ...
9,469
uint64_t qemu_get_be64(QEMUFile *f) { uint64_t v; v = (uint64_t)qemu_get_be32(f) << 32; v |= qemu_get_be32(f); return v; }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
uint64_t qemu_get_be64(QEMUFile *f) { uint64_t v; v = (uint64_t)qemu_get_be32(f) << 32; v |= qemu_get_be32(f); return v; }
{ "code": [], "line_no": [] }
uint64_t FUNC_0(QEMUFile *f) { uint64_t v; v = (uint64_t)qemu_get_be32(f) << 32; v |= qemu_get_be32(f); return v; }
[ "uint64_t FUNC_0(QEMUFile *f)\n{", "uint64_t v;", "v = (uint64_t)qemu_get_be32(f) << 32;", "v |= qemu_get_be32(f);", "return v;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
9,470
static int decode_b_mbs(VC9Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &v->s.gb; int current_mb = 0, i /* MB / B postion information */; int b_mv_type = BMV_TYPE_BACKWARD; int mquant, mqdiff; /* MB quant stuff */ int ttmb; /* MacroBlock transform type */ static...
true
FFmpeg
7cc84d241ba6ef8e27e4d057176a4ad385ad3d59
static int decode_b_mbs(VC9Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &v->s.gb; int current_mb = 0, i ; int b_mv_type = BMV_TYPE_BACKWARD; int mquant, mqdiff; int ttmb; static const int size_table[6] = { 0, 2, 3, 4, 5, 8 }, offset_table[6] = { 0, 1,...
{ "code": [ " GetBitContext *gb = &v->s.gb;", " GetBitContext *gb = &v->s.gb;", " if (v->pq < 5) v->ttmb_vlc = &vc9_ttmb_vlc[0];", " else if (v->pq < 13) v->ttmb_vlc = &vc9_ttmb_vlc[1];", " else v->ttmb_vlc = &vc9_ttmb_vlc[2];", " current_mb++;", " if (v->pq < ...
static int FUNC_0(VC9Context *VAR_0) { MpegEncContext *s = &VAR_0->s; GetBitContext *gb = &VAR_0->s.gb; int VAR_1 = 0, VAR_2 ; int VAR_3 = BMV_TYPE_BACKWARD; int VAR_4, VAR_5; int VAR_6; static const int VAR_7[6] = { 0, 2, 3, 4, 5, 8 }, VAR_8[6] = { 0, 1, 3, 7, 15, 3...
[ "static int FUNC_0(VC9Context *VAR_0)\n{", "MpegEncContext *s = &VAR_0->s;", "GetBitContext *gb = &VAR_0->s.gb;", "int VAR_1 = 0, VAR_2 ;", "int VAR_3 = BMV_TYPE_BACKWARD;", "int VAR_4, VAR_5;", "int VAR_6;", "static const int VAR_7[6] = { 0, 2, 3, 4, 5, 8 },", "VAR_8[6] = { 0, 1, 3, 7, 15, 31 };", ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 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, 1, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [...
9,471
static int ehci_execute(EHCIQueue *q) { USBPort *port; USBDevice *dev; int ret; int i; int endp; int devadr; if ( !(q->qh.token & QTD_TOKEN_ACTIVE)) { fprintf(stderr, "Attempting to execute inactive QH\n"); return USB_RET_PROCERR; } q->tbytes = (q->qh....
true
qemu
4f4321c11ff6e98583846bfd6f0e81954924b003
static int ehci_execute(EHCIQueue *q) { USBPort *port; USBDevice *dev; int ret; int i; int endp; int devadr; if ( !(q->qh.token & QTD_TOKEN_ACTIVE)) { fprintf(stderr, "Attempting to execute inactive QH\n"); return USB_RET_PROCERR; } q->tbytes = (q->qh....
{ "code": [ " q->packet.pid = q->pid;", " q->packet.devaddr = devadr;", " q->packet.devep = endp;", " q->packet.data = q->buffer;", " q->packet.len = q->tbytes;", " DPRINTF(\"submit: qh %x next %x qtd %x pid %x len %d (total %d) endp %x ret %d\\n\",", ...
static int FUNC_0(EHCIQueue *VAR_0) { USBPort *port; USBDevice *dev; int VAR_1; int VAR_2; int VAR_3; int VAR_4; if ( !(VAR_0->qh.token & QTD_TOKEN_ACTIVE)) { fprintf(stderr, "Attempting to execute inactive QH\n"); return USB_RET_PROCERR; } VAR_0->tbyt...
[ "static int FUNC_0(EHCIQueue *VAR_0)\n{", "USBPort *port;", "USBDevice *dev;", "int VAR_1;", "int VAR_2;", "int VAR_3;", "int VAR_4;", "if ( !(VAR_0->qh.token & QTD_TOKEN_ACTIVE)) {", "fprintf(stderr, \"Attempting to execute inactive QH\\n\");", "return USB_RET_PROCERR;", "}", "VAR_0->tbytes =...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
9,472
static void powerpc_set_compat(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { Error *error = NULL; char *value = NULL; Property *prop = opaque; uint32_t *max_compat = qdev_get_prop_ptr(DEVICE(obj), prop); visit_type_str(v, name, &valu...
true
qemu
7843c0d60db694b6d97e14ec5538fb97424016c1
static void powerpc_set_compat(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { Error *error = NULL; char *value = NULL; Property *prop = opaque; uint32_t *max_compat = qdev_get_prop_ptr(DEVICE(obj), prop); visit_type_str(v, name, &valu...
{ "code": [ " void *opaque, Error **errp)", " Property *prop = opaque;", " uint32_t *max_compat = qdev_get_prop_ptr(DEVICE(obj), prop);", "static void powerpc_set_compat(Object *obj, Visitor *v, const char *name,", " void *opaque, E...
static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2, void *VAR_3, Error **VAR_4) { Error *error = NULL; char *VAR_5 = NULL; Property *prop = VAR_3; uint32_t *max_compat = qdev_get_prop_ptr(DEVICE(VAR_0), prop); visit_type_str(VAR_1, VAR_2, &VAR...
[ "static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2,\nvoid *VAR_3, Error **VAR_4)\n{", "Error *error = NULL;", "char *VAR_5 = NULL;", "Property *prop = VAR_3;", "uint32_t *max_compat = qdev_get_prop_ptr(DEVICE(VAR_0), prop);", "visit_type_str(VAR_1, VAR_2, &VAR_5, &error);", "if (error)...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
9,473
static bool write_header(FILE *fp) { static const TraceRecord header = { .event = HEADER_EVENT_ID, .timestamp_ns = HEADER_MAGIC, .x1 = HEADER_VERSION, }; return fwrite(&header, sizeof header, 1, fp) == 1; }
true
qemu
0b5538c300a56c3cfb33022840fe0b4968147e7a
static bool write_header(FILE *fp) { static const TraceRecord header = { .event = HEADER_EVENT_ID, .timestamp_ns = HEADER_MAGIC, .x1 = HEADER_VERSION, }; return fwrite(&header, sizeof header, 1, fp) == 1; }
{ "code": [ "static bool write_header(FILE *fp)", " static const TraceRecord header = {", " .event = HEADER_EVENT_ID,", " .timestamp_ns = HEADER_MAGIC,", " .x1 = HEADER_VERSION,", " };", " return fwrite(&header, sizeof header, 1, fp) == 1;" ], "line_no": [...
static bool FUNC_0(FILE *fp) { static const TraceRecord VAR_0 = { .event = HEADER_EVENT_ID, .timestamp_ns = HEADER_MAGIC, .x1 = HEADER_VERSION, }; return fwrite(&VAR_0, sizeof VAR_0, 1, fp) == 1; }
[ "static bool FUNC_0(FILE *fp)\n{", "static const TraceRecord VAR_0 = {", ".event = HEADER_EVENT_ID,\n.timestamp_ns = HEADER_MAGIC,\n.x1 = HEADER_VERSION,\n};", "return fwrite(&VAR_0, sizeof VAR_0, 1, fp) == 1;", "}" ]
[ 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13 ], [ 17 ], [ 19 ] ]
9,474
static int encode_mode(CinepakEncContext *s, int h, AVPicture *scratch_pict, AVPicture *last_pict, strip_info *info, unsigned char *buf) { int x, y, z, flags, bits, temp_size, header_ofs, ret = 0, mb_count = s->w * h / MB_AREA; int needs_extra_bit, should_write_temp; unsigned char temp[64]; //32/2 = 16 ...
true
FFmpeg
a6e9448dc6971ba4e196656de3e6cd7bcac2cb8f
static int encode_mode(CinepakEncContext *s, int h, AVPicture *scratch_pict, AVPicture *last_pict, strip_info *info, unsigned char *buf) { int x, y, z, flags, bits, temp_size, header_ofs, ret = 0, mb_count = s->w * h / MB_AREA; int needs_extra_bit, should_write_temp; unsigned char temp[64]; mb_inf...
{ "code": [ " AVPicture sub_scratch, sub_last;" ], "line_no": [ 13 ] }
static int FUNC_0(CinepakEncContext *VAR_0, int VAR_1, AVPicture *VAR_2, AVPicture *VAR_3, strip_info *VAR_4, unsigned char *VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13 = 0, VAR_14 = VAR_0->w * VAR_1 / MB_AREA; int VAR_15, VAR_16; unsigned char VAR_17[64]; mb_info *mb; ...
[ "static int FUNC_0(CinepakEncContext *VAR_0, int VAR_1, AVPicture *VAR_2, AVPicture *VAR_3, strip_info *VAR_4, unsigned char *VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13 = 0, VAR_14 = VAR_0->w * VAR_1 / MB_AREA;", "int VAR_15, VAR_16;", "unsigned char VAR_17[64];", "mb_info *...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 25, 27 ], [ 31, 33 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61, 63 ], [...
9,475
void mips_malta_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; ram_addr_t ram_low_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_file...
true
qemu
dc520a7dee0a9307e844eb6c5d4b21482bf52fcd
void mips_malta_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; ram_addr_t ram_low_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_file...
{ "code": [ " cpu_mips_irq_init_cpu(env);", " cpu_mips_clock_init(env);" ], "line_no": [ 455, 457 ] }
void FUNC_0(MachineState *VAR_0) { ram_addr_t ram_size = VAR_0->ram_size; ram_addr_t ram_low_size; const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; char *VAR_5; pflash_t *fl; MemoryRegion...
[ "void FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "ram_addr_t ram_low_size;", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "char *VAR_5;", "pflash_t *fl;", "MemoryR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
9,476
static void video_refresh(void *opaque, double *remaining_time) { VideoState *is = opaque; VideoPicture *vp; double time; SubPicture *sp, *sp2; if (!is->paused && get_master_sync_type(is) == AV_SYNC_EXTERNAL_CLOCK && is->realtime) check_external_clock_speed(is); if (!displa...
false
FFmpeg
5ecfcc7dff04ff0e86d8b6b3a33709ae956dfef7
static void video_refresh(void *opaque, double *remaining_time) { VideoState *is = opaque; VideoPicture *vp; double time; SubPicture *sp, *sp2; if (!is->paused && get_master_sync_type(is) == AV_SYNC_EXTERNAL_CLOCK && is->realtime) check_external_clock_speed(is); if (!displa...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, double *VAR_1) { VideoState *is = VAR_0; VideoPicture *vp; double VAR_2; SubPicture *sp, *sp2; if (!is->paused && get_master_sync_type(is) == AV_SYNC_EXTERNAL_CLOCK && is->realtime) check_external_clock_speed(is); if (!display_disable && is->...
[ "static void FUNC_0(void *VAR_0, double *VAR_1)\n{", "VideoState *is = VAR_0;", "VideoPicture *vp;", "double VAR_2;", "SubPicture *sp, *sp2;", "if (!is->paused && get_master_sync_type(is) == AV_SYNC_EXTERNAL_CLOCK && is->realtime)\ncheck_external_clock_speed(is);", "if (!display_disable && is->show_mode...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ], [...
9,477
static void extrapolate_isf(float out[LP_ORDER_16k], float isf[LP_ORDER]) { float diff_isf[LP_ORDER - 2], diff_mean; float *diff_hi = diff_isf - LP_ORDER + 1; // diff array for extrapolated indexes float corr_lag[3]; float est, scale; int i, i_max_corr; memcpy(out, isf, (LP_ORDER - 1) *...
false
FFmpeg
9d87374ec0f382c8394ad511243db6980afa42af
static void extrapolate_isf(float out[LP_ORDER_16k], float isf[LP_ORDER]) { float diff_isf[LP_ORDER - 2], diff_mean; float *diff_hi = diff_isf - LP_ORDER + 1; float corr_lag[3]; float est, scale; int i, i_max_corr; memcpy(out, isf, (LP_ORDER - 1) * sizeof(float)); out[LP_ORDER_16k...
{ "code": [], "line_no": [] }
static void FUNC_0(float VAR_0[LP_ORDER_16k], float VAR_1[LP_ORDER]) { float VAR_2[LP_ORDER - 2], diff_mean; float *VAR_3 = VAR_2 - LP_ORDER + 1; float VAR_4[3]; float VAR_5, VAR_6; int VAR_7, VAR_8; memcpy(VAR_0, VAR_1, (LP_ORDER - 1) * sizeof(float)); VAR_0[LP_ORDER_16k - 1] = V...
[ "static void FUNC_0(float VAR_0[LP_ORDER_16k], float VAR_1[LP_ORDER])\n{", "float VAR_2[LP_ORDER - 2], diff_mean;", "float *VAR_3 = VAR_2 - LP_ORDER + 1;", "float VAR_4[3];", "float VAR_5, VAR_6;", "int VAR_7, VAR_8;", "memcpy(VAR_0, VAR_1, (LP_ORDER - 1) * sizeof(float));", "VAR_0[LP_ORDER_16k - 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 53 ], [ 55 ], [...
9,478
static int get_video_private_data(struct VideoFile *vf, AVCodecContext *codec) { AVIOContext *io = NULL; uint16_t sps_size, pps_size; int err = AVERROR(EINVAL); if (codec->codec_id == AV_CODEC_ID_VC1) return get_private_data(vf, codec); avio_open_dyn_buf(&io); if (codec->extr...
false
FFmpeg
224afddc7c869472caa57fc571aaf979a85d24ef
static int get_video_private_data(struct VideoFile *vf, AVCodecContext *codec) { AVIOContext *io = NULL; uint16_t sps_size, pps_size; int err = AVERROR(EINVAL); if (codec->codec_id == AV_CODEC_ID_VC1) return get_private_data(vf, codec); avio_open_dyn_buf(&io); if (codec->extr...
{ "code": [], "line_no": [] }
static int FUNC_0(struct VideoFile *VAR_0, AVCodecContext *VAR_1) { AVIOContext *io = NULL; uint16_t sps_size, pps_size; int VAR_2 = AVERROR(EINVAL); if (VAR_1->codec_id == AV_CODEC_ID_VC1) return get_private_data(VAR_0, VAR_1); avio_open_dyn_buf(&io); if (VAR_1->extradata_si...
[ "static int FUNC_0(struct VideoFile *VAR_0, AVCodecContext *VAR_1)\n{", "AVIOContext *io = NULL;", "uint16_t sps_size, pps_size;", "int VAR_2 = AVERROR(EINVAL);", "if (VAR_1->codec_id == AV_CODEC_ID_VC1)\nreturn get_private_data(VAR_0, VAR_1);", "avio_open_dyn_buf(&io);", "if (VAR_1->extradata_size < 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [...
9,479
static void FUNCC(pred8x8l_horizontal)(uint8_t *p_src, int has_topleft, int has_topright, int p_stride) { pixel *src = (pixel*)p_src; int stride = p_stride>>(sizeof(pixel)-1); PREDICT_8x8_LOAD_LEFT; #define ROW(y) ((pixel4*)(src+y*stride))[0] =\ ((pixel4*)(src+y*stride))[1] = PIXEL_SP...
false
FFmpeg
c77b858c4cafe74cd663bdd1bc9d96a487b20e14
static void FUNCC(pred8x8l_horizontal)(uint8_t *p_src, int has_topleft, int has_topright, int p_stride) { pixel *src = (pixel*)p_src; int stride = p_stride>>(sizeof(pixel)-1); PREDICT_8x8_LOAD_LEFT; #define ROW(y) ((pixel4*)(src+y*stride))[0] =\ ((pixel4*)(src+y*stride))[1] = PIXEL_SP...
{ "code": [], "line_no": [] }
static void FUNC_0(pred8x8l_horizontal)(uint8_t *p_src, int has_topleft, int has_topright, int p_stride) { pixel *src = (pixel*)p_src; int VAR_0 = p_stride>>(sizeof(pixel)-1); PREDICT_8x8_LOAD_LEFT; #define ROW(y) ((pixel4*)(src+y*VAR_0))[0] =\ ((pixel4*)(src+y*VAR_0))[1] = PIXEL_SPLA...
[ "static void FUNC_0(pred8x8l_horizontal)(uint8_t *p_src, int has_topleft, int has_topright, int p_stride)\n{", "pixel *src = (pixel*)p_src;", "int VAR_0 = p_stride>>(sizeof(pixel)-1);", "PREDICT_8x8_LOAD_LEFT;", "#define ROW(y) ((pixel4*)(src+y*VAR_0))[0] =\\\n((pixel4*)(src+y*VAR_0))[1] = PIXEL_SPLAT_X4(l#...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15, 17 ], [ 19, 21 ] ]
9,480
static int dca_parse_params(DCAParseContext *pc1, const uint8_t *buf, int buf_size, int *duration, int *sample_rate, int *profile) { DCAExssAsset *asset = &pc1->exss.assets[0]; GetBitContext gb; DCACoreFrameHeader h; uint8_t hdr[DCA_CORE_FRA...
false
FFmpeg
7c9d2ad45f4e46ad2c3b2e93051efbe1e0d0529e
static int dca_parse_params(DCAParseContext *pc1, const uint8_t *buf, int buf_size, int *duration, int *sample_rate, int *profile) { DCAExssAsset *asset = &pc1->exss.assets[0]; GetBitContext gb; DCACoreFrameHeader h; uint8_t hdr[DCA_CORE_FRA...
{ "code": [], "line_no": [] }
static int FUNC_0(DCAParseContext *VAR_0, const uint8_t *VAR_1, int VAR_2, int *VAR_3, int *VAR_4, int *VAR_5) { DCAExssAsset *asset = &VAR_0->exss.assets[0]; GetBitContext gb; DCACoreFrameHeader h; uint8_t hdr[DCA_CORE_FRAME_HEADER_SIZE + A...
[ "static int FUNC_0(DCAParseContext *VAR_0, const uint8_t *VAR_1,\nint VAR_2, int *VAR_3, int *VAR_4,\nint *VAR_5)\n{", "DCAExssAsset *asset = &VAR_0->exss.assets[0];", "GetBitContext gb;", "DCACoreFrameHeader h;", "uint8_t hdr[DCA_CORE_FRAME_HEADER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 };", "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 ], [ 21, 23 ], [ 27 ], [ 29, 31 ], [ 35 ], [ 37, 39 ], [ 43, 45 ], [ 49 ], [ 51, 53 ], [ 55, 57 ], [ 59,...
9,484
static int ffmmal_fill_input_port(AVCodecContext *avctx) { MMALDecodeContext *ctx = avctx->priv_data; while (ctx->waiting_buffers) { MMAL_BUFFER_HEADER_T *mbuffer; FFBufferEntry *buffer; MMAL_STATUS_T status; mbuffer = mmal_queue_get(ctx->pool_in->queue); if (...
true
FFmpeg
65db4899fa8790049bec3af16ecdb75dd81051fd
static int ffmmal_fill_input_port(AVCodecContext *avctx) { MMALDecodeContext *ctx = avctx->priv_data; while (ctx->waiting_buffers) { MMAL_BUFFER_HEADER_T *mbuffer; FFBufferEntry *buffer; MMAL_STATUS_T status; mbuffer = mmal_queue_get(ctx->pool_in->queue); if (...
{ "code": [ " mbuffer->user_data = buffer->ref;", " if ((status = mmal_port_send_buffer(ctx->decoder->input[0], mbuffer))) {", " mmal_buffer_header_release(mbuffer);", " av_buffer_unref(&buffer->ref);", " av_free(buffer);" ], "line_no": [ 45, ...
static int FUNC_0(AVCodecContext *VAR_0) { MMALDecodeContext *ctx = VAR_0->priv_data; while (ctx->waiting_buffers) { MMAL_BUFFER_HEADER_T *mbuffer; FFBufferEntry *buffer; MMAL_STATUS_T status; mbuffer = mmal_queue_get(ctx->pool_in->queue); if (!mbuffer) ...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "MMALDecodeContext *ctx = VAR_0->priv_data;", "while (ctx->waiting_buffers) {", "MMAL_BUFFER_HEADER_T *mbuffer;", "FFBufferEntry *buffer;", "MMAL_STATUS_T status;", "mbuffer = mmal_queue_get(ctx->pool_in->queue);", "if (!mbuffer)\nreturn 0;", "buffer = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], ...
9,485
static av_always_inline int decode_mb_row_no_filter(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr, int is_vp7) { VP8Context *s = avctx->priv_data; VP8ThreadData *prev_td, *next_td, *td = &s->thread_data[threadnr]; int mb_y = td->thread_mb_pos >> 16;...
true
FFmpeg
1afd246960202917e244c844c534e9c1e3c323f5
static av_always_inline int decode_mb_row_no_filter(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr, int is_vp7) { VP8Context *s = avctx->priv_data; VP8ThreadData *prev_td, *next_td, *td = &s->thread_data[threadnr]; int mb_y = td->thread_mb_pos >> 16;...
{ "code": [], "line_no": [] }
static av_always_inline int FUNC_0(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr, int is_vp7) { VP8Context *s = avctx->priv_data; VP8ThreadData *prev_td, *next_td, *td = &s->thread_data[threadnr]; int VAR_0 = td->thread_mb_pos >> 16; int VAR_1,...
[ "static av_always_inline int FUNC_0(AVCodecContext *avctx, void *tdata,\nint jobnr, int threadnr, int is_vp7)\n{", "VP8Context *s = avctx->priv_data;", "VP8ThreadData *prev_td, *next_td, *td = &s->thread_data[threadnr];", "int VAR_0 = td->thread_mb_pos >> 16;", "int VAR_1, VAR_2 = VAR_0 * s->mb_width;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39, 41 ], [ 43, 45 ], [ 47, 49 ], [ 51, 53 ], [ 55,...
9,486
static test_speed(int step) { const struct pix_func* pix = pix_func; const int linesize = 720; char empty[32768]; char* bu =(char*)(((long)empty + 32) & ~0xf); int sum = 0; while (pix->name) { int i; uint64_t te, ts; op_pixels_func func = pix->func; char* im...
true
FFmpeg
6fea8454acff29735ea46184cb183ca6ff42e514
static test_speed(int step) { const struct pix_func* pix = pix_func; const int linesize = 720; char empty[32768]; char* bu =(char*)(((long)empty + 32) & ~0xf); int sum = 0; while (pix->name) { int i; uint64_t te, ts; op_pixels_func func = pix->func; char* im...
{ "code": [ "\tif (!(pix->mm_flags & mm_flags))", " continue;", "\tprintf(\"%30s... \", pix->name);", " fflush(stdout);", "\tts = rdtsc();", "\tfor(i=0; i<100000; i++){", "\t func(im, im + 1000, linesize, 16);", "\t im += step;", "\t if (im > bu + 20000)"...
static FUNC_0(int VAR_0) { const struct pix_func* VAR_1 = pix_func; const int VAR_2 = 720; char VAR_3[32768]; char* VAR_4 =(char*)(((long)VAR_3 + 32) & ~0xf); int VAR_5 = 0; while (VAR_1->name) { int VAR_6; uint64_t te, ts; op_pixels_func func = VAR_1->func; ...
[ "static FUNC_0(int VAR_0)\n{", "const struct pix_func* VAR_1 = pix_func;", "const int VAR_2 = 720;", "char VAR_3[32768];", "char* VAR_4 =(char*)(((long)VAR_3 + 32) & ~0xf);", "int VAR_5 = 0;", "while (VAR_1->name)\n{", "int VAR_6;", "uint64_t te, ts;", "op_pixels_func func = VAR_1->func;", "char...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51,...
9,487
static void writer_print_ts(WriterContext *wctx, const char *key, int64_t ts, int is_duration) { if ((!is_duration && ts == AV_NOPTS_VALUE) || (is_duration && ts == 0)) { writer_print_string(wctx, key, "N/A", 1); } else { writer_print_integer(wctx, key, ts); } }
false
FFmpeg
cbba331aa02f29870581ff0b7ded7477b279ae2c
static void writer_print_ts(WriterContext *wctx, const char *key, int64_t ts, int is_duration) { if ((!is_duration && ts == AV_NOPTS_VALUE) || (is_duration && ts == 0)) { writer_print_string(wctx, key, "N/A", 1); } else { writer_print_integer(wctx, key, ts); } }
{ "code": [], "line_no": [] }
static void FUNC_0(WriterContext *VAR_0, const char *VAR_1, int64_t VAR_2, int VAR_3) { if ((!VAR_3 && VAR_2 == AV_NOPTS_VALUE) || (VAR_3 && VAR_2 == 0)) { writer_print_string(VAR_0, VAR_1, "N/A", 1); } else { writer_print_integer(VAR_0, VAR_1, VAR_2); } }
[ "static void FUNC_0(WriterContext *VAR_0, const char *VAR_1, int64_t VAR_2, int VAR_3)\n{", "if ((!VAR_3 && VAR_2 == AV_NOPTS_VALUE) || (VAR_3 && VAR_2 == 0)) {", "writer_print_string(VAR_0, VAR_1, \"N/A\", 1);", "} else {", "writer_print_integer(VAR_0, VAR_1, VAR_2);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
9,488
static void ff_h264_idct8_add4_sse2(uint8_t *dst, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){ int i; for(i=0; i<16; i+=4){ int nnz = nnzc[ scan8[i] ]; if(nnz){ if(nnz==1 && block[i*16]) ff_h264_idct8_dc_add_mmx2(dst + block_offset[i], block + i...
false
FFmpeg
1d16a1cf99488f16492b1bb48e023f4da8377e07
static void ff_h264_idct8_add4_sse2(uint8_t *dst, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){ int i; for(i=0; i<16; i+=4){ int nnz = nnzc[ scan8[i] ]; if(nnz){ if(nnz==1 && block[i*16]) ff_h264_idct8_dc_add_mmx2(dst + block_offset[i], block + i...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){ int VAR_5; for(VAR_5=0; VAR_5<16; VAR_5+=4){ int VAR_6 = VAR_4[ scan8[VAR_5] ]; if(VAR_6){ if(VAR_6==1 && VAR_2[VAR_5*16]) ff_h264_idct8_dc_add_mmx2(VAR_0 + VAR_1[VAR_5], V...
[ "static void FUNC_0(uint8_t *VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){", "int VAR_5;", "for(VAR_5=0; VAR_5<16; VAR_5+=4){", "int VAR_6 = VAR_4[ scan8[VAR_5] ];", "if(VAR_6){", "if(VAR_6==1 && VAR_2[VAR_5*16]) ff_h264_idct8_dc_add_mmx2(VAR_0 + VAR_1[VAR_5], VAR_2 + VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
9,489
void ff_avg_h264_qpel16_mc31_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_16x16_msa(src - 2, src - (stride * 2) + sizeof(uint8_t), stride, ...
false
FFmpeg
1181d93231e9b807965724587d363c1cfd5a1d0d
void ff_avg_h264_qpel16_mc31_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_16x16_msa(src - 2, src - (stride * 2) + sizeof(uint8_t), stride, ...
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_hv_qrt_and_aver_dst_16x16_msa(VAR_1 - 2, VAR_1 - (VAR_2 * 2) + sizeof(uint8_t), VAR_2, ...
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_hv_qrt_and_aver_dst_16x16_msa(VAR_1 - 2,\nVAR_1 - (VAR_2 * 2) +\nsizeof(uint8_t), VAR_2,\nVAR_0, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11, 13 ], [ 15 ] ]
9,490
int av_tempfile(char *prefix, char **filename) { int fd=-1; #ifdef __MINGW32__ *filename = tempnam(".", prefix); #else size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */ *filename = av_malloc(len); #endif /* -----common section-----*/ if (*filename == NULL) { ...
false
FFmpeg
6ffa87d3254dd8bdc31b50b378e1cf59c5dc13e5
int av_tempfile(char *prefix, char **filename) { int fd=-1; #ifdef __MINGW32__ *filename = tempnam(".", prefix); #else size_t len = strlen(prefix) + 12; *filename = av_malloc(len); #endif if (*filename == NULL) { av_log(NULL, AV_LOG_ERROR, "ff_tempfile: Cannot allocate file n...
{ "code": [], "line_no": [] }
int FUNC_0(char *VAR_0, char **VAR_1) { int VAR_2=-1; #ifdef __MINGW32__ *VAR_1 = tempnam(".", VAR_0); #else size_t len = strlen(VAR_0) + 12; *VAR_1 = av_malloc(len); #endif if (*VAR_1 == NULL) { av_log(NULL, AV_LOG_ERROR, "ff_tempfile: Cannot allocate file name\n"); ...
[ "int FUNC_0(char *VAR_0, char **VAR_1) {", "int VAR_2=-1;", "#ifdef __MINGW32__\n*VAR_1 = tempnam(\".\", VAR_0);", "#else\nsize_t len = strlen(VAR_0) + 12;", "*VAR_1 = av_malloc(len);", "#endif\nif (*VAR_1 == NULL) {", "av_log(NULL, AV_LOG_ERROR, \"ff_tempfile: Cannot allocate file name\\n\");", "retu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 49 ], [...
9,491
static av_always_inline void xchg_mb_border(H264Context *h, H264SliceContext *sl, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, int linesize, int uvlinesize, ...
false
FFmpeg
e6c90ce94f1b07f50cea2babf7471af455cca0ff
static av_always_inline void xchg_mb_border(H264Context *h, H264SliceContext *sl, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, int linesize, int uvlinesize, ...
{ "code": [], "line_no": [] }
static av_always_inline void FUNC_0(H264Context *h, H264SliceContext *sl, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, int linesize, int uvlinesize, ...
[ "static av_always_inline void FUNC_0(H264Context *h, H264SliceContext *sl,\nuint8_t *src_y,\nuint8_t *src_cb, uint8_t *src_cr,\nint linesize, int uvlinesize,\nint xchg, int chroma444,\nint simple, int pixel_shift)\n{", "int VAR_0;", "int VAR_1;", "int VAR_2 = 1;", "uint8_t *top_border_m1;", "uint8_t *top_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
9,492
unsigned int codec_get_tag(const CodecTag *tags, int id) { while (tags->id != 0) { if (tags->id == id) return tags->tag; tags++; } return 0; }
false
FFmpeg
fb7a2bf6956173eda6f9caceef8599fa4f83500d
unsigned int codec_get_tag(const CodecTag *tags, int id) { while (tags->id != 0) { if (tags->id == id) return tags->tag; tags++; } return 0; }
{ "code": [], "line_no": [] }
unsigned int FUNC_0(const CodecTag *VAR_0, int VAR_1) { while (VAR_0->VAR_1 != 0) { if (VAR_0->VAR_1 == VAR_1) return VAR_0->tag; VAR_0++; } return 0; }
[ "unsigned int FUNC_0(const CodecTag *VAR_0, int VAR_1)\n{", "while (VAR_0->VAR_1 != 0) {", "if (VAR_0->VAR_1 == VAR_1)\nreturn VAR_0->tag;", "VAR_0++;", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
9,493
static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int buf_size) { MpegEncContext *s = &r->s; GetBitContext *gb = &s->gb; int mb_pos; int res; init_get_bits(&r->s.gb, buf, buf_size*8); res = r->parse_slice_header(r, gb, &r->si); if(res < 0){ av_log(s->avctx,...
true
FFmpeg
23a1f0c59241465ba30103388029a7afc0ead909
static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int buf_size) { MpegEncContext *s = &r->s; GetBitContext *gb = &s->gb; int mb_pos; int res; init_get_bits(&r->s.gb, buf, buf_size*8); res = r->parse_slice_header(r, gb, &r->si); if(res < 0){ av_log(s->avctx,...
{ "code": [], "line_no": [] }
static int FUNC_0(RV34DecContext *VAR_0, int VAR_1, const uint8_t* VAR_2, int VAR_3) { MpegEncContext *s = &VAR_0->s; GetBitContext *gb = &s->gb; int VAR_4; int VAR_5; init_get_bits(&VAR_0->s.gb, VAR_2, VAR_3*8); VAR_5 = VAR_0->parse_slice_header(VAR_0, gb, &VAR_0->si); if(VAR_5 < 0){ ...
[ "static int FUNC_0(RV34DecContext *VAR_0, int VAR_1, const uint8_t* VAR_2, int VAR_3)\n{", "MpegEncContext *s = &VAR_0->s;", "GetBitContext *gb = &s->gb;", "int VAR_4;", "int VAR_5;", "init_get_bits(&VAR_0->s.gb, VAR_2, VAR_3*8);", "VAR_5 = VAR_0->parse_slice_header(VAR_0, gb, &VAR_0->si);", "if(VAR_5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ ...
9,494
static inline void RENAME(bgr24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { #ifdef HAVE_MMX asm volatile( "mov %4, %%"REG_a" \n\t" "movq "MANGLE(w1111)", %%mm5 \n\t" "movq "MANGLE(bgr2UCoeff)", %%mm6 \n\t" "pxor %%mm7, %%mm7 \n\t" "lea (%%"REG_a", %%"REG_a", 2), ...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
static inline void RENAME(bgr24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { #ifdef HAVE_MMX asm volatile( "mov %4, %%"REG_a" \n\t" "movq "MANGLE(w1111)", %%mm5 \n\t" "movq "MANGLE(bgr2UCoeff)", %%mm6 \n\t" "pxor %%mm7, %%mm7 \n\t" "lea (%%"REG_a", %%"REG_a", 2), ...
{ "code": [ "static inline void RENAME(bgr24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)", "\t\t: : \"r\" (src1+width*6), \"r\" (src2+width*6), \"r\" (dstU+width), \"r\" (dstV+width), \"g\" ((long)-width)" ], "line_no": [ 1, 299 ] }
static inline void FUNC_0(bgr24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { #ifdef HAVE_MMX asm volatile( "mov %4, %%"REG_a" \n\t" "movq "MANGLE(w1111)", %%mm5 \n\t" "movq "MANGLE(bgr2UCoeff)", %%mm6 \n\t" "pxor %%mm7, %%mm7 \n\t" "lea (%%"REG_a", %%"REG_a", 2), ...
[ "static inline void FUNC_0(bgr24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)\n{", "#ifdef HAVE_MMX\nasm volatile(\n\"mov %4, %%\"REG_a\"\t\t\\n\\t\"\n\"movq \"MANGLE(w1111)\", %%mm5\t\t\\n\\t\"\n\"movq \"MANGLE(bgr2UCoeff)\", %%mm6\t\t\\n\\t\"\n\"pxor %%mm7, %%mm7\t\t\\n\\t\"\n\"le...
[ 1, 1, 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, 67, 69, 71, 73, 75, 77,...
9,496
static size_t pdu_marshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...) { size_t old_offset = offset; va_list ap; int i; va_start(ap, fmt); for (i = 0; fmt[i]; i++) { switch (fmt[i]) { case 'b': { uint8_t val = va_arg(ap, int); offset += pdu_p...
true
qemu
302a0d3ed721e4c30c6a2a37f64c60b50ffd33b9
static size_t pdu_marshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...) { size_t old_offset = offset; va_list ap; int i; va_start(ap, fmt); for (i = 0; fmt[i]; i++) { switch (fmt[i]) { case 'b': { uint8_t val = va_arg(ap, int); offset += pdu_p...
{ "code": [ " case 'v': {", " struct iovec *iov = va_arg(ap, struct iovec *);", " int *iovcnt = va_arg(ap, int *);", " break;", " case 'v': {", " struct iovec *iov = va_arg(ap, struct iovec *);", " int *iovcnt = va_arg(ap...
static size_t FUNC_0(V9fsPDU *pdu, size_t offset, const char *fmt, ...) { size_t old_offset = offset; va_list ap; int VAR_0; va_start(ap, fmt); for (VAR_0 = 0; fmt[VAR_0]; VAR_0++) { switch (fmt[VAR_0]) { case 'b': { uint8_t val = va_arg(ap, int); ...
[ "static size_t FUNC_0(V9fsPDU *pdu, size_t offset, const char *fmt, ...)\n{", "size_t old_offset = offset;", "va_list ap;", "int VAR_0;", "va_start(ap, fmt);", "for (VAR_0 = 0; fmt[VAR_0]; VAR_0++) {", "switch (fmt[VAR_0]) {", "case 'b': {", "uint8_t val = va_arg(ap, int);", "offset += pdu_pack(pd...
[ 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, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
9,497
static inline uint32_t celt_icwrsi(uint32_t N, uint32_t K, const int *y) { int i, idx = 0, sum = 0; for (i = N - 1; i >= 0; i--) { const uint32_t i_s = CELT_PVQ_U(N - i, sum + FFABS(y[i]) + 1); idx += CELT_PVQ_U(N - i, sum) + (y[i] < 0)*i_s; sum += FFABS(y[i]); } av_asser...
true
FFmpeg
f19442c069929727b19c948619488370d279e177
static inline uint32_t celt_icwrsi(uint32_t N, uint32_t K, const int *y) { int i, idx = 0, sum = 0; for (i = N - 1; i >= 0; i--) { const uint32_t i_s = CELT_PVQ_U(N - i, sum + FFABS(y[i]) + 1); idx += CELT_PVQ_U(N - i, sum) + (y[i] < 0)*i_s; sum += FFABS(y[i]); } av_asser...
{ "code": [ " av_assert0(sum == K);" ], "line_no": [ 17 ] }
static inline uint32_t FUNC_0(uint32_t N, uint32_t K, const int *y) { int VAR_0, VAR_1 = 0, VAR_2 = 0; for (VAR_0 = N - 1; VAR_0 >= 0; VAR_0--) { const uint32_t VAR_3 = CELT_PVQ_U(N - VAR_0, VAR_2 + FFABS(y[VAR_0]) + 1); VAR_1 += CELT_PVQ_U(N - VAR_0, VAR_2) + (y[VAR_0] < 0)*VAR_3; ...
[ "static inline uint32_t FUNC_0(uint32_t N, uint32_t K, const int *y)\n{", "int VAR_0, VAR_1 = 0, VAR_2 = 0;", "for (VAR_0 = N - 1; VAR_0 >= 0; VAR_0--) {", "const uint32_t VAR_3 = CELT_PVQ_U(N - VAR_0, VAR_2 + FFABS(y[VAR_0]) + 1);", "VAR_1 += CELT_PVQ_U(N - VAR_0, VAR_2) + (y[VAR_0] < 0)*VAR_3;", "VAR_2 ...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
9,498
static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) { MatroskaDemuxContext *matroska = s->priv_data; EbmlList *attachements_list = &matroska->attachments; MatroskaAttachement *attachements; EbmlList *chapters_list = &matroska->chapters; MatroskaChapter *chapters; M...
true
FFmpeg
1ca610c0152f31847ab760fda1fb147692f31e7e
static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) { MatroskaDemuxContext *matroska = s->priv_data; EbmlList *attachements_list = &matroska->attachments; MatroskaAttachement *attachements; EbmlList *chapters_list = &matroska->chapters; MatroskaChapter *chapters; M...
{ "code": [ " st->codec->extradata = av_malloc(track->codec_priv.size);" ], "line_no": [ 481 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { MatroskaDemuxContext *matroska = VAR_0->priv_data; EbmlList *attachements_list = &matroska->attachments; MatroskaAttachement *attachements; EbmlList *chapters_list = &matroska->chapters; MatroskaChapter *chapters; Matr...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "MatroskaDemuxContext *matroska = VAR_0->priv_data;", "EbmlList *attachements_list = &matroska->attachments;", "MatroskaAttachement *attachements;", "EbmlList *chapters_list = &matroska->chapters;", "MatroskaChapter *chapters;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37, 39, 41, 43 ], [ 45, 47, 49, 51 ], [ 53 ...
9,499
static int vp8_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size) { VP56RangeCoder *c = &s->c; int header_size, hscale, vscale, ret; int width = s->avctx->width; int height = s->avctx->height; s->keyframe = !(buf[0] & 1); s->profile = (buf[0]>>1) & 7; s->invisible = !(...
true
FFmpeg
599d746e07319dc792ed2e511b666fe482f1ff88
static int vp8_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size) { VP56RangeCoder *c = &s->c; int header_size, hscale, vscale, ret; int width = s->avctx->width; int height = s->avctx->height; s->keyframe = !(buf[0] & 1); s->profile = (buf[0]>>1) & 7; s->invisible = !(...
{ "code": [], "line_no": [] }
static int FUNC_0(VP8Context *VAR_0, const uint8_t *VAR_1, int VAR_2) { VP56RangeCoder *c = &VAR_0->c; int VAR_3, VAR_4, VAR_5, VAR_6; int VAR_7 = VAR_0->avctx->VAR_7; int VAR_8 = VAR_0->avctx->VAR_8; VAR_0->keyframe = !(VAR_1[0] & 1); VAR_0->profile = (VAR_1[0]>>1) & 7; VAR_0->invisibl...
[ "static int FUNC_0(VP8Context *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "VP56RangeCoder *c = &VAR_0->c;", "int VAR_3, VAR_4, VAR_5, VAR_6;", "int VAR_7 = VAR_0->avctx->VAR_7;", "int VAR_8 = VAR_0->avctx->VAR_8;", "VAR_0->keyframe = !(VAR_1[0] & 1);", "VAR_0->profile = (VAR_1[0]>>1) & 7;", "VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13, 14 ], [ 15, 16, 17 ], [ 18, 19, 20 ], [ 21 ], [ 22 ], [ 23 ], [ ...
9,500
static float voice_factor(float *p_vector, float p_gain, float *f_vector, float f_gain, CELPMContext *ctx) { double p_ener = (double) ctx->dot_productf(p_vector, p_vector, AMRWB_SFR_SIZE) * ...
true
FFmpeg
1d0817d56b66797118880358ea7d7a2acfdca429
static float voice_factor(float *p_vector, float p_gain, float *f_vector, float f_gain, CELPMContext *ctx) { double p_ener = (double) ctx->dot_productf(p_vector, p_vector, AMRWB_SFR_SIZE) * ...
{ "code": [ " return (p_ener - f_ener) / (p_ener + f_ener);" ], "line_no": [ 23 ] }
static float FUNC_0(float *VAR_0, float VAR_1, float *VAR_2, float VAR_3, CELPMContext *VAR_4) { double VAR_5 = (double) VAR_4->dot_productf(VAR_0, VAR_0, AMRWB_SFR_SIZE) * VAR_1 *...
[ "static float FUNC_0(float *VAR_0, float VAR_1,\nfloat *VAR_2, float VAR_3,\nCELPMContext *VAR_4)\n{", "double VAR_5 = (double) VAR_4->dot_productf(VAR_0, VAR_0,\nAMRWB_SFR_SIZE) *\nVAR_1 * VAR_1;", "double VAR_6 = (double) VAR_4->dot_productf(VAR_2, VAR_2,\nAMRWB_SFR_SIZE) *\nVAR_3 * VAR_3;", "return (VAR_5 ...
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11, 13 ], [ 15, 17, 19 ], [ 23 ], [ 25 ] ]
9,501
static int qcrypto_cipher_setiv_aes(QCryptoCipher *cipher, const uint8_t *iv, size_t niv, Error **errp) { QCryptoCipherBuiltin *ctxt = cipher->opaque; if (niv != 16) { error_setg(errp, "IV must be 16 bytes not %zu", niv); ...
true
qemu
eb2a770b178b9040c3fc04ee31dc38d1775db09a
static int qcrypto_cipher_setiv_aes(QCryptoCipher *cipher, const uint8_t *iv, size_t niv, Error **errp) { QCryptoCipherBuiltin *ctxt = cipher->opaque; if (niv != 16) { error_setg(errp, "IV must be 16 bytes not %zu", niv); ...
{ "code": [ " g_free(ctxt->state.aes.iv);", " if (niv != 16) {", " error_setg(errp, \"IV must be 16 bytes not %zu\", niv);", " g_free(ctxt->state.aes.iv);", " ctxt->state.aes.iv = g_new0(uint8_t, niv);", " memcpy(ctxt->state.aes.iv, iv, niv);", " ctxt->state.aes.ni...
static int FUNC_0(QCryptoCipher *VAR_0, const uint8_t *VAR_1, size_t VAR_2, Error **VAR_3) { QCryptoCipherBuiltin *ctxt = VAR_0->opaque; if (VAR_2 != 16) { error_setg(VAR_3, "IV must be 16 bytes not %zu", VAR_2); re...
[ "static int FUNC_0(QCryptoCipher *VAR_0,\nconst uint8_t *VAR_1, size_t VAR_2,\nError **VAR_3)\n{", "QCryptoCipherBuiltin *ctxt = VAR_0->opaque;", "if (VAR_2 != 16) {", "error_setg(VAR_3, \"IV must be 16 bytes not %zu\", VAR_2);", "return -1;", "}", "g_free(ctxt->state.aes.VAR_1);", "ctxt->state.aes.VA...
[ 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
9,502
int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near, int point_transform, int ilv) { int i, t = 0; uint8_t *zero, *last, *cur; JLSState *state; int off = 0, stride = 1, width, shift, ret = 0; zero = av_mallocz(s->picture_ptr->linesize[0]); if (!zer...
true
FFmpeg
fe533628b9604e2f8e5179d5c5dd17c3cb764265
int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near, int point_transform, int ilv) { int i, t = 0; uint8_t *zero, *last, *cur; JLSState *state; int off = 0, stride = 1, width, shift, ret = 0; zero = av_mallocz(s->picture_ptr->linesize[0]); if (!zer...
{ "code": [], "line_no": [] }
int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1, int VAR_2, int VAR_3) { int VAR_4, VAR_5 = 0; uint8_t *zero, *last, *cur; JLSState *state; int VAR_6 = 0, VAR_7 = 1, VAR_8, VAR_9, VAR_10 = 0; zero = av_mallocz(VAR_0->picture_ptr->linesize[0]); if (!zero) ...
[ "int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1,\nint VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5 = 0;", "uint8_t *zero, *last, *cur;", "JLSState *state;", "int VAR_6 = 0, VAR_7 = 1, VAR_8, VAR_9, VAR_10 = 0;", "zero = av_mallocz(VAR_0->picture_ptr->linesize[0]);", "if (!zero)\nreturn AVERROR(ENOMEM);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
9,503
static void create_gic(const VirtBoardInfo *vbi, qemu_irq *pic) { /* We create a standalone GIC v2 */ DeviceState *gicdev; SysBusDevice *gicbusdev; const char *gictype = "arm_gic"; int i; if (kvm_irqchip_in_kernel()) { gictype = "kvm-arm-gic"; } gicdev = qdev_create...
true
qemu
4ab29b8214cc4b54e0c1a8270b610a340311470e
static void create_gic(const VirtBoardInfo *vbi, qemu_irq *pic) { DeviceState *gicdev; SysBusDevice *gicbusdev; const char *gictype = "arm_gic"; int i; if (kvm_irqchip_in_kernel()) { gictype = "kvm-arm-gic"; } gicdev = qdev_create(NULL, gictype); qdev_prop_set...
{ "code": [ "static void create_gic(const VirtBoardInfo *vbi, qemu_irq *pic)", " fdt_add_gic_node(vbi);" ], "line_no": [ 1, 95 ] }
static void FUNC_0(const VirtBoardInfo *VAR_0, qemu_irq *VAR_1) { DeviceState *gicdev; SysBusDevice *gicbusdev; const char *VAR_2 = "arm_gic"; int VAR_3; if (kvm_irqchip_in_kernel()) { VAR_2 = "kvm-arm-gic"; } gicdev = qdev_create(NULL, VAR_2); qdev_prop_set_u...
[ "static void FUNC_0(const VirtBoardInfo *VAR_0, qemu_irq *VAR_1)\n{", "DeviceState *gicdev;", "SysBusDevice *gicbusdev;", "const char *VAR_2 = \"arm_gic\";", "int VAR_3;", "if (kvm_irqchip_in_kernel()) {", "VAR_2 = \"kvm-arm-gic\";", "}", "gicdev = qdev_create(NULL, VAR_2);", "qdev_prop_set_uint32...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 57 ], [ 59 ], [ 61 ], [ 69...
9,504
virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para, struct iovec *iov, unsigned int out_num) { VirtIOCrypto *vcrypto = VIRTIO_CRYPTO(vdev); CryptoDevBackendSymOpInfo *op_in...
true
qemu
a08aaff811fb194950f79711d2afe5a892ae03a4
virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para, struct iovec *iov, unsigned int out_num) { VirtIOCrypto *vcrypto = VIRTIO_CRYPTO(vdev); CryptoDevBackendSymOpInfo *op_in...
{ "code": [ " size_t max_len, curr_size = 0;", " max_len = iv_len + aad_len + src_len + dst_len + hash_result_len;" ], "line_no": [ 27, 77 ] }
FUNC_0(VirtIODevice *VAR_0, struct virtio_crypto_cipher_para *VAR_1, struct virtio_crypto_alg_chain_data_para *VAR_2, struct iovec *VAR_3, unsigned int VAR_4) { VirtIOCrypto *vcrypto = VIRTIO_CRYPTO(VAR_0); CryptoDevBackendSymOpInfo *op_info; uint32_t src_len = 0, dst...
[ "FUNC_0(VirtIODevice *VAR_0,\nstruct virtio_crypto_cipher_para *VAR_1,\nstruct virtio_crypto_alg_chain_data_para *VAR_2,\nstruct iovec *VAR_3, unsigned int VAR_4)\n{", "VirtIOCrypto *vcrypto = VIRTIO_CRYPTO(VAR_0);", "CryptoDevBackendSymOpInfo *op_info;", "uint32_t src_len = 0, dst_len = 0;", "uint32_t iv_l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
9,505
int net_slirp_parse_legacy(QemuOptsList *opts_list, const char *optarg, int *ret) { if (strcmp(opts_list->name, "net") != 0 || strncmp(optarg, "channel,", strlen("channel,")) != 0) { return 0; } error_report("The '-net channel' option is deprecated. " "Please use '-...
true
qemu
5c843af22604edecda10d4bb89d4eede9e1bd3d0
int net_slirp_parse_legacy(QemuOptsList *opts_list, const char *optarg, int *ret) { if (strcmp(opts_list->name, "net") != 0 || strncmp(optarg, "channel,", strlen("channel,")) != 0) { return 0; } error_report("The '-net channel' option is deprecated. " "Please use '-...
{ "code": [ " *ret = slirp_guestfwd(QTAILQ_FIRST(&slirp_stacks), optarg, 1);" ], "line_no": [ 47 ] }
int FUNC_0(QemuOptsList *VAR_0, const char *VAR_1, int *VAR_2) { if (strcmp(VAR_0->name, "net") != 0 || strncmp(VAR_1, "channel,", strlen("channel,")) != 0) { return 0; } error_report("The '-net channel' option is deprecated. " "Please use '-netdev user,guestfwd=......
[ "int FUNC_0(QemuOptsList *VAR_0, const char *VAR_1, int *VAR_2)\n{", "if (strcmp(VAR_0->name, \"net\") != 0 ||\nstrncmp(VAR_1, \"channel,\", strlen(\"channel,\")) != 0) {", "return 0;", "}", "error_report(\"The '-net channel' option is deprecated. \"\n\"Please use '-netdev user,guestfwd=...' instead.\");", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ...
9,506
static int shall_we_drop(AVFormatContext *s) { struct dshow_ctx *ctx = s->priv_data; static const uint8_t dropscore[] = {62, 75, 87, 100}; const int ndropscores = FF_ARRAY_ELEMS(dropscore); unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer; if(dropscore[++ctx->video_...
true
FFmpeg
6abc56e892c2c2500d1fc2698fa6d580b72f721b
static int shall_we_drop(AVFormatContext *s) { struct dshow_ctx *ctx = s->priv_data; static const uint8_t dropscore[] = {62, 75, 87, 100}; const int ndropscores = FF_ARRAY_ELEMS(dropscore); unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer; if(dropscore[++ctx->video_...
{ "code": [ "static int shall_we_drop(AVFormatContext *s)", " unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer;", " \"real-time buffer %d%% full! frame dropped!\\n\", buffer_fullness);" ], "line_no": [ 1, 11, 19 ] }
static int FUNC_0(AVFormatContext *VAR_0) { struct dshow_ctx *VAR_1 = VAR_0->priv_data; static const uint8_t VAR_2[] = {62, 75, 87, 100}; const int VAR_3 = FF_ARRAY_ELEMS(VAR_2); unsigned int VAR_4 = (VAR_1->curbufsize*100)/VAR_0->max_picture_buffer; if(VAR_2[++VAR_1->video_frame_num%VAR_3] ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "struct dshow_ctx *VAR_1 = VAR_0->priv_data;", "static const uint8_t VAR_2[] = {62, 75, 87, 100};", "const int VAR_3 = FF_ARRAY_ELEMS(VAR_2);", "unsigned int VAR_4 = (VAR_1->curbufsize*100)/VAR_0->max_picture_buffer;", "if(VAR_2[++VAR_1->video_frame_num%VAR_...
[ 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
9,507
static int disas_dsp_insn(CPUState *env, DisasContext *s, uint32_t insn) { int acc, rd0, rd1, rdhi, rdlo; TCGv tmp, tmp2; if ((insn & 0x0ff00f10) == 0x0e200010) { /* Multiply with Internal Accumulate Format */ rd0 = (insn >> 12) & 0xf; rd1 = insn & 0xf; acc = (insn ...
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static int disas_dsp_insn(CPUState *env, DisasContext *s, uint32_t insn) { int acc, rd0, rd1, rdhi, rdlo; TCGv tmp, tmp2; if ((insn & 0x0ff00f10) == 0x0e200010) { rd0 = (insn >> 12) & 0xf; rd1 = insn & 0xf; acc = (insn >> 5) & 7; if (acc != 0) ...
{ "code": [ " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp2);", " dead_tmp(tmp2);", " dead_tmp(tmp);", " dead_tmp(tmp2);", " dead_tmp(tmp);", " dead_tmp(tmp2);", " dead_tmp(tmp);", " dead_tmp(tmp);", ...
static int FUNC_0(CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; TCGv tmp, tmp2; if ((VAR_2 & 0x0ff00f10) == 0x0e200010) { VAR_4 = (VAR_2 >> 12) & 0xf; VAR_5 = VAR_2 & 0xf; VAR_3 = (VAR_2 >> 5) & 7; if (VAR...
[ "static int FUNC_0(CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "TCGv tmp, tmp2;", "if ((VAR_2 & 0x0ff00f10) == 0x0e200010) {", "VAR_4 = (VAR_2 >> 12) & 0xf;", "VAR_5 = VAR_2 & 0xf;", "VAR_3 = (VAR_2 >> 5) & 7;", "if (VAR_3 != 0)\nreturn 1;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49, 51, 53, 55, 57...
9,511
static void decode_profile_tier_level(HEVCContext *s, PTLCommon *ptl) { int i; HEVCLocalContext *lc = s->HEVClc; GetBitContext *gb = &lc->gb; ptl->profile_space = get_bits(gb, 2); ptl->tier_flag = get_bits1(gb); ptl->profile_idc = get_bits(gb, 5); if (ptl->profile_idc == FF_P...
true
FFmpeg
0d0d24af0159ff08f396ad04cd63ce5655b1fc60
static void decode_profile_tier_level(HEVCContext *s, PTLCommon *ptl) { int i; HEVCLocalContext *lc = s->HEVClc; GetBitContext *gb = &lc->gb; ptl->profile_space = get_bits(gb, 2); ptl->tier_flag = get_bits1(gb); ptl->profile_idc = get_bits(gb, 5); if (ptl->profile_idc == FF_P...
{ "code": [ "static void decode_profile_tier_level(HEVCContext *s, PTLCommon *ptl)" ], "line_no": [ 1 ] }
static void FUNC_0(HEVCContext *VAR_0, PTLCommon *VAR_1) { int VAR_2; HEVCLocalContext *lc = VAR_0->HEVClc; GetBitContext *gb = &lc->gb; VAR_1->profile_space = get_bits(gb, 2); VAR_1->tier_flag = get_bits1(gb); VAR_1->profile_idc = get_bits(gb, 5); if (VAR_1->profile_idc == F...
[ "static void FUNC_0(HEVCContext *VAR_0, PTLCommon *VAR_1)\n{", "int VAR_2;", "HEVCLocalContext *lc = VAR_0->HEVClc;", "GetBitContext *gb = &lc->gb;", "VAR_1->profile_space = get_bits(gb, 2);", "VAR_1->tier_flag = get_bits1(gb);", "VAR_1->profile_idc = get_bits(gb, 5);", "if (VAR_1->profile_idc =...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
9,513
qemu_irq *mpic_init (target_phys_addr_t base, int nb_cpus, qemu_irq **irqs, qemu_irq irq_out) { openpic_t *mpp; int i; struct { CPUReadMemoryFunc * const *read; CPUWriteMemoryFunc * const *write; target_phys_addr_t start_addr; ram_addr_t size;...
true
qemu
bbc5842211cdd90103cfe52f2ca24afac880694f
qemu_irq *mpic_init (target_phys_addr_t base, int nb_cpus, qemu_irq **irqs, qemu_irq irq_out) { openpic_t *mpp; int i; struct { CPUReadMemoryFunc * const *read; CPUWriteMemoryFunc * const *write; target_phys_addr_t start_addr; ram_addr_t size;...
{ "code": [ " if (nb_cpus != 1)", " return NULL;" ], "line_no": [ 43, 45 ] }
qemu_irq *FUNC_0 (target_phys_addr_t base, int nb_cpus, qemu_irq **irqs, qemu_irq irq_out) { openpic_t *mpp; int VAR_0; struct { CPUReadMemoryFunc * const *read; CPUWriteMemoryFunc * const *write; target_phys_addr_t start_addr; ram_addr_t size...
[ "qemu_irq *FUNC_0 (target_phys_addr_t base, int nb_cpus,\nqemu_irq **irqs, qemu_irq irq_out)\n{", "openpic_t *mpp;", "int VAR_0;", "struct {", "CPUReadMemoryFunc * const *read;", "CPUWriteMemoryFunc * const *write;", "target_phys_addr_t start_addr;", "ram_addr_t size;", "} const VAR_1[] = {", "{mp...
[ 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43, 45 ], [ 49 ...
9,517
static void float_to_int16_stride_altivec(int16_t *dst, const float *src, long len, int stride) { int i, j; vector signed short d, s; for (i = 0; i < len - 7; i += 8) { d = float_to_int16_one_altivec(src + i); for (j = 0; j < 8; j++) { ...
true
FFmpeg
9425dc3dba0bd1209aa7a788ea8f3c194fc7c7c5
static void float_to_int16_stride_altivec(int16_t *dst, const float *src, long len, int stride) { int i, j; vector signed short d, s; for (i = 0; i < len - 7; i += 8) { d = float_to_int16_one_altivec(src + i); for (j = 0; j < 8; j++) { ...
{ "code": [ " int i, j;", " for (j = 0; j < 8; j++) {", " s = vec_splat(d, j);", " vec_ste(s, 0, dst);", " dst += stride;" ], "line_no": [ 7, 17, 19, 21, 23 ] }
static void FUNC_0(int16_t *VAR_0, const float *VAR_1, long VAR_2, int VAR_3) { int VAR_4, VAR_5; vector signed short d, s; for (VAR_4 = 0; VAR_4 < VAR_2 - 7; VAR_4 += 8) { d = float_to_int16_one_altivec(VAR_1 + VAR_4); for (VAR_5 = 0; VAR_5...
[ "static void FUNC_0(int16_t *VAR_0, const float *VAR_1,\nlong VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "vector signed short d, s;", "for (VAR_4 = 0; VAR_4 < VAR_2 - 7; VAR_4 += 8) {", "d = float_to_int16_one_altivec(VAR_1 + VAR_4);", "for (VAR_5 = 0; VAR_5 < 8; VAR_5++) {", "s = vec_splat(d, VAR_5);"...
[ 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
9,518
ssize_t iov_send_recv(int sockfd, struct iovec *iov, size_t offset, size_t bytes, bool do_sendv) { int iovlen; ssize_t ret; size_t diff; struct iovec *last_iov; /* last_iov is inclusive, so count from one. */ iovlen = 1; last_iov = iov...
true
qemu
25e5e4c7e9d5ec3e95c9526d1abaca40ada50ab0
ssize_t iov_send_recv(int sockfd, struct iovec *iov, size_t offset, size_t bytes, bool do_sendv) { int iovlen; ssize_t ret; size_t diff; struct iovec *last_iov; iovlen = 1; last_iov = iov; bytes += offset; while (last_iov->...
{ "code": [ "ssize_t iov_send_recv(int sockfd, struct iovec *iov,", " size_t offset, size_t bytes,", " bool do_sendv)", " int iovlen;", " ssize_t ret;", " size_t diff;", " struct iovec *last_iov;", " iovlen = 1;", " last_i...
ssize_t FUNC_0(int sockfd, struct iovec *iov, size_t offset, size_t bytes, bool do_sendv) { int VAR_0; ssize_t ret; size_t diff; struct iovec *VAR_1; VAR_0 = 1; VAR_1 = iov; bytes += offset; while (VAR_1->iov_len < bytes) {...
[ "ssize_t FUNC_0(int sockfd, struct iovec *iov,\nsize_t offset, size_t bytes,\nbool do_sendv)\n{", "int VAR_0;", "ssize_t ret;", "size_t diff;", "struct iovec *VAR_1;", "VAR_0 = 1;", "VAR_1 = iov;", "bytes += offset;", "while (VAR_1->iov_len < bytes) {", "bytes -= VAR_1->iov_len;", "VAR_1++;", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ...
9,519
static long do_rt_sigreturn_v2(CPUARMState *env) { abi_ulong frame_addr; struct rt_sigframe_v2 *frame = NULL; /* * Since we stacked the signal on a 64-bit boundary, * then 'sp' should be word aligned here. If it's * not, then the user is trying to mess with us. */ frame_a...
true
qemu
c599d4d6d6e9bfdb64e54c33a22cb26e3496b96d
static long do_rt_sigreturn_v2(CPUARMState *env) { abi_ulong frame_addr; struct rt_sigframe_v2 *frame = NULL; frame_addr = env->regs[13]; trace_user_do_rt_sigreturn(env, frame_addr); if (frame_addr & 7) { goto badframe; } if (!lock_user_struct(VERIFY_READ, ...
{ "code": [ " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " ret...
static long FUNC_0(CPUARMState *VAR_0) { abi_ulong frame_addr; struct rt_sigframe_v2 *VAR_1 = NULL; frame_addr = VAR_0->regs[13]; trace_user_do_rt_sigreturn(VAR_0, frame_addr); if (frame_addr & 7) { goto badframe; } if (!lock_user_struct(VERIFY_READ, VAR_1,...
[ "static long FUNC_0(CPUARMState *VAR_0)\n{", "abi_ulong frame_addr;", "struct rt_sigframe_v2 *VAR_1 = NULL;", "frame_addr = VAR_0->regs[13];", "trace_user_do_rt_sigreturn(VAR_0, frame_addr);", "if (frame_addr & 7) {", "goto badframe;", "}", "if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1)) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55, 57 ], [ 59 ], [ 61 ], ...
9,520
static void vp8_h_loop_filter_simple_c(uint8_t *dst, ptrdiff_t stride, int flim) { int i; for (i = 0; i < 16; i++) if (simple_limit(dst + i * stride, 1, flim)) filter_common(dst + i * stride, 1, 1); }
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
static void vp8_h_loop_filter_simple_c(uint8_t *dst, ptrdiff_t stride, int flim) { int i; for (i = 0; i < 16; i++) if (simple_limit(dst + i * stride, 1, flim)) filter_common(dst + i * stride, 1, 1); }
{ "code": [ " int i;", " for (i = 0; i < 16; i++)", "static void vp8_h_loop_filter_simple_c(uint8_t *dst, ptrdiff_t stride, int flim)", " int i;", " for (i = 0; i < 16; i++)", " if (simple_limit(dst + i * stride, 1, flim))", " filter_common(dst + i * stride, 1...
static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1, int VAR_2) { int VAR_3; for (VAR_3 = 0; VAR_3 < 16; VAR_3++) if (simple_limit(VAR_0 + VAR_3 * VAR_1, 1, VAR_2)) filter_common(VAR_0 + VAR_3 * VAR_1, 1, 1); }
[ "static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1, int VAR_2)\n{", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < 16; VAR_3++)", "if (simple_limit(VAR_0 + VAR_3 * VAR_1, 1, VAR_2))\nfilter_common(VAR_0 + VAR_3 * VAR_1, 1, 1);", "}" ]
[ 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ] ]
9,521
static void gain_scale(G723_1_Context *p, int16_t * buf, int energy) { int num, denom, gain, bits1, bits2; int i; num = energy; denom = 0; for (i = 0; i < SUBFRAME_LEN; i++) { int64_t temp = buf[i] >> 2; temp = av_clipl_int32(MUL64(temp, temp) << 1); denom = av_...
true
FFmpeg
1eb1f6f281eb6036d363e0317c1500be4a2708f2
static void gain_scale(G723_1_Context *p, int16_t * buf, int energy) { int num, denom, gain, bits1, bits2; int i; num = energy; denom = 0; for (i = 0; i < SUBFRAME_LEN; i++) { int64_t temp = buf[i] >> 2; temp = av_clipl_int32(MUL64(temp, temp) << 1); denom = av_...
{ "code": [ " int64_t temp = buf[i] >> 2;", " temp = av_clipl_int32(MUL64(temp, temp) << 1);", " denom = av_clipl_int32(denom + temp);" ], "line_no": [ 17, 19, 21 ] }
static void FUNC_0(G723_1_Context *VAR_0, int16_t * VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8; VAR_3 = VAR_2; VAR_4 = 0; for (VAR_8 = 0; VAR_8 < SUBFRAME_LEN; VAR_8++) { int64_t temp = VAR_1[VAR_8] >> 2; temp = av_clipl_int32(MUL64(temp, temp) ...
[ "static void FUNC_0(G723_1_Context *VAR_0, int16_t * VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8;", "VAR_3 = VAR_2;", "VAR_4 = 0;", "for (VAR_8 = 0; VAR_8 < SUBFRAME_LEN; VAR_8++) {", "int64_t temp = VAR_1[VAR_8] >> 2;", "temp = av_clipl_int32(MUL64(temp, temp) << 1)...
[ 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49...
9,524
void OPPROTO op_store_msr_32 (void) { ppc_store_msr_32(env, T0); RETURN(); }
true
qemu
a97fed52e57385fc749e6f6ef95be7ebdb81ba9b
void OPPROTO op_store_msr_32 (void) { ppc_store_msr_32(env, T0); RETURN(); }
{ "code": [ " ppc_store_msr_32(env, T0);" ], "line_no": [ 5 ] }
void VAR_0 op_store_msr_32 (void) { ppc_store_msr_32(env, T0); RETURN(); }
[ "void VAR_0 op_store_msr_32 (void)\n{", "ppc_store_msr_32(env, T0);", "RETURN();", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
9,525
int s390_cpu_handle_mmu_fault(CPUState *cs, vaddr orig_vaddr, int rw, int mmu_idx) { S390CPU *cpu = S390_CPU(cs); CPUS390XState *env = &cpu->env; uint64_t asc = cpu_mmu_idx_to_asc(mmu_idx); target_ulong vaddr, raddr; int prot; DPRINTF("%s: address 0x%" VAD...
true
qemu
0bd695a960bf05f27ad6d710d2b64059037574ce
int s390_cpu_handle_mmu_fault(CPUState *cs, vaddr orig_vaddr, int rw, int mmu_idx) { S390CPU *cpu = S390_CPU(cs); CPUS390XState *env = &cpu->env; uint64_t asc = cpu_mmu_idx_to_asc(mmu_idx); target_ulong vaddr, raddr; int prot; DPRINTF("%s: address 0x%" VAD...
{ "code": [ " if (raddr > ram_size) {" ], "line_no": [ 53 ] }
int FUNC_0(CPUState *VAR_0, vaddr VAR_1, int VAR_2, int VAR_3) { S390CPU *cpu = S390_CPU(VAR_0); CPUS390XState *env = &cpu->env; uint64_t asc = cpu_mmu_idx_to_asc(VAR_3); target_ulong vaddr, raddr; int VAR_4; DPRINTF("%s: address 0x%" VADDR_PRIx " VAR_2 %d...
[ "int FUNC_0(CPUState *VAR_0, vaddr VAR_1,\nint VAR_2, int VAR_3)\n{", "S390CPU *cpu = S390_CPU(VAR_0);", "CPUS390XState *env = &cpu->env;", "uint64_t asc = cpu_mmu_idx_to_asc(VAR_3);", "target_ulong vaddr, raddr;", "int VAR_4;", "DPRINTF(\"%s: address 0x%\" VADDR_PRIx \" VAR_2 %d VAR_3 %d\\n\",\n__func_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 53 ], [ 55, 57 ], [ 59 ], [...
9,526
static int ffm_seek(AVFormatContext *s, int stream_index, int64_t wanted_pts, int flags) { FFMContext *ffm = s->priv_data; int64_t pos_min, pos_max, pos; int64_t pts_min, pts_max, pts; double pos1; av_dlog(s, "wanted_pts=%0.6f\n", wanted_pts / 1000000.0); /* find the position using line...
true
FFmpeg
7fd65104f489302188a91af710b7520dc9ba7b04
static int ffm_seek(AVFormatContext *s, int stream_index, int64_t wanted_pts, int flags) { FFMContext *ffm = s->priv_data; int64_t pos_min, pos_max, pos; int64_t pts_min, pts_max, pts; double pos1; av_dlog(s, "wanted_pts=%0.6f\n", wanted_pts / 1000000.0); if (ffm->write_index &&...
{ "code": [ " if (pts_min > wanted_pts || pts_max < wanted_pts) {" ], "line_no": [ 51 ] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { FFMContext *ffm = VAR_0->priv_data; int64_t pos_min, pos_max, pos; int64_t pts_min, pts_max, pts; double VAR_4; av_dlog(VAR_0, "VAR_2=%0.6f\n", VAR_2 / 1000000.0); if (ffm->write_index && ffm->write...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3)\n{", "FFMContext *ffm = VAR_0->priv_data;", "int64_t pos_min, pos_max, pos;", "int64_t pts_min, pts_max, pts;", "double VAR_4;", "av_dlog(VAR_0, \"VAR_2=%0.6f\\n\", VAR_2 / 1000000.0);", "if (ffm->write_index && ffm->write_i...
[ 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 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
9,527
static void openpic_load_IRQ_queue(QEMUFile* f, IRQ_queue_t *q) { unsigned int i; for (i = 0; i < BF_WIDTH(MAX_IRQ); i++) qemu_get_be32s(f, &q->queue[i]); qemu_get_sbe32s(f, &q->next); qemu_get_sbe32s(f, &q->priority); }
true
qemu
af7e9e74c6a62a5bcd911726a9e88d28b61490e0
static void openpic_load_IRQ_queue(QEMUFile* f, IRQ_queue_t *q) { unsigned int i; for (i = 0; i < BF_WIDTH(MAX_IRQ); i++) qemu_get_be32s(f, &q->queue[i]); qemu_get_sbe32s(f, &q->next); qemu_get_sbe32s(f, &q->priority); }
{ "code": [ "static void openpic_load_IRQ_queue(QEMUFile* f, IRQ_queue_t *q)" ], "line_no": [ 1 ] }
static void FUNC_0(QEMUFile* VAR_0, IRQ_queue_t *VAR_1) { unsigned int VAR_2; for (VAR_2 = 0; VAR_2 < BF_WIDTH(MAX_IRQ); VAR_2++) qemu_get_be32s(VAR_0, &VAR_1->queue[VAR_2]); qemu_get_sbe32s(VAR_0, &VAR_1->next); qemu_get_sbe32s(VAR_0, &VAR_1->priority); }
[ "static void FUNC_0(QEMUFile* VAR_0, IRQ_queue_t *VAR_1)\n{", "unsigned int VAR_2;", "for (VAR_2 = 0; VAR_2 < BF_WIDTH(MAX_IRQ); VAR_2++)", "qemu_get_be32s(VAR_0, &VAR_1->queue[VAR_2]);", "qemu_get_sbe32s(VAR_0, &VAR_1->next);", "qemu_get_sbe32s(VAR_0, &VAR_1->priority);", "}" ]
[ 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ] ]
9,529
static void rtas_set_time_of_day(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { struct tm tm; tm.tm_year = rtas_ld(args, 0) - 1900; tm....
false
qemu
210b580b106fa798149e28aa13c66b325a43204e
static void rtas_set_time_of_day(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { struct tm tm; tm.tm_year = rtas_ld(args, 0) - 1900; tm....
{ "code": [], "line_no": [] }
static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1, uint32_t VAR_2, target_ulong VAR_3, uint32_t VAR_4, target_ulong VAR_5) { struct VAR_6 VAR_6; VAR_6.tm_year = rtas_ld(VAR_3, 0) - 1900; VAR_...
[ "static void FUNC_0(sPAPREnvironment *VAR_0,\nuint32_t VAR_1, uint32_t VAR_2,\ntarget_ulong VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{", "struct VAR_6 VAR_6;", "VAR_6.tm_year = rtas_ld(VAR_3, 0) - 1900;", "VAR_6.tm_mon = rtas_ld(VAR_3, 1) - 1;", "VAR_6.tm_mday = rtas_ld(VAR_3, 2);", "VAR_6.tm_hour = r...
[ 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 ], [ 37 ], [ 39 ] ]
9,530
void virtqueue_map(VirtIODevice *vdev, VirtQueueElement *elem) { virtqueue_map_iovec(vdev, elem->in_sg, elem->in_addr, &elem->in_num, MIN(ARRAY_SIZE(elem->in_sg), ARRAY_SIZE(elem->in_addr)), 1); virtqueue_map_iovec(vdev, elem->out_sg, elem->out_addr, &elem->o...
false
qemu
6bdc21c050a2a7b92cbbd0b2a1f8934e9b5f896f
void virtqueue_map(VirtIODevice *vdev, VirtQueueElement *elem) { virtqueue_map_iovec(vdev, elem->in_sg, elem->in_addr, &elem->in_num, MIN(ARRAY_SIZE(elem->in_sg), ARRAY_SIZE(elem->in_addr)), 1); virtqueue_map_iovec(vdev, elem->out_sg, elem->out_addr, &elem->o...
{ "code": [], "line_no": [] }
void FUNC_0(VirtIODevice *VAR_0, VirtQueueElement *VAR_1) { virtqueue_map_iovec(VAR_0, VAR_1->in_sg, VAR_1->in_addr, &VAR_1->in_num, MIN(ARRAY_SIZE(VAR_1->in_sg), ARRAY_SIZE(VAR_1->in_addr)), 1); virtqueue_map_iovec(VAR_0, VAR_1->out_sg, VAR_1->out_addr, &VAR...
[ "void FUNC_0(VirtIODevice *VAR_0, VirtQueueElement *VAR_1)\n{", "virtqueue_map_iovec(VAR_0, VAR_1->in_sg, VAR_1->in_addr, &VAR_1->in_num,\nMIN(ARRAY_SIZE(VAR_1->in_sg), ARRAY_SIZE(VAR_1->in_addr)),\n1);", "virtqueue_map_iovec(VAR_0, VAR_1->out_sg, VAR_1->out_addr, &VAR_1->out_num,\nMIN(ARRAY_SIZE(VAR_1->out_sg)...
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11, 13, 15, 17 ], [ 19 ] ]
9,531
static int qed_write_header_sync(BDRVQEDState *s) { QEDHeader le; int ret; qed_header_cpu_to_le(&s->header, &le); ret = bdrv_pwrite(s->bs->file, 0, &le, sizeof(le)); if (ret != sizeof(le)) { return ret; } return 0; }
false
qemu
b10170aca0616df85482dcc7ddda03437bc07cca
static int qed_write_header_sync(BDRVQEDState *s) { QEDHeader le; int ret; qed_header_cpu_to_le(&s->header, &le); ret = bdrv_pwrite(s->bs->file, 0, &le, sizeof(le)); if (ret != sizeof(le)) { return ret; } return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(BDRVQEDState *VAR_0) { QEDHeader le; int VAR_1; qed_header_cpu_to_le(&VAR_0->header, &le); VAR_1 = bdrv_pwrite(VAR_0->bs->file, 0, &le, sizeof(le)); if (VAR_1 != sizeof(le)) { return VAR_1; } return 0; }
[ "static int FUNC_0(BDRVQEDState *VAR_0)\n{", "QEDHeader le;", "int VAR_1;", "qed_header_cpu_to_le(&VAR_0->header, &le);", "VAR_1 = bdrv_pwrite(VAR_0->bs->file, 0, &le, sizeof(le));", "if (VAR_1 != sizeof(le)) {", "return VAR_1;", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
9,532
int v9fs_device_realize_common(V9fsState *s, Error **errp) { V9fsVirtioState *v = container_of(s, V9fsVirtioState, state); int i, len; struct stat stat; FsDriverEntry *fse; V9fsPath path; int rc = 1; /* initialize pdu allocator */ QLIST_INIT(&s->free_list); QLIST_INIT(&s-...
false
qemu
583f21f8b9982d60c451e812af2d9dfe19d19d3f
int v9fs_device_realize_common(V9fsState *s, Error **errp) { V9fsVirtioState *v = container_of(s, V9fsVirtioState, state); int i, len; struct stat stat; FsDriverEntry *fse; V9fsPath path; int rc = 1; QLIST_INIT(&s->free_list); QLIST_INIT(&s->active_list); for (i = 0...
{ "code": [], "line_no": [] }
int FUNC_0(V9fsState *VAR_0, Error **VAR_1) { V9fsVirtioState *v = container_of(VAR_0, V9fsVirtioState, state); int VAR_2, VAR_3; struct VAR_4 VAR_4; FsDriverEntry *fse; V9fsPath path; int VAR_5 = 1; QLIST_INIT(&VAR_0->free_list); QLIST_INIT(&VAR_0->active_list); fo...
[ "int FUNC_0(V9fsState *VAR_0, Error **VAR_1)\n{", "V9fsVirtioState *v = container_of(VAR_0, V9fsVirtioState, state);", "int VAR_2, VAR_3;", "struct VAR_4 VAR_4;", "FsDriverEntry *fse;", "V9fsPath path;", "int VAR_5 = 1;", "QLIST_INIT(&VAR_0->free_list);", "QLIST_INIT(&VAR_0->active_list);", "for (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 45 ], [ 49, 51, 53 ], [ 55 ...
9,534
static void pc_compat_1_6(MachineState *machine) { pc_compat_1_7(machine); rom_file_has_mr = false; has_acpi_build = false; }
false
qemu
7102fa7073b2cefb33ab4012a11f15fbf297a74b
static void pc_compat_1_6(MachineState *machine) { pc_compat_1_7(machine); rom_file_has_mr = false; has_acpi_build = false; }
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { pc_compat_1_7(VAR_0); rom_file_has_mr = false; has_acpi_build = false; }
[ "static void FUNC_0(MachineState *VAR_0)\n{", "pc_compat_1_7(VAR_0);", "rom_file_has_mr = false;", "has_acpi_build = false;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
9,535
static void __attribute__((destructor)) coroutine_cleanup(void) { Coroutine *co; Coroutine *tmp; QSLIST_FOREACH_SAFE(co, &pool, pool_next, tmp) { QSLIST_REMOVE_HEAD(&pool, pool_next); qemu_coroutine_delete(co); } }
false
qemu
b84c4586234b26ccc875595713f6f4491e5b3385
static void __attribute__((destructor)) coroutine_cleanup(void) { Coroutine *co; Coroutine *tmp; QSLIST_FOREACH_SAFE(co, &pool, pool_next, tmp) { QSLIST_REMOVE_HEAD(&pool, pool_next); qemu_coroutine_delete(co); } }
{ "code": [], "line_no": [] }
static void __attribute__((destructor)) FUNC_0(void) { Coroutine *co; Coroutine *tmp; QSLIST_FOREACH_SAFE(co, &pool, pool_next, tmp) { QSLIST_REMOVE_HEAD(&pool, pool_next); qemu_coroutine_delete(co); } }
[ "static void __attribute__((destructor)) FUNC_0(void)\n{", "Coroutine *co;", "Coroutine *tmp;", "QSLIST_FOREACH_SAFE(co, &pool, pool_next, tmp) {", "QSLIST_REMOVE_HEAD(&pool, pool_next);", "qemu_coroutine_delete(co);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
9,536
int qemu_acl_party_is_allowed(qemu_acl *acl, const char *party) { qemu_acl_entry *entry; TAILQ_FOREACH(entry, &acl->entries, next) { #ifdef CONFIG_FNMATCH if (fnmatch(entry->match, party, 0) == 0) return entry->deny ? 0 : 1; #else /* No fnmatc...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
int qemu_acl_party_is_allowed(qemu_acl *acl, const char *party) { qemu_acl_entry *entry; TAILQ_FOREACH(entry, &acl->entries, next) { #ifdef CONFIG_FNMATCH if (fnmatch(entry->match, party, 0) == 0) return entry->deny ? 0 : 1; #else ...
{ "code": [], "line_no": [] }
int FUNC_0(qemu_acl *VAR_0, const char *VAR_1) { qemu_acl_entry *entry; TAILQ_FOREACH(entry, &VAR_0->entries, next) { #ifdef CONFIG_FNMATCH if (fnmatch(entry->match, VAR_1, 0) == 0) return entry->deny ? 0 : 1; #else if (strcmp(entr...
[ "int FUNC_0(qemu_acl *VAR_0,\nconst char *VAR_1)\n{", "qemu_acl_entry *entry;", "TAILQ_FOREACH(entry, &VAR_0->entries, next) {", "#ifdef CONFIG_FNMATCH\nif (fnmatch(entry->match, VAR_1, 0) == 0)\nreturn entry->deny ? 0 : 1;", "#else\nif (strcmp(entry->match, VAR_1) == 0)\nreturn entry->deny ? 0 : 1;", "#e...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15, 17 ], [ 19, 25, 27 ], [ 29, 31 ], [ 35 ], [ 37 ] ]
9,537
static void tcg_out_ld_abs(TCGContext *s, TCGType type, TCGReg dest, void *abs) { intptr_t addr = (intptr_t)abs; if ((facilities & FACILITY_GEN_INST_EXT) && !(addr & 1)) { ptrdiff_t disp = tcg_pcrel_diff(s, abs) >> 1; if (disp == (int32_t)disp) { if (type == TCG_TYPE_I32) { ...
false
qemu
b2c98d9d392c87c9b9e975d30f79924719d9cbbe
static void tcg_out_ld_abs(TCGContext *s, TCGType type, TCGReg dest, void *abs) { intptr_t addr = (intptr_t)abs; if ((facilities & FACILITY_GEN_INST_EXT) && !(addr & 1)) { ptrdiff_t disp = tcg_pcrel_diff(s, abs) >> 1; if (disp == (int32_t)disp) { if (type == TCG_TYPE_I32) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, void *VAR_3) { intptr_t addr = (intptr_t)VAR_3; if ((facilities & FACILITY_GEN_INST_EXT) && !(addr & 1)) { ptrdiff_t disp = tcg_pcrel_diff(VAR_0, VAR_3) >> 1; if (disp == (int32_t)disp) { if (VAR_1 == TCG_TYPE...
[ "static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, void *VAR_3)\n{", "intptr_t addr = (intptr_t)VAR_3;", "if ((facilities & FACILITY_GEN_INST_EXT) && !(addr & 1)) {", "ptrdiff_t disp = tcg_pcrel_diff(VAR_0, VAR_3) >> 1;", "if (disp == (int32_t)disp) {", "if (VAR_1 == TCG_TYPE_I32) {", "...
[ 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 ] ]
9,539
static void v9fs_wstat(void *opaque) { int32_t fid; int err = 0; int16_t unused; V9fsStat v9stat; size_t offset = 7; struct stat stbuf; V9fsFidState *fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dwS", &fid, &unused, &v9stat); t...
false
qemu
ddca7f86ac022289840e0200fd4050b2b58e9176
static void v9fs_wstat(void *opaque) { int32_t fid; int err = 0; int16_t unused; V9fsStat v9stat; size_t offset = 7; struct stat stbuf; V9fsFidState *fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dwS", &fid, &unused, &v9stat); t...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int32_t fid; int VAR_1 = 0; int16_t unused; V9fsStat v9stat; size_t offset = 7; struct stat VAR_2; V9fsFidState *fidp; V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dwS", &fid, &unused, &v9stat); trace...
[ "static void FUNC_0(void *VAR_0)\n{", "int32_t fid;", "int VAR_1 = 0;", "int16_t unused;", "V9fsStat v9stat;", "size_t offset = 7;", "struct stat VAR_2;", "V9fsFidState *fidp;", "V9fsPDU *pdu = VAR_0;", "V9fsState *s = pdu->s;", "pdu_unmarshal(pdu, offset, \"dwS\", &fid, &unused, &v9stat);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
9,541
static void drive_backup_prepare(BlkTransactionState *common, Error **errp) { DriveBackupState *state = DO_UPCAST(DriveBackupState, common, common); BlockBackend *blk; DriveBackup *backup; Error *local_err = NULL; assert(common->action->kind == TRANSACTION_ACTION_KIND_DRIVE_BACKUP); bac...
false
qemu
1fdd4b7be3655d39c3594bc215eb1df5ce225c7d
static void drive_backup_prepare(BlkTransactionState *common, Error **errp) { DriveBackupState *state = DO_UPCAST(DriveBackupState, common, common); BlockBackend *blk; DriveBackup *backup; Error *local_err = NULL; assert(common->action->kind == TRANSACTION_ACTION_KIND_DRIVE_BACKUP); bac...
{ "code": [], "line_no": [] }
static void FUNC_0(BlkTransactionState *VAR_0, Error **VAR_1) { DriveBackupState *state = DO_UPCAST(DriveBackupState, VAR_0, VAR_0); BlockBackend *blk; DriveBackup *backup; Error *local_err = NULL; assert(VAR_0->action->kind == TRANSACTION_ACTION_KIND_DRIVE_BACKUP); backup = VAR_0->acti...
[ "static void FUNC_0(BlkTransactionState *VAR_0, Error **VAR_1)\n{", "DriveBackupState *state = DO_UPCAST(DriveBackupState, VAR_0, VAR_0);", "BlockBackend *blk;", "DriveBackup *backup;", "Error *local_err = NULL;", "assert(VAR_0->action->kind == TRANSACTION_ACTION_KIND_DRIVE_BACKUP);", "backup = VAR_0->a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 43, 45, 47, 49, 51, 53, 55, 57, 59 ], [...
9,542
void helper_ltr_T0(void) { int selector; SegmentCache *dt; uint32_t e1, e2; int index, type, entry_limit; target_ulong ptr; selector = T0 & 0xffff; if ((selector & 0xfffc) == 0) { /* NULL selector case: invalid TR */ env->tr.base = 0; env->tr.limit = ...
false
qemu
b0ee3ff06e54a30b1540c08507b873a00192aa0e
void helper_ltr_T0(void) { int selector; SegmentCache *dt; uint32_t e1, e2; int index, type, entry_limit; target_ulong ptr; selector = T0 & 0xffff; if ((selector & 0xfffc) == 0) { env->tr.base = 0; env->tr.limit = 0; env->tr.flags = 0; ...
{ "code": [], "line_no": [] }
void FUNC_0(void) { int VAR_0; SegmentCache *dt; uint32_t e1, e2; int VAR_1, VAR_2, VAR_3; target_ulong ptr; VAR_0 = T0 & 0xffff; if ((VAR_0 & 0xfffc) == 0) { env->tr.base = 0; env->tr.limit = 0; env->tr.flags = 0; } else { if ...
[ "void FUNC_0(void)\n{", "int VAR_0;", "SegmentCache *dt;", "uint32_t e1, e2;", "int VAR_1, VAR_2, VAR_3;", "target_ulong ptr;", "VAR_0 = T0 & 0xffff;", "if ((VAR_0 & 0xfffc) == 0) {", "env->tr.base = 0;", "env->tr.limit = 0;", "env->tr.flags = 0;", "} else {", "if (VAR_0 & 0x4)\nraise_except...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [...
9,543
static void uhci_async_cancel_device(UHCIState *s, USBDevice *dev) { UHCIQueue *queue; UHCIAsync *curr, *n; QTAILQ_FOREACH(queue, &s->queues, next) { QTAILQ_FOREACH_SAFE(curr, &queue->asyncs, next, n) { if (!usb_packet_is_inflight(&curr->packet) || curr->packet.e...
false
qemu
5ad23e873c858292dc58b9296261365312b8f683
static void uhci_async_cancel_device(UHCIState *s, USBDevice *dev) { UHCIQueue *queue; UHCIAsync *curr, *n; QTAILQ_FOREACH(queue, &s->queues, next) { QTAILQ_FOREACH_SAFE(curr, &queue->asyncs, next, n) { if (!usb_packet_is_inflight(&curr->packet) || curr->packet.e...
{ "code": [], "line_no": [] }
static void FUNC_0(UHCIState *VAR_0, USBDevice *VAR_1) { UHCIQueue *queue; UHCIAsync *curr, *n; QTAILQ_FOREACH(queue, &VAR_0->queues, next) { QTAILQ_FOREACH_SAFE(curr, &queue->asyncs, next, n) { if (!usb_packet_is_inflight(&curr->packet) || curr->packet.ep->VAR_1...
[ "static void FUNC_0(UHCIState *VAR_0, USBDevice *VAR_1)\n{", "UHCIQueue *queue;", "UHCIAsync *curr, *n;", "QTAILQ_FOREACH(queue, &VAR_0->queues, next) {", "QTAILQ_FOREACH_SAFE(curr, &queue->asyncs, next, n) {", "if (!usb_packet_is_inflight(&curr->packet) ||\ncurr->packet.ep->VAR_1 != VAR_1) {", "continu...
[ 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 ] ]
9,544
static int dnxhd_decode_macroblock(DNXHDContext *ctx, AVFrame *frame, int x, int y) { int shift1 = ctx->bit_depth == 10; int dct_linesize_luma = frame->linesize[0]; int dct_linesize_chroma = frame->linesize[1]; uint8_t *dest_y, *dest_u, *dest_v; int dct_y_...
false
FFmpeg
2c660e34cf3c2b77cd2bef6f292920334dfd9192
static int dnxhd_decode_macroblock(DNXHDContext *ctx, AVFrame *frame, int x, int y) { int shift1 = ctx->bit_depth == 10; int dct_linesize_luma = frame->linesize[0]; int dct_linesize_chroma = frame->linesize[1]; uint8_t *dest_y, *dest_u, *dest_v; int dct_y_...
{ "code": [], "line_no": [] }
static int FUNC_0(DNXHDContext *VAR_0, AVFrame *VAR_1, int VAR_2, int VAR_3) { int VAR_4 = VAR_0->bit_depth == 10; int VAR_5 = VAR_1->linesize[0]; int VAR_6 = VAR_1->linesize[1]; uint8_t *dest_y, *dest_u, *dest_v; int VAR_7, VAR_8; int VAR_9, VAR_10; ...
[ "static int FUNC_0(DNXHDContext *VAR_0, AVFrame *VAR_1,\nint VAR_2, int VAR_3)\n{", "int VAR_4 = VAR_0->bit_depth == 10;", "int VAR_5 = VAR_1->linesize[0];", "int VAR_6 = VAR_1->linesize[1];", "uint8_t *dest_y, *dest_u, *dest_v;", "int VAR_7, VAR_8;", "int VAR_9, VAR_10;", "VAR_9 = get_bits(&VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...
9,545
static void apply_loop_filter(Vp3DecodeContext *s) { int x, y, plane; int width, height; int fragment; int stride; unsigned char *plane_data; int bounding_values_array[256]; int *bounding_values= bounding_values_array+127; int filter_limit; /* find the right loop limit ...
false
FFmpeg
f44b08a5a0ee46b52a9a608cbf2d075eab93db61
static void apply_loop_filter(Vp3DecodeContext *s) { int x, y, plane; int width, height; int fragment; int stride; unsigned char *plane_data; int bounding_values_array[256]; int *bounding_values= bounding_values_array+127; int filter_limit; for (x = 63; x >= 0; x-...
{ "code": [], "line_no": [] }
static void FUNC_0(Vp3DecodeContext *VAR_0) { int VAR_1, VAR_2, VAR_3; int VAR_4, VAR_5; int VAR_6; int VAR_7; unsigned char *VAR_8; int VAR_9[256]; int *VAR_10= VAR_9+127; int VAR_11; for (VAR_1 = 63; VAR_1 >= 0; VAR_1--) { if (vp31_ac_scale_factor[VAR_1...
[ "static void FUNC_0(Vp3DecodeContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3;", "int VAR_4, VAR_5;", "int VAR_6;", "int VAR_7;", "unsigned char *VAR_8;", "int VAR_9[256];", "int *VAR_10= VAR_9+127;", "int VAR_11;", "for (VAR_1 = 63; VAR_1 >= 0; VAR_1--) {", "if (vp31_ac_scale_factor[VAR_1] >= 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
9,547
static int vt82c686b_ide_initfn(PCIDevice *dev) { PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, dev);; uint8_t *pci_conf = d->dev.config; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_VIA); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_VIA_IDE); pci_config_set_class(pci_conf, PCI_CLASS_...
false
qemu
65ff544b41c4e097d49a0c81b97cb2f9f9b039b8
static int vt82c686b_ide_initfn(PCIDevice *dev) { PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, dev);; uint8_t *pci_conf = d->dev.config; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_VIA); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_VIA_IDE); pci_config_set_class(pci_conf, PCI_CLASS_...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { PCIIDEState *d = DO_UPCAST(PCIIDEState, VAR_0, VAR_0);; uint8_t *pci_conf = d->VAR_0.config; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_VIA); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_VIA_IDE); pci_config_set_class(pci_conf, PCI_CLASS_STORAG...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "PCIIDEState *d = DO_UPCAST(PCIIDEState, VAR_0, VAR_0);;", "uint8_t *pci_conf = d->VAR_0.config;", "pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_VIA);", "pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_VIA_IDE);", "pci_config_set_class(pci_conf, PCI_CLASS_STO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ] ]
9,549
void set_numa_modes(void) { CPUArchState *env; int i; for (env = first_cpu; env != NULL; env = env->next_cpu) { for (i = 0; i < nb_numa_nodes; i++) { if (node_cpumask[i] & (1 << env->cpu_index)) { env->numa_node = i; } } } }
false
qemu
ee785fed5dd035d4b12142cacec6d3c344426dec
void set_numa_modes(void) { CPUArchState *env; int i; for (env = first_cpu; env != NULL; env = env->next_cpu) { for (i = 0; i < nb_numa_nodes; i++) { if (node_cpumask[i] & (1 << env->cpu_index)) { env->numa_node = i; } } } }
{ "code": [], "line_no": [] }
void FUNC_0(void) { CPUArchState *env; int VAR_0; for (env = first_cpu; env != NULL; env = env->next_cpu) { for (VAR_0 = 0; VAR_0 < nb_numa_nodes; VAR_0++) { if (node_cpumask[VAR_0] & (1 << env->cpu_index)) { env->numa_node = VAR_0; } } ...
[ "void FUNC_0(void)\n{", "CPUArchState *env;", "int VAR_0;", "for (env = first_cpu; env != NULL; env = env->next_cpu) {", "for (VAR_0 = 0; VAR_0 < nb_numa_nodes; VAR_0++) {", "if (node_cpumask[VAR_0] & (1 << env->cpu_index)) {", "env->numa_node = VAR_0;", "}", "}", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
9,550
static void omap_mcbsp_writew(void *opaque, hwaddr addr, uint32_t value) { struct omap_mcbsp_s *s = (struct omap_mcbsp_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (offset == 0x04) { /* DXR */ if (((s->xcr[0] >> 5) & 7) < 3) /* XWDLEN1 */ return; ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void omap_mcbsp_writew(void *opaque, hwaddr addr, uint32_t value) { struct omap_mcbsp_s *s = (struct omap_mcbsp_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (offset == 0x04) { if (((s->xcr[0] >> 5) & 7) < 3) return; if (s->tx_req...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint32_t VAR_2) { struct omap_mcbsp_s *VAR_3 = (struct omap_mcbsp_s *) VAR_0; int VAR_4 = VAR_1 & OMAP_MPUI_REG_MASK; if (VAR_4 == 0x04) { if (((VAR_3->xcr[0] >> 5) & 7) < 3) return; if (VAR_3->tx_req ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint32_t VAR_2)\n{", "struct omap_mcbsp_s *VAR_3 = (struct omap_mcbsp_s *) VAR_0;", "int VAR_4 = VAR_1 & OMAP_MPUI_REG_MASK;", "if (VAR_4 == 0x04) {", "if (((VAR_3->xcr[0] >> 5) & 7) < 3)\nreturn;", "if (VAR_3->tx_req > 3) {", "VAR_3->tx_req -= 4;", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
9,551
static void fcse_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { ARMCPU *cpu = arm_env_get_cpu(env); if (env->cp15.c13_fcse != value) { /* Unlike real hardware the qemu TLB uses virtual addresses, * not modified virtual addresses, so this causes a TLB flush. *...
false
qemu
8d5c773e323b22402abdd0beef4c7d2fc91dd0eb
static void fcse_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { ARMCPU *cpu = arm_env_get_cpu(env); if (env->cp15.c13_fcse != value) { tlb_flush(CPU(cpu), 1); env->cp15.c13_fcse = value; } }
{ "code": [], "line_no": [] }
static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2) { ARMCPU *cpu = arm_env_get_cpu(VAR_0); if (VAR_0->cp15.c13_fcse != VAR_2) { tlb_flush(CPU(cpu), 1); VAR_0->cp15.c13_fcse = VAR_2; } }
[ "static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2)\n{", "ARMCPU *cpu = arm_env_get_cpu(VAR_0);", "if (VAR_0->cp15.c13_fcse != VAR_2) {", "tlb_flush(CPU(cpu), 1);", "VAR_0->cp15.c13_fcse = VAR_2;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
9,552
static void bw_io_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { switch (size) { case 1: cpu_outb(addr, val); break; case 2: cpu_outw(addr, val); break; case 4: cpu_outl(addr, val); break; ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void bw_io_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { switch (size) { case 1: cpu_outb(addr, val); break; case 2: cpu_outw(addr, val); break; case 4: cpu_outl(addr, val); break; ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { switch (VAR_3) { case 1: cpu_outb(VAR_1, VAR_2); break; case 2: cpu_outw(VAR_1, VAR_2); break; case 4: cpu_outl(VAR_1, VAR_2); b...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "switch (VAR_3) {", "case 1:\ncpu_outb(VAR_1, VAR_2);", "break;", "case 2:\ncpu_outw(VAR_1, VAR_2);", "break;", "case 4:\ncpu_outl(VAR_1, VAR_2);", "break;", "default:\nabort();", "}", "}" ]
[ 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 ] ]
9,553
static void check_watchpoint(int offset, int len, int flags) { CPUState *cpu = current_cpu; CPUArchState *env = cpu->env_ptr; target_ulong pc, cs_base; target_ulong vaddr; CPUWatchpoint *wp; int cpu_flags; if (cpu->watchpoint_hit) { /* We re-entered the check after replaci...
false
qemu
08225676b279fd14683275b65ed701972e008043
static void check_watchpoint(int offset, int len, int flags) { CPUState *cpu = current_cpu; CPUArchState *env = cpu->env_ptr; target_ulong pc, cs_base; target_ulong vaddr; CPUWatchpoint *wp; int cpu_flags; if (cpu->watchpoint_hit) { cpu_interrupt(cpu, CPU_INT...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int VAR_1, int VAR_2) { CPUState *cpu = current_cpu; CPUArchState *env = cpu->env_ptr; target_ulong pc, cs_base; target_ulong vaddr; CPUWatchpoint *wp; int VAR_3; if (cpu->watchpoint_hit) { cpu_interrupt(cpu, CPU_INTERRUPT_DEBUG)...
[ "static void FUNC_0(int VAR_0, int VAR_1, int VAR_2)\n{", "CPUState *cpu = current_cpu;", "CPUArchState *env = cpu->env_ptr;", "target_ulong pc, cs_base;", "target_ulong vaddr;", "CPUWatchpoint *wp;", "int VAR_3;", "if (cpu->watchpoint_hit) {", "cpu_interrupt(cpu, CPU_INTERRUPT_DEBUG);", "return;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
9,554
static void *qpa_thread_in (void *arg) { PAVoiceIn *pa = arg; HWVoiceIn *hw = &pa->hw; int threshold; threshold = conf.divisor ? hw->samples / conf.divisor : 0; if (audio_pt_lock (&pa->pt, AUDIO_FUNC)) { return NULL; } for (;;) { int incr, to_grab, wpos; ...
false
qemu
6315633b2535dc82dc1b3403f884b81e26b4c72c
static void *qpa_thread_in (void *arg) { PAVoiceIn *pa = arg; HWVoiceIn *hw = &pa->hw; int threshold; threshold = conf.divisor ? hw->samples / conf.divisor : 0; if (audio_pt_lock (&pa->pt, AUDIO_FUNC)) { return NULL; } for (;;) { int incr, to_grab, wpos; ...
{ "code": [], "line_no": [] }
static void *FUNC_0 (void *VAR_0) { PAVoiceIn *pa = VAR_0; HWVoiceIn *hw = &pa->hw; int VAR_1; VAR_1 = conf.divisor ? hw->samples / conf.divisor : 0; if (audio_pt_lock (&pa->pt, AUDIO_FUNC)) { return NULL; } for (;;) { int VAR_2, VAR_3, VAR_4; for (...
[ "static void *FUNC_0 (void *VAR_0)\n{", "PAVoiceIn *pa = VAR_0;", "HWVoiceIn *hw = &pa->hw;", "int VAR_1;", "VAR_1 = conf.divisor ? hw->samples / conf.divisor : 0;", "if (audio_pt_lock (&pa->pt, AUDIO_FUNC)) {", "return NULL;", "}", "for (;;) {", "int VAR_2, VAR_3, VAR_4;", "for (;;) {", "if (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ...
9,555
void check_file_unfixed_eof_mmaps(void) { char *cp; unsigned int *p1; uintptr_t p; int i; fprintf (stderr, "%s", __func__); for (i = 0; i < 0x10; i++) { p1 = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE, test_fd, (test_fsize - sizeof *p1) & ~pagemask); fail_unless (p1 != MAP...
false
qemu
64c7b9d8e07936383db181876b59c597d6a1ff69
void check_file_unfixed_eof_mmaps(void) { char *cp; unsigned int *p1; uintptr_t p; int i; fprintf (stderr, "%s", __func__); for (i = 0; i < 0x10; i++) { p1 = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE, test_fd, (test_fsize - sizeof *p1) & ~pagemask); fail_unless (p1 != MAP...
{ "code": [], "line_no": [] }
void FUNC_0(void) { char *VAR_0; unsigned int *VAR_1; uintptr_t p; int VAR_2; fprintf (stderr, "%s", __func__); for (VAR_2 = 0; VAR_2 < 0x10; VAR_2++) { VAR_1 = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE, test_fd, (test_fsize - sizeof *VAR_1) & ~pagemask); fail_unless (VAR...
[ "void FUNC_0(void)\n{", "char *VAR_0;", "unsigned int *VAR_1;", "uintptr_t p;", "int VAR_2;", "fprintf (stderr, \"%s\", __func__);", "for (VAR_2 = 0; VAR_2 < 0x10; VAR_2++)", "{", "VAR_1 = mmap(NULL, pagesize, PROT_READ,\nMAP_PRIVATE,\ntest_fd,\n(test_fsize - sizeof *VAR_1) & ~pagemask);", "fail_u...
[ 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 ], [ 31 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ...
9,556
static int64_t update_scr(AVFormatContext *ctx,int stream_index,int64_t pts) { MpegMuxContext *s = ctx->priv_data; int64_t scr; if (s->is_vcd) /* Since the data delivery rate is constant, SCR is computed using the formula C + i * 1200 where C is the start constant and ...
false
FFmpeg
224944895efe6ac23e3b8f9d35abfee9f5c6c440
static int64_t update_scr(AVFormatContext *ctx,int stream_index,int64_t pts) { MpegMuxContext *s = ctx->priv_data; int64_t scr; if (s->is_vcd) scr = 36000 + s->packet_number * 1200; else { if (stream_index == s->scr_stream_...
{ "code": [], "line_no": [] }
static int64_t FUNC_0(AVFormatContext *ctx,int stream_index,int64_t pts) { MpegMuxContext *s = ctx->priv_data; int64_t scr; if (s->is_vcd) scr = 36000 + s->packet_number * 1200; else { if (stream_index == s->scr_stream_inde...
[ "static int64_t FUNC_0(AVFormatContext *ctx,int stream_index,int64_t pts)\n{", "MpegMuxContext *s = ctx->priv_data;", "int64_t scr;", "if (s->is_vcd)\nscr = 36000 + s->packet_number * 1200;", "else {", "if (stream_index == s->scr_stream_index\n&& pts != AV_NOPTS_VALUE)\nscr = pts;", "else\nscr = s->last...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 33 ], [ 35 ], [ 49, 51, 53 ], [ 55, 57 ], [ 59 ], [ 63 ], [ 67 ], [ 69 ] ]
9,557
static int decode_micromips_opc (CPUMIPSState *env, DisasContext *ctx) { uint32_t op; /* make sure instructions are on a halfword boundary */ if (ctx->pc & 0x1) { env->CP0_BadVAddr = ctx->pc; generate_exception(ctx, EXCP_AdEL); ctx->bstate = BS_STOP; return 2; ...
false
qemu
3a1f426828cd8ffeec1a4fa8ca6ca3ed4f800edb
static int decode_micromips_opc (CPUMIPSState *env, DisasContext *ctx) { uint32_t op; if (ctx->pc & 0x1) { env->CP0_BadVAddr = ctx->pc; generate_exception(ctx, EXCP_AdEL); ctx->bstate = BS_STOP; return 2; } op = (ctx->opcode >> 10) & 0x3f; if...
{ "code": [], "line_no": [] }
static int FUNC_0 (CPUMIPSState *VAR_0, DisasContext *VAR_1) { uint32_t op; if (VAR_1->pc & 0x1) { VAR_0->CP0_BadVAddr = VAR_1->pc; generate_exception(VAR_1, EXCP_AdEL); VAR_1->bstate = BS_STOP; return 2; } op = (VAR_1->opcode >> 10) & 0x3f; ...
[ "static int FUNC_0 (CPUMIPSState *VAR_0, DisasContext *VAR_1)\n{", "uint32_t op;", "if (VAR_1->pc & 0x1) {", "VAR_0->CP0_BadVAddr = VAR_1->pc;", "generate_exception(VAR_1, EXCP_AdEL);", "VAR_1->bstate = BS_STOP;", "return 2;", "}", "op = (VAR_1->opcode >> 10) & 0x3f;", "if (VAR_1->hflags & MIPS_HF...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 37, 41, 45, 49, 53 ], [ 55 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], ...
9,558
static void ratelimit_set_speed(RateLimit *limit, uint64_t speed) { limit->slice_quota = speed / (1000000000ULL / SLICE_TIME); }
false
qemu
6ef228fc0de1d5fb43ebfef039563d39a3a37067
static void ratelimit_set_speed(RateLimit *limit, uint64_t speed) { limit->slice_quota = speed / (1000000000ULL / SLICE_TIME); }
{ "code": [], "line_no": [] }
static void FUNC_0(RateLimit *VAR_0, uint64_t VAR_1) { VAR_0->slice_quota = VAR_1 / (1000000000ULL / SLICE_TIME); }
[ "static void FUNC_0(RateLimit *VAR_0, uint64_t VAR_1)\n{", "VAR_0->slice_quota = VAR_1 / (1000000000ULL / SLICE_TIME);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
9,559
static void tap_update_fd_handler(TAPState *s) { qemu_set_fd_handler2(s->fd, s->read_poll && s->enabled ? tap_can_send : NULL, s->read_poll && s->enabled ? tap_send : NULL, s->write_poll && s->enabled ? tap_writable : NULL, ...
false
qemu
a90a7425cf592a3afeff3eaf32f543b83050ee5c
static void tap_update_fd_handler(TAPState *s) { qemu_set_fd_handler2(s->fd, s->read_poll && s->enabled ? tap_can_send : NULL, s->read_poll && s->enabled ? tap_send : NULL, s->write_poll && s->enabled ? tap_writable : NULL, ...
{ "code": [], "line_no": [] }
static void FUNC_0(TAPState *VAR_0) { qemu_set_fd_handler2(VAR_0->fd, VAR_0->read_poll && VAR_0->enabled ? tap_can_send : NULL, VAR_0->read_poll && VAR_0->enabled ? tap_send : NULL, VAR_0->write_poll && VAR_0->enabled ? tap_writable...
[ "static void FUNC_0(TAPState *VAR_0)\n{", "qemu_set_fd_handler2(VAR_0->fd,\nVAR_0->read_poll && VAR_0->enabled ? tap_can_send : NULL,\nVAR_0->read_poll && VAR_0->enabled ? tap_send : NULL,\nVAR_0->write_poll && VAR_0->enabled ? tap_writable : NULL,\nVAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13 ], [ 15 ] ]
9,560
static void pc_init1(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model, int pci_enab...
false
qemu
8832cb805dcb65009b979cd8e17d75ac4b03c7e4
static void pc_init1(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model, int pci_enab...
{ "code": [], "line_no": [] }
static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5, int VAR_6) { char *VAR_7; int VAR_8, VAR_9, V...
[ "static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nconst char *VAR_4,\nconst char *VAR_5,\nint VAR_6)\n{", "char *VAR_7;", "int VAR_8, VAR_9, VAR_10;", "ram_addr_t ram_addr, bios_offset, option_rom_offset;", "ram_addr_t below_4g_mem_size, above_4g_mem_size = 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
9,561
static void dec_mul(DisasContext *dc) { TCGv d[2]; unsigned int subcode; if ((dc->tb_flags & MSR_EE_FLAG) && !(dc->env->pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK) && !(dc->env->pvr.regs[0] & PVR0_USE_HW_MUL_MASK)) { tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP); ...
false
qemu
97f90cbfe810bb153fc44bde732d9639610783bb
static void dec_mul(DisasContext *dc) { TCGv d[2]; unsigned int subcode; if ((dc->tb_flags & MSR_EE_FLAG) && !(dc->env->pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK) && !(dc->env->pvr.regs[0] & PVR0_USE_HW_MUL_MASK)) { tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP); ...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0) { TCGv d[2]; unsigned int VAR_1; if ((VAR_0->tb_flags & MSR_EE_FLAG) && !(VAR_0->env->pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK) && !(VAR_0->env->pvr.regs[0] & PVR0_USE_HW_MUL_MASK)) { tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP);...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "TCGv d[2];", "unsigned int VAR_1;", "if ((VAR_0->tb_flags & MSR_EE_FLAG)\n&& !(VAR_0->env->pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK)\n&& !(VAR_0->env->pvr.regs[0] & PVR0_USE_HW_MUL_MASK)) {", "tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP);", "t_gen_raise_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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49, 51 ], [ 55 ], ...
9,562
static void fimd_update_memory_section(Exynos4210fimdState *s, unsigned win) { Exynos4210fimdWindow *w = &s->window[win]; target_phys_addr_t fb_start_addr, fb_mapped_len; if (!s->enabled || !(w->wincon & FIMD_WINCON_ENWIN) || FIMD_WINDOW_PROTECTED(s->shadowcon, win)) { return; ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void fimd_update_memory_section(Exynos4210fimdState *s, unsigned win) { Exynos4210fimdWindow *w = &s->window[win]; target_phys_addr_t fb_start_addr, fb_mapped_len; if (!s->enabled || !(w->wincon & FIMD_WINCON_ENWIN) || FIMD_WINDOW_PROTECTED(s->shadowcon, win)) { return; ...
{ "code": [], "line_no": [] }
static void FUNC_0(Exynos4210fimdState *VAR_0, unsigned VAR_1) { Exynos4210fimdWindow *w = &VAR_0->window[VAR_1]; target_phys_addr_t fb_start_addr, fb_mapped_len; if (!VAR_0->enabled || !(w->wincon & FIMD_WINCON_ENWIN) || FIMD_WINDOW_PROTECTED(VAR_0->shadowcon, VAR_1)) { return; ...
[ "static void FUNC_0(Exynos4210fimdState *VAR_0, unsigned VAR_1)\n{", "Exynos4210fimdWindow *w = &VAR_0->window[VAR_1];", "target_phys_addr_t fb_start_addr, fb_mapped_len;", "if (!VAR_0->enabled || !(w->wincon & FIMD_WINCON_ENWIN) ||\nFIMD_WINDOW_PROTECTED(VAR_0->shadowcon, VAR_1)) {", "return;", "}", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 55...
9,563
PCIDevice *pci_try_create_multifunction(PCIBus *bus, int devfn, bool multifunction, const char *name) { DeviceState *dev; dev = qdev_try_create(&bus->qbus, name); if (!dev) { return NULL; } qdev_prop_s...
false
qemu
a369da5f31ddbdeb32a7f76622e480d3995fbb00
PCIDevice *pci_try_create_multifunction(PCIBus *bus, int devfn, bool multifunction, const char *name) { DeviceState *dev; dev = qdev_try_create(&bus->qbus, name); if (!dev) { return NULL; } qdev_prop_s...
{ "code": [], "line_no": [] }
PCIDevice *FUNC_0(PCIBus *bus, int devfn, bool multifunction, const char *name) { DeviceState *dev; dev = qdev_try_create(&bus->qbus, name); if (!dev) { return NULL; } qdev_prop_set_uint32(dev, "addr",...
[ "PCIDevice *FUNC_0(PCIBus *bus, int devfn,\nbool multifunction,\nconst char *name)\n{", "DeviceState *dev;", "dev = qdev_try_create(&bus->qbus, name);", "if (!dev) {", "return NULL;", "}", "qdev_prop_set_uint32(dev, \"addr\", devfn);", "qdev_prop_set_bit(dev, \"multifunction\", multifunction);", "re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
9,564
void OPPROTO op_addq_ESI_T0(void) { ESI = (ESI + T0); }
false
qemu
6e0d8677cb443e7408c0b7a25a93c6596d7fa380
void OPPROTO op_addq_ESI_T0(void) { ESI = (ESI + T0); }
{ "code": [], "line_no": [] }
void VAR_0 op_addq_ESI_T0(void) { ESI = (ESI + T0); }
[ "void VAR_0 op_addq_ESI_T0(void)\n{", "ESI = (ESI + T0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
9,565
static int mov_write_trailer(AVFormatContext *s) { MOVMuxContext *mov = s->priv_data; AVIOContext *pb = s->pb; int res = 0; int i; int64_t moov_pos; /* * Before actually writing the trailer, make sure that there are no * dangling subtitles, that need a terminating sample. ...
false
FFmpeg
0e70266bbfade1457189cc402cab2cdd7ec94c7b
static int mov_write_trailer(AVFormatContext *s) { MOVMuxContext *mov = s->priv_data; AVIOContext *pb = s->pb; int res = 0; int i; int64_t moov_pos; for (i = 0; i < mov->nb_streams; i++) { MOVTrack *trk = &mov->tracks[i]; if (trk->enc->codec_id == AV_CODEC_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { MOVMuxContext *mov = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; int VAR_1 = 0; int VAR_2; int64_t moov_pos; for (VAR_2 = 0; VAR_2 < mov->nb_streams; VAR_2++) { MOVTrack *trk = &mov->tracks[VAR_2]; if (trk->enc...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MOVMuxContext *mov = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "int VAR_1 = 0;", "int VAR_2;", "int64_t moov_pos;", "for (VAR_2 = 0; VAR_2 < mov->nb_streams; VAR_2++) {", "MOVTrack *trk = &mov->tracks[VAR_2];", "if (trk->enc->codec_id == AV_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 57 ], [ 59 ], [ 61 ...
9,566
static void acquire_privilege(const char *name, Error **errp) { HANDLE token = NULL; TOKEN_PRIVILEGES priv; Error *local_err = NULL; if (OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY, &token)) { if (!LookupPrivilegeValue(NULL, name, &priv.Privile...
false
qemu
621ff94d5074d88253a5818c6b9c4db718fbfc65
static void acquire_privilege(const char *name, Error **errp) { HANDLE token = NULL; TOKEN_PRIVILEGES priv; Error *local_err = NULL; if (OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY, &token)) { if (!LookupPrivilegeValue(NULL, name, &priv.Privile...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, Error **VAR_1) { HANDLE token = NULL; TOKEN_PRIVILEGES priv; Error *local_err = NULL; if (OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY, &token)) { if (!LookupPrivilegeValue(NULL, VAR_0, &priv.Privileges[0].L...
[ "static void FUNC_0(const char *VAR_0, Error **VAR_1)\n{", "HANDLE token = NULL;", "TOKEN_PRIVILEGES priv;", "Error *local_err = NULL;", "if (OpenProcessToken(GetCurrentProcess(),\nTOKEN_ADJUST_PRIVILEGES|TOKEN_QUERY, &token))\n{", "if (!LookupPrivilegeValue(NULL, VAR_0, &priv.Privileges[0].Luid)) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51, 53 ], [...
9,567
static int aio_write_f(int argc, char **argv) { int nr_iov, c; int pattern = 0xcd; struct aio_ctx *ctx = calloc(1, sizeof(struct aio_ctx)); while ((c = getopt(argc, argv, "CqP:")) != EOF) { switch (c) { case 'C': ctx->Cflag = 1; break; case 'q'...
false
qemu
031380d8770d2df6c386e4aeabd412007d3ebd54
static int aio_write_f(int argc, char **argv) { int nr_iov, c; int pattern = 0xcd; struct aio_ctx *ctx = calloc(1, sizeof(struct aio_ctx)); while ((c = getopt(argc, argv, "CqP:")) != EOF) { switch (c) { case 'C': ctx->Cflag = 1; break; case 'q'...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, char **VAR_1) { int VAR_2, VAR_3; int VAR_4 = 0xcd; struct aio_ctx *VAR_5 = calloc(1, sizeof(struct aio_ctx)); while ((VAR_3 = getopt(VAR_0, VAR_1, "CqP:")) != EOF) { switch (VAR_3) { case 'C': VAR_5->Cflag = 1; break; ...
[ "static int FUNC_0(int VAR_0, char **VAR_1)\n{", "int VAR_2, VAR_3;", "int VAR_4 = 0xcd;", "struct aio_ctx *VAR_5 = calloc(1, sizeof(struct aio_ctx));", "while ((VAR_3 = getopt(VAR_0, VAR_1, \"CqP:\")) != EOF) {", "switch (VAR_3) {", "case 'C':\nVAR_5->Cflag = 1;", "break;", "case 'q':\nVAR_5->qflag...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
9,568
void tlb_set_page(CPUState *cpu, target_ulong vaddr, hwaddr paddr, int prot, int mmu_idx, target_ulong size) { CPUArchState *env = cpu->env_ptr; MemoryRegionSection *section; unsigned int index; target_ulong address; target_ulong code_address; uintptr...
false
qemu
88e89a57f985296a6eeb416b2a875072e09d7faa
void tlb_set_page(CPUState *cpu, target_ulong vaddr, hwaddr paddr, int prot, int mmu_idx, target_ulong size) { CPUArchState *env = cpu->env_ptr; MemoryRegionSection *section; unsigned int index; target_ulong address; target_ulong code_address; uintptr...
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, target_ulong VAR_1, hwaddr VAR_2, int VAR_3, int VAR_4, target_ulong VAR_5) { CPUArchState *env = VAR_0->env_ptr; MemoryRegionSection *section; unsigned int VAR_6; target_ulong address; target_ulong code_address; uintptr_t...
[ "void FUNC_0(CPUState *VAR_0, target_ulong VAR_1,\nhwaddr VAR_2, int VAR_3,\nint VAR_4, target_ulong VAR_5)\n{", "CPUArchState *env = VAR_0->env_ptr;", "MemoryRegionSection *section;", "unsigned int VAR_6;", "target_ulong address;", "target_ulong code_address;", "uintptr_t addend;", "CPUTLBEntry *te;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 47, 49, 51, 53 ...