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
18,995
ChardevReturn *qmp_chardev_add(const char *id, ChardevBackend *backend, Error **errp) { ChardevReturn *ret = g_new0(ChardevReturn, 1); CharDriverState *base, *chr = NULL; chr = qemu_chr_find(id); if (chr) { error_setg(errp, "Chardev '%s' already exists", i...
false
qemu
e68c5958668596a5023e30ddf8368410878f7682
ChardevReturn *qmp_chardev_add(const char *id, ChardevBackend *backend, Error **errp) { ChardevReturn *ret = g_new0(ChardevReturn, 1); CharDriverState *base, *chr = NULL; chr = qemu_chr_find(id); if (chr) { error_setg(errp, "Chardev '%s' already exists", i...
{ "code": [], "line_no": [] }
ChardevReturn *FUNC_0(const char *id, ChardevBackend *backend, Error **errp) { ChardevReturn *ret = g_new0(ChardevReturn, 1); CharDriverState *base, *chr = NULL; chr = qemu_chr_find(id); if (chr) { error_setg(errp, "Chardev '%s' already exists", id); ...
[ "ChardevReturn *FUNC_0(const char *id, ChardevBackend *backend,\nError **errp)\n{", "ChardevReturn *ret = g_new0(ChardevReturn, 1);", "CharDriverState *base, *chr = NULL;", "chr = qemu_chr_find(id);", "if (chr) {", "error_setg(errp, \"Chardev '%s' already exists\", id);", "g_free(ret);", "return NULL;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [...
18,996
static int pbm_pci_host_init(PCIDevice *d) { pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_SUN); pci_config_set_device_id(d->config, PCI_DEVICE_ID_SUN_SABRE); pci_set_word(d->config + PCI_COMMAND, PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); pci_set_word(d->config + PCI_STATUS, ...
false
qemu
92f9a4f13ea29de4644bd0b077643e1dff96ab29
static int pbm_pci_host_init(PCIDevice *d) { pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_SUN); pci_config_set_device_id(d->config, PCI_DEVICE_ID_SUN_SABRE); pci_set_word(d->config + PCI_COMMAND, PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); pci_set_word(d->config + PCI_STATUS, ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_SUN); pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_SUN_SABRE); pci_set_word(VAR_0->config + PCI_COMMAND, PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); pci_set_word(VAR_0->config + PCI_...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_SUN);", "pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_SUN_SABRE);", "pci_set_word(VAR_0->config + PCI_COMMAND,\nPCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);", "pci_set_word(VAR_0->config + PCI_STATUS,\nPCI...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
18,998
static int32_t read_s32(uint8_t *data, size_t offset) { return (int32_t)((data[offset] << 24) | (data[offset + 1] << 16) | (data[offset + 2] << 8) | data[offset + 3]); }
false
qemu
5fb6c7a8b26eab1a22207d24b4784bd2b39ab54b
static int32_t read_s32(uint8_t *data, size_t offset) { return (int32_t)((data[offset] << 24) | (data[offset + 1] << 16) | (data[offset + 2] << 8) | data[offset + 3]); }
{ "code": [], "line_no": [] }
static int32_t FUNC_0(uint8_t *data, size_t offset) { return (int32_t)((data[offset] << 24) | (data[offset + 1] << 16) | (data[offset + 2] << 8) | data[offset + 3]); }
[ "static int32_t FUNC_0(uint8_t *data, size_t offset)\n{", "return (int32_t)((data[offset] << 24) | (data[offset + 1] << 16) |\n(data[offset + 2] << 8) | data[offset + 3]);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
19,000
CPUSPARCState *cpu_sparc_init(void) { CPUSPARCState *env; cpu_exec_init(); if (!(env = malloc(sizeof(CPUSPARCState)))) return (NULL); memset(env, 0, sizeof(*env)); env->cwp = 0; env->wim = 1; env->regwptr = env->regbase + (env->cwp * 16); env->access_type = ACCESS_DATA; #...
false
qemu
b769d8fef6c06ddb39ef0337882a4f8872b9c2bc
CPUSPARCState *cpu_sparc_init(void) { CPUSPARCState *env; cpu_exec_init(); if (!(env = malloc(sizeof(CPUSPARCState)))) return (NULL); memset(env, 0, sizeof(*env)); env->cwp = 0; env->wim = 1; env->regwptr = env->regbase + (env->cwp * 16); env->access_type = ACCESS_DATA; #...
{ "code": [], "line_no": [] }
CPUSPARCState *FUNC_0(void) { CPUSPARCState *env; cpu_exec_init(); if (!(env = malloc(sizeof(CPUSPARCState)))) return (NULL); memset(env, 0, sizeof(*env)); env->cwp = 0; env->wim = 1; env->regwptr = env->regbase + (env->cwp * 16); env->access_type = ACCESS_DATA; #if defin...
[ "CPUSPARCState *FUNC_0(void)\n{", "CPUSPARCState *env;", "cpu_exec_init();", "if (!(env = malloc(sizeof(CPUSPARCState))))\nreturn (NULL);", "memset(env, 0, sizeof(*env));", "env->cwp = 0;", "env->wim = 1;", "env->regwptr = env->regbase + (env->cwp * 16);", "env->access_type = ACCESS_DATA;", "#if d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51...
19,001
void timer_init_tl(QEMUTimer *ts, QEMUTimerList *timer_list, int scale, QEMUTimerCB *cb, void *opaque) { ts->timer_list = timer_list; ts->cb = cb; ts->opaque = opaque; ts->scale = scale; ts->expire_time = -1; }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
void timer_init_tl(QEMUTimer *ts, QEMUTimerList *timer_list, int scale, QEMUTimerCB *cb, void *opaque) { ts->timer_list = timer_list; ts->cb = cb; ts->opaque = opaque; ts->scale = scale; ts->expire_time = -1; }
{ "code": [], "line_no": [] }
void FUNC_0(QEMUTimer *VAR_0, QEMUTimerList *VAR_1, int VAR_2, QEMUTimerCB *VAR_3, void *VAR_4) { VAR_0->VAR_1 = VAR_1; VAR_0->VAR_3 = VAR_3; VAR_0->VAR_4 = VAR_4; VAR_0->VAR_2 = VAR_2; VAR_0->expire_time = -1; }
[ "void FUNC_0(QEMUTimer *VAR_0,\nQEMUTimerList *VAR_1, int VAR_2,\nQEMUTimerCB *VAR_3, void *VAR_4)\n{", "VAR_0->VAR_1 = VAR_1;", "VAR_0->VAR_3 = VAR_3;", "VAR_0->VAR_4 = VAR_4;", "VAR_0->VAR_2 = VAR_2;", "VAR_0->expire_time = -1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
19,004
static uint32_t virtio_net_get_features(VirtIODevice *vdev, uint32_t features) { VirtIONet *n = VIRTIO_NET(vdev); NetClientState *nc = qemu_get_queue(n->nic); features |= (1 << VIRTIO_NET_F_MAC); if (!peer_has_vnet_hdr(n)) { features &= ~(0x1 << VIRTIO_NET_F_CSUM); features &=...
false
qemu
0cd09c3a6cc2230ba38c462fc410b4acce59eb6f
static uint32_t virtio_net_get_features(VirtIODevice *vdev, uint32_t features) { VirtIONet *n = VIRTIO_NET(vdev); NetClientState *nc = qemu_get_queue(n->nic); features |= (1 << VIRTIO_NET_F_MAC); if (!peer_has_vnet_hdr(n)) { features &= ~(0x1 << VIRTIO_NET_F_CSUM); features &=...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(VirtIODevice *vdev, uint32_t features) { VirtIONet *n = VIRTIO_NET(vdev); NetClientState *nc = qemu_get_queue(n->nic); features |= (1 << VIRTIO_NET_F_MAC); if (!peer_has_vnet_hdr(n)) { features &= ~(0x1 << VIRTIO_NET_F_CSUM); features &= ~(0x1 << VIRTIO_...
[ "static uint32_t FUNC_0(VirtIODevice *vdev, uint32_t features)\n{", "VirtIONet *n = VIRTIO_NET(vdev);", "NetClientState *nc = qemu_get_queue(n->nic);", "features |= (1 << VIRTIO_NET_F_MAC);", "if (!peer_has_vnet_hdr(n)) {", "features &= ~(0x1 << VIRTIO_NET_F_CSUM);", "features &= ~(0x1 << VIRTIO_NET_F_H...
[ 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51...
19,007
static int64_t mkv_write_cues(AVFormatContext *s, mkv_cues *cues, mkv_track *tracks, int num_tracks) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *dyn_cp, *pb = s->pb; ebml_master cues_element; int64_t currentpos; int i, j, ret; currentpos = avio_tell(pb); ret = start_ebml...
false
FFmpeg
eabbc64728c2fdb74f565aededec2ab023d20699
static int64_t mkv_write_cues(AVFormatContext *s, mkv_cues *cues, mkv_track *tracks, int num_tracks) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *dyn_cp, *pb = s->pb; ebml_master cues_element; int64_t currentpos; int i, j, ret; currentpos = avio_tell(pb); ret = start_ebml...
{ "code": [], "line_no": [] }
static int64_t FUNC_0(AVFormatContext *s, mkv_cues *cues, mkv_track *tracks, int num_tracks) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *dyn_cp, *pb = s->pb; ebml_master cues_element; int64_t currentpos; int VAR_0, VAR_1, VAR_2; currentpos = avio_tell(pb); VAR_2 = start_...
[ "static int64_t FUNC_0(AVFormatContext *s, mkv_cues *cues, mkv_track *tracks, int num_tracks)\n{", "MatroskaMuxContext *mkv = s->priv_data;", "AVIOContext *dyn_cp, *pb = s->pb;", "ebml_master cues_element;", "int64_t currentpos;", "int VAR_0, VAR_1, VAR_2;", "currentpos = avio_tell(pb);", "VAR_2 = sta...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
19,008
av_cold int ff_vaapi_encode_init(AVCodecContext *avctx, const VAAPIEncodeType *type) { VAAPIEncodeContext *ctx = avctx->priv_data; AVVAAPIFramesContext *recon_hwctx = NULL; AVVAAPIHWConfig *hwconfig = NULL; AVHWFramesConstraints *constraints = NULL; enum AVPix...
false
FFmpeg
c8241e730f116f1c9cfc0b34110aa7f052e05332
av_cold int ff_vaapi_encode_init(AVCodecContext *avctx, const VAAPIEncodeType *type) { VAAPIEncodeContext *ctx = avctx->priv_data; AVVAAPIFramesContext *recon_hwctx = NULL; AVVAAPIHWConfig *hwconfig = NULL; AVHWFramesConstraints *constraints = NULL; enum AVPix...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(AVCodecContext *avctx, const VAAPIEncodeType *type) { VAAPIEncodeContext *ctx = avctx->priv_data; AVVAAPIFramesContext *recon_hwctx = NULL; AVVAAPIHWConfig *hwconfig = NULL; AVHWFramesConstraints *constraints = NULL; enum AVPixelFormat VAR_0...
[ "av_cold int FUNC_0(AVCodecContext *avctx,\nconst VAAPIEncodeType *type)\n{", "VAAPIEncodeContext *ctx = avctx->priv_data;", "AVVAAPIFramesContext *recon_hwctx = NULL;", "AVVAAPIHWConfig *hwconfig = NULL;", "AVHWFramesConstraints *constraints = NULL;", "enum AVPixelFormat VAR_0;", "VAStatus vas;", "in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
19,010
void ff_print_debug_info(MpegEncContext *s, AVFrame *pict) { if ( s->avctx->hwaccel || !pict || !pict->mb_type || (s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)) return; if (s->avctx->debug & (FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE)) { int x,y; av_...
false
FFmpeg
20ec0d2a750a804f50c090cf6e6509db8ff9cadd
void ff_print_debug_info(MpegEncContext *s, AVFrame *pict) { if ( s->avctx->hwaccel || !pict || !pict->mb_type || (s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)) return; if (s->avctx->debug & (FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE)) { int x,y; av_...
{ "code": [], "line_no": [] }
void FUNC_0(MpegEncContext *VAR_0, AVFrame *VAR_1) { if ( VAR_0->avctx->hwaccel || !VAR_1 || !VAR_1->mb_type || (VAR_0->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)) return; if (VAR_0->avctx->debug & (FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE)) { int VAR_2,VAR_3; ...
[ "void FUNC_0(MpegEncContext *VAR_0, AVFrame *VAR_1)\n{", "if ( VAR_0->avctx->hwaccel || !VAR_1 || !VAR_1->mb_type\n|| (VAR_0->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU))\nreturn;", "if (VAR_0->avctx->debug & (FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE)) {", "int VAR_2,VAR_3;", "av_log(VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5, 7, 9 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [...
19,013
static uint8_t qvirtio_pci_config_readb(QVirtioDevice *d, uint64_t off) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; return qpci_io_readb(dev->pdev, CONFIG_BASE(dev) + off); }
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static uint8_t qvirtio_pci_config_readb(QVirtioDevice *d, uint64_t off) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; return qpci_io_readb(dev->pdev, CONFIG_BASE(dev) + off); }
{ "code": [ " return qpci_io_readb(dev->pdev, CONFIG_BASE(dev) + off);" ], "line_no": [ 7 ] }
static uint8_t FUNC_0(QVirtioDevice *d, uint64_t off) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; return qpci_io_readb(dev->pdev, CONFIG_BASE(dev) + off); }
[ "static uint8_t FUNC_0(QVirtioDevice *d, uint64_t off)\n{", "QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;", "return qpci_io_readb(dev->pdev, CONFIG_BASE(dev) + off);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
19,015
int cpu_ppc_register_internal (CPUPPCState *env, const ppc_def_t *def) { env->msr_mask = def->msr_mask; env->mmu_model = def->mmu_model; env->excp_model = def->excp_model; env->bus_model = def->bus_model; env->insns_flags = def->insns_flags; env->insns_flags2 = def->insns_flags2; env->flags ...
true
qemu
4656e1f01289cc3aa20986deb6a407165826abe5
int cpu_ppc_register_internal (CPUPPCState *env, const ppc_def_t *def) { env->msr_mask = def->msr_mask; env->mmu_model = def->mmu_model; env->excp_model = def->excp_model; env->bus_model = def->bus_model; env->insns_flags = def->insns_flags; env->insns_flags2 = def->insns_flags2; env->flags ...
{ "code": [], "line_no": [] }
int FUNC_0 (CPUPPCState *VAR_0, const ppc_def_t *VAR_1) { VAR_0->msr_mask = VAR_1->msr_mask; VAR_0->mmu_model = VAR_1->mmu_model; VAR_0->excp_model = VAR_1->excp_model; VAR_0->bus_model = VAR_1->bus_model; VAR_0->insns_flags = VAR_1->insns_flags; VAR_0->insns_flags2 = VAR_1->insns_flags2; VA...
[ "int FUNC_0 (CPUPPCState *VAR_0, const ppc_def_t *VAR_1)\n{", "VAR_0->msr_mask = VAR_1->msr_mask;", "VAR_0->mmu_model = VAR_1->mmu_model;", "VAR_0->excp_model = VAR_1->excp_model;", "VAR_0->bus_model = VAR_1->bus_model;", "VAR_0->insns_flags = VAR_1->insns_flags;", "VAR_0->insns_flags2 = VAR_1->insns_fl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ ...
19,016
static void set_dirty_bitmap(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int dirty) { int64_t start, end; start = sector_num / BDRV_SECTORS_PER_DIRTY_CHUNK; end = (sector_num + nb_sectors) / BDRV_SECTORS_PER_DIRTY_CHUNK; for (; start <= end; start++) ...
true
qemu
c6d2283068026035a6468aae9dcde953bd7521ac
static void set_dirty_bitmap(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int dirty) { int64_t start, end; start = sector_num / BDRV_SECTORS_PER_DIRTY_CHUNK; end = (sector_num + nb_sectors) / BDRV_SECTORS_PER_DIRTY_CHUNK; for (; start <= end; start++) ...
{ "code": [ " end = (sector_num + nb_sectors) / BDRV_SECTORS_PER_DIRTY_CHUNK;", " bs->dirty_bitmap[start] = dirty;" ], "line_no": [ 13, 19 ] }
static void FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2, int VAR_3) { int64_t start, end; start = VAR_1 / BDRV_SECTORS_PER_DIRTY_CHUNK; end = (VAR_1 + VAR_2) / BDRV_SECTORS_PER_DIRTY_CHUNK; for (; start <= end; start++) { VAR_0->dirty_bitmap[s...
[ "static void FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nint VAR_2, int VAR_3)\n{", "int64_t start, end;", "start = VAR_1 / BDRV_SECTORS_PER_DIRTY_CHUNK;", "end = (VAR_1 + VAR_2) / BDRV_SECTORS_PER_DIRTY_CHUNK;", "for (; start <= end; start++) {", "VAR_0->dirty_bitmap[start] = VAR_3;", "}", "}" ]
[ 0, 0, 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
19,017
static void pc_dimm_unplug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { PCMachineState *pcms = PC_MACHINE(hotplug_dev); PCDIMMDevice *dimm = PC_DIMM(dev); PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm); MemoryRegion *mr = ddc->get_memory_region(dimm);...
true
qemu
0479097859372a760843ad1b9c6ed3705c6423ca
static void pc_dimm_unplug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { PCMachineState *pcms = PC_MACHINE(hotplug_dev); PCDIMMDevice *dimm = PC_DIMM(dev); PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm); MemoryRegion *mr = ddc->get_memory_region(dimm);...
{ "code": [ " MemoryRegion *mr = ddc->get_memory_region(dimm);", " MemoryRegion *mr = ddc->get_memory_region(dimm);", " MemoryRegion *mr = ddc->get_memory_region(dimm);", " MemoryRegion *mr = ddc->get_memory_region(dimm);", " MemoryRegion *mr = ddc->get_memory_region(dimm);", " ...
static void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1, Error **VAR_2) { PCMachineState *pcms = PC_MACHINE(VAR_0); PCDIMMDevice *dimm = PC_DIMM(VAR_1); PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm); MemoryRegion *mr = ddc->get_memory_region(dimm); HotplugHa...
[ "static void FUNC_0(HotplugHandler *VAR_0,\nDeviceState *VAR_1, Error **VAR_2)\n{", "PCMachineState *pcms = PC_MACHINE(VAR_0);", "PCDIMMDevice *dimm = PC_DIMM(VAR_1);", "PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);", "MemoryRegion *mr = ddc->get_memory_region(dimm);", "HotplugHandlerClass *hhc;", "...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ] ]
19,018
uint64_t ram_bytes_remaining(void) { return ram_state->migration_dirty_pages * TARGET_PAGE_SIZE; }
true
qemu
bae416e5ba65701d3c5238164517158066d615e5
uint64_t ram_bytes_remaining(void) { return ram_state->migration_dirty_pages * TARGET_PAGE_SIZE; }
{ "code": [ " return ram_state->migration_dirty_pages * TARGET_PAGE_SIZE;" ], "line_no": [ 5 ] }
uint64_t FUNC_0(void) { return ram_state->migration_dirty_pages * TARGET_PAGE_SIZE; }
[ "uint64_t FUNC_0(void)\n{", "return ram_state->migration_dirty_pages * TARGET_PAGE_SIZE;", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
19,019
QEMU_BUILD_BUG_ON(ARRAY_SIZE(monitor_event_names) != QEVENT_MAX) /** * monitor_protocol_event(): Generate a Monitor event * * Event-specific data can be emitted through the (optional) 'data' parameter. */ void monitor_protocol_event(MonitorEvent event, QObject *data) { QDict *qmp; const char *eve...
true
qemu
afeecec2e8e99ba184c487633d5d0dde68a002ac
QEMU_BUILD_BUG_ON(ARRAY_SIZE(monitor_event_names) != QEVENT_MAX) void monitor_protocol_event(MonitorEvent event, QObject *data) { QDict *qmp; const char *event_name; Monitor *mon; assert(event < QEVENT_MAX); event_name = monitor_event_names[event]; assert(event_name != NU...
{ "code": [ " Monitor *mon;", " QLIST_FOREACH(mon, &mon_list, entry) {", " if (monitor_ctrl_mode(mon) && qmp_cmd_mode(mon)) {", " monitor_json_emitter(mon, QOBJECT(qmp));" ], "line_no": [ 23, 53, 55, 57 ] }
FUNC_0(VAR_0(monitor_event_names) != QEVENT_MAX) void FUNC_1(MonitorEvent VAR_1, QObject *VAR_2) { QDict *qmp; const char *VAR_3; Monitor *mon; assert(VAR_1 < QEVENT_MAX); VAR_3 = monitor_event_names[VAR_1]; assert(VAR_3 != NULL); qmp = qdict_new(); timestamp_...
[ "FUNC_0(VAR_0(monitor_event_names) != QEVENT_MAX)\nvoid FUNC_1(MonitorEvent VAR_1, QObject *VAR_2)\n{", "QDict *qmp;", "const char *VAR_3;", "Monitor *mon;", "assert(VAR_1 < QEVENT_MAX);", "VAR_3 = monitor_event_names[VAR_1];", "assert(VAR_3 != NULL);", "qmp = qdict_new();", "timestamp_put(qmp);", ...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ],...
19,020
static int preallocate(BlockDriverState *bs) { uint64_t nb_sectors; uint64_t offset; int num; int ret; QCowL2Meta meta; nb_sectors = bdrv_getlength(bs) >> 9; offset = 0; QLIST_INIT(&meta.dependent_requests); meta.cluster_offset = 0; while (nb_sectors) { nu...
true
qemu
19dbcbf7cc1892f5130b4edd5a4bb4ca800ef7d8
static int preallocate(BlockDriverState *bs) { uint64_t nb_sectors; uint64_t offset; int num; int ret; QCowL2Meta meta; nb_sectors = bdrv_getlength(bs) >> 9; offset = 0; QLIST_INIT(&meta.dependent_requests); meta.cluster_offset = 0; while (nb_sectors) { nu...
{ "code": [ " return -1;", " if (qcow2_alloc_cluster_link_l2(bs, &meta) < 0) {", " return -1;", " bdrv_write(bs->file, (meta.cluster_offset >> 9) + num - 1, buf, 1);" ], "line_no": [ 37, 43, 37, 89 ] }
static int FUNC_0(BlockDriverState *VAR_0) { uint64_t nb_sectors; uint64_t offset; int VAR_1; int VAR_2; QCowL2Meta meta; nb_sectors = bdrv_getlength(VAR_0) >> 9; offset = 0; QLIST_INIT(&meta.dependent_requests); meta.cluster_offset = 0; while (nb_sectors) { ...
[ "static int FUNC_0(BlockDriverState *VAR_0)\n{", "uint64_t nb_sectors;", "uint64_t offset;", "int VAR_1;", "int VAR_2;", "QCowL2Meta meta;", "nb_sectors = bdrv_getlength(VAR_0) >> 9;", "offset = 0;", "QLIST_INIT(&meta.dependent_requests);", "meta.cluster_offset = 0;", "while (nb_sectors) {", "...
[ 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, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
19,021
static int msix_is_masked(PCIDevice *dev, int vector) { unsigned offset = vector * PCI_MSIX_ENTRY_SIZE + PCI_MSIX_ENTRY_VECTOR_CTRL; return dev->msix_function_masked || dev->msix_table_page[offset] & PCI_MSIX_ENTRY_CTRL_MASKBIT; }
true
qemu
ae392c416c69a020226c768d9c3af08b29dd6d96
static int msix_is_masked(PCIDevice *dev, int vector) { unsigned offset = vector * PCI_MSIX_ENTRY_SIZE + PCI_MSIX_ENTRY_VECTOR_CTRL; return dev->msix_function_masked || dev->msix_table_page[offset] & PCI_MSIX_ENTRY_CTRL_MASKBIT; }
{ "code": [ "static int msix_is_masked(PCIDevice *dev, int vector)", " unsigned offset =", " vector * PCI_MSIX_ENTRY_SIZE + PCI_MSIX_ENTRY_VECTOR_CTRL;", " return dev->msix_function_masked ||", "\t dev->msix_table_page[offset] & PCI_MSIX_ENTRY_CTRL_MASKBIT;" ], "line_no": [ ...
static int FUNC_0(PCIDevice *VAR_0, int VAR_1) { unsigned VAR_2 = VAR_1 * PCI_MSIX_ENTRY_SIZE + PCI_MSIX_ENTRY_VECTOR_CTRL; return VAR_0->msix_function_masked || VAR_0->msix_table_page[VAR_2] & PCI_MSIX_ENTRY_CTRL_MASKBIT; }
[ "static int FUNC_0(PCIDevice *VAR_0, int VAR_1)\n{", "unsigned VAR_2 =\nVAR_1 * PCI_MSIX_ENTRY_SIZE + PCI_MSIX_ENTRY_VECTOR_CTRL;", "return VAR_0->msix_function_masked ||\nVAR_0->msix_table_page[VAR_2] & PCI_MSIX_ENTRY_CTRL_MASKBIT;", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ] ]
19,022
static int vmdk_add_extent(BlockDriverState *bs, BlockDriverState *file, bool flat, int64_t sectors, int64_t l1_offset, int64_t l1_backup_offset, uint32_t l1_size, int l2_size, uint64_t cluster_sectors, ...
true
qemu
301c7d38a0c359b91526391d13617386f3d9bb29
static int vmdk_add_extent(BlockDriverState *bs, BlockDriverState *file, bool flat, int64_t sectors, int64_t l1_offset, int64_t l1_backup_offset, uint32_t l1_size, int l2_size, uint64_t cluster_sectors, ...
{ "code": [ " extent->cluster_sectors = cluster_sectors;" ], "line_no": [ 77 ] }
static int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1, bool VAR_2, int64_t VAR_3, int64_t VAR_4, int64_t VAR_5, uint32_t VAR_6, int VAR_7, uint64_t VAR_8, VmdkExtent *...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nBlockDriverState *VAR_1, bool VAR_2, int64_t VAR_3,\nint64_t VAR_4, int64_t VAR_5,\nuint32_t VAR_6,\nint VAR_7, uint64_t VAR_8,\nVmdkExtent **VAR_9)\n{", "VmdkExtent *extent;", "BDRVVmdkState *s = VAR_0->opaque;", "if (VAR_8 > 0x200000) {", "error_report(\"invali...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ], [ 63 ...
19,024
static int get_stream_info(AVCodecContext *avctx) { FDKAACDecContext *s = avctx->priv_data; CStreamInfo *info = aacDecoder_GetStreamInfo(s->handle); int channel_counts[0x24] = { 0 }; int i, ch_error = 0; uint64_t ch_layout = 0; if (!info) { av_log(avctx, AV_LOG_E...
true
FFmpeg
c7921a480467876ece06566e0efd8f6bce9d1903
static int get_stream_info(AVCodecContext *avctx) { FDKAACDecContext *s = avctx->priv_data; CStreamInfo *info = aacDecoder_GetStreamInfo(s->handle); int channel_counts[0x24] = { 0 }; int i, ch_error = 0; uint64_t ch_layout = 0; if (!info) { av_log(avctx, AV_LOG_E...
{ "code": [ " if (ctype <= ACT_NONE || ctype > FF_ARRAY_ELEMS(channel_counts)) {" ], "line_no": [ 45 ] }
static int FUNC_0(AVCodecContext *VAR_0) { FDKAACDecContext *s = VAR_0->priv_data; CStreamInfo *info = aacDecoder_GetStreamInfo(s->handle); int VAR_1[0x24] = { 0 }; int VAR_2, VAR_3 = 0; uint64_t ch_layout = 0; if (!info) { av_log(VAR_0, AV_LOG_ERROR, "Unable to ...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "FDKAACDecContext *s = VAR_0->priv_data;", "CStreamInfo *info = aacDecoder_GetStreamInfo(s->handle);", "int VAR_1[0x24] = { 0 };", "int VAR_2, VAR_3 = 0;", "uint64_t ch_layout = 0;", "if (!info) {", "av_log(VAR_0, AV_LOG_ERROR, \"Unable to ...
[ 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, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
19,025
static void *qemu_rdma_data_init(const char *host_port, Error **errp) { RDMAContext *rdma = NULL; InetSocketAddress *addr; if (host_port) { rdma = g_malloc0(sizeof(RDMAContext)); memset(rdma, 0, sizeof(RDMAContext)); rdma->current_index = -1; rdma->current_chunk = -...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void *qemu_rdma_data_init(const char *host_port, Error **errp) { RDMAContext *rdma = NULL; InetSocketAddress *addr; if (host_port) { rdma = g_malloc0(sizeof(RDMAContext)); memset(rdma, 0, sizeof(RDMAContext)); rdma->current_index = -1; rdma->current_chunk = -...
{ "code": [], "line_no": [] }
static void *FUNC_0(const char *VAR_0, Error **VAR_1) { RDMAContext *rdma = NULL; InetSocketAddress *addr; if (VAR_0) { rdma = g_malloc0(sizeof(RDMAContext)); memset(rdma, 0, sizeof(RDMAContext)); rdma->current_index = -1; rdma->current_chunk = -1; addr =...
[ "static void *FUNC_0(const char *VAR_0, Error **VAR_1)\n{", "RDMAContext *rdma = NULL;", "InetSocketAddress *addr;", "if (VAR_0) {", "rdma = g_malloc0(sizeof(RDMAContext));", "memset(rdma, 0, sizeof(RDMAContext));", "rdma->current_index = -1;", "rdma->current_chunk = -1;", "addr = inet_parse(VAR_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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49...
19,026
static void test_tco_second_timeout_pause(void) { TestData td; const uint16_t ticks = TCO_SECS_TO_TICKS(32); QDict *ad; td.args = "-watchdog-action pause"; td.noreboot = false; test_init(&td); stop_tco(&td); clear_tco_status(&td); reset_on_second_timeout(true); set...
true
qemu
34779e8c3991f7fcd74b2045478abcef67dbeb15
static void test_tco_second_timeout_pause(void) { TestData td; const uint16_t ticks = TCO_SECS_TO_TICKS(32); QDict *ad; td.args = "-watchdog-action pause"; td.noreboot = false; test_init(&td); stop_tco(&td); clear_tco_status(&td); reset_on_second_timeout(true); set...
{ "code": [ " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();" ], "line_no": [ 45, 45, 45,...
static void FUNC_0(void) { TestData td; const uint16_t VAR_0 = TCO_SECS_TO_TICKS(32); QDict *ad; td.args = "-watchdog-action pause"; td.noreboot = false; test_init(&td); stop_tco(&td); clear_tco_status(&td); reset_on_second_timeout(true); set_tco_timeout(&td, TCO_S...
[ "static void FUNC_0(void)\n{", "TestData td;", "const uint16_t VAR_0 = TCO_SECS_TO_TICKS(32);", "QDict *ad;", "td.args = \"-watchdog-action pause\";", "td.noreboot = false;", "test_init(&td);", "stop_tco(&td);", "clear_tco_status(&td);", "reset_on_second_timeout(true);", "set_tco_timeout(&td, TC...
[ 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 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
19,028
static void filter_mb_mbaff_edgev( H264Context *h, uint8_t *pix, int stride, const int16_t bS[7], int bsi, int qp ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; int alpha = alpha_table[index_a]; int beta = beta_table[qp - qp...
false
FFmpeg
a4f6be86d67ae30d494fbe8a470bc32b715d75a9
static void filter_mb_mbaff_edgev( H264Context *h, uint8_t *pix, int stride, const int16_t bS[7], int bsi, int qp ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; int alpha = alpha_table[index_a]; int beta = beta_table[qp - qp...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, const int16_t VAR_3[7], int VAR_4, int VAR_5 ) { const int VAR_6 = 6 * (VAR_0->sps.bit_depth_luma - 8); int VAR_7 = VAR_5 - VAR_6 + VAR_0->slice_alpha_c0_offset; int VAR_8 = alpha_table[VAR_7]; int VAR_9 = beta_table[VAR_5 - VAR_6 +...
[ "static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, const int16_t VAR_3[7], int VAR_4, int VAR_5 ) {", "const int VAR_6 = 6 * (VAR_0->sps.bit_depth_luma - 8);", "int VAR_7 = VAR_5 - VAR_6 + VAR_0->slice_alpha_c0_offset;", "int VAR_8 = alpha_table[VAR_7];", "int VAR_9 = beta_table[VAR_5 - VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
19,029
static int rtsp_read_packet(AVFormatContext *s, AVPacket *pkt) { RTSPState *rt = s->priv_data; int ret; RTSPMessageHeader reply1, *reply = &reply1; char cmd[1024]; if (rt->server_type == RTSP_SERVER_REAL) { int i; enum AVDiscard cache[MAX_STREAM...
false
FFmpeg
c89658008705d949c319df3fa6f400c481ad73e1
static int rtsp_read_packet(AVFormatContext *s, AVPacket *pkt) { RTSPState *rt = s->priv_data; int ret; RTSPMessageHeader reply1, *reply = &reply1; char cmd[1024]; if (rt->server_type == RTSP_SERVER_REAL) { int i; enum AVDiscard cache[MAX_STREAM...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { RTSPState *rt = VAR_0->priv_data; int VAR_2; RTSPMessageHeader reply1, *reply = &reply1; char VAR_3[1024]; if (rt->server_type == RTSP_SERVER_REAL) { int VAR_4; enum AVDiscard VAR_5[MA...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{", "RTSPState *rt = VAR_0->priv_data;", "int VAR_2;", "RTSPMessageHeader reply1, *reply = &reply1;", "char VAR_3[1024];", "if (rt->server_type == RTSP_SERVER_REAL) {", "int VAR_4;", "enum AVDiscard VAR_5[MAX_STREAMS];", "for (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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37, 39, 41, 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ...
19,030
static int cudaupload_query_formats(AVFilterContext *ctx) { static const enum AVPixelFormat input_pix_fmts[] = { AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE, }; static const enum AVPixelFormat output_pix_fmts[] = { AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,...
false
FFmpeg
0faf3c3a25ede9ecfdb1cf68a0f8aef23c25197a
static int cudaupload_query_formats(AVFilterContext *ctx) { static const enum AVPixelFormat input_pix_fmts[] = { AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE, }; static const enum AVPixelFormat output_pix_fmts[] = { AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterContext *VAR_0) { static const enum AVPixelFormat VAR_1[] = { AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE, }; static const enum AVPixelFormat VAR_2[] = { AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE, }; AVFilterFormats *in_f...
[ "static int FUNC_0(AVFilterContext *VAR_0)\n{", "static const enum AVPixelFormat VAR_1[] = {", "AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,\nAV_PIX_FMT_NONE,\n};", "static const enum AVPixelFormat VAR_2[] = {", "AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,\n};", "AVFilterFormats *in_fmts = ff_make_form...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
19,032
static void opt_audio_sample_fmt(const char *arg) { if (strcmp(arg, "list")) audio_sample_fmt = av_get_sample_fmt(arg); else { list_fmts(av_get_sample_fmt_string, AV_SAMPLE_FMT_NB); ffmpeg_exit(0); } }
false
FFmpeg
6c18f1cda2e2b2471ebf75d30d552cb0cb61b6ad
static void opt_audio_sample_fmt(const char *arg) { if (strcmp(arg, "list")) audio_sample_fmt = av_get_sample_fmt(arg); else { list_fmts(av_get_sample_fmt_string, AV_SAMPLE_FMT_NB); ffmpeg_exit(0); } }
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { if (strcmp(VAR_0, "list")) audio_sample_fmt = av_get_sample_fmt(VAR_0); else { list_fmts(av_get_sample_fmt_string, AV_SAMPLE_FMT_NB); ffmpeg_exit(0); } }
[ "static void FUNC_0(const char *VAR_0)\n{", "if (strcmp(VAR_0, \"list\"))\naudio_sample_fmt = av_get_sample_fmt(VAR_0);", "else {", "list_fmts(av_get_sample_fmt_string, AV_SAMPLE_FMT_NB);", "ffmpeg_exit(0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
19,033
static int wsvqa_read_header(AVFormatContext *s) { WsVqaDemuxContext *wsvqa = s->priv_data; AVIOContext *pb = s->pb; AVStream *st; unsigned char *header; unsigned char scratch[VQA_PREAMBLE_SIZE]; unsigned int chunk_tag; unsigned int chunk_size; int fps; /* initialize the ...
false
FFmpeg
e1b0d3a389ff7050c66f43891539200eddf4af15
static int wsvqa_read_header(AVFormatContext *s) { WsVqaDemuxContext *wsvqa = s->priv_data; AVIOContext *pb = s->pb; AVStream *st; unsigned char *header; unsigned char scratch[VQA_PREAMBLE_SIZE]; unsigned int chunk_tag; unsigned int chunk_size; int fps; st = avforma...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { WsVqaDemuxContext *wsvqa = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; AVStream *st; unsigned char *VAR_1; unsigned char VAR_2[VQA_PREAMBLE_SIZE]; unsigned int VAR_3; unsigned int VAR_4; int VAR_5; st = avformat_new_str...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "WsVqaDemuxContext *wsvqa = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "AVStream *st;", "unsigned char *VAR_1;", "unsigned char VAR_2[VQA_PREAMBLE_SIZE];", "unsigned int VAR_3;", "unsigned int VAR_4;", "int VAR_5;", "st = avformat_new_stream...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 51 ], [ 53 ], [...
19,034
static void flat_print_str(WriterContext *wctx, const char *key, const char *value) { FlatContext *flat = wctx->priv; AVBPrint buf; flat_print_key_prefix(wctx); av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED); printf("%s=", flat_escape_key_str(&buf, key, flat->sep)); av_bprint_clear(&...
false
FFmpeg
01e4537f66c6d054f8c7bdbdd5b3cfb4220d12fe
static void flat_print_str(WriterContext *wctx, const char *key, const char *value) { FlatContext *flat = wctx->priv; AVBPrint buf; flat_print_key_prefix(wctx); av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED); printf("%s=", flat_escape_key_str(&buf, key, flat->sep)); av_bprint_clear(&...
{ "code": [], "line_no": [] }
static void FUNC_0(WriterContext *VAR_0, const char *VAR_1, const char *VAR_2) { FlatContext *flat = VAR_0->priv; AVBPrint buf; flat_print_key_prefix(VAR_0); av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED); printf("%s=", flat_escape_key_str(&buf, VAR_1, flat->sep)); av_bprint_clear(&b...
[ "static void FUNC_0(WriterContext *VAR_0, const char *VAR_1, const char *VAR_2)\n{", "FlatContext *flat = VAR_0->priv;", "AVBPrint buf;", "flat_print_key_prefix(VAR_0);", "av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED);", "printf(\"%s=\", flat_escape_key_str(&buf, VAR_1, flat->sep));", "av_bprint_cle...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
19,035
static int nut_write_packet(AVFormatContext *s, AVPacket *pkt){ NUTContext *nut = s->priv_data; StreamContext *nus= &nut->stream[pkt->stream_index]; AVIOContext *bc = s->pb, *dyn_bc; FrameCode *fc; int64_t coded_pts; int best_length, frame_code, flags, needed_flags, i, header_idx, best_hea...
false
FFmpeg
b010d9b58651379883b42e58494aaefbab4df648
static int nut_write_packet(AVFormatContext *s, AVPacket *pkt){ NUTContext *nut = s->priv_data; StreamContext *nus= &nut->stream[pkt->stream_index]; AVIOContext *bc = s->pb, *dyn_bc; FrameCode *fc; int64_t coded_pts; int best_length, frame_code, flags, needed_flags, i, header_idx, best_hea...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1){ NUTContext *nut = VAR_0->priv_data; StreamContext *nus= &nut->stream[VAR_1->stream_index]; AVIOContext *bc = VAR_0->pb, *dyn_bc; FrameCode *fc; int64_t coded_pts; int VAR_2, VAR_3, VAR_13, VAR_5, VAR_6, VAR_7, VAR_8; int VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1){", "NUTContext *nut = VAR_0->priv_data;", "StreamContext *nus= &nut->stream[VAR_1->stream_index];", "AVIOContext *bc = VAR_0->pb, *dyn_bc;", "FrameCode *fc;", "int64_t coded_pts;", "int VAR_2, VAR_3, VAR_13, VAR_5, VAR_6, VAR_7, VAR_8;", "int...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35, 37 ], [ 41, 43 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ], [...
19,036
ff_rm_parse_packet (AVFormatContext *s, ByteIOContext *pb, AVStream *st, RMStream *ast, int len, AVPacket *pkt, int *seq, int *flags, int64_t *timestamp) { RMDemuxContext *rm = s->priv_data; if (st->codec->codec_type == CODEC_TYPE_VIDEO) { rm->current_stre...
false
FFmpeg
dc3685e12999f106dd8e576e5b7d5543d4f70fa1
ff_rm_parse_packet (AVFormatContext *s, ByteIOContext *pb, AVStream *st, RMStream *ast, int len, AVPacket *pkt, int *seq, int *flags, int64_t *timestamp) { RMDemuxContext *rm = s->priv_data; if (st->codec->codec_type == CODEC_TYPE_VIDEO) { rm->current_stre...
{ "code": [], "line_no": [] }
FUNC_0 (AVFormatContext *VAR_0, ByteIOContext *VAR_1, AVStream *VAR_2, RMStream *VAR_3, int VAR_4, AVPacket *VAR_5, int *VAR_6, int *VAR_7, int64_t *VAR_8) { RMDemuxContext *rm = VAR_0->priv_data; if (VAR_2->codec->codec_type == CODEC_TYPE_VIDEO) { rm->cur...
[ "FUNC_0 (AVFormatContext *VAR_0, ByteIOContext *VAR_1,\nAVStream *VAR_2, RMStream *VAR_3, int VAR_4, AVPacket *VAR_5,\nint *VAR_6, int *VAR_7, int64_t *VAR_8)\n{", "RMDemuxContext *rm = VAR_0->priv_data;", "if (VAR_2->codec->codec_type == CODEC_TYPE_VIDEO) {", "rm->current_stream= VAR_2->id;", "if(rm_assemb...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49, 51 ], [ 55 ...
19,037
static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uint8_t *src, int size, int lines){ int c, line, pixels, code; const uint8_t *ssrc = src; int width = ((s->width * s->bpp) + 7) >> 3; #if CONFIG_ZLIB uint8_t *zbuf; unsigned long outlen; if(s->compr == TIFF_DEFLATE ...
false
FFmpeg
90a43060077dbbca7ef161a584e95cbc7466264d
static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uint8_t *src, int size, int lines){ int c, line, pixels, code; const uint8_t *ssrc = src; int width = ((s->width * s->bpp) + 7) >> 3; #if CONFIG_ZLIB uint8_t *zbuf; unsigned long outlen; if(s->compr == TIFF_DEFLATE ...
{ "code": [], "line_no": [] }
static int FUNC_0(TiffContext *VAR_0, uint8_t* VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4, int VAR_5){ int VAR_6, VAR_7, VAR_8, VAR_9; const uint8_t *VAR_10 = VAR_3; int VAR_11 = ((VAR_0->VAR_11 * VAR_0->bpp) + 7) >> 3; #if CONFIG_ZLIB uint8_t *zbuf; unsigned long outlen; if(VAR_0->co...
[ "static int FUNC_0(TiffContext *VAR_0, uint8_t* VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4, int VAR_5){", "int VAR_6, VAR_7, VAR_8, VAR_9;", "const uint8_t *VAR_10 = VAR_3;", "int VAR_11 = ((VAR_0->VAR_11 * VAR_0->bpp) + 7) >> 3;", "#if CONFIG_ZLIB\nuint8_t *zbuf; unsigned long outlen;", "if(VAR_0-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
19,038
inline static void RENAME(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc, int flags, const int16_t *hChrFilter, const int16_t *hChrFilterPos, int hChrFilterSize, ...
false
FFmpeg
e7a47515abbcf2c8a07c280ea3d04129fc3aaaf6
inline static void RENAME(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc, int flags, const int16_t *hChrFilter, const int16_t *hChrFilterPos, int hChrFilterSize, ...
{ "code": [], "line_no": [] }
inline static void FUNC_0(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc, int flags, const int16_t *hChrFilter, const int16_t *hChrFilterPos, int hChrFilterSize, ...
[ "inline static void FUNC_0(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, const uint8_t *src1, const uint8_t *src2,\nint srcW, int xInc, int flags, const int16_t *hChrFilter,\nconst int16_t *hChrFilterPos, int hChrFilterSize,\nenum PixelFormat srcFormat, uint8_t *formatConvBuffer,\nuint32_t *pal)\n{", "int...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ...
19,039
static void user_async_cmd_handler(Monitor *mon, const mon_cmd_t *cmd, const QDict *params) { int ret; MonitorCompletionData *cb_data = g_malloc(sizeof(*cb_data)); cb_data->mon = mon; cb_data->user_print = cmd->user_print; monitor_suspend(mon); ret = ...
true
qemu
65207c59d99f2260c5f1d3b9c491146616a522aa
static void user_async_cmd_handler(Monitor *mon, const mon_cmd_t *cmd, const QDict *params) { int ret; MonitorCompletionData *cb_data = g_malloc(sizeof(*cb_data)); cb_data->mon = mon; cb_data->user_print = cmd->user_print; monitor_suspend(mon); ret = ...
{ "code": [ "static void user_async_cmd_handler(Monitor *mon, const mon_cmd_t *cmd,", " const QDict *params)", " int ret;", " MonitorCompletionData *cb_data = g_malloc(sizeof(*cb_data));", " cb_data->mon = mon;", " cb_data->user_print = cmd->user_p...
static void FUNC_0(Monitor *VAR_0, const mon_cmd_t *VAR_1, const QDict *VAR_2) { int VAR_3; MonitorCompletionData *cb_data = g_malloc(sizeof(*cb_data)); cb_data->VAR_0 = VAR_0; cb_data->user_print = VAR_1->user_print; monitor_suspend(VAR_0); VAR_3 = V...
[ "static void FUNC_0(Monitor *VAR_0, const mon_cmd_t *VAR_1,\nconst QDict *VAR_2)\n{", "int VAR_3;", "MonitorCompletionData *cb_data = g_malloc(sizeof(*cb_data));", "cb_data->VAR_0 = VAR_0;", "cb_data->user_print = VAR_1->user_print;", "monitor_suspend(VAR_0);", "VAR_3 = VAR_1->mhandler.cmd_async(VAR_0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
19,040
static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int flags) { uint8_t *buf1; RMMuxContext *rm = s->priv_data; AVIOContext *pb = s->pb; StreamInfo *stream = rm->audio_stream; int i; /* XXX: suppress this malloc */ buf1 = av_malloc(size * sizeof(uint8_t)); ...
true
FFmpeg
56838103020385020469d1da076f0e4a6cbe15e5
static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int flags) { uint8_t *buf1; RMMuxContext *rm = s->priv_data; AVIOContext *pb = s->pb; StreamInfo *stream = rm->audio_stream; int i; buf1 = av_malloc(size * sizeof(uint8_t)); write_packet_header(s,...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3) { uint8_t *buf1; RMMuxContext *rm = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; StreamInfo *stream = rm->audio_stream; int VAR_4; buf1 = av_malloc(VAR_2 * sizeof(uint8_t)); write_pack...
[ "static int FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3)\n{", "uint8_t *buf1;", "RMMuxContext *rm = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "StreamInfo *stream = rm->audio_stream;", "int VAR_4;", "buf1 = av_malloc(VAR_2 * sizeof(uint8_t));", "write_packet_head...
[ 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 ], [ 19 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
19,042
static int lag_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; LagarithContext *l = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *const p = data; ...
true
FFmpeg
4c3e1956ee35fdcc5ffdb28782050164b4623c0b
static int lag_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; LagarithContext *l = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *const p = data; ...
{ "code": [ " l->rgb_stride = FFALIGN(avctx->width, 16);", " l->rgb_planes = av_malloc(l->rgb_stride * avctx->height * planes + 1);", " if (!l->rgb_planes) {", " av_log(avctx, AV_LOG_ERROR, \"cannot allocate temporary buffer\\n\");", " ...
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; LagarithContext *l = VAR_0->priv_data; ThreadFrame frame = { .f = VAR_1 }; AVFrame *const p = VAR_1; uint8_t fra...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "LagarithContext *l = VAR_0->priv_data;", "ThreadFrame frame = { .f = VAR_1 };", "AVFrame *const p = VAR_1;", "uint8_t frametype = 0;", "uint32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 51 ], [ 53 ...
19,043
void do_divdo (void) { if (likely(!(((int64_t)T0 == INT64_MIN && (int64_t)T1 == -1ULL) || (int64_t)T1 == 0))) { xer_ov = 0; T0 = (int64_t)T0 / (int64_t)T1; } else { xer_so = 1; xer_ov = 1; T0 = (-1ULL) * ((uint64_t)T0 >> 63); } }
true
qemu
966439a67830239a6c520c5df6c55627b8153c8b
void do_divdo (void) { if (likely(!(((int64_t)T0 == INT64_MIN && (int64_t)T1 == -1ULL) || (int64_t)T1 == 0))) { xer_ov = 0; T0 = (int64_t)T0 / (int64_t)T1; } else { xer_so = 1; xer_ov = 1; T0 = (-1ULL) * ((uint64_t)T0 >> 63); } }
{ "code": [ " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " ...
void FUNC_0 (void) { if (likely(!(((int64_t)T0 == INT64_MIN && (int64_t)T1 == -1ULL) || (int64_t)T1 == 0))) { xer_ov = 0; T0 = (int64_t)T0 / (int64_t)T1; } else { xer_so = 1; xer_ov = 1; T0 = (-1ULL) * ((uint64_t)T0 >> 63); } }
[ "void FUNC_0 (void)\n{", "if (likely(!(((int64_t)T0 == INT64_MIN && (int64_t)T1 == -1ULL) ||\n(int64_t)T1 == 0))) {", "xer_ov = 0;", "T0 = (int64_t)T0 / (int64_t)T1;", "} else {", "xer_so = 1;", "xer_ov = 1;", "T0 = (-1ULL) * ((uint64_t)T0 >> 63);", "}", "}" ]
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
19,044
void framebuffer_update_display( DisplaySurface *ds, MemoryRegionSection *mem_section, int cols, /* Width in pixels. */ int rows, /* Height in pixels. */ int src_width, /* Length of source line, in bytes. */ int dest_row_pitch, /* Bytes between adjacent horizontal output pixels. */ ...
true
qemu
ba56e4cad41ea2b2fb68d18a632ebc7d4e4b1051
void framebuffer_update_display( DisplaySurface *ds, MemoryRegionSection *mem_section, int cols, int rows, int src_width, int dest_row_pitch, int dest_col_pitch, int invalidate, drawfn fn, void *opaque, int *first_row, int *last_row ) { hwaddr src...
{ "code": [ " src_len = src_width * rows;" ], "line_no": [ 51 ] }
void FUNC_0( DisplaySurface *VAR_0, MemoryRegionSection *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, drawfn VAR_8, void *VAR_9, int *VAR_10, int *VAR_11 ) { hwaddr src_len; uint8_t *dest; uint8_t *src; i...
[ "void FUNC_0(\nDisplaySurface *VAR_0,\nMemoryRegionSection *VAR_1,\nint VAR_2,\nint VAR_3,\nint VAR_4,\nint VAR_5,\nint VAR_6,\nint VAR_7,\ndrawfn VAR_8,\nvoid *VAR_9,\nint *VAR_10,\nint *VAR_11 )\n{", "hwaddr src_len;", "uint8_t *dest;", "uint8_t *src;", "int VAR_12, VAR_13 = 0;", "int VAR_14;", "int V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ...
19,045
SPARCCPU *sparc64_cpu_devinit(const char *cpu_model, const char *default_cpu_model, uint64_t prom_addr) { SPARCCPU *cpu; CPUSPARCState *env; ResetData *reset_info; uint32_t tick_frequency = 100 * 1000000; uint32_t stick_frequency = 100 * 1000000; uint32...
true
qemu
4482e05cbbb7e50e476f6a9500cf0b38913bd939
SPARCCPU *sparc64_cpu_devinit(const char *cpu_model, const char *default_cpu_model, uint64_t prom_addr) { SPARCCPU *cpu; CPUSPARCState *env; ResetData *reset_info; uint32_t tick_frequency = 100 * 1000000; uint32_t stick_frequency = 100 * 1000000; uint32...
{ "code": [ " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " if (cpu == NULL) {", " exit(1);", " if (cpu == NULL) {", " exit(1);", " if (cpu == NULL) {", ...
SPARCCPU *FUNC_0(const char *cpu_model, const char *default_cpu_model, uint64_t prom_addr) { SPARCCPU *cpu; CPUSPARCState *env; ResetData *reset_info; uint32_t tick_frequency = 100 * 1000000; uint32_t stick_frequency = 100 * 1000000; uint32_t hstick_fre...
[ "SPARCCPU *FUNC_0(const char *cpu_model,\nconst char *default_cpu_model, uint64_t prom_addr)\n{", "SPARCCPU *cpu;", "CPUSPARCState *env;", "ResetData *reset_info;", "uint32_t tick_frequency = 100 * 1000000;", "uint32_t stick_frequency = 100 * 1000000;", "uint32_t hstick_frequency = 100 * 1000000;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45, 47 ], [ 51, 53,...
19,046
int ff_lzw_decode(LZWState *p, uint8_t *buf, int len){ int l, c, code, oc, fc; uint8_t *sp; struct LZWState *s = (struct LZWState *)p; if (s->end_code < 0) return 0; l = len; sp = s->sp; oc = s->oc; fc = s->fc; for (;;) { while (sp > s->stack) { ...
true
FFmpeg
0cb7f8a26094c533b7dbe25897198953b6660f15
int ff_lzw_decode(LZWState *p, uint8_t *buf, int len){ int l, c, code, oc, fc; uint8_t *sp; struct LZWState *s = (struct LZWState *)p; if (s->end_code < 0) return 0; l = len; sp = s->sp; oc = s->oc; fc = s->fc; for (;;) { while (sp > s->stack) { ...
{ "code": [ " s->end_code = -1;", " if (code >= s->slot) {" ], "line_no": [ 43, 63 ] }
int FUNC_0(LZWState *VAR_0, uint8_t *VAR_1, int VAR_2){ int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; uint8_t *sp; struct LZWState *VAR_8 = (struct LZWState *)VAR_0; if (VAR_8->end_code < 0) return 0; VAR_3 = VAR_2; sp = VAR_8->sp; VAR_6 = VAR_8->VAR_6; VAR_7 = VAR_8->VAR_7...
[ "int FUNC_0(LZWState *VAR_0, uint8_t *VAR_1, int VAR_2){", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "uint8_t *sp;", "struct LZWState *VAR_8 = (struct LZWState *)VAR_0;", "if (VAR_8->end_code < 0)\nreturn 0;", "VAR_3 = VAR_2;", "sp = VAR_8->sp;", "VAR_6 = VAR_8->VAR_6;", "VAR_7 = VAR_8->VAR_7;", "...
[ 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 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
19,047
void ff_hyscale_fast_mmxext(SwsContext *c, int16_t *dst, int dstWidth, const uint8_t *src, int srcW, int xInc) { int32_t *filterPos = c->hLumFilterPos; int16_t *filter = c->hLumFilter; void *mmxextFilterCode = c->lumMmxextFilterCo...
true
FFmpeg
319438e2f206036ee0cddf401dd50f3b2a3ae117
void ff_hyscale_fast_mmxext(SwsContext *c, int16_t *dst, int dstWidth, const uint8_t *src, int srcW, int xInc) { int32_t *filterPos = c->hLumFilterPos; int16_t *filter = c->hLumFilter; void *mmxextFilterCode = c->lumMmxextFilterCo...
{ "code": [ "#if defined(PIC)", "#if defined(PIC)", "#if defined(PIC)", "#if defined(PIC)", "#if ARCH_X86_64 || !defined(PIC)", "#if defined(PIC)", "#if defined(PIC)", "#if defined(PIC)", "#if defined(PIC)", "#if ARCH_X86_64 || !defined(PIC)" ], "line_no": [ 23, 23,...
void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4, int VAR_5) { int32_t *filterPos = VAR_0->hLumFilterPos; int16_t *filter = VAR_0->hLumFilter; void *VAR_6 = VAR_0->lumMmxextFilterCode; ...
[ "void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1,\nint VAR_2, const uint8_t *VAR_3,\nint VAR_4, int VAR_5)\n{", "int32_t *filterPos = VAR_0->hLumFilterPos;", "int16_t *filter = VAR_0->hLumFilter;", "void *VAR_6 = VAR_0->lumMmxextFilterCode;", "int VAR_7;", "#if ARCH_X86_64\nuint64_t retsave;", "#els...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23, 25 ], [ 27, 29, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67,...
19,048
static int get_int32_equal(QEMUFile *f, void *pv, size_t size) { int32_t *v = pv; int32_t v2; qemu_get_sbe32s(f, &v2); if (*v == v2) { return 0; } return -EINVAL; }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int get_int32_equal(QEMUFile *f, void *pv, size_t size) { int32_t *v = pv; int32_t v2; qemu_get_sbe32s(f, &v2); if (*v == v2) { return 0; } return -EINVAL; }
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2) { int32_t *v = VAR_1; int32_t v2; qemu_get_sbe32s(VAR_0, &v2); if (*v == v2) { return 0; } return -EINVAL; }
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{", "int32_t *v = VAR_1;", "int32_t v2;", "qemu_get_sbe32s(VAR_0, &v2);", "if (*v == v2) {", "return 0;", "}", "return -EINVAL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
19,049
static void FUNCC(pred4x4_vertical)(uint8_t *_src, const uint8_t *topright, int _stride){ pixel *src = (pixel*)_src; int stride = _stride/sizeof(pixel); const pixel4 a= ((pixel4*)(src-stride))[0]; ((pixel4*)(src+0*stride))[0]= a; ((pixel4*)(src+1*stride))[0]= a; ((pixel4*)(src+2*stride))[0...
true
FFmpeg
2caf19e90f270abe1e80a3e85acaf0eb5c9d0aac
static void FUNCC(pred4x4_vertical)(uint8_t *_src, const uint8_t *topright, int _stride){ pixel *src = (pixel*)_src; int stride = _stride/sizeof(pixel); const pixel4 a= ((pixel4*)(src-stride))[0]; ((pixel4*)(src+0*stride))[0]= a; ((pixel4*)(src+1*stride))[0]= a; ((pixel4*)(src+2*stride))[0...
{ "code": [ " const pixel4 a= ((pixel4*)(src-stride))[0];", " ((pixel4*)(src+0*stride))[0]= a;", " ((pixel4*)(src+1*stride))[0]= a;", " ((pixel4*)(src+2*stride))[0]= a;", " ((pixel4*)(src+3*stride))[0]= a;", " const pixel4 a= ((pixel4*)(src-stride))[0];" ], "line_no": [ ...
static void FUNC_0(pred4x4_vertical)(uint8_t *_src, const uint8_t *topright, int _stride){ pixel *src = (pixel*)_src; int VAR_0 = _stride/sizeof(pixel); const pixel4 VAR_1= ((pixel4*)(src-VAR_0))[0]; ((pixel4*)(src+0*VAR_0))[0]= VAR_1; ((pixel4*)(src+1*VAR_0))[0]= VAR_1; ((pixel4*)(src+2*V...
[ "static void FUNC_0(pred4x4_vertical)(uint8_t *_src, const uint8_t *topright, int _stride){", "pixel *src = (pixel*)_src;", "int VAR_0 = _stride/sizeof(pixel);", "const pixel4 VAR_1= ((pixel4*)(src-VAR_0))[0];", "((pixel4*)(src+0*VAR_0))[0]= VAR_1;", "((pixel4*)(src+1*VAR_0))[0]= VAR_1;", "((pixel4*)(sr...
[ 0, 0, 0, 1, 1, 1, 1, 1, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
19,050
static OfDpaGroup *of_dpa_group_alloc(uint32_t id) { OfDpaGroup *group = g_malloc0(sizeof(OfDpaGroup)); if (!group) { return NULL; } group->id = id; return group; }
true
qemu
778358d0a8f74a76488daea3c1b6fb327d8135b4
static OfDpaGroup *of_dpa_group_alloc(uint32_t id) { OfDpaGroup *group = g_malloc0(sizeof(OfDpaGroup)); if (!group) { return NULL; } group->id = id; return group; }
{ "code": [ " OfDpaGroup *group = g_malloc0(sizeof(OfDpaGroup));" ], "line_no": [ 5 ] }
static OfDpaGroup *FUNC_0(uint32_t id) { OfDpaGroup *group = g_malloc0(sizeof(OfDpaGroup)); if (!group) { return NULL; } group->id = id; return group; }
[ "static OfDpaGroup *FUNC_0(uint32_t id)\n{", "OfDpaGroup *group = g_malloc0(sizeof(OfDpaGroup));", "if (!group) {", "return NULL;", "}", "group->id = id;", "return group;", "}" ]
[ 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ] ]
19,052
static float get_band_cost_UQUAD_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, ...
true
FFmpeg
01ecb7172b684f1c4b3e748f95c5a9a494ca36ec
static float get_band_cost_UQUAD_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, ...
{ "code": [ " int *bits)", " int *bits)", " int *bits)" ], "line_no": [ 9, 9, 9 ] }
static float FUNC_0(struct AACEncContext *VAR_0, PutBitContext *VAR_1, const float *VAR_2, const float *VAR_3, int VAR_4, int VAR_5, int VAR_6, const float VAR_7, const float VAR_8, ...
[ "static float FUNC_0(struct AACEncContext *VAR_0,\nPutBitContext *VAR_1, const float *VAR_2,\nconst float *VAR_3, int VAR_4, int VAR_5,\nint VAR_6, const float VAR_7, const float VAR_8,\nint *VAR_9)\n{", "const float VAR_10 = ff_aac_pow34sf_tab[POW_SF2_ZERO - VAR_5 + SCALE_ONE_POS - SCALE_DIV_512];", "const flo...
[ 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 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
19,053
static void sdl_grab_start(void) { /* * If the application is not active, do not try to enter grab state. This * prevents 'SDL_WM_GrabInput(SDL_GRAB_ON)' from blocking all the * application (SDL bug). */ if (!(SDL_GetAppState() & SDL_APPINPUTFOCUS)) { return; } if (...
true
qemu
eaa2e027b73c9afca623d877c91150a94c83049d
static void sdl_grab_start(void) { if (!(SDL_GetAppState() & SDL_APPINPUTFOCUS)) { return; } if (guest_cursor) { SDL_SetCursor(guest_sprite); if (!kbd_mouse_is_absolute() && !absolute_enabled) SDL_WarpMouse(guest_x, guest_y); } else sdl...
{ "code": [ " if (SDL_WM_GrabInput(SDL_GRAB_ON) == SDL_GRAB_ON) {", " gui_grab = 1;", " sdl_update_caption();", " } else", " sdl_show_cursor();" ], "line_no": [ 35, 37, 39, 29, 43 ] }
static void FUNC_0(void) { if (!(SDL_GetAppState() & SDL_APPINPUTFOCUS)) { return; } if (guest_cursor) { SDL_SetCursor(guest_sprite); if (!kbd_mouse_is_absolute() && !absolute_enabled) SDL_WarpMouse(guest_x, guest_y); } else sdl_hide_cu...
[ "static void FUNC_0(void)\n{", "if (!(SDL_GetAppState() & SDL_APPINPUTFOCUS)) {", "return;", "}", "if (guest_cursor) {", "SDL_SetCursor(guest_sprite);", "if (!kbd_mouse_is_absolute() && !absolute_enabled)\nSDL_WarpMouse(guest_x, guest_y);", "} else", "sdl_hide_cursor();", "if (SDL_WM_GrabInput(SDL...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
19,054
static void libschroedinger_free_frame(void *data) { FFSchroEncodedFrame *enc_frame = data; av_freep(&enc_frame->p_encbuf); av_free(enc_frame); }
true
FFmpeg
220b24c7c97dc033ceab1510549f66d0e7b52ef1
static void libschroedinger_free_frame(void *data) { FFSchroEncodedFrame *enc_frame = data; av_freep(&enc_frame->p_encbuf); av_free(enc_frame); }
{ "code": [ "static void libschroedinger_free_frame(void *data)", " FFSchroEncodedFrame *enc_frame = data;", " av_freep(&enc_frame->p_encbuf);", " av_free(enc_frame);" ], "line_no": [ 1, 5, 9, 11 ] }
static void FUNC_0(void *VAR_0) { FFSchroEncodedFrame *enc_frame = VAR_0; av_freep(&enc_frame->p_encbuf); av_free(enc_frame); }
[ "static void FUNC_0(void *VAR_0)\n{", "FFSchroEncodedFrame *enc_frame = VAR_0;", "av_freep(&enc_frame->p_encbuf);", "av_free(enc_frame);", "}" ]
[ 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
19,055
static float quantize_band_cost(struct AACEncContext *s, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, int *bits, int rtz) { return get_band_cost(s, NU...
true
FFmpeg
01ecb7172b684f1c4b3e748f95c5a9a494ca36ec
static float quantize_band_cost(struct AACEncContext *s, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, int *bits, int rtz) { return get_band_cost(s, NU...
{ "code": [ " int *bits, int rtz)", " int *bits, int rtz)", " int *bits, int rtz)", " return get_band_cost(s, NULL, in, scaled, size, scale_idx, cb, lambda, uplim, bits);" ], "line_no": [ 7, 7, ...
static float FUNC_0(struct AACEncContext *VAR_0, const float *VAR_1, const float *VAR_2, int VAR_3, int VAR_4, int VAR_5, const float VAR_6, const float VAR_7, int *VAR_8, int VAR_9) { return get_band_cost(VAR_0, NU...
[ "static float FUNC_0(struct AACEncContext *VAR_0, const float *VAR_1,\nconst float *VAR_2, int VAR_3, int VAR_4,\nint VAR_5, const float VAR_6, const float VAR_7,\nint *VAR_8, int VAR_9)\n{", "return get_band_cost(VAR_0, NULL, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ] ]
19,056
static void xhci_er_reset(XHCIState *xhci, int v) { XHCIInterrupter *intr = &xhci->intr[v]; XHCIEvRingSeg seg; if (intr->erstsz == 0) { /* disabled */ intr->er_start = 0; intr->er_size = 0; return; } /* cache the (sole) event ring segment location */ ...
true
qemu
898248a32915024a4f01ce4f0c3519509fb703cb
static void xhci_er_reset(XHCIState *xhci, int v) { XHCIInterrupter *intr = &xhci->intr[v]; XHCIEvRingSeg seg; if (intr->erstsz == 0) { intr->er_start = 0; intr->er_size = 0; return; } if (intr->erstsz != 1) { DPRINTF("xhci: invalid value f...
{ "code": [ " XHCIInterrupter *intr = &xhci->intr[v];", " xhci_die(xhci);", " intr->er_full = 0;" ], "line_no": [ 5, 29, 65 ] }
static void FUNC_0(XHCIState *VAR_0, int VAR_1) { XHCIInterrupter *intr = &VAR_0->intr[VAR_1]; XHCIEvRingSeg seg; if (intr->erstsz == 0) { intr->er_start = 0; intr->er_size = 0; return; } if (intr->erstsz != 1) { DPRINTF("VAR_0: invalid val...
[ "static void FUNC_0(XHCIState *VAR_0, int VAR_1)\n{", "XHCIInterrupter *intr = &VAR_0->intr[VAR_1];", "XHCIEvRingSeg seg;", "if (intr->erstsz == 0) {", "intr->er_start = 0;", "intr->er_size = 0;", "return;", "}", "if (intr->erstsz != 1) {", "DPRINTF(\"VAR_0: invalid value for ERSTSZ: %d\\n\", intr...
[ 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, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
19,057
DeviceState *qdev_try_create(BusState *bus, const char *type) { DeviceState *dev; if (object_class_by_name(type) == NULL) { return NULL; } dev = DEVICE(object_new(type)); if (!dev) { return NULL; } if (!bus) { bus = sysbus_get_default(); } ...
true
qemu
7474f1be701f136b224af5e1abe55e97dc3f29a5
DeviceState *qdev_try_create(BusState *bus, const char *type) { DeviceState *dev; if (object_class_by_name(type) == NULL) { return NULL; } dev = DEVICE(object_new(type)); if (!dev) { return NULL; } if (!bus) { bus = sysbus_get_default(); } ...
{ "code": [], "line_no": [] }
DeviceState *FUNC_0(BusState *bus, const char *type) { DeviceState *dev; if (object_class_by_name(type) == NULL) { return NULL; } dev = DEVICE(object_new(type)); if (!dev) { return NULL; } if (!bus) { bus = sysbus_get_default(); } qdev...
[ "DeviceState *FUNC_0(BusState *bus, const char *type)\n{", "DeviceState *dev;", "if (object_class_by_name(type) == NULL) {", "return NULL;", "}", "dev = DEVICE(object_new(type));", "if (!dev) {", "return NULL;", "}", "if (!bus) {", "bus = sysbus_get_default();", "}", "qdev_set_parent_bus(dev...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
19,058
static int iscsi_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { IscsiLun *iscsilun = bs->opaque; struct iscsi_context *iscsi = NULL; struct iscsi_url *iscsi_url = NULL; struct scsi_task *task = NULL; struct scsi_inquiry_standard *inq = NULL; s...
true
qemu
debfb917a4f9c0784772c86f110f2bcd22e5a14f
static int iscsi_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { IscsiLun *iscsilun = bs->opaque; struct iscsi_context *iscsi = NULL; struct iscsi_url *iscsi_url = NULL; struct scsi_task *task = NULL; struct scsi_inquiry_standard *inq = NULL; s...
{ "code": [ " int i, ret;" ], "line_no": [ 27 ] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { IscsiLun *iscsilun = VAR_0->opaque; struct iscsi_context *VAR_4 = NULL; struct VAR_5 *VAR_5 = NULL; struct scsi_task *VAR_6 = NULL; struct scsi_inquiry_standard *VAR_7 = NULL; struc...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "IscsiLun *iscsilun = VAR_0->opaque;", "struct iscsi_context *VAR_4 = NULL;", "struct VAR_5 *VAR_5 = NULL;", "struct scsi_task *VAR_6 = NULL;", "struct scsi_inquiry_standard *VAR_7 = NULL;", "struct scsi_inquiry_su...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
19,059
type_init(macio_register_types) void macio_init(PCIDevice *d, MemoryRegion *pic_mem, MemoryRegion *escc_mem) { MacIOState *macio_state = MACIO(d); macio_state->pic_mem = pic_mem; macio_state->escc_mem = escc_mem; /* Note: this code is strongly inspirated from ...
true
qemu
b981289c493c7ddabc1cdf7de99daa24642c7739
type_init(macio_register_types) void macio_init(PCIDevice *d, MemoryRegion *pic_mem, MemoryRegion *escc_mem) { MacIOState *macio_state = MACIO(d); macio_state->pic_mem = pic_mem; macio_state->escc_mem = escc_mem; qdev_init_nofail(DEVICE(d)); }
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) void macio_init(PCIDevice *d, MemoryRegion *pic_mem, MemoryRegion *escc_mem) { MacIOState *macio_state = MACIO(d); macio_state->pic_mem = pic_mem; macio_state->escc_mem = escc_mem; qdev_init_nofail(DEVICE(d)); }
[ "FUNC_0(VAR_0)\nvoid macio_init(PCIDevice *d,\nMemoryRegion *pic_mem,\nMemoryRegion *escc_mem)\n{", "MacIOState *macio_state = MACIO(d);", "macio_state->pic_mem = pic_mem;", "macio_state->escc_mem = escc_mem;", "qdev_init_nofail(DEVICE(d));", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 5, 7, 9, 11 ], [ 13 ], [ 17 ], [ 19 ], [ 29 ], [ 31 ] ]
19,060
int net_client_init(QemuOpts *opts, int is_netdev, Error **errp) { const char *name; const char *type; int i; type = qemu_opt_get(opts, "type"); if (!type) { error_set(errp, QERR_MISSING_PARAMETER, "type"); return -1; } if (is_netdev) { if (strcmp(type,...
true
qemu
6687b79d636cd60ed9adb1177d0d946b58fa7717
int net_client_init(QemuOpts *opts, int is_netdev, Error **errp) { const char *name; const char *type; int i; type = qemu_opt_get(opts, "type"); if (!type) { error_set(errp, QERR_MISSING_PARAMETER, "type"); return -1; } if (is_netdev) { if (strcmp(type,...
{ "code": [ " const char *type;", "#endif", "#ifdef CONFIG_NET_BRIDGE", "int net_client_init(QemuOpts *opts, int is_netdev, Error **errp)", " const char *type;", " int i;", " type = qemu_opt_get(opts, \"type\");", " if (!type) {", " error_set(errp, QERR_MISSIN...
int FUNC_0(QemuOpts *VAR_0, int VAR_1, Error **VAR_2) { const char *VAR_3; const char *VAR_4; int VAR_5; VAR_4 = qemu_opt_get(VAR_0, "VAR_4"); if (!VAR_4) { error_set(VAR_2, QERR_MISSING_PARAMETER, "VAR_4"); return -1; } if (VAR_1) { if (strcmp(VAR_4, "...
[ "int FUNC_0(QemuOpts *VAR_0, int VAR_1, Error **VAR_2)\n{", "const char *VAR_3;", "const char *VAR_4;", "int VAR_5;", "VAR_4 = qemu_opt_get(VAR_0, \"VAR_4\");", "if (!VAR_4) {", "error_set(VAR_2, QERR_MISSING_PARAMETER, \"VAR_4\");", "return -1;", "}", "if (VAR_1) {", "if (strcmp(VAR_4, \"tap\")...
[ 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [...
19,061
static void usbredir_handle_interrupt_out_data(USBRedirDevice *dev, USBPacket *p, uint8_t ep) { /* Output interrupt endpoint, normal async operation */ struct usb_redir_interrupt_packet_header interrupt_packet; uint8_t buf[p->iov.size]; DPRINTF("int...
true
qemu
723aedd53281cfa0997457cb156a59909a75f5a8
static void usbredir_handle_interrupt_out_data(USBRedirDevice *dev, USBPacket *p, uint8_t ep) { struct usb_redir_interrupt_packet_header interrupt_packet; uint8_t buf[p->iov.size]; DPRINTF("interrupt-out ep %02X len %zd id %"PRIu64"\n", ep, ...
{ "code": [ " if (usbredir_already_in_flight(dev, p->id)) {", " p->status = USB_RET_ASYNC;", " p->status = USB_RET_ASYNC;" ], "line_no": [ 21, 23, 47 ] }
static void FUNC_0(USBRedirDevice *VAR_0, USBPacket *VAR_1, uint8_t VAR_2) { struct usb_redir_interrupt_packet_header VAR_3; uint8_t buf[VAR_1->iov.size]; DPRINTF("interrupt-out VAR_2 %02X len %zd id %"PRIu64"\n", VAR_2, VAR_1->iov.siz...
[ "static void FUNC_0(USBRedirDevice *VAR_0,\nUSBPacket *VAR_1, uint8_t VAR_2)\n{", "struct usb_redir_interrupt_packet_header VAR_3;", "uint8_t buf[VAR_1->iov.size];", "DPRINTF(\"interrupt-out VAR_2 %02X len %zd id %\"PRIu64\"\\n\", VAR_2,\nVAR_1->iov.size, VAR_1->id);", "if (usbredir_already_in_flight(VAR_0,...
[ 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ] ]
19,063
static void push_output_configuration(AACContext *ac) { if (ac->oc[1].status == OC_LOCKED || ac->oc[0].status == OC_NONE) { ac->oc[0] = ac->oc[1]; } ac->oc[1].status = OC_NONE; }
true
FFmpeg
a5e0dbf530d447f36099aed575b34e9258c5d75a
static void push_output_configuration(AACContext *ac) { if (ac->oc[1].status == OC_LOCKED || ac->oc[0].status == OC_NONE) { ac->oc[0] = ac->oc[1]; } ac->oc[1].status = OC_NONE; }
{ "code": [ "static void push_output_configuration(AACContext *ac) {" ], "line_no": [ 1 ] }
static void FUNC_0(AACContext *VAR_0) { if (VAR_0->oc[1].status == OC_LOCKED || VAR_0->oc[0].status == OC_NONE) { VAR_0->oc[0] = VAR_0->oc[1]; } VAR_0->oc[1].status = OC_NONE; }
[ "static void FUNC_0(AACContext *VAR_0) {", "if (VAR_0->oc[1].status == OC_LOCKED || VAR_0->oc[0].status == OC_NONE) {", "VAR_0->oc[0] = VAR_0->oc[1];", "}", "VAR_0->oc[1].status = OC_NONE;", "}" ]
[ 1, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
19,064
dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum, enum dshowDeviceType devtype, IBaseFilter **pfilter) { struct dshow_ctx *ctx = avctx->priv_data; IBaseFilter *device_filter = NULL; IEnumMoniker *classenum = NULL; IMoniker *m = NULL; const char *device_n...
true
FFmpeg
215e197942e33d5c5749d786e938bf7abe856c1d
dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum, enum dshowDeviceType devtype, IBaseFilter **pfilter) { struct dshow_ctx *ctx = avctx->priv_data; IBaseFilter *device_filter = NULL; IEnumMoniker *classenum = NULL; IMoniker *m = NULL; const char *device_n...
{ "code": [ " while (IEnumMoniker_Next(classenum, 1, &m, NULL) == S_OK && !device_filter) {" ], "line_no": [ 45 ] }
FUNC_0(AVFormatContext *VAR_0, ICreateDevEnum *VAR_1, enum dshowDeviceType VAR_2, IBaseFilter **VAR_3) { struct dshow_ctx *VAR_4 = VAR_0->priv_data; IBaseFilter *device_filter = NULL; IEnumMoniker *classenum = NULL; IMoniker *m = NULL; const char *VAR_5 = VAR_4->VAR_5[VAR_...
[ "FUNC_0(AVFormatContext *VAR_0, ICreateDevEnum *VAR_1,\nenum dshowDeviceType VAR_2, IBaseFilter **VAR_3)\n{", "struct dshow_ctx *VAR_4 = VAR_0->priv_data;", "IBaseFilter *device_filter = NULL;", "IEnumMoniker *classenum = NULL;", "IMoniker *m = NULL;", "const char *VAR_5 = VAR_4->VAR_5[VAR_2];", "int VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
19,066
pp_context *pp_get_context(int width, int height, int cpuCaps){ PPContext *c= av_mallocz(sizeof(PPContext)); int stride= FFALIGN(width, 16); //assumed / will realloc if needed int qpStride= (width+15)/16 + 2; //assumed / will realloc if needed c->av_class = &av_codec_context_class; if(cpuCaps&PP_FO...
true
FFmpeg
ac424b23e404a53bb88e36496fac94d2ff9dd775
pp_context *pp_get_context(int width, int height, int cpuCaps){ PPContext *c= av_mallocz(sizeof(PPContext)); int stride= FFALIGN(width, 16); int qpStride= (width+15)/16 + 2; c->av_class = &av_codec_context_class; if(cpuCaps&PP_FORMAT){ c->hChromaSubSample= cpuCaps&0x3; c->vChromaS...
{ "code": [], "line_no": [] }
pp_context *FUNC_0(int width, int height, int cpuCaps){ PPContext *c= av_mallocz(sizeof(PPContext)); int VAR_0= FFALIGN(width, 16); int VAR_1= (width+15)/16 + 2; c->av_class = &av_codec_context_class; if(cpuCaps&PP_FORMAT){ c->hChromaSubSample= cpuCaps&0x3; c->vChromaSubSample= (c...
[ "pp_context *FUNC_0(int width, int height, int cpuCaps){", "PPContext *c= av_mallocz(sizeof(PPContext));", "int VAR_0= FFALIGN(width, 16);", "int VAR_1= (width+15)/16 + 2;", "c->av_class = &av_codec_context_class;", "if(cpuCaps&PP_FORMAT){", "c->hChromaSubSample= cpuCaps&0x3;", "c->vChromaSubSample= (...
[ 0, 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 ], [ ...
19,067
static void store_slice_c(uint8_t *dst, const int16_t *src, int dst_stride, int src_stride, int width, int height, int log2_scale) { int y, x; #define STORE(pos) do { \ temp = ((src[x + y * src_stride...
true
FFmpeg
e07c82688e8187dbafac489b7c15427252974021
static void store_slice_c(uint8_t *dst, const int16_t *src, int dst_stride, int src_stride, int width, int height, int log2_scale) { int y, x; #define STORE(pos) do { \ temp = ((src[x + y * src_stride...
{ "code": [ "static void store_slice_c(uint8_t *dst, const int16_t *src," ], "line_no": [ 1 ] }
static void FUNC_0(uint8_t *VAR_0, const int16_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { int VAR_7, VAR_8; #define STORE(pos) do { \ temp = ((VAR_1[VAR_8 + VAR_7 * VAR_3 + pos...
[ "static void FUNC_0(uint8_t *VAR_0, const int16_t *VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6)\n{", "int VAR_7, VAR_8;", "#define STORE(pos) do { \\", "temp = ((VAR_1[VAR_8 + VAR_7 * VAR_3 + pos] << VAR_6) + d[pos]) >> 8; \\", "if (te...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
19,068
void helper_fxtract(void) { CPU86_LDoubleU temp; unsigned int expdif; temp.d = ST0; expdif = EXPD(temp) - EXPBIAS; /*DP exponent bias*/ ST0 = expdif; fpush(); BIASEXPONENT(temp); ST0 = temp.d; }
true
qemu
c9ad19c57b4e35dda507ec636443069048a4ad72
void helper_fxtract(void) { CPU86_LDoubleU temp; unsigned int expdif; temp.d = ST0; expdif = EXPD(temp) - EXPBIAS; ST0 = expdif; fpush(); BIASEXPONENT(temp); ST0 = temp.d; }
{ "code": [ " unsigned int expdif;", " expdif = EXPD(temp) - EXPBIAS;", " ST0 = expdif;", " fpush();", " BIASEXPONENT(temp);", " ST0 = temp.d;" ], "line_no": [ 7, 13, 17, 19, 21, 23 ] }
void FUNC_0(void) { CPU86_LDoubleU temp; unsigned int VAR_0; temp.d = ST0; VAR_0 = EXPD(temp) - EXPBIAS; ST0 = VAR_0; fpush(); BIASEXPONENT(temp); ST0 = temp.d; }
[ "void FUNC_0(void)\n{", "CPU86_LDoubleU temp;", "unsigned int VAR_0;", "temp.d = ST0;", "VAR_0 = EXPD(temp) - EXPBIAS;", "ST0 = VAR_0;", "fpush();", "BIASEXPONENT(temp);", "ST0 = temp.d;", "}" ]
[ 0, 0, 1, 0, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
19,069
static void usb_msd_cancel_io(USBPacket *p, void *opaque) { MSDState *s = opaque; s->scsi_dev->info->cancel_io(s->scsi_dev, s->tag); s->packet = NULL; s->scsi_len = 0; }
true
qemu
5c6c0e513600ba57c3e73b7151d3c0664438f7b5
static void usb_msd_cancel_io(USBPacket *p, void *opaque) { MSDState *s = opaque; s->scsi_dev->info->cancel_io(s->scsi_dev, s->tag); s->packet = NULL; s->scsi_len = 0; }
{ "code": [ " s->scsi_dev->info->cancel_io(s->scsi_dev, s->tag);" ], "line_no": [ 7 ] }
static void FUNC_0(USBPacket *VAR_0, void *VAR_1) { MSDState *s = VAR_1; s->scsi_dev->info->cancel_io(s->scsi_dev, s->tag); s->packet = NULL; s->scsi_len = 0; }
[ "static void FUNC_0(USBPacket *VAR_0, void *VAR_1)\n{", "MSDState *s = VAR_1;", "s->scsi_dev->info->cancel_io(s->scsi_dev, s->tag);", "s->packet = NULL;", "s->scsi_len = 0;", "}" ]
[ 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
19,070
static CharDriverState *qmp_chardev_open_udp(ChardevUdp *udp, Error **errp) { int fd; fd = socket_dgram(udp->remote, udp->local, errp); if (error_is_set(errp)) { return NULL; } return qemu_chr_open_udp_fd(fd); }
true
qemu
5f758366c0710d23e43f4d0f83816b98616a13d0
static CharDriverState *qmp_chardev_open_udp(ChardevUdp *udp, Error **errp) { int fd; fd = socket_dgram(udp->remote, udp->local, errp); if (error_is_set(errp)) { return NULL; } return qemu_chr_open_udp_fd(fd); }
{ "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": [ 13, 13, 13, 13, 13 ] }
static CharDriverState *FUNC_0(ChardevUdp *udp, Error **errp) { int VAR_0; VAR_0 = socket_dgram(udp->remote, udp->local, errp); if (error_is_set(errp)) { return NULL; } return qemu_chr_open_udp_fd(VAR_0); }
[ "static CharDriverState *FUNC_0(ChardevUdp *udp,\nError **errp)\n{", "int VAR_0;", "VAR_0 = socket_dgram(udp->remote, udp->local, errp);", "if (error_is_set(errp)) {", "return NULL;", "}", "return qemu_chr_open_udp_fd(VAR_0);", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
19,071
static av_always_inline void MPV_motion_internal(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, ...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static av_always_inline void MPV_motion_internal(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, ...
{ "code": [ " ref_picture = s->current_picture_ptr->f.data;", " ref2picture = s->current_picture_ptr->f.data;", " ref_picture = s->current_picture_ptr->f.data;" ], "line_no": [ 149, 183, 261 ] }
static av_always_inline void FUNC_0(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int dir, ...
[ "static av_always_inline void FUNC_0(MpegEncContext *s,\nuint8_t *dest_y,\nuint8_t *dest_cb,\nuint8_t *dest_cr,\nint dir,\nuint8_t **ref_picture,\nop_pixels_func (*pix_op)[4],\nqpel_mc_func (*qpix_op)[16],\nint is_mpeg12)\n{", "int VAR_0;", "int VAR_1 = s->VAR_1;", "prefetch_motion(s, ref_picture, dir);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55, 57 ], [...
19,072
static av_cold int imc_decode_init(AVCodecContext * avctx) { int i, j; IMCContext *q = avctx->priv_data; double r1, r2; q->decoder_reset = 1; for(i = 0; i < BANDS; i++) q->old_floor[i] = 1.0; /* Build mdct window, a simple sine window normalized with sqrt(2) */ ff_sine...
true
FFmpeg
95fee70d6773fde1c34ff6422f48e5e66f37f263
static av_cold int imc_decode_init(AVCodecContext * avctx) { int i, j; IMCContext *q = avctx->priv_data; double r1, r2; q->decoder_reset = 1; for(i = 0; i < BANDS; i++) q->old_floor[i] = 1.0; ff_sine_window_init(q->mdct_sine_window, COEFFS); for(i = 0; i < COEFFS...
{ "code": [ " int i, j;", " ff_fft_init(&q->fft, 7, 1);" ], "line_no": [ 5, 109 ] }
static av_cold int FUNC_0(AVCodecContext * avctx) { int VAR_0, VAR_1; IMCContext *q = avctx->priv_data; double VAR_2, VAR_3; q->decoder_reset = 1; for(VAR_0 = 0; VAR_0 < BANDS; VAR_0++) q->old_floor[VAR_0] = 1.0; ff_sine_window_init(q->mdct_sine_window, COEFFS); ...
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "int VAR_0, VAR_1;", "IMCContext *q = avctx->priv_data;", "double VAR_2, VAR_3;", "q->decoder_reset = 1;", "for(VAR_0 = 0; VAR_0 < BANDS; VAR_0++)", "q->old_floor[VAR_0] = 1.0;", "ff_sine_window_init(q->mdct_sine_window, COEFFS);", "for(VAR_0 =...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [...
19,073
int av_append_packet(AVIOContext *s, AVPacket *pkt, int size) { int ret; int old_size; if (!pkt->size) return av_get_packet(s, pkt, size); old_size = pkt->size; ret = av_grow_packet(pkt, size); if (ret < 0) return ret; ret = avio_read(s, pkt->data + old_size, size);...
true
FFmpeg
aa3c77998404cc32233cb76e961ca27db8565459
int av_append_packet(AVIOContext *s, AVPacket *pkt, int size) { int ret; int old_size; if (!pkt->size) return av_get_packet(s, pkt, size); old_size = pkt->size; ret = av_grow_packet(pkt, size); if (ret < 0) return ret; ret = avio_read(s, pkt->data + old_size, size);...
{ "code": [ " return ret;", " return ret;", " int ret;", " int old_size;", " old_size = pkt->size;", " ret = av_grow_packet(pkt, size);", " if (ret < 0)", " return ret;", " ret = avio_read(s, pkt->data + old_size, size);", " av_shrink_packe...
int FUNC_0(AVIOContext *VAR_0, AVPacket *VAR_1, int VAR_2) { int VAR_3; int VAR_4; if (!VAR_1->VAR_2) return av_get_packet(VAR_0, VAR_1, VAR_2); VAR_4 = VAR_1->VAR_2; VAR_3 = av_grow_packet(VAR_1, VAR_2); if (VAR_3 < 0) return VAR_3; VAR_3 = avio_read(VAR_0, VAR_1->...
[ "int FUNC_0(AVIOContext *VAR_0, AVPacket *VAR_1, int VAR_2)\n{", "int VAR_3;", "int VAR_4;", "if (!VAR_1->VAR_2)\nreturn av_get_packet(VAR_0, VAR_1, VAR_2);", "VAR_4 = VAR_1->VAR_2;", "VAR_3 = av_grow_packet(VAR_1, VAR_2);", "if (VAR_3 < 0)\nreturn VAR_3;", "VAR_3 = avio_read(VAR_0, VAR_1->data + VAR_...
[ 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
19,074
int ff_j2k_init_component(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty, Jpeg2000QuantStyle *qntsty, int cbps, int dx, int dy, AVCodecContext *avctx) { uint8_t log2_band_prec_width, log2_band_prec_he...
true
FFmpeg
8bedbb82cee4463a43e60eb22674c8bf927280ef
int ff_j2k_init_component(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty, Jpeg2000QuantStyle *qntsty, int cbps, int dx, int dy, AVCodecContext *avctx) { uint8_t log2_band_prec_width, log2_band_prec_he...
{ "code": [ " comp->data = av_malloc_array(csize, sizeof(*comp->data));", " if (!comp->data)", " return AVERROR(ENOMEM);", " comp->data = av_malloc_array(csize, sizeof(*comp->data));", " if (!comp->data)", " return AVERROR(ENOMEM);" ], "line_no": [ 29, 31,...
int FUNC_0(Jpeg2000Component *VAR_0, Jpeg2000CodingStyle *VAR_1, Jpeg2000QuantStyle *VAR_2, int VAR_3, int VAR_4, int VAR_5, AVCodecContext *VAR_6) { uint8_t log2_band_prec_width, log2_band_prec_height; ...
[ "int FUNC_0(Jpeg2000Component *VAR_0,\nJpeg2000CodingStyle *VAR_1,\nJpeg2000QuantStyle *VAR_2,\nint VAR_3, int VAR_4, int VAR_5,\nAVCodecContext *VAR_6)\n{", "uint8_t log2_band_prec_width, log2_band_prec_height;", "int VAR_7, VAR_8, VAR_9 = 0, VAR_10, VAR_11, VAR_12, VAR_13 = 1;", "if (VAR_10=ff_jpeg2000_dwt_...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 57 ], [ 59 ], [ 61, 63 ...
19,076
static void gen_stx(DisasContext *dc, uint32_t code, uint32_t flags) { I_TYPE(instr, code); TCGv val = load_gpr(dc, instr.b); TCGv addr = tcg_temp_new(); tcg_gen_addi_tl(addr, load_gpr(dc, instr.a), instr.imm16s); tcg_gen_qemu_st_tl(val, addr, dc->mem_idx, flags); tcg_temp_free(addr); ...
true
qemu
4ae4b609ee2d5bcc9df6c03c21dc1fed527aada1
static void gen_stx(DisasContext *dc, uint32_t code, uint32_t flags) { I_TYPE(instr, code); TCGv val = load_gpr(dc, instr.b); TCGv addr = tcg_temp_new(); tcg_gen_addi_tl(addr, load_gpr(dc, instr.a), instr.imm16s); tcg_gen_qemu_st_tl(val, addr, dc->mem_idx, flags); tcg_temp_free(addr); ...
{ "code": [ " tcg_gen_addi_tl(addr, load_gpr(dc, instr.a), instr.imm16s);", " tcg_gen_addi_tl(addr, load_gpr(dc, instr.a), instr.imm16s);" ], "line_no": [ 13, 13 ] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { I_TYPE(instr, VAR_1); TCGv val = load_gpr(VAR_0, instr.b); TCGv addr = tcg_temp_new(); tcg_gen_addi_tl(addr, load_gpr(VAR_0, instr.a), instr.imm16s); tcg_gen_qemu_st_tl(val, addr, VAR_0->mem_idx, VAR_2); tcg_temp_...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "I_TYPE(instr, VAR_1);", "TCGv val = load_gpr(VAR_0, instr.b);", "TCGv addr = tcg_temp_new();", "tcg_gen_addi_tl(addr, load_gpr(VAR_0, instr.a), instr.imm16s);", "tcg_gen_qemu_st_tl(val, addr, VAR_0->mem_idx, VAR_2);", "tcg_te...
[ 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
19,077
static void down_heap(uint32_t nr_heap, uint32_t *heap, uint32_t *weights) { uint32_t val = 1; uint32_t val2; uint32_t initial_val = heap[val]; while (1) { val2 = val << 1; if (val2 > nr_heap) break; if (val2 < nr_heap && weights[heap[val2 + 1]] < weigh...
true
FFmpeg
f92f4935acd7d974adfd1deebdf1bb06cbe107ca
static void down_heap(uint32_t nr_heap, uint32_t *heap, uint32_t *weights) { uint32_t val = 1; uint32_t val2; uint32_t initial_val = heap[val]; while (1) { val2 = val << 1; if (val2 > nr_heap) break; if (val2 < nr_heap && weights[heap[val2 + 1]] < weigh...
{ "code": [ " uint32_t initial_val = heap[val];", " heap[val] = initial_val;", "static void down_heap(uint32_t nr_heap, uint32_t *heap, uint32_t *weights)", " uint32_t val = 1;", " uint32_t val2;", " uint32_t initial_val = heap[val];", " while (1) {", " val2 = ...
static void FUNC_0(uint32_t VAR_0, uint32_t *VAR_1, uint32_t *VAR_2) { uint32_t val = 1; uint32_t val2; uint32_t initial_val = VAR_1[val]; while (1) { val2 = val << 1; if (val2 > VAR_0) break; if (val2 < VAR_0 && VAR_2[VAR_1[val2 + 1]] < VAR_2[VAR_1[val...
[ "static void FUNC_0(uint32_t VAR_0, uint32_t *VAR_1, uint32_t *VAR_2)\n{", "uint32_t val = 1;", "uint32_t val2;", "uint32_t initial_val = VAR_1[val];", "while (1) {", "val2 = val << 1;", "if (val2 > VAR_0)\nbreak;", "if (val2 < VAR_0 && VAR_2[VAR_1[val2 + 1]] < VAR_2[VAR_1[val2]])\nval2++;", "if (VA...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25, 27 ], [ 31, 33 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
19,078
static void dct_unquantize_mpeg1_mmx(MpegEncContext *s, DCTELEM *block, int n, int qscale) { int nCoeffs; const UINT16 *quant_matrix; if(s->alternate_scan) nCoeffs= 64; else nCoeffs= nCoeffs= zigzag_end[ s->block_last_index[n] ]; if (s->mb_intra) {...
true
FFmpeg
d7e9533aa06f4073a27812349b35ba5fede11ca1
static void dct_unquantize_mpeg1_mmx(MpegEncContext *s, DCTELEM *block, int n, int qscale) { int nCoeffs; const UINT16 *quant_matrix; if(s->alternate_scan) nCoeffs= 64; else nCoeffs= nCoeffs= zigzag_end[ s->block_last_index[n] ]; if (s->mb_intra) {...
{ "code": [ " quant_matrix = s->non_intra_matrix;", " quant_matrix = s->non_intra_matrix;", "\t);", "\t);", " } else {", " } else {", " } else {", " quant_matrix = s->non_intra_matrix;", " quant_matrix = s->non_intra_matrix;" ], ...
static void FUNC_0(MpegEncContext *VAR_0, DCTELEM *VAR_1, int VAR_2, int VAR_3) { int VAR_4; const UINT16 *VAR_5; if(VAR_0->alternate_scan) VAR_4= 64; else VAR_4= VAR_4= zigzag_end[ VAR_0->block_last_index[VAR_2] ]; if (VAR_0->mb_intra) { ...
[ "static void FUNC_0(MpegEncContext *VAR_0,\nDCTELEM *VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4;", "const UINT16 *VAR_5;", "if(VAR_0->alternate_scan) VAR_4= 64;", "else VAR_4= VAR_4= zigzag_end[ VAR_0->block_last_index[VAR_2] ];", "if (VAR_0->mb_intra) {", "int VAR_6;", "if (VAR_2 < 4)\nVAR_6 = VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 33 ], [ 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65,...
19,079
void RENAME(ff_init_mpadsp_tabs)(void) { int i, j; /* compute mdct windows */ for (i = 0; i < 36; i++) { for (j = 0; j < 4; j++) { double d; if (j == 2 && i % 3 != 1) continue; d = sin(M_PI * (i + 0.5) / 36.0); if (j == 1)...
true
FFmpeg
571572fcddc16ebe3d60054ae5a2db05800c1d6d
void RENAME(ff_init_mpadsp_tabs)(void) { int i, j; for (i = 0; i < 36; i++) { for (j = 0; j < 4; j++) { double d; if (j == 2 && i % 3 != 1) continue; d = sin(M_PI * (i + 0.5) / 36.0); if (j == 1) { if ...
{ "code": [ " d *= 0.5 / cos(M_PI * (2 * i + 19) / 72);" ], "line_no": [ 45 ] }
void FUNC_0(ff_init_mpadsp_tabs)(void) { int VAR_0, VAR_1; for (VAR_0 = 0; VAR_0 < 36; VAR_0++) { for (VAR_1 = 0; VAR_1 < 4; VAR_1++) { double VAR_2; if (VAR_1 == 2 && VAR_0 % 3 != 1) continue; VAR_2 = sin(M_PI * (VAR_0 + 0.5) / 36.0)...
[ "void FUNC_0(ff_init_mpadsp_tabs)(void)\n{", "int VAR_0, VAR_1;", "for (VAR_0 = 0; VAR_0 < 36; VAR_0++) {", "for (VAR_1 = 0; VAR_1 < 4; VAR_1++) {", "double VAR_2;", "if (VAR_1 == 2 && VAR_0 % 3 != 1)\ncontinue;", "VAR_2 = sin(M_PI * (VAR_0 + 0.5) / 36.0);", "if (VAR_1 == 1) {", "if (VAR_0 >= 3...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49, 51 ], [ 53...
19,080
static int coroutine_fn bdrv_co_do_copy_on_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { /* Perform I/O through a temporary buffer so that users who scribble over * their read buffer while the operation is in progress do not end up * modifying the image...
true
qemu
857d4f46c31d2f4d57d2f0fad9dfb584262bf9b9
static int coroutine_fn bdrv_co_do_copy_on_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { void *bounce_buffer; BlockDriver *drv = bs->drv; struct iovec iov; QEMUIOVector bounce_qiov; int64_t cluster_sector_num; int cluster_nb...
{ "code": [ " iov.iov_base = bounce_buffer = qemu_blockalign(bs, iov.iov_len);" ], "line_no": [ 57 ] }
static int VAR_0 bdrv_co_do_copy_on_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { void *bounce_buffer; BlockDriver *drv = bs->drv; struct iovec iov; QEMUIOVector bounce_qiov; int64_t cluster_sector_num; int cluster_nb_sector...
[ "static int VAR_0 bdrv_co_do_copy_on_readv(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, QEMUIOVector *qiov)\n{", "void *bounce_buffer;", "BlockDriver *drv = bs->drv;", "struct iovec iov;", "QEMUIOVector bounce_qiov;", "int64_t cluster_sector_num;", "int cluster_nb_sectors;", "size_t skip...
[ 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 ]
[ [ 1, 3, 5 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 43, 45 ], [ 49, 51 ], [ 55 ], [ 57 ], [ 59 ], [ 63, 65 ], [ 67 ], [ 69 ], [ 7...
19,081
static int local_create_mapped_attr_dir(FsContext *ctx, const char *path) { int err; char attr_dir[PATH_MAX]; char *tmp_path = strdup(path); snprintf(attr_dir, PATH_MAX, "%s/%s/%s", ctx->fs_root, dirname(tmp_path), VIRTFS_META_DIR); err = mkdir(attr_dir, 0700); if (err <...
true
qemu
d3f8e138c23ba082f87c96634d06b978473c1e9b
static int local_create_mapped_attr_dir(FsContext *ctx, const char *path) { int err; char attr_dir[PATH_MAX]; char *tmp_path = strdup(path); snprintf(attr_dir, PATH_MAX, "%s/%s/%s", ctx->fs_root, dirname(tmp_path), VIRTFS_META_DIR); err = mkdir(attr_dir, 0700); if (err <...
{ "code": [ " char *tmp_path = strdup(path);", " free(tmp_path);", " char *tmp_path = strdup(path);", " free(tmp_path);" ], "line_no": [ 9, 27, 9, 27 ] }
static int FUNC_0(FsContext *VAR_0, const char *VAR_1) { int VAR_2; char VAR_3[PATH_MAX]; char *VAR_4 = strdup(VAR_1); snprintf(VAR_3, PATH_MAX, "%s/%s/%s", VAR_0->fs_root, dirname(VAR_4), VIRTFS_META_DIR); VAR_2 = mkdir(VAR_3, 0700); if (VAR_2 < 0 && errno == EEXIST) { ...
[ "static int FUNC_0(FsContext *VAR_0, const char *VAR_1)\n{", "int VAR_2;", "char VAR_3[PATH_MAX];", "char *VAR_4 = strdup(VAR_1);", "snprintf(VAR_3, PATH_MAX, \"%s/%s/%s\",\nVAR_0->fs_root, dirname(VAR_4), VIRTFS_META_DIR);", "VAR_2 = mkdir(VAR_3, 0700);", "if (VAR_2 < 0 && errno == EEXIST) {", "VAR_2...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
19,083
static int openpic_init(SysBusDevice *dev) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), dev); int i, j; struct memreg list_le[] = { {"glb", &openpic_glb_ops_le, true, OPENPIC_GLB_REG_START, OPENPIC_GLB_REG_SIZE}, {"tmr", &openpic_tmr_ops_le, true, ...
true
qemu
af7e9e74c6a62a5bcd911726a9e88d28b61490e0
static int openpic_init(SysBusDevice *dev) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), dev); int i, j; struct memreg list_le[] = { {"glb", &openpic_glb_ops_le, true, OPENPIC_GLB_REG_START, OPENPIC_GLB_REG_SIZE}, {"tmr", &openpic_tmr_ops_le, true, ...
{ "code": [ " struct memreg list_le[] = {", " struct memreg list_be[] = {", " struct memreg *list;" ], "line_no": [ 9, 33, 57 ] }
static int FUNC_0(SysBusDevice *VAR_0) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), VAR_0); int VAR_1, VAR_2; struct memreg VAR_3[] = { {"glb", &openpic_glb_ops_le, true, OPENPIC_GLB_REG_START, OPENPIC_GLB_REG_SIZE}, {"tmr", &openpic_tmr_ops_le, true, ...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "OpenPICState *opp = FROM_SYSBUS(typeof (*opp), VAR_0);", "int VAR_1, VAR_2;", "struct memreg VAR_3[] = {", "{\"glb\", &openpic_glb_ops_le, true,", "OPENPIC_GLB_REG_START, OPENPIC_GLB_REG_SIZE},", "{\"tmr\", &openpic_tmr_ops_le, true,", "OPENPIC_TMR_REG_STA...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
19,084
static int tgq_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt){ const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_start = buf; const uint8_t *buf_end = buf + buf_size; TgqCo...
true
FFmpeg
1255eed533b4069db7f205601953ca54c0dc42c9
static int tgq_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt){ const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_start = buf; const uint8_t *buf_end = buf + buf_size; TgqCo...
{ "code": [ " const uint8_t *buf_start = buf;", " const uint8_t *buf_end = buf + buf_size;", " buf += 8;", " if(8>buf_end-buf) {", " s->width = big_endian ? AV_RB16(&buf[0]) : AV_RL16(&buf[0]);", " s->height = big_endian ? AV_RB16(&buf[2]) : AV_RL16(&buf[2]);", " tgq_...
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; const uint8_t *VAR_6 = VAR_4; const uint8_t *VAR_7 = VAR_4 + VAR_5; TgqContext *s = VAR_0->...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3){", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "const uint8_t *VAR_6 = VAR_4;", "const uint8_t *VAR_7 = VAR_4 + VAR_5;", "TgqContext *s = VAR_0->priv_data;", "int VAR_8,VAR_9;", "int VAR_10 = ...
[ 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ...
19,085
static int handle_packet(MpegTSContext *ts, const uint8_t *packet) { MpegTSFilter *tss; int len, pid, cc, expected_cc, cc_ok, afc, is_start, is_discontinuity, has_adaptation, has_payload; const uint8_t *p, *p_end; int64_t pos; pid = AV_RB16(packet + 1) & 0x1fff; if (pid && discard_pid(ts...
true
FFmpeg
2e391a576c1fc2e8816990924c6e4c21ccf75a82
static int handle_packet(MpegTSContext *ts, const uint8_t *packet) { MpegTSFilter *tss; int len, pid, cc, expected_cc, cc_ok, afc, is_start, is_discontinuity, has_adaptation, has_payload; const uint8_t *p, *p_end; int64_t pos; pid = AV_RB16(packet + 1) & 0x1fff; if (pid && discard_pid(ts...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegTSContext *VAR_0, const uint8_t *VAR_1) { MpegTSFilter *tss; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11; const uint8_t *VAR_12, *p_end; int64_t pos; VAR_3 = AV_RB16(VAR_1 + 1) & 0x1fff; if (VAR_3 && discard_pid(VAR_0, VAR_3)) ...
[ "static int FUNC_0(MpegTSContext *VAR_0, const uint8_t *VAR_1)\n{", "MpegTSFilter *tss;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9,\nVAR_10, VAR_11;", "const uint8_t *VAR_12, *p_end;", "int64_t pos;", "VAR_3 = AV_RB16(VAR_1 + 1) & 0x1fff;", "if (VAR_3 && discard_pid(VAR_0, VAR_3))\nre...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2 ], [ 3 ], [ 4, 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9, 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16, 17 ], [ 18 ], [ 19 ], [ 20, 21 ], [ 22 ], [ 23 ],...
19,086
void qmp_guest_suspend_disk(Error **errp) { Error *local_err = NULL; GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode)); *mode = GUEST_SUSPEND_MODE_DISK; check_suspend_mode(*mode, &local_err); acquire_privilege(SE_SHUTDOWN_NAME, &local_err); execute_async(do_suspend, mode, &loc...
true
qemu
f3a06403b82c7f036564e4caf18b52ce6885fcfb
void qmp_guest_suspend_disk(Error **errp) { Error *local_err = NULL; GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode)); *mode = GUEST_SUSPEND_MODE_DISK; check_suspend_mode(*mode, &local_err); acquire_privilege(SE_SHUTDOWN_NAME, &local_err); execute_async(do_suspend, mode, &loc...
{ "code": [ " GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));", " GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));" ], "line_no": [ 7, 7 ] }
void FUNC_0(Error **VAR_0) { Error *local_err = NULL; GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode)); *mode = GUEST_SUSPEND_MODE_DISK; check_suspend_mode(*mode, &local_err); acquire_privilege(SE_SHUTDOWN_NAME, &local_err); execute_async(do_suspend, mode, &local_err); ...
[ "void FUNC_0(Error **VAR_0)\n{", "Error *local_err = NULL;", "GuestSuspendMode *mode = g_malloc(sizeof(GuestSuspendMode));", "*mode = GUEST_SUSPEND_MODE_DISK;", "check_suspend_mode(*mode, &local_err);", "acquire_privilege(SE_SHUTDOWN_NAME, &local_err);", "execute_async(do_suspend, mode, &local_err);", ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
19,088
static void kvm_pit_put(PITCommonState *pit) { KVMPITState *s = KVM_PIT(pit); struct kvm_pit_state2 kpit; struct kvm_pit_channel_state *kchan; struct PITChannelState *sc; int i, ret; /* The offset keeps changing as long as the VM is stopped. */ if (s->vm_stopped) { kvm_pit...
false
qemu
b0a0551283076c6f3e57cf2bdd525334009b2677
static void kvm_pit_put(PITCommonState *pit) { KVMPITState *s = KVM_PIT(pit); struct kvm_pit_state2 kpit; struct kvm_pit_channel_state *kchan; struct PITChannelState *sc; int i, ret; if (s->vm_stopped) { kvm_pit_update_clock_offset(s); } kpit.flags = pit->chan...
{ "code": [], "line_no": [] }
static void FUNC_0(PITCommonState *VAR_0) { KVMPITState *s = KVM_PIT(VAR_0); struct kvm_pit_state2 VAR_1; struct kvm_pit_channel_state *VAR_2; struct PITChannelState *VAR_3; int VAR_4, VAR_5; if (s->vm_stopped) { kvm_pit_update_clock_offset(s); } VAR_1.flags =...
[ "static void FUNC_0(PITCommonState *VAR_0)\n{", "KVMPITState *s = KVM_PIT(VAR_0);", "struct kvm_pit_state2 VAR_1;", "struct kvm_pit_channel_state *VAR_2;", "struct PITChannelState *VAR_3;", "int VAR_4, VAR_5;", "if (s->vm_stopped) {", "kvm_pit_update_clock_offset(s);", "}", "VAR_1.flags = VAR_0->c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
19,089
static void vfio_rtl8168_window_quirk_write(void *opaque, hwaddr addr, uint64_t data, unsigned size) { VFIOQuirk *quirk = opaque; VFIOPCIDevice *vdev = quirk->vdev; switch (addr) { case 4: /* address */ if ((data & 0x7fff0000) == 0x10000) { ...
false
qemu
69970fcef937bddd7f745efe39501c7716fdfe56
static void vfio_rtl8168_window_quirk_write(void *opaque, hwaddr addr, uint64_t data, unsigned size) { VFIOQuirk *quirk = opaque; VFIOPCIDevice *vdev = quirk->vdev; switch (addr) { case 4: if ((data & 0x7fff0000) == 0x10000) { if...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { VFIOQuirk *quirk = VAR_0; VFIOPCIDevice *vdev = quirk->vdev; switch (VAR_1) { case 4: if ((VAR_2 & 0x7fff0000) == 0x10000) { if (VAR_2 & 0x10000000U ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "VFIOQuirk *quirk = VAR_0;", "VFIOPCIDevice *vdev = quirk->vdev;", "switch (VAR_1) {", "case 4:\nif ((VAR_2 & 0x7fff0000) == 0x10000) {", "if (VAR_2 & 0x10000000U &&\nvdev->pdev.cap_present & QEMU_PCI_CAP_MSIX) {", "tra...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 25, 27, 29 ], [ 33, 35, 37, 39, 41, 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ...
19,091
static void hash32_bat_601_size(CPUPPCState *env, target_ulong *blp, int *validp, target_ulong batu, target_ulong batl) { target_ulong bl; int valid; bl = (batl & BATL32_601_BL) << 17; LOG_BATS("b %02x ==> bl " TARGET_FMT_lx " msk " TARGET_FMT_lx "\n", ...
false
qemu
6fc76aa9adc1c8896a97059f12a1e5e6c1820c64
static void hash32_bat_601_size(CPUPPCState *env, target_ulong *blp, int *validp, target_ulong batu, target_ulong batl) { target_ulong bl; int valid; bl = (batl & BATL32_601_BL) << 17; LOG_BATS("b %02x ==> bl " TARGET_FMT_lx " msk " TARGET_FMT_lx "\n", ...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUPPCState *VAR_0, target_ulong *VAR_1, int *VAR_2, target_ulong VAR_3, target_ulong VAR_4) { target_ulong bl; int VAR_5; bl = (VAR_4 & BATL32_601_BL) << 17; LOG_BATS("b %02x ==> bl " TARGET_FMT_lx " msk " TARGET_FMT_lx "\n", (uin...
[ "static void FUNC_0(CPUPPCState *VAR_0, target_ulong *VAR_1, int *VAR_2,\ntarget_ulong VAR_3, target_ulong VAR_4)\n{", "target_ulong bl;", "int VAR_5;", "bl = (VAR_4 & BATL32_601_BL) << 17;", "LOG_BATS(\"b %02x ==> bl \" TARGET_FMT_lx \" msk \" TARGET_FMT_lx \"\\n\",\n(uint8_t)(VAR_4 & BATL32_601_BL), bl, ~...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
19,092
static size_t cache_get_cache_pos(const PageCache *cache, uint64_t address) { size_t pos; g_assert(cache->max_num_items); pos = (address / cache->page_size) & (cache->max_num_items - 1); return pos; }
false
qemu
9be385980d37e8f4fd33f605f5fb1c3d144170a8
static size_t cache_get_cache_pos(const PageCache *cache, uint64_t address) { size_t pos; g_assert(cache->max_num_items); pos = (address / cache->page_size) & (cache->max_num_items - 1); return pos; }
{ "code": [], "line_no": [] }
static size_t FUNC_0(const PageCache *cache, uint64_t address) { size_t pos; g_assert(cache->max_num_items); pos = (address / cache->page_size) & (cache->max_num_items - 1); return pos; }
[ "static size_t FUNC_0(const PageCache *cache,\nuint64_t address)\n{", "size_t pos;", "g_assert(cache->max_num_items);", "pos = (address / cache->page_size) & (cache->max_num_items - 1);", "return pos;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
19,093
void vnc_display_init(DisplayState *ds) { VncState *vs; vs = qemu_mallocz(sizeof(VncState)); if (!vs) exit(1); ds->opaque = vs; vnc_state = vs; vs->display = NULL; vs->password = NULL; vs->lsock = -1; vs->csock = -1; vs->depth = 4; vs->last_x = -1; vs...
false
qemu
8bba5c81b1febeb20cdd60f1c18eb0e695cad6d6
void vnc_display_init(DisplayState *ds) { VncState *vs; vs = qemu_mallocz(sizeof(VncState)); if (!vs) exit(1); ds->opaque = vs; vnc_state = vs; vs->display = NULL; vs->password = NULL; vs->lsock = -1; vs->csock = -1; vs->depth = 4; vs->last_x = -1; vs...
{ "code": [], "line_no": [] }
void FUNC_0(DisplayState *VAR_0) { VncState *vs; vs = qemu_mallocz(sizeof(VncState)); if (!vs) exit(1); VAR_0->opaque = vs; vnc_state = vs; vs->display = NULL; vs->password = NULL; vs->lsock = -1; vs->csock = -1; vs->depth = 4; vs->last_x = -1; vs->la...
[ "void FUNC_0(DisplayState *VAR_0)\n{", "VncState *vs;", "vs = qemu_mallocz(sizeof(VncState));", "if (!vs)\nexit(1);", "VAR_0->opaque = vs;", "vnc_state = vs;", "vs->display = NULL;", "vs->password = NULL;", "vs->lsock = -1;", "vs->csock = -1;", "vs->depth = 4;", "vs->last_x = -1;", "vs->last...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43, 45 ], [ 49 ], [ 51, 53 ], [ 57 ], ...
19,094
QemuOpts *qemu_opts_find(QemuOptsList *list, const char *id) { QemuOpts *opts; TAILQ_FOREACH(opts, &list->head, next) { if (!opts->id) { continue; } if (strcmp(opts->id, id) != 0) { continue; } return opts; } return NULL; }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
QemuOpts *qemu_opts_find(QemuOptsList *list, const char *id) { QemuOpts *opts; TAILQ_FOREACH(opts, &list->head, next) { if (!opts->id) { continue; } if (strcmp(opts->id, id) != 0) { continue; } return opts; } return NULL; }
{ "code": [], "line_no": [] }
QemuOpts *FUNC_0(QemuOptsList *list, const char *id) { QemuOpts *opts; TAILQ_FOREACH(opts, &list->head, next) { if (!opts->id) { continue; } if (strcmp(opts->id, id) != 0) { continue; } return opts; } return NULL; }
[ "QemuOpts *FUNC_0(QemuOptsList *list, const char *id)\n{", "QemuOpts *opts;", "TAILQ_FOREACH(opts, &list->head, next) {", "if (!opts->id) {", "continue;", "}", "if (strcmp(opts->id, id) != 0) {", "continue;", "}", "return opts;", "}", "return NULL;", "}" ]
[ 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 ] ]
19,095
static inline TranslationBlock *tb_find_fast(void) { TranslationBlock *tb; target_ulong cs_base, pc; int flags; /* we record a subset of the CPU state. It will always be the same before a given translated block is executed. */ cpu_get_tb_cpu_state(env, &pc, &cs_base, &flags);...
false
qemu
cea5f9a28faa528b6b1b117c9ab2d8828f473fef
static inline TranslationBlock *tb_find_fast(void) { TranslationBlock *tb; target_ulong cs_base, pc; int flags; cpu_get_tb_cpu_state(env, &pc, &cs_base, &flags); tb = env->tb_jmp_cache[tb_jmp_cache_hash_func(pc)]; if (unlikely(!tb || tb->pc != pc || tb->cs_base != cs_base || ...
{ "code": [], "line_no": [] }
static inline TranslationBlock *FUNC_0(void) { TranslationBlock *tb; target_ulong cs_base, pc; int VAR_0; cpu_get_tb_cpu_state(env, &pc, &cs_base, &VAR_0); tb = env->tb_jmp_cache[tb_jmp_cache_hash_func(pc)]; if (unlikely(!tb || tb->pc != pc || tb->cs_base != cs_base || ...
[ "static inline TranslationBlock *FUNC_0(void)\n{", "TranslationBlock *tb;", "target_ulong cs_base, pc;", "int VAR_0;", "cpu_get_tb_cpu_state(env, &pc, &cs_base, &VAR_0);", "tb = env->tb_jmp_cache[tb_jmp_cache_hash_func(pc)];", "if (unlikely(!tb || tb->pc != pc || tb->cs_base != cs_base ||\ntb->VAR_0 != ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
19,096
static void aio_timerlist_notify(void *opaque) { aio_notify(opaque); }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
static void aio_timerlist_notify(void *opaque) { aio_notify(opaque); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { aio_notify(VAR_0); }
[ "static void FUNC_0(void *VAR_0)\n{", "aio_notify(VAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
19,097
void qdev_free(DeviceState *dev) { #if 0 /* FIXME: need sane vmstate_unregister function */ if (dev->info->vmsd) vmstate_unregister(dev->info->vmsd, dev); #endif if (dev->info->reset) qemu_unregister_reset(dev->info->reset, dev); LIST_REMOVE(dev, sibling); qemu_free(dev); }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void qdev_free(DeviceState *dev) { #if 0 if (dev->info->vmsd) vmstate_unregister(dev->info->vmsd, dev); #endif if (dev->info->reset) qemu_unregister_reset(dev->info->reset, dev); LIST_REMOVE(dev, sibling); qemu_free(dev); }
{ "code": [], "line_no": [] }
void FUNC_0(DeviceState *VAR_0) { #if 0 if (VAR_0->info->vmsd) vmstate_unregister(VAR_0->info->vmsd, VAR_0); #endif if (VAR_0->info->reset) qemu_unregister_reset(VAR_0->info->reset, VAR_0); LIST_REMOVE(VAR_0, sibling); qemu_free(VAR_0); }
[ "void FUNC_0(DeviceState *VAR_0)\n{", "#if 0\nif (VAR_0->info->vmsd)\nvmstate_unregister(VAR_0->info->vmsd, VAR_0);", "#endif\nif (VAR_0->info->reset)\nqemu_unregister_reset(VAR_0->info->reset, VAR_0);", "LIST_REMOVE(VAR_0, sibling);", "qemu_free(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ] ]
19,098
static inline void write_back_motion(H264Context *h, int mb_type){ MpegEncContext * const s = &h->s; const int b_xy = 4*s->mb_x + 4*s->mb_y*h->b_stride; const int b8_xy= 2*s->mb_x + 2*s->mb_y*h->b8_stride; int list; if(!USES_LIST(mb_type, 0)) fill_rectangle(&s->current_picture.ref_in...
false
FFmpeg
3425501d3b09650c6b295ba225e02e97c002372c
static inline void write_back_motion(H264Context *h, int mb_type){ MpegEncContext * const s = &h->s; const int b_xy = 4*s->mb_x + 4*s->mb_y*h->b_stride; const int b8_xy= 2*s->mb_x + 2*s->mb_y*h->b8_stride; int list; if(!USES_LIST(mb_type, 0)) fill_rectangle(&s->current_picture.ref_in...
{ "code": [], "line_no": [] }
static inline void FUNC_0(H264Context *VAR_0, int VAR_1){ MpegEncContext * const s = &VAR_0->s; const int VAR_2 = 4*s->mb_x + 4*s->mb_y*VAR_0->b_stride; const int VAR_3= 2*s->mb_x + 2*s->mb_y*VAR_0->b8_stride; int VAR_4; if(!USES_LIST(VAR_1, 0)) fill_rectangle(&s->current_picture.ref...
[ "static inline void FUNC_0(H264Context *VAR_0, int VAR_1){", "MpegEncContext * const s = &VAR_0->s;", "const int VAR_2 = 4*s->mb_x + 4*s->mb_y*VAR_0->b_stride;", "const int VAR_3= 2*s->mb_x + 2*s->mb_y*VAR_0->b8_stride;", "int VAR_4;", "if(!USES_LIST(VAR_1, 0))\nfill_rectangle(&s->current_picture.ref_inde...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
19,100
cac_new_pki_applet(int i, const unsigned char *cert, int cert_len, VCardKey *key) { VCardAppletPrivate *applet_private = NULL; VCardApplet *applet = NULL; unsigned char pki_aid[] = { 0xa0, 0x00, 0x00, 0x00, 0x79, 0x01, 0x00 }; int pki_aid_len = sizeof(pki_aid); pki_aid[pk...
false
qemu
1687a089f103f9b7a1b4a1555068054cb46ee9e9
cac_new_pki_applet(int i, const unsigned char *cert, int cert_len, VCardKey *key) { VCardAppletPrivate *applet_private = NULL; VCardApplet *applet = NULL; unsigned char pki_aid[] = { 0xa0, 0x00, 0x00, 0x00, 0x79, 0x01, 0x00 }; int pki_aid_len = sizeof(pki_aid); pki_aid[pk...
{ "code": [], "line_no": [] }
FUNC_0(int VAR_0, const unsigned char *VAR_1, int VAR_2, VCardKey *VAR_3) { VCardAppletPrivate *applet_private = NULL; VCardApplet *applet = NULL; unsigned char VAR_4[] = { 0xa0, 0x00, 0x00, 0x00, 0x79, 0x01, 0x00 }; int VAR_5 = sizeof(VAR_4); VAR_4[VAR_5-1] = VAR_0; ...
[ "FUNC_0(int VAR_0, const unsigned char *VAR_1,\nint VAR_2, VCardKey *VAR_3)\n{", "VCardAppletPrivate *applet_private = NULL;", "VCardApplet *applet = NULL;", "unsigned char VAR_4[] = { 0xa0, 0x00, 0x00, 0x00, 0x79, 0x01, 0x00 };", "int VAR_5 = sizeof(VAR_4);", "VAR_4[VAR_5-1] = VAR_0;", "applet_private ...
[ 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 47 ], [ 51, 53 ...
19,101
static void omap_rtc_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_rtc_s *s = (struct omap_rtc_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; struct tm new_tm; time_t ti[2]; if (size != 1) { return omap_ba...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void omap_rtc_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_rtc_s *s = (struct omap_rtc_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; struct tm new_tm; time_t ti[2]; if (size != 1) { return omap_ba...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { struct omap_rtc_s *VAR_4 = (struct omap_rtc_s *) VAR_0; int VAR_5 = VAR_1 & OMAP_MPUI_REG_MASK; struct tm VAR_6; time_t ti[2]; if (VAR_3 != 1) { return omap_badwid...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "struct omap_rtc_s *VAR_4 = (struct omap_rtc_s *) VAR_0;", "int VAR_5 = VAR_1 & OMAP_MPUI_REG_MASK;", "struct tm VAR_6;", "time_t ti[2];", "if (VAR_3 != 1) {", "return omap_badwidth_write8(VAR_0, VAR_1, VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43, 45, 47 ], [ 49, 51 ], [ 53 ], [...
19,103
static void nbd_recv_coroutines_enter_all(BlockDriverState *bs) { NBDClientSession *s = nbd_get_client_session(bs); int i; for (i = 0; i < MAX_NBD_REQUESTS; i++) { if (s->recv_coroutine[i]) { qemu_coroutine_enter(s->recv_coroutine[i]); } } BDRV_POLL_WHILE(bs, s...
false
qemu
a12a712a7dfbd2e2f4882ef2c90a9b2162166dd7
static void nbd_recv_coroutines_enter_all(BlockDriverState *bs) { NBDClientSession *s = nbd_get_client_session(bs); int i; for (i = 0; i < MAX_NBD_REQUESTS; i++) { if (s->recv_coroutine[i]) { qemu_coroutine_enter(s->recv_coroutine[i]); } } BDRV_POLL_WHILE(bs, s...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0) { NBDClientSession *s = nbd_get_client_session(VAR_0); int VAR_1; for (VAR_1 = 0; VAR_1 < MAX_NBD_REQUESTS; VAR_1++) { if (s->recv_coroutine[VAR_1]) { qemu_coroutine_enter(s->recv_coroutine[VAR_1]); } } BDRV_POLL_WHIL...
[ "static void FUNC_0(BlockDriverState *VAR_0)\n{", "NBDClientSession *s = nbd_get_client_session(VAR_0);", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < MAX_NBD_REQUESTS; VAR_1++) {", "if (s->recv_coroutine[VAR_1]) {", "qemu_coroutine_enter(s->recv_coroutine[VAR_1]);", "}", "}", "BDRV_POLL_WHILE(VAR_0, s->r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
19,104
static void serial_xmit(void *opaque) { SerialState *s = opaque; uint64_t new_xmit_ts = qemu_get_clock_ns(vm_clock); if (s->tsr_retry <= 0) { if (s->fcr & UART_FCR_FE) { s->tsr = fifo_get(s,XMIT_FIFO); if (!s->xmit_fifo.count) s->lsr |= UART_LSR_THRE...
false
qemu
67c5322d7000fd105a926eec44bc1765b7d70bdd
static void serial_xmit(void *opaque) { SerialState *s = opaque; uint64_t new_xmit_ts = qemu_get_clock_ns(vm_clock); if (s->tsr_retry <= 0) { if (s->fcr & UART_FCR_FE) { s->tsr = fifo_get(s,XMIT_FIFO); if (!s->xmit_fifo.count) s->lsr |= UART_LSR_THRE...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { SerialState *s = VAR_0; uint64_t new_xmit_ts = qemu_get_clock_ns(vm_clock); if (s->tsr_retry <= 0) { if (s->fcr & UART_FCR_FE) { s->tsr = fifo_get(s,XMIT_FIFO); if (!s->xmit_fifo.count) s->lsr |= UART_LSR_THRE; ...
[ "static void FUNC_0(void *VAR_0)\n{", "SerialState *s = VAR_0;", "uint64_t new_xmit_ts = qemu_get_clock_ns(vm_clock);", "if (s->tsr_retry <= 0) {", "if (s->fcr & UART_FCR_FE) {", "s->tsr = fifo_get(s,XMIT_FIFO);", "if (!s->xmit_fifo.count)\ns->lsr |= UART_LSR_THRE;", "} else {", "s->tsr = s->thr;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
19,105
static int64_t coroutine_fn bdrv_co_get_block_status_above(BlockDriverState *bs, BlockDriverState *base, bool want_zero, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { BlockDriverState *p; int64_t ret = 0; bool first = true...
false
qemu
2e8bc7874bb674b7d6837706b1249bf871941637
static int64_t coroutine_fn bdrv_co_get_block_status_above(BlockDriverState *bs, BlockDriverState *base, bool want_zero, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { BlockDriverState *p; int64_t ret = 0; bool first = true...
{ "code": [], "line_no": [] }
static int64_t VAR_0 bdrv_co_get_block_status_above(BlockDriverState *bs, BlockDriverState *base, bool want_zero, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { BlockDriverState *p; int64_t ret = 0; bool first = true; ...
[ "static int64_t VAR_0 bdrv_co_get_block_status_above(BlockDriverState *bs,\nBlockDriverState *base,\nbool want_zero,\nint64_t sector_num,\nint nb_sectors,\nint *pnum,\nBlockDriverState **file)\n{", "BlockDriverState *p;", "int64_t ret = 0;", "bool first = true;", "assert(bs != base);", "for (p = bs; p != ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [...
19,106
static void socket_start_incoming_migration(SocketAddressLegacy *saddr, Error **errp) { QIOChannelSocket *listen_ioc = qio_channel_socket_new(); qio_channel_set_name(QIO_CHANNEL(listen_ioc), "migration-socket-listener"); if (qio_...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
static void socket_start_incoming_migration(SocketAddressLegacy *saddr, Error **errp) { QIOChannelSocket *listen_ioc = qio_channel_socket_new(); qio_channel_set_name(QIO_CHANNEL(listen_ioc), "migration-socket-listener"); if (qio_...
{ "code": [], "line_no": [] }
static void FUNC_0(SocketAddressLegacy *VAR_0, Error **VAR_1) { QIOChannelSocket *listen_ioc = qio_channel_socket_new(); qio_channel_set_name(QIO_CHANNEL(listen_ioc), "migration-socket-listener"); if (qio_channel_socket_listen_sy...
[ "static void FUNC_0(SocketAddressLegacy *VAR_0,\nError **VAR_1)\n{", "QIOChannelSocket *listen_ioc = qio_channel_socket_new();", "qio_channel_set_name(QIO_CHANNEL(listen_ioc),\n\"migration-socket-listener\");", "if (qio_channel_socket_listen_sync(listen_ioc, VAR_0, VAR_1) < 0) {", "object_unref(OBJECT(liste...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31, 33, 35, 37 ], [ 39 ], [ 41 ] ]
19,107
QemuOpts *vnc_parse_func(const char *str) { QemuOptsList *olist = qemu_find_opts("vnc"); QemuOpts *opts = qemu_opts_parse(olist, str, 1); const char *id = qemu_opts_id(opts); if (!id) { /* auto-assign id if not present */ vnc_auto_assign_id(olist, opts); } return opts;...
false
qemu
81607cbfa433272d1f09bd0f0ae6c3b14f818972
QemuOpts *vnc_parse_func(const char *str) { QemuOptsList *olist = qemu_find_opts("vnc"); QemuOpts *opts = qemu_opts_parse(olist, str, 1); const char *id = qemu_opts_id(opts); if (!id) { vnc_auto_assign_id(olist, opts); } return opts; }
{ "code": [], "line_no": [] }
QemuOpts *FUNC_0(const char *str) { QemuOptsList *olist = qemu_find_opts("vnc"); QemuOpts *opts = qemu_opts_parse(olist, str, 1); const char *VAR_0 = qemu_opts_id(opts); if (!VAR_0) { vnc_auto_assign_id(olist, opts); } return opts; }
[ "QemuOpts *FUNC_0(const char *str)\n{", "QemuOptsList *olist = qemu_find_opts(\"vnc\");", "QemuOpts *opts = qemu_opts_parse(olist, str, 1);", "const char *VAR_0 = qemu_opts_id(opts);", "if (!VAR_0) {", "vnc_auto_assign_id(olist, opts);", "}", "return opts;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
19,109
static void flush_dpb(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; int i; memset(h->delayed_pic, 0, sizeof(h->delayed_pic)); ff_h264_flush_change(h); if (h->DPB) for (i = 0; i < H264_MAX_PICTURE_COUNT; i++) ff_h264_unref_picture(h, &h->DPB[i]); h...
false
FFmpeg
7a4f74eed51f914e9bbfebaffd4a92ac6791f819
static void flush_dpb(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; int i; memset(h->delayed_pic, 0, sizeof(h->delayed_pic)); ff_h264_flush_change(h); if (h->DPB) for (i = 0; i < H264_MAX_PICTURE_COUNT; i++) ff_h264_unref_picture(h, &h->DPB[i]); h...
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0) { H264Context *h = VAR_0->priv_data; int VAR_1; memset(h->delayed_pic, 0, sizeof(h->delayed_pic)); ff_h264_flush_change(h); if (h->DPB) for (VAR_1 = 0; VAR_1 < H264_MAX_PICTURE_COUNT; VAR_1++) ff_h264_unref_picture(h, &h->DP...
[ "static void FUNC_0(AVCodecContext *VAR_0)\n{", "H264Context *h = VAR_0->priv_data;", "int VAR_1;", "memset(h->delayed_pic, 0, sizeof(h->delayed_pic));", "ff_h264_flush_change(h);", "if (h->DPB)\nfor (VAR_1 = 0; VAR_1 < H264_MAX_PICTURE_COUNT; VAR_1++)", "ff_h264_unref_picture(h, &h->DPB[VAR_1]);", "h...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
19,110
static int64_t coroutine_fn vdi_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { /* TODO: Check for too large sector_num (in bdrv_is_allocated or here). */ BDRVVdiState *s = (BDRVVdiState *)bs->opaque; size_t bmap_index = sector_num / s->block_sectors; ...
false
qemu
67a0fd2a9bca204d2b39f910a97c7137636a0715
static int64_t coroutine_fn vdi_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVVdiState *s = (BDRVVdiState *)bs->opaque; size_t bmap_index = sector_num / s->block_sectors; size_t sector_in_block = sector_num % s->block_sectors; int n_se...
{ "code": [], "line_no": [] }
static int64_t VAR_0 vdi_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVVdiState *s = (BDRVVdiState *)bs->opaque; size_t bmap_index = sector_num / s->block_sectors; size_t sector_in_block = sector_num % s->block_sectors; int n_sectors =...
[ "static int64_t VAR_0 vdi_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, int *pnum)\n{", "BDRVVdiState *s = (BDRVVdiState *)bs->opaque;", "size_t bmap_index = sector_num / s->block_sectors;", "size_t sector_in_block = sector_num % s->block_sectors;", "int n_sectors = s->block...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47, 49 ], ...
19,111
static void coroutine_fn bdrv_aio_flush_co_entry(void *opaque) { BlockAIOCBCoroutine *acb = opaque; BlockDriverState *bs = acb->common.bs; acb->req.error = bdrv_co_flush(bs); acb->bh = aio_bh_new(bdrv_get_aio_context(bs), bdrv_co_em_bh, acb); qemu_bh_schedule(acb->bh); }
false
qemu
0b5a24454fc551f0294fe93821e8c643214a55f5
static void coroutine_fn bdrv_aio_flush_co_entry(void *opaque) { BlockAIOCBCoroutine *acb = opaque; BlockDriverState *bs = acb->common.bs; acb->req.error = bdrv_co_flush(bs); acb->bh = aio_bh_new(bdrv_get_aio_context(bs), bdrv_co_em_bh, acb); qemu_bh_schedule(acb->bh); }
{ "code": [], "line_no": [] }
static void VAR_0 bdrv_aio_flush_co_entry(void *opaque) { BlockAIOCBCoroutine *acb = opaque; BlockDriverState *bs = acb->common.bs; acb->req.error = bdrv_co_flush(bs); acb->bh = aio_bh_new(bdrv_get_aio_context(bs), bdrv_co_em_bh, acb); qemu_bh_schedule(acb->bh); }
[ "static void VAR_0 bdrv_aio_flush_co_entry(void *opaque)\n{", "BlockAIOCBCoroutine *acb = opaque;", "BlockDriverState *bs = acb->common.bs;", "acb->req.error = bdrv_co_flush(bs);", "acb->bh = aio_bh_new(bdrv_get_aio_context(bs), bdrv_co_em_bh, acb);", "qemu_bh_schedule(acb->bh);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
19,112
int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode, const char *name, v9fs_synth_read read, v9fs_synth_write write, void *arg) { int ret; V9fsSynthNode *node, *tmp; if (!v9fs_synth_fs) { return EAGAIN; } if (!name...
false
qemu
364031f17932814484657e5551ba12957d993d7e
int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode, const char *name, v9fs_synth_read read, v9fs_synth_write write, void *arg) { int ret; V9fsSynthNode *node, *tmp; if (!v9fs_synth_fs) { return EAGAIN; } if (!name...
{ "code": [], "line_no": [] }
int FUNC_0(V9fsSynthNode *VAR_0, int VAR_1, const char *VAR_2, v9fs_synth_read VAR_3, v9fs_synth_write VAR_4, void *VAR_5) { int VAR_6; V9fsSynthNode *node, *tmp; if (!v9fs_synth_fs) { return EAGAIN; } if (!VAR_2 || (strlen...
[ "int FUNC_0(V9fsSynthNode *VAR_0, int VAR_1,\nconst char *VAR_2, v9fs_synth_read VAR_3,\nv9fs_synth_write VAR_4, void *VAR_5)\n{", "int VAR_6;", "V9fsSynthNode *node, *tmp;", "if (!v9fs_synth_fs) {", "return EAGAIN;", "}", "if (!VAR_2 || (strlen(VAR_2) >= NAME_MAX)) {", "return EINVAL;", "}", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
19,113
static void usage(const char *name) { (printf) ( "Usage: %s [OPTIONS] FILE\n" "QEMU Disk Network Block Device Server\n" "\n" " -h, --help display this help and exit\n" " -V, --version output version information and exit\n" "\n" "Connection properties:\n" " -p, --port=PORT ...
false
qemu
bb628e1af8b8b5ecf6420e50123cb696ee18b09f
static void usage(const char *name) { (printf) ( "Usage: %s [OPTIONS] FILE\n" "QEMU Disk Network Block Device Server\n" "\n" " -h, --help display this help and exit\n" " -V, --version output version information and exit\n" "\n" "Connection properties:\n" " -p, --port=PORT ...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { (printf) ( "Usage: %s [OPTIONS] FILE\n" "QEMU Disk Network Block Device Server\n" "\n" " -h, --help display this help and exit\n" " -V, --version output version information and exit\n" "\n" "Connection properties:\n" " -p, --port=PORT ...
[ "static void FUNC_0(const char *VAR_0)\n{", "(printf) (\n\"Usage: %s [OPTIONS] FILE\\n\"\n\"QEMU Disk Network Block Device Server\\n\"\n\"\\n\"\n\" -h, --help display this help and exit\\n\"\n\" -V, --version output version information and exit\\n\"\n\"\\n\"\n\"Connection properties:\...
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77,...
19,114
static void run_dependent_requests(QCowL2Meta *m) { QCowAIOCB *req; QCowAIOCB *next; /* Take the request off the list of running requests */ if (m->nb_clusters != 0) { LIST_REMOVE(m, next_in_flight); } /* * Restart all dependent requests. * Can't use LIST_FOREACH ...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static void run_dependent_requests(QCowL2Meta *m) { QCowAIOCB *req; QCowAIOCB *next; if (m->nb_clusters != 0) { LIST_REMOVE(m, next_in_flight); } for (req = m->dependent_requests.lh_first; req != NULL; req = next) { next = req->next_depend.le_next; ...
{ "code": [], "line_no": [] }
static void FUNC_0(QCowL2Meta *VAR_0) { QCowAIOCB *req; QCowAIOCB *next; if (VAR_0->nb_clusters != 0) { LIST_REMOVE(VAR_0, next_in_flight); } for (req = VAR_0->dependent_requests.lh_first; req != NULL; req = next) { next = req->next_depend.le_next; ...
[ "static void FUNC_0(QCowL2Meta *VAR_0)\n{", "QCowAIOCB *req;", "QCowAIOCB *next;", "if (VAR_0->nb_clusters != 0) {", "LIST_REMOVE(VAR_0, next_in_flight);", "}", "for (req = VAR_0->dependent_requests.lh_first; req != NULL; req = next) {", "next = req->next_depend.le_next;", "qcow_aio_write_cb(req, 0)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ] ]
19,117
static void vt82c686b_pm_realize(PCIDevice *dev, Error **errp) { VT686PMState *s = DO_UPCAST(VT686PMState, dev, dev); uint8_t *pci_conf; pci_conf = s->dev.config; pci_set_word(pci_conf + PCI_COMMAND, 0); pci_set_word(pci_conf + PCI_STATUS, PCI_STATUS_FAST_BACK | PCI_STATUS_...
false
qemu
9a10bbb4e83b184faef6fa744396a6775283c0aa
static void vt82c686b_pm_realize(PCIDevice *dev, Error **errp) { VT686PMState *s = DO_UPCAST(VT686PMState, dev, dev); uint8_t *pci_conf; pci_conf = s->dev.config; pci_set_word(pci_conf + PCI_COMMAND, 0); pci_set_word(pci_conf + PCI_STATUS, PCI_STATUS_FAST_BACK | PCI_STATUS_...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1) { VT686PMState *s = DO_UPCAST(VT686PMState, VAR_0, VAR_0); uint8_t *pci_conf; pci_conf = s->VAR_0.config; pci_set_word(pci_conf + PCI_COMMAND, 0); pci_set_word(pci_conf + PCI_STATUS, PCI_STATUS_FAST_BACK | PCI_STATUS_DEVSE...
[ "static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{", "VT686PMState *s = DO_UPCAST(VT686PMState, VAR_0, VAR_0);", "uint8_t *pci_conf;", "pci_conf = s->VAR_0.config;", "pci_set_word(pci_conf + PCI_COMMAND, 0);", "pci_set_word(pci_conf + PCI_STATUS, PCI_STATUS_FAST_BACK |\nPCI_STATUS_DEVSEL_MEDIUM);", ...
[ 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 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], ...
19,118
static int load_refcount_block(BlockDriverState *bs, int64_t refcount_block_offset, void **refcount_block) { BDRVQcow2State *s = bs->opaque; int ret; BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_LOAD); ret = qcow2_cache_get(bs, s->refcount...
false
qemu
9be385980d37e8f4fd33f605f5fb1c3d144170a8
static int load_refcount_block(BlockDriverState *bs, int64_t refcount_block_offset, void **refcount_block) { BDRVQcow2State *s = bs->opaque; int ret; BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_LOAD); ret = qcow2_cache_get(bs, s->refcount...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, void **VAR_2) { BDRVQcow2State *s = VAR_0->opaque; int VAR_3; BLKDBG_EVENT(VAR_0->file, BLKDBG_REFBLOCK_LOAD); VAR_3 = qcow2_cache_get(VAR_0, s->refcount_block_cache, VAR_1, ...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nint64_t VAR_1,\nvoid **VAR_2)\n{", "BDRVQcow2State *s = VAR_0->opaque;", "int VAR_3;", "BLKDBG_EVENT(VAR_0->file, BLKDBG_REFBLOCK_LOAD);", "VAR_3 = qcow2_cache_get(VAR_0, s->refcount_block_cache, VAR_1,\nVAR_2);", "return VAR_3;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ] ]
19,121
static inline void gen_branch_cond(DisasContext *ctx, TCGCond cond, TCGv r1, TCGv r2, int16_t address) { int jumpLabel; jumpLabel = gen_new_label(); tcg_gen_brcond_tl(cond, r1, r2, jumpLabel); gen_goto_tb(ctx, 1, ctx->next_pc); gen_set_label(jumpLabel); ...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static inline void gen_branch_cond(DisasContext *ctx, TCGCond cond, TCGv r1, TCGv r2, int16_t address) { int jumpLabel; jumpLabel = gen_new_label(); tcg_gen_brcond_tl(cond, r1, r2, jumpLabel); gen_goto_tb(ctx, 1, ctx->next_pc); gen_set_label(jumpLabel); ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, TCGCond VAR_1, TCGv VAR_2, TCGv VAR_3, int16_t VAR_4) { int VAR_5; VAR_5 = gen_new_label(); tcg_gen_brcond_tl(VAR_1, VAR_2, VAR_3, VAR_5); gen_goto_tb(VAR_0, 1, VAR_0->next_pc); gen_set_label(VAR_5); ge...
[ "static inline void FUNC_0(DisasContext *VAR_0, TCGCond VAR_1, TCGv VAR_2,\nTCGv VAR_3, int16_t VAR_4)\n{", "int VAR_5;", "VAR_5 = gen_new_label();", "tcg_gen_brcond_tl(VAR_1, VAR_2, VAR_3, VAR_5);", "gen_goto_tb(VAR_0, 1, VAR_0->next_pc);", "gen_set_label(VAR_5);", "gen_goto_tb(VAR_0, 0, VAR_0->pc + VA...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ] ]
19,123
void qmp_drive_mirror(const char *device, const char *target, bool has_format, const char *format, bool has_node_name, const char *node_name, bool has_replaces, const char *replaces, enum MirrorSyncMode sync, ...
false
qemu
5a7e7a0bad17c96e03f55ed7019e2d7545e21a96
void qmp_drive_mirror(const char *device, const char *target, bool has_format, const char *format, bool has_node_name, const char *node_name, bool has_replaces, const char *replaces, enum MirrorSyncMode sync, ...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, const char *VAR_1, bool VAR_2, const char *VAR_3, bool VAR_4, const char *VAR_5, bool VAR_6, const char *VAR_7, enum MirrorSyncMode VAR_8, bool VAR_9, enum NewImageMode VAR_1...
[ "void FUNC_0(const char *VAR_0, const char *VAR_1,\nbool VAR_2, const char *VAR_3,\nbool VAR_4, const char *VAR_5,\nbool VAR_6, const char *VAR_7,\nenum MirrorSyncMode VAR_8,\nbool VAR_9, enum NewImageMode VAR_10,\nbool VAR_11, int64_t VAR_12,\nbool VAR_13, uint32_t VAR_14,\nbool VAR_15, int64_t VAR_16,\nbool 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, 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...