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
21,615
static bool get_phys_addr(CPUARMState *env, target_ulong address, MMUAccessType access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *attrs, int *prot, target_ulong *page_size, uint32_t *fsr, ARMMMUFaultI...
false
qemu
35337cc391245f251bfb9134f181c33e6375d6c1
static bool get_phys_addr(CPUARMState *env, target_ulong address, MMUAccessType access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *attrs, int *prot, target_ulong *page_size, uint32_t *fsr, ARMMMUFaultI...
{ "code": [], "line_no": [] }
static bool FUNC_0(CPUARMState *env, target_ulong address, MMUAccessType access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *attrs, int *prot, target_ulong *page_size, uint32_t *fsr, ARMMMUFaultInfo *fi...
[ "static bool FUNC_0(CPUARMState *env, target_ulong address,\nMMUAccessType access_type, ARMMMUIdx mmu_idx,\nhwaddr *phys_ptr, MemTxAttrs *attrs, int *prot,\ntarget_ulong *page_size, uint32_t *fsr,\nARMMMUFaultInfo *fi)\n{", "if (mmu_idx == ARMMMUIdx_S12NSE0 || mmu_idx == ARMMMUIdx_S12NSE1) {", "if (arm_feature(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33, 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53, 55, 57 ], [ 59 ], [ 63 ], [ 65 ], [ 67 ...
21,616
void bdrv_error_action(BlockDriverState *bs, BlockErrorAction action, bool is_read, int error) { assert(error >= 0); if (action == BLOCK_ERROR_ACTION_STOP) { /* First set the iostatus, so that "info block" returns an iostatus * that matches the events raised so fa...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
void bdrv_error_action(BlockDriverState *bs, BlockErrorAction action, bool is_read, int error) { assert(error >= 0); if (action == BLOCK_ERROR_ACTION_STOP) { bdrv_iostatus_set_err(bs, error); qemu_system_vmstop_request_prep...
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0, BlockErrorAction VAR_1, bool VAR_2, int VAR_3) { assert(VAR_3 >= 0); if (VAR_1 == BLOCK_ERROR_ACTION_STOP) { bdrv_iostatus_set_err(VAR_0, VAR_3); qemu_system_vmstop_request_prepare(); ...
[ "void FUNC_0(BlockDriverState *VAR_0, BlockErrorAction VAR_1,\nbool VAR_2, int VAR_3)\n{", "assert(VAR_3 >= 0);", "if (VAR_1 == BLOCK_ERROR_ACTION_STOP) {", "bdrv_iostatus_set_err(VAR_0, VAR_3);", "qemu_system_vmstop_request_prepare();", "send_qmp_error_event(VAR_0, VAR_1, VAR_2, VAR_3);", "qemu_system_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 21 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ] ]
21,617
static void ide_atapi_cmd_reply(IDEState *s, int size, int max_size) { if (size > max_size) size = max_size; s->lba = -1; /* no sector read */ s->packet_transfer_size = size; s->io_buffer_size = size; /* dma: send the reply data as one chunk */ s->elementary_transfer_size = 0; ...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void ide_atapi_cmd_reply(IDEState *s, int size, int max_size) { if (size > max_size) size = max_size; s->lba = -1; s->packet_transfer_size = size; s->io_buffer_size = size; s->elementary_transfer_size = 0; s->io_buffer_index = 0; if (s->atapi_dma) { bl...
{ "code": [], "line_no": [] }
static void FUNC_0(IDEState *VAR_0, int VAR_1, int VAR_2) { if (VAR_1 > VAR_2) VAR_1 = VAR_2; VAR_0->lba = -1; VAR_0->packet_transfer_size = VAR_1; VAR_0->io_buffer_size = VAR_1; VAR_0->elementary_transfer_size = 0; VAR_0->io_buffer_index = 0; if (VAR_0->atapi_dma) { ...
[ "static void FUNC_0(IDEState *VAR_0, int VAR_1, int VAR_2)\n{", "if (VAR_1 > VAR_2)\nVAR_1 = VAR_2;", "VAR_0->lba = -1;", "VAR_0->packet_transfer_size = VAR_1;", "VAR_0->io_buffer_size = VAR_1;", "VAR_0->elementary_transfer_size = 0;", "VAR_0->io_buffer_index = 0;", "if (VAR_0->atapi_dma) {", "block...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
21,618
static int stream_component_open(VideoState *is, int stream_index) { AVFormatContext *ic = is->ic; AVCodecContext *enc; AVCodec *codec; SDL_AudioSpec wanted_spec, spec; if (stream_index < 0 || stream_index >= ic->nb_streams) return -1; enc = ic->streams[stream_index]->codec; ...
false
FFmpeg
de4898a22909ff8a9ff846820627094bdd68b648
static int stream_component_open(VideoState *is, int stream_index) { AVFormatContext *ic = is->ic; AVCodecContext *enc; AVCodec *codec; SDL_AudioSpec wanted_spec, spec; if (stream_index < 0 || stream_index >= ic->nb_streams) return -1; enc = ic->streams[stream_index]->codec; ...
{ "code": [], "line_no": [] }
static int FUNC_0(VideoState *VAR_0, int VAR_1) { AVFormatContext *ic = VAR_0->ic; AVCodecContext *enc; AVCodec *codec; SDL_AudioSpec wanted_spec, spec; if (VAR_1 < 0 || VAR_1 >= ic->nb_streams) return -1; enc = ic->streams[VAR_1]->codec; if (enc->codec_type == COD...
[ "static int FUNC_0(VideoState *VAR_0, int VAR_1)\n{", "AVFormatContext *ic = VAR_0->ic;", "AVCodecContext *enc;", "AVCodec *codec;", "SDL_AudioSpec wanted_spec, spec;", "if (VAR_1 < 0 || VAR_1 >= ic->nb_streams)\nreturn -1;", "enc = ic->streams[VAR_1]->codec;", "if (enc->codec_type == CODEC_TYPE_AUDIO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
21,620
void qemu_set_version(const char *version) { qemu_version = version; }
false
qemu
35c2c8dc8c0899882a8e0d349d93bd657772f1e7
void qemu_set_version(const char *version) { qemu_version = version; }
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0) { qemu_version = VAR_0; }
[ "void FUNC_0(const char *VAR_0)\n{", "qemu_version = VAR_0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
21,623
tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr) { tcg_target_ulong next_tb = 0; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; assert(tb_ptr); for (;;) { #if defined(GETPC) tci_tb_ptr = (uintptr_t)tb_ptr; #endif TCGOpcode opc = tb_ptr[0]; #if !defined(NDE...
false
qemu
dea8fde8b8cb1ab14e15308aadbf88eeccd4e873
tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr) { tcg_target_ulong next_tb = 0; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; assert(tb_ptr); for (;;) { #if defined(GETPC) tci_tb_ptr = (uintptr_t)tb_ptr; #endif TCGOpcode opc = tb_ptr[0]; #if !defined(NDE...
{ "code": [], "line_no": [] }
tcg_target_ulong FUNC_0(CPUArchState *env, uint8_t *tb_ptr) { tcg_target_ulong next_tb = 0; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; assert(tb_ptr); for (;;) { #if defined(GETPC) tci_tb_ptr = (uintptr_t)tb_ptr; #endif TCGOpcode opc = tb_ptr[0]; #if !defined(NDEBUG) ...
[ "tcg_target_ulong FUNC_0(CPUArchState *env, uint8_t *tb_ptr)\n{", "tcg_target_ulong next_tb = 0;", "tci_reg[TCG_AREG0] = (tcg_target_ulong)env;", "assert(tb_ptr);", "for (;;) {", "#if defined(GETPC)\ntci_tb_ptr = (uintptr_t)tb_ptr;", "#endif\nTCGOpcode opc = tb_ptr[0];", "#if !defined(NDEBUG)\nuint8_t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49, 51...
21,624
static void do_commit(void) { int i; for (i = 0; i < MAX_DISKS; i++) { if (bs_table[i]) bdrv_commit(bs_table[i]); } }
false
qemu
7e2515e87c41e2e658aaed466e11cbdf1ea8bcb1
static void do_commit(void) { int i; for (i = 0; i < MAX_DISKS; i++) { if (bs_table[i]) bdrv_commit(bs_table[i]); } }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { int VAR_0; for (VAR_0 = 0; VAR_0 < MAX_DISKS; VAR_0++) { if (bs_table[VAR_0]) bdrv_commit(bs_table[VAR_0]); } }
[ "static void FUNC_0(void)\n{", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < MAX_DISKS; VAR_0++) {", "if (bs_table[VAR_0])\nbdrv_commit(bs_table[VAR_0]);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
21,625
static int v9fs_do_mknod(V9fsState *s, V9fsString *path, mode_t mode, dev_t dev) { return s->ops->mknod(&s->ctx, path->data, mode, dev); }
false
qemu
1c29331248d82e5a9caaf7974756a9d8bd5cd1e5
static int v9fs_do_mknod(V9fsState *s, V9fsString *path, mode_t mode, dev_t dev) { return s->ops->mknod(&s->ctx, path->data, mode, dev); }
{ "code": [], "line_no": [] }
static int FUNC_0(V9fsState *VAR_0, V9fsString *VAR_1, mode_t VAR_2, dev_t VAR_3) { return VAR_0->ops->mknod(&VAR_0->ctx, VAR_1->data, VAR_2, VAR_3); }
[ "static int FUNC_0(V9fsState *VAR_0, V9fsString *VAR_1, mode_t VAR_2, dev_t VAR_3)\n{", "return VAR_0->ops->mknod(&VAR_0->ctx, VAR_1->data, VAR_2, VAR_3);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
21,626
static uint64_t g364fb_ctrl_read(void *opaque, target_phys_addr_t addr, unsigned int size) { G364State *s = opaque; uint32_t val; if (addr >= REG_CURS_PAT && addr < REG_CURS_PAT + 0x1000) { /* cursor pattern */ int i...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t g364fb_ctrl_read(void *opaque, target_phys_addr_t addr, unsigned int size) { G364State *s = opaque; uint32_t val; if (addr >= REG_CURS_PAT && addr < REG_CURS_PAT + 0x1000) { int idx = (addr - REG_CUR...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned int size) { G364State *s = opaque; uint32_t val; if (addr >= REG_CURS_PAT && addr < REG_CURS_PAT + 0x1000) { int VAR_1 = (addr - REG_CURS_PAT) >...
[ "static uint64_t FUNC_0(void *opaque,\ntarget_phys_addr_t addr,\nunsigned int size)\n{", "G364State *s = opaque;", "uint32_t val;", "if (addr >= REG_CURS_PAT && addr < REG_CURS_PAT + 0x1000) {", "int VAR_1 = (addr - REG_CURS_PAT) >> 3;", "val = s->cursor[VAR_1];", "} else if (addr >= REG_CURS_PAL && add...
[ 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51,...
21,628
static void vncws_send_handshake_response(VncState *vs, const char* key) { char combined_key[WS_CLIENT_KEY_LEN + WS_GUID_LEN + 1]; unsigned char hash[SHA1_DIGEST_LEN]; size_t hash_size = sizeof(hash); char *accept = NULL, *response = NULL; gnutls_datum_t in; int ret; g_strlcpy(comb...
false
qemu
8e9b0d24fb986d4241ae3b77752eca5dab4cb486
static void vncws_send_handshake_response(VncState *vs, const char* key) { char combined_key[WS_CLIENT_KEY_LEN + WS_GUID_LEN + 1]; unsigned char hash[SHA1_DIGEST_LEN]; size_t hash_size = sizeof(hash); char *accept = NULL, *response = NULL; gnutls_datum_t in; int ret; g_strlcpy(comb...
{ "code": [], "line_no": [] }
static void FUNC_0(VncState *VAR_0, const char* VAR_1) { char VAR_2[WS_CLIENT_KEY_LEN + WS_GUID_LEN + 1]; unsigned char VAR_3[SHA1_DIGEST_LEN]; size_t hash_size = sizeof(VAR_3); char *VAR_4 = NULL, *VAR_5 = NULL; gnutls_datum_t in; int VAR_6; g_strlcpy(VAR_2, VAR_1, WS_CLIENT_KEY_L...
[ "static void FUNC_0(VncState *VAR_0, const char* VAR_1)\n{", "char VAR_2[WS_CLIENT_KEY_LEN + WS_GUID_LEN + 1];", "unsigned char VAR_3[SHA1_DIGEST_LEN];", "size_t hash_size = sizeof(VAR_3);", "char *VAR_4 = NULL, *VAR_5 = NULL;", "gnutls_datum_t in;", "int VAR_6;", "g_strlcpy(VAR_2, VAR_1, WS_CLIENT_KE...
[ 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
21,629
av_cold int ff_ffv1_init_slice_state(FFV1Context *f, FFV1Context *fs) { int j; fs->plane_count = f->plane_count; fs->transparency = f->transparency; for (j = 0; j < f->plane_count; j++) { PlaneContext *const p = &fs->plane[j]; if (fs->ac) { if (!p->state) ...
false
FFmpeg
a878dfa4f57d068eb69fb6614f7a4a20f769ee7b
av_cold int ff_ffv1_init_slice_state(FFV1Context *f, FFV1Context *fs) { int j; fs->plane_count = f->plane_count; fs->transparency = f->transparency; for (j = 0; j < f->plane_count; j++) { PlaneContext *const p = &fs->plane[j]; if (fs->ac) { if (!p->state) ...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(FFV1Context *f, FFV1Context *fs) { int VAR_0; fs->plane_count = f->plane_count; fs->transparency = f->transparency; for (VAR_0 = 0; VAR_0 < f->plane_count; VAR_0++) { PlaneContext *const p = &fs->plane[VAR_0]; if (fs->ac) { if (!p->state) ...
[ "av_cold int FUNC_0(FFV1Context *f, FFV1Context *fs)\n{", "int VAR_0;", "fs->plane_count = f->plane_count;", "fs->transparency = f->transparency;", "for (VAR_0 = 0; VAR_0 < f->plane_count; VAR_0++) {", "PlaneContext *const p = &fs->plane[VAR_0];", "if (fs->ac) {", "if (!p->state)\np->state = av_mallo...
[ 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 ], [ 47 ], [ 51 ], [ 53 ], ...
21,630
static void spitz_init(int ram_size, int vga_ram_size, int boot_device, DisplayState *ds, const char **fd_filename, int snapshot, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { spitz_common_init(ram_...
false
qemu
4207117c93357347500235952ce7891688089cb1
static void spitz_init(int ram_size, int vga_ram_size, int boot_device, DisplayState *ds, const char **fd_filename, int snapshot, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { spitz_common_init(ram_...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int VAR_1, int VAR_2, DisplayState *VAR_3, const char **VAR_4, int VAR_5, const char *VAR_6, const char *VAR_7, const char *VAR_8, const char *VAR_9) { spitz_common_init(VAR_0, VAR_1, VAR_3, VAR_6, VAR_7, VAR_8, spit...
[ "static void FUNC_0(int VAR_0, int VAR_1, int VAR_2,\nDisplayState *VAR_3, const char **VAR_4, int VAR_5,\nconst char *VAR_6, const char *VAR_7,\nconst char *VAR_8, const char *VAR_9)\n{", "spitz_common_init(VAR_0, VAR_1, VAR_3, VAR_6,\nVAR_7, VAR_8, spitz, 0x2c9);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11, 13 ], [ 15 ] ]
21,631
static int vcr1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; VCR1Context *const a = avctx->priv_data; AVFrame *const p = data; const uint...
true
FFmpeg
8aba7968dd604aae91ee42cbce0be3dad7dceb30
static int vcr1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; VCR1Context *const a = avctx->priv_data; AVFrame *const p = data; const uint...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; VCR1Context *const a = VAR_0->priv_data; AVFrame *const p = VAR_1; const uint8_t *VAR_6 = ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "VCR1Context *const a = VAR_0->priv_data;", "AVFrame *const p = VAR_1;", "const uint8_t *VAR_6 = VAR_4;", "int V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16, 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ],...
21,632
long disas_insn(DisasContext *s, uint8_t *pc_start) { int b, prefixes, aflag, dflag; int shift, ot; int modrm, reg, rm, mod, reg_addr, op, opreg, offset_addr, val; unsigned int next_eip; s->pc = pc_start; prefixes = 0; aflag = s->code32; dflag = s->code32; s->override = -...
true
qemu
148dfc2a8be0b237ef80b4d421f549464aa6a3d0
long disas_insn(DisasContext *s, uint8_t *pc_start) { int b, prefixes, aflag, dflag; int shift, ot; int modrm, reg, rm, mod, reg_addr, op, opreg, offset_addr, val; unsigned int next_eip; s->pc = pc_start; prefixes = 0; aflag = s->code32; dflag = s->code32; s->override = -...
{ "code": [ " gen_op_addl_ESP_im(val + (2 << s->dflag));", " gen_op_addw_ESP_im(val + (2 << s->dflag));", " gen_pop_T0(s);", " if (s->dflag == 0)", " gen_op_andl_T0_ffff();", " gen_op_jmp_T0();", " gen_pop_update(s);", " ...
long FUNC_0(DisasContext *VAR_0, uint8_t *VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5; int VAR_6, VAR_7; int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_18, VAR_14, VAR_15, VAR_19; unsigned int VAR_24; VAR_0->pc = VAR_1; VAR_3 = 0; VAR_4 = VAR_0->code32; VAR_5 = VAR_0->code32; ...
[ "long FUNC_0(DisasContext *VAR_0, uint8_t *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6, VAR_7;", "int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_18, VAR_14, VAR_15, VAR_19;", "unsigned int VAR_24;", "VAR_0->pc = VAR_1;", "VAR_3 = 0;", "VAR_4 = VAR_0->code32;", "VAR_5 = VAR_0->code32;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ...
21,634
static void xhci_process_commands(XHCIState *xhci) { XHCITRB trb; TRBType type; XHCIEvent event = {ER_COMMAND_COMPLETE, CC_SUCCESS}; dma_addr_t addr; unsigned int i, slotid = 0; DPRINTF("xhci_process_commands()\n"); if (!xhci_running(xhci)) { DPRINTF("xhci_process_commands...
true
qemu
f89b60f6e5fee3923bedf80e82b4e5efc1bb156b
static void xhci_process_commands(XHCIState *xhci) { XHCITRB trb; TRBType type; XHCIEvent event = {ER_COMMAND_COMPLETE, CC_SUCCESS}; dma_addr_t addr; unsigned int i, slotid = 0; DPRINTF("xhci_process_commands()\n"); if (!xhci_running(xhci)) { DPRINTF("xhci_process_commands...
{ "code": [ " unsigned int i, slotid = 0;" ], "line_no": [ 13 ] }
static void FUNC_0(XHCIState *VAR_0) { XHCITRB trb; TRBType type; XHCIEvent event = {ER_COMMAND_COMPLETE, CC_SUCCESS}; dma_addr_t addr; unsigned int VAR_1, VAR_2 = 0; DPRINTF("FUNC_0()\n"); if (!xhci_running(VAR_0)) { DPRINTF("FUNC_0() called while xHC stopped or paused\n"...
[ "static void FUNC_0(XHCIState *VAR_0)\n{", "XHCITRB trb;", "TRBType type;", "XHCIEvent event = {ER_COMMAND_COMPLETE, CC_SUCCESS};", "dma_addr_t addr;", "unsigned int VAR_1, VAR_2 = 0;", "DPRINTF(\"FUNC_0()\\n\");", "if (!xhci_running(VAR_0)) {", "DPRINTF(\"FUNC_0() called while xHC stopped or paused...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [...
21,635
void cpu_loop(CPUTLGState *env) { CPUState *cs = CPU(tilegx_env_get_cpu(env)); int trapnr; while (1) { cpu_exec_start(cs); trapnr = cpu_tilegx_exec(cs); cpu_exec_end(cs); switch (trapnr) { case TILEGX_EXCP_SYSCALL: env->regs[TILEGX_R_RE] = do_s...
true
qemu
a9175169cc55ecff23a158dfee7d9cbb0b75d185
void cpu_loop(CPUTLGState *env) { CPUState *cs = CPU(tilegx_env_get_cpu(env)); int trapnr; while (1) { cpu_exec_start(cs); trapnr = cpu_tilegx_exec(cs); cpu_exec_end(cs); switch (trapnr) { case TILEGX_EXCP_SYSCALL: env->regs[TILEGX_R_RE] = do_s...
{ "code": [ " env->regs[TILEGX_R_RE] = do_syscall(env, env->regs[TILEGX_R_NR],", " env->regs[0], env->regs[1],", " env->regs[2], env->regs[3],", " env...
void FUNC_0(CPUTLGState *VAR_0) { CPUState *cs = CPU(tilegx_env_get_cpu(VAR_0)); int VAR_1; while (1) { cpu_exec_start(cs); VAR_1 = cpu_tilegx_exec(cs); cpu_exec_end(cs); switch (VAR_1) { case TILEGX_EXCP_SYSCALL: VAR_0->regs[TILEGX_R_RE] = do_...
[ "void FUNC_0(CPUTLGState *VAR_0)\n{", "CPUState *cs = CPU(tilegx_env_get_cpu(VAR_0));", "int VAR_1;", "while (1) {", "cpu_exec_start(cs);", "VAR_1 = cpu_tilegx_exec(cs);", "cpu_exec_end(cs);", "switch (VAR_1) {", "case TILEGX_EXCP_SYSCALL:\nVAR_0->regs[TILEGX_R_RE] = do_syscall(VAR_0, VAR_0->regs[TI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27, 29, 31 ], [ 33, 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51 ], ...
21,636
sofree(struct socket *so) { Slirp *slirp = so->slirp; struct mbuf *ifm; for (ifm = (struct mbuf *) slirp->if_fastq.qh_link; (struct quehead *) ifm != &slirp->if_fastq; ifm = ifm->ifq_next) { if (ifm->ifq_so == so) { ifm->ifq_so = NULL; for (ifm = (struct mbuf *) slirp->if_...
true
qemu
7d8246960e03dabf37726c01d231e89dfde9b229
sofree(struct socket *so) { Slirp *slirp = so->slirp; struct mbuf *ifm; for (ifm = (struct mbuf *) slirp->if_fastq.qh_link; (struct quehead *) ifm != &slirp->if_fastq; ifm = ifm->ifq_next) { if (ifm->ifq_so == so) { ifm->ifq_so = NULL; for (ifm = (struct mbuf *) slirp->if_...
{ "code": [], "line_no": [] }
FUNC_0(struct socket *VAR_0) { Slirp *slirp = VAR_0->slirp; struct mbuf *VAR_1; for (VAR_1 = (struct mbuf *) slirp->if_fastq.qh_link; (struct quehead *) VAR_1 != &slirp->if_fastq; VAR_1 = VAR_1->ifq_next) { if (VAR_1->ifq_so == VAR_0) { VAR_1->ifq_so = NULL; for (VAR_1 = (...
[ "FUNC_0(struct socket *VAR_0)\n{", "Slirp *slirp = VAR_0->slirp;", "struct mbuf *VAR_1;", "for (VAR_1 = (struct mbuf *) slirp->if_fastq.qh_link;", "(struct quehead *) VAR_1 != &slirp->if_fastq;", "VAR_1 = VAR_1->ifq_next) {", "if (VAR_1->ifq_so == VAR_0) {", "VAR_1->ifq_so = NULL;", "for (VAR_1 = (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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 46 ], [ 48 ], [ 50 ], [ 52...
21,637
static void close_slave(TeeSlave *tee_slave) { AVFormatContext *avf; unsigned i; avf = tee_slave->avf; for (i = 0; i < avf->nb_streams; ++i) { AVBitStreamFilterContext *bsf_next, *bsf = tee_slave->bsfs[i]; while (bsf) { bsf_next = bsf->next; av_bitstrea...
true
FFmpeg
f9d7e9feec2a0fd7f7930d01876a70a9b8a4a3b9
static void close_slave(TeeSlave *tee_slave) { AVFormatContext *avf; unsigned i; avf = tee_slave->avf; for (i = 0; i < avf->nb_streams; ++i) { AVBitStreamFilterContext *bsf_next, *bsf = tee_slave->bsfs[i]; while (bsf) { bsf_next = bsf->next; av_bitstrea...
{ "code": [ "static void close_slave(TeeSlave *tee_slave)", " for (i = 0; i < avf->nb_streams; ++i) {", " AVBitStreamFilterContext *bsf_next, *bsf = tee_slave->bsfs[i];", " while (bsf) {", " bsf_next = bsf->next;", " av_bitstream_filter_close(bsf);", ...
static void FUNC_0(TeeSlave *VAR_0) { AVFormatContext *avf; unsigned VAR_1; avf = VAR_0->avf; for (VAR_1 = 0; VAR_1 < avf->nb_streams; ++VAR_1) { AVBitStreamFilterContext *bsf_next, *bsf = VAR_0->bsfs[VAR_1]; while (bsf) { bsf_next = bsf->next; av_bitst...
[ "static void FUNC_0(TeeSlave *VAR_0)\n{", "AVFormatContext *avf;", "unsigned VAR_1;", "avf = VAR_0->avf;", "for (VAR_1 = 0; VAR_1 < avf->nb_streams; ++VAR_1) {", "AVBitStreamFilterContext *bsf_next, *bsf = VAR_0->bsfs[VAR_1];", "while (bsf) {", "bsf_next = bsf->next;", "av_bitstream_filter_close(bsf...
[ 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
21,638
static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AC3DecodeContext *s = avctx->priv_data; int blk, ch, err, ret; const uint8_t *channel_map; cons...
true
FFmpeg
7aabeea9ba0e557e834c886de5ea4db8e9a5193d
static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AC3DecodeContext *s = avctx->priv_data; int blk, ch, err, ret; const uint8_t *channel_map; cons...
{ "code": [ " output[ch] = s->output[ch];", " memcpy(s->outptr[channel_map[ch]], output[ch], 1024);", " s->outptr[channel_map[ch]] += AC3_BLOCK_SIZE;" ], "line_no": [ 255, 273, 279 ] }
static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; AC3DecodeContext *s = VAR_0->priv_data; int VAR_6, VAR_7, VAR_8, VAR_9; const uint8_t *VAR_10; const float *VAR_...
[ "static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "AC3DecodeContext *s = VAR_0->priv_data;", "int VAR_6, VAR_7, VAR_8, VAR_9;", "const uint8_t *VAR_10;", "const float *VAR_11[AC3_MAX_CHANNELS];",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 47 ], [ 51 ], [ 53 ], [ 55, 57 ], [ 59 ...
21,639
static int ffserver_parse_config_global(FFServerConfig *config, const char *cmd, const char **p, int line_num) { int val; char arg[1024]; if (!av_strcasecmp(cmd, "Port") || !av_strcasecmp(cmd, "HTTPPort")) { if (!av_strcasecmp(cmd, "Port")) ...
false
FFmpeg
2121e3e1306181acc39316639bb731919af5bab7
static int ffserver_parse_config_global(FFServerConfig *config, const char *cmd, const char **p, int line_num) { int val; char arg[1024]; if (!av_strcasecmp(cmd, "Port") || !av_strcasecmp(cmd, "HTTPPort")) { if (!av_strcasecmp(cmd, "Port")) ...
{ "code": [], "line_no": [] }
static int FUNC_0(FFServerConfig *VAR_0, const char *VAR_1, const char **VAR_2, int VAR_3) { int VAR_4; char VAR_5[1024]; if (!av_strcasecmp(VAR_1, "Port") || !av_strcasecmp(VAR_1, "HTTPPort")) { if (!av_strcasecmp(VAR_1, "Port")) WARNING("P...
[ "static int FUNC_0(FFServerConfig *VAR_0, const char *VAR_1,\nconst char **VAR_2, int VAR_3)\n{", "int VAR_4;", "char VAR_5[1024];", "if (!av_strcasecmp(VAR_1, \"Port\") || !av_strcasecmp(VAR_1, \"HTTPPort\")) {", "if (!av_strcasecmp(VAR_1, \"Port\"))\nWARNING(\"Port option is deprecated, use HTTPPort inste...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ...
21,640
int ff_h264_fill_default_ref_list(H264Context *h) { int i, len; if (h->slice_type_nos == AV_PICTURE_TYPE_B) { Picture *sorted[32]; int cur_poc, list; int lens[2]; if (FIELD_PICTURE(h)) cur_poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM...
false
FFmpeg
a553c6a347d3d28d7ee44c3df3d5c4ee780dba23
int ff_h264_fill_default_ref_list(H264Context *h) { int i, len; if (h->slice_type_nos == AV_PICTURE_TYPE_B) { Picture *sorted[32]; int cur_poc, list; int lens[2]; if (FIELD_PICTURE(h)) cur_poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM...
{ "code": [], "line_no": [] }
int FUNC_0(H264Context *VAR_0) { int VAR_1, VAR_2; if (VAR_0->slice_type_nos == AV_PICTURE_TYPE_B) { Picture *sorted[32]; int VAR_3, VAR_4; int VAR_5[2]; if (FIELD_PICTURE(VAR_0)) VAR_3 = VAR_0->cur_pic_ptr->field_poc[VAR_0->picture_structure == PICT_BOTTO...
[ "int FUNC_0(H264Context *VAR_0)\n{", "int VAR_1, VAR_2;", "if (VAR_0->slice_type_nos == AV_PICTURE_TYPE_B) {", "Picture *sorted[32];", "int VAR_3, VAR_4;", "int VAR_5[2];", "if (FIELD_PICTURE(VAR_0))\nVAR_3 = VAR_0->cur_pic_ptr->field_poc[VAR_0->picture_structure == PICT_BOTTOM_FIELD];", "else\nVAR_3 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51 ], ...
21,642
static int check_strtox_error(const char *p, char *endptr, const char **next, int err) { /* If no conversion was performed, prefer BSD behavior over glibc * behavior. */ if (err == 0 && endptr == p) { err = EINVAL; } if (!next && *endptr) { ...
true
qemu
4295f879becfbbb9f4330489311586b96915d920
static int check_strtox_error(const char *p, char *endptr, const char **next, int err) { if (err == 0 && endptr == p) { err = EINVAL; } if (!next && *endptr) { return -EINVAL; } if (next) { *next = endptr; } return -...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, char *VAR_1, const char **VAR_2, int VAR_3) { if (VAR_3 == 0 && VAR_1 == VAR_0) { VAR_3 = EINVAL; } if (!VAR_2 && *VAR_1) { return -EINVAL; } if (VAR_2) { *VAR_2 = VAR_1; } return...
[ "static int FUNC_0(const char *VAR_0, char *VAR_1, const char **VAR_2,\nint VAR_3)\n{", "if (VAR_3 == 0 && VAR_1 == VAR_0) {", "VAR_3 = EINVAL;", "}", "if (!VAR_2 && *VAR_1) {", "return -EINVAL;", "}", "if (VAR_2) {", "*VAR_2 = VAR_1;", "}", "return -VAR_3;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
21,643
static void ram_decompress_close(RamDecompressState *s) { inflateEnd(&s->zstream); }
true
qemu
94fb0909645de18481cc726ee0ec9b5afa861394
static void ram_decompress_close(RamDecompressState *s) { inflateEnd(&s->zstream); }
{ "code": [ "static void ram_decompress_close(RamDecompressState *s)", " inflateEnd(&s->zstream);" ], "line_no": [ 1, 5 ] }
static void FUNC_0(RamDecompressState *VAR_0) { inflateEnd(&VAR_0->zstream); }
[ "static void FUNC_0(RamDecompressState *VAR_0)\n{", "inflateEnd(&VAR_0->zstream);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
21,644
static void ahci_hba_enable(AHCIQState *ahci) { /* Bits of interest in this section: * GHC.AE Global Host Control / AHCI Enable * PxCMD.ST Port Command: Start * PxCMD.SUD "Spin Up Device" * PxCMD.POD "Power On Device" * PxCMD.FRE "FIS Receive Enable" * PxCMD.FR "FIS ...
true
qemu
9a75b0a037e3a8030992244353f17b62f6daf2ab
static void ahci_hba_enable(AHCIQState *ahci) { uint32_t reg, ports_impl; uint16_t i; uint8_t num_cmd_slots; g_assert(ahci != NULL); ahci_set(ahci, AHCI_GHC, AHCI_GHC_AE); reg = ahci_rreg(ahci, AHCI_GHC); ASSERT_BIT_SET(reg, AHCI_GHC_AE); ...
{ "code": [ " g_assert(ahci != NULL);", "static void ahci_hba_enable(AHCIQState *ahci)", " uint32_t reg, ports_impl;", " uint16_t i;", " uint8_t num_cmd_slots;", " g_assert(ahci != NULL);", " ahci_set(ahci, AHCI_GHC, AHCI_GHC_AE);", " reg = ahci_rreg(ahci, AHCI_GHC...
static void FUNC_0(AHCIQState *VAR_0) { uint32_t reg, ports_impl; uint16_t i; uint8_t num_cmd_slots; g_assert(VAR_0 != NULL); ahci_set(VAR_0, AHCI_GHC, AHCI_GHC_AE); reg = ahci_rreg(VAR_0, AHCI_GHC); ASSERT_BIT_SET(reg, AHCI_GHC_AE); VAR_0...
[ "static void FUNC_0(AHCIQState *VAR_0)\n{", "uint32_t reg, ports_impl;", "uint16_t i;", "uint8_t num_cmd_slots;", "g_assert(VAR_0 != NULL);", "ahci_set(VAR_0, AHCI_GHC, AHCI_GHC_AE);", "reg = ahci_rreg(VAR_0, AHCI_GHC);", "ASSERT_BIT_SET(reg, AHCI_GHC_AE);", "VAR_0->cap = ahci_rreg(VAR_0, AHCI_CAP);...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1...
[ [ 1, 3 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ], [ 63 ], [ 67 ], [ 69 ], [ 71 ], [ 73 ], [ 77 ], [ 81 ], [ ...
21,645
static int decode_p_frame(FourXContext *f, const uint8_t *buf, int length) { int x, y; const int width = f->avctx->width; const int height = f->avctx->height; uint16_t *src = (uint16_t *)f->last_picture.data[0]; uint16_t *dst = (uint16_t *)f->current_picture.data[0]; const int stri...
true
FFmpeg
aed128f07d142a7afc51f1f0c572a31b3b9bc2a6
static int decode_p_frame(FourXContext *f, const uint8_t *buf, int length) { int x, y; const int width = f->avctx->width; const int height = f->avctx->height; uint16_t *src = (uint16_t *)f->last_picture.data[0]; uint16_t *dst = (uint16_t *)f->current_picture.data[0]; const int stri...
{ "code": [ " if (bitstream_size > length ||" ], "line_no": [ 51 ] }
static int FUNC_0(FourXContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { int VAR_3, VAR_4; const int VAR_5 = VAR_0->avctx->VAR_5; const int VAR_6 = VAR_0->avctx->VAR_6; uint16_t *src = (uint16_t *)VAR_0->last_picture.data[0]; uint16_t *dst = (uint16_t *)VAR_0->current_picture.data[0]; ...
[ "static int FUNC_0(FourXContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4;", "const int VAR_5 = VAR_0->avctx->VAR_5;", "const int VAR_6 = VAR_0->avctx->VAR_6;", "uint16_t *src = (uint16_t *)VAR_0->last_picture.data[0];", "uint16_t *dst = (uint16_t *)VAR_0->current_picture.data...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
21,646
void *kqemu_vmalloc(size_t size) { static int phys_ram_fd = -1; static int phys_ram_size = 0; const char *tmpdir; char phys_ram_file[1024]; void *ptr; struct statfs stfs; if (phys_ram_fd < 0) { tmpdir = getenv("QEMU_TMPDIR"); if (!tmpdir) tmpdir = "/d...
true
qemu
243a273ee0168fc373f342479ae92fe3028b45c1
void *kqemu_vmalloc(size_t size) { static int phys_ram_fd = -1; static int phys_ram_size = 0; const char *tmpdir; char phys_ram_file[1024]; void *ptr; struct statfs stfs; if (phys_ram_fd < 0) { tmpdir = getenv("QEMU_TMPDIR"); if (!tmpdir) tmpdir = "/d...
{ "code": [ " if (mkstemp(phys_ram_file) < 0) {", " if (mkstemp(phys_ram_file) < 0) {", " phys_ram_fd = open(phys_ram_file, O_CREAT | O_TRUNC | O_RDWR, 0600);", " if (phys_ram_fd < 0) {", " fprintf(stderr, \"Could not open temporary memory file '%s'\\n\",...
void *FUNC_0(size_t VAR_0) { static int VAR_1 = -1; static int VAR_2 = 0; const char *VAR_3; char VAR_4[1024]; void *VAR_5; struct statfs VAR_6; if (VAR_1 < 0) { VAR_3 = getenv("QEMU_TMPDIR"); if (!VAR_3) VAR_3 = "/dev/shm"; if (statfs(VAR_3,...
[ "void *FUNC_0(size_t VAR_0)\n{", "static int VAR_1 = -1;", "static int VAR_2 = 0;", "const char *VAR_3;", "char VAR_4[1024];", "void *VAR_5;", "struct statfs VAR_6;", "if (VAR_1 < 0) {", "VAR_3 = getenv(\"QEMU_TMPDIR\");", "if (!VAR_3)\nVAR_3 = \"/dev/shm\";", "if (statfs(VAR_3, &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, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45, 47 ], [...
21,647
static uint64_t qvirtio_pci_config_readq(QVirtioDevice *d, uint64_t off) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; uint64_t val; val = qpci_io_readq(dev->pdev, CONFIG_BASE(dev) + off); if (qvirtio_is_big_endian(d)) { val = bswap64(val); } return val; }
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static uint64_t qvirtio_pci_config_readq(QVirtioDevice *d, uint64_t off) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; uint64_t val; val = qpci_io_readq(dev->pdev, CONFIG_BASE(dev) + off); if (qvirtio_is_big_endian(d)) { val = bswap64(val); } return val; }
{ "code": [ " val = qpci_io_readq(dev->pdev, CONFIG_BASE(dev) + off);" ], "line_no": [ 11 ] }
static uint64_t FUNC_0(QVirtioDevice *d, uint64_t off) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; uint64_t val; val = qpci_io_readq(dev->pdev, CONFIG_BASE(dev) + off); if (qvirtio_is_big_endian(d)) { val = bswap64(val); } return val; }
[ "static uint64_t FUNC_0(QVirtioDevice *d, uint64_t off)\n{", "QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;", "uint64_t val;", "val = qpci_io_readq(dev->pdev, CONFIG_BASE(dev) + off);", "if (qvirtio_is_big_endian(d)) {", "val = bswap64(val);", "}", "return val;", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
21,648
void video_decode_example(const char *outfilename, const char *filename) { AVCodec *codec; AVCodecContext *c= NULL; int frame, size, got_picture, len; FILE *f; AVFrame *picture; uint8_t inbuf[INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE], *inbuf_ptr; char buf[1024]; /* set end of...
true
FFmpeg
1c0e205fab4bd5bbfa0399af2cd5e281b414b3d5
void video_decode_example(const char *outfilename, const char *filename) { AVCodec *codec; AVCodecContext *c= NULL; int frame, size, got_picture, len; FILE *f; AVFrame *picture; uint8_t inbuf[INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE], *inbuf_ptr; char buf[1024]; memset(...
{ "code": [ " f = fopen(filename, \"r\");", " f = fopen(filename, \"r\");" ], "line_no": [ 81, 81 ] }
void FUNC_0(const char *VAR_0, const char *VAR_1) { AVCodec *codec; AVCodecContext *c= NULL; int VAR_2, VAR_3, VAR_4, VAR_5; FILE *f; AVFrame *picture; uint8_t inbuf[INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE], *inbuf_ptr; char VAR_6[1024]; memset(inbuf + INBUF_SIZE, 0, F...
[ "void FUNC_0(const char *VAR_0, const char *VAR_1)\n{", "AVCodec *codec;", "AVCodecContext *c= NULL;", "int VAR_2, VAR_3, VAR_4, VAR_5;", "FILE *f;", "AVFrame *picture;", "uint8_t inbuf[INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE], *inbuf_ptr;", "char VAR_6[1024];", "memset(inbuf + INBUF_SIZE, 0, FF_I...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51, 53 ], [ 67 ], [...
21,649
static int rebuild_refcount_structure(BlockDriverState *bs, BdrvCheckResult *res, uint16_t **refcount_table, int64_t *nb_clusters) { BDRVQcowState *s = bs->opaque; int64_t first_free_cluster =...
true
qemu
7453c96b78c2b09aa72924f933bb9616e5474194
static int rebuild_refcount_structure(BlockDriverState *bs, BdrvCheckResult *res, uint16_t **refcount_table, int64_t *nb_clusters) { BDRVQcowState *s = bs->opaque; int64_t first_free_cluster =...
{ "code": [ " if (!(*refcount_table)[cluster]) {", " uint16_t **refcount_table,", " uint16_t *on_disk_refblock;", " int i, ret = 0;", " if (!(*refcount_table)[cluster]) {", " on_disk_refblock = qemu_blockalign0(bs->file, s->cluste...
static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, uint16_t **VAR_2, int64_t *VAR_3) { BDRVQcowState *s = VAR_0->opaque; int64_t first_free_cluster = 0, reftable_offset = -1, c...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nBdrvCheckResult *VAR_1,\nuint16_t **VAR_2,\nint64_t *VAR_3)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int64_t first_free_cluster = 0, reftable_offset = -1, cluster = 0;", "int64_t refblock_offset, refblock_start, refblock_index;", "uint32_t reftable_size = 0;", ...
[ 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
21,650
static void vp8_idct_dc_add4uv_c(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride) { vp8_idct_dc_add_c(dst + stride * 0 + 0, block[0], stride); vp8_idct_dc_add_c(dst + stride * 0 + 4, block[1], stride); vp8_idct_dc_add_c(dst + stride * 4 + 0, block[2], stride); ...
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
static void vp8_idct_dc_add4uv_c(uint8_t *dst, int16_t block[4][16], ptrdiff_t stride) { vp8_idct_dc_add_c(dst + stride * 0 + 0, block[0], stride); vp8_idct_dc_add_c(dst + stride * 0 + 4, block[1], stride); vp8_idct_dc_add_c(dst + stride * 4 + 0, block[2], stride); ...
{ "code": [ "static void vp8_idct_dc_add4uv_c(uint8_t *dst, int16_t block[4][16],", " ptrdiff_t stride)", " vp8_idct_dc_add_c(dst + stride * 0 + 0, block[0], stride);", " vp8_idct_dc_add_c(dst + stride * 0 + 4, block[1], stride);", " vp8_idct_dc_add_c(dst +...
static void FUNC_0(uint8_t *VAR_0, int16_t VAR_1[4][16], ptrdiff_t VAR_2) { vp8_idct_dc_add_c(VAR_0 + VAR_2 * 0 + 0, VAR_1[0], VAR_2); vp8_idct_dc_add_c(VAR_0 + VAR_2 * 0 + 4, VAR_1[1], VAR_2); vp8_idct_dc_add_c(VAR_0 + VAR_2 * 4 + 0, VAR_1[2], VAR_2); vp8_idct_dc_...
[ "static void FUNC_0(uint8_t *VAR_0, int16_t VAR_1[4][16],\nptrdiff_t VAR_2)\n{", "vp8_idct_dc_add_c(VAR_0 + VAR_2 * 0 + 0, VAR_1[0], VAR_2);", "vp8_idct_dc_add_c(VAR_0 + VAR_2 * 0 + 4, VAR_1[1], VAR_2);", "vp8_idct_dc_add_c(VAR_0 + VAR_2 * 4 + 0, VAR_1[2], VAR_2);", "vp8_idct_dc_add_c(VAR_0 + VAR_2 * 4 + 4,...
[ 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
21,651
static void fw_cfg_mem_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = fw_cfg_mem_realize; dc->props = fw_cfg_mem_properties; }
true
qemu
e4f4fb1eca795e36f363b4647724221e774523c1
static void fw_cfg_mem_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = fw_cfg_mem_realize; dc->props = fw_cfg_mem_properties; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = fw_cfg_mem_realize; dc->props = fw_cfg_mem_properties; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = fw_cfg_mem_realize;", "dc->props = fw_cfg_mem_properties;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 18 ] ]
21,652
int xen_pt_msix_init(XenPCIPassthroughState *s, uint32_t base) { uint8_t id = 0; uint16_t control = 0; uint32_t table_off = 0; int i, total_entries, bar_index; XenHostPCIDevice *hd = &s->real_device; PCIDevice *d = &s->dev; int fd = -1; XenPTMSIX *msix = NULL; int rc = 0; ...
true
qemu
64c7c1175b4e3e6fe005934cde63259d8adad392
int xen_pt_msix_init(XenPCIPassthroughState *s, uint32_t base) { uint8_t id = 0; uint16_t control = 0; uint32_t table_off = 0; int i, total_entries, bar_index; XenHostPCIDevice *hd = &s->real_device; PCIDevice *d = &s->dev; int fd = -1; XenPTMSIX *msix = NULL; int rc = 0; ...
{ "code": [ " xen_host_pci_get_word(hd, base + PCI_MSIX_FLAGS, &control);", " xen_host_pci_get_long(hd, base + PCI_MSIX_TABLE, &table_off);" ], "line_no": [ 45, 83 ] }
int FUNC_0(XenPCIPassthroughState *VAR_0, uint32_t VAR_1) { uint8_t id = 0; uint16_t control = 0; uint32_t table_off = 0; int VAR_2, VAR_3, VAR_4; XenHostPCIDevice *hd = &VAR_0->real_device; PCIDevice *d = &VAR_0->dev; int VAR_5 = -1; XenPTMSIX *msix = NULL; int VAR_6 = 0; ...
[ "int FUNC_0(XenPCIPassthroughState *VAR_0, uint32_t VAR_1)\n{", "uint8_t id = 0;", "uint16_t control = 0;", "uint32_t table_off = 0;", "int VAR_2, VAR_3, VAR_4;", "XenHostPCIDevice *hd = &VAR_0->real_device;", "PCIDevice *d = &VAR_0->dev;", "int VAR_5 = -1;", "XenPTMSIX *msix = NULL;", "int VAR_6 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ...
21,653
static int64_t archipelago_volume_info(BDRVArchipelagoState *s) { uint64_t size; int ret, targetlen; struct xseg_request *req; struct xseg_reply_info *xinfo; AIORequestData *reqdata = g_malloc(sizeof(AIORequestData)); const char *volname = s->volname; targetlen = strlen(volname); ...
true
qemu
5839e53bbc0fec56021d758aab7610df421ed8c8
static int64_t archipelago_volume_info(BDRVArchipelagoState *s) { uint64_t size; int ret, targetlen; struct xseg_request *req; struct xseg_reply_info *xinfo; AIORequestData *reqdata = g_malloc(sizeof(AIORequestData)); const char *volname = s->volname; targetlen = strlen(volname); ...
{ "code": [ " AIORequestData *reqdata = g_malloc(sizeof(AIORequestData));", " AIORequestData *reqdata = g_malloc(sizeof(AIORequestData));" ], "line_no": [ 13, 13 ] }
static int64_t FUNC_0(BDRVArchipelagoState *s) { uint64_t size; int VAR_0, VAR_1; struct xseg_request *VAR_2; struct xseg_reply_info *VAR_3; AIORequestData *reqdata = g_malloc(sizeof(AIORequestData)); const char *VAR_4 = s->VAR_4; VAR_1 = strlen(VAR_4); VAR_2 = xseg_get_reques...
[ "static int64_t FUNC_0(BDRVArchipelagoState *s)\n{", "uint64_t size;", "int VAR_0, VAR_1;", "struct xseg_request *VAR_2;", "struct xseg_reply_info *VAR_3;", "AIORequestData *reqdata = g_malloc(sizeof(AIORequestData));", "const char *VAR_4 = s->VAR_4;", "VAR_1 = strlen(VAR_4);", "VAR_2 = xseg_get_req...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
21,654
static void openpic_set_irq(void *opaque, int n_IRQ, int level) { OpenPICState *opp = opaque; IRQSource *src; src = &opp->src[n_IRQ]; DPRINTF("openpic: set irq %d = %d ipvp=%08x\n", n_IRQ, level, src->ipvp); if (src->ipvp & IPVP_SENSE_MASK) { /* level-sensitive irq */ ...
true
qemu
4c4f0e4801ac79632d03867c88aafc90b4ce503c
static void openpic_set_irq(void *opaque, int n_IRQ, int level) { OpenPICState *opp = opaque; IRQSource *src; src = &opp->src[n_IRQ]; DPRINTF("openpic: set irq %d = %d ipvp=%08x\n", n_IRQ, level, src->ipvp); if (src->ipvp & IPVP_SENSE_MASK) { src->pending = le...
{ "code": [ " DPRINTF(\"openpic: set irq %d = %d ipvp=%08x\\n\"," ], "line_no": [ 13 ] }
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { OpenPICState *opp = VAR_0; IRQSource *src; src = &opp->src[VAR_1]; DPRINTF("openpic: set irq %d = %d ipvp=%08x\n", VAR_1, VAR_2, src->ipvp); if (src->ipvp & IPVP_SENSE_MASK) { src->pending = VAR_2; ...
[ "static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "OpenPICState *opp = VAR_0;", "IRQSource *src;", "src = &opp->src[VAR_1];", "DPRINTF(\"openpic: set irq %d = %d ipvp=%08x\\n\",\nVAR_1, VAR_2, src->ipvp);", "if (src->ipvp & IPVP_SENSE_MASK) {", "src->pending = VAR_2;", "if (!VAR_2) {", "sr...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
21,655
static int libschroedinger_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int64_t pts = avpkt->pts; SchroTag *tag; ...
true
FFmpeg
220b24c7c97dc033ceab1510549f66d0e7b52ef1
static int libschroedinger_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int64_t pts = avpkt->pts; SchroTag *tag; ...
{ "code": [ " SchroDecoderParams *p_schro_params = avctx->priv_data;", " SchroDecoderParams *p_schro_params = avctx->priv_data;", " SchroDecoder *decoder = p_schro_params->decoder;", "static int libschroedinger_decode_frame(AVCodecContext *avctx,", " ...
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; int64_t pts = VAR_3->pts; SchroTag *tag; SchroDecoderParams *p...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "int64_t pts = VAR_3->pts;", "SchroTag *tag;", "SchroDecoderParams *p_schro_params = VAR_0->priv_data;", "SchroDecoder *decoder = p_schro_params...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ...
21,656
static void qemu_tcg_wait_io_event(CPUState *cpu) { while (all_cpu_threads_idle()) { stop_tcg_kick_timer(); qemu_cond_wait(cpu->halt_cond, &qemu_global_mutex); } start_tcg_kick_timer(); CPU_FOREACH(cpu) { qemu_wait_io_event_common(cpu); } }
true
qemu
372579427a5040a26dfee78464b50e2bdf27ef26
static void qemu_tcg_wait_io_event(CPUState *cpu) { while (all_cpu_threads_idle()) { stop_tcg_kick_timer(); qemu_cond_wait(cpu->halt_cond, &qemu_global_mutex); } start_tcg_kick_timer(); CPU_FOREACH(cpu) { qemu_wait_io_event_common(cpu); } }
{ "code": [ " while (all_cpu_threads_idle()) {", " CPU_FOREACH(cpu) {", " qemu_wait_io_event_common(cpu);" ], "line_no": [ 5, 19, 21 ] }
static void FUNC_0(CPUState *VAR_0) { while (all_cpu_threads_idle()) { stop_tcg_kick_timer(); qemu_cond_wait(VAR_0->halt_cond, &qemu_global_mutex); } start_tcg_kick_timer(); CPU_FOREACH(VAR_0) { qemu_wait_io_event_common(VAR_0); } }
[ "static void FUNC_0(CPUState *VAR_0)\n{", "while (all_cpu_threads_idle()) {", "stop_tcg_kick_timer();", "qemu_cond_wait(VAR_0->halt_cond, &qemu_global_mutex);", "}", "start_tcg_kick_timer();", "CPU_FOREACH(VAR_0) {", "qemu_wait_io_event_common(VAR_0);", "}", "}" ]
[ 0, 1, 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
21,657
TCGOp *tcg_op_insert_after(TCGContext *s, TCGOp *old_op, TCGOpcode opc, int nargs) { int oi = s->gen_next_op_idx; int prev = old_op - s->gen_op_buf; int next = old_op->next; TCGOp *new_op; tcg_debug_assert(oi < OPC_BUF_SIZE); s->gen_next_op_idx = oi + 1; ...
true
qemu
15fa08f8451babc88d733bd411d4c94976f9d0f8
TCGOp *tcg_op_insert_after(TCGContext *s, TCGOp *old_op, TCGOpcode opc, int nargs) { int oi = s->gen_next_op_idx; int prev = old_op - s->gen_op_buf; int next = old_op->next; TCGOp *new_op; tcg_debug_assert(oi < OPC_BUF_SIZE); s->gen_next_op_idx = oi + 1; ...
{ "code": [ " tcg_debug_assert(oi < OPC_BUF_SIZE);", " int oi = s->gen_next_op_idx;", " TCGOp *new_op;", " tcg_debug_assert(oi < OPC_BUF_SIZE);", " s->gen_next_op_idx = oi + 1;", " new_op = &s->gen_op_buf[oi];", " *new_op = (TCGOp){", " .opc = opc,", " ...
TCGOp *FUNC_0(TCGContext *s, TCGOp *old_op, TCGOpcode opc, int nargs) { int VAR_0 = s->gen_next_op_idx; int VAR_1 = old_op - s->gen_op_buf; int VAR_2 = old_op->VAR_2; TCGOp *new_op; tcg_debug_assert(VAR_0 < OPC_BUF_SIZE); s->gen_next_op_idx = VAR_0 + 1; ...
[ "TCGOp *FUNC_0(TCGContext *s, TCGOp *old_op,\nTCGOpcode opc, int nargs)\n{", "int VAR_0 = s->gen_next_op_idx;", "int VAR_1 = old_op - s->gen_op_buf;", "int VAR_2 = old_op->VAR_2;", "TCGOp *new_op;", "tcg_debug_assert(VAR_0 < OPC_BUF_SIZE);", "s->gen_next_op_idx = VAR_0 + 1;", "new_op = &s->gen_op_buf[...
[ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27, 29, 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ] ]
21,658
static inline bool check_lba_range(SCSIDiskState *s, uint64_t sector_num, uint32_t nb_sectors) { /* * The first line tests that no overflow happens when computing the last * sector. The second line tests that the last accessed sector is in * range. */ ...
true
qemu
12ca76fc48081b3a0ad1a70546abfcf198aedfc4
static inline bool check_lba_range(SCSIDiskState *s, uint64_t sector_num, uint32_t nb_sectors) { return (sector_num <= sector_num + nb_sectors && sector_num + nb_sectors - 1 <= s->qdev.max_lba); }
{ "code": [ " sector_num + nb_sectors - 1 <= s->qdev.max_lba);" ], "line_no": [ 19 ] }
static inline bool FUNC_0(SCSIDiskState *s, uint64_t sector_num, uint32_t nb_sectors) { return (sector_num <= sector_num + nb_sectors && sector_num + nb_sectors - 1 <= s->qdev.max_lba); }
[ "static inline bool FUNC_0(SCSIDiskState *s,\nuint64_t sector_num, uint32_t nb_sectors)\n{", "return (sector_num <= sector_num + nb_sectors &&\nsector_num + nb_sectors - 1 <= s->qdev.max_lba);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 17, 19 ], [ 21 ] ]
21,659
static av_cold int rv30_decode_init(AVCodecContext *avctx) { RV34DecContext *r = avctx->priv_data; int ret; r->rv30 = 1; if ((ret = ff_rv34_decode_init(avctx)) < 0) return ret; if(avctx->extradata_size < 2){ av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n"); ...
false
FFmpeg
a6a2282c25abe43e352010a7c3fbc92994c0bc1c
static av_cold int rv30_decode_init(AVCodecContext *avctx) { RV34DecContext *r = avctx->priv_data; int ret; r->rv30 = 1; if ((ret = ff_rv34_decode_init(avctx)) < 0) return ret; if(avctx->extradata_size < 2){ av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n"); ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { RV34DecContext *r = avctx->priv_data; int VAR_0; r->rv30 = 1; if ((VAR_0 = ff_rv34_decode_init(avctx)) < 0) return VAR_0; if(avctx->extradata_size < 2){ av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n"); ret...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "RV34DecContext *r = avctx->priv_data;", "int VAR_0;", "r->rv30 = 1;", "if ((VAR_0 = ff_rv34_decode_init(avctx)) < 0)\nreturn VAR_0;", "if(avctx->extradata_size < 2){", "av_log(avctx, AV_LOG_ERROR, \"Extradata is too small.\\n\");", "return -1;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
21,660
static int jpeg2000_decode_packets_po_iteration(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, int RSpoc, int CSpoc, int LYEpoc, int REpoc, int CEpoc, int Ppoc) { int ret = 0; ...
false
FFmpeg
b75c0a72ed3bb5fab0a0b66ede94f6de887db585
static int jpeg2000_decode_packets_po_iteration(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, int RSpoc, int CSpoc, int LYEpoc, int REpoc, int CEpoc, int Ppoc) { int ret = 0; ...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000Tile *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { int VAR_8 = 0; int VAR_9, VAR_10,...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000Tile *VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6,\nint VAR_7)\n{", "int VAR_8 = 0;", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;", "int VAR_14, VAR_15;", "int VAR_16 = 0;", "int VAR_17, VAR_18;", "switch (VAR_7) {", "case JP...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [...
21,661
static av_cold int vmdaudio_decode_init(AVCodecContext *avctx) { VmdAudioContext *s = avctx->priv_data; if (avctx->channels < 1 || avctx->channels > 2) { av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n"); return AVERROR(EINVAL); } if (avctx->block_align < 1) { ...
false
FFmpeg
c2409a7c5b1c1f43ee8b00c13ed41edc0321db0b
static av_cold int vmdaudio_decode_init(AVCodecContext *avctx) { VmdAudioContext *s = avctx->priv_data; if (avctx->channels < 1 || avctx->channels > 2) { av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n"); return AVERROR(EINVAL); } if (avctx->block_align < 1) { ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { VmdAudioContext *s = avctx->priv_data; if (avctx->channels < 1 || avctx->channels > 2) { av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n"); return AVERROR(EINVAL); } if (avctx->block_align < 1) { av_log(avctx,...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "VmdAudioContext *s = avctx->priv_data;", "if (avctx->channels < 1 || avctx->channels > 2) {", "av_log(avctx, AV_LOG_ERROR, \"invalid number of channels\\n\");", "return AVERROR(EINVAL);", "}", "if (avctx->block_align < 1) {", "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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 55, 57...
21,662
static int sunrast_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = avpkt->data + avpkt->size; AVFrame * const p = data; unsigned int w, h, depth, type, mapty...
false
FFmpeg
37138338ff602803d174b13fecd363a083bc2f9a
static int sunrast_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = avpkt->data + avpkt->size; AVFrame * const p = data; unsigned int w, h, depth, type, mapty...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size; AVFrame * const p = VAR_1; unsigned int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VA...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size;", "AVFrame * const p = VAR_1;", "unsigned int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
21,663
static int xan_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int ret, buf_size = avpkt->size; XanContext *s = avctx->priv_data; if (avctx->codec->id == CODEC_ID_XAN_WC3...
false
FFmpeg
0872bb23b4bd2d94a8ba91070f706d1bc1c3ced8
static int xan_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int ret, buf_size = avpkt->size; XanContext *s = avctx->priv_data; if (avctx->codec->id == CODEC_ID_XAN_WC3...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5, VAR_6 = VAR_3->VAR_10; XanContext *s = VAR_0->priv_data; if (VAR_0->codec->id == CODEC_ID_XAN_WC3) { ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5, VAR_6 = VAR_3->VAR_10;", "XanContext *s = VAR_0->priv_data;", "if (VAR_0->codec->id == CODEC_ID_XAN_WC3) {", "const uint8_t *VAR_7 = VAR_4 + VAR_6;", "int VAR_8 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,...
21,666
av_cold int MPV_encode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int i; int chroma_h_shift, chroma_v_shift; MPV_encode_defaults(s); switch (avctx->codec_id) { case CODEC_ID_MPEG2VIDEO: if(avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT...
false
FFmpeg
a1a63143f182729c40037b4fb8d8f9d84039e7ab
av_cold int MPV_encode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int i; int chroma_h_shift, chroma_v_shift; MPV_encode_defaults(s); switch (avctx->codec_id) { case CODEC_ID_MPEG2VIDEO: if(avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int VAR_0; int VAR_1, VAR_2; MPV_encode_defaults(s); switch (avctx->codec_id) { case CODEC_ID_MPEG2VIDEO: if(avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT_YUV422P){ ...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "MpegEncContext *s = avctx->priv_data;", "int VAR_0;", "int VAR_1, VAR_2;", "MPV_encode_defaults(s);", "switch (avctx->codec_id) {", "case CODEC_ID_MPEG2VIDEO:\nif(avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT_YUV422P){", "av_log(avctx, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33, 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [...
21,667
static void read_sbr_envelope(SpectralBandReplication *sbr, GetBitContext *gb, SBRData *ch_data, int ch) { int bits; int i, j, k; VLC_TYPE (*t_huff)[2], (*f_huff)[2]; int t_lav, f_lav; const int delta = (ch == 1 && sbr->bs_coupling == 1) + 1; const int odd =...
false
FFmpeg
625b582d5a9196c582e7702b542b3e0face30ccf
static void read_sbr_envelope(SpectralBandReplication *sbr, GetBitContext *gb, SBRData *ch_data, int ch) { int bits; int i, j, k; VLC_TYPE (*t_huff)[2], (*f_huff)[2]; int t_lav, f_lav; const int delta = (ch == 1 && sbr->bs_coupling == 1) + 1; const int odd =...
{ "code": [], "line_no": [] }
static void FUNC_0(SpectralBandReplication *VAR_0, GetBitContext *VAR_1, SBRData *VAR_2, int VAR_3) { int VAR_4; int VAR_5, VAR_6, VAR_7; VLC_TYPE (*t_huff)[2], (*f_huff)[2]; int VAR_8, VAR_9; const int VAR_10 = (VAR_3 == 1 && VAR_0->bs_coupling == 1) + 1; c...
[ "static void FUNC_0(SpectralBandReplication *VAR_0, GetBitContext *VAR_1,\nSBRData *VAR_2, int VAR_3)\n{", "int VAR_4;", "int VAR_5, VAR_6, VAR_7;", "VLC_TYPE (*t_huff)[2], (*f_huff)[2];", "int VAR_8, VAR_9;", "const int VAR_10 = (VAR_3 == 1 && VAR_0->bs_coupling == 1) + 1;", "const int VAR_11 = VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
21,668
static int pva_read_packet(AVFormatContext *s, AVPacket *pkt) { ByteIOContext *pb = s->pb; PVAContext *pvactx = s->priv_data; int ret, syncword, streamid, reserved, flags, length, pts_flag; int64_t pva_pts = AV_NOPTS_VALUE; recover: syncword = get_be16(pb); streamid = get_byte(pb); ...
false
FFmpeg
e661f760517b5843903941d5803de1890ebd8b1d
static int pva_read_packet(AVFormatContext *s, AVPacket *pkt) { ByteIOContext *pb = s->pb; PVAContext *pvactx = s->priv_data; int ret, syncword, streamid, reserved, flags, length, pts_flag; int64_t pva_pts = AV_NOPTS_VALUE; recover: syncword = get_be16(pb); streamid = get_byte(pb); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { ByteIOContext *pb = VAR_0->pb; PVAContext *pvactx = VAR_0->priv_data; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; int64_t pva_pts = AV_NOPTS_VALUE; recover: VAR_3 = get_be16(pb); VAR_4 = get_byte(pb); get_byte(pb...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) {", "ByteIOContext *pb = VAR_0->pb;", "PVAContext *pvactx = VAR_0->priv_data;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "int64_t pva_pts = AV_NOPTS_VALUE;", "recover:\nVAR_3 = get_be16(pb);", "VAR_4 = get_byte(pb);", "get_byte...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
21,669
static int decode_blck(uint8_t *frame, int width, int height, const uint8_t *src, const uint8_t *src_end) { memset(frame, 0, width * height); return 0; }
true
FFmpeg
29b0d94b43ac960cb442049a5d737a3386ff0337
static int decode_blck(uint8_t *frame, int width, int height, const uint8_t *src, const uint8_t *src_end) { memset(frame, 0, width * height); return 0; }
{ "code": [ " const uint8_t *src, const uint8_t *src_end)", " const uint8_t *src, const uint8_t *src_end)", " const uint8_t *src, const uint8_t *src_end)", " const uint8_t *src, const uint8_t *src_end)", " ...
static int FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, const uint8_t *VAR_4) { memset(VAR_0, 0, VAR_1 * VAR_2); return 0; }
[ "static int FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,\nconst uint8_t *VAR_3, const uint8_t *VAR_4)\n{", "memset(VAR_0, 0, VAR_1 * VAR_2);", "return 0;", "}" ]
[ 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
21,671
static CharDriverState *qmp_chardev_open_socket(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { CharDriverState *chr; TCPCharDriver *...
true
qemu
a8fb542705ac7e0dcf00908bc47bf49cdd058abe
static CharDriverState *qmp_chardev_open_socket(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { CharDriverState *chr; TCPCharDriver *...
{ "code": [ " g_free(s);", " qemu_chr_free_common(chr);", " return NULL;" ], "line_no": [ 109, 111, 37 ] }
static CharDriverState *FUNC_0(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { CharDriverState *chr; TCPCharDriver *s; ChardevSo...
[ "static CharDriverState *FUNC_0(const char *id,\nChardevBackend *backend,\nChardevReturn *ret,\nError **errp)\n{", "CharDriverState *chr;", "TCPCharDriver *s;", "ChardevSocket *sock = backend->u.socket;", "SocketAddress *addr = sock->addr;", "bool do_nodelay = sock->has_nodelay ? sock->nodelay : false...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
21,672
static void pci_vpb_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = pci_vpb_realize; dc->reset = pci_vpb_reset; dc->vmsd = &pci_vpb_vmstate; dc->props = pci_vpb_properties; }
true
qemu
4c315c27661502a0813b129e41c0bf640c34a8d6
static void pci_vpb_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = pci_vpb_realize; dc->reset = pci_vpb_reset; dc->vmsd = &pci_vpb_vmstate; dc->props = pci_vpb_properties; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = pci_vpb_realize; dc->reset = pci_vpb_reset; dc->vmsd = &pci_vpb_vmstate; dc->props = pci_vpb_properties; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = pci_vpb_realize;", "dc->reset = pci_vpb_reset;", "dc->vmsd = &pci_vpb_vmstate;", "dc->props = pci_vpb_properties;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ] ]
21,673
static void gt64120_pci_mapping(GT64120State *s) { /* Update IO mapping */ if ((s->regs[GT_PCI0IOLD] & 0x7f) <= s->regs[GT_PCI0IOHD]) { /* Unmap old IO address */ if (s->PCI0IO_length) { memory_region_del_subregion(get_system_memory(), &s->PCI0IO_mem); memory_r...
true
qemu
89da90b1b4acf24a9a3f2fd197b1bdf69ab24e72
static void gt64120_pci_mapping(GT64120State *s) { if ((s->regs[GT_PCI0IOLD] & 0x7f) <= s->regs[GT_PCI0IOHD]) { if (s->PCI0IO_length) { memory_region_del_subregion(get_system_memory(), &s->PCI0IO_mem); memory_region_destroy(&s->PCI0IO_mem); } ...
{ "code": [ " isa_mmio_init(s->PCI0IO_start, s->PCI0IO_length);" ], "line_no": [ 31 ] }
static void FUNC_0(GT64120State *VAR_0) { if ((VAR_0->regs[GT_PCI0IOLD] & 0x7f) <= VAR_0->regs[GT_PCI0IOHD]) { if (VAR_0->PCI0IO_length) { memory_region_del_subregion(get_system_memory(), &VAR_0->PCI0IO_mem); memory_region_destroy(&VAR_0->PCI0IO_mem); ...
[ "static void FUNC_0(GT64120State *VAR_0)\n{", "if ((VAR_0->regs[GT_PCI0IOLD] & 0x7f) <= VAR_0->regs[GT_PCI0IOHD])\n{", "if (VAR_0->PCI0IO_length)\n{", "memory_region_del_subregion(get_system_memory(), &VAR_0->PCI0IO_mem);", "memory_region_destroy(&VAR_0->PCI0IO_mem);", "}", "VAR_0->PCI0IO_start = VAR_0-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 7, 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
21,674
static void *qemu_dummy_cpu_thread_fn(void *arg) { #ifdef _WIN32 fprintf(stderr, "qtest is not supported under Windows\n"); exit(1); #else CPUState *cpu = arg; sigset_t waitset; int r; rcu_register_thread(); qemu_mutex_lock_iothread(); qemu_thread_get_self(cpu->thread); ...
true
qemu
372579427a5040a26dfee78464b50e2bdf27ef26
static void *qemu_dummy_cpu_thread_fn(void *arg) { #ifdef _WIN32 fprintf(stderr, "qtest is not supported under Windows\n"); exit(1); #else CPUState *cpu = arg; sigset_t waitset; int r; rcu_register_thread(); qemu_mutex_lock_iothread(); qemu_thread_get_self(cpu->thread); ...
{ "code": [ " qemu_wait_io_event_common(cpu);", " current_cpu = cpu;", " current_cpu = NULL;", " current_cpu = cpu;" ], "line_no": [ 77, 49, 53, 75 ] }
static void *FUNC_0(void *VAR_0) { #ifdef _WIN32 fprintf(stderr, "qtest is not supported under Windows\n"); exit(1); #else CPUState *cpu = VAR_0; sigset_t waitset; int VAR_1; rcu_register_thread(); qemu_mutex_lock_iothread(); qemu_thread_get_self(cpu->thread); cpu->th...
[ "static void *FUNC_0(void *VAR_0)\n{", "#ifdef _WIN32\nfprintf(stderr, \"qtest is not supported under Windows\\n\");", "exit(1);", "#else\nCPUState *cpu = VAR_0;", "sigset_t waitset;", "int VAR_1;", "rcu_register_thread();", "qemu_mutex_lock_iothread();", "qemu_thread_get_self(cpu->thread);", "cpu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
21,675
void target_disas(FILE *out, CPUState *cpu, target_ulong code, target_ulong size, int flags) { CPUClass *cc = CPU_GET_CLASS(cpu); target_ulong pc; int count; CPUDebug s; INIT_DISASSEMBLE_INFO(s.info, out, fprintf); s.cpu = cpu; s.info.read_memory_func = target_...
true
qemu
eb584b401fdc0866d2ff0c03ab8b09d2ba04a49b
void target_disas(FILE *out, CPUState *cpu, target_ulong code, target_ulong size, int flags) { CPUClass *cc = CPU_GET_CLASS(cpu); target_ulong pc; int count; CPUDebug s; INIT_DISASSEMBLE_INFO(s.info, out, fprintf); s.cpu = cpu; s.info.read_memory_func = target_...
{ "code": [ " s.info.read_memory_inner_func = NULL;" ], "line_no": [ 25 ] }
void FUNC_0(FILE *VAR_0, CPUState *VAR_1, target_ulong VAR_2, target_ulong VAR_3, int VAR_4) { CPUClass *cc = CPU_GET_CLASS(VAR_1); target_ulong pc; int VAR_5; CPUDebug s; INIT_DISASSEMBLE_INFO(s.info, VAR_0, fprintf); s.VAR_1 = VAR_1; s.info.read_memory_func =...
[ "void FUNC_0(FILE *VAR_0, CPUState *VAR_1, target_ulong VAR_2,\ntarget_ulong VAR_3, int VAR_4)\n{", "CPUClass *cc = CPU_GET_CLASS(VAR_1);", "target_ulong pc;", "int VAR_5;", "CPUDebug s;", "INIT_DISASSEMBLE_INFO(s.info, VAR_0, fprintf);", "s.VAR_1 = VAR_1;", "s.info.read_memory_func = target_read_memo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 43, 47 ], [ 49 ], [ 51 ], [ 55,...
21,676
static inline int decode_bytes(const uint8_t *inbuffer, uint8_t *out, int bytes) { static const uint32_t tab[4] = { AV_BE2NE32C(0x37c511f2), AV_BE2NE32C(0xf237c511), AV_BE2NE32C(0x11f237c5), AV_BE2NE32C(0xc511f237), }; int i, off; uint32_t c; const uint32_t *buf; uint32_...
true
FFmpeg
b5d2bf964be338bf8e86a01619646332729b434e
static inline int decode_bytes(const uint8_t *inbuffer, uint8_t *out, int bytes) { static const uint32_t tab[4] = { AV_BE2NE32C(0x37c511f2), AV_BE2NE32C(0xf237c511), AV_BE2NE32C(0x11f237c5), AV_BE2NE32C(0xc511f237), }; int i, off; uint32_t c; const uint32_t *buf; uint32_...
{ "code": [ " AV_BE2NE32C(0x37c511f2), AV_BE2NE32C(0xf237c511),", " AV_BE2NE32C(0x11f237c5), AV_BE2NE32C(0xc511f237)," ], "line_no": [ 7, 9 ] }
static inline int FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2) { static const uint32_t VAR_3[4] = { AV_BE2NE32C(0x37c511f2), AV_BE2NE32C(0xf237c511), AV_BE2NE32C(0x11f237c5), AV_BE2NE32C(0xc511f237), }; int VAR_4, VAR_5; uint32_t c; const uint32_t *VAR_6; uint...
[ "static inline int FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "static const uint32_t VAR_3[4] = {", "AV_BE2NE32C(0x37c511f2), AV_BE2NE32C(0xf237c511),\nAV_BE2NE32C(0x11f237c5), AV_BE2NE32C(0xc511f237),\n};", "int VAR_4, VAR_5;", "uint32_t c;", "const uint32_t *VAR_6;", "uint32_t *obuf ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
21,677
static void coroutine_fn v9fs_fix_fid_paths(V9fsPDU *pdu, V9fsPath *olddir, V9fsString *old_name, V9fsPath *newdir, V9fsString *new_name) { V9fsFidState *tfidp; V9fsPath oldp...
true
qemu
4fa62005d0a85df9bb14ea9f53109d7c5f66eeb9
static void coroutine_fn v9fs_fix_fid_paths(V9fsPDU *pdu, V9fsPath *olddir, V9fsString *old_name, V9fsPath *newdir, V9fsString *new_name) { V9fsFidState *tfidp; V9fsPath oldp...
{ "code": [ "static void coroutine_fn v9fs_fix_fid_paths(V9fsPDU *pdu, V9fsPath *olddir,", " V9fsString *old_name,", " V9fsPath *newdir,", " V9fsString *new_name)", " ...
static void VAR_0 v9fs_fix_fid_paths(V9fsPDU *pdu, V9fsPath *olddir, V9fsString *old_name, V9fsPath *newdir, V9fsString *new_name) { V9fsFidState *tfidp; V9fsPath oldpath, ne...
[ "static void VAR_0 v9fs_fix_fid_paths(V9fsPDU *pdu, V9fsPath *olddir,\nV9fsString *old_name,\nV9fsPath *newdir,\nV9fsString *new_name)\n{", "V9fsFidState *tfidp;", "V9fsPath oldpath, newpath;", "V9fsState *s = pdu->s;", "v9fs_path_init(&oldpath);", "v9fs_path_init(&newpath);", "v9fs_co_name_to_path(pdu,...
[ 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ] ]
21,678
static inline void rv40_weak_loop_filter(uint8_t *src, const int step, const int filter_p1, const int filter_q1, const int alpha, const int beta, const int lim_p0q0, ...
false
FFmpeg
d8edf1b515ae9fbcea2103305241d130c16e1003
static inline void rv40_weak_loop_filter(uint8_t *src, const int step, const int filter_p1, const int filter_q1, const int alpha, const int beta, const int lim_p0q0, ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(uint8_t *VAR_0, const int VAR_1, const int VAR_2, const int VAR_3, const int VAR_4, const int VAR_5, const int VAR_6, const in...
[ "static inline void FUNC_0(uint8_t *VAR_0, const int VAR_1,\nconst int VAR_2, const int VAR_3,\nconst int VAR_4, const int VAR_5,\nconst int VAR_6,\nconst int VAR_7, const int VAR_8,\nconst int VAR_9, const int VAR_10,\nconst int VAR_11, const int VAR_12)\n{", "uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", "int VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
21,679
static int fileTest(uint8_t *ref[4], int refStride[4], int w, int h, FILE *fp, enum AVPixelFormat srcFormat_in, enum AVPixelFormat dstFormat_in) { char buf[256]; while (fgets(buf, sizeof(buf), fp)) { struct Results r; enum AVPixelFormat srcFormat;...
false
FFmpeg
c0f0bec2f205e567fc0eef8a9bf59d585e14094c
static int fileTest(uint8_t *ref[4], int refStride[4], int w, int h, FILE *fp, enum AVPixelFormat srcFormat_in, enum AVPixelFormat dstFormat_in) { char buf[256]; while (fgets(buf, sizeof(buf), fp)) { struct Results r; enum AVPixelFormat srcFormat;...
{ "code": [], "line_no": [] }
static int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int VAR_2, int VAR_3, FILE *VAR_4, enum AVPixelFormat VAR_5, enum AVPixelFormat VAR_6) { char VAR_7[256]; while (fgets(VAR_7, sizeof(VAR_7), VAR_4)) { struct Results VAR_8; enum AVPixelFormat VAR_...
[ "static int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int VAR_2, int VAR_3, FILE *VAR_4,\nenum AVPixelFormat VAR_5,\nenum AVPixelFormat VAR_6)\n{", "char VAR_7[256];", "while (fgets(VAR_7, sizeof(VAR_7), VAR_4)) {", "struct Results VAR_8;", "enum AVPixelFormat VAR_9;", "char VAR_10[12];", "int VAR_11, 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37, 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
21,680
static int dirac_decode_frame_internal(DiracContext *s) { DWTContext d; int y, i, comp, dsty; if (s->low_delay) { /* [DIRAC_STD] 13.5.1 low_delay_transform_data() */ for (comp = 0; comp < 3; comp++) { Plane *p = &s->plane[comp]; memset(p->idwt_buf, 0, p->idw...
false
FFmpeg
a4d3cf10b2ece441ae25849a66b1c11d838f9381
static int dirac_decode_frame_internal(DiracContext *s) { DWTContext d; int y, i, comp, dsty; if (s->low_delay) { for (comp = 0; comp < 3; comp++) { Plane *p = &s->plane[comp]; memset(p->idwt_buf, 0, p->idwt_stride * p->idwt_height * sizeof(IDWTELEM)); ...
{ "code": [], "line_no": [] }
static int FUNC_0(DiracContext *VAR_0) { DWTContext d; int VAR_1, VAR_2, VAR_3, VAR_4; if (VAR_0->low_delay) { for (VAR_3 = 0; VAR_3 < 3; VAR_3++) { Plane *p = &VAR_0->plane[VAR_3]; memset(p->idwt_buf, 0, p->idwt_stride * p->idwt_height * sizeof(IDWTELEM));...
[ "static int FUNC_0(DiracContext *VAR_0)\n{", "DWTContext d;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "if (VAR_0->low_delay) {", "for (VAR_3 = 0; VAR_3 < 3; VAR_3++) {", "Plane *p = &VAR_0->plane[VAR_3];", "memset(p->idwt_buf, 0, p->idwt_stride * p->idwt_height * sizeof(IDWTELEM));", "}", "if (!VAR_0->ze...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55...
21,681
void updateMMXDitherTables(SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex, int lastInLumBuf, int lastInChrBuf) { const int dstH= c->dstH; const int flags= c->flags; int16_t **lumPixBuf= c->lumPixBuf; int16_t **chrUPixBuf= c->chrUPixBuf; int16_t **alpPixBu...
true
FFmpeg
ef912134f01c1fba3ab201fdf98d90ab4eb55179
void updateMMXDitherTables(SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex, int lastInLumBuf, int lastInChrBuf) { const int dstH= c->dstH; const int flags= c->flags; int16_t **lumPixBuf= c->lumPixBuf; int16_t **chrUPixBuf= c->chrUPixBuf; int16_t **alpPixBu...
{ "code": [ " ((uint16_t)vLumFilter[dstY*vLumFilterSize + i])*0x10001;", " ((uint16_t)vChrFilter[chrDstY*vChrFilterSize + i])*0x10001;" ], "line_no": [ 199, 221 ] }
void FUNC_0(SwsContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { const int VAR_6= VAR_0->VAR_6; const int VAR_7= VAR_0->VAR_7; int16_t **lumPixBuf= VAR_0->lumPixBuf; int16_t **chrUPixBuf= VAR_0->chrUPixBuf; int16_t **alpPixBuf= VAR_0->alpPixBu...
[ "void FUNC_0(SwsContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5)\n{", "const int VAR_6= VAR_0->VAR_6;", "const int VAR_7= VAR_0->VAR_7;", "int16_t **lumPixBuf= VAR_0->lumPixBuf;", "int16_t **chrUPixBuf= VAR_0->chrUPixBuf;", "int16_t **alpPixBuf= VAR_0->alpPixBuf;", "const int VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [...
21,682
static inline void gen_outs(DisasContext *s, TCGMemOp ot) { if (s->base.tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } gen_string_movl_A0_ESI(s); gen_op_ld_v(s, ot, cpu_T0, cpu_A0); tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_regs[R_EDX]); tcg_gen_andi_i32(cpu_tmp2_i32, cpu_tmp2_i3...
true
qemu
c5a49c63fa26e8825ad101dfe86339ae4c216539
static inline void gen_outs(DisasContext *s, TCGMemOp ot) { if (s->base.tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } gen_string_movl_A0_ESI(s); gen_op_ld_v(s, ot, cpu_T0, cpu_A0); tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_regs[R_EDX]); tcg_gen_andi_i32(cpu_tmp2_i32, cpu_tmp2_i3...
{ "code": [ " if (s->base.tb->cflags & CF_USE_ICOUNT) {", " if (s->base.tb->cflags & CF_USE_ICOUNT) {", " if (s->base.tb->cflags & CF_USE_ICOUNT) {", " if (s->base.tb->cflags & CF_USE_ICOUNT) {" ], "line_no": [ 5, 5, 5, 5 ] }
static inline void FUNC_0(DisasContext *VAR_0, TCGMemOp VAR_1) { if (VAR_0->base.tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } gen_string_movl_A0_ESI(VAR_0); gen_op_ld_v(VAR_0, VAR_1, cpu_T0, cpu_A0); tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_regs[R_EDX]); tcg_gen_andi_i32(cpu_t...
[ "static inline void FUNC_0(DisasContext *VAR_0, TCGMemOp VAR_1)\n{", "if (VAR_0->base.tb->cflags & CF_USE_ICOUNT) {", "gen_io_start();", "}", "gen_string_movl_A0_ESI(VAR_0);", "gen_op_ld_v(VAR_0, VAR_1, cpu_T0, cpu_A0);", "tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_regs[R_EDX]);", "tcg_gen_andi_i32(cpu_tm...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
21,684
static av_cold int alloc_buffers(AVCodecContext *avctx, AACEncContext *s) { FF_ALLOCZ_OR_GOTO(avctx, s->buffer.samples, 3 * 1024 * s->channels * sizeof(s->buffer.samples[0]), alloc_fail); FF_ALLOCZ_OR_GOTO(avctx, s->cpe, sizeof(ChannelElement) * s->chan_map[0], alloc_fail); FF_ALLOCZ_OR_GOTO(avctx, avct...
false
FFmpeg
3715d841a619f1cbc4776d9b00575dae6fb6534a
static av_cold int alloc_buffers(AVCodecContext *avctx, AACEncContext *s) { FF_ALLOCZ_OR_GOTO(avctx, s->buffer.samples, 3 * 1024 * s->channels * sizeof(s->buffer.samples[0]), alloc_fail); FF_ALLOCZ_OR_GOTO(avctx, s->cpe, sizeof(ChannelElement) * s->chan_map[0], alloc_fail); FF_ALLOCZ_OR_GOTO(avctx, avct...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx, AACEncContext *s) { FF_ALLOCZ_OR_GOTO(avctx, s->buffer.samples, 3 * 1024 * s->channels * sizeof(s->buffer.samples[0]), alloc_fail); FF_ALLOCZ_OR_GOTO(avctx, s->cpe, sizeof(ChannelElement) * s->chan_map[0], alloc_fail); FF_ALLOCZ_OR_GOTO(avctx, avctx->extr...
[ "static av_cold int FUNC_0(AVCodecContext *avctx, AACEncContext *s)\n{", "FF_ALLOCZ_OR_GOTO(avctx, s->buffer.samples, 3 * 1024 * s->channels * sizeof(s->buffer.samples[0]), alloc_fail);", "FF_ALLOCZ_OR_GOTO(avctx, s->cpe, sizeof(ChannelElement) * s->chan_map[0], alloc_fail);", "FF_ALLOCZ_OR_GOTO(avctx, avctx-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ] ]
21,686
void ff_aac_update_ltp(AACEncContext *s, SingleChannelElement *sce) { int i, j, lag; float corr, s0, s1, max_corr = 0.0f; float *samples = &s->planar_samples[s->cur_channel][1024]; float *pred_signal = &sce->ltp_state[0]; int samples_num = 2048; if (s->profile != FF_PROFILE_AAC_LTP) ...
false
FFmpeg
7303962f1467e302906561be53ca4d51abbe5522
void ff_aac_update_ltp(AACEncContext *s, SingleChannelElement *sce) { int i, j, lag; float corr, s0, s1, max_corr = 0.0f; float *samples = &s->planar_samples[s->cur_channel][1024]; float *pred_signal = &sce->ltp_state[0]; int samples_num = 2048; if (s->profile != FF_PROFILE_AAC_LTP) ...
{ "code": [], "line_no": [] }
void FUNC_0(AACEncContext *VAR_0, SingleChannelElement *VAR_1) { int VAR_2, VAR_3, VAR_4; float VAR_5, VAR_6, VAR_7, VAR_8 = 0.0f; float *VAR_9 = &VAR_0->planar_samples[VAR_0->cur_channel][1024]; float *VAR_10 = &VAR_1->ltp_state[0]; int VAR_11 = 2048; if (VAR_0->profile != FF_PROFILE_A...
[ "void FUNC_0(AACEncContext *VAR_0, SingleChannelElement *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "float VAR_5, VAR_6, VAR_7, VAR_8 = 0.0f;", "float *VAR_9 = &VAR_0->planar_samples[VAR_0->cur_channel][1024];", "float *VAR_10 = &VAR_1->ltp_state[0];", "int VAR_11 = 2048;", "if (VAR_0->profile != FF_PROFIL...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
21,687
void ff_biweight_h264_pixels4_8_msa(uint8_t *dst, uint8_t *src, int stride, int height, int log2_denom, int weight_dst, int weight_src, int offset) { avc_biwgt_4width_msa(src, stride, ...
false
FFmpeg
bcd7bf7eeb09a395cc01698842d1b8be9af483fc
void ff_biweight_h264_pixels4_8_msa(uint8_t *dst, uint8_t *src, int stride, int height, int log2_denom, int weight_dst, int weight_src, int offset) { avc_biwgt_4width_msa(src, stride, ...
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { avc_biwgt_4width_msa(VAR_1, VAR_2, VAR_0, VAR_2, ...
[ "void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint VAR_6, int VAR_7)\n{", "avc_biwgt_4width_msa(VAR_1, VAR_2,\nVAR_0, VAR_2,\nVAR_3, VAR_4,\nVAR_6, VAR_5, VAR_7);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11, 13, 15, 17 ], [ 19 ] ]
21,688
void clear_blocks_dcbz128_ppc(DCTELEM *blocks) { POWERPC_TBL_DECLARE(powerpc_clear_blocks_dcbz128, 1); register int misal = ((unsigned long)blocks & 0x0000007f); register int i = 0; POWERPC_TBL_START_COUNT(powerpc_clear_blocks_dcbz128, 1); #if 1 if (misal) { // we could probably also optimize this c...
false
FFmpeg
e45a2872fafe631c14aee9f79d0963d68c4fc1fd
void clear_blocks_dcbz128_ppc(DCTELEM *blocks) { POWERPC_TBL_DECLARE(powerpc_clear_blocks_dcbz128, 1); register int misal = ((unsigned long)blocks & 0x0000007f); register int i = 0; POWERPC_TBL_START_COUNT(powerpc_clear_blocks_dcbz128, 1); #if 1 if (misal) { memset(blocks, 0, sizeo...
{ "code": [], "line_no": [] }
void FUNC_0(DCTELEM *VAR_0) { POWERPC_TBL_DECLARE(powerpc_clear_blocks_dcbz128, 1); register int VAR_1 = ((unsigned long)VAR_0 & 0x0000007f); register int VAR_2 = 0; POWERPC_TBL_START_COUNT(powerpc_clear_blocks_dcbz128, 1); #if 1 if (VAR_1) { memset(VAR_0, 0, sizeof(DCTELEM)*6*64);...
[ "void FUNC_0(DCTELEM *VAR_0)\n{", "POWERPC_TBL_DECLARE(powerpc_clear_blocks_dcbz128, 1);", "register int VAR_1 = ((unsigned long)VAR_0 & 0x0000007f);", "register int VAR_2 = 0;", "POWERPC_TBL_START_COUNT(powerpc_clear_blocks_dcbz128, 1);", "#if 1\nif (VAR_1) {", "memset(VAR_0, 0, sizeof(DCTELEM)*6*64);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ] ]
21,689
static void ppc_cpu_class_init(ObjectClass *oc, void *data) { PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); DeviceClass *dc = DEVICE_CLASS(oc); pcc->parent_realize = dc->realize; dc->realize = ppc_cpu_realizefn; dc->unrealize = ppc_cpu_unrealizefn; p...
true
qemu
e62fbc54d459d4cc8e91dc0938383a7f4c13768c
static void ppc_cpu_class_init(ObjectClass *oc, void *data) { PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); DeviceClass *dc = DEVICE_CLASS(oc); pcc->parent_realize = dc->realize; dc->realize = ppc_cpu_realizefn; dc->unrealize = ppc_cpu_unrealizefn; p...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(VAR_0); CPUClass *cc = CPU_CLASS(VAR_0); DeviceClass *dc = DEVICE_CLASS(VAR_0); pcc->parent_realize = dc->realize; dc->realize = ppc_cpu_realizefn; dc->unrealize = ppc_cpu_unrealizefn; ...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(VAR_0);", "CPUClass *cc = CPU_CLASS(VAR_0);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "pcc->parent_realize = dc->realize;", "dc->realize = ppc_cpu_realizefn;", "dc->unrealize = ppc_cpu_unrealizefn;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 54 ], [...
21,690
static CharDriverState *qmp_chardev_open_socket(ChardevSocket *sock, Error **errp) { SocketAddress *addr = sock->addr; bool do_nodelay = sock->has_nodelay ? sock->nodelay : false; bool is_listen = sock->has_server ? sock->server : true; bo...
true
qemu
5f758366c0710d23e43f4d0f83816b98616a13d0
static CharDriverState *qmp_chardev_open_socket(ChardevSocket *sock, Error **errp) { SocketAddress *addr = sock->addr; bool do_nodelay = sock->has_nodelay ? sock->nodelay : false; bool is_listen = sock->has_server ? sock->server : true; bo...
{ "code": [ " if (error_is_set(errp)) {", " if (error_is_set(errp)) {", " if (error_is_set(errp)) {", " if (error_is_set(errp)) {", " if (error_is_set(errp)) {" ], "line_no": [ 31, 31, 31, 31, 31 ] }
static CharDriverState *FUNC_0(ChardevSocket *sock, Error **errp) { SocketAddress *addr = sock->addr; bool do_nodelay = sock->has_nodelay ? sock->nodelay : false; bool is_listen = sock->has_server ? sock->server : true; bool is_telnet ...
[ "static CharDriverState *FUNC_0(ChardevSocket *sock,\nError **errp)\n{", "SocketAddress *addr = sock->addr;", "bool do_nodelay = sock->has_nodelay ? sock->nodelay : false;", "bool is_listen = sock->has_server ? sock->server : true;", "bool is_telnet = sock->has_telnet ? sock->telnet : fals...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ] ]
21,692
static const char *ass_split_section(ASSSplitContext *ctx, const char *buf) { const ASSSection *section = &ass_sections[ctx->current_section]; int *number = &ctx->field_number[ctx->current_section]; int *order = ctx->field_order[ctx->current_section]; int *tmp, i, len; while (buf && *buf) { ...
true
FFmpeg
6ca2465556836d20ab9ea5689960fbf1fbda0e23
static const char *ass_split_section(ASSSplitContext *ctx, const char *buf) { const ASSSection *section = &ass_sections[ctx->current_section]; int *number = &ctx->field_number[ctx->current_section]; int *order = ctx->field_order[ctx->current_section]; int *tmp, i, len; while (buf && *buf) { ...
{ "code": [ " buf += strcspn(buf, \"\\n\") + 1;" ], "line_no": [ 135 ] }
static const char *FUNC_0(ASSSplitContext *VAR_0, const char *VAR_1) { const ASSSection *VAR_2 = &ass_sections[VAR_0->current_section]; int *VAR_3 = &VAR_0->field_number[VAR_0->current_section]; int *VAR_4 = VAR_0->field_order[VAR_0->current_section]; int *VAR_5, VAR_6, VAR_7; while (VAR_1 &...
[ "static const char *FUNC_0(ASSSplitContext *VAR_0, const char *VAR_1)\n{", "const ASSSection *VAR_2 = &ass_sections[VAR_0->current_section];", "int *VAR_3 = &VAR_0->field_number[VAR_0->current_section];", "int *VAR_4 = VAR_0->field_order[VAR_0->current_section];", "int *VAR_5, VAR_6, VAR_7;", "while (VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ...
21,693
static inline void yuv2rgbXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, int dstW, int dstbpp) { if(dstbpp==32) { int i; for(i=0; i<(dstW>>1); i++){ int j; int Y1=0; int Y2=0; int U=0; ...
true
FFmpeg
28bf81c90d36a55cf76e2be913c5215ebebf61f2
static inline void yuv2rgbXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, int dstW, int dstbpp) { if(dstbpp==32) { int i; for(i=0; i<(dstW>>1); i++){ int j; int Y1=0; int Y2=0; int U=0; ...
{ "code": [ "\t\t\t\t uint8_t *dest, int dstW, int dstbpp)", "\tif(dstbpp==32)", "\telse if(dstbpp==24)", "\telse if(dstbpp==16)", "\telse if(dstbpp==15)", "\tif(dstbpp==32)", "\telse if(dstbpp==24)", "\telse if(dstbpp==16)", "\telse if(dstbpp==15)", "\t\tint i;", "\t\ti...
static inline void FUNC_0(int16_t *VAR_0, int16_t **VAR_1, int VAR_2, int16_t *VAR_3, int16_t **VAR_4, int VAR_5, uint8_t *VAR_6, int VAR_7, int VAR_8) { if(VAR_8==32) { int VAR_18; for(VAR_18=0; VAR_18<(VAR_7>>1); VAR_18++){ int VAR_18; int VAR_18=0; int VAR_18=0; int VAR_1...
[ "static inline void FUNC_0(int16_t *VAR_0, int16_t **VAR_1, int VAR_2,\nint16_t *VAR_3, int16_t **VAR_4, int VAR_5,\nuint8_t *VAR_6, int VAR_7, int VAR_8)\n{", "if(VAR_8==32)\n{", "int VAR_18;", "for(VAR_18=0; VAR_18<(VAR_7>>1); VAR_18++){", "int VAR_18;", "int VAR_18=0;", "int VAR_18=0;", "int VAR_18...
[ 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
21,695
static int halfpel_interpol(SnowContext *s, uint8_t *halfpel[4][4], AVFrame *frame){ int p,x,y; for(p=0; p < s->nb_planes; p++){ int is_chroma= !!p; int w= is_chroma ? s->avctx->width >>s->chroma_h_shift : s->avctx->width; int h= is_chroma ? s->avctx->height>>s->chroma_v_shift : s...
true
FFmpeg
56c7e1059ab993da68caa3847372f3fb5e010dc4
static int halfpel_interpol(SnowContext *s, uint8_t *halfpel[4][4], AVFrame *frame){ int p,x,y; for(p=0; p < s->nb_planes; p++){ int is_chroma= !!p; int w= is_chroma ? s->avctx->width >>s->chroma_h_shift : s->avctx->width; int h= is_chroma ? s->avctx->height>>s->chroma_v_shift : s...
{ "code": [ " halfpel[1][p] = (uint8_t*) av_malloc_array(ls, (h + 2 * EDGE_WIDTH)) + EDGE_WIDTH * (1 + ls);", " halfpel[2][p] = (uint8_t*) av_malloc_array(ls, (h + 2 * EDGE_WIDTH)) + EDGE_WIDTH * (1 + ls);", " halfpel[3][p] = (uint8_t*) av_malloc_array(ls, (h + 2 * EDGE_WIDTH)) + EDGE...
static int FUNC_0(SnowContext *VAR_0, uint8_t *VAR_1[4][4], AVFrame *VAR_2){ int VAR_3,VAR_4,VAR_5; for(VAR_3=0; VAR_3 < VAR_0->nb_planes; VAR_3++){ int is_chroma= !!VAR_3; int w= is_chroma ? VAR_0->avctx->width >>VAR_0->chroma_h_shift : VAR_0->avctx->width; int h= is_chroma ? VAR...
[ "static int FUNC_0(SnowContext *VAR_0, uint8_t *VAR_1[4][4], AVFrame *VAR_2){", "int VAR_3,VAR_4,VAR_5;", "for(VAR_3=0; VAR_3 < VAR_0->nb_planes; VAR_3++){", "int is_chroma= !!VAR_3;", "int w= is_chroma ? VAR_0->avctx->width >>VAR_0->chroma_h_shift : VAR_0->avctx->width;", "int h= is_chroma ? VAR_0->avctx...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
21,696
static void *qpa_thread_in (void *arg) { PAVoiceIn *pa = arg; HWVoiceIn *hw = &pa->hw; if (audio_pt_lock (&pa->pt, AUDIO_FUNC)) { return NULL; } for (;;) { int incr, to_grab, wpos; for (;;) { if (pa->done) { goto exit; ...
true
qemu
ea9ebc2ce69198f7aca4b43652824c5d621ac978
static void *qpa_thread_in (void *arg) { PAVoiceIn *pa = arg; HWVoiceIn *hw = &pa->hw; if (audio_pt_lock (&pa->pt, AUDIO_FUNC)) { return NULL; } for (;;) { int incr, to_grab, wpos; for (;;) { if (pa->done) { goto exit; ...
{ "code": [ " incr = to_grab = audio_MIN (pa->dead, conf.samples >> 2);", " if (pa_simple_read (pa->s, buf,", " chunk << hw->info.shift, &error) < 0) {" ], "line_no": [ 53, 77, 79 ] }
static void *FUNC_0 (void *VAR_0) { PAVoiceIn *pa = VAR_0; HWVoiceIn *hw = &pa->hw; if (audio_pt_lock (&pa->pt, AUDIO_FUNC)) { return NULL; } for (;;) { int VAR_1, VAR_2, VAR_3; for (;;) { if (pa->done) { goto exit; } ...
[ "static void *FUNC_0 (void *VAR_0)\n{", "PAVoiceIn *pa = VAR_0;", "HWVoiceIn *hw = &pa->hw;", "if (audio_pt_lock (&pa->pt, AUDIO_FUNC)) {", "return NULL;", "}", "for (;;) {", "int VAR_1, VAR_2, VAR_3;", "for (;;) {", "if (pa->done) {", "goto exit;", "}", "if (pa->dead > 0) {", "break;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53...
21,697
void ff_h261_encode_init(MpegEncContext *s){ static int done = 0; if (!done) { done = 1; init_rl(&h261_rl_tcoeff); } s->min_qcoeff= -127; s->max_qcoeff= 127; s->y_dc_scale_table= s->c_dc_scale_table= ff_mpeg1_dc_scale_table; }
true
FFmpeg
073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1
void ff_h261_encode_init(MpegEncContext *s){ static int done = 0; if (!done) { done = 1; init_rl(&h261_rl_tcoeff); } s->min_qcoeff= -127; s->max_qcoeff= 127; s->y_dc_scale_table= s->c_dc_scale_table= ff_mpeg1_dc_scale_table; }
{ "code": [ " static int done = 0;", " if (!done) {", " done = 1;", " init_rl(&h261_rl_tcoeff);", " init_rl(&h261_rl_tcoeff);" ], "line_no": [ 3, 7, 9, 11, 11 ] }
void FUNC_0(MpegEncContext *VAR_0){ static int VAR_1 = 0; if (!VAR_1) { VAR_1 = 1; init_rl(&h261_rl_tcoeff); } VAR_0->min_qcoeff= -127; VAR_0->max_qcoeff= 127; VAR_0->y_dc_scale_table= VAR_0->c_dc_scale_table= ff_mpeg1_dc_scale_table; }
[ "void FUNC_0(MpegEncContext *VAR_0){", "static int VAR_1 = 0;", "if (!VAR_1) {", "VAR_1 = 1;", "init_rl(&h261_rl_tcoeff);", "}", "VAR_0->min_qcoeff= -127;", "VAR_0->max_qcoeff= 127;", "VAR_0->y_dc_scale_table=\nVAR_0->c_dc_scale_table= ff_mpeg1_dc_scale_table;", "}" ]
[ 0, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ] ]
21,698
static int mmu_translate_region(CPUS390XState *env, target_ulong vaddr, uint64_t asc, uint64_t entry, int level, target_ulong *raddr, int *flags, int rw, bool exc) { CPUState *cs = CPU(s390_env_get_cpu(env)); u...
true
qemu
5a123b3c1a1d3540d4455772c42c466870d81061
static int mmu_translate_region(CPUS390XState *env, target_ulong vaddr, uint64_t asc, uint64_t entry, int level, target_ulong *raddr, int *flags, int rw, bool exc) { CPUState *cs = CPU(s390_env_get_cpu(env)); u...
{ "code": [ " trigger_page_fault(env, vaddr, PGM_SEGMENT_TRANS, asc, rw, exc);" ], "line_no": [ 49 ] }
static int FUNC_0(CPUS390XState *VAR_0, target_ulong VAR_1, uint64_t VAR_2, uint64_t VAR_3, int VAR_4, target_ulong *VAR_5, int *VAR_6, int VAR_7, bool VAR_8) { CPUState *cs = CPU(s390_env_get_cpu(VAR_0)); uint...
[ "static int FUNC_0(CPUS390XState *VAR_0, target_ulong VAR_1,\nuint64_t VAR_2, uint64_t VAR_3, int VAR_4,\ntarget_ulong *VAR_5, int *VAR_6, int VAR_7,\nbool VAR_8)\n{", "CPUState *cs = CPU(s390_env_get_cpu(VAR_0));", "uint64_t origin, offs, new_entry;", "const int VAR_9[4] = {", "PGM_SEGMENT_TRANS, PGM_REG_T...
[ 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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ...
21,699
static int pcx_encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) { PCXContext *s = avctx->priv_data; AVFrame *const pict = &s->picture; const uint8_t *buf_start = buf; const uint8_t *buf_end = buf + buf_size; int bpp, nplanes, i,...
true
FFmpeg
ad1c50255735c20bd86572d3e8b3c88a5ca6c8f1
static int pcx_encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) { PCXContext *s = avctx->priv_data; AVFrame *const pict = &s->picture; const uint8_t *buf_start = buf; const uint8_t *buf_end = buf + buf_size; int bpp, nplanes, i,...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1, int VAR_2, void *VAR_3) { PCXContext *s = VAR_0->priv_data; AVFrame *const pict = &s->picture; const uint8_t *VAR_4 = VAR_1; const uint8_t *VAR_5 = VAR_1 + VAR_2; int VAR_6, VAR_7, VAR_8, VAR_9, VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nunsigned char *VAR_1, int VAR_2, void *VAR_3)\n{", "PCXContext *s = VAR_0->priv_data;", "AVFrame *const pict = &s->picture;", "const uint8_t *VAR_4 = VAR_1;", "const uint8_t *VAR_5 = VAR_1 + VAR_2;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "const u...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 22 ], [ 26 ], [ 28 ], [ 30 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 44 ], [ 46, 48 ], [ 50 ], [ 52 ...
21,700
static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr, const char *fmt, ...) { va_list ap; char buffer[1024]; size_t len; va_start(ap, fmt); len = vsnprintf(buffer, sizeof(buffer), fmt, ap); va_end(ap); qemu_chr_fe_write_all(chr...
true
qemu
332cc7e9b39ddb2feacb4c71dcd18c3e5b0c3147
static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr, const char *fmt, ...) { va_list ap; char buffer[1024]; size_t len; va_start(ap, fmt); len = vsnprintf(buffer, sizeof(buffer), fmt, ap); va_end(ap); qemu_chr_fe_write_all(chr...
{ "code": [ "static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr,", " const char *fmt, ...)", " char buffer[1024];", " size_t len;", " len = vsnprintf(buffer, sizeof(buffer), fmt, ap);", " qemu_chr_fe_write_all(chr, (uint8_t *)buf...
static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr, const char *fmt, ...) { va_list ap; char buffer[1024]; size_t len; va_start(ap, fmt); len = vsnprintf(buffer, sizeof(buffer), fmt, ap); va_end(ap); qemu_chr_fe_write_all(chr...
[ "static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr,\nconst char *fmt, ...)\n{", "va_list ap;", "char buffer[1024];", "size_t len;", "va_start(ap, fmt);", "len = vsnprintf(buffer, sizeof(buffer), fmt, ap);", "va_end(ap);", "qemu_chr_fe_write_all(chr, (uint8_t *)buffer, len);", "if (qtest...
[ 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
21,701
static int dxtory_decode_v1_rgb(AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size, int id, int bpp) { int h; uint8_t *dst; int ret; if (src_size < avctx->width * avctx->height * bpp) { av_log(avctx, AV_...
true
FFmpeg
a392bf657015c9a79a5a13adfbfb15086c1943b9
static int dxtory_decode_v1_rgb(AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size, int id, int bpp) { int h; uint8_t *dst; int ret; if (src_size < avctx->width * avctx->height * bpp) { av_log(avctx, AV_...
{ "code": [ " if (src_size < avctx->width * avctx->height * bpp) {" ], "line_no": [ 17 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, const uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5) { int VAR_6; uint8_t *dst; int VAR_7; if (VAR_3 < VAR_0->width * VAR_0->height * VAR_5) { av_log(VAR_0, AV_LOG...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,\nconst uint8_t *VAR_2, int VAR_3,\nint VAR_4, int VAR_5)\n{", "int VAR_6;", "uint8_t *dst;", "int VAR_7;", "if (VAR_3 < VAR_0->width * VAR_0->height * VAR_5) {", "av_log(VAR_0, AV_LOG_ERROR, \"packet too small\\n\");", "return AVERROR_INVALIDDATA...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ] ]
21,702
void vbe_ioport_write_data(void *opaque, uint32_t addr, uint32_t val) { VGACommonState *s = opaque; if (s->vbe_index <= VBE_DISPI_INDEX_NB) { #ifdef DEBUG_BOCHS_VBE printf("VBE: write index=0x%x val=0x%x\n", s->vbe_index, val); #endif switch(s->vbe_index) { case VBE_DISPI_INDEX...
true
qemu
3bf1817079bb0d80c0d8a86a7c7dd0bfe90eb82e
void vbe_ioport_write_data(void *opaque, uint32_t addr, uint32_t val) { VGACommonState *s = opaque; if (s->vbe_index <= VBE_DISPI_INDEX_NB) { #ifdef DEBUG_BOCHS_VBE printf("VBE: write index=0x%x val=0x%x\n", s->vbe_index, val); #endif switch(s->vbe_index) { case VBE_DISPI_INDEX...
{ "code": [ " if (s->vbe_regs[VBE_DISPI_INDEX_BPP] == 4) {", " val &= (s->vbe_bank_mask >> 2);", " } else {", " val &= s->vbe_bank_mask;" ], "line_no": [ 57, 59, 61, 63 ] }
void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { VGACommonState *s = VAR_0; if (s->vbe_index <= VBE_DISPI_INDEX_NB) { #ifdef DEBUG_BOCHS_VBE printf("VBE: write index=0x%x VAR_2=0x%x\n", s->vbe_index, VAR_2); #endif switch(s->vbe_index) { case VBE_DISPI_INDEX_ID: ...
[ "void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "VGACommonState *s = VAR_0;", "if (s->vbe_index <= VBE_DISPI_INDEX_NB) {", "#ifdef DEBUG_BOCHS_VBE\nprintf(\"VBE: write index=0x%x VAR_2=0x%x\\n\", s->vbe_index, VAR_2);", "#endif\nswitch(s->vbe_index) {", "case VBE_DISPI_INDEX_ID:\nif (VAR_2 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21, 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39, 41, 43, 45, 47, 49 ], [ 51 ], [ 53 ], [ 55, 57...
21,703
static void vexpress_common_init(MachineState *machine) { VexpressMachineState *vms = VEXPRESS_MACHINE(machine); VexpressMachineClass *vmc = VEXPRESS_MACHINE_GET_CLASS(machine); VEDBoardInfo *daughterboard = vmc->daughterboard; DeviceState *dev, *sysctl, *pl041; qemu_irq pic[64]; uint32_t...
true
qemu
f8ed85ac992c48814d916d5df4d44f9a971c5de4
static void vexpress_common_init(MachineState *machine) { VexpressMachineState *vms = VEXPRESS_MACHINE(machine); VexpressMachineClass *vmc = VEXPRESS_MACHINE_GET_CLASS(machine); VEDBoardInfo *daughterboard = vmc->daughterboard; DeviceState *dev, *sysctl, *pl041; qemu_irq pic[64]; uint32_t...
{ "code": [ " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " ...
static void FUNC_0(MachineState *VAR_0) { VexpressMachineState *vms = VEXPRESS_MACHINE(VAR_0); VexpressMachineClass *vmc = VEXPRESS_MACHINE_GET_CLASS(VAR_0); VEDBoardInfo *daughterboard = vmc->daughterboard; DeviceState *dev, *sysctl, *pl041; qemu_irq pic[64]; uint32_t sys_id; DriveI...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "VexpressMachineState *vms = VEXPRESS_MACHINE(VAR_0);", "VexpressMachineClass *vmc = VEXPRESS_MACHINE_GET_CLASS(VAR_0);", "VEDBoardInfo *daughterboard = vmc->daughterboard;", "DeviceState *dev, *sysctl, *pl041;", "qemu_irq pic[64];", "uint32_t sys_id;", "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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 49 ], [ 51 ...
21,705
static int vnc_set_gnutls_priority(gnutls_session_t s, int x509) { const char *priority = x509 ? "NORMAL" : "NORMAL:+ANON-DH"; int rc; rc = gnutls_priority_set_direct(s, priority, NULL); if (rc != GNUTLS_E_SUCCESS) { return -1; } return 0; }
true
qemu
3e305e4a4752f70c0b5c3cf5b43ec957881714f7
static int vnc_set_gnutls_priority(gnutls_session_t s, int x509) { const char *priority = x509 ? "NORMAL" : "NORMAL:+ANON-DH"; int rc; rc = gnutls_priority_set_direct(s, priority, NULL); if (rc != GNUTLS_E_SUCCESS) { return -1; } return 0; }
{ "code": [ " return -1;", " return -1;", " return -1;", " return -1;", " return -1;", " return -1;", " return -1;", " return 0;", "static int vnc_set_gnutls_priority(gnutls_session_t s, int x509)", " const char *priority =...
static int FUNC_0(gnutls_session_t VAR_0, int VAR_1) { const char *VAR_2 = VAR_1 ? "NORMAL" : "NORMAL:+ANON-DH"; int VAR_3; VAR_3 = gnutls_priority_set_direct(VAR_0, VAR_2, NULL); if (VAR_3 != GNUTLS_E_SUCCESS) { return -1; } return 0; }
[ "static int FUNC_0(gnutls_session_t VAR_0, int VAR_1)\n{", "const char *VAR_2 = VAR_1 ? \"NORMAL\" : \"NORMAL:+ANON-DH\";", "int VAR_3;", "VAR_3 = gnutls_priority_set_direct(VAR_0, VAR_2, NULL);", "if (VAR_3 != GNUTLS_E_SUCCESS) {", "return -1;", "}", "return 0;", "}" ]
[ 1, 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
21,706
static void vfio_platform_eoi(VFIODevice *vbasedev) { VFIOINTp *intp; VFIOPlatformDevice *vdev = container_of(vbasedev, VFIOPlatformDevice, vbasedev); qemu_mutex_lock(&vdev->intp_mutex); QLIST_FOREACH(intp, &vdev->intp_list, next) { if (intp->state == VFIO_IRQ_ACTIVE) { ...
true
qemu
a5b39cd3f647eaaaef5b648beda5cb2f387418c0
static void vfio_platform_eoi(VFIODevice *vbasedev) { VFIOINTp *intp; VFIOPlatformDevice *vdev = container_of(vbasedev, VFIOPlatformDevice, vbasedev); qemu_mutex_lock(&vdev->intp_mutex); QLIST_FOREACH(intp, &vdev->intp_list, next) { if (intp->state == VFIO_IRQ_ACTIVE) { ...
{ "code": [ " if (intp->flags & VFIO_IRQ_INFO_AUTOMASKED) {" ], "line_no": [ 33 ] }
static void FUNC_0(VFIODevice *VAR_0) { VFIOINTp *intp; VFIOPlatformDevice *vdev = container_of(VAR_0, VFIOPlatformDevice, VAR_0); qemu_mutex_lock(&vdev->intp_mutex); QLIST_FOREACH(intp, &vdev->intp_list, next) { if (intp->state == VFIO_IRQ_ACTIVE) { trace_vfio_plat...
[ "static void FUNC_0(VFIODevice *VAR_0)\n{", "VFIOINTp *intp;", "VFIOPlatformDevice *vdev =\ncontainer_of(VAR_0, VFIOPlatformDevice, VAR_0);", "qemu_mutex_lock(&vdev->intp_mutex);", "QLIST_FOREACH(intp, &vdev->intp_list, next) {", "if (intp->state == VFIO_IRQ_ACTIVE) {", "trace_vfio_platform_eoi(intp->pi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ...
21,707
static void qxl_enter_vga_mode(PCIQXLDevice *d) { if (d->mode == QXL_MODE_VGA) { return; } trace_qxl_enter_vga_mode(d->id); #if SPICE_SERVER_VERSION >= 0x000c03 /* release 0.12.3 */ spice_qxl_driver_unload(&d->ssd.qxl); #endif graphic_console_set_hwops(d->ssd.dcl.con, d->vga.hw_ops,...
true
qemu
a703d3aef5991b72a5a45880e7491232b8032f09
static void qxl_enter_vga_mode(PCIQXLDevice *d) { if (d->mode == QXL_MODE_VGA) { return; } trace_qxl_enter_vga_mode(d->id); #if SPICE_SERVER_VERSION >= 0x000c03 spice_qxl_driver_unload(&d->ssd.qxl); #endif graphic_console_set_hwops(d->ssd.dcl.con, d->vga.hw_ops, &d->vga); upda...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIQXLDevice *VAR_0) { if (VAR_0->mode == QXL_MODE_VGA) { return; } trace_qxl_enter_vga_mode(VAR_0->id); #if SPICE_SERVER_VERSION >= 0x000c03 spice_qxl_driver_unload(&VAR_0->ssd.qxl); #endif graphic_console_set_hwops(VAR_0->ssd.dcl.con, VAR_0->vga.hw_ops, &VAR_0-...
[ "static void FUNC_0(PCIQXLDevice *VAR_0)\n{", "if (VAR_0->mode == QXL_MODE_VGA) {", "return;", "}", "trace_qxl_enter_vga_mode(VAR_0->id);", "#if SPICE_SERVER_VERSION >= 0x000c03\nspice_qxl_driver_unload(&VAR_0->ssd.qxl);", "#endif\ngraphic_console_set_hwops(VAR_0->ssd.dcl.con, VAR_0->vga.hw_ops, &VAR_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 ], [ 28 ], [ 30 ], [ 32 ] ]
21,709
static int mov_read_smi(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; if ((uint64_t)atom.size > (1<<30)) return AVERROR_INVALIDDATA; // currently SVQ3 decoder expect full STSD...
true
FFmpeg
5c720657c23afd798ae0db7c7362eb859a89ab3d
static int mov_read_smi(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; if ((uint64_t)atom.size > (1<<30)) return AVERROR_INVALIDDATA; av_free(st->codec->extradata);...
{ "code": [ " avio_read(pb, st->codec->extradata + 0x5a, atom.size);", " return AVERROR_INVALIDDATA;" ], "line_no": [ 39, 19 ] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st; if (VAR_0->fc->nb_streams < 1) return 0; st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; if ((uint64_t)VAR_2.size > (1<<30)) return AVERROR_INVALIDDATA; av_free(st->cod...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st;", "if (VAR_0->fc->nb_streams < 1)\nreturn 0;", "st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "if ((uint64_t)VAR_2.size > (1<<30))\nreturn AVERROR_INVALIDDATA;", "av_free(st->codec->extradata);", "st->code...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 17, 19 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
21,710
AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b) { AVFilterFormats *ret; unsigned i, j, k = 0; ret = av_mallocz(sizeof(AVFilterFormats)); /* merge list of formats */ ret->formats = av_malloc(sizeof(*ret->formats) * FFMIN(a->format_count, ...
false
FFmpeg
37e0b997a8d6695abb0dd4bac886a86104d68a3c
AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b) { AVFilterFormats *ret; unsigned i, j, k = 0; ret = av_mallocz(sizeof(AVFilterFormats)); ret->formats = av_malloc(sizeof(*ret->formats) * FFMIN(a->format_count, ...
{ "code": [], "line_no": [] }
AVFilterFormats *FUNC_0(AVFilterFormats *a, AVFilterFormats *b) { AVFilterFormats *ret; unsigned VAR_0, VAR_1, VAR_2 = 0; ret = av_mallocz(sizeof(AVFilterFormats)); ret->formats = av_malloc(sizeof(*ret->formats) * FFMIN(a->format_count, ...
[ "AVFilterFormats *FUNC_0(AVFilterFormats *a, AVFilterFormats *b)\n{", "AVFilterFormats *ret;", "unsigned VAR_0, VAR_1, VAR_2 = 0;", "ret = av_mallocz(sizeof(AVFilterFormats));", "ret->formats = av_malloc(sizeof(*ret->formats) * FFMIN(a->format_count,\nb->format_count));", "for(VAR_0 = 0; VAR_0 < a->format...
[ 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57...
21,711
static void rv40_v_loop_filter(uint8_t *src, int stride, int dmode, int lim_q1, int lim_p1, int alpha, int beta, int beta2, int chroma, int edge){ rv40_adaptive_loop_filter(src, 1, stride, dmode, lim_q1, lim_p1, alpha, b...
false
FFmpeg
d8edf1b515ae9fbcea2103305241d130c16e1003
static void rv40_v_loop_filter(uint8_t *src, int stride, int dmode, int lim_q1, int lim_p1, int alpha, int beta, int beta2, int chroma, int edge){ rv40_adaptive_loop_filter(src, 1, stride, dmode, lim_q1, lim_p1, alpha, b...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9){ rv40_adaptive_loop_filter(VAR_0, 1, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, ...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4,\nint VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9){", "rv40_adaptive_loop_filter(VAR_0, 1, VAR_1, VAR_2, VAR_3, VAR_4,\nVAR_5, VAR_6, VAR_7, VAR_8, VAR_9);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
21,712
static void lfe_downsample(DCAEncContext *c, const int32_t *input) { /* FIXME: make 128x LFE downsampling possible */ const int lfech = lfe_index[c->channel_config]; int i, j, lfes; int32_t hist[512]; int32_t accum; int hist_start = 0; for (i = 0; i < 512; i++) hist[i] = c...
false
FFmpeg
a6191d098a03f94685ae4c072bfdf10afcd86223
static void lfe_downsample(DCAEncContext *c, const int32_t *input) { const int lfech = lfe_index[c->channel_config]; int i, j, lfes; int32_t hist[512]; int32_t accum; int hist_start = 0; for (i = 0; i < 512; i++) hist[i] = c->history[i][c->channels - 1]; for (lfes ...
{ "code": [], "line_no": [] }
static void FUNC_0(DCAEncContext *VAR_0, const int32_t *VAR_1) { const int VAR_2 = lfe_index[VAR_0->channel_config]; int VAR_3, VAR_4, VAR_5; int32_t hist[512]; int32_t accum; int VAR_6 = 0; for (VAR_3 = 0; VAR_3 < 512; VAR_3++) hist[VAR_3] = VAR_0->history[VAR_3][VAR_0->...
[ "static void FUNC_0(DCAEncContext *VAR_0, const int32_t *VAR_1)\n{", "const int VAR_2 = lfe_index[VAR_0->channel_config];", "int VAR_3, VAR_4, VAR_5;", "int32_t hist[512];", "int32_t accum;", "int VAR_6 = 0;", "for (VAR_3 = 0; VAR_3 < 512; VAR_3++)", "hist[VAR_3] = VAR_0->history[VAR_3][VAR_0->channel...
[ 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 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [ 59...
21,713
static int indeo3_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { Indeo3DecodeContext *s=avctx->priv_data; uint8_t *src, *dest; int y; iv_decode_frame(s, buf, buf_size); if(s...
false
FFmpeg
274aa1d02f12aba969b280139cf79907134dcd89
static int indeo3_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { Indeo3DecodeContext *s=avctx->priv_data; uint8_t *src, *dest; int y; iv_decode_frame(s, buf, buf_size); if(s...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, const uint8_t *VAR_3, int VAR_4) { Indeo3DecodeContext *s=VAR_0->priv_data; uint8_t *src, *dest; int VAR_5; iv_decode_frame(s, VAR_3, VAR_4); if(s->frame.VAR_1[...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "Indeo3DecodeContext *s=VAR_0->priv_data;", "uint8_t *src, *dest;", "int VAR_5;", "iv_decode_frame(s, VAR_3, VAR_4);", "if(s->frame.VAR_1[0])\nVAR_0->release_buffer(VAR_0, &s->frame);", "s->frame.r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
21,714
static void filter_mb_edgech( H264Context *h, uint8_t *pix, int stride, int bS[4], int qp ) { int i, d; const int index_a = clip( qp + h->slice_alpha_c0_offset, 0, 51 ); const int alpha = alpha_table[index_a]; const int beta = beta_table[clip( qp + h->slice_beta_offset, 0, 51 )]; const int pix...
false
FFmpeg
3ebc7e04dea6072400d91c1c90eb3911754cee06
static void filter_mb_edgech( H264Context *h, uint8_t *pix, int stride, int bS[4], int qp ) { int i, d; const int index_a = clip( qp + h->slice_alpha_c0_offset, 0, 51 ); const int alpha = alpha_table[index_a]; const int beta = beta_table[clip( qp + h->slice_beta_offset, 0, 51 )]; const int pix...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3[4], int VAR_4 ) { int VAR_5, VAR_6; const int VAR_7 = clip( VAR_4 + VAR_0->slice_alpha_c0_offset, 0, 51 ); const int VAR_8 = alpha_table[VAR_7]; const int VAR_9 = beta_table[clip( VAR_4 + VAR_0->slice_beta_offset, 0, 51 )]...
[ "static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3[4], int VAR_4 ) {", "int VAR_5, VAR_6;", "const int VAR_7 = clip( VAR_4 + VAR_0->slice_alpha_c0_offset, 0, 51 );", "const int VAR_8 = alpha_table[VAR_7];", "const int VAR_9 = beta_table[clip( VAR_4 + VAR_0->slice_beta_offset, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45, 47 ], [ 49 ], [...
21,715
void aio_context_unref(AioContext *ctx) { g_source_unref(&ctx->source); }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
void aio_context_unref(AioContext *ctx) { g_source_unref(&ctx->source); }
{ "code": [], "line_no": [] }
void FUNC_0(AioContext *VAR_0) { g_source_unref(&VAR_0->source); }
[ "void FUNC_0(AioContext *VAR_0)\n{", "g_source_unref(&VAR_0->source);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
21,716
static void handle_hint(DisasContext *s, uint32_t insn, unsigned int op1, unsigned int op2, unsigned int crm) { unsigned int selector = crm << 3 | op2; if (op1 != 3) { unallocated_encoding(s); return; } switch (selector) { case 0: /* NOP */ ...
false
qemu
2399d4e7cec22ecf1c51062d2ebfd45220dbaace
static void handle_hint(DisasContext *s, uint32_t insn, unsigned int op1, unsigned int op2, unsigned int crm) { unsigned int selector = crm << 3 | op2; if (op1 != 3) { unallocated_encoding(s); return; } switch (selector) { case 0: return...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, unsigned int VAR_2, unsigned int VAR_3, unsigned int VAR_4) { unsigned int VAR_5 = VAR_4 << 3 | VAR_3; if (VAR_2 != 3) { unallocated_encoding(VAR_0); return; } switch (VAR_5) { case 0: ...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1,\nunsigned int VAR_2, unsigned int VAR_3, unsigned int VAR_4)\n{", "unsigned int VAR_5 = VAR_4 << 3 | VAR_3;", "if (VAR_2 != 3) {", "unallocated_encoding(VAR_0);", "return;", "}", "switch (VAR_5) {", "case 0:\nreturn;", "case 3:\nVAR_0->base.is...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], ...
21,717
static int msrle_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MsrleContext *s = avctx->priv_data; int istride = FFALIGN(avctx->width*avct...
false
FFmpeg
c919e1ca2ecfc47d796382973ba0e48b8f6f92a2
static int msrle_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MsrleContext *s = avctx->priv_data; int istride = FFALIGN(avctx->width*avct...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MsrleContext *s = VAR_0->priv_data; int VAR_6 = FFALIGN(VAR_0->width*VAR_0->bits_per_coded...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MsrleContext *s = VAR_0->priv_data;", "int VAR_6 = FFALIGN(VAR_0->width*VAR_0->bits_per_coded_sample, 32) / 8;", "int VAR_7;", "s->VAR_4 = VAR_4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 57 ], [...
21,718
static void tcx_update_display(void *opaque) { TCXState *ts = opaque; ram_addr_t page, page_min, page_max; int y, y_start, dd, ds; uint8_t *d, *s; void (*f)(TCXState *s1, uint8_t *d, const uint8_t *s, int width); if (ts->ds->depth == 0) return; page = ts->vram_offset; y_star...
false
qemu
b3ceef24f4fee8d5ed96b8c4a5d3e80c0a651f0b
static void tcx_update_display(void *opaque) { TCXState *ts = opaque; ram_addr_t page, page_min, page_max; int y, y_start, dd, ds; uint8_t *d, *s; void (*f)(TCXState *s1, uint8_t *d, const uint8_t *s, int width); if (ts->ds->depth == 0) return; page = ts->vram_offset; y_star...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { TCXState *ts = VAR_0; ram_addr_t page, page_min, page_max; int VAR_1, VAR_2, VAR_3, VAR_4; uint8_t *VAR_7, *VAR_8; void (*VAR_5)(TCXState *VAR_6, uint8_t *VAR_7, const uint8_t *VAR_8, int VAR_9); if (ts->VAR_4->depth == 0) return; page = ts->vram...
[ "static void FUNC_0(void *VAR_0)\n{", "TCXState *ts = VAR_0;", "ram_addr_t page, page_min, page_max;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "uint8_t *VAR_7, *VAR_8;", "void (*VAR_5)(TCXState *VAR_6, uint8_t *VAR_7, const uint8_t *VAR_8, int VAR_9);", "if (ts->VAR_4->depth == 0)\nreturn;", "page = ts->vr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47,...
21,719
int vnc_zlib_send_framebuffer_update(VncState *vs, int x, int y, int w, int h) { int old_offset, new_offset, bytes_written; vnc_framebuffer_update(vs, x, y, w, h, VNC_ENCODING_ZLIB); // remember where we put in the follow-up size old_offset = vs->output.offset; vnc_write_s32(vs, 0); ...
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
int vnc_zlib_send_framebuffer_update(VncState *vs, int x, int y, int w, int h) { int old_offset, new_offset, bytes_written; vnc_framebuffer_update(vs, x, y, w, h, VNC_ENCODING_ZLIB); old_offset = vs->output.offset; vnc_write_s32(vs, 0); vnc_zlib_start(vs); vnc_raw_send_f...
{ "code": [], "line_no": [] }
int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5, VAR_6, VAR_7; vnc_framebuffer_update(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VNC_ENCODING_ZLIB); VAR_5 = VAR_0->output.offset; vnc_write_s32(VAR_0, 0); vnc_zlib_start(VAR_0); vnc_raw_send_fra...
[ "int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6, VAR_7;", "vnc_framebuffer_update(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VNC_ENCODING_ZLIB);", "VAR_5 = VAR_0->output.offset;", "vnc_write_s32(VAR_0, 0);", "vnc_zlib_start(VAR_0);", "vnc_raw_send_framebuffer_upda...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ] ]
21,720
static TCGv_i64 read_fp_dreg(DisasContext *s, int reg) { TCGv_i64 v = tcg_temp_new_i64(); tcg_gen_ld_i64(v, cpu_env, fp_reg_offset(reg, MO_64)); return v; }
false
qemu
90e496386fe7fd32c189561f846b7913f95b8cf4
static TCGv_i64 read_fp_dreg(DisasContext *s, int reg) { TCGv_i64 v = tcg_temp_new_i64(); tcg_gen_ld_i64(v, cpu_env, fp_reg_offset(reg, MO_64)); return v; }
{ "code": [], "line_no": [] }
static TCGv_i64 FUNC_0(DisasContext *s, int reg) { TCGv_i64 v = tcg_temp_new_i64(); tcg_gen_ld_i64(v, cpu_env, fp_reg_offset(reg, MO_64)); return v; }
[ "static TCGv_i64 FUNC_0(DisasContext *s, int reg)\n{", "TCGv_i64 v = tcg_temp_new_i64();", "tcg_gen_ld_i64(v, cpu_env, fp_reg_offset(reg, MO_64));", "return v;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
21,721
static int vfio_connect_container(VFIOGroup *group, AddressSpace *as) { VFIOContainer *container; int ret, fd; VFIOAddressSpace *space; space = vfio_get_address_space(as); QLIST_FOREACH(container, &space->containers, next) { if (!ioctl(group->fd, VFIO_GROUP_SET_CONTAINER, &contain...
false
qemu
2e4109de8e589beecd69996ee14f24021b991c0d
static int vfio_connect_container(VFIOGroup *group, AddressSpace *as) { VFIOContainer *container; int ret, fd; VFIOAddressSpace *space; space = vfio_get_address_space(as); QLIST_FOREACH(container, &space->containers, next) { if (!ioctl(group->fd, VFIO_GROUP_SET_CONTAINER, &contain...
{ "code": [], "line_no": [] }
static int FUNC_0(VFIOGroup *VAR_0, AddressSpace *VAR_1) { VFIOContainer *container; int VAR_2, VAR_3; VFIOAddressSpace *space; space = vfio_get_address_space(VAR_1); QLIST_FOREACH(container, &space->containers, next) { if (!ioctl(VAR_0->VAR_3, VFIO_GROUP_SET_CONTAINER, &container...
[ "static int FUNC_0(VFIOGroup *VAR_0, AddressSpace *VAR_1)\n{", "VFIOContainer *container;", "int VAR_2, VAR_3;", "VFIOAddressSpace *space;", "space = vfio_get_address_space(VAR_1);", "QLIST_FOREACH(container, &space->containers, next) {", "if (!ioctl(VAR_0->VAR_3, VFIO_GROUP_SET_CONTAINER, &container->V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
21,722
static void pci_piix_init_ports(PCIIDEState *d) { int i; struct { int iobase; int iobase2; int isairq; } port_info[] = { {0x1f0, 0x3f6, 14}, {0x170, 0x376, 15}, }; for (i = 0; i < 2; i++) { ide_bus_new(&d->bus[i], &d->dev.qdev, i); ...
false
qemu
ee951a37d8873bff7aa58e23222dfd984111b6cb
static void pci_piix_init_ports(PCIIDEState *d) { int i; struct { int iobase; int iobase2; int isairq; } port_info[] = { {0x1f0, 0x3f6, 14}, {0x170, 0x376, 15}, }; for (i = 0; i < 2; i++) { ide_bus_new(&d->bus[i], &d->dev.qdev, i); ...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIIDEState *VAR_0) { int VAR_1; struct { int iobase; int iobase2; int isairq; } VAR_2[] = { {0x1f0, 0x3f6, 14}, {0x170, 0x376, 15}, }; for (VAR_1 = 0; VAR_1 < 2; VAR_1++) { ide_bus_new(&VAR_0->bus[VAR_1], &VAR_0->dev.qd...
[ "static void FUNC_0(PCIIDEState *VAR_0) {", "int VAR_1;", "struct {", "int iobase;", "int iobase2;", "int isairq;", "} VAR_2[] = {", "{0x1f0, 0x3f6, 14},", "{0x170, 0x376, 15},", "};", "for (VAR_1 = 0; VAR_1 < 2; VAR_1++) {", "ide_bus_new(&VAR_0->bus[VAR_1], &VAR_0->dev.qdev, VAR_1);", "ide_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ] ]
21,724
void load_seg(int seg_reg, int selector) { SegmentCache *sc; SegmentDescriptorTable *dt; int index; uint32_t e1, e2; uint8_t *ptr; env->segs[seg_reg] = selector; sc = &env->seg_cache[seg_reg]; if (env->eflags & VM_MASK) { sc->base = (void *)(selector << 4); s...
false
qemu
3acace1333d6b75628fe6e6786ad3cd2db766f0e
void load_seg(int seg_reg, int selector) { SegmentCache *sc; SegmentDescriptorTable *dt; int index; uint32_t e1, e2; uint8_t *ptr; env->segs[seg_reg] = selector; sc = &env->seg_cache[seg_reg]; if (env->eflags & VM_MASK) { sc->base = (void *)(selector << 4); s...
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0, int VAR_1) { SegmentCache *sc; SegmentDescriptorTable *dt; int VAR_2; uint32_t e1, e2; uint8_t *ptr; env->segs[VAR_0] = VAR_1; sc = &env->seg_cache[VAR_0]; if (env->eflags & VM_MASK) { sc->base = (void *)(VAR_1 << 4); sc->limit = 0xffff...
[ "void FUNC_0(int VAR_0, int VAR_1)\n{", "SegmentCache *sc;", "SegmentDescriptorTable *dt;", "int VAR_2;", "uint32_t e1, e2;", "uint8_t *ptr;", "env->segs[VAR_0] = VAR_1;", "sc = &env->seg_cache[VAR_0];", "if (env->eflags & VM_MASK) {", "sc->base = (void *)(VAR_1 << 4);", "sc->limit = 0xffff;", ...
[ 0, 0, 0, 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 ], [...
21,725
static BlockBackend *blockdev_init(const char *file, QDict *bs_opts, Error **errp) { const char *buf; int bdrv_flags = 0; int on_read_error, on_write_error; bool account_invalid, account_failed; const char *stats_intervals; BlockBackend *blk; Block...
false
qemu
40119effc5c36dbd0ca19ca85a5897d5b3d37d6d
static BlockBackend *blockdev_init(const char *file, QDict *bs_opts, Error **errp) { const char *buf; int bdrv_flags = 0; int on_read_error, on_write_error; bool account_invalid, account_failed; const char *stats_intervals; BlockBackend *blk; Block...
{ "code": [], "line_no": [] }
static BlockBackend *FUNC_0(const char *file, QDict *bs_opts, Error **errp) { const char *VAR_0; int VAR_1 = 0; int VAR_2, VAR_3; bool account_invalid, account_failed; const char *VAR_4; BlockBackend *blk; BlockDriverState *bs; ThrottleConfig ...
[ "static BlockBackend *FUNC_0(const char *file, QDict *bs_opts,\nError **errp)\n{", "const char *VAR_0;", "int VAR_1 = 0;", "int VAR_2, VAR_3;", "bool account_invalid, account_failed;", "const char *VAR_4;", "BlockBackend *blk;", "BlockDriverState *bs;", "ThrottleConfig cfg;", "int VAR_5 = 0;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 45 ], [ 47 ], [ 49 ...
21,727
av_cold void ff_dsputil_init_armv5te(DSPContext *c, AVCodecContext *avctx) { if (avctx->bits_per_raw_sample <= 8 && (avctx->idct_algo == FF_IDCT_AUTO || avctx->idct_algo == FF_IDCT_SIMPLEARMV5TE)) { c->idct_put = ff_simple_idct_put_armv5te; c->idct_add ...
false
FFmpeg
70d54392f5015b9c6594fcae558f59f952501e3b
av_cold void ff_dsputil_init_armv5te(DSPContext *c, AVCodecContext *avctx) { if (avctx->bits_per_raw_sample <= 8 && (avctx->idct_algo == FF_IDCT_AUTO || avctx->idct_algo == FF_IDCT_SIMPLEARMV5TE)) { c->idct_put = ff_simple_idct_put_armv5te; c->idct_add ...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx) { if (avctx->bits_per_raw_sample <= 8 && (avctx->idct_algo == FF_IDCT_AUTO || avctx->idct_algo == FF_IDCT_SIMPLEARMV5TE)) { c->idct_put = ff_simple_idct_put_armv5te; c->idct_add = ff_simple_idc...
[ "av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx)\n{", "if (avctx->bits_per_raw_sample <= 8 &&\n(avctx->idct_algo == FF_IDCT_AUTO ||\navctx->idct_algo == FF_IDCT_SIMPLEARMV5TE)) {", "c->idct_put = ff_simple_idct_put_armv5te;", "c->idct_add = ff_simple_idct_add_armv5te;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
21,728
static QObject *qmp_input_get_object(QmpInputVisitor *qiv, const char *name, bool consume, Error **errp) { StackObject *tos; QObject *qobj; QObject *ret; if (QSLIST_EMPTY(&qiv->stack)) { /* Starting at root, name...
false
qemu
09e68369a88d7de0f988972bf28eec1b80cc47f9
static QObject *qmp_input_get_object(QmpInputVisitor *qiv, const char *name, bool consume, Error **errp) { StackObject *tos; QObject *qobj; QObject *ret; if (QSLIST_EMPTY(&qiv->stack)) { assert(qiv->roo...
{ "code": [], "line_no": [] }
static QObject *FUNC_0(QmpInputVisitor *qiv, const char *name, bool consume, Error **errp) { StackObject *tos; QObject *qobj; QObject *ret; if (QSLIST_EMPTY(&qiv->stack)) { assert(qiv->root); r...
[ "static QObject *FUNC_0(QmpInputVisitor *qiv,\nconst char *name,\nbool consume, Error **errp)\n{", "StackObject *tos;", "QObject *qobj;", "QObject *ret;", "if (QSLIST_EMPTY(&qiv->stack)) {", "assert(qiv->root);", "return qiv->root;", "}", "tos = QSLIST_FIRST(&qiv->stack);", "qobj = tos->obj;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
21,729
static void rtas_ibm_set_slot_reset(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { s...
false
qemu
46c5874e9cd752ed8ded31af03472edd8fc3efc1
static void rtas_ibm_set_slot_reset(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { s...
{ "code": [], "line_no": [] }
static void FUNC_0(PowerPCCPU *VAR_0, sPAPREnvironment *VAR_1, uint32_t VAR_2, uint32_t VAR_3, target_ulong VAR_4, uint32_t VAR_5, target_ulong VAR_6) { sPAPRPHBState...
[ "static void FUNC_0(PowerPCCPU *VAR_0,\nsPAPREnvironment *VAR_1,\nuint32_t VAR_2, uint32_t VAR_3,\ntarget_ulong VAR_4, uint32_t VAR_5,\ntarget_ulong VAR_6)\n{", "sPAPRPHBState *sphb;", "sPAPRPHBClass *spc;", "uint32_t option;", "uint64_t buid;", "int VAR_7;", "if ((VAR_3 != 4) || (VAR_5 != 1)) {", "go...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
21,730
int pp_check(int key, int pp, int nx) { int access; /* Compute access rights */ /* When pp is 3/7, the result is undefined. Set it to noaccess */ access = 0; if (key == 0) { switch (pp) { case 0x0: case 0x1: case 0x2: access |= PAGE_WRITE; ...
false
qemu
496272a7018ba01aa2b87a1a5ed866ff85133401
int pp_check(int key, int pp, int nx) { int access; access = 0; if (key == 0) { switch (pp) { case 0x0: case 0x1: case 0x2: access |= PAGE_WRITE; case 0x3: case 0x6: access |= PAGE_READ; ...
{ "code": [], "line_no": [] }
int FUNC_0(int VAR_0, int VAR_1, int VAR_2) { int VAR_3; VAR_3 = 0; if (VAR_0 == 0) { switch (VAR_1) { case 0x0: case 0x1: case 0x2: VAR_3 |= PAGE_WRITE; case 0x3: case 0x6: VAR_3 |= PAGE_READ; ...
[ "int FUNC_0(int VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3;", "VAR_3 = 0;", "if (VAR_0 == 0) {", "switch (VAR_1) {", "case 0x0:\ncase 0x1:\ncase 0x2:\nVAR_3 |= PAGE_WRITE;", "case 0x3:\ncase 0x6:\nVAR_3 |= PAGE_READ;", "break;", "}", "} else {", "switch (VAR_1) {", "case 0x0:\ncase 0x6:\nVAR...
[ 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 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 51, 53, 55 ], [ 57 ], ...
21,732
static bool check_section_footer(QEMUFile *f, SaveStateEntry *se) { uint8_t read_mark; uint32_t read_section_id; if (skip_section_footers) { /* No footer to check */ return true; } read_mark = qemu_get_byte(f); if (read_mark != QEMU_VM_SECTION_FOOTER) { er...
false
qemu
59f39a47411ab6007a592555dc639aa9753f8d23
static bool check_section_footer(QEMUFile *f, SaveStateEntry *se) { uint8_t read_mark; uint32_t read_section_id; if (skip_section_footers) { return true; } read_mark = qemu_get_byte(f); if (read_mark != QEMU_VM_SECTION_FOOTER) { error_report("Missing sect...
{ "code": [], "line_no": [] }
static bool FUNC_0(QEMUFile *f, SaveStateEntry *se) { uint8_t read_mark; uint32_t read_section_id; if (skip_section_footers) { return true; } read_mark = qemu_get_byte(f); if (read_mark != QEMU_VM_SECTION_FOOTER) { error_report("Missing section footer for...
[ "static bool FUNC_0(QEMUFile *f, SaveStateEntry *se)\n{", "uint8_t read_mark;", "uint32_t read_section_id;", "if (skip_section_footers) {", "return true;", "}", "read_mark = qemu_get_byte(f);", "if (read_mark != QEMU_VM_SECTION_FOOTER) {", "error_report(\"Missing section footer for %s\", se->idstr);...
[ 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 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 53 ], [ 55 ] ]