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,710
static void readline_completion(ReadLineState *rs) { int len, i, j, max_width, nb_cols, max_prefix; char *cmdline; rs->nb_completions = 0; cmdline = g_malloc(rs->cmd_buf_index + 1); memcpy(cmdline, rs->cmd_buf, rs->cmd_buf_index); cmdline[rs->cmd_buf_index] = '\0'; rs->completion...
false
qemu
c60bf3391bf4cb79b7adc6650094e21671ddaabd
static void readline_completion(ReadLineState *rs) { int len, i, j, max_width, nb_cols, max_prefix; char *cmdline; rs->nb_completions = 0; cmdline = g_malloc(rs->cmd_buf_index + 1); memcpy(cmdline, rs->cmd_buf, rs->cmd_buf_index); cmdline[rs->cmd_buf_index] = '\0'; rs->completion...
{ "code": [], "line_no": [] }
static void FUNC_0(ReadLineState *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; char *VAR_7; VAR_0->nb_completions = 0; VAR_7 = g_malloc(VAR_0->cmd_buf_index + 1); memcpy(VAR_7, VAR_0->cmd_buf, VAR_0->cmd_buf_index); VAR_7[VAR_0->cmd_buf_index] = '\0'; VAR_0->completion_...
[ "static void FUNC_0(ReadLineState *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;", "char *VAR_7;", "VAR_0->nb_completions = 0;", "VAR_7 = g_malloc(VAR_0->cmd_buf_index + 1);", "memcpy(VAR_7, VAR_0->cmd_buf, VAR_0->cmd_buf_index);", "VAR_7[VAR_0->cmd_buf_index] = '\\0';", "VAR_0->completio...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53...
9,711
static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr, target_ulong vaddr) { phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS] |= CODE_DIRTY_FLAG; }
false
qemu
f7c11b535040df31cc8bc3b1f0c33f546073ee62
static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr, target_ulong vaddr) { phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS] |= CODE_DIRTY_FLAG; }
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0, ram_addr_t VAR_1, target_ulong VAR_2) { phys_ram_dirty[VAR_1 >> TARGET_PAGE_BITS] |= CODE_DIRTY_FLAG; }
[ "static void FUNC_0(CPUState *VAR_0, ram_addr_t VAR_1,\ntarget_ulong VAR_2)\n{", "phys_ram_dirty[VAR_1 >> TARGET_PAGE_BITS] |= CODE_DIRTY_FLAG;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
9,713
float64 helper_fqtod(CPUSPARCState *env) { float64 ret; clear_float_exceptions(env); ret = float128_to_float64(QT1, &env->fp_status); check_ieee_exceptions(env); return ret; }
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
float64 helper_fqtod(CPUSPARCState *env) { float64 ret; clear_float_exceptions(env); ret = float128_to_float64(QT1, &env->fp_status); check_ieee_exceptions(env); return ret; }
{ "code": [], "line_no": [] }
float64 FUNC_0(CPUSPARCState *env) { float64 ret; clear_float_exceptions(env); ret = float128_to_float64(QT1, &env->fp_status); check_ieee_exceptions(env); return ret; }
[ "float64 FUNC_0(CPUSPARCState *env)\n{", "float64 ret;", "clear_float_exceptions(env);", "ret = float128_to_float64(QT1, &env->fp_status);", "check_ieee_exceptions(env);", "return ret;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
9,714
static bool vhost_section(MemoryRegionSection *section) { return section->address_space == get_system_memory() && memory_region_is_ram(section->mr); }
false
qemu
0fada67420e29f389119ca6f44285203400e0730
static bool vhost_section(MemoryRegionSection *section) { return section->address_space == get_system_memory() && memory_region_is_ram(section->mr); }
{ "code": [], "line_no": [] }
static bool FUNC_0(MemoryRegionSection *section) { return section->address_space == get_system_memory() && memory_region_is_ram(section->mr); }
[ "static bool FUNC_0(MemoryRegionSection *section)\n{", "return section->address_space == get_system_memory()\n&& memory_region_is_ram(section->mr);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
9,715
static int parse_str(StringInputVisitor *siv, const char *name, Error **errp) { char *str = (char *) siv->string; long long start, end; Range *cur; char *endptr; if (siv->ranges) { return 0; } do { errno = 0; start = strtoll(str, &endptr, 0); i...
false
qemu
a0efbf16604770b9d805bcf210ec29942321134f
static int parse_str(StringInputVisitor *siv, const char *name, Error **errp) { char *str = (char *) siv->string; long long start, end; Range *cur; char *endptr; if (siv->ranges) { return 0; } do { errno = 0; start = strtoll(str, &endptr, 0); i...
{ "code": [], "line_no": [] }
static int FUNC_0(StringInputVisitor *VAR_0, const char *VAR_1, Error **VAR_2) { char *VAR_3 = (char *) VAR_0->string; long long VAR_4, VAR_5; Range *cur; char *VAR_6; if (VAR_0->ranges) { return 0; } do { errno = 0; VAR_4 = strtoll(VAR_3, &VAR_6, 0); ...
[ "static int FUNC_0(StringInputVisitor *VAR_0, const char *VAR_1, Error **VAR_2)\n{", "char *VAR_3 = (char *) VAR_0->string;", "long long VAR_4, VAR_5;", "Range *cur;", "char *VAR_6;", "if (VAR_0->ranges) {", "return 0;", "}", "do {", "errno = 0;", "VAR_4 = strtoll(VAR_3, &VAR_6, 0);", "if (err...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
9,716
static void DEF(put, pixels8_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) { MOVQ_BFE(mm6); __asm__ volatile( "lea (%3, %3), %%"REG_a" \n\t" ".p2align 3 \n\t" "1: \n\t" "movq (%1), %%mm0 ...
false
FFmpeg
92fabca427ff2d8fffa4bd4f09839d8d3822ef31
static void DEF(put, pixels8_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) { MOVQ_BFE(mm6); __asm__ volatile( "lea (%3, %3), %%"REG_a" \n\t" ".p2align 3 \n\t" "1: \n\t" "movq (%1), %%mm0 ...
{ "code": [], "line_no": [] }
static void FUNC_0(put, pixels8_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) { MOVQ_BFE(mm6); __asm__ volatile( "lea (%3, %3), %%"REG_a" \n\t" ".p2align 3 \n\t" "1: \n\t" "movq (%1), %%mm0 ...
[ "static void FUNC_0(put, pixels8_x2)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)\n{", "MOVQ_BFE(mm6);", "__asm__ volatile(\n\"lea (%3, %3), %%\"REG_a\" \\n\\t\"\n\".p2align 3 \\n\\t\"\n\"1: \\n\\t\"\n\"movq (%1), %%mm0 \...
[ 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 ] ]
9,717
static void address_space_update_topology(AddressSpace *as) { FlatView old_view = as->current_map; FlatView new_view = generate_memory_topology(as->root); address_space_update_topology_pass(as, old_view, new_view, false); address_space_update_topology_pass(as, old_view, new_view, true); as...
true
qemu
8786db7cb96f8ce5c75c6e1e074319c9dca8d356
static void address_space_update_topology(AddressSpace *as) { FlatView old_view = as->current_map; FlatView new_view = generate_memory_topology(as->root); address_space_update_topology_pass(as, old_view, new_view, false); address_space_update_topology_pass(as, old_view, new_view, true); as...
{ "code": [ " FlatView old_view = as->current_map;", " as->current_map = new_view;" ], "line_no": [ 5, 17 ] }
static void FUNC_0(AddressSpace *VAR_0) { FlatView old_view = VAR_0->current_map; FlatView new_view = generate_memory_topology(VAR_0->root); address_space_update_topology_pass(VAR_0, old_view, new_view, false); address_space_update_topology_pass(VAR_0, old_view, new_view, true); VAR_0->cur...
[ "static void FUNC_0(AddressSpace *VAR_0)\n{", "FlatView old_view = VAR_0->current_map;", "FlatView new_view = generate_memory_topology(VAR_0->root);", "address_space_update_topology_pass(VAR_0, old_view, new_view, false);", "address_space_update_topology_pass(VAR_0, old_view, new_view, true);", "VAR_0->cu...
[ 0, 1, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
9,718
static int vqf_probe(AVProbeData *probe_packet) { if (AV_RL32(probe_packet->buf) != MKTAG('T','W','I','N')) return 0; if (!memcmp(probe_packet->buf + 4, "97012000", 8)) return AVPROBE_SCORE_MAX; if (!memcmp(probe_packet->buf + 4, "00052200", 8)) return AVPROBE_SCORE_MAX; return A...
true
FFmpeg
e3fc4481b6dd60acdb9f3e370ee9a1d1bd4ddd73
static int vqf_probe(AVProbeData *probe_packet) { if (AV_RL32(probe_packet->buf) != MKTAG('T','W','I','N')) return 0; if (!memcmp(probe_packet->buf + 4, "97012000", 8)) return AVPROBE_SCORE_MAX; if (!memcmp(probe_packet->buf + 4, "00052200", 8)) return AVPROBE_SCORE_MAX; return A...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { if (AV_RL32(VAR_0->buf) != MKTAG('T','W','I','N')) return 0; if (!memcmp(VAR_0->buf + 4, "97012000", 8)) return AVPROBE_SCORE_MAX; if (!memcmp(VAR_0->buf + 4, "00052200", 8)) return AVPROBE_SCORE_MAX; return AVPROBE_SCORE_EXTENSION; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if (AV_RL32(VAR_0->buf) != MKTAG('T','W','I','N'))\nreturn 0;", "if (!memcmp(VAR_0->buf + 4, \"97012000\", 8))\nreturn AVPROBE_SCORE_MAX;", "if (!memcmp(VAR_0->buf + 4, \"00052200\", 8))\nreturn AVPROBE_SCORE_MAX;", "return AVPROBE_SCORE_EXTENSION;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ], [ 7, 8 ], [ 9 ], [ 10 ] ]
9,719
static void boston_platreg_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { if (size != 4) { qemu_log_mask(LOG_UNIMP, "%uB platform register write", size); return; } switch (addr & 0xffff) { case PLAT_FPGA_BUILD: case PLAT_CO...
true
qemu
2d896b454a0e19ec4c1ddbb0e0b65b7e54fcedf3
static void boston_platreg_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { if (size != 4) { qemu_log_mask(LOG_UNIMP, "%uB platform register write", size); return; } switch (addr & 0xffff) { case PLAT_FPGA_BUILD: case PLAT_CO...
{ "code": [ " break;", " break;", " if (size != 4) {", " switch (addr & 0xffff) {", " case PLAT_FPGA_BUILD:", " case PLAT_CORE_CL:", " case PLAT_WRAPPER_CL:", " case PLAT_DDR3_STATUS:", " case PLAT_MMCM_DIV:", " case PLAT_BUILD_CFG:", "...
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { if (VAR_3 != 4) { qemu_log_mask(LOG_UNIMP, "%uB platform register write", VAR_3); return; } switch (VAR_1 & 0xffff) { case PLAT_FPGA_BUILD: case PLAT_CORE_CL: ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "if (VAR_3 != 4) {", "qemu_log_mask(LOG_UNIMP, \"%uB platform register write\", VAR_3);", "return;", "}", "switch (VAR_1 & 0xffff) {", "case PLAT_FPGA_BUILD:\ncase PLAT_CORE_CL:\ncase PLAT_WRAPPER_CL:\ncase PLAT_DDR3_ST...
[ 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21, 23, 25, 27, 29, 31, 33, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51, 53 ], [ 55 ], [ 57 ...
9,720
static int nbd_co_send_reply(NBDRequest *req, struct nbd_reply *reply, int len) { NBDClient *client = req->client; int csock = client->sock; int rc, ret; qemu_co_mutex_lock(&client->send_lock); qemu_set_fd_handler2(csock, nbd_can_read, nbd_read, ...
true
qemu
94e7340b5db8bce7866e44e700ffa8fd26585c7e
static int nbd_co_send_reply(NBDRequest *req, struct nbd_reply *reply, int len) { NBDClient *client = req->client; int csock = client->sock; int rc, ret; qemu_co_mutex_lock(&client->send_lock); qemu_set_fd_handler2(csock, nbd_can_read, nbd_read, ...
{ "code": [ "static int nbd_co_send_reply(NBDRequest *req, struct nbd_reply *reply,", " int len)", " int rc, ret;" ], "line_no": [ 1, 3, 11 ] }
static int FUNC_0(NBDRequest *VAR_0, struct nbd_reply *VAR_1, int VAR_2) { NBDClient *client = VAR_0->client; int VAR_3 = client->sock; int VAR_4, VAR_5; qemu_co_mutex_lock(&client->send_lock); qemu_set_fd_handler2(VAR_3, nbd_can_read, nbd_read, ...
[ "static int FUNC_0(NBDRequest *VAR_0, struct nbd_reply *VAR_1,\nint VAR_2)\n{", "NBDClient *client = VAR_0->client;", "int VAR_3 = client->sock;", "int VAR_4, VAR_5;", "qemu_co_mutex_lock(&client->send_lock);", "qemu_set_fd_handler2(VAR_3, nbd_can_read, nbd_read,\nnbd_restart_write, client);", "client->...
[ 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
9,723
static int mxf_get_d10_aes3_packet(AVIOContext *pb, AVStream *st, AVPacket *pkt, int64_t length) { const uint8_t *buf_ptr, *end_ptr; uint8_t *data_ptr; int i; if (length > 61444) /* worst case PAL 1920 samples 8 channels */ return -1; av_new_packet(pkt, length); avio_read(pb, p...
true
FFmpeg
0c46e958d1fd3817b8e9fa048d0450d509c80378
static int mxf_get_d10_aes3_packet(AVIOContext *pb, AVStream *st, AVPacket *pkt, int64_t length) { const uint8_t *buf_ptr, *end_ptr; uint8_t *data_ptr; int i; if (length > 61444) return -1; av_new_packet(pkt, length); avio_read(pb, pkt->data, length); data_ptr = pkt->data...
{ "code": [ " av_new_packet(pkt, length);", " avio_read(pb, pkt->data, length);", " for (; buf_ptr < end_ptr; ) {", " pkt->size = data_ptr - pkt->data;" ], "line_no": [ 17, 19, 27, 47 ] }
static int FUNC_0(AVIOContext *VAR_0, AVStream *VAR_1, AVPacket *VAR_2, int64_t VAR_3) { const uint8_t *VAR_4, *end_ptr; uint8_t *data_ptr; int VAR_5; if (VAR_3 > 61444) return -1; av_new_packet(VAR_2, VAR_3); avio_read(VAR_0, VAR_2->data, VAR_3); data_ptr = VAR_2->data; ...
[ "static int FUNC_0(AVIOContext *VAR_0, AVStream *VAR_1, AVPacket *VAR_2, int64_t VAR_3)\n{", "const uint8_t *VAR_4, *end_ptr;", "uint8_t *data_ptr;", "int VAR_5;", "if (VAR_3 > 61444)\nreturn -1;", "av_new_packet(VAR_2, VAR_3);", "avio_read(VAR_0, VAR_2->data, VAR_3);", "data_ptr = VAR_2->data;", "e...
[ 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [...
9,724
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, uint8_t * buf, int buf_size) { AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end; const uint8_t *buf_ptr; AVFrame *picture = data;...
false
FFmpeg
e02f7490da1ce126c679e513791071e56617b69a
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, uint8_t * buf, int buf_size) { AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end; const uint8_t *buf_ptr; AVFrame *picture = data;...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext * VAR_0,void *VAR_1, int *VAR_2, uint8_t * VAR_3, int VAR_4) { AVSContext *h = VAR_0->priv_data; MpegEncContext *s = &h->s; int VAR_5; const uint8_t *VAR_6; const uint8_t *VAR_7; AVFrame *picture = VAR_1; uint32_t stc; ...
[ "static int FUNC_0(AVCodecContext * VAR_0,void *VAR_1, int *VAR_2,\nuint8_t * VAR_3, int VAR_4) {", "AVSContext *h = VAR_0->priv_data;", "MpegEncContext *s = &h->s;", "int VAR_5;", "const uint8_t *VAR_6;", "const uint8_t *VAR_7;", "AVFrame *picture = VAR_1;", "uint32_t stc;", "s->VAR_0 = 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
9,725
static int decode_end(AVCodecContext *avctx) { SmackVContext * const smk = (SmackVContext *)avctx->priv_data; if(smk->mmap_tbl) av_free(smk->mmap_tbl); if(smk->mclr_tbl) av_free(smk->mclr_tbl); if(smk->full_tbl) av_free(smk->full_tbl); if(smk->type_tbl) av...
false
FFmpeg
34a8dcd031d637273cdea021e5a79cf720c4c51c
static int decode_end(AVCodecContext *avctx) { SmackVContext * const smk = (SmackVContext *)avctx->priv_data; if(smk->mmap_tbl) av_free(smk->mmap_tbl); if(smk->mclr_tbl) av_free(smk->mclr_tbl); if(smk->full_tbl) av_free(smk->full_tbl); if(smk->type_tbl) av...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { SmackVContext * const smk = (SmackVContext *)VAR_0->priv_data; if(smk->mmap_tbl) av_free(smk->mmap_tbl); if(smk->mclr_tbl) av_free(smk->mclr_tbl); if(smk->full_tbl) av_free(smk->full_tbl); if(smk->type_tbl) av_fre...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "SmackVContext * const smk = (SmackVContext *)VAR_0->priv_data;", "if(smk->mmap_tbl)\nav_free(smk->mmap_tbl);", "if(smk->mclr_tbl)\nav_free(smk->mclr_tbl);", "if(smk->full_tbl)\nav_free(smk->full_tbl);", "if(smk->type_tbl)\nav_free(smk->type_tbl);", "if (sm...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17, 19 ], [ 21, 23 ], [ 27, 29 ], [ 33 ], [ 35 ] ]
9,726
static void test_sum_square(void) { INTFLOAT res0; INTFLOAT res1; LOCAL_ALIGNED_16(INTFLOAT, src, [256], [2]); declare_func(INTFLOAT, INTFLOAT (*x)[2], int n); randomize((INTFLOAT *)src, 256 * 2); res0 = call_ref(src, 256); res1 = call_new(src, 256); if (!float_near_abs_eps(...
false
FFmpeg
3d3243577cfdca6dec39a8c4e75feefd2a170f90
static void test_sum_square(void) { INTFLOAT res0; INTFLOAT res1; LOCAL_ALIGNED_16(INTFLOAT, src, [256], [2]); declare_func(INTFLOAT, INTFLOAT (*x)[2], int n); randomize((INTFLOAT *)src, 256 * 2); res0 = call_ref(src, 256); res1 = call_new(src, 256); if (!float_near_abs_eps(...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { INTFLOAT res0; INTFLOAT res1; LOCAL_ALIGNED_16(INTFLOAT, src, [256], [2]); declare_func(INTFLOAT, INTFLOAT (*x)[2], int n); randomize((INTFLOAT *)src, 256 * 2); res0 = call_ref(src, 256); res1 = call_new(src, 256); if (!float_near_abs_eps(res0, res...
[ "static void FUNC_0(void)\n{", "INTFLOAT res0;", "INTFLOAT res1;", "LOCAL_ALIGNED_16(INTFLOAT, src, [256], [2]);", "declare_func(INTFLOAT, INTFLOAT (*x)[2], int n);", "randomize((INTFLOAT *)src, 256 * 2);", "res0 = call_ref(src, 256);", "res1 = call_new(src, 256);", "if (!float_near_abs_eps(res0, re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ] ]
9,728
static int decode_residuals(FLACContext *s, int32_t *decoded, int pred_order) { int i, tmp, partition, method_type, rice_order; int rice_bits, rice_esc; int samples; method_type = get_bits(&s->gb, 2); if (method_type > 1) { av_log(s->avctx, AV_LOG_ERROR, "illegal residual coding met...
false
FFmpeg
fd00203554334f602ee1d7c5416ff25f356f4fb7
static int decode_residuals(FLACContext *s, int32_t *decoded, int pred_order) { int i, tmp, partition, method_type, rice_order; int rice_bits, rice_esc; int samples; method_type = get_bits(&s->gb, 2); if (method_type > 1) { av_log(s->avctx, AV_LOG_ERROR, "illegal residual coding met...
{ "code": [], "line_no": [] }
static int FUNC_0(FLACContext *VAR_0, int32_t *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8, VAR_9; int VAR_10; VAR_6 = get_bits(&VAR_0->gb, 2); if (VAR_6 > 1) { av_log(VAR_0->avctx, AV_LOG_ERROR, "illegal residual coding method %d\n", VAR_6);...
[ "static int FUNC_0(FLACContext *VAR_0, int32_t *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8, VAR_9;", "int VAR_10;", "VAR_6 = get_bits(&VAR_0->gb, 2);", "if (VAR_6 > 1) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"illegal residual coding method %d\\n\",\nVAR_6);", "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, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51 ], [...
9,729
MemoryRegion *pci_address_space(PCIDevice *dev) { return dev->bus->address_space_mem; }
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
MemoryRegion *pci_address_space(PCIDevice *dev) { return dev->bus->address_space_mem; }
{ "code": [], "line_no": [] }
MemoryRegion *FUNC_0(PCIDevice *dev) { return dev->bus->address_space_mem; }
[ "MemoryRegion *FUNC_0(PCIDevice *dev)\n{", "return dev->bus->address_space_mem;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
9,730
static void net_socket_accept(void *opaque) { NetSocketListenState *s = opaque; NetSocketState *s1; struct sockaddr_in saddr; socklen_t len; int fd; for(;;) { len = sizeof(saddr); fd = qemu_accept(s->fd, (struct sockaddr *)&saddr, &len); if (fd < 0 && errno !=...
false
qemu
011de2b512a83aa5e9f8899ed5bbf2f31995b90e
static void net_socket_accept(void *opaque) { NetSocketListenState *s = opaque; NetSocketState *s1; struct sockaddr_in saddr; socklen_t len; int fd; for(;;) { len = sizeof(saddr); fd = qemu_accept(s->fd, (struct sockaddr *)&saddr, &len); if (fd < 0 && errno !=...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { NetSocketListenState *s = VAR_0; NetSocketState *s1; struct sockaddr_in VAR_1; socklen_t len; int VAR_2; for(;;) { len = sizeof(VAR_1); VAR_2 = qemu_accept(s->VAR_2, (struct sockaddr *)&VAR_1, &len); if (VAR_2 < 0 && errno != ...
[ "static void FUNC_0(void *VAR_0)\n{", "NetSocketListenState *s = VAR_0;", "NetSocketState *s1;", "struct sockaddr_in VAR_1;", "socklen_t len;", "int VAR_2;", "for(;;) {", "len = sizeof(VAR_1);", "VAR_2 = qemu_accept(s->VAR_2, (struct sockaddr *)&VAR_1, &len);", "if (VAR_2 < 0 && errno != EINTR) {"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ...
9,731
static int vvfat_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVVVFATState *s = bs->opaque; int cyls, heads, secs; bool floppy; const char *dirname, *label; QemuOpts *opts; Error *local_err = NULL; int ret; #ifdef DEBUG vvv = ...
false
qemu
8297be80f7cf71e09617669a8bd8b2836dcfd4c3
static int vvfat_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVVVFATState *s = bs->opaque; int cyls, heads, secs; bool floppy; const char *dirname, *label; QemuOpts *opts; Error *local_err = NULL; int ret; #ifdef DEBUG vvv = ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVVVFATState *s = VAR_0->opaque; int VAR_4, VAR_5, VAR_6; bool floppy; const char *VAR_7, *VAR_8; QemuOpts *opts; Error *local_err = NULL; int VAR_9; #ifdef DEBUG vvv...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVVVFATState *s = VAR_0->opaque;", "int VAR_4, VAR_5, VAR_6;", "bool floppy;", "const char *VAR_7, *VAR_8;", "QemuOpts *opts;", "Error *local_err = NULL;", "int VAR_9;", "#ifdef DEBUG\nvvv = s;", "#endif\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
9,732
static void qemu_opt_del(QemuOpt *opt) { TAILQ_REMOVE(&opt->opts->head, opt, next); qemu_free((/* !const */ char*)opt->name); qemu_free((/* !const */ char*)opt->str); qemu_free(opt); }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static void qemu_opt_del(QemuOpt *opt) { TAILQ_REMOVE(&opt->opts->head, opt, next); qemu_free(( char*)opt->name); qemu_free(( char*)opt->str); qemu_free(opt); }
{ "code": [], "line_no": [] }
static void FUNC_0(QemuOpt *VAR_0) { TAILQ_REMOVE(&VAR_0->opts->head, VAR_0, next); qemu_free(( char*)VAR_0->name); qemu_free(( char*)VAR_0->str); qemu_free(VAR_0); }
[ "static void FUNC_0(QemuOpt *VAR_0)\n{", "TAILQ_REMOVE(&VAR_0->opts->head, VAR_0, next);", "qemu_free(( char*)VAR_0->name);", "qemu_free(( char*)VAR_0->str);", "qemu_free(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
9,733
static void bamboo_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { unsigned...
false
qemu
04088adbe0c5adca66adb6022723362ad90ed0fc
static void bamboo_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { unsigned...
{ "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) { unsigned int VAR_6[4] = { 28, 27, 26, 25 }; PCIBus...
[ "static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nconst char *VAR_4,\nconst char *VAR_5)\n{", "unsigned int VAR_6[4] = { 28, 27, 26, 25 };", "PCIBus *pcibus;", "CPUState *env;", "uint64_t elf_entry;", "uint64_t elf_lowaddr;", "target_phys_addr_t entry = 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 45 ], [ 49 ], [ 53 ], [...
9,734
static int bochs_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVBochsState *s = bs->opaque; uint32_t i; struct bochs_header bochs; int ret; bs->file = bdrv_open_child(NULL, options, "file", bs, &child_file, fal...
false
qemu
e2b8247a322cd92945785edf25f09e6b3e8285f9
static int bochs_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVBochsState *s = bs->opaque; uint32_t i; struct bochs_header bochs; int ret; bs->file = bdrv_open_child(NULL, options, "file", bs, &child_file, fal...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVBochsState *s = VAR_0->opaque; uint32_t i; struct bochs_header VAR_4; int VAR_5; VAR_0->file = bdrv_open_child(NULL, VAR_1, "file", VAR_0, &child_file, ...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVBochsState *s = VAR_0->opaque;", "uint32_t i;", "struct bochs_header VAR_4;", "int VAR_5;", "VAR_0->file = bdrv_open_child(NULL, VAR_1, \"file\", VAR_0, &child_file,\nfalse, VAR_3);", "if (!VAR_0->file) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45, 47, 49, 51 ], [ 53 ], [ 55 ...
9,735
static V9fsSynthNode *v9fs_add_dir_node(V9fsSynthNode *parent, int mode, const char *name, V9fsSynthNodeAttr *attr, int inode) { V9fsSynthNode *node; /* Add directory type and remove write bits */ mode = ((mode & 0777) |...
false
qemu
364031f17932814484657e5551ba12957d993d7e
static V9fsSynthNode *v9fs_add_dir_node(V9fsSynthNode *parent, int mode, const char *name, V9fsSynthNodeAttr *attr, int inode) { V9fsSynthNode *node; mode = ((mode & 0777) | S_IFDIR) & ~(S_IWUSR | S_IWGRP | S_IWOTH); ...
{ "code": [], "line_no": [] }
static V9fsSynthNode *FUNC_0(V9fsSynthNode *parent, int mode, const char *name, V9fsSynthNodeAttr *attr, int inode) { V9fsSynthNode *node; mode = ((mode & 0777) | S_IFDIR) & ~(S_IWUSR | S_IWGRP | S_IWOTH); node = g...
[ "static V9fsSynthNode *FUNC_0(V9fsSynthNode *parent, int mode,\nconst char *name,\nV9fsSynthNodeAttr *attr, int inode)\n{", "V9fsSynthNode *node;", "mode = ((mode & 0777) | S_IFDIR) & ~(S_IWUSR | S_IWGRP | S_IWOTH);", "node = g_malloc0(sizeof(V9fsSynthNode));", "if (attr) {", "node->attr = attr;", "node...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
9,736
void ff_eac3_output_frame_header(AC3EncodeContext *s) { int blk, ch; AC3EncOptions *opt = &s->options; put_bits(&s->pb, 16, 0x0b77); /* sync word */ /* BSI header */ put_bits(&s->pb, 2, 0); /* stream type = independent */ put_bits(&s->pb, 3, ...
false
FFmpeg
08a747afb98c11da48b89339c2f1c5fdc56ced7e
void ff_eac3_output_frame_header(AC3EncodeContext *s) { int blk, ch; AC3EncOptions *opt = &s->options; put_bits(&s->pb, 16, 0x0b77); put_bits(&s->pb, 2, 0); put_bits(&s->pb, 3, 0); put_bits(&s->pb, 11, (s->fram...
{ "code": [], "line_no": [] }
void FUNC_0(AC3EncodeContext *VAR_0) { int VAR_1, VAR_2; AC3EncOptions *opt = &VAR_0->options; put_bits(&VAR_0->pb, 16, 0x0b77); put_bits(&VAR_0->pb, 2, 0); put_bits(&VAR_0->pb, 3, 0); put_bits(&VAR_0->pb, 11, ...
[ "void FUNC_0(AC3EncodeContext *VAR_0)\n{", "int VAR_1, VAR_2;", "AC3EncOptions *opt = &VAR_0->options;", "put_bits(&VAR_0->pb, 16, 0x0b77);", "put_bits(&VAR_0->pb, 2, 0);", "put_bits(&VAR_0->pb, 3, 0);", "put_bits(&VAR_0->pb, 11, (VAR_0->frame_size / 2) - 1);", "if (VAR_0->bit_alloc.sr_shift) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
9,737
static inline void gen_lods(DisasContext *s, int ot) { gen_string_movl_A0_ESI(s); gen_op_ld_T0_A0(ot + s->mem_index); gen_op_mov_reg_T0(ot, R_EAX); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { gen_op_addq_ESI_T0(); } else #endif if (s->aflag) { ...
false
qemu
6e0d8677cb443e7408c0b7a25a93c6596d7fa380
static inline void gen_lods(DisasContext *s, int ot) { gen_string_movl_A0_ESI(s); gen_op_ld_T0_A0(ot + s->mem_index); gen_op_mov_reg_T0(ot, R_EAX); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { gen_op_addq_ESI_T0(); } else #endif if (s->aflag) { ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1) { gen_string_movl_A0_ESI(VAR_0); gen_op_ld_T0_A0(VAR_1 + VAR_0->mem_index); gen_op_mov_reg_T0(VAR_1, R_EAX); gen_op_movl_T0_Dshift[VAR_1](); #ifdef TARGET_X86_64 if (VAR_0->aflag == 2) { gen_op_addq_ESI_T0(); } else #end...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1)\n{", "gen_string_movl_A0_ESI(VAR_0);", "gen_op_ld_T0_A0(VAR_1 + VAR_0->mem_index);", "gen_op_mov_reg_T0(VAR_1, R_EAX);", "gen_op_movl_T0_Dshift[VAR_1]();", "#ifdef TARGET_X86_64\nif (VAR_0->aflag == 2) {", "gen_op_addq_ESI_T0();", "} else", ...
[ 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 ] ]
9,738
static uint64_t hb_regs_read(void *opaque, target_phys_addr_t offset, unsigned size) { uint32_t *regs = opaque; uint32_t value = regs[offset/4]; if ((offset == 0x100) || (offset == 0x108) || (offset == 0x10C)) { value |= 0x30000000; } return value; }...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t hb_regs_read(void *opaque, target_phys_addr_t offset, unsigned size) { uint32_t *regs = opaque; uint32_t value = regs[offset/4]; if ((offset == 0x100) || (offset == 0x108) || (offset == 0x10C)) { value |= 0x30000000; } return value; }...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset, unsigned size) { uint32_t *regs = opaque; uint32_t value = regs[offset/4]; if ((offset == 0x100) || (offset == 0x108) || (offset == 0x10C)) { value |= 0x30000000; } return value; }
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{", "uint32_t *regs = opaque;", "uint32_t value = regs[offset/4];", "if ((offset == 0x100) || (offset == 0x108) || (offset == 0x10C)) {", "value |= 0x30000000;", "}", "return value;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
9,739
size_t nbd_wr_sync(int fd, void *buffer, size_t size, bool do_read) { size_t offset = 0; if (qemu_in_coroutine()) { if (do_read) { return qemu_co_recv(fd, buffer, size); } else { return qemu_co_send(fd, buffer, size); } } while (offset < size...
false
qemu
fc19f8a02e45c4d8ad24dd7eb374330b03dfc28e
size_t nbd_wr_sync(int fd, void *buffer, size_t size, bool do_read) { size_t offset = 0; if (qemu_in_coroutine()) { if (do_read) { return qemu_co_recv(fd, buffer, size); } else { return qemu_co_send(fd, buffer, size); } } while (offset < size...
{ "code": [], "line_no": [] }
size_t FUNC_0(int fd, void *buffer, size_t size, bool do_read) { size_t offset = 0; if (qemu_in_coroutine()) { if (do_read) { return qemu_co_recv(fd, buffer, size); } else { return qemu_co_send(fd, buffer, size); } } while (offset < size) { ...
[ "size_t FUNC_0(int fd, void *buffer, size_t size, bool do_read)\n{", "size_t offset = 0;", "if (qemu_in_coroutine()) {", "if (do_read) {", "return qemu_co_recv(fd, buffer, size);", "} else {", "return qemu_co_send(fd, buffer, size);", "}", "}", "while (offset < size) {", "ssize_t len;", "if (d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 51 ], [ 53 ], ...
9,740
static uint32_t vfio_pci_read_config(PCIDevice *pdev, uint32_t addr, int len) { VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev); uint32_t val = 0; /* * We only need QEMU PCI config support for the ROM BAR, the MSI and MSIX * capabilities, and the multifunction bit below. We let VFIO ...
false
qemu
4b5d5e87c7ab2e979a2cad6c8e01bcae55b85f1c
static uint32_t vfio_pci_read_config(PCIDevice *pdev, uint32_t addr, int len) { VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev); uint32_t val = 0; if (ranges_overlap(addr, len, PCI_ROM_ADDRESS, 4) || (pdev->cap_present & QEMU_PCI_CAP_MSIX && ranges_overlap(addr, l...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(PCIDevice *pdev, uint32_t addr, int len) { VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev); uint32_t val = 0; if (ranges_overlap(addr, len, PCI_ROM_ADDRESS, 4) || (pdev->cap_present & QEMU_PCI_CAP_MSIX && ranges_overlap(addr, len, pdev->msix...
[ "static uint32_t FUNC_0(PCIDevice *pdev, uint32_t addr, int len)\n{", "VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev);", "uint32_t val = 0;", "if (ranges_overlap(addr, len, PCI_ROM_ADDRESS, 4) ||\n(pdev->cap_present & QEMU_PCI_CAP_MSIX &&\nranges_overlap(addr, len, pdev->msix_cap, MSIX_CAP_LENGTH)) ||\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 21, 23, 25, 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ], [ 59 ], [ 63 ], [ 65 ], [ 67...
9,741
static void x86_cpu_realizefn(DeviceState *dev, Error **errp) { CPUState *cs = CPU(dev); X86CPU *cpu = X86_CPU(dev); X86CPUClass *xcc = X86_CPU_GET_CLASS(dev); CPUX86State *env = &cpu->env; Error *local_err = NULL; static bool ht_warned; if (xcc->kvm_required && !kvm_enabled()) { ...
false
qemu
3dc6f8693694a649a9c83f1e2746565b47683923
static void x86_cpu_realizefn(DeviceState *dev, Error **errp) { CPUState *cs = CPU(dev); X86CPU *cpu = X86_CPU(dev); X86CPUClass *xcc = X86_CPU_GET_CLASS(dev); CPUX86State *env = &cpu->env; Error *local_err = NULL; static bool ht_warned; if (xcc->kvm_required && !kvm_enabled()) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { CPUState *cs = CPU(VAR_0); X86CPU *cpu = X86_CPU(VAR_0); X86CPUClass *xcc = X86_CPU_GET_CLASS(VAR_0); CPUX86State *env = &cpu->env; Error *local_err = NULL; static bool VAR_2; if (xcc->kvm_required && !kvm_enabled()) { ...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "CPUState *cs = CPU(VAR_0);", "X86CPU *cpu = X86_CPU(VAR_0);", "X86CPUClass *xcc = X86_CPU_GET_CLASS(VAR_0);", "CPUX86State *env = &cpu->env;", "Error *local_err = NULL;", "static bool VAR_2;", "if (xcc->kvm_required && !kvm_enabled()) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
9,742
static void pci_realview_class_init(ObjectClass *class, void *data) { DeviceClass *dc = DEVICE_CLASS(class); /* Reason: object_unref() hangs */ dc->cannot_destroy_with_object_finalize_yet = true; }
false
qemu
d28fca153bb27ff965b9eb26d73327fa4d2402c8
static void pci_realview_class_init(ObjectClass *class, void *data) { DeviceClass *dc = DEVICE_CLASS(class); dc->cannot_destroy_with_object_finalize_yet = true; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->cannot_destroy_with_object_finalize_yet = true; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->cannot_destroy_with_object_finalize_yet = true;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ] ]
9,746
static int disas_thumb2_insn(DisasContext *s, uint32_t insn) { uint32_t imm, shift, offset; uint32_t rd, rn, rm, rs; TCGv_i32 tmp; TCGv_i32 tmp2; TCGv_i32 tmp3; TCGv_i32 addr; TCGv_i64 tmp64; int op; int shiftop; int conds; int logic_cc; /* The only 32 bit ...
false
qemu
5158de241b0fb344a6c948dfcbc4e611ab5fafbe
static int disas_thumb2_insn(DisasContext *s, uint32_t insn) { uint32_t imm, shift, offset; uint32_t rd, rn, rm, rs; TCGv_i32 tmp; TCGv_i32 tmp2; TCGv_i32 tmp3; TCGv_i32 addr; TCGv_i64 tmp64; int op; int shiftop; int conds; int logic_cc; if ((insn...
{ "code": [], "line_no": [] }
static int FUNC_0(DisasContext *VAR_0, uint32_t VAR_1) { uint32_t imm, shift, offset; uint32_t rd, rn, rm, rs; TCGv_i32 tmp; TCGv_i32 tmp2; TCGv_i32 tmp3; TCGv_i32 addr; TCGv_i64 tmp64; int VAR_2; int VAR_3; int VAR_4; int VAR_5; if ((VAR_1 & 0xf8...
[ "static int FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{", "uint32_t imm, shift, offset;", "uint32_t rd, rn, rm, rs;", "TCGv_i32 tmp;", "TCGv_i32 tmp2;", "TCGv_i32 tmp3;", "TCGv_i32 addr;", "TCGv_i64 tmp64;", "int VAR_2;", "int VAR_3;", "int VAR_4;", "int VAR_5;", "if ((VAR_1 & 0xf800e800)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
9,750
static int spapr_populate_memory(sPAPREnvironment *spapr, void *fdt) { uint32_t associativity[] = {cpu_to_be32(0x4), cpu_to_be32(0x0), cpu_to_be32(0x0), cpu_to_be32(0x0), cpu_to_be32(0x0)}; char mem_name[32]; hwaddr node0_size, mem_start;...
false
qemu
5fe269b16c6dc8f19da3e8c13d4c66958b00d2f0
static int spapr_populate_memory(sPAPREnvironment *spapr, void *fdt) { uint32_t associativity[] = {cpu_to_be32(0x4), cpu_to_be32(0x0), cpu_to_be32(0x0), cpu_to_be32(0x0), cpu_to_be32(0x0)}; char mem_name[32]; hwaddr node0_size, mem_start;...
{ "code": [], "line_no": [] }
static int FUNC_0(sPAPREnvironment *VAR_0, void *VAR_1) { uint32_t associativity[] = {cpu_to_be32(0x4), cpu_to_be32(0x0), cpu_to_be32(0x0), cpu_to_be32(0x0), cpu_to_be32(0x0)}; char VAR_2[32]; hwaddr node0_size, mem_start; uint64_t m...
[ "static int FUNC_0(sPAPREnvironment *VAR_0, void *VAR_1)\n{", "uint32_t associativity[] = {cpu_to_be32(0x4), cpu_to_be32(0x0),", "cpu_to_be32(0x0), cpu_to_be32(0x0),\ncpu_to_be32(0x0)};", "char VAR_2[32];", "hwaddr node0_size, mem_start;", "uint64_t mem_reg_property[2];", "int VAR_3, VAR_4;", "node0_s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 51 ], [ 53 ], [ 55 ], [...
9,751
static void migrate_fd_put_notify(void *opaque) { MigrationState *s = opaque; qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL); qemu_file_put_notify(s->file); if (qemu_file_get_error(s->file)) { migrate_fd_error(s); } }
false
qemu
1fdc11c36971e0d4eeb2ce817f7e520b2028c2f2
static void migrate_fd_put_notify(void *opaque) { MigrationState *s = opaque; qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL); qemu_file_put_notify(s->file); if (qemu_file_get_error(s->file)) { migrate_fd_error(s); } }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { MigrationState *s = VAR_0; qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL); qemu_file_put_notify(s->file); if (qemu_file_get_error(s->file)) { migrate_fd_error(s); } }
[ "static void FUNC_0(void *VAR_0)\n{", "MigrationState *s = VAR_0;", "qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);", "qemu_file_put_notify(s->file);", "if (qemu_file_get_error(s->file)) {", "migrate_fd_error(s);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
9,752
ParallelState *parallel_init(int index, CharDriverState *chr) { ISADevice *dev; dev = isa_create("isa-parallel"); qdev_prop_set_uint32(&dev->qdev, "index", index); qdev_prop_set_chr(&dev->qdev, "chardev", chr); if (qdev_init(&dev->qdev) < 0) return NULL; return &DO_UPCAST(ISAPa...
false
qemu
defdb20e1a8ac3a7200aaf190d7fb20a5ac8bcea
ParallelState *parallel_init(int index, CharDriverState *chr) { ISADevice *dev; dev = isa_create("isa-parallel"); qdev_prop_set_uint32(&dev->qdev, "index", index); qdev_prop_set_chr(&dev->qdev, "chardev", chr); if (qdev_init(&dev->qdev) < 0) return NULL; return &DO_UPCAST(ISAPa...
{ "code": [], "line_no": [] }
ParallelState *FUNC_0(int index, CharDriverState *chr) { ISADevice *dev; dev = isa_create("isa-parallel"); qdev_prop_set_uint32(&dev->qdev, "index", index); qdev_prop_set_chr(&dev->qdev, "chardev", chr); if (qdev_init(&dev->qdev) < 0) return NULL; return &DO_UPCAST(ISAParallelS...
[ "ParallelState *FUNC_0(int index, CharDriverState *chr)\n{", "ISADevice *dev;", "dev = isa_create(\"isa-parallel\");", "qdev_prop_set_uint32(&dev->qdev, \"index\", index);", "qdev_prop_set_chr(&dev->qdev, \"chardev\", chr);", "if (qdev_init(&dev->qdev) < 0)\nreturn NULL;", "return &DO_UPCAST(ISAParallel...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ] ]
9,753
static void main_loop(void) { int r; #ifdef CONFIG_IOTHREAD qemu_system_ready = 1; qemu_cond_broadcast(&qemu_system_cond); #endif for (;;) { do { #ifdef CONFIG_PROFILER int64_t ti; #endif #ifndef CONFIG_IOTHREAD tcg_cpu_exec(); #endif #ifdef CONFIG_PROF...
false
qemu
0ee442502bc8af7fe1679ccf775e54fcf62dd8ac
static void main_loop(void) { int r; #ifdef CONFIG_IOTHREAD qemu_system_ready = 1; qemu_cond_broadcast(&qemu_system_cond); #endif for (;;) { do { #ifdef CONFIG_PROFILER int64_t ti; #endif #ifndef CONFIG_IOTHREAD tcg_cpu_exec(); #endif #ifdef CONFIG_PROF...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { int VAR_0; #ifdef CONFIG_IOTHREAD qemu_system_ready = 1; qemu_cond_broadcast(&qemu_system_cond); #endif for (;;) { do { #ifdef CONFIG_PROFILER int64_t ti; #endif #ifndef CONFIG_IOTHREAD tcg_cpu_exec(); #endif #ifdef CONFIG_PRO...
[ "static void FUNC_0(void)\n{", "int VAR_0;", "#ifdef CONFIG_IOTHREAD\nqemu_system_ready = 1;", "qemu_cond_broadcast(&qemu_system_cond);", "#endif\nfor (;;) {", "do {", "#ifdef CONFIG_PROFILER\nint64_t ti;", "#endif\n#ifndef CONFIG_IOTHREAD\ntcg_cpu_exec();", "#endif\n#ifdef CONFIG_PROFILER\nti = pro...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15, 19 ], [ 21 ], [ 23, 25 ], [ 27, 29, 31 ], [ 33, 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 47, 49 ], [ 53 ], [ 55 ], [ 57...
9,755
static void qpi_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) { }
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
static void qpi_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) { }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3 ], [ 5 ] ]
9,757
uint64_t cpu_get_tsc(CPUX86State *env) { /* Note: when using kqemu, it is more logical to return the host TSC because kqemu does not trap the RDTSC instruction for performance reasons */ #ifdef CONFIG_KQEMU if (env->kqemu_enabled) { return cpu_get_real_ticks(); } else #endif ...
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
uint64_t cpu_get_tsc(CPUX86State *env) { #ifdef CONFIG_KQEMU if (env->kqemu_enabled) { return cpu_get_real_ticks(); } else #endif { return cpu_get_ticks(); } }
{ "code": [], "line_no": [] }
uint64_t FUNC_0(CPUX86State *env) { #ifdef CONFIG_KQEMU if (env->kqemu_enabled) { return cpu_get_real_ticks(); } else #endif { return cpu_get_ticks(); } }
[ "uint64_t FUNC_0(CPUX86State *env)\n{", "#ifdef CONFIG_KQEMU\nif (env->kqemu_enabled) {", "return cpu_get_real_ticks();", "} else", "#endif\n{", "return cpu_get_ticks();", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ] ]
9,758
void HELPER(diag)(CPUS390XState *env, uint32_t r1, uint32_t r3, uint32_t num) { uint64_t r; switch (num) { case 0x500: /* KVM hypercall */ qemu_mutex_lock_iothread(); r = s390_virtio_hypercall(env); qemu_mutex_unlock_iothread(); break; case 0x44: ...
false
qemu
becf8217deb2afc347d5172d9f30c8a8964b8b27
void HELPER(diag)(CPUS390XState *env, uint32_t r1, uint32_t r3, uint32_t num) { uint64_t r; switch (num) { case 0x500: qemu_mutex_lock_iothread(); r = s390_virtio_hypercall(env); qemu_mutex_unlock_iothread(); break; case 0x44: r = 0...
{ "code": [], "line_no": [] }
void FUNC_0(diag)(CPUS390XState *env, uint32_t r1, uint32_t r3, uint32_t num) { uint64_t r; switch (num) { case 0x500: qemu_mutex_lock_iothread(); r = s390_virtio_hypercall(env); qemu_mutex_unlock_iothread(); break; case 0x44: r = 0...
[ "void FUNC_0(diag)(CPUS390XState *env, uint32_t r1, uint32_t r3, uint32_t num)\n{", "uint64_t r;", "switch (num) {", "case 0x500:\nqemu_mutex_lock_iothread();", "r = s390_virtio_hypercall(env);", "qemu_mutex_unlock_iothread();", "break;", "case 0x44:\nr = 0;", "break;", "case 0x308:\nhandle_diag_3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 27 ], [ 29 ], [ 31, 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55...
9,760
static void piix3_write_config(PCIDevice *dev, uint32_t address, uint32_t val, int len) { pci_default_write_config(dev, address, val, len); if (ranges_overlap(address, len, PIIX_PIRQC, 4)) { PIIX3State *piix3 = PIIX3_PCI_DEVICE(dev); int pic_irq; p...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static void piix3_write_config(PCIDevice *dev, uint32_t address, uint32_t val, int len) { pci_default_write_config(dev, address, val, len); if (ranges_overlap(address, len, PIIX_PIRQC, 4)) { PIIX3State *piix3 = PIIX3_PCI_DEVICE(dev); int pic_irq; p...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIDevice *VAR_0, uint32_t VAR_1, uint32_t VAR_2, int VAR_3) { pci_default_write_config(VAR_0, VAR_1, VAR_2, VAR_3); if (ranges_overlap(VAR_1, VAR_3, PIIX_PIRQC, 4)) { PIIX3State *piix3 = PIIX3_PCI_DEVICE(VAR_0); int VAR_4; pci_b...
[ "static void FUNC_0(PCIDevice *VAR_0,\nuint32_t VAR_1, uint32_t VAR_2, int VAR_3)\n{", "pci_default_write_config(VAR_0, VAR_1, VAR_2, VAR_3);", "if (ranges_overlap(VAR_1, VAR_3, PIIX_PIRQC, 4)) {", "PIIX3State *piix3 = PIIX3_PCI_DEVICE(VAR_0);", "int VAR_4;", "pci_bus_fire_intx_routing_notifier(piix3->VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
9,762
static void idcin_decode_vlcs(IdcinContext *s) { hnode_t *hnodes; long x, y; int prev; unsigned char v = 0; int bit_pos, node_num, dat_pos; prev = bit_pos = dat_pos = 0; for (y = 0; y < (s->frame.linesize[0] * s->avctx->height); y += s->frame.linesize[0]) { for (x...
true
FFmpeg
aabdc4618788a90c4a2b64a569f560d5b7378271
static void idcin_decode_vlcs(IdcinContext *s) { hnode_t *hnodes; long x, y; int prev; unsigned char v = 0; int bit_pos, node_num, dat_pos; prev = bit_pos = dat_pos = 0; for (y = 0; y < (s->frame.linesize[0] * s->avctx->height); y += s->frame.linesize[0]) { for (x...
{ "code": [ " if(dat_pos > s->size) {" ], "line_no": [ 35 ] }
static void FUNC_0(IdcinContext *VAR_0) { hnode_t *hnodes; long VAR_1, VAR_2; int VAR_3; unsigned char VAR_4 = 0; int VAR_5, VAR_6, VAR_7; VAR_3 = VAR_5 = VAR_7 = 0; for (VAR_2 = 0; VAR_2 < (VAR_0->frame.linesize[0] * VAR_0->avctx->height); VAR_2 += VAR_0->frame.linesize[0...
[ "static void FUNC_0(IdcinContext *VAR_0)\n{", "hnode_t *hnodes;", "long VAR_1, VAR_2;", "int VAR_3;", "unsigned char VAR_4 = 0;", "int VAR_5, VAR_6, VAR_7;", "VAR_3 = VAR_5 = VAR_7 = 0;", "for (VAR_2 = 0; VAR_2 < (VAR_0->frame.linesize[0] * VAR_0->avctx->height);", "VAR_2 += VAR_0->frame.linesize[0]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
9,763
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; uint32_t tag, length; int decode_next_dat = 0; int ret; for (;;) { length = bytestream2_get_bytes_left(&s->gb); ...
true
FFmpeg
9e9d731b510666edac3a2b450dfc331279db818b
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; uint32_t tag, length; int decode_next_dat = 0; int ret; for (;;) { length = bytestream2_get_bytes_left(&s->gb); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, PNGDecContext *VAR_1, AVFrame *VAR_2, AVPacket *VAR_3) { AVDictionary *metadata = NULL; uint32_t tag, length; int VAR_4 = 0; int VAR_5; for (;;) { length = bytestream2_get_bytes_left(&VAR_1->gb); if (...
[ "static int FUNC_0(AVCodecContext *VAR_0, PNGDecContext *VAR_1,\nAVFrame *VAR_2, AVPacket *VAR_3)\n{", "AVDictionary *metadata = NULL;", "uint32_t tag, length;", "int VAR_4 = 0;", "int VAR_5;", "for (;;) {", "length = bytestream2_get_bytes_left(&VAR_1->gb);", "if (length <= 0) {", "if (CONFIG_APNG_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [...
9,764
void helper_idivq_EAX_T0(void) { uint64_t r0, r1; if (T0 == 0) { raise_exception(EXCP00_DIVZ); } r0 = EAX; r1 = EDX; idiv64(&r0, &r1, T0); EAX = r0; EDX = r1; }
true
qemu
45bbbb466cf4a6280076ea5a51f67ef5bedee345
void helper_idivq_EAX_T0(void) { uint64_t r0, r1; if (T0 == 0) { raise_exception(EXCP00_DIVZ); } r0 = EAX; r1 = EDX; idiv64(&r0, &r1, T0); EAX = r0; EDX = r1; }
{ "code": [ " idiv64(&r0, &r1, T0);" ], "line_no": [ 17 ] }
void FUNC_0(void) { uint64_t r0, r1; if (T0 == 0) { raise_exception(EXCP00_DIVZ); } r0 = EAX; r1 = EDX; idiv64(&r0, &r1, T0); EAX = r0; EDX = r1; }
[ "void FUNC_0(void)\n{", "uint64_t r0, r1;", "if (T0 == 0) {", "raise_exception(EXCP00_DIVZ);", "}", "r0 = EAX;", "r1 = EDX;", "idiv64(&r0, &r1, T0);", "EAX = r0;", "EDX = r1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
9,766
static void start_children(FFServerStream *feed) { char *pathname; char *slash; int i; size_t cmd_length; if (no_launch) return; cmd_length = strlen(my_program_name); /** * FIXME: WIP Safeguard. Remove after clearing all harcoded * '1024' path lengths */ ...
true
FFmpeg
95d9a85ca3e662388d5fa7ef1937d1c3fbe2dcd5
static void start_children(FFServerStream *feed) { char *pathname; char *slash; int i; size_t cmd_length; if (no_launch) return; cmd_length = strlen(my_program_name); if (cmd_length > PATH_LENGTH - 1) { http_log("Could not start children. Command li...
{ "code": [ " pathname = av_strdup (my_program_name);", " slash = strrchr(pathname, '/');", " if (!slash)", " slash = pathname;", " slash++;", " strcpy(slash, \"ffmpeg\");" ], "line_no": [ 45, 61, 63, 65, 69, 71 ] }
static void FUNC_0(FFServerStream *VAR_0) { char *VAR_1; char *VAR_2; int VAR_3; size_t cmd_length; if (no_launch) return; cmd_length = strlen(my_program_name); if (cmd_length > PATH_LENGTH - 1) { http_log("Could not start children. Command line: '%...
[ "static void FUNC_0(FFServerStream *VAR_0)\n{", "char *VAR_1;", "char *VAR_2;", "int VAR_3;", "size_t cmd_length;", "if (no_launch)\nreturn;", "cmd_length = strlen(my_program_name);", "if (cmd_length > PATH_LENGTH - 1) {", "http_log(\"Could not start children. Command line: '%s' exceeds \"\n\"path l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 61 ], [ 63, 65 ], [...
9,767
static int dshow_read_packet(AVFormatContext *s, AVPacket *pkt) { struct dshow_ctx *ctx = s->priv_data; AVPacketList *pktl = NULL; while (!ctx->eof && !pktl) { WaitForSingleObject(ctx->mutex, INFINITE); pktl = ctx->pktl; if (pktl) { *pkt = pktl->pkt; ...
true
FFmpeg
6abc56e892c2c2500d1fc2698fa6d580b72f721b
static int dshow_read_packet(AVFormatContext *s, AVPacket *pkt) { struct dshow_ctx *ctx = s->priv_data; AVPacketList *pktl = NULL; while (!ctx->eof && !pktl) { WaitForSingleObject(ctx->mutex, INFINITE); pktl = ctx->pktl; if (pktl) { *pkt = pktl->pkt; ...
{ "code": [ " ctx->curbufsize -= pkt->size;" ], "line_no": [ 25 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { struct dshow_ctx *VAR_2 = VAR_0->priv_data; AVPacketList *pktl = NULL; while (!VAR_2->eof && !pktl) { WaitForSingleObject(VAR_2->mutex, INFINITE); pktl = VAR_2->pktl; if (pktl) { *VAR_1 = pktl->VAR_1; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "struct dshow_ctx *VAR_2 = VAR_0->priv_data;", "AVPacketList *pktl = NULL;", "while (!VAR_2->eof && !pktl) {", "WaitForSingleObject(VAR_2->mutex, INFINITE);", "pktl = VAR_2->pktl;", "if (pktl) {", "*VAR_1 = pktl->VAR_1;", "VAR_2->pktl ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
9,768
static void vmxnet3_update_pm_state(VMXNET3State *s) { struct Vmxnet3_VariableLenConfDesc pm_descr; pm_descr.confLen = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, devRead.pmConfDesc.confLen); pm_descr.confVer = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, devRead.pmConfDesc.confVer); pm_...
true
qemu
c508277335e3b6b20cf18e6ea3a35c1fa835c64a
static void vmxnet3_update_pm_state(VMXNET3State *s) { struct Vmxnet3_VariableLenConfDesc pm_descr; pm_descr.confLen = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, devRead.pmConfDesc.confLen); pm_descr.confVer = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, devRead.pmConfDesc.confVer); pm_...
{ "code": [ " VMXNET3_READ_DRV_SHARED32(s->drv_shmem, devRead.pmConfDesc.confLen);", " VMXNET3_READ_DRV_SHARED32(s->drv_shmem, devRead.pmConfDesc.confVer);", " VMXNET3_READ_DRV_SHARED64(s->drv_shmem, devRead.pmConfDesc.confPA);" ], "line_no": [ 11, 15, 19 ] }
static void FUNC_0(VMXNET3State *VAR_0) { struct Vmxnet3_VariableLenConfDesc VAR_1; VAR_1.confLen = VMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem, devRead.pmConfDesc.confLen); VAR_1.confVer = VMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem, devRead.pmConfDesc.confVer); VAR_1.confPA = ...
[ "static void FUNC_0(VMXNET3State *VAR_0)\n{", "struct Vmxnet3_VariableLenConfDesc VAR_1;", "VAR_1.confLen =\nVMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem, devRead.pmConfDesc.confLen);", "VAR_1.confVer =\nVMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem, devRead.pmConfDesc.confVer);", "VAR_1.confPA =\nVMXNET3_READ_D...
[ 0, 0, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17, 19 ], [ 23 ], [ 25 ] ]
9,769
static int adx_encode_frame(AVCodecContext *avctx, unsigned char *frame, int buf_size, const void *data) { ADXContext *c = avctx->priv_data; const short *samples = data; unsigned char *dst = frame; int rest = avctx->frame_size; /* input data size = ffmpeg.c: do_audio_out() frame_bytes = enc->f...
true
FFmpeg
f19af812a32c1398d48c3550d11dbc6aafbb2bfc
static int adx_encode_frame(AVCodecContext *avctx, unsigned char *frame, int buf_size, const void *data) { ADXContext *c = avctx->priv_data; const short *samples = data; unsigned char *dst = frame; int rest = avctx->frame_size; if (!c->header_parsed) { int hdrsize = adx_encode_head...
{ "code": [ "\t\t\t unsigned char *frame, int buf_size, const void *data)", "\tADXContext *c = avctx->priv_data;", "\tconst short *samples = data;", "\tunsigned char *dst = frame;", "\tint rest = avctx->frame_size;", "\tif (!c->header_parsed) {", "\t\tint hdrsize = adx_encode_header(avc...
static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1, int VAR_2, const void *VAR_3) { ADXContext *c = VAR_0->priv_data; const short *VAR_4 = VAR_3; unsigned char *VAR_5 = VAR_1; int VAR_6 = VAR_0->frame_size; if (!c->header_parsed) { int VAR_7 = adx_encode_header(VAR_0,VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nunsigned char *VAR_1, int VAR_2, const void *VAR_3)\n{", "ADXContext *c = VAR_0->priv_data;", "const short *VAR_4 = VAR_3;", "unsigned char *VAR_5 = VAR_1;", "int VAR_6 = VAR_0->frame_size;", "if (!c->header_parsed) {", "int VAR_7 = adx_encode_header(VAR_0,VAR_...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [...
9,770
void HELPER(vfp_set_fpscr)(CPUState *env, uint32_t val) { int i; uint32_t changed; changed = env->vfp.xregs[ARM_VFP_FPSCR]; env->vfp.xregs[ARM_VFP_FPSCR] = (val & 0xffc8ffff); env->vfp.vec_len = (val >> 16) & 7; env->vfp.vec_stride = (val >> 20) & 3; changed ^= val; if (chan...
true
qemu
cecd8504b80148b66cdc1ce32046429bc3549090
void HELPER(vfp_set_fpscr)(CPUState *env, uint32_t val) { int i; uint32_t changed; changed = env->vfp.xregs[ARM_VFP_FPSCR]; env->vfp.xregs[ARM_VFP_FPSCR] = (val & 0xffc8ffff); env->vfp.vec_len = (val >> 16) & 7; env->vfp.vec_stride = (val >> 20) & 3; changed ^= val; if (chan...
{ "code": [ " if (changed & (1 << 24))" ], "line_no": [ 59 ] }
void FUNC_0(vfp_set_fpscr)(CPUState *env, uint32_t val) { int VAR_0; uint32_t changed; changed = env->vfp.xregs[ARM_VFP_FPSCR]; env->vfp.xregs[ARM_VFP_FPSCR] = (val & 0xffc8ffff); env->vfp.vec_len = (val >> 16) & 7; env->vfp.vec_stride = (val >> 20) & 3; changed ^= val; if (...
[ "void FUNC_0(vfp_set_fpscr)(CPUState *env, uint32_t val)\n{", "int VAR_0;", "uint32_t changed;", "changed = env->vfp.xregs[ARM_VFP_FPSCR];", "env->vfp.xregs[ARM_VFP_FPSCR] = (val & 0xffc8ffff);", "env->vfp.vec_len = (val >> 16) & 7;", "env->vfp.vec_stride = (val >> 20) & 3;", "changed ^= val;", "if ...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49...
9,771
static int virtio_blk_pci_init(VirtIOPCIProxy *vpci_dev) { VirtIOBlkPCI *dev = VIRTIO_BLK_PCI(vpci_dev); DeviceState *vdev = DEVICE(&dev->vdev); virtio_blk_set_conf(vdev, &(dev->blk)); qdev_set_parent_bus(vdev, BUS(&vpci_dev->bus)); if (qdev_init(vdev) < 0) { return -1; } re...
true
qemu
caffdac363801cd2cf2bf01ad013a8c1e1e43800
static int virtio_blk_pci_init(VirtIOPCIProxy *vpci_dev) { VirtIOBlkPCI *dev = VIRTIO_BLK_PCI(vpci_dev); DeviceState *vdev = DEVICE(&dev->vdev); virtio_blk_set_conf(vdev, &(dev->blk)); qdev_set_parent_bus(vdev, BUS(&vpci_dev->bus)); if (qdev_init(vdev) < 0) { return -1; } re...
{ "code": [ " virtio_blk_set_conf(vdev, &(dev->blk));", " virtio_blk_set_conf(vdev, &(dev->blk));", " virtio_blk_set_conf(vdev, &(dev->blk));" ], "line_no": [ 9, 9, 9 ] }
static int FUNC_0(VirtIOPCIProxy *VAR_0) { VirtIOBlkPCI *dev = VIRTIO_BLK_PCI(VAR_0); DeviceState *vdev = DEVICE(&dev->vdev); virtio_blk_set_conf(vdev, &(dev->blk)); qdev_set_parent_bus(vdev, BUS(&VAR_0->bus)); if (qdev_init(vdev) < 0) { return -1; } return 0; }
[ "static int FUNC_0(VirtIOPCIProxy *VAR_0)\n{", "VirtIOBlkPCI *dev = VIRTIO_BLK_PCI(VAR_0);", "DeviceState *vdev = DEVICE(&dev->vdev);", "virtio_blk_set_conf(vdev, &(dev->blk));", "qdev_set_parent_bus(vdev, BUS(&VAR_0->bus));", "if (qdev_init(vdev) < 0) {", "return -1;", "}", "return 0;", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
9,773
void ff_convert_matrix(DSPContext *dsp, int (*qmat)[64], uint16_t (*qmat16)[2][64], const uint16_t *quant_matrix, int bias, int qmin, int qmax, int intra) { int qscale; int shift = 0; for (qscale = qmin; qscale <= qmax; qscale++) ...
true
FFmpeg
c753b56b4d56724284dd7ed972efdb843db80f12
void ff_convert_matrix(DSPContext *dsp, int (*qmat)[64], uint16_t (*qmat16)[2][64], const uint16_t *quant_matrix, int bias, int qmin, int qmax, int intra) { int qscale; int shift = 0; for (qscale = qmin; qscale <= qmax; qscale++) ...
{ "code": [ " (ff_aanscales[i] * qscale * quant_matrix[j]));" ], "line_no": [ 69 ] }
void FUNC_0(DSPContext *VAR_0, int (*VAR_1)[64], VAR_2 (*qmat16)[2][64], const VAR_2 *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { int VAR_8; int VAR_9 = 0; for (VAR_8 = VAR_5; VAR_8 <= VAR_6; VAR_8++) { int VAR_1...
[ "void FUNC_0(DSPContext *VAR_0, int (*VAR_1)[64],\nVAR_2 (*qmat16)[2][64],\nconst VAR_2 *VAR_3,\nint VAR_4, int VAR_5, int VAR_6, int VAR_7)\n{", "int VAR_8;", "int VAR_9 = 0;", "for (VAR_8 = VAR_5; VAR_8 <= VAR_6; VAR_8++) {", "int VAR_10;", "if (VAR_0->fdct == ff_jpeg_fdct_islow_8 ||\nVAR_0->fdct == ff_...
[ 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 ], [ 17 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 67, 69 ], [ 71 ], [ 73 ], [...
9,776
static int pcm_dvd_parse_header(AVCodecContext *avctx, const uint8_t *header) { /* no traces of 44100 and 32000Hz in any commercial software or player */ static const uint32_t frequencies[4] = { 48000, 96000, 44100, 32000 }; PCMDVDContext *s = avctx->priv_data; int header_int = (header[0] & 0xe0) |...
true
FFmpeg
f55bc96a5449179ee9b0aab6f0a4581ba1df6b62
static int pcm_dvd_parse_header(AVCodecContext *avctx, const uint8_t *header) { static const uint32_t frequencies[4] = { 48000, 96000, 44100, 32000 }; PCMDVDContext *s = avctx->priv_data; int header_int = (header[0] & 0xe0) | (header[1] << 8) | (header[2] << 16); if (s->last_header ==...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1) { static const uint32_t VAR_2[4] = { 48000, 96000, 44100, 32000 }; PCMDVDContext *s = VAR_0->priv_data; int VAR_3 = (VAR_1[0] & 0xe0) | (VAR_1[1] << 8) | (VAR_1[2] << 16); if (s->last_header == VAR_3) return 0; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1)\n{", "static const uint32_t VAR_2[4] = { 48000, 96000, 44100, 32000 };", "PCMDVDContext *s = VAR_0->priv_data;", "int VAR_3 = (VAR_1[0] & 0xe0) | (VAR_1[1] << 8) | (VAR_1[2] << 16);", "if (s->last_header == VAR_3)\nreturn 0;", "if (VAR_0->deb...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 17, 19 ], [ 24, 26, 28 ], [ 44 ], [ 50 ], [ 52 ], [ 54, 56, 58 ], [ 60 ], [ 62 ], [ 64, 66 ], [ 68 ], [ 74 ], [ 80 ], [ 84...
9,777
static int64_t nfs_client_open(NFSClient *client, QDict *options, int flags, int open_flags, Error **errp) { int ret = -EINVAL; QemuOpts *opts = NULL; Error *local_err = NULL; struct stat st; char *file = NULL, *strp = NULL; qemu_mutex_init(&client->mutex...
true
qemu
f1a7ff770f7d71ee7833ff019aac9d6cc3d13f71
static int64_t nfs_client_open(NFSClient *client, QDict *options, int flags, int open_flags, Error **errp) { int ret = -EINVAL; QemuOpts *opts = NULL; Error *local_err = NULL; struct stat st; char *file = NULL, *strp = NULL; qemu_mutex_init(&client->mutex...
{ "code": [ " int ret = -EINVAL;" ], "line_no": [ 7 ] }
static int64_t FUNC_0(NFSClient *client, QDict *options, int flags, int open_flags, Error **errp) { int VAR_0 = -EINVAL; QemuOpts *opts = NULL; Error *local_err = NULL; struct stat VAR_1; char *VAR_2 = NULL, *VAR_3 = NULL; qemu_mutex_init(&client->mutex);...
[ "static int64_t FUNC_0(NFSClient *client, QDict *options,\nint flags, int open_flags, Error **errp)\n{", "int VAR_0 = -EINVAL;", "QemuOpts *opts = NULL;", "Error *local_err = NULL;", "struct stat VAR_1;", "char *VAR_2 = NULL, *VAR_3 = NULL;", "qemu_mutex_init(&client->mutex);", "opts = qemu_opts_creat...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
9,778
ssize_t slirp_send(struct socket *so, const void *buf, size_t len, int flags) { if (so->s == -1 && so->extra) { qemu_chr_fe_write(so->extra, buf, len); return len; } return send(so->s, buf, len, flags); }
true
qemu
6ab3fc32ea640026726bc5f9f4db622d0954fb8a
ssize_t slirp_send(struct socket *so, const void *buf, size_t len, int flags) { if (so->s == -1 && so->extra) { qemu_chr_fe_write(so->extra, buf, len); return len; } return send(so->s, buf, len, flags); }
{ "code": [ " qemu_chr_fe_write(so->extra, buf, len);" ], "line_no": [ 7 ] }
ssize_t FUNC_0(struct socket *so, const void *buf, size_t len, int flags) { if (so->s == -1 && so->extra) { qemu_chr_fe_write(so->extra, buf, len); return len; } return send(so->s, buf, len, flags); }
[ "ssize_t FUNC_0(struct socket *so, const void *buf, size_t len, int flags)\n{", "if (so->s == -1 && so->extra) {", "qemu_chr_fe_write(so->extra, buf, len);", "return len;", "}", "return send(so->s, buf, len, flags);", "}" ]
[ 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
9,782
static int diff_C(unsigned char *old, unsigned char *new, int os, int ns) { int x, y, d=0; for (y = 8; y; y--) { for (x = 8; x; x--) { d += abs(new[x] - old[x]); } new += ns; old += os; } return d; }
true
FFmpeg
6c0107822d3ed7588fa857c3ed1ee886b4ba62e9
static int diff_C(unsigned char *old, unsigned char *new, int os, int ns) { int x, y, d=0; for (y = 8; y; y--) { for (x = 8; x; x--) { d += abs(new[x] - old[x]); } new += ns; old += os; } return d; }
{ "code": [ " for (y = 8; y; y--) {", " for (x = 8; x; x--) {" ], "line_no": [ 7, 9 ] }
static int FUNC_0(unsigned char *VAR_0, unsigned char *VAR_1, int VAR_2, int VAR_3) { int VAR_4, VAR_5, VAR_6=0; for (VAR_5 = 8; VAR_5; VAR_5--) { for (VAR_4 = 8; VAR_4; VAR_4--) { VAR_6 += abs(VAR_1[VAR_4] - VAR_0[VAR_4]); } VAR_1 += VAR_3; VAR_0 += VAR_2; ...
[ "static int FUNC_0(unsigned char *VAR_0, unsigned char *VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5, VAR_6=0;", "for (VAR_5 = 8; VAR_5; VAR_5--) {", "for (VAR_4 = 8; VAR_4; VAR_4--) {", "VAR_6 += abs(VAR_1[VAR_4] - VAR_0[VAR_4]);", "}", "VAR_1 += VAR_3;", "VAR_0 += VAR_2;", "}", "return VA...
[ 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
9,783
void do_icbi (void) { uint32_t tmp; /* Invalidate one cache line : * PowerPC specification says this is to be treated like a load * (not a fetch) by the MMU. To be sure it will be so, * do the load "by hand". */ #if defined(TARGET_PPC64) if (!msr_sf) T0 &= 0xFFFFFFFFULL...
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
void do_icbi (void) { uint32_t tmp; #if defined(TARGET_PPC64) if (!msr_sf) T0 &= 0xFFFFFFFFULL; #endif tmp = ldl_kernel(T0); T0 &= ~(ICACHE_LINE_SIZE - 1); tb_invalidate_page_range(T0, T0 + ICACHE_LINE_SIZE); }
{ "code": [ " if (!msr_sf)", " T0 &= 0xFFFFFFFFULL;", "#endif", " tmp = ldl_kernel(T0);", " tb_invalidate_page_range(T0, T0 + ICACHE_LINE_SIZE);", "#endif" ], "line_no": [ 19, 21, 23, 25, 29, 23 ] }
void FUNC_0 (void) { uint32_t tmp; #if defined(TARGET_PPC64) if (!msr_sf) T0 &= 0xFFFFFFFFULL; #endif tmp = ldl_kernel(T0); T0 &= ~(ICACHE_LINE_SIZE - 1); tb_invalidate_page_range(T0, T0 + ICACHE_LINE_SIZE); }
[ "void FUNC_0 (void)\n{", "uint32_t tmp;", "#if defined(TARGET_PPC64)\nif (!msr_sf)\nT0 &= 0xFFFFFFFFULL;", "#endif\ntmp = ldl_kernel(T0);", "T0 &= ~(ICACHE_LINE_SIZE - 1);", "tb_invalidate_page_range(T0, T0 + ICACHE_LINE_SIZE);", "}" ]
[ 0, 0, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 17, 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ] ]
9,784
static int xen_pt_register_regions(XenPCIPassthroughState *s) { int i = 0; XenHostPCIDevice *d = &s->real_device; /* Register PIO/MMIO BARs */ for (i = 0; i < PCI_ROM_SLOT; i++) { XenHostPCIIORegion *r = &d->io_regions[i]; uint8_t type; if (r->base_addr == 0 || r->siz...
true
qemu
81b23ef82cd1be29ca3d69ab7e98b5b5e55926ce
static int xen_pt_register_regions(XenPCIPassthroughState *s) { int i = 0; XenHostPCIDevice *d = &s->real_device; for (i = 0; i < PCI_ROM_SLOT; i++) { XenHostPCIIORegion *r = &d->io_regions[i]; uint8_t type; if (r->base_addr == 0 || r->size == 0) { conti...
{ "code": [ "static int xen_pt_register_regions(XenPCIPassthroughState *s)", " return 0;" ], "line_no": [ 1, 125 ] }
static int FUNC_0(XenPCIPassthroughState *VAR_0) { int VAR_1 = 0; XenHostPCIDevice *d = &VAR_0->real_device; for (VAR_1 = 0; VAR_1 < PCI_ROM_SLOT; VAR_1++) { XenHostPCIIORegion *r = &d->io_regions[VAR_1]; uint8_t type; if (r->base_addr == 0 || r->size == 0) { ...
[ "static int FUNC_0(XenPCIPassthroughState *VAR_0)\n{", "int VAR_1 = 0;", "XenHostPCIDevice *d = &VAR_0->real_device;", "for (VAR_1 = 0; VAR_1 < PCI_ROM_SLOT; VAR_1++) {", "XenHostPCIIORegion *r = &d->io_regions[VAR_1];", "uint8_t type;", "if (r->base_addr == 0 || r->size == 0) {", "continue;", "}", ...
[ 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, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
9,785
void bdrv_set_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors) { BdrvDirtyBitmap *bitmap; QLIST_FOREACH(bitmap, &bs->dirty_bitmaps, list) { hbitmap_set(bitmap->bitmap, cur_sector, nr_sectors); } }
true
qemu
c4237dfa635900e4d1cdc6038d5efe3507f45f0c
void bdrv_set_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors) { BdrvDirtyBitmap *bitmap; QLIST_FOREACH(bitmap, &bs->dirty_bitmaps, list) { hbitmap_set(bitmap->bitmap, cur_sector, nr_sectors); } }
{ "code": [ "void bdrv_set_dirty(BlockDriverState *bs, int64_t cur_sector,", " int nr_sectors)" ], "line_no": [ 1, 3 ] }
void FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2) { BdrvDirtyBitmap *bitmap; QLIST_FOREACH(bitmap, &VAR_0->dirty_bitmaps, list) { hbitmap_set(bitmap->bitmap, VAR_1, VAR_2); } }
[ "void FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nint VAR_2)\n{", "BdrvDirtyBitmap *bitmap;", "QLIST_FOREACH(bitmap, &VAR_0->dirty_bitmaps, list) {", "hbitmap_set(bitmap->bitmap, VAR_1, VAR_2);", "}", "}" ]
[ 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
9,786
av_cold void ff_vp8dsp_init_armv6(VP8DSPContext *dsp) { dsp->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_armv6; dsp->vp8_luma_dc_wht_dc = ff_vp8_luma_dc_wht_dc_armv6; dsp->vp8_idct_add = ff_vp8_idct_add_armv6; dsp->vp8_idct_dc_add = ff_vp8_idct_dc_add_armv6; dsp->vp8_idct_dc_add4y = ff...
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
av_cold void ff_vp8dsp_init_armv6(VP8DSPContext *dsp) { dsp->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_armv6; dsp->vp8_luma_dc_wht_dc = ff_vp8_luma_dc_wht_dc_armv6; dsp->vp8_idct_add = ff_vp8_idct_add_armv6; dsp->vp8_idct_dc_add = ff_vp8_idct_dc_add_armv6; dsp->vp8_idct_dc_add4y = ff...
{ "code": [ "av_cold void ff_vp8dsp_init_armv6(VP8DSPContext *dsp)", " dsp->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_armv6;", " dsp->vp8_luma_dc_wht_dc = ff_vp8_luma_dc_wht_dc_armv6;", " dsp->vp8_idct_add = ff_vp8_idct_add_armv6;", " dsp->vp8_idct_dc_add = ff_vp8_idct_dc_add_ar...
av_cold void FUNC_0(VP8DSPContext *dsp) { dsp->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_armv6; dsp->vp8_luma_dc_wht_dc = ff_vp8_luma_dc_wht_dc_armv6; dsp->vp8_idct_add = ff_vp8_idct_add_armv6; dsp->vp8_idct_dc_add = ff_vp8_idct_dc_add_armv6; dsp->vp8_idct_dc_add4y = ff_vp8_idct_dc_a...
[ "av_cold void FUNC_0(VP8DSPContext *dsp)\n{", "dsp->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_armv6;", "dsp->vp8_luma_dc_wht_dc = ff_vp8_luma_dc_wht_dc_armv6;", "dsp->vp8_idct_add = ff_vp8_idct_add_armv6;", "dsp->vp8_idct_dc_add = ff_vp8_idct_dc_add_armv6;", "dsp->vp8_idct_dc_add4y = ff_vp8_idct_d...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51...
9,788
static void gdb_set_cpu_pc(GDBState *s, target_ulong pc) { #if defined(TARGET_I386) cpu_synchronize_state(s->c_cpu); s->c_cpu->eip = pc; #elif defined (TARGET_PPC) s->c_cpu->nip = pc; #elif defined (TARGET_SPARC) s->c_cpu->npc = pc + 4; #elif defined (TARGET_ARM) s->c_cpu->regs[15] = pc; ...
true
qemu
ccfcaba6fd9f69a9322af1911302e71127bee1e0
static void gdb_set_cpu_pc(GDBState *s, target_ulong pc) { #if defined(TARGET_I386) cpu_synchronize_state(s->c_cpu); s->c_cpu->eip = pc; #elif defined (TARGET_PPC) s->c_cpu->nip = pc; #elif defined (TARGET_SPARC) s->c_cpu->npc = pc + 4; #elif defined (TARGET_ARM) s->c_cpu->regs[15] = pc; ...
{ "code": [], "line_no": [] }
static void FUNC_0(GDBState *VAR_0, target_ulong VAR_1) { #if defined(TARGET_I386) cpu_synchronize_state(VAR_0->c_cpu); VAR_0->c_cpu->eip = VAR_1; #elif defined (TARGET_PPC) VAR_0->c_cpu->nip = VAR_1; #elif defined (TARGET_SPARC) VAR_0->c_cpu->npc = VAR_1 + 4; #elif defined (TARGET_ARM) V...
[ "static void FUNC_0(GDBState *VAR_0, target_ulong VAR_1)\n{", "#if defined(TARGET_I386)\ncpu_synchronize_state(VAR_0->c_cpu);", "VAR_0->c_cpu->eip = VAR_1;", "#elif defined (TARGET_PPC)\nVAR_0->c_cpu->nip = VAR_1;", "#elif defined (TARGET_SPARC)\nVAR_0->c_cpu->npc = VAR_1 + 4;", "#elif defined (TARGET_ARM...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11, 13 ], [ 15, 18 ], [ 20, 22 ], [ 24, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 48, 51, 53 ], [ 55 ...
9,790
void hid_reset(HIDState *hs) { switch (hs->kind) { case HID_KEYBOARD: memset(hs->kbd.keycodes, 0, sizeof(hs->kbd.keycodes)); memset(hs->kbd.key, 0, sizeof(hs->kbd.key)); hs->kbd.keys = 0; break; case HID_MOUSE: case HID_TABLET: memset(hs->ptr.queue, 0, ...
true
qemu
51dbea77a29ea46173373a6dad4ebd95d4661f42
void hid_reset(HIDState *hs) { switch (hs->kind) { case HID_KEYBOARD: memset(hs->kbd.keycodes, 0, sizeof(hs->kbd.keycodes)); memset(hs->kbd.key, 0, sizeof(hs->kbd.key)); hs->kbd.keys = 0; break; case HID_MOUSE: case HID_TABLET: memset(hs->ptr.queue, 0, ...
{ "code": [], "line_no": [] }
void FUNC_0(HIDState *VAR_0) { switch (VAR_0->kind) { case HID_KEYBOARD: memset(VAR_0->kbd.keycodes, 0, sizeof(VAR_0->kbd.keycodes)); memset(VAR_0->kbd.key, 0, sizeof(VAR_0->kbd.key)); VAR_0->kbd.keys = 0; break; case HID_MOUSE: case HID_TABLET: memset(...
[ "void FUNC_0(HIDState *VAR_0)\n{", "switch (VAR_0->kind) {", "case HID_KEYBOARD:\nmemset(VAR_0->kbd.keycodes, 0, sizeof(VAR_0->kbd.keycodes));", "memset(VAR_0->kbd.key, 0, sizeof(VAR_0->kbd.key));", "VAR_0->kbd.keys = 0;", "break;", "case HID_MOUSE:\ncase HID_TABLET:\nmemset(VAR_0->ptr.queue, 0, sizeof(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 16 ], [ 18, 20, 22 ], [ 24 ], [ 26 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ] ]
9,791
av_cold int avcodec_close(AVCodecContext *avctx) { /* If there is a user-supplied mutex locking routine, call it. */ if (ff_lockmgr_cb) { if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) return -1; } entangled_thread_counter++; if (entangled_thread_counter != 1) { ...
true
FFmpeg
6fb2fd895e858ab93f46e656a322778ee181c307
av_cold int avcodec_close(AVCodecContext *avctx) { if (ff_lockmgr_cb) { if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) return -1; } entangled_thread_counter++; if (entangled_thread_counter != 1) { av_log(avctx, AV_LOG_ERROR, "insufficient thread locking a...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(AVCodecContext *avctx) { if (ff_lockmgr_cb) { if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) return -1; } entangled_thread_counter++; if (entangled_thread_counter != 1) { av_log(avctx, AV_LOG_ERROR, "insufficient thread locking around a...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "if (ff_lockmgr_cb) {", "if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN))\nreturn -1;", "}", "entangled_thread_counter++;", "if (entangled_thread_counter != 1) {", "av_log(avctx, AV_LOG_ERROR, \"insufficient thread locking around avcodec_open/close()\\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], ...
9,792
static SCSIDiskReq *scsi_find_request(SCSIDiskState *s, uint32_t tag) { return DO_UPCAST(SCSIDiskReq, req, scsi_req_find(&s->qdev, tag)); }
true
qemu
5c6c0e513600ba57c3e73b7151d3c0664438f7b5
static SCSIDiskReq *scsi_find_request(SCSIDiskState *s, uint32_t tag) { return DO_UPCAST(SCSIDiskReq, req, scsi_req_find(&s->qdev, tag)); }
{ "code": [ "static SCSIDiskReq *scsi_find_request(SCSIDiskState *s, uint32_t tag)", " return DO_UPCAST(SCSIDiskReq, req, scsi_req_find(&s->qdev, tag));" ], "line_no": [ 1, 5 ] }
static SCSIDiskReq *FUNC_0(SCSIDiskState *s, uint32_t tag) { return DO_UPCAST(SCSIDiskReq, req, scsi_req_find(&s->qdev, tag)); }
[ "static SCSIDiskReq *FUNC_0(SCSIDiskState *s, uint32_t tag)\n{", "return DO_UPCAST(SCSIDiskReq, req, scsi_req_find(&s->qdev, tag));", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
9,794
static ssize_t sdp_svc_search(struct bt_l2cap_sdp_state_s *sdp, uint8_t *rsp, const uint8_t *req, ssize_t len) { ssize_t seqlen; int i, count, start, end, max; int32_t handle; /* Perform the search */ for (i = 0; i < sdp->services; i ++) sdp->service_list[i].match =...
true
qemu
374ec0669a1aa3affac7850a16c6cad18221c439
static ssize_t sdp_svc_search(struct bt_l2cap_sdp_state_s *sdp, uint8_t *rsp, const uint8_t *req, ssize_t len) { ssize_t seqlen; int i, count, start, end, max; int32_t handle; for (i = 0; i < sdp->services; i ++) sdp->service_list[i].match = 0; if (len < 1) ...
{ "code": [ " } else if (sdp_svc_match(sdp, &req, &seqlen))", " return -SDP_INVALID_SYNTAX;", " return -SDP_INVALID_SYNTAX;", " } else if (sdp_svc_match(sdp, &req, &seqlen))", " return -SDP_INVALID_SYNTAX;", " return -SDP_INVALID_SYNTAX;" ], "line_no": [ ...
static ssize_t FUNC_0(struct bt_l2cap_sdp_state_s *sdp, uint8_t *rsp, const uint8_t *req, ssize_t len) { ssize_t seqlen; int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4; int32_t handle; for (VAR_0 = 0; VAR_0 < sdp->services; VAR_0 ++) sdp->service_list[VAR_0].match = 0; ...
[ "static ssize_t FUNC_0(struct bt_l2cap_sdp_state_s *sdp,\nuint8_t *rsp, const uint8_t *req, ssize_t len)\n{", "ssize_t seqlen;", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4;", "int32_t handle;", "for (VAR_0 = 0; VAR_0 < sdp->services; VAR_0 ++)", "sdp->service_list[VAR_0].match = 0;", "if (len < 1)\nreturn -...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [ 55 ], [ 57 ...
9,796
void ff_id3v1_read(AVFormatContext *s) { int ret; uint8_t buf[ID3v1_TAG_SIZE]; int64_t filesize, position = avio_tell(s->pb); if (s->pb->seekable) { /* XXX: change that */ filesize = avio_size(s->pb); if (filesize > 128) { avio_seek(s->pb, filesize - 128, S...
false
FFmpeg
83548fe894cdb455cc127f754d09905b6d23c173
void ff_id3v1_read(AVFormatContext *s) { int ret; uint8_t buf[ID3v1_TAG_SIZE]; int64_t filesize, position = avio_tell(s->pb); if (s->pb->seekable) { filesize = avio_size(s->pb); if (filesize > 128) { avio_seek(s->pb, filesize - 128, SEEK_SET); ...
{ "code": [], "line_no": [] }
void FUNC_0(AVFormatContext *VAR_0) { int VAR_1; uint8_t buf[ID3v1_TAG_SIZE]; int64_t filesize, position = avio_tell(VAR_0->pb); if (VAR_0->pb->seekable) { filesize = avio_size(VAR_0->pb); if (filesize > 128) { avio_seek(VAR_0->pb, filesize - 128, SEEK_SET...
[ "void FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1;", "uint8_t buf[ID3v1_TAG_SIZE];", "int64_t filesize, position = avio_tell(VAR_0->pb);", "if (VAR_0->pb->seekable) {", "filesize = avio_size(VAR_0->pb);", "if (filesize > 128) {", "avio_seek(VAR_0->pb, filesize - 128, SEEK_SET);", "VAR_1 = avio_re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
9,797
static av_cold int dvvideo_encode_init(AVCodecContext *avctx) { DVVideoContext *s = avctx->priv_data; FDCTDSPContext fdsp; MECmpContext mecc; PixblockDSPContext pdsp; int ret; s->sys = av_dv_codec_profile(avctx->width, avctx->height, avctx->pix_fmt); if (!s->sys) { av_log(...
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int dvvideo_encode_init(AVCodecContext *avctx) { DVVideoContext *s = avctx->priv_data; FDCTDSPContext fdsp; MECmpContext mecc; PixblockDSPContext pdsp; int ret; s->sys = av_dv_codec_profile(avctx->width, avctx->height, avctx->pix_fmt); if (!s->sys) { av_log(...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { DVVideoContext *s = avctx->priv_data; FDCTDSPContext fdsp; MECmpContext mecc; PixblockDSPContext pdsp; int VAR_0; s->sys = av_dv_codec_profile(avctx->width, avctx->height, avctx->pix_fmt); if (!s->sys) { av_log(avctx, AV_L...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "DVVideoContext *s = avctx->priv_data;", "FDCTDSPContext fdsp;", "MECmpContext mecc;", "PixblockDSPContext pdsp;", "int VAR_0;", "s->sys = av_dv_codec_profile(avctx->width, avctx->height, avctx->pix_fmt);", "if (!s->sys) {", "av_log(avctx, AV_LO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47,...
9,798
yuv2rgb48_2_c_template(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, const uint16_t *abuf1, uint...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
yuv2rgb48_2_c_template(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, const uint16_t *abuf1, uint...
{ "code": [], "line_no": [] }
FUNC_0(SwsContext *VAR_0, const uint16_t *VAR_1, const uint16_t *VAR_2, const uint16_t *VAR_3, const uint16_t *VAR_4, const uint16_t *VAR_5, const uint16_t *VAR_6, const uint16_t *VAR_7, const uint16_t *VAR_8, uint8_t *VAR_9...
[ "FUNC_0(SwsContext *VAR_0, const uint16_t *VAR_1,\nconst uint16_t *VAR_2, const uint16_t *VAR_3,\nconst uint16_t *VAR_4, const uint16_t *VAR_5,\nconst uint16_t *VAR_6, const uint16_t *VAR_7,\nconst uint16_t *VAR_8, uint8_t *VAR_9, int VAR_10,\nint VAR_11, int VAR_12, int VAR_13,\nenum PixelFormat VAR_14)\n{", "in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
9,799
void *kvmppc_create_spapr_tce(uint32_t liobn, uint32_t window_size, int *pfd) { struct kvm_create_spapr_tce args = { .liobn = liobn, .window_size = window_size, }; long len; int fd; void *table; /* Must set fd to -1 so we don't try to munmap when called for * des...
false
qemu
a83000f5e3fac30a7f213af1ba6a8f827622854d
void *kvmppc_create_spapr_tce(uint32_t liobn, uint32_t window_size, int *pfd) { struct kvm_create_spapr_tce args = { .liobn = liobn, .window_size = window_size, }; long len; int fd; void *table; *pfd = -1; if (!cap_spapr_tce) { return NULL; ...
{ "code": [], "line_no": [] }
void *FUNC_0(uint32_t VAR_0, uint32_t VAR_1, int *VAR_2) { struct kvm_create_spapr_tce VAR_3 = { .VAR_0 = VAR_0, .VAR_1 = VAR_1, }; long VAR_4; int VAR_5; void *VAR_6; *VAR_2 = -1; if (!cap_spapr_tce) { return NULL; } VAR_5 = kvm_vm_...
[ "void *FUNC_0(uint32_t VAR_0, uint32_t VAR_1, int *VAR_2)\n{", "struct kvm_create_spapr_tce VAR_3 = {", ".VAR_0 = VAR_0,\n.VAR_1 = VAR_1,\n};", "long VAR_4;", "int VAR_5;", "void *VAR_6;", "*VAR_2 = -1;", "if (!cap_spapr_tce) {", "return NULL;", "}", "VAR_5 = kvm_vm_ioctl(kvm_state, KVM_CREATE_S...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 57 ], [ 59 ], [...
9,800
static void filter_mb_mbaff_edgecv( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int bsi, int qp ) { int i; int index_a = qp + h->slice_alpha_c0_offset; int alpha = (alpha_table+52)[index_a]; int beta = (beta_table+52)[qp + h->slice_beta_offset]; for( i = 0; i < 4; i++, pix += stri...
false
FFmpeg
0c32e19d584ba6ddbc27f0a796260404daaf4b6a
static void filter_mb_mbaff_edgecv( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int bsi, int qp ) { int i; int index_a = qp + h->slice_alpha_c0_offset; int alpha = (alpha_table+52)[index_a]; int beta = (beta_table+52)[qp + h->slice_beta_offset]; for( i = 0; i < 4; i++, pix += stri...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4, int VAR_5 ) { int VAR_6; int VAR_7 = VAR_5 + VAR_0->slice_alpha_c0_offset; int VAR_8 = (alpha_table+52)[VAR_7]; int VAR_9 = (beta_table+52)[VAR_5 + VAR_0->slice_beta_offset]; for( VAR_6 = 0; VAR_6 <...
[ "static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4, int VAR_5 ) {", "int VAR_6;", "int VAR_7 = VAR_5 + VAR_0->slice_alpha_c0_offset;", "int VAR_8 = (alpha_table+52)[VAR_7];", "int VAR_9 = (beta_table+52)[VAR_5 + VAR_0->slice_beta_offset];", "for( VAR_6 = 0; VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41, 43 ], [ 45 ], [ 49 ], [...
9,801
static void bdrv_qed_invalidate_cache(BlockDriverState *bs, Error **errp) { BDRVQEDState *s = bs->opaque; Error *local_err = NULL; int ret; bdrv_qed_close(bs); memset(s, 0, sizeof(BDRVQEDState)); ret = bdrv_qed_do_open(bs, NULL, bs->open_flags, &local_err); if (local_err) { ...
false
qemu
61c7887e0f3dcfa9c4ccdfe43374243a4a5c0e8d
static void bdrv_qed_invalidate_cache(BlockDriverState *bs, Error **errp) { BDRVQEDState *s = bs->opaque; Error *local_err = NULL; int ret; bdrv_qed_close(bs); memset(s, 0, sizeof(BDRVQEDState)); ret = bdrv_qed_do_open(bs, NULL, bs->open_flags, &local_err); if (local_err) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1) { BDRVQEDState *s = VAR_0->opaque; Error *local_err = NULL; int VAR_2; bdrv_qed_close(VAR_0); memset(s, 0, sizeof(BDRVQEDState)); VAR_2 = bdrv_qed_do_open(VAR_0, NULL, VAR_0->open_flags, &local_err); if (local_err) { ...
[ "static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)\n{", "BDRVQEDState *s = VAR_0->opaque;", "Error *local_err = NULL;", "int VAR_2;", "bdrv_qed_close(VAR_0);", "memset(s, 0, sizeof(BDRVQEDState));", "VAR_2 = bdrv_qed_do_open(VAR_0, NULL, VAR_0->open_flags, &local_err);", "if (local_err) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
9,802
void spapr_register_hypercall(target_ulong opcode, spapr_hcall_fn fn) { spapr_hcall_fn *slot; if (opcode <= MAX_HCALL_OPCODE) { assert((opcode & 0x3) == 0); slot = &papr_hypercall_table[opcode / 4]; } else { assert((opcode >= KVMPPC_HCALL_BASE) && (opcode <= KVMPPC_HCALL_M...
false
qemu
c89d52997cf4849a9ee16b5d2cf462d0cd137634
void spapr_register_hypercall(target_ulong opcode, spapr_hcall_fn fn) { spapr_hcall_fn *slot; if (opcode <= MAX_HCALL_OPCODE) { assert((opcode & 0x3) == 0); slot = &papr_hypercall_table[opcode / 4]; } else { assert((opcode >= KVMPPC_HCALL_BASE) && (opcode <= KVMPPC_HCALL_M...
{ "code": [], "line_no": [] }
void FUNC_0(target_ulong VAR_0, spapr_hcall_fn VAR_1) { spapr_hcall_fn *slot; if (VAR_0 <= MAX_HCALL_OPCODE) { assert((VAR_0 & 0x3) == 0); slot = &papr_hypercall_table[VAR_0 / 4]; } else { assert((VAR_0 >= KVMPPC_HCALL_BASE) && (VAR_0 <= KVMPPC_HCALL_MAX)); sl...
[ "void FUNC_0(target_ulong VAR_0, spapr_hcall_fn VAR_1)\n{", "spapr_hcall_fn *slot;", "if (VAR_0 <= MAX_HCALL_OPCODE) {", "assert((VAR_0 & 0x3) == 0);", "slot = &papr_hypercall_table[VAR_0 / 4];", "} else {", "assert((VAR_0 >= KVMPPC_HCALL_BASE) && (VAR_0 <= KVMPPC_HCALL_MAX));", "slot = &kvmppc_hyperc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ] ]
9,803
static int usb_host_open(USBHostDevice *dev, int bus_num, int addr, const char *port, const char *prod_name, int speed) { int fd = -1, ret; trace_usb_host_open_started(bus_num, addr); if (dev->fd != -1) { goto fail; } fd = usb_...
false
qemu
537e8f1aa838677c8efd5e0966e89c4b5423dd18
static int usb_host_open(USBHostDevice *dev, int bus_num, int addr, const char *port, const char *prod_name, int speed) { int fd = -1, ret; trace_usb_host_open_started(bus_num, addr); if (dev->fd != -1) { goto fail; } fd = usb_...
{ "code": [], "line_no": [] }
static int FUNC_0(USBHostDevice *VAR_0, int VAR_1, int VAR_2, const char *VAR_3, const char *VAR_4, int VAR_5) { int VAR_6 = -1, VAR_7; trace_usb_host_open_started(VAR_1, VAR_2); if (VAR_0->VAR_6 != -1) { goto fail; } VAR_6 = u...
[ "static int FUNC_0(USBHostDevice *VAR_0, int VAR_1,\nint VAR_2, const char *VAR_3,\nconst char *VAR_4, int VAR_5)\n{", "int VAR_6 = -1, VAR_7;", "trace_usb_host_open_started(VAR_1, VAR_2);", "if (VAR_0->VAR_6 != -1) {", "goto fail;", "}", "VAR_6 = usb_host_open_device(VAR_1, VAR_2);", "if (VAR_6 < 0) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
9,804
static void ide_init2(IDEState *ide_state, BlockDriverState *hd0, BlockDriverState *hd1, qemu_irq irq) { IDEState *s; static int drive_serial = 1; int i, cylinders, heads, secs; uint64_t nb_sectors; for(i = 0; i < 2; i++) { s = ide_state...
false
qemu
e268ca52328eb0460ae0d10b7f4313a63d5b000c
static void ide_init2(IDEState *ide_state, BlockDriverState *hd0, BlockDriverState *hd1, qemu_irq irq) { IDEState *s; static int drive_serial = 1; int i, cylinders, heads, secs; uint64_t nb_sectors; for(i = 0; i < 2; i++) { s = ide_state...
{ "code": [], "line_no": [] }
static void FUNC_0(IDEState *VAR_0, BlockDriverState *VAR_1, BlockDriverState *VAR_2, qemu_irq VAR_3) { IDEState *s; static int VAR_4 = 1; int VAR_5, VAR_6, VAR_7, VAR_8; uint64_t nb_sectors; for(VAR_5 = 0; VAR_5 < 2; VAR_5++) { s = VAR_...
[ "static void FUNC_0(IDEState *VAR_0,\nBlockDriverState *VAR_1, BlockDriverState *VAR_2,\nqemu_irq VAR_3)\n{", "IDEState *s;", "static int VAR_4 = 1;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "uint64_t nb_sectors;", "for(VAR_5 = 0; VAR_5 < 2; VAR_5++) {", "s = VAR_0 + VAR_5;", "s->io_buffer = qemu_memalign(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
9,806
static ssize_t nbd_send_reply(QIOChannel *ioc, NBDReply *reply) { uint8_t buf[NBD_REPLY_SIZE]; reply->error = system_errno_to_nbd_errno(reply->error); TRACE("Sending response to client: { .error = %" PRId32 ", handle = %" PRIu64 " }", reply->error, reply->handle); /* Rep...
false
qemu
d1fdf257d52822695f5ace6c586e059aa17d4b79
static ssize_t nbd_send_reply(QIOChannel *ioc, NBDReply *reply) { uint8_t buf[NBD_REPLY_SIZE]; reply->error = system_errno_to_nbd_errno(reply->error); TRACE("Sending response to client: { .error = %" PRId32 ", handle = %" PRIu64 " }", reply->error, reply->handle); ...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(QIOChannel *ioc, NBDReply *reply) { uint8_t buf[NBD_REPLY_SIZE]; reply->error = system_errno_to_nbd_errno(reply->error); TRACE("Sending response to client: { .error = %" PRId32 ", handle = %" PRIu64 " }", reply->error, reply->handle); ...
[ "static ssize_t FUNC_0(QIOChannel *ioc, NBDReply *reply)\n{", "uint8_t buf[NBD_REPLY_SIZE];", "reply->error = system_errno_to_nbd_errno(reply->error);", "TRACE(\"Sending response to client: { .error = %\" PRId32", "\", handle = %\" PRIu64 \" }\",", "reply->error, reply->handle);", "stl_be_p(buf, NBD_REP...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
9,807
static void q35_host_get_pci_hole64_end(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { PCIHostState *h = PCI_HOST_BRIDGE(obj); Range w64; pci_bus_get_w64_range(h->bus, &w64); visit_type_u...
false
qemu
a0efbf16604770b9d805bcf210ec29942321134f
static void q35_host_get_pci_hole64_end(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { PCIHostState *h = PCI_HOST_BRIDGE(obj); Range w64; pci_bus_get_w64_range(h->bus, &w64); visit_type_u...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2, void *VAR_3, Error **VAR_4) { PCIHostState *h = PCI_HOST_BRIDGE(VAR_0); Range w64; pci_bus_get_w64_range(h->bus, &w64); visit_type_uint64(VAR_1,...
[ "static void FUNC_0(Object *VAR_0, Visitor *VAR_1,\nconst char *VAR_2, void *VAR_3,\nError **VAR_4)\n{", "PCIHostState *h = PCI_HOST_BRIDGE(VAR_0);", "Range w64;", "pci_bus_get_w64_range(h->bus, &w64);", "visit_type_uint64(VAR_1, VAR_2, &w64.end, VAR_4);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ] ]
9,808
static BlockAIOCB *bdrv_co_aio_rw_vector(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BdrvRequestFlags flags, ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static BlockAIOCB *bdrv_co_aio_rw_vector(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BdrvRequestFlags flags, ...
{ "code": [], "line_no": [] }
static BlockAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BdrvRequestFlags flags, ...
[ "static BlockAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num,\nQEMUIOVector *qiov,\nint nb_sectors,\nBdrvRequestFlags flags,\nBlockCompletionFunc *cb,\nvoid *opaque,\nbool is_write)\n{", "Coroutine *co;", "BlockAIOCBCoroutine *acb;", "acb = qemu_aio_get(&bdrv_em_co_aiocb_info, bs, cb, opaque);", "ac...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ] ]
9,809
static int64_t coroutine_fn raw_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { *pnum = nb_sectors; return BDRV_BLOCK_RAW | BDRV_BLOCK_OFFSET_VALID | BDRV_BLOCK_DATA | ...
false
qemu
67a0fd2a9bca204d2b39f910a97c7137636a0715
static int64_t coroutine_fn raw_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { *pnum = nb_sectors; return BDRV_BLOCK_RAW | BDRV_BLOCK_OFFSET_VALID | BDRV_BLOCK_DATA | ...
{ "code": [], "line_no": [] }
static int64_t VAR_0 raw_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { *pnum = nb_sectors; return BDRV_BLOCK_RAW | BDRV_BLOCK_OFFSET_VALID | BDRV_BLOCK_DATA | (se...
[ "static int64_t VAR_0 raw_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num,\nint nb_sectors, int *pnum)\n{", "*pnum = nb_sectors;", "return BDRV_BLOCK_RAW | BDRV_BLOCK_OFFSET_VALID | BDRV_BLOCK_DATA |\n(sector_num << BDRV_SECTOR_BITS);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13 ], [ 15 ] ]
9,810
static inline int check_fit_tl(tcg_target_long val, unsigned int bits) { return (val << ((sizeof(tcg_target_long) * 8 - bits)) >> (sizeof(tcg_target_long) * 8 - bits)) == val; }
false
qemu
425532d71d5d295cc9c649500e4969ac621ce51d
static inline int check_fit_tl(tcg_target_long val, unsigned int bits) { return (val << ((sizeof(tcg_target_long) * 8 - bits)) >> (sizeof(tcg_target_long) * 8 - bits)) == val; }
{ "code": [], "line_no": [] }
static inline int FUNC_0(tcg_target_long VAR_0, unsigned int VAR_1) { return (VAR_0 << ((sizeof(tcg_target_long) * 8 - VAR_1)) >> (sizeof(tcg_target_long) * 8 - VAR_1)) == VAR_0; }
[ "static inline int FUNC_0(tcg_target_long VAR_0, unsigned int VAR_1)\n{", "return (VAR_0 << ((sizeof(tcg_target_long) * 8 - VAR_1))\n>> (sizeof(tcg_target_long) * 8 - VAR_1)) == VAR_0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
9,811
int av_cold ff_celt_pvq_init(CeltPVQ **pvq, int encode) { CeltPVQ *s = av_malloc(sizeof(CeltPVQ)); if (!s) return AVERROR(ENOMEM); s->pvq_search = ppp_pvq_search_c; s->quant_band = encode ? pvq_encode_band : pvq_decode_band; s->band_cost = pvq_band_cost; if (ARCH_X86) ...
false
FFmpeg
7b46add7257628bffac96d3002308d1f9e1ed172
int av_cold ff_celt_pvq_init(CeltPVQ **pvq, int encode) { CeltPVQ *s = av_malloc(sizeof(CeltPVQ)); if (!s) return AVERROR(ENOMEM); s->pvq_search = ppp_pvq_search_c; s->quant_band = encode ? pvq_encode_band : pvq_decode_band; s->band_cost = pvq_band_cost; if (ARCH_X86) ...
{ "code": [], "line_no": [] }
int VAR_0 ff_celt_pvq_init(CeltPVQ **pvq, int encode) { CeltPVQ *s = av_malloc(sizeof(CeltPVQ)); if (!s) return AVERROR(ENOMEM); s->pvq_search = ppp_pvq_search_c; s->quant_band = encode ? pvq_encode_band : pvq_decode_band; s->band_cost = pvq_band_cost; if (ARCH_X86) ...
[ "int VAR_0 ff_celt_pvq_init(CeltPVQ **pvq, int encode)\n{", "CeltPVQ *s = av_malloc(sizeof(CeltPVQ));", "if (!s)\nreturn AVERROR(ENOMEM);", "s->pvq_search = ppp_pvq_search_c;", "s->quant_band = encode ? pvq_encode_band : pvq_decode_band;", "s->band_cost = pvq_band_cost;", "if (ARCH_X86)\nff_opus_dsp_in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 31 ], [ 33 ] ]
9,812
static off_t v9fs_synth_telldir(FsContext *ctx, V9fsFidOpenState *fs) { V9fsSynthOpenState *synth_open = fs->private; return synth_open->offset; }
false
qemu
364031f17932814484657e5551ba12957d993d7e
static off_t v9fs_synth_telldir(FsContext *ctx, V9fsFidOpenState *fs) { V9fsSynthOpenState *synth_open = fs->private; return synth_open->offset; }
{ "code": [], "line_no": [] }
static off_t FUNC_0(FsContext *ctx, V9fsFidOpenState *fs) { V9fsSynthOpenState *synth_open = fs->private; return synth_open->offset; }
[ "static off_t FUNC_0(FsContext *ctx, V9fsFidOpenState *fs)\n{", "V9fsSynthOpenState *synth_open = fs->private;", "return synth_open->offset;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
9,813
bool gs_allowed(void) { if (kvm_enabled()) { MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine()); if (object_class_dynamic_cast(OBJECT_CLASS(mc), TYPE_S390_CCW_MACHINE)) { S390CcwMachineClass *s390mc = S390_MACHINE_CLASS(mc); ...
false
qemu
c50f65118b429e6847d5c11b1a20a560d61c34b7
bool gs_allowed(void) { if (kvm_enabled()) { MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine()); if (object_class_dynamic_cast(OBJECT_CLASS(mc), TYPE_S390_CCW_MACHINE)) { S390CcwMachineClass *s390mc = S390_MACHINE_CLASS(mc); ...
{ "code": [], "line_no": [] }
bool FUNC_0(void) { if (kvm_enabled()) { MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine()); if (object_class_dynamic_cast(OBJECT_CLASS(mc), TYPE_S390_CCW_MACHINE)) { S390CcwMachineClass *s390mc = S390_MACHINE_CLASS(mc); re...
[ "bool FUNC_0(void)\n{", "if (kvm_enabled()) {", "MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());", "if (object_class_dynamic_cast(OBJECT_CLASS(mc),\nTYPE_S390_CCW_MACHINE)) {", "S390CcwMachineClass *s390mc = S390_MACHINE_CLASS(mc);", "return s390mc->FUNC_0;", "}", "return true;", "}", "r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
9,814
tight_filter_gradient24(VncState *vs, uint8_t *buf, int w, int h) { uint32_t *buf32; uint32_t pix32; int shift[3]; int *prev; int here[3], upper[3], left[3], upperleft[3]; int prediction; int x, y, c; buf32 = (uint32_t *)buf; memset(vs->tight_gradient.buffer, 0, w * 3 * s...
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
tight_filter_gradient24(VncState *vs, uint8_t *buf, int w, int h) { uint32_t *buf32; uint32_t pix32; int shift[3]; int *prev; int here[3], upper[3], left[3], upperleft[3]; int prediction; int x, y, c; buf32 = (uint32_t *)buf; memset(vs->tight_gradient.buffer, 0, w * 3 * s...
{ "code": [], "line_no": [] }
FUNC_0(VncState *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3) { uint32_t *buf32; uint32_t pix32; int VAR_4[3]; int *VAR_5; int VAR_6[3], VAR_7[3], VAR_8[3], VAR_9[3]; int VAR_10; int VAR_11, VAR_12, VAR_13; buf32 = (uint32_t *)VAR_1; memset(VAR_0->tight_gradient.buffer, 0...
[ "FUNC_0(VncState *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3)\n{", "uint32_t *buf32;", "uint32_t pix32;", "int VAR_4[3];", "int *VAR_5;", "int VAR_6[3], VAR_7[3], VAR_8[3], VAR_9[3];", "int VAR_10;", "int VAR_11, VAR_12, VAR_13;", "buf32 = (uint32_t *)VAR_1;", "memset(VAR_0->tight_gradient.buffer...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
9,815
static void qmp_output_type_uint64(Visitor *v, const char *name, uint64_t *obj, Error **errp) { /* FIXME values larger than INT64_MAX become negative */ QmpOutputVisitor *qov = to_qov(v); qmp_output_add(qov, name, qint_from_int(*obj)); }
false
qemu
7d5e199ade76c53ec316ab6779800581bb47c50a
static void qmp_output_type_uint64(Visitor *v, const char *name, uint64_t *obj, Error **errp) { QmpOutputVisitor *qov = to_qov(v); qmp_output_add(qov, name, qint_from_int(*obj)); }
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, uint64_t *VAR_2, Error **VAR_3) { QmpOutputVisitor *qov = to_qov(VAR_0); qmp_output_add(qov, VAR_1, qint_from_int(*VAR_2)); }
[ "static void FUNC_0(Visitor *VAR_0, const char *VAR_1, uint64_t *VAR_2,\nError **VAR_3)\n{", "QmpOutputVisitor *qov = to_qov(VAR_0);", "qmp_output_add(qov, VAR_1, qint_from_int(*VAR_2));", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11 ], [ 13 ] ]
9,816
static void bh_run_aio_completions(void *opaque) { QEMUBH **bh = opaque; qemu_bh_delete(*bh); qemu_free(bh); qemu_aio_process_queue(); }
false
qemu
384acbf46b70edf0d2c1648aa1a92a90bcf7057d
static void bh_run_aio_completions(void *opaque) { QEMUBH **bh = opaque; qemu_bh_delete(*bh); qemu_free(bh); qemu_aio_process_queue(); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { QEMUBH **bh = VAR_0; qemu_bh_delete(*bh); qemu_free(bh); qemu_aio_process_queue(); }
[ "static void FUNC_0(void *VAR_0)\n{", "QEMUBH **bh = VAR_0;", "qemu_bh_delete(*bh);", "qemu_free(bh);", "qemu_aio_process_queue();", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
9,818
long do_rt_sigreturn(CPUARMState *env) { struct target_rt_sigframe *frame = NULL; abi_ulong frame_addr = env->xregs[31]; trace_user_do_rt_sigreturn(env, frame_addr); if (frame_addr & 15) { goto badframe; } if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { ...
false
qemu
f0267ef7115656119bf00ed77857789adc036bda
long do_rt_sigreturn(CPUARMState *env) { struct target_rt_sigframe *frame = NULL; abi_ulong frame_addr = env->xregs[31]; trace_user_do_rt_sigreturn(env, frame_addr); if (frame_addr & 15) { goto badframe; } if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { ...
{ "code": [], "line_no": [] }
long FUNC_0(CPUARMState *VAR_0) { struct target_rt_sigframe *VAR_1 = NULL; abi_ulong frame_addr = VAR_0->xregs[31]; trace_user_do_rt_sigreturn(VAR_0, frame_addr); if (frame_addr & 15) { goto badframe; } if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1)) { got...
[ "long FUNC_0(CPUARMState *VAR_0)\n{", "struct target_rt_sigframe *VAR_1 = NULL;", "abi_ulong frame_addr = VAR_0->xregs[31];", "trace_user_do_rt_sigreturn(VAR_0, frame_addr);", "if (frame_addr & 15) {", "goto badframe;", "}", "if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1)) {", "goto badfr...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55...
9,819
static void update(NUTContext *nut, int stream_index, int64_t frame_start, int frame_type, int frame_code, int key_frame, int size, int64_t pts){ StreamContext *stream= &nut->stream[stream_index]; stream->last_key_frame= key_frame; nut->last_frame_start[ frame_type ]= frame_start; update_lru(s...
false
FFmpeg
465e1dadbef7596a3eb87089a66bb4ecdc26d3c4
static void update(NUTContext *nut, int stream_index, int64_t frame_start, int frame_type, int frame_code, int key_frame, int size, int64_t pts){ StreamContext *stream= &nut->stream[stream_index]; stream->last_key_frame= key_frame; nut->last_frame_start[ frame_type ]= frame_start; update_lru(s...
{ "code": [], "line_no": [] }
static void FUNC_0(NUTContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int64_t VAR_7){ StreamContext *stream= &VAR_0->stream[VAR_1]; stream->last_key_frame= VAR_5; VAR_0->last_frame_start[ VAR_3 ]= VAR_2; update_lru(stream->lru_pts_delta, VAR_7 - stream->la...
[ "static void FUNC_0(NUTContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int64_t VAR_7){", "StreamContext *stream= &VAR_0->stream[VAR_1];", "stream->last_key_frame= VAR_5;", "VAR_0->last_frame_start[ VAR_3 ]= VAR_2;", "update_lru(stream->lru_pts_delta, VAR_7 - stream->las...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 23 ] ]
9,820
void ff_rv34dsp_init_neon(RV34DSPContext *c, DSPContext* dsp) { c->rv34_inv_transform = ff_rv34_inv_transform_noround_neon; c->rv34_inv_transform_dc = ff_rv34_inv_transform_noround_dc_neon; c->rv34_idct_add = ff_rv34_idct_add_neon; c->rv34_idct_dc_add = ff_rv34_idct_dc_add_neon; }
false
FFmpeg
507dce2536fea4b78a9f4973f77e1fa20cfe1b81
void ff_rv34dsp_init_neon(RV34DSPContext *c, DSPContext* dsp) { c->rv34_inv_transform = ff_rv34_inv_transform_noround_neon; c->rv34_inv_transform_dc = ff_rv34_inv_transform_noround_dc_neon; c->rv34_idct_add = ff_rv34_idct_add_neon; c->rv34_idct_dc_add = ff_rv34_idct_dc_add_neon; }
{ "code": [], "line_no": [] }
void FUNC_0(RV34DSPContext *VAR_0, DSPContext* VAR_1) { VAR_0->rv34_inv_transform = ff_rv34_inv_transform_noround_neon; VAR_0->rv34_inv_transform_dc = ff_rv34_inv_transform_noround_dc_neon; VAR_0->rv34_idct_add = ff_rv34_idct_add_neon; VAR_0->rv34_idct_dc_add = ff_rv34_idct_dc_add_neon; }
[ "void FUNC_0(RV34DSPContext *VAR_0, DSPContext* VAR_1)\n{", "VAR_0->rv34_inv_transform = ff_rv34_inv_transform_noround_neon;", "VAR_0->rv34_inv_transform_dc = ff_rv34_inv_transform_noround_dc_neon;", "VAR_0->rv34_idct_add = ff_rv34_idct_add_neon;", "VAR_0->rv34_idct_dc_add = ff_rv34_idct_dc_add_neon;"...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
9,821
static int request_samples(AVFilterContext *ctx, int min_samples) { MixContext *s = ctx->priv; int i, ret; av_assert0(s->nb_inputs > 1); for (i = 1; i < s->nb_inputs; i++) { ret = 0; if (!(s->input_state[i] & INPUT_ON)) continue; if (av_audio_fifo_size(s-...
false
FFmpeg
15e9c4afdc8efbf8da86bb3f7eaf374310b44bf8
static int request_samples(AVFilterContext *ctx, int min_samples) { MixContext *s = ctx->priv; int i, ret; av_assert0(s->nb_inputs > 1); for (i = 1; i < s->nb_inputs; i++) { ret = 0; if (!(s->input_state[i] & INPUT_ON)) continue; if (av_audio_fifo_size(s-...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterContext *VAR_0, int VAR_1) { MixContext *s = VAR_0->priv; int VAR_2, VAR_3; av_assert0(s->nb_inputs > 1); for (VAR_2 = 1; VAR_2 < s->nb_inputs; VAR_2++) { VAR_3 = 0; if (!(s->input_state[VAR_2] & INPUT_ON)) continue; if (av_audio...
[ "static int FUNC_0(AVFilterContext *VAR_0, int VAR_1)\n{", "MixContext *s = VAR_0->priv;", "int VAR_2, VAR_3;", "av_assert0(s->nb_inputs > 1);", "for (VAR_2 = 1; VAR_2 < s->nb_inputs; VAR_2++) {", "VAR_3 = 0;", "if (!(s->input_state[VAR_2] & INPUT_ON))\ncontinue;", "if (av_audio_fifo_size(s->fifos[VAR...
[ 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, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
9,822
void ff_vp3_idct_dc_add_c(uint8_t *dest/*align 8*/, int line_size, const DCTELEM *block/*align 16*/){ int i, dc = (block[0] + 15) >> 5; for(i = 0; i < 8; i++){ dest[0] = av_clip_uint8(dest[0] + dc); dest[1] = av_clip_uint8(dest[1] + dc); dest[2] = av_clip_uint8(dest[2] + dc); ...
false
FFmpeg
28f9ab7029bd1a02f659995919f899f84ee7361b
void ff_vp3_idct_dc_add_c(uint8_t *dest, int line_size, const DCTELEM *block){ int i, dc = (block[0] + 15) >> 5; for(i = 0; i < 8; i++){ dest[0] = av_clip_uint8(dest[0] + dc); dest[1] = av_clip_uint8(dest[1] + dc); dest[2] = av_clip_uint8(dest[2] + dc); dest[3] = av_clip_...
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, int VAR_1, const DCTELEM *VAR_2){ int VAR_3, VAR_4 = (VAR_2[0] + 15) >> 5; for(VAR_3 = 0; VAR_3 < 8; VAR_3++){ VAR_0[0] = av_clip_uint8(VAR_0[0] + VAR_4); VAR_0[1] = av_clip_uint8(VAR_0[1] + VAR_4); VAR_0[2] = av_clip_uint8(VAR_0[2] + VAR_4); V...
[ "void FUNC_0(uint8_t *VAR_0, int VAR_1, const DCTELEM *VAR_2){", "int VAR_3, VAR_4 = (VAR_2[0] + 15) >> 5;", "for(VAR_3 = 0; VAR_3 < 8; VAR_3++){", "VAR_0[0] = av_clip_uint8(VAR_0[0] + VAR_4);", "VAR_0[1] = av_clip_uint8(VAR_0[1] + VAR_4);", "VAR_0[2] = av_clip_uint8(VAR_0[2] + VAR_4);", "VAR_0[3] = av_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
9,823
static enum AVPixelFormat mpeg_get_pixelformat(AVCodecContext *avctx) { Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; const enum AVPixelFormat *pix_fmts; #if FF_API_XVMC FF_DISABLE_DEPRECATION_WARNINGS if (avctx->xvmc_acceleration) return ff_get_format(av...
false
FFmpeg
dcc39ee10e82833ce24aa57926c00ffeb1948198
static enum AVPixelFormat mpeg_get_pixelformat(AVCodecContext *avctx) { Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; const enum AVPixelFormat *pix_fmts; #if FF_API_XVMC FF_DISABLE_DEPRECATION_WARNINGS if (avctx->xvmc_acceleration) return ff_get_format(av...
{ "code": [], "line_no": [] }
static enum AVPixelFormat FUNC_0(AVCodecContext *VAR_0) { Mpeg1Context *s1 = VAR_0->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; const enum AVPixelFormat *VAR_1; #if FF_API_XVMC FF_DISABLE_DEPRECATION_WARNINGS if (VAR_0->xvmc_acceleration) return ff_get_format(VAR_0, pixfmt_xvmc_...
[ "static enum AVPixelFormat FUNC_0(AVCodecContext *VAR_0)\n{", "Mpeg1Context *s1 = VAR_0->priv_data;", "MpegEncContext *s = &s1->mpeg_enc_ctx;", "const enum AVPixelFormat *VAR_1;", "#if FF_API_XVMC\nFF_DISABLE_DEPRECATION_WARNINGS\nif (VAR_0->xvmc_acceleration)\nreturn ff_get_format(VAR_0, pixfmt_xvmc_mpg2_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17, 19 ], [ 21, 23, 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 41 ], [ 43 ] ]
9,824
static int init_tiles(Jpeg2000EncoderContext *s) { int tileno, tilex, tiley, compno; Jpeg2000CodingStyle *codsty = &s->codsty; Jpeg2000QuantStyle *qntsty = &s->qntsty; s->numXtiles = ff_jpeg2000_ceildiv(s->width, s->tile_width); s->numYtiles = ff_jpeg2000_ceildiv(s->height, s->tile_height);...
true
FFmpeg
2580bae54a45d6aaf85ddc5e780389e7e90b2c86
static int init_tiles(Jpeg2000EncoderContext *s) { int tileno, tilex, tiley, compno; Jpeg2000CodingStyle *codsty = &s->codsty; Jpeg2000QuantStyle *qntsty = &s->qntsty; s->numXtiles = ff_jpeg2000_ceildiv(s->width, s->tile_width); s->numYtiles = ff_jpeg2000_ceildiv(s->height, s->tile_height);...
{ "code": [ " if (ret = ff_jpeg2000_init_component(comp,", " ))" ], "line_no": [ 65, 79 ] }
static int FUNC_0(Jpeg2000EncoderContext *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4; Jpeg2000CodingStyle *codsty = &VAR_0->codsty; Jpeg2000QuantStyle *qntsty = &VAR_0->qntsty; VAR_0->numXtiles = ff_jpeg2000_ceildiv(VAR_0->width, VAR_0->tile_width); VAR_0->numYtiles = ff_jpeg2000_ceildiv(VAR_0...
[ "static int FUNC_0(Jpeg2000EncoderContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4;", "Jpeg2000CodingStyle *codsty = &VAR_0->codsty;", "Jpeg2000QuantStyle *qntsty = &VAR_0->qntsty;", "VAR_0->numXtiles = ff_jpeg2000_ceildiv(VAR_0->width, VAR_0->tile_width);", "VAR_0->numYtiles = ff_jpeg2000_ceildiv(VA...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
9,825
static TCGv neon_load_reg(int reg, int pass) { TCGv tmp = new_tmp(); tcg_gen_ld_i32(tmp, cpu_env, neon_reg_offset(reg, pass)); return tmp; }
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static TCGv neon_load_reg(int reg, int pass) { TCGv tmp = new_tmp(); tcg_gen_ld_i32(tmp, cpu_env, neon_reg_offset(reg, pass)); return tmp; }
{ "code": [ " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " ...
static TCGv FUNC_0(int reg, int pass) { TCGv tmp = new_tmp(); tcg_gen_ld_i32(tmp, cpu_env, neon_reg_offset(reg, pass)); return tmp; }
[ "static TCGv FUNC_0(int reg, int pass)\n{", "TCGv tmp = new_tmp();", "tcg_gen_ld_i32(tmp, cpu_env, neon_reg_offset(reg, pass));", "return tmp;", "}" ]
[ 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
9,826
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) { int i, count, ret = 0, j; int64_t read_size; AVStream *st; AVPacket pkt1, *pkt; int64_t old_offset = avio_tell(ic->pb); int orig_nb_streams = ic->nb_streams; // new streams might appear, no options for tho...
true
FFmpeg
5312c319be98c63b8e59695222a13068a0dbc7ab
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) { int i, count, ret = 0, j; int64_t read_size; AVStream *st; AVPacket pkt1, *pkt; int64_t old_offset = avio_tell(ic->pb); int orig_nb_streams = ic->nb_streams; int flush_codecs = ic->probesize > 0; ...
{ "code": [ " && st->codec_info_nb_frames>15", " && st->codec->codec_type == AVMEDIA_TYPE_VIDEO", " || !strcmp(ic->iformat->name, \"mpegts\"))" ], "line_no": [ 393, 395, 399 ] }
int FUNC_0(AVFormatContext *VAR_0, AVDictionary **VAR_1) { int VAR_8, VAR_3, VAR_4 = 0, VAR_5; int64_t read_size; AVStream *st; AVPacket pkt1, *pkt; int64_t old_offset = avio_tell(VAR_0->pb); int VAR_6 = VAR_0->nb_streams; int VAR_7 = VAR_0->probesize > 0; if(VAR_0->pb...
[ "int FUNC_0(AVFormatContext *VAR_0, AVDictionary **VAR_1)\n{", "int VAR_8, VAR_3, VAR_4 = 0, VAR_5;", "int64_t read_size;", "AVStream *st;", "AVPacket pkt1, *pkt;", "int64_t old_offset = avio_tell(VAR_0->pb);", "int VAR_6 = VAR_0->nb_streams;", "int VAR_7 = VAR_0->probesize > 0;", "if(VAR_0->pb)\nav...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37, 39 ], [ 45, 47 ], [ 49 ], [ 53 ], [ 55 ], [...
9,827
static void tcg_handle_interrupt(CPUState *cpu, int mask) { int old_mask; old_mask = cpu->interrupt_request; cpu->interrupt_request |= mask; /* * If called from iothread context, wake the target cpu in * case its halted. */ if (!qemu_cpu_is_self(cpu)) { qemu_cpu_...
true
qemu
8d04fb55dec381bc5105cb47f29d918e579e8cbd
static void tcg_handle_interrupt(CPUState *cpu, int mask) { int old_mask; old_mask = cpu->interrupt_request; cpu->interrupt_request |= mask; if (!qemu_cpu_is_self(cpu)) { qemu_cpu_kick(cpu); return; } if (use_icount) { cpu->icount_decr.u16.high...
{ "code": [ " } else {", " if (use_icount) {", " cpu->icount_decr.u16.high = 0xffff;", " if (!cpu->can_do_io", " && (mask & ~old_mask) != 0) {", " cpu_abort(cpu, \"Raised interrupt while not in I/O function\");", " cpu->tcg_exit_req = 1;" ...
static void FUNC_0(CPUState *VAR_0, int VAR_1) { int VAR_2; VAR_2 = VAR_0->interrupt_request; VAR_0->interrupt_request |= VAR_1; if (!qemu_cpu_is_self(VAR_0)) { qemu_cpu_kick(VAR_0); return; } if (use_icount) { VAR_0->icount_decr.u16.high = 0xf...
[ "static void FUNC_0(CPUState *VAR_0, int VAR_1)\n{", "int VAR_2;", "VAR_2 = VAR_0->interrupt_request;", "VAR_0->interrupt_request |= VAR_1;", "if (!qemu_cpu_is_self(VAR_0)) {", "qemu_cpu_kick(VAR_0);", "return;", "}", "if (use_icount) {", "VAR_0->icount_decr.u16.high = 0xffff;", "if (!VAR_0->can...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ] ]
9,828
void qemu_cond_broadcast(QemuCond *cond) { BOOLEAN result; /* * As in pthread_cond_signal, access to cond->waiters and * cond->target is locked via the external mutex. */ if (cond->waiters == 0) { return; } cond->target = 0; result = ReleaseSemaphore(cond->sem...
true
qemu
12f8def0e02232d7c6416ad9b66640f973c531d1
void qemu_cond_broadcast(QemuCond *cond) { BOOLEAN result; if (cond->waiters == 0) { return; } cond->target = 0; result = ReleaseSemaphore(cond->sema, cond->waiters, NULL); if (!result) { error_exit(GetLastError(), __func__); } ...
{ "code": [ " error_exit(GetLastError(), __func__);", " error_exit(GetLastError(), __func__);", " if (!result) {", " error_exit(GetLastError(), __func__);", " if (!result) {", " error_exit(GetLastError(), __func__);", " if (cond->waiters == 0) {", "...
void FUNC_0(QemuCond *VAR_0) { BOOLEAN result; if (VAR_0->waiters == 0) { return; } VAR_0->target = 0; result = ReleaseSemaphore(VAR_0->sema, VAR_0->waiters, NULL); if (!result) { error_exit(GetLastError(), __func__); } WaitF...
[ "void FUNC_0(QemuCond *VAR_0)\n{", "BOOLEAN result;", "if (VAR_0->waiters == 0) {", "return;", "}", "VAR_0->target = 0;", "result = ReleaseSemaphore(VAR_0->sema, VAR_0->waiters, NULL);", "if (!result) {", "error_exit(GetLastError(), __func__);", "}", "WaitForSingleObject(VAR_0->continue_event, I...
[ 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 51 ], [ 53 ] ]
9,829
static uint16_t qvirtio_pci_config_readw(QVirtioDevice *d, uint64_t off) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; uint16_t value; value = qpci_io_readw(dev->pdev, CONFIG_BASE(dev) + off); if (qvirtio_is_big_endian(d)) { value = bswap16(value); } return value; }
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static uint16_t qvirtio_pci_config_readw(QVirtioDevice *d, uint64_t off) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; uint16_t value; value = qpci_io_readw(dev->pdev, CONFIG_BASE(dev) + off); if (qvirtio_is_big_endian(d)) { value = bswap16(value); } return value; }
{ "code": [ " value = qpci_io_readw(dev->pdev, CONFIG_BASE(dev) + off);" ], "line_no": [ 11 ] }
static uint16_t FUNC_0(QVirtioDevice *d, uint64_t off) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; uint16_t value; value = qpci_io_readw(dev->pdev, CONFIG_BASE(dev) + off); if (qvirtio_is_big_endian(d)) { value = bswap16(value); } return value; }
[ "static uint16_t FUNC_0(QVirtioDevice *d, uint64_t off)\n{", "QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;", "uint16_t value;", "value = qpci_io_readw(dev->pdev, CONFIG_BASE(dev) + off);", "if (qvirtio_is_big_endian(d)) {", "value = bswap16(value);", "}", "return value;", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
9,830
static int advanced_decode_picture_secondary_header(VC9Context *v) { GetBitContext *gb = &v->s.gb; int index, status = 0; switch(v->s.pict_type) { case P_TYPE: status = decode_p_picture_secondary_header(v); break; case B_TYPE: status = decode_b_picture_secondary_header(v); break; c...
true
FFmpeg
7cc84d241ba6ef8e27e4d057176a4ad385ad3d59
static int advanced_decode_picture_secondary_header(VC9Context *v) { GetBitContext *gb = &v->s.gb; int index, status = 0; switch(v->s.pict_type) { case P_TYPE: status = decode_p_picture_secondary_header(v); break; case B_TYPE: status = decode_b_picture_secondary_header(v); break; c...
{ "code": [ " GetBitContext *gb = &v->s.gb;", " GetBitContext *gb = &v->s.gb;", " index = decode012(gb);", " v->luma_dc_vlc = &ff_msmp4_dc_luma_vlc[index];", " v->chroma_dc_vlc = &ff_msmp4_dc_chroma_vlc[index];", " int index, status = 0;", " index = decode012(gb);", ...
static int FUNC_0(VC9Context *VAR_0) { GetBitContext *gb = &VAR_0->s.gb; int VAR_1, VAR_2 = 0; switch(VAR_0->s.pict_type) { case P_TYPE: VAR_2 = decode_p_picture_secondary_header(VAR_0); break; case B_TYPE: VAR_2 = decode_b_picture_secondary_header(VAR_0); break; case BI_TYPE: ...
[ "static int FUNC_0(VC9Context *VAR_0)\n{", "GetBitContext *gb = &VAR_0->s.gb;", "int VAR_1, VAR_2 = 0;", "switch(VAR_0->s.pict_type)\n{", "case P_TYPE: VAR_2 = decode_p_picture_secondary_header(VAR_0); break;", "case B_TYPE: VAR_2 = decode_b_picture_secondary_header(VAR_0); break;", "case BI_TYPE:\ncase...
[ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ] ]
9,831
struct omap_mmc_s *omap2_mmc_init(struct omap_target_agent_s *ta, BlockBackend *blk, qemu_irq irq, qemu_irq dma[], omap_clk fclk, omap_clk iclk) { struct omap_mmc_s *s = (struct omap_mmc_s *) g_malloc0(sizeof(struct omap_mmc_s)); s->irq = irq; s->dma = dm...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
struct omap_mmc_s *omap2_mmc_init(struct omap_target_agent_s *ta, BlockBackend *blk, qemu_irq irq, qemu_irq dma[], omap_clk fclk, omap_clk iclk) { struct omap_mmc_s *s = (struct omap_mmc_s *) g_malloc0(sizeof(struct omap_mmc_s)); s->irq = irq; s->dma = dm...
{ "code": [ " struct omap_mmc_s *s = (struct omap_mmc_s *)", " g_malloc0(sizeof(struct omap_mmc_s));", " struct omap_mmc_s *s = (struct omap_mmc_s *)", " g_malloc0(sizeof(struct omap_mmc_s));" ], "line_no": [ 9, 11, 9, 11 ] }
struct omap_mmc_s *FUNC_0(struct omap_target_agent_s *VAR_0, BlockBackend *VAR_1, qemu_irq VAR_2, qemu_irq VAR_3[], omap_clk VAR_4, omap_clk VAR_5) { struct omap_mmc_s *VAR_6 = (struct omap_mmc_s *) g_malloc0(sizeof(struct omap_mmc_s)); VAR_6->VAR_2 = VAR_2; ...
[ "struct omap_mmc_s *FUNC_0(struct omap_target_agent_s *VAR_0,\nBlockBackend *VAR_1, qemu_irq VAR_2, qemu_irq VAR_3[],\nomap_clk VAR_4, omap_clk VAR_5)\n{", "struct omap_mmc_s *VAR_6 = (struct omap_mmc_s *)\ng_malloc0(sizeof(struct omap_mmc_s));", "VAR_6->VAR_2 = VAR_2;", "VAR_6->VAR_3 = VAR_3;", "VAR_6->clk...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ...
9,832
static void dec_store(DisasContext *dc) { TCGv t, *addr; unsigned int size; size = 1 << (dc->opcode & 3); LOG_DIS("s%d%s\n", size, dc->type_b ? "i" : ""); t_sync_flags(dc); /* If we get a fault on a dslot, the jmpstate better be in sync. */ sync_jmpstate(dc); addr = compute_ldst_addr(dc...
true
qemu
0187688f3270433269fc7d4909ad36dc5c5db7aa
static void dec_store(DisasContext *dc) { TCGv t, *addr; unsigned int size; size = 1 << (dc->opcode & 3); LOG_DIS("s%d%s\n", size, dc->type_b ? "i" : ""); t_sync_flags(dc); sync_jmpstate(dc); addr = compute_ldst_addr(dc, &t); if ((dc->env->pvr.regs[2] & PVR2_UNALIGNED_EXC_MASK)...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0) { TCGv t, *addr; unsigned int VAR_1; VAR_1 = 1 << (VAR_0->opcode & 3); LOG_DIS("s%d%s\n", VAR_1, VAR_0->type_b ? "i" : ""); t_sync_flags(VAR_0); sync_jmpstate(VAR_0); addr = compute_ldst_addr(VAR_0, &t); if ((VAR_0->env->pvr.regs[2] & PVR...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "TCGv t, *addr;", "unsigned int VAR_1;", "VAR_1 = 1 << (VAR_0->opcode & 3);", "LOG_DIS(\"s%d%s\\n\", VAR_1, VAR_0->type_b ? \"i\" : \"\");", "t_sync_flags(VAR_0);", "sync_jmpstate(VAR_0);", "addr = compute_ldst_addr(VAR_0, &t);", "if ((VAR_0->env->pvr.re...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 9 ], [ 10 ], [ 12 ], [ 13, 14 ], [ 15 ], [ 16, 17 ] ]
9,833
static inline void range_dec_normalize(APEContext *ctx) { while (ctx->rc.range <= BOTTOM_VALUE) { ctx->rc.buffer <<= 8; if(ctx->ptr < ctx->data_end) ctx->rc.buffer += *ctx->ptr; ctx->ptr++; ctx->rc.low = (ctx->rc.low << 8) | ((ctx->rc.buffer >> 1) & 0xFF); ...
true
FFmpeg
5b8009f4c80d8fd96523c8c163441ad4011ad472
static inline void range_dec_normalize(APEContext *ctx) { while (ctx->rc.range <= BOTTOM_VALUE) { ctx->rc.buffer <<= 8; if(ctx->ptr < ctx->data_end) ctx->rc.buffer += *ctx->ptr; ctx->ptr++; ctx->rc.low = (ctx->rc.low << 8) | ((ctx->rc.buffer >> 1) & 0xFF); ...
{ "code": [ " if(ctx->ptr < ctx->data_end)", " ctx->ptr++;" ], "line_no": [ 9, 13 ] }
static inline void FUNC_0(APEContext *VAR_0) { while (VAR_0->rc.range <= BOTTOM_VALUE) { VAR_0->rc.buffer <<= 8; if(VAR_0->ptr < VAR_0->data_end) VAR_0->rc.buffer += *VAR_0->ptr; VAR_0->ptr++; VAR_0->rc.low = (VAR_0->rc.low << 8) | ((VAR_0->rc.buffer >> 1) & ...
[ "static inline void FUNC_0(APEContext *VAR_0)\n{", "while (VAR_0->rc.range <= BOTTOM_VALUE) {", "VAR_0->rc.buffer <<= 8;", "if(VAR_0->ptr < VAR_0->data_end)\nVAR_0->rc.buffer += *VAR_0->ptr;", "VAR_0->ptr++;", "VAR_0->rc.low = (VAR_0->rc.low << 8) | ((VAR_0->rc.buffer >> 1) & 0xFF);", "VAR_0->rc.r...
[ 0, 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
9,834
static int theora_header(AVFormatContext *s, int idx) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + idx; AVStream *st = s->streams[idx]; TheoraParams *thp = os->private; int cds = st->codec->extradata_size + os->psize + 2; int err; ...
true
FFmpeg
45115315820a14d0c3f836adafb879475736e750
static int theora_header(AVFormatContext *s, int idx) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + idx; AVStream *st = s->streams[idx]; TheoraParams *thp = os->private; int cds = st->codec->extradata_size + os->psize + 2; int err; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1) { struct VAR_2 *VAR_2 = VAR_0->priv_data; struct ogg_stream *VAR_3 = VAR_2->streams + VAR_1; AVStream *st = VAR_0->streams[VAR_1]; TheoraParams *thp = VAR_3->private; int VAR_4 = st->codec->extradata_size + VAR_3->...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "struct VAR_2 *VAR_2 = VAR_0->priv_data;", "struct ogg_stream *VAR_3 = VAR_2->streams + VAR_1;", "AVStream *st = VAR_0->streams[VAR_1];", "TheoraParams *thp = VAR_3->private;", "int VAR_4 = st->codec->extradata_siz...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ],...
9,836
static int buffer_needs_copy(PadContext *s, AVFrame *frame, AVBufferRef *buf) { int planes[4] = { -1, -1, -1, -1}, *p = planes; int i, j; /* get all planes in this buffer */ for (i = 0; i < FF_ARRAY_ELEMS(planes) && frame->data[i]; i++) { if (av_frame_get_plane_buffer(frame, i) == buf) ...
true
FFmpeg
5d639b2b4a6d1f5710cfe247dea4d4c6debdfe0d
static int buffer_needs_copy(PadContext *s, AVFrame *frame, AVBufferRef *buf) { int planes[4] = { -1, -1, -1, -1}, *p = planes; int i, j; for (i = 0; i < FF_ARRAY_ELEMS(planes) && frame->data[i]; i++) { if (av_frame_get_plane_buffer(frame, i) == buf) *p++ = i; } ...
{ "code": [ " for (j = 0; j < FF_ARRAY_ELEMS(planes) & planes[j] >= 0; j++) {" ], "line_no": [ 73 ] }
static int FUNC_0(PadContext *VAR_0, AVFrame *VAR_1, AVBufferRef *VAR_2) { int VAR_3[4] = { -1, -1, -1, -1}, *VAR_4 = VAR_3; int VAR_5, VAR_6; for (VAR_5 = 0; VAR_5 < FF_ARRAY_ELEMS(VAR_3) && VAR_1->data[VAR_5]; VAR_5++) { if (av_frame_get_plane_buffer(VAR_1, VAR_5) == VAR_2) ...
[ "static int FUNC_0(PadContext *VAR_0, AVFrame *VAR_1, AVBufferRef *VAR_2)\n{", "int VAR_3[4] = { -1, -1, -1, -1}, *VAR_4 = VAR_3;", "int VAR_5, VAR_6;", "for (VAR_5 = 0; VAR_5 < FF_ARRAY_ELEMS(VAR_3) && VAR_1->data[VAR_5]; VAR_5++) {", "if (av_frame_get_plane_buffer(VAR_1, VAR_5) == VAR_2)\n*VAR_4++ = VAR_5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 47, 49 ], [ 51, 53, 55 ], [ 59, 61 ], [ 63, 65, 67 ], [ 71...
9,837
static void adb_kbd_initfn(Object *obj) { ADBDevice *d = ADB_DEVICE(obj); d->devaddr = ADB_DEVID_KEYBOARD; }
true
qemu
77cb0f5aafc8e6d0c6d3c339f381c9b7921648e0
static void adb_kbd_initfn(Object *obj) { ADBDevice *d = ADB_DEVICE(obj); d->devaddr = ADB_DEVID_KEYBOARD; }
{ "code": [ " d->devaddr = ADB_DEVID_KEYBOARD;", "static void adb_kbd_initfn(Object *obj)", " ADBDevice *d = ADB_DEVICE(obj);", " d->devaddr = ADB_DEVID_KEYBOARD;", " ADBDevice *d = ADB_DEVICE(obj);" ], "line_no": [ 9, 1, 5, 9, 5 ] }
static void FUNC_0(Object *VAR_0) { ADBDevice *d = ADB_DEVICE(VAR_0); d->devaddr = ADB_DEVID_KEYBOARD; }
[ "static void FUNC_0(Object *VAR_0)\n{", "ADBDevice *d = ADB_DEVICE(VAR_0);", "d->devaddr = ADB_DEVID_KEYBOARD;", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]