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
19,124
void ff_mqc_init_contexts(MqcState *mqc) { int i; memset(mqc->cx_states, 0, sizeof(mqc->cx_states)); mqc->cx_states[MQC_CX_UNI] = 2 * 46; mqc->cx_states[MQC_CX_RL] = 2 * 3; mqc->cx_states[0] = 2 * 4; for (i = 0; i < 47; i++) { ff_mqc_qe[2 * i] = ff_mqc_qe...
false
FFmpeg
f56fe04de3cc4cdc6b618dfe7a3506fc2ea79795
void ff_mqc_init_contexts(MqcState *mqc) { int i; memset(mqc->cx_states, 0, sizeof(mqc->cx_states)); mqc->cx_states[MQC_CX_UNI] = 2 * 46; mqc->cx_states[MQC_CX_RL] = 2 * 3; mqc->cx_states[0] = 2 * 4; for (i = 0; i < 47; i++) { ff_mqc_qe[2 * i] = ff_mqc_qe...
{ "code": [], "line_no": [] }
void FUNC_0(MqcState *VAR_0) { int VAR_1; memset(VAR_0->cx_states, 0, sizeof(VAR_0->cx_states)); VAR_0->cx_states[MQC_CX_UNI] = 2 * 46; VAR_0->cx_states[MQC_CX_RL] = 2 * 3; VAR_0->cx_states[0] = 2 * 4; for (VAR_1 = 0; VAR_1 < 47; VAR_1++) { ff_mqc_qe[2 * VAR_1] = ...
[ "void FUNC_0(MqcState *VAR_0)\n{", "int VAR_1;", "memset(VAR_0->cx_states, 0, sizeof(VAR_0->cx_states));", "VAR_0->cx_states[MQC_CX_UNI] = 2 * 46;", "VAR_0->cx_states[MQC_CX_RL] = 2 * 3;", "VAR_0->cx_states[0] = 2 * 4;", "for (VAR_1 = 0; VAR_1 < 47; VAR_1++) {", "ff_mqc_qe[2 * VAR_1] =\n...
[ 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 ] ]
19,125
int monitor_read_bdrv_key(BlockDriverState *bs) { char password[256]; int i; if (!bdrv_is_encrypted(bs)) return 0; term_printf("%s (%s) is encrypted.\n", bdrv_get_device_name(bs), bdrv_get_encrypted_filename(bs)); for(i = 0; i < 3; i++) { monitor_readline...
false
qemu
bb5fc20f7c1c65e95030da3629dd0d7a0cce38cd
int monitor_read_bdrv_key(BlockDriverState *bs) { char password[256]; int i; if (!bdrv_is_encrypted(bs)) return 0; term_printf("%s (%s) is encrypted.\n", bdrv_get_device_name(bs), bdrv_get_encrypted_filename(bs)); for(i = 0; i < 3; i++) { monitor_readline...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0) { char VAR_1[256]; int VAR_2; if (!bdrv_is_encrypted(VAR_0)) return 0; term_printf("%s (%s) is encrypted.\n", bdrv_get_device_name(VAR_0), bdrv_get_encrypted_filename(VAR_0)); for(VAR_2 = 0; VAR_2 < 3; VAR_2++) { monito...
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "char VAR_1[256];", "int VAR_2;", "if (!bdrv_is_encrypted(VAR_0))\nreturn 0;", "term_printf(\"%s (%s) is encrypted.\\n\", bdrv_get_device_name(VAR_0),\nbdrv_get_encrypted_filename(VAR_0));", "for(VAR_2 = 0; VAR_2 < 3; VAR_2++) {", "monitor_readline(\"Password: \...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
19,127
int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res) { if (bs->drv->bdrv_check == NULL) { return -ENOTSUP; } memset(res, 0, sizeof(*res)); return bs->drv->bdrv_check(bs, res); }
false
qemu
4534ff5426afeeae5238ba10a696cafa9a0168ee
int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res) { if (bs->drv->bdrv_check == NULL) { return -ENOTSUP; } memset(res, 0, sizeof(*res)); return bs->drv->bdrv_check(bs, res); }
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1) { if (VAR_0->drv->FUNC_0 == NULL) { return -ENOTSUP; } memset(VAR_1, 0, sizeof(*VAR_1)); return VAR_0->drv->FUNC_0(VAR_0, VAR_1); }
[ "int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1)\n{", "if (VAR_0->drv->FUNC_0 == NULL) {", "return -ENOTSUP;", "}", "memset(VAR_1, 0, sizeof(*VAR_1));", "return VAR_0->drv->FUNC_0(VAR_0, VAR_1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ] ]
19,131
static void vscsi_transfer_data(SCSIRequest *sreq, uint32_t len) { VSCSIState *s = VIO_SPAPR_VSCSI_DEVICE(sreq->bus->qbus.parent); vscsi_req *req = sreq->hba_private; uint8_t *buf; int rc = 0; DPRINTF("VSCSI: SCSI xfer complete tag=0x%x len=0x%x, req=%p\n", sreq->tag, len, req);...
false
qemu
eda470e41a753070e057380a9a71e2ad7347f667
static void vscsi_transfer_data(SCSIRequest *sreq, uint32_t len) { VSCSIState *s = VIO_SPAPR_VSCSI_DEVICE(sreq->bus->qbus.parent); vscsi_req *req = sreq->hba_private; uint8_t *buf; int rc = 0; DPRINTF("VSCSI: SCSI xfer complete tag=0x%x len=0x%x, req=%p\n", sreq->tag, len, req);...
{ "code": [], "line_no": [] }
static void FUNC_0(SCSIRequest *VAR_0, uint32_t VAR_1) { VSCSIState *s = VIO_SPAPR_VSCSI_DEVICE(VAR_0->bus->qbus.parent); vscsi_req *req = VAR_0->hba_private; uint8_t *buf; int VAR_2 = 0; DPRINTF("VSCSI: SCSI xfer complete tag=0x%x VAR_1=0x%x, req=%p\n", VAR_0->tag, VAR_1, req);...
[ "static void FUNC_0(SCSIRequest *VAR_0, uint32_t VAR_1)\n{", "VSCSIState *s = VIO_SPAPR_VSCSI_DEVICE(VAR_0->bus->qbus.parent);", "vscsi_req *req = VAR_0->hba_private;", "uint8_t *buf;", "int VAR_2 = 0;", "DPRINTF(\"VSCSI: SCSI xfer complete tag=0x%x VAR_1=0x%x, req=%p\\n\",\nVAR_0->tag, VAR_1, req);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
19,132
static inline void cris_alu_m_alloc_temps(TCGv *t) { t[0] = tcg_temp_new(TCG_TYPE_TL); t[1] = tcg_temp_new(TCG_TYPE_TL); }
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static inline void cris_alu_m_alloc_temps(TCGv *t) { t[0] = tcg_temp_new(TCG_TYPE_TL); t[1] = tcg_temp_new(TCG_TYPE_TL); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGv *VAR_0) { VAR_0[0] = tcg_temp_new(TCG_TYPE_TL); VAR_0[1] = tcg_temp_new(TCG_TYPE_TL); }
[ "static inline void FUNC_0(TCGv *VAR_0)\n{", "VAR_0[0] = tcg_temp_new(TCG_TYPE_TL);", "VAR_0[1] = tcg_temp_new(TCG_TYPE_TL);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
19,134
static void gen_spr_40x (CPUPPCState *env) { /* Cache */ /* XXX : not implemented */ spr_register(env, SPR_40x_DCCR, "DCCR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); /* XXX : not implemented */ spr_reg...
false
qemu
2662a059aa2affddfbe42e78b11c802cf30a970f
static void gen_spr_40x (CPUPPCState *env) { spr_register(env, SPR_40x_DCCR, "DCCR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); spr_register(env, SPR_40x_DCWR, "DCWR", SPR_NOACCESS, ...
{ "code": [], "line_no": [] }
static void FUNC_0 (CPUPPCState *VAR_0) { spr_register(VAR_0, SPR_40x_DCCR, "DCCR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); spr_register(VAR_0, SPR_40x_DCWR, "DCWR", SPR_NOACCESS,...
[ "static void FUNC_0 (CPUPPCState *VAR_0)\n{", "spr_register(VAR_0, SPR_40x_DCCR, \"DCCR\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);", "spr_register(VAR_0, SPR_40x_DCWR, \"DCWR\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);", "spr...
[ 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 ], [ 9, 11, 13, 15 ], [ 19, 21, 23, 25 ], [ 29, 31, 33, 35 ], [ 39, 41, 43, 45 ], [ 49, 51, 53, 55 ], [ 57, 59, 61, 63 ], [ 67, 69, 71, 73 ], [ 77, 7...
19,135
static av_always_inline void filter_mb_dir(H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int dir) { MpegEncContext * const s = &h->s; int edge; cons...
false
FFmpeg
9873ae0d444a0566dc65a68ac7663a2b994b79b3
static av_always_inline void filter_mb_dir(H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int dir) { MpegEncContext * const s = &h->s; int edge; cons...
{ "code": [], "line_no": [] }
static av_always_inline void FUNC_0(H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int dir) { MpegEncContext * const s = &h->s; int VAR_0; const int ...
[ "static av_always_inline void FUNC_0(H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int dir) {", "MpegEncContext * const s = &h->s;", "int VAR_0;", "const...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 27 ], [ 31 ], [ 35, 37, 39 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ], [ 63 ], [...
19,136
static void char_socket_finalize(Object *obj) { Chardev *chr = CHARDEV(obj); SocketChardev *s = SOCKET_CHARDEV(obj); tcp_chr_free_connection(chr); if (s->reconnect_timer) { g_source_remove(s->reconnect_timer); s->reconnect_timer = 0; } qapi_free_SocketAddressLegacy(s...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
static void char_socket_finalize(Object *obj) { Chardev *chr = CHARDEV(obj); SocketChardev *s = SOCKET_CHARDEV(obj); tcp_chr_free_connection(chr); if (s->reconnect_timer) { g_source_remove(s->reconnect_timer); s->reconnect_timer = 0; } qapi_free_SocketAddressLegacy(s...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { Chardev *chr = CHARDEV(VAR_0); SocketChardev *s = SOCKET_CHARDEV(VAR_0); tcp_chr_free_connection(chr); if (s->reconnect_timer) { g_source_remove(s->reconnect_timer); s->reconnect_timer = 0; } qapi_free_SocketAddressLegacy(s->addr);...
[ "static void FUNC_0(Object *VAR_0)\n{", "Chardev *chr = CHARDEV(VAR_0);", "SocketChardev *s = SOCKET_CHARDEV(VAR_0);", "tcp_chr_free_connection(chr);", "if (s->reconnect_timer) {", "g_source_remove(s->reconnect_timer);", "s->reconnect_timer = 0;", "}", "qapi_free_SocketAddressLegacy(s->addr);", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47...
19,138
int kvm_sw_breakpoints_active(CPUState *env) { return !TAILQ_EMPTY(&env->kvm_state->kvm_sw_breakpoints); }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
int kvm_sw_breakpoints_active(CPUState *env) { return !TAILQ_EMPTY(&env->kvm_state->kvm_sw_breakpoints); }
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0) { return !TAILQ_EMPTY(&VAR_0->kvm_state->kvm_sw_breakpoints); }
[ "int FUNC_0(CPUState *VAR_0)\n{", "return !TAILQ_EMPTY(&VAR_0->kvm_state->kvm_sw_breakpoints);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
19,139
static int usbredir_handle_status(USBRedirDevice *dev, int status, int actual_len) { switch (status) { case usb_redir_success: return actual_len; case usb_redir_stall: return USB_RET_STALL; case usb_redir_cancelled: WARNING("returni...
false
qemu
181133404f520fab40a3ad40d935d91cf3cf546c
static int usbredir_handle_status(USBRedirDevice *dev, int status, int actual_len) { switch (status) { case usb_redir_success: return actual_len; case usb_redir_stall: return USB_RET_STALL; case usb_redir_cancelled: WARNING("returni...
{ "code": [], "line_no": [] }
static int FUNC_0(USBRedirDevice *VAR_0, int VAR_1, int VAR_2) { switch (VAR_1) { case usb_redir_success: return VAR_2; case usb_redir_stall: return USB_RET_STALL; case usb_redir_cancelled: WARNING("returning cancelled packet to HC?...
[ "static int FUNC_0(USBRedirDevice *VAR_0,\nint VAR_1, int VAR_2)\n{", "switch (VAR_1) {", "case usb_redir_success:\nreturn VAR_2;", "case usb_redir_stall:\nreturn USB_RET_STALL;", "case usb_redir_cancelled:\nWARNING(\"returning cancelled packet to HC?\\n\");", "return USB_RET_NAK;", "case usb_redir_inva...
[ 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 ] ]
19,140
void ich9_pm_init(PCIDevice *lpc_pci, ICH9LPCPMRegs *pm, qemu_irq sci_irq, qemu_irq cmos_s3) { memory_region_init(&pm->io, "ich9-pm", ICH9_PMIO_SIZE); memory_region_set_enabled(&pm->io, false); memory_region_add_subregion(pci_address_space_io(lpc_pci), ...
false
qemu
560e63965232e37d1916a447125cf91c18a96930
void ich9_pm_init(PCIDevice *lpc_pci, ICH9LPCPMRegs *pm, qemu_irq sci_irq, qemu_irq cmos_s3) { memory_region_init(&pm->io, "ich9-pm", ICH9_PMIO_SIZE); memory_region_set_enabled(&pm->io, false); memory_region_add_subregion(pci_address_space_io(lpc_pci), ...
{ "code": [], "line_no": [] }
void FUNC_0(PCIDevice *VAR_0, ICH9LPCPMRegs *VAR_1, qemu_irq VAR_2, qemu_irq VAR_3) { memory_region_init(&VAR_1->io, "ich9-VAR_1", ICH9_PMIO_SIZE); memory_region_set_enabled(&VAR_1->io, false); memory_region_add_subregion(pci_address_space_io(VAR_0), 0...
[ "void FUNC_0(PCIDevice *VAR_0, ICH9LPCPMRegs *VAR_1,\nqemu_irq VAR_2, qemu_irq VAR_3)\n{", "memory_region_init(&VAR_1->io, \"ich9-VAR_1\", ICH9_PMIO_SIZE);", "memory_region_set_enabled(&VAR_1->io, false);", "memory_region_add_subregion(pci_address_space_io(VAR_0),\n0, &VAR_1->io);", "acpi_pm_tmr_init(&VAR_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 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ] ]
19,141
static int xen_pt_exp_rom_bar_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint32_t *val, uint32_t dev_value, uint32_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; XenPTRegion *base = NULL; PCIDevice *d =...
false
qemu
e2779de053b64f023de382fd87b3596613d47d1e
static int xen_pt_exp_rom_bar_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint32_t *val, uint32_t dev_value, uint32_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; XenPTRegion *base = NULL; PCIDevice *d =...
{ "code": [], "line_no": [] }
static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1, uint32_t *VAR_2, uint32_t VAR_3, uint32_t VAR_4) { XenPTRegInfo *reg = VAR_1->reg; XenPTRegion *base = NULL; PCIDevice *d = (PCIDevice *)&VAR_0->dev; u...
[ "static int FUNC_0(XenPCIPassthroughState *VAR_0,\nXenPTReg *VAR_1, uint32_t *VAR_2,\nuint32_t VAR_3, uint32_t VAR_4)\n{", "XenPTRegInfo *reg = VAR_1->reg;", "XenPTRegion *base = NULL;", "PCIDevice *d = (PCIDevice *)&VAR_0->dev;", "uint32_t writable_mask = 0;", "uint32_t throughable_mask = get_throughable...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 37 ], [ 43 ], [ 45 ], [ 51 ], [ 55 ], [ 57 ] ]
19,143
static int tcg_match_xori(TCGType type, tcg_target_long val) { if ((s390_facilities & FACILITY_EXT_IMM) == 0) { return 0; } if (type == TCG_TYPE_I32) { /* All 32-bit XORs can be performed with 1 48-bit insn. */ return 1; } /* Look for negative values. These are...
false
qemu
e42349cbd6afd1f6838e719184e3d07190c02de7
static int tcg_match_xori(TCGType type, tcg_target_long val) { if ((s390_facilities & FACILITY_EXT_IMM) == 0) { return 0; } if (type == TCG_TYPE_I32) { return 1; } if (val < 0 && val == (int32_t)val) { return 0; } return 1; }
{ "code": [], "line_no": [] }
static int FUNC_0(TCGType VAR_0, tcg_target_long VAR_1) { if ((s390_facilities & FACILITY_EXT_IMM) == 0) { return 0; } if (VAR_0 == TCG_TYPE_I32) { return 1; } if (VAR_1 < 0 && VAR_1 == (int32_t)VAR_1) { return 0; } return 1; }
[ "static int FUNC_0(TCGType VAR_0, tcg_target_long VAR_1)\n{", "if ((s390_facilities & FACILITY_EXT_IMM) == 0) {", "return 0;", "}", "if (VAR_0 == TCG_TYPE_I32) {", "return 1;", "}", "if (VAR_1 < 0 && VAR_1 == (int32_t)VAR_1) {", "return 0;", "}", "return 1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
19,144
static int block_crypto_open_generic(QCryptoBlockFormat format, QemuOptsList *opts_spec, BlockDriverState *bs, QDict *options, int flags, ...
false
qemu
306a06e5f766acaf26b71397a5692c65b65a61c7
static int block_crypto_open_generic(QCryptoBlockFormat format, QemuOptsList *opts_spec, BlockDriverState *bs, QDict *options, int flags, ...
{ "code": [], "line_no": [] }
static int FUNC_0(QCryptoBlockFormat VAR_0, QemuOptsList *VAR_1, BlockDriverState *VAR_2, QDict *VAR_3, int VAR_4, Error **VAR_5) ...
[ "static int FUNC_0(QCryptoBlockFormat VAR_0,\nQemuOptsList *VAR_1,\nBlockDriverState *VAR_2,\nQDict *VAR_3,\nint VAR_4,\nError **VAR_5)\n{", "BlockCrypto *crypto = VAR_2->opaque;", "QemuOpts *opts = NULL;", "Error *local_err = NULL;", "int VAR_6 = -EINVAL;", "QCryptoBlockOpenOptions *open_opts = 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 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
19,145
static int dec_21154_initfn(PCIDevice *dev) { int rc; rc = pci_bridge_initfn(dev); if (rc < 0) { return rc; } pci_config_set_vendor_id(dev->config, PCI_VENDOR_ID_DEC); pci_config_set_device_id(dev->config, PCI_DEVICE_ID_DEC_21154); return 0; }
false
qemu
e7b9bc3e89152f14f426fa4d150d2a6ca02583c1
static int dec_21154_initfn(PCIDevice *dev) { int rc; rc = pci_bridge_initfn(dev); if (rc < 0) { return rc; } pci_config_set_vendor_id(dev->config, PCI_VENDOR_ID_DEC); pci_config_set_device_id(dev->config, PCI_DEVICE_ID_DEC_21154); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { int VAR_1; VAR_1 = pci_bridge_initfn(VAR_0); if (VAR_1 < 0) { return VAR_1; } pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_DEC); pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_DEC_21154); return 0; }
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "int VAR_1;", "VAR_1 = pci_bridge_initfn(VAR_0);", "if (VAR_1 < 0) {", "return VAR_1;", "}", "pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_DEC);", "pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_DEC_21154);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
19,146
matroska_ebmlnum_uint (uint8_t *data, uint32_t size, uint64_t *num) { int len_mask = 0x80, read = 1, n = 1, num_ffs = 0; uint64_t total; if (size <= 0) return AVERROR_INVALIDDATA; total = data[0]; while (read <= 8 && !(total & len_...
false
FFmpeg
dcb2fb79b731d64eb3c268b9413b75f506861138
matroska_ebmlnum_uint (uint8_t *data, uint32_t size, uint64_t *num) { int len_mask = 0x80, read = 1, n = 1, num_ffs = 0; uint64_t total; if (size <= 0) return AVERROR_INVALIDDATA; total = data[0]; while (read <= 8 && !(total & len_...
{ "code": [], "line_no": [] }
FUNC_0 (uint8_t *VAR_0, uint32_t VAR_1, uint64_t *VAR_2) { int VAR_3 = 0x80, VAR_4 = 1, VAR_5 = 1, VAR_6 = 0; uint64_t total; if (VAR_1 <= 0) return AVERROR_INVALIDDATA; total = VAR_0[0]; while (VAR_4 <= 8 && !(total & VAR_3)) { ...
[ "FUNC_0 (uint8_t *VAR_0,\nuint32_t VAR_1,\nuint64_t *VAR_2)\n{", "int VAR_3 = 0x80, VAR_4 = 1, VAR_5 = 1, VAR_6 = 0;", "uint64_t total;", "if (VAR_1 <= 0)\nreturn AVERROR_INVALIDDATA;", "total = VAR_0[0];", "while (VAR_4 <= 8 && !(total & VAR_3)) {", "VAR_4++;", "VAR_3 >>= 1;", "}", "if (VAR_4 >...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [...
19,147
static PayloadContext *vorbis_new_extradata(void) { return av_mallocz(sizeof(PayloadContext)); }
false
FFmpeg
202a6697ba54293235ce2d7bd5724f4f461e417f
static PayloadContext *vorbis_new_extradata(void) { return av_mallocz(sizeof(PayloadContext)); }
{ "code": [], "line_no": [] }
static PayloadContext *FUNC_0(void) { return av_mallocz(sizeof(PayloadContext)); }
[ "static PayloadContext *FUNC_0(void)\n{", "return av_mallocz(sizeof(PayloadContext));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
19,148
static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowSpectrumContext *s = ctx->priv; AVFrame *outpicref = s->outpicref; int ret, plane, x, y, z = s->orientation == VERTICAL ? s->h : s->w; ...
true
FFmpeg
b3c6e89d4871d4f6afada96d8695e0ef08c6f02b
static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowSpectrumContext *s = ctx->priv; AVFrame *outpicref = s->outpicref; int ret, plane, x, y, z = s->orientation == VERTICAL ? s->h : s->w; ...
{ "code": [ " s->combine_buffer[y] += s->color_buffer[0][y];", " for (x = 1; x < s->nb_display_channels; x++) {" ], "line_no": [ 31, 33 ] }
static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1) { AVFilterContext *ctx = VAR_0->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowSpectrumContext *s = ctx->priv; AVFrame *outpicref = s->outpicref; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6 = s->orientation == VERTICAL ? s->h : s->w; ...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "AVFilterLink *outlink = ctx->outputs[0];", "ShowSpectrumContext *s = ctx->priv;", "AVFrame *outpicref = s->outpicref;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6 = s->orientation == VERTICAL ? s->h : s->w;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55,...
19,149
init_disasm (struct disassemble_info *info) { const struct s390_opcode *opcode; const struct s390_opcode *opcode_end; memset (opc_index, 0, sizeof (opc_index)); opcode_end = s390_opcodes + s390_num_opcodes; for (opcode = s390_opcodes; opcode < opcode_end; opcode++) { opc_index[(int) opcode...
true
qemu
02a2ad217b0de16cc6c4f36fe325907cdbe7766b
init_disasm (struct disassemble_info *info) { const struct s390_opcode *opcode; const struct s390_opcode *opcode_end; memset (opc_index, 0, sizeof (opc_index)); opcode_end = s390_opcodes + s390_num_opcodes; for (opcode = s390_opcodes; opcode < opcode_end; opcode++) { opc_index[(int) opcode...
{ "code": [ " const struct s390_opcode *opcode;", " const struct s390_opcode *opcode_end;", " opcode_end = s390_opcodes + s390_num_opcodes;", " for (opcode = s390_opcodes; opcode < opcode_end; opcode++)", " opc_index[(int) opcode->opcode[0]] = opcode - s390_opcodes;", " while ((o...
FUNC_0 (struct disassemble_info *VAR_0) { const struct s390_opcode *VAR_1; const struct s390_opcode *VAR_2; memset (opc_index, 0, sizeof (opc_index)); VAR_2 = s390_opcodes + s390_num_opcodes; for (VAR_1 = s390_opcodes; VAR_1 < VAR_2; VAR_1++) { opc_index[(int) VAR_1->VAR_1[0]] = VAR_1 - s3...
[ "FUNC_0 (struct disassemble_info *VAR_0)\n{", "const struct s390_opcode *VAR_1;", "const struct s390_opcode *VAR_2;", "memset (opc_index, 0, sizeof (opc_index));", "VAR_2 = s390_opcodes + s390_num_opcodes;", "for (VAR_1 = s390_opcodes; VAR_1 < VAR_2; VAR_1++)", "{", "opc_index[(int) VAR_1->VAR_1[0]] =...
[ 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 31, 33, 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49, 51 ], ...
19,150
int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec) { int ret= -1; /* If there is a user-supplied mutex locking routine, call it. */ if (ff_lockmgr_cb) { if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) return -1; } entangled_thread_counter+...
true
FFmpeg
82eac2f3216534c065c5023e5599720bd17bed26
int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec) { int ret= -1; if (ff_lockmgr_cb) { if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) return -1; } entangled_thread_counter++; if(entangled_thread_counter != 1){ av_log(avctx,...
{ "code": [ " if (((avctx->coded_width || avctx->coded_height)", " && av_image_check_size(avctx->coded_width, avctx->coded_height, 0, avctx))", " || avctx->channels > SANE_NB_CHANNELS) {" ], "line_no": [ 71, 73, 75 ] }
int VAR_0 avcodec_open(AVCodecContext *avctx, AVCodec *codec) { int ret= -1; if (ff_lockmgr_cb) { if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) return -1; } entangled_thread_counter++; if(entangled_thread_counter != 1){ av_log(avctx, AV_LOG_ERROR,...
[ "int VAR_0 avcodec_open(AVCodecContext *avctx, AVCodec *codec)\n{", "int ret= -1;", "if (ff_lockmgr_cb) {", "if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN))\nreturn -1;", "}", "entangled_thread_counter++;", "if(entangled_thread_counter != 1){", "av_log(avctx, AV_LOG_ERROR, \"insufficient thread lo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 5...
19,151
static inline void RENAME(rgb15to24)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint16_t *end; #ifdef HAVE_MMX const uint16_t *mm_end; #endif uint8_t *d = (uint8_t *)dst; const uint16_t *s = (uint16_t *)src; end = s + src_size/2; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*s):...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
static inline void RENAME(rgb15to24)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint16_t *end; #ifdef HAVE_MMX const uint16_t *mm_end; #endif uint8_t *d = (uint8_t *)dst; const uint16_t *s = (uint16_t *)src; end = s + src_size/2; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*s):...
{ "code": [ "static inline void RENAME(rgb15to24)(const uint8_t *src, uint8_t *dst, unsigned src_size)" ], "line_no": [ 1 ] }
static inline void FUNC_0(rgb15to24)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint16_t *VAR_0; #ifdef HAVE_MMX const uint16_t *mm_end; #endif uint8_t *d = (uint8_t *)dst; const uint16_t *VAR_1 = (uint16_t *)src; VAR_0 = VAR_1 + src_size/2; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %...
[ "static inline void FUNC_0(rgb15to24)(const uint8_t *src, uint8_t *dst, unsigned src_size)\n{", "const uint16_t *VAR_0;", "#ifdef HAVE_MMX\nconst uint16_t *mm_end;", "#endif\nuint8_t *d = (uint8_t *)dst;", "const uint16_t *VAR_1 = (uint16_t *)src;", "VAR_0 = VAR_1 + src_size/2;", "#ifdef HAVE_MMX\n__asm...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25, 27 ], [ 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61,...
19,152
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) { ...
true
qemu
d451008e0fdf7fb817c791397e7999d5f3687e58
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": [ " if ((data & 0x7fff0000) == 0x10000) {", " if (data & 0x80000000U &&", " vdev->pdev.cap_present & QEMU_PCI_CAP_MSIX) {", " trace_vfio_rtl8168_window_quirk_write_table(", " memory_region_name(&quirk->mem),", " ...
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 & 0x80000000U ...
[ "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 & 0x80000000U &&\nvdev->pdev.cap_present & QEMU_PCI_CAP_MSIX) {", "tra...
[ 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 25, 27, 29 ], [ 33, 35, 37, 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59,...
19,153
void connection_destroy(void *opaque) { Connection *conn = opaque; g_queue_foreach(&conn->primary_list, packet_destroy, NULL); g_queue_free(&conn->primary_list); g_queue_foreach(&conn->secondary_list, packet_destroy, NULL); g_queue_free(&conn->secondary_list); g_slice_free(Connection, c...
true
qemu
0e79668e1ffcfabb259bea6c2a2bae00a6b27252
void connection_destroy(void *opaque) { Connection *conn = opaque; g_queue_foreach(&conn->primary_list, packet_destroy, NULL); g_queue_free(&conn->primary_list); g_queue_foreach(&conn->secondary_list, packet_destroy, NULL); g_queue_free(&conn->secondary_list); g_slice_free(Connection, c...
{ "code": [ " g_queue_free(&conn->primary_list);", " g_queue_free(&conn->secondary_list);" ], "line_no": [ 11, 15 ] }
void FUNC_0(void *VAR_0) { Connection *conn = VAR_0; g_queue_foreach(&conn->primary_list, packet_destroy, NULL); g_queue_free(&conn->primary_list); g_queue_foreach(&conn->secondary_list, packet_destroy, NULL); g_queue_free(&conn->secondary_list); g_slice_free(Connection, conn); }
[ "void FUNC_0(void *VAR_0)\n{", "Connection *conn = VAR_0;", "g_queue_foreach(&conn->primary_list, packet_destroy, NULL);", "g_queue_free(&conn->primary_list);", "g_queue_foreach(&conn->secondary_list, packet_destroy, NULL);", "g_queue_free(&conn->secondary_list);", "g_slice_free(Connection, conn);", "...
[ 0, 0, 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
19,154
static void exynos4210_uart_write(void *opaque, hwaddr offset, uint64_t val, unsigned size) { Exynos4210UartState *s = (Exynos4210UartState *)opaque; uint8_t ch; PRINT_DEBUG_EXTEND("UART%d: <0x%04x> %s <- 0x%08llx\n", s->channel, offset, exynos4210_uart_regname...
true
qemu
6ab3fc32ea640026726bc5f9f4db622d0954fb8a
static void exynos4210_uart_write(void *opaque, hwaddr offset, uint64_t val, unsigned size) { Exynos4210UartState *s = (Exynos4210UartState *)opaque; uint8_t ch; PRINT_DEBUG_EXTEND("UART%d: <0x%04x> %s <- 0x%08llx\n", s->channel, offset, exynos4210_uart_regname...
{ "code": [ " qemu_chr_fe_write(s->chr, &ch, 1);", " qemu_chr_fe_write(s->chr, &ch, 1);", " qemu_chr_fe_write(s->chr, &ch, 1);", " qemu_chr_fe_write(s->chr, &ch, 1);", " qemu_chr_fe_write(s->chr, &ch, 1);", " qemu_chr_fe_write(s...
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { Exynos4210UartState *s = (Exynos4210UartState *)VAR_0; uint8_t ch; PRINT_DEBUG_EXTEND("UART%d: <0x%04x> %s <- 0x%08llx\n", s->channel, VAR_1, exynos4210_uart_regname(VAR_1), (long l...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "Exynos4210UartState *s = (Exynos4210UartState *)VAR_0;", "uint8_t ch;", "PRINT_DEBUG_EXTEND(\"UART%d: <0x%04x> %s <- 0x%08llx\\n\", s->channel,\nVAR_1, exynos4210_uart_regname(VAR_1), (long long unsigned int)VAR_2);", "swi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23, 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
19,155
static void spitz_i2c_setup(PXA2xxState *cpu) { /* Attach the CPU on one end of our I2C bus. */ I2CBus *bus = pxa2xx_i2c_bus(cpu->i2c[0]); DeviceState *wm; /* Attach a WM8750 to the bus */ wm = i2c_create_slave(bus, "wm8750", 0); spitz_wm8750_addr(wm, 0, 0); qdev_connect_gpio_...
true
qemu
f3c7d0389fe8a2792fd4c1cf151b885de03c8f62
static void spitz_i2c_setup(PXA2xxState *cpu) { I2CBus *bus = pxa2xx_i2c_bus(cpu->i2c[0]); DeviceState *wm; wm = i2c_create_slave(bus, "wm8750", 0); spitz_wm8750_addr(wm, 0, 0); qdev_connect_gpio_out(cpu->gpio, SPITZ_GPIO_WM, qemu_allocate_irqs(spitz_wm87...
{ "code": [ " qemu_allocate_irqs(spitz_wm8750_addr, wm, 1)[0]);" ], "line_no": [ 25 ] }
static void FUNC_0(PXA2xxState *VAR_0) { I2CBus *bus = pxa2xx_i2c_bus(VAR_0->i2c[0]); DeviceState *wm; wm = i2c_create_slave(bus, "wm8750", 0); spitz_wm8750_addr(wm, 0, 0); qdev_connect_gpio_out(VAR_0->gpio, SPITZ_GPIO_WM, qemu_allocate_irqs(spitz_wm8750_...
[ "static void FUNC_0(PXA2xxState *VAR_0)\n{", "I2CBus *bus = pxa2xx_i2c_bus(VAR_0->i2c[0]);", "DeviceState *wm;", "wm = i2c_create_slave(bus, \"wm8750\", 0);", "spitz_wm8750_addr(wm, 0, 0);", "qdev_connect_gpio_out(VAR_0->gpio, SPITZ_GPIO_WM,\nqemu_allocate_irqs(spitz_wm8750_addr, wm, 1)[0]);", "VAR_0->i...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 11 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
19,157
static void m5206_mbar_writel(void *opaque, target_phys_addr_t offset, uint32_t value) { m5206_mbar_state *s = (m5206_mbar_state *)opaque; int width; offset &= 0x3ff; if (offset > 0x200) { hw_error("Bad MBAR write offset 0x%x", (int)offset); } width...
true
qemu
a32354e206895400d17c3de9a8df1de96d3df289
static void m5206_mbar_writel(void *opaque, target_phys_addr_t offset, uint32_t value) { m5206_mbar_state *s = (m5206_mbar_state *)opaque; int width; offset &= 0x3ff; if (offset > 0x200) { hw_error("Bad MBAR write offset 0x%x", (int)offset); } width...
{ "code": [ " if (offset > 0x200) {", " if (offset > 0x200) {", " if (offset > 0x200) {", " if (offset > 0x200) {", " if (offset > 0x200) {", " if (offset > 0x200) {" ], "line_no": [ 13, 13, 13, 13, 13, 13 ] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { m5206_mbar_state *s = (m5206_mbar_state *)VAR_0; int VAR_3; VAR_1 &= 0x3ff; if (VAR_1 > 0x200) { hw_error("Bad MBAR write VAR_1 0x%x", (int)VAR_1); } VAR_3 = m5206_mbar_widt...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "m5206_mbar_state *s = (m5206_mbar_state *)VAR_0;", "int VAR_3;", "VAR_1 &= 0x3ff;", "if (VAR_1 > 0x200) {", "hw_error(\"Bad MBAR write VAR_1 0x%x\", (int)VAR_1);", "}", "VAR_3 = m5206_mbar_width[VAR_1 >> 2];", "if (VAR...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
19,158
static int adx_decode(ADXContext *c, int16_t *out, int offset, const uint8_t *in, int ch) { ADXChannelState *prev = &c->prev[ch]; GetBitContext gb; int scale = AV_RB16(in); int i; int s0, s1, s2, d; /* check if this is an EOF packet */ if (scale & 0x8000) ...
true
FFmpeg
d23727e0420b9f77f0d4cb28b43819b402f702e5
static int adx_decode(ADXContext *c, int16_t *out, int offset, const uint8_t *in, int ch) { ADXChannelState *prev = &c->prev[ch]; GetBitContext gb; int scale = AV_RB16(in); int i; int s0, s1, s2, d; if (scale & 0x8000) return -1; init_get_bit...
{ "code": [ " s0 = ((d << COEFF_BITS) * scale + c->coeff[0] * s1 + c->coeff[1] * s2) >> COEFF_BITS;" ], "line_no": [ 39 ] }
static int FUNC_0(ADXContext *VAR_0, int16_t *VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4) { ADXChannelState *prev = &VAR_0->prev[VAR_4]; GetBitContext gb; int VAR_5 = AV_RB16(VAR_3); int VAR_6; int VAR_7, VAR_8, VAR_9, VAR_10; if (VAR_5 & 0x8000) ...
[ "static int FUNC_0(ADXContext *VAR_0, int16_t *VAR_1, int VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "ADXChannelState *prev = &VAR_0->prev[VAR_4];", "GetBitContext gb;", "int VAR_5 = AV_RB16(VAR_3);", "int VAR_6;", "int VAR_7, VAR_8, VAR_9, VAR_10;", "if (VAR_5 & 0x8000)\nreturn -1;", "init_get_bit...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
19,159
static int ff_asf_get_packet(AVFormatContext *s, AVIOContext *pb) { ASFContext *asf = s->priv_data; uint32_t packet_length, padsize; int rsize = 8; int c, d, e, off; // if we do not know packet size, allow skipping up to 32 kB off= 32768; if (s->packet_size > 0) off= (avio...
true
FFmpeg
41afac7f7a67c634c86b1d17fc930e9183d4aaa0
static int ff_asf_get_packet(AVFormatContext *s, AVIOContext *pb) { ASFContext *asf = s->priv_data; uint32_t packet_length, padsize; int rsize = 8; int c, d, e, off; off= 32768; if (s->packet_size > 0) off= (avio_tell(pb) - s->data_offset) % s->packet_size + 3; c=d...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1) { ASFContext *asf = VAR_0->priv_data; uint32_t packet_length, padsize; int VAR_2 = 8; int VAR_3, VAR_4, VAR_5, VAR_6; VAR_6= 32768; if (VAR_0->packet_size > 0) VAR_6= (avio_tell(VAR_1) - VAR_0->data_offset) % V...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1)\n{", "ASFContext *asf = VAR_0->priv_data;", "uint32_t packet_length, padsize;", "int VAR_2 = 8;", "int VAR_3, VAR_4, VAR_5, VAR_6;", "VAR_6= 32768;", "if (VAR_0->packet_size > 0)\nVAR_6= (avio_tell(VAR_1) - VAR_0->data_offset) % VAR_0->packe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 40 ], [ 54, 56 ], [ 58, 60 ], [ 63 ], [ 65 ], [ 67,...
19,161
static bool bdrv_start_throttled_reqs(BlockDriverState *bs) { bool drained = false; bool enabled = bs->io_limits_enabled; int i; bs->io_limits_enabled = false; for (i = 0; i < 2; i++) { while (qemu_co_enter_next(&bs->throttled_reqs[i])) { drained = true; } ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static bool bdrv_start_throttled_reqs(BlockDriverState *bs) { bool drained = false; bool enabled = bs->io_limits_enabled; int i; bs->io_limits_enabled = false; for (i = 0; i < 2; i++) { while (qemu_co_enter_next(&bs->throttled_reqs[i])) { drained = true; } ...
{ "code": [], "line_no": [] }
static bool FUNC_0(BlockDriverState *bs) { bool drained = false; bool enabled = bs->io_limits_enabled; int VAR_0; bs->io_limits_enabled = false; for (VAR_0 = 0; VAR_0 < 2; VAR_0++) { while (qemu_co_enter_next(&bs->throttled_reqs[VAR_0])) { drained = true; } ...
[ "static bool FUNC_0(BlockDriverState *bs)\n{", "bool drained = false;", "bool enabled = bs->io_limits_enabled;", "int VAR_0;", "bs->io_limits_enabled = false;", "for (VAR_0 = 0; VAR_0 < 2; VAR_0++) {", "while (qemu_co_enter_next(&bs->throttled_reqs[VAR_0])) {", "drained = true;", "}", "}", "bs->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ] ]
19,162
static int nbd_co_send_request(BlockDriverState *bs, NBDRequest *request, QEMUIOVector *qiov) { NBDClientSession *s = nbd_get_client_session(bs); int rc, ret, i; qemu_co_mutex_lock(&s->send_mutex); while (s->in_flight == MAX_NBD_REQU...
false
qemu
d1fdf257d52822695f5ace6c586e059aa17d4b79
static int nbd_co_send_request(BlockDriverState *bs, NBDRequest *request, QEMUIOVector *qiov) { NBDClientSession *s = nbd_get_client_session(bs); int rc, ret, i; qemu_co_mutex_lock(&s->send_mutex); while (s->in_flight == MAX_NBD_REQU...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, NBDRequest *VAR_1, QEMUIOVector *VAR_2) { NBDClientSession *s = nbd_get_client_session(VAR_0); int VAR_3, VAR_4, VAR_5; qemu_co_mutex_lock(&s->send_mutex); while (s->in_flight == MAX_NBD_REQ...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nNBDRequest *VAR_1,\nQEMUIOVector *VAR_2)\n{", "NBDClientSession *s = nbd_get_client_session(VAR_0);", "int VAR_3, VAR_4, VAR_5;", "qemu_co_mutex_lock(&s->send_mutex);", "while (s->in_flight == MAX_NBD_REQUESTS) {", "qemu_co_queue_wait(&s->free_sema, &s->send_mu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
19,163
PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn, ISABus **isa_bus, qemu_irq *pic, MemoryRegion *address_space_mem, MemoryRegion *address_space_io, ram_addr_t ram_size, hwadd...
false
qemu
1466cef32dd5e7ef3c6477e96d85d92302ad02e3
PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn, ISABus **isa_bus, qemu_irq *pic, MemoryRegion *address_space_mem, MemoryRegion *address_space_io, ram_addr_t ram_size, hwadd...
{ "code": [], "line_no": [] }
PCIBus *FUNC_0(PCII440FXState **pi440fx_state, int *piix3_devfn, ISABus **isa_bus, qemu_irq *pic, MemoryRegion *address_space_mem, MemoryRegion *address_space_io, ram_addr_t ram_size, hwaddr pci...
[ "PCIBus *FUNC_0(PCII440FXState **pi440fx_state,\nint *piix3_devfn,\nISABus **isa_bus, qemu_irq *pic,\nMemoryRegion *address_space_mem,\nMemoryRegion *address_space_io,\nram_addr_t ram_size,\nhwaddr pci_hole_start,\nhwaddr pci_hole_size,\nram_addr_t above_4g_mem_size,\nMemoryRegion *pci_address_space,\nMemoryRegion ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [...
19,164
static int ppc_hash32_pte_update_flags(struct mmu_ctx_hash32 *ctx, target_ulong *pte1p, int ret, int rw) { int store = 0; /* Update page flags */ if (!(*pte1p & HPTE32_R_R)) { /* Update accessed flag */ *pte1p |= HPTE32_R_R; store = 1;...
false
qemu
91cda45b69e45a089f9989979a65db3f710c9925
static int ppc_hash32_pte_update_flags(struct mmu_ctx_hash32 *ctx, target_ulong *pte1p, int ret, int rw) { int store = 0; if (!(*pte1p & HPTE32_R_R)) { *pte1p |= HPTE32_R_R; store = 1; } if (!(*pte1p & HPTE32_R_C)) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(struct mmu_ctx_hash32 *VAR_0, target_ulong *VAR_1, int VAR_2, int VAR_3) { int VAR_4 = 0; if (!(*VAR_1 & HPTE32_R_R)) { *VAR_1 |= HPTE32_R_R; VAR_4 = 1; } if (!(*VAR_1 & HPTE32_R_C)) { if (VAR_3 =...
[ "static int FUNC_0(struct mmu_ctx_hash32 *VAR_0, target_ulong *VAR_1,\nint VAR_2, int VAR_3)\n{", "int VAR_4 = 0;", "if (!(*VAR_1 & HPTE32_R_R)) {", "*VAR_1 |= HPTE32_R_R;", "VAR_4 = 1;", "}", "if (!(*VAR_1 & HPTE32_R_C)) {", "if (VAR_3 == 1 && VAR_2 == 0) {", "*VAR_1 |= HPTE32_R_C;", "VAR_4 = 1;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
19,166
static bool cmd_set_features(IDEState *s, uint8_t cmd) { uint16_t *identify_data; if (!s->bs) { ide_abort_command(s); return true; } /* XXX: valid for CDROM ? */ switch (s->feature) { case 0x02: /* write cache enable */ bdrv_set_enable_write_cache(s->bs, tru...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static bool cmd_set_features(IDEState *s, uint8_t cmd) { uint16_t *identify_data; if (!s->bs) { ide_abort_command(s); return true; } switch (s->feature) { case 0x02: bdrv_set_enable_write_cache(s->bs, true); identify_data = (uint16_t *)s->identify...
{ "code": [], "line_no": [] }
static bool FUNC_0(IDEState *s, uint8_t cmd) { uint16_t *identify_data; if (!s->bs) { ide_abort_command(s); return true; } switch (s->feature) { case 0x02: bdrv_set_enable_write_cache(s->bs, true); identify_data = (uint16_t *)s->identify_data; ...
[ "static bool FUNC_0(IDEState *s, uint8_t cmd)\n{", "uint16_t *identify_data;", "if (!s->bs) {", "ide_abort_command(s);", "return true;", "}", "switch (s->feature) {", "case 0x02:\nbdrv_set_enable_write_cache(s->bs, true);", "identify_data = (uint16_t *)s->identify_data;", "put_le16(identify_data +...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47, 49, 51, 53...
19,167
static void scsi_unrealize(SCSIDevice *dev, Error **errp) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev); scsi_device_purge_requests(&s->qdev, SENSE_CODE(NO_SENSE)); blockdev_mark_auto_del(s->qdev.conf.blk); }
false
qemu
fb7b5c0df6e3c501973ce4d57eb2b1d4344a519d
static void scsi_unrealize(SCSIDevice *dev, Error **errp) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev); scsi_device_purge_requests(&s->qdev, SENSE_CODE(NO_SENSE)); blockdev_mark_auto_del(s->qdev.conf.blk); }
{ "code": [], "line_no": [] }
static void FUNC_0(SCSIDevice *VAR_0, Error **VAR_1) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0); scsi_device_purge_requests(&s->qdev, SENSE_CODE(NO_SENSE)); blockdev_mark_auto_del(s->qdev.conf.blk); }
[ "static void FUNC_0(SCSIDevice *VAR_0, Error **VAR_1)\n{", "SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0);", "scsi_device_purge_requests(&s->qdev, SENSE_CODE(NO_SENSE));", "blockdev_mark_auto_del(s->qdev.conf.blk);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
19,168
uint32 float64_to_uint32_round_to_zero( float64 a STATUS_PARAM ) { int64_t v; uint32 res; v = float64_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffffffff) { res = 0xffffffff; fl...
false
qemu
fd728f2f949273563f799640b863b4b94dc4c6da
uint32 float64_to_uint32_round_to_zero( float64 a STATUS_PARAM ) { int64_t v; uint32 res; v = float64_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffffffff) { res = 0xffffffff; fl...
{ "code": [], "line_no": [] }
uint32 FUNC_0( float64 a STATUS_PARAM ) { int64_t v; uint32 res; v = float64_to_int64_round_to_zero(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffffffff) { res = 0xffffffff; float_raise( float_flag_inv...
[ "uint32 FUNC_0( float64 a STATUS_PARAM )\n{", "int64_t v;", "uint32 res;", "v = float64_to_int64_round_to_zero(a STATUS_VAR);", "if (v < 0) {", "res = 0;", "float_raise( float_flag_invalid STATUS_VAR);", "} else if (v > 0xffffffff) {", "res = 0xffffffff;", "float_raise( float_flag_invalid STATUS_V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
19,169
static int mkv_write_tag(AVFormatContext *s, AVDictionary *m, unsigned int elementid, unsigned int uid, ebml_master *tags) { MatroskaMuxContext *mkv = s->priv_data; ebml_master tag, targets; AVDictionaryEntry *t = NULL; int ret; if (!tags->pos) { ret = mkv_...
false
FFmpeg
b1306823d0b3ae998c8e10ad832004eb13bdd93e
static int mkv_write_tag(AVFormatContext *s, AVDictionary *m, unsigned int elementid, unsigned int uid, ebml_master *tags) { MatroskaMuxContext *mkv = s->priv_data; ebml_master tag, targets; AVDictionaryEntry *t = NULL; int ret; if (!tags->pos) { ret = mkv_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVDictionary *VAR_1, unsigned int VAR_2, unsigned int VAR_3, ebml_master *VAR_4) { MatroskaMuxContext *mkv = VAR_0->priv_data; ebml_master tag, targets; AVDictionaryEntry *t = NULL; int VAR_5; if (!VAR_4->pos) { VAR...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVDictionary *VAR_1, unsigned int VAR_2,\nunsigned int VAR_3, ebml_master *VAR_4)\n{", "MatroskaMuxContext *mkv = VAR_0->priv_data;", "ebml_master tag, targets;", "AVDictionaryEntry *t = NULL;", "int VAR_5;", "if (!VAR_4->pos) {", "VAR_5 = mkv_add_seekhead_entr...
[ 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 ], [ 43, 45, 47, 49 ], [ 53 ], [ 55 ], [...
19,170
static int decode_audio_specific_config(AACContext *ac, AVCodecContext *avctx, MPEG4AudioConfig *m4ac, const uint8_t *data, int bit_size, int sync_extension...
false
FFmpeg
71953ebcf94fe4ef316cdad1f276089205dd1d65
static int decode_audio_specific_config(AACContext *ac, AVCodecContext *avctx, MPEG4AudioConfig *m4ac, const uint8_t *data, int bit_size, int sync_extension...
{ "code": [], "line_no": [] }
static int FUNC_0(AACContext *VAR_0, AVCodecContext *VAR_1, MPEG4AudioConfig *VAR_2, const uint8_t *VAR_3, int VAR_4, int VAR_5) { GetBitContext gb; ...
[ "static int FUNC_0(AACContext *VAR_0,\nAVCodecContext *VAR_1,\nMPEG4AudioConfig *VAR_2,\nconst uint8_t *VAR_3, int VAR_4,\nint VAR_5)\n{", "GetBitContext gb;", "int VAR_6, VAR_7;", "av_dlog(VAR_1, \"extradata size %d\\n\", VAR_1->extradata_size);", "for (VAR_6 = 0; VAR_6 < VAR_1->extradata_size; VAR_6++)", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33, 35, 37 ], [ 39 ], [ 41, 43, 45 ], [ 47 ], [ 49 ], [ 53 ], [ 57 ], [ 59,...
19,171
static int rv34_set_deblock_coef(RV34DecContext *r) { MpegEncContext *s = &r->s; int mvmask = 0, i, j; int midx = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride; int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][midx]; if(s->pict_type == FF_I_TYPE) return 0; for(j = 0; j...
false
FFmpeg
ede0a5f9734cca077992a88b1da3e1596f252f94
static int rv34_set_deblock_coef(RV34DecContext *r) { MpegEncContext *s = &r->s; int mvmask = 0, i, j; int midx = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride; int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][midx]; if(s->pict_type == FF_I_TYPE) return 0; for(j = 0; j...
{ "code": [], "line_no": [] }
static int FUNC_0(RV34DecContext *VAR_0) { MpegEncContext *s = &VAR_0->s; int VAR_1 = 0, VAR_2, VAR_3; int VAR_4 = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride; int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][VAR_4]; if(s->pict_type == FF_I_TYPE) return 0; for(VAR_3 ...
[ "static int FUNC_0(RV34DecContext *VAR_0)\n{", "MpegEncContext *s = &VAR_0->s;", "int VAR_1 = 0, VAR_2, VAR_3;", "int VAR_4 = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride;", "int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][VAR_4];", "if(s->pict_type == FF_I_TYPE)\nreturn 0;", "for(VAR_3 = 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 ] ]
19,172
static int ppc_hash32_get_bat(CPUPPCState *env, struct mmu_ctx_hash32 *ctx, target_ulong virtual, int rw, int type) { target_ulong *BATlt, *BATut, *BATu, *BATl; target_ulong BEPIl, BEPIu, bl; int i, valid, prot; int ret = -1; LOG_BATS("%s: %cBAT v " TARGET_FMT_...
false
qemu
91cda45b69e45a089f9989979a65db3f710c9925
static int ppc_hash32_get_bat(CPUPPCState *env, struct mmu_ctx_hash32 *ctx, target_ulong virtual, int rw, int type) { target_ulong *BATlt, *BATut, *BATu, *BATl; target_ulong BEPIl, BEPIu, bl; int i, valid, prot; int ret = -1; LOG_BATS("%s: %cBAT v " TARGET_FMT_...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { target_ulong *BATlt, *BATut, *BATu, *BATl; target_ulong BEPIl, BEPIu, bl; int VAR_5, VAR_6, VAR_7; int VAR_8 = -1; LOG_BATS("%s: %cBAT v " TARGET_FMT...
[ "static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4)\n{", "target_ulong *BATlt, *BATut, *BATu, *BATl;", "target_ulong BEPIl, BEPIu, bl;", "int VAR_5, VAR_6, VAR_7;", "int VAR_8 = -1;", "LOG_BATS(\"%s: %cBAT v \" TARGET_FMT_lx \"\\n\", __func__,\nV...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
19,173
static uint64_t pl050_read(void *opaque, hwaddr offset, unsigned size) { pl050_state *s = (pl050_state *)opaque; if (offset >= 0xfe0 && offset < 0x1000) return pl050_id[(offset - 0xfe0) >> 2]; switch (offset >> 2) { case 0: /* KMICR */ return s->cr; ...
false
qemu
fbfecf43e9d354cfae04496563f7bb87d2ccde46
static uint64_t pl050_read(void *opaque, hwaddr offset, unsigned size) { pl050_state *s = (pl050_state *)opaque; if (offset >= 0xfe0 && offset < 0x1000) return pl050_id[(offset - 0xfe0) >> 2]; switch (offset >> 2) { case 0: return s->cr; case 1:...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, hwaddr offset, unsigned size) { pl050_state *s = (pl050_state *)opaque; if (offset >= 0xfe0 && offset < 0x1000) return pl050_id[(offset - 0xfe0) >> 2]; switch (offset >> 2) { case 0: return s->cr; case 1: ...
[ "static uint64_t FUNC_0(void *opaque, hwaddr offset,\nunsigned size)\n{", "pl050_state *s = (pl050_state *)opaque;", "if (offset >= 0xfe0 && offset < 0x1000)\nreturn pl050_id[(offset - 0xfe0) >> 2];", "switch (offset >> 2) {", "case 0:\nreturn s->cr;", "case 1:\n{", "uint8_t val;", "uint32_t stat;", ...
[ 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [ 53 ], [ 55 ...
19,174
BlockdevOnError bdrv_get_on_error(BlockDriverState *bs, bool is_read) { return is_read ? bs->on_read_error : bs->on_write_error; }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
BlockdevOnError bdrv_get_on_error(BlockDriverState *bs, bool is_read) { return is_read ? bs->on_read_error : bs->on_write_error; }
{ "code": [], "line_no": [] }
BlockdevOnError FUNC_0(BlockDriverState *bs, bool is_read) { return is_read ? bs->on_read_error : bs->on_write_error; }
[ "BlockdevOnError FUNC_0(BlockDriverState *bs, bool is_read)\n{", "return is_read ? bs->on_read_error : bs->on_write_error;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
19,175
static int openfile(char *name, int flags, int growable, QDict *opts) { Error *local_err = NULL; if (qemuio_bs) { fprintf(stderr, "file open already, try 'help close'\n"); return 1; } if (growable) { if (bdrv_open(&qemuio_bs, name, NULL, opts, flags | BDRV_O_PROTOCOL,...
false
qemu
98522f63f40adaebc412481e1d2e9170160d4539
static int openfile(char *name, int flags, int growable, QDict *opts) { Error *local_err = NULL; if (qemuio_bs) { fprintf(stderr, "file open already, try 'help close'\n"); return 1; } if (growable) { if (bdrv_open(&qemuio_bs, name, NULL, opts, flags | BDRV_O_PROTOCOL,...
{ "code": [], "line_no": [] }
static int FUNC_0(char *VAR_0, int VAR_1, int VAR_2, QDict *VAR_3) { Error *local_err = NULL; if (qemuio_bs) { fprintf(stderr, "file open already, try 'help close'\n"); return 1; } if (VAR_2) { if (bdrv_open(&qemuio_bs, VAR_0, NULL, VAR_3, VAR_1 | BDRV_O_PROTOCOL, ...
[ "static int FUNC_0(char *VAR_0, int VAR_1, int VAR_2, QDict *VAR_3)\n{", "Error *local_err = NULL;", "if (qemuio_bs) {", "fprintf(stderr, \"file open already, try 'help close'\\n\");", "return 1;", "}", "if (VAR_2) {", "if (bdrv_open(&qemuio_bs, VAR_0, NULL, VAR_3, VAR_1 | BDRV_O_PROTOCOL,\nNULL, &loc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45, 47 ], [ 49, 51 ], [ 53...
19,176
static int usb_hid_handle_control(USBDevice *dev, USBPacket *p, int request, int value, int index, int length, uint8_t *data) { USBHIDState *us = DO_UPCAST(USBHIDState, dev, dev); HIDState *hs = &us->hid; int ret; ret = usb_desc_handle_control(dev, p, request, value, index, length...
false
qemu
38931fa8cfb074a08ce65fd1982bd4a5bef9d6fb
static int usb_hid_handle_control(USBDevice *dev, USBPacket *p, int request, int value, int index, int length, uint8_t *data) { USBHIDState *us = DO_UPCAST(USBHIDState, dev, dev); HIDState *hs = &us->hid; int ret; ret = usb_desc_handle_control(dev, p, request, value, index, length...
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, uint8_t *VAR_6) { USBHIDState *us = DO_UPCAST(USBHIDState, VAR_0, VAR_0); HIDState *hs = &us->hid; int VAR_7; VAR_7 = usb_desc_handle_control(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5,...
[ "static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5, uint8_t *VAR_6)\n{", "USBHIDState *us = DO_UPCAST(USBHIDState, VAR_0, VAR_0);", "HIDState *hs = &us->hid;", "int VAR_7;", "VAR_7 = usb_desc_handle_control(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 45, 47 ], [ 49, 51 ], [...
19,178
void gic_set_priority(GICState *s, int cpu, int irq, uint8_t val) { if (irq < GIC_INTERNAL) { s->priority1[irq][cpu] = val; } else { s->priority2[(irq) - GIC_INTERNAL] = val; } }
false
qemu
8150847061f8d2606101bfff77cc6ec86b081ab0
void gic_set_priority(GICState *s, int cpu, int irq, uint8_t val) { if (irq < GIC_INTERNAL) { s->priority1[irq][cpu] = val; } else { s->priority2[(irq) - GIC_INTERNAL] = val; } }
{ "code": [], "line_no": [] }
void FUNC_0(GICState *VAR_0, int VAR_1, int VAR_2, uint8_t VAR_3) { if (VAR_2 < GIC_INTERNAL) { VAR_0->priority1[VAR_2][VAR_1] = VAR_3; } else { VAR_0->priority2[(VAR_2) - GIC_INTERNAL] = VAR_3; } }
[ "void FUNC_0(GICState *VAR_0, int VAR_1, int VAR_2, uint8_t VAR_3)\n{", "if (VAR_2 < GIC_INTERNAL) {", "VAR_0->priority1[VAR_2][VAR_1] = VAR_3;", "} else {", "VAR_0->priority2[(VAR_2) - GIC_INTERNAL] = VAR_3;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
19,179
static void test_self(void) { Coroutine *coroutine; coroutine = qemu_coroutine_create(verify_self); qemu_coroutine_enter(coroutine, coroutine); }
false
qemu
7e70cdba9f220bef3f3481c663c066c2b80469aa
static void test_self(void) { Coroutine *coroutine; coroutine = qemu_coroutine_create(verify_self); qemu_coroutine_enter(coroutine, coroutine); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { Coroutine *coroutine; coroutine = qemu_coroutine_create(verify_self); qemu_coroutine_enter(coroutine, coroutine); }
[ "static void FUNC_0(void)\n{", "Coroutine *coroutine;", "coroutine = qemu_coroutine_create(verify_self);", "qemu_coroutine_enter(coroutine, coroutine);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
19,180
void object_unparent(Object *obj) { object_ref(obj); if (obj->parent) { object_property_del_child(obj->parent, obj, NULL); } if (obj->class->unparent) { (obj->class->unparent)(obj); } object_unref(obj); }
false
qemu
e998fa8df828ef68ea540a12917d10b4d335c1dd
void object_unparent(Object *obj) { object_ref(obj); if (obj->parent) { object_property_del_child(obj->parent, obj, NULL); } if (obj->class->unparent) { (obj->class->unparent)(obj); } object_unref(obj); }
{ "code": [], "line_no": [] }
void FUNC_0(Object *VAR_0) { object_ref(VAR_0); if (VAR_0->parent) { object_property_del_child(VAR_0->parent, VAR_0, NULL); } if (VAR_0->class->unparent) { (VAR_0->class->unparent)(VAR_0); } object_unref(VAR_0); }
[ "void FUNC_0(Object *VAR_0)\n{", "object_ref(VAR_0);", "if (VAR_0->parent) {", "object_property_del_child(VAR_0->parent, VAR_0, NULL);", "}", "if (VAR_0->class->unparent) {", "(VAR_0->class->unparent)(VAR_0);", "}", "object_unref(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
19,182
static int decode_header(MPADecodeContext *s, UINT32 header) { int sample_rate, frame_size, mpeg25, padding; int sample_rate_index, bitrate_index; if (header & (1<<20)) { s->lsf = (header & (1<<19)) ? 0 : 1; mpeg25 = 0; } else { s->lsf = 1; mpeg25 = 1; } ...
false
FFmpeg
fad9f495c07be2d990620f5000de075ba2cf1cbd
static int decode_header(MPADecodeContext *s, UINT32 header) { int sample_rate, frame_size, mpeg25, padding; int sample_rate_index, bitrate_index; if (header & (1<<20)) { s->lsf = (header & (1<<19)) ? 0 : 1; mpeg25 = 0; } else { s->lsf = 1; mpeg25 = 1; } ...
{ "code": [], "line_no": [] }
static int FUNC_0(MPADecodeContext *VAR_0, UINT32 VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5; int VAR_6, VAR_7; if (VAR_1 & (1<<20)) { VAR_0->lsf = (VAR_1 & (1<<19)) ? 0 : 1; VAR_4 = 0; } else { VAR_0->lsf = 1; VAR_4 = 1; } VAR_0->layer = 4 - ((VAR_1...
[ "static int FUNC_0(MPADecodeContext *VAR_0, UINT32 VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6, VAR_7;", "if (VAR_1 & (1<<20)) {", "VAR_0->lsf = (VAR_1 & (1<<19)) ? 0 : 1;", "VAR_4 = 0;", "} else {", "VAR_0->lsf = 1;", "VAR_4 = 1;", "}", "VAR_0->layer = 4 - ((VAR_1 >> 17) & 3);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
19,183
static gboolean gd_focus_out_event(GtkWidget *widget, GdkEventCrossing *crossing, gpointer opaque) { VirtualConsole *vc = opaque; GtkDisplayState *s = vc->s; gtk_release_modifiers(s); return TRUE; }
false
qemu
2884cf5b934808f547b5268a51be631805c25857
static gboolean gd_focus_out_event(GtkWidget *widget, GdkEventCrossing *crossing, gpointer opaque) { VirtualConsole *vc = opaque; GtkDisplayState *s = vc->s; gtk_release_modifiers(s); return TRUE; }
{ "code": [], "line_no": [] }
static gboolean FUNC_0(GtkWidget *widget, GdkEventCrossing *crossing, gpointer opaque) { VirtualConsole *vc = opaque; GtkDisplayState *s = vc->s; gtk_release_modifiers(s); return TRUE; }
[ "static gboolean FUNC_0(GtkWidget *widget,\nGdkEventCrossing *crossing, gpointer opaque)\n{", "VirtualConsole *vc = opaque;", "GtkDisplayState *s = vc->s;", "gtk_release_modifiers(s);", "return TRUE;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ] ]
19,185
void isa_init_irq(ISADevice *dev, qemu_irq *p, int isairq) { assert(dev->nirqs < ARRAY_SIZE(dev->isairq)); if (isabus->assigned & (1 << isairq)) { hw_error("isa irq %d already assigned", isairq); } isabus->assigned |= (1 << isairq); dev->isairq[dev->nirqs] = isairq; *p = isabus->...
false
qemu
ee951a37d8873bff7aa58e23222dfd984111b6cb
void isa_init_irq(ISADevice *dev, qemu_irq *p, int isairq) { assert(dev->nirqs < ARRAY_SIZE(dev->isairq)); if (isabus->assigned & (1 << isairq)) { hw_error("isa irq %d already assigned", isairq); } isabus->assigned |= (1 << isairq); dev->isairq[dev->nirqs] = isairq; *p = isabus->...
{ "code": [], "line_no": [] }
void FUNC_0(ISADevice *VAR_0, qemu_irq *VAR_1, int VAR_2) { assert(VAR_0->nirqs < ARRAY_SIZE(VAR_0->VAR_2)); if (isabus->assigned & (1 << VAR_2)) { hw_error("isa irq %d already assigned", VAR_2); } isabus->assigned |= (1 << VAR_2); VAR_0->VAR_2[VAR_0->nirqs] = VAR_2; *VAR_1 = isa...
[ "void FUNC_0(ISADevice *VAR_0, qemu_irq *VAR_1, int VAR_2)\n{", "assert(VAR_0->nirqs < ARRAY_SIZE(VAR_0->VAR_2));", "if (isabus->assigned & (1 << VAR_2)) {", "hw_error(\"isa irq %d already assigned\", VAR_2);", "}", "isabus->assigned |= (1 << VAR_2);", "VAR_0->VAR_2[VAR_0->nirqs] = VAR_2;", "*VAR_1 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
19,186
void bdrv_swap(BlockDriverState *bs_new, BlockDriverState *bs_old) { BlockDriverState tmp; /* The code needs to swap the node_name but simply swapping node_list won't * work so first remove the nodes from the graph list, do the swap then * insert them back if needed. */ if (bs_new->n...
false
qemu
826b6ca0b0c00bf27562a85bc073f800dad1259b
void bdrv_swap(BlockDriverState *bs_new, BlockDriverState *bs_old) { BlockDriverState tmp; if (bs_new->node_name[0] != '\0') { QTAILQ_REMOVE(&graph_bdrv_states, bs_new, node_list); } if (bs_old->node_name[0] != '\0') { QTAILQ_REMOVE(&graph_bdrv_states, bs_old, node_l...
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1) { BlockDriverState tmp; if (VAR_0->node_name[0] != '\0') { QTAILQ_REMOVE(&graph_bdrv_states, VAR_0, node_list); } if (VAR_1->node_name[0] != '\0') { QTAILQ_REMOVE(&graph_bdrv_states, VAR_1, node_list); ...
[ "void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1)\n{", "BlockDriverState tmp;", "if (VAR_0->node_name[0] != '\\0') {", "QTAILQ_REMOVE(&graph_bdrv_states, VAR_0, node_list);", "}", "if (VAR_1->node_name[0] != '\\0') {", "QTAILQ_REMOVE(&graph_bdrv_states, VAR_1, node_list);", "}", "assert...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 59 ], [ 6...
19,187
static int sigp_set_architecture(S390CPU *cpu, uint32_t param, uint64_t *status_reg) { CPUState *cur_cs; S390CPU *cur_cpu; bool all_stopped = true; CPU_FOREACH(cur_cs) { cur_cpu = S390_CPU(cur_cs); if (cur_cpu == cpu) { continue; ...
false
qemu
74b4c74d5efb0a489bdf0acc5b5d0197167e7649
static int sigp_set_architecture(S390CPU *cpu, uint32_t param, uint64_t *status_reg) { CPUState *cur_cs; S390CPU *cur_cpu; bool all_stopped = true; CPU_FOREACH(cur_cs) { cur_cpu = S390_CPU(cur_cs); if (cur_cpu == cpu) { continue; ...
{ "code": [], "line_no": [] }
static int FUNC_0(S390CPU *VAR_0, uint32_t VAR_1, uint64_t *VAR_2) { CPUState *cur_cs; S390CPU *cur_cpu; bool all_stopped = true; CPU_FOREACH(cur_cs) { cur_cpu = S390_CPU(cur_cs); if (cur_cpu == VAR_0) { continue; } ...
[ "static int FUNC_0(S390CPU *VAR_0, uint32_t VAR_1,\nuint64_t *VAR_2)\n{", "CPUState *cur_cs;", "S390CPU *cur_cpu;", "bool all_stopped = true;", "CPU_FOREACH(cur_cs) {", "cur_cpu = S390_CPU(cur_cs);", "if (cur_cpu == VAR_0) {", "continue;", "}", "if (s390_cpu_get_state(cur_cpu) != CPU_STATE_STOPPED...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 43, 45 ], [ 47 ], [ 49 ] ]
19,188
int kvm_s390_cpu_restart(S390CPU *cpu) { kvm_s390_interrupt(cpu, KVM_S390_RESTART, 0); s390_add_running_cpu(cpu); qemu_cpu_kick(CPU(cpu)); DPRINTF("DONE: KVM cpu restart: %p\n", &cpu->env); return 0; }
false
qemu
de13d2161473d02ae97ec0f8e4503147554892dd
int kvm_s390_cpu_restart(S390CPU *cpu) { kvm_s390_interrupt(cpu, KVM_S390_RESTART, 0); s390_add_running_cpu(cpu); qemu_cpu_kick(CPU(cpu)); DPRINTF("DONE: KVM cpu restart: %p\n", &cpu->env); return 0; }
{ "code": [], "line_no": [] }
int FUNC_0(S390CPU *VAR_0) { kvm_s390_interrupt(VAR_0, KVM_S390_RESTART, 0); s390_add_running_cpu(VAR_0); qemu_cpu_kick(CPU(VAR_0)); DPRINTF("DONE: KVM VAR_0 restart: %p\n", &VAR_0->env); return 0; }
[ "int FUNC_0(S390CPU *VAR_0)\n{", "kvm_s390_interrupt(VAR_0, KVM_S390_RESTART, 0);", "s390_add_running_cpu(VAR_0);", "qemu_cpu_kick(CPU(VAR_0));", "DPRINTF(\"DONE: KVM VAR_0 restart: %p\\n\", &VAR_0->env);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
19,189
float64 uint64_to_float64( uint64 a STATUS_PARAM ) { if ( a == 0 ) return 0; return normalizeRoundAndPackFloat64( 0, 0x43C, a STATUS_VAR ); }
false
qemu
f090c9d4ad5812fb92843d6470a1111c15190c4c
float64 uint64_to_float64( uint64 a STATUS_PARAM ) { if ( a == 0 ) return 0; return normalizeRoundAndPackFloat64( 0, 0x43C, a STATUS_VAR ); }
{ "code": [], "line_no": [] }
float64 FUNC_0( uint64 a STATUS_PARAM ) { if ( a == 0 ) return 0; return normalizeRoundAndPackFloat64( 0, 0x43C, a STATUS_VAR ); }
[ "float64 FUNC_0( uint64 a STATUS_PARAM )\n{", "if ( a == 0 ) return 0;", "return normalizeRoundAndPackFloat64( 0, 0x43C, a STATUS_VAR );", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ] ]
19,190
void gt64120_reset(void *opaque) { GT64120State *s = opaque; /* CPU Configuration */ #ifdef TARGET_WORDS_BIGENDIAN s->regs[GT_CPU] = 0x00000000; #else s->regs[GT_CPU] = 0x00001000; #endif s->regs[GT_MULTI] = 0x00000000; /* CPU Address decode FIXME: not c...
false
qemu
30b6f3a866ba4cec86b86ddd22cf3fba3f23ea1d
void gt64120_reset(void *opaque) { GT64120State *s = opaque; #ifdef TARGET_WORDS_BIGENDIAN s->regs[GT_CPU] = 0x00000000; #else s->regs[GT_CPU] = 0x00001000; #endif s->regs[GT_MULTI] = 0x00000000; s->regs[GT_PCI0IOLD] = 0x00000080; s->reg...
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0) { GT64120State *s = VAR_0; #ifdef TARGET_WORDS_BIGENDIAN s->regs[GT_CPU] = 0x00000000; #else s->regs[GT_CPU] = 0x00001000; #endif s->regs[GT_MULTI] = 0x00000000; s->regs[GT_PCI0IOLD] = 0x00000080; s->regs[GT_PCI0...
[ "void FUNC_0(void *VAR_0)\n{", "GT64120State *s = VAR_0;", "#ifdef TARGET_WORDS_BIGENDIAN\ns->regs[GT_CPU] = 0x00000000;", "#else\ns->regs[GT_CPU] = 0x00001000;", "#endif\ns->regs[GT_MULTI] = 0x00000000;", "s->regs[GT_PCI0IOLD] = 0x00000080;", "s->regs[GT_PCI0IOHD] ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
19,191
uint64_t helper_fctiw(CPUPPCState *env, uint64_t arg) { CPU_DoubleU farg; farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { /* sNaN conversion */ farg.ll = fload_invalid_op_excp(env, POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VX...
false
qemu
59800ec8e52bcfa271fa61fb0aae19205ef1b7f1
uint64_t helper_fctiw(CPUPPCState *env, uint64_t arg) { CPU_DoubleU farg; farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { farg.ll = fload_invalid_op_excp(env, POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI); } else if ...
{ "code": [], "line_no": [] }
uint64_t FUNC_0(CPUPPCState *env, uint64_t arg) { CPU_DoubleU farg; farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { farg.ll = fload_invalid_op_excp(env, POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI); } else if (unlik...
[ "uint64_t FUNC_0(CPUPPCState *env, uint64_t arg)\n{", "CPU_DoubleU farg;", "farg.ll = arg;", "if (unlikely(float64_is_signaling_nan(farg.d))) {", "farg.ll = fload_invalid_op_excp(env, POWERPC_EXCP_FP_VXSNAN |\nPOWERPC_EXCP_FP_VXCVI);", "} else if (unlikely(float64_is_quiet_nan(farg.d) ||", "float64_is_i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
19,192
static void vfio_add_ext_cap(VFIOPCIDevice *vdev) { PCIDevice *pdev = &vdev->pdev; uint32_t header; uint16_t cap_id, next, size; uint8_t cap_ver; uint8_t *config; /* Only add extended caps if we have them and the guest can see them */ if (!pci_is_express(pdev) || !pci_bus_is_expres...
false
qemu
d0d1cd70d10639273e2a23870e7e7d80b2bc4e21
static void vfio_add_ext_cap(VFIOPCIDevice *vdev) { PCIDevice *pdev = &vdev->pdev; uint32_t header; uint16_t cap_id, next, size; uint8_t cap_ver; uint8_t *config; if (!pci_is_express(pdev) || !pci_bus_is_express(pdev->bus) || !pci_get_long(pdev->config + PCI_CONFIG_SPACE_...
{ "code": [], "line_no": [] }
static void FUNC_0(VFIOPCIDevice *VAR_0) { PCIDevice *pdev = &VAR_0->pdev; uint32_t header; uint16_t cap_id, next, size; uint8_t cap_ver; uint8_t *config; if (!pci_is_express(pdev) || !pci_bus_is_express(pdev->bus) || !pci_get_long(pdev->config + PCI_CONFIG_SPACE_SIZE)) {...
[ "static void FUNC_0(VFIOPCIDevice *VAR_0)\n{", "PCIDevice *pdev = &VAR_0->pdev;", "uint32_t header;", "uint16_t cap_id, next, size;", "uint8_t cap_ver;", "uint8_t *config;", "if (!pci_is_express(pdev) || !pci_bus_is_express(pdev->bus) ||\n!pci_get_long(pdev->config + PCI_CONFIG_SPACE_SIZE)) {", "retur...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 41 ], [ 73, 75 ], [ 77 ], [ 79 ], [ 83 ], [ 85 ], [ 87 ], [ 89 ], [ 91 ], [ 107...
19,193
bool tcg_target_deposit_valid(int ofs, int len) { return (facilities & FACILITY_GEN_INST_EXT) != 0; }
false
qemu
b2c98d9d392c87c9b9e975d30f79924719d9cbbe
bool tcg_target_deposit_valid(int ofs, int len) { return (facilities & FACILITY_GEN_INST_EXT) != 0; }
{ "code": [], "line_no": [] }
bool FUNC_0(int ofs, int len) { return (facilities & FACILITY_GEN_INST_EXT) != 0; }
[ "bool FUNC_0(int ofs, int len)\n{", "return (facilities & FACILITY_GEN_INST_EXT) != 0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
19,194
void handle_diag_308(CPUS390XState *env, uint64_t r1, uint64_t r3) { uint64_t addr = env->regs[r1]; uint64_t subcode = env->regs[r3]; IplParameterBlock *iplb; if (env->psw.mask & PSW_MASK_PSTATE) { program_interrupt(env, PGM_PRIVILEGED, ILEN_LATER_INC); return; } if...
false
qemu
becf8217deb2afc347d5172d9f30c8a8964b8b27
void handle_diag_308(CPUS390XState *env, uint64_t r1, uint64_t r3) { uint64_t addr = env->regs[r1]; uint64_t subcode = env->regs[r3]; IplParameterBlock *iplb; if (env->psw.mask & PSW_MASK_PSTATE) { program_interrupt(env, PGM_PRIVILEGED, ILEN_LATER_INC); return; } if...
{ "code": [], "line_no": [] }
void FUNC_0(CPUS390XState *VAR_0, uint64_t VAR_1, uint64_t VAR_2) { uint64_t addr = VAR_0->regs[VAR_1]; uint64_t subcode = VAR_0->regs[VAR_2]; IplParameterBlock *iplb; if (VAR_0->psw.mask & PSW_MASK_PSTATE) { program_interrupt(VAR_0, PGM_PRIVILEGED, ILEN_LATER_INC); return; ...
[ "void FUNC_0(CPUS390XState *VAR_0, uint64_t VAR_1, uint64_t VAR_2)\n{", "uint64_t addr = VAR_0->regs[VAR_1];", "uint64_t subcode = VAR_0->regs[VAR_2];", "IplParameterBlock *iplb;", "if (VAR_0->psw.mask & PSW_MASK_PSTATE) {", "program_interrupt(VAR_0, PGM_PRIVILEGED, ILEN_LATER_INC);", "return;", "}",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ...
19,195
static int avg_bits_per_pixel(int pix_fmt) { int bits; const PixFmtInfo *pf; pf = &pix_fmt_info[pix_fmt]; if (pf->is_packed) { switch(pix_fmt) { case PIX_FMT_RGB24: case PIX_FMT_BGR24: bits = 24; break; case PIX_FMT_RGBA32: ...
false
FFmpeg
7e7e59409294af9caa63808e56c5cc824c98b4fc
static int avg_bits_per_pixel(int pix_fmt) { int bits; const PixFmtInfo *pf; pf = &pix_fmt_info[pix_fmt]; if (pf->is_packed) { switch(pix_fmt) { case PIX_FMT_RGB24: case PIX_FMT_BGR24: bits = 24; break; case PIX_FMT_RGBA32: ...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0) { int VAR_1; const PixFmtInfo *VAR_2; VAR_2 = &pix_fmt_info[VAR_0]; if (VAR_2->is_packed) { switch(VAR_0) { case PIX_FMT_RGB24: case PIX_FMT_BGR24: VAR_1 = 24; break; case PIX_FMT_RGBA32: VAR_1...
[ "static int FUNC_0(int VAR_0)\n{", "int VAR_1;", "const PixFmtInfo *VAR_2;", "VAR_2 = &pix_fmt_info[VAR_0];", "if (VAR_2->is_packed) {", "switch(VAR_0) {", "case PIX_FMT_RGB24:\ncase PIX_FMT_BGR24:\nVAR_1 = 24;", "break;", "case PIX_FMT_RGBA32:\nVAR_1 = 32;", "break;", "case PIX_FMT_RGB565:\ncas...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], ...
19,196
static void tgen_brcond(TCGContext *s, TCGType type, TCGCond c, TCGReg r1, TCGArg c2, int c2const, TCGLabel *l) { int cc; if (facilities & FACILITY_GEN_INST_EXT) { bool is_unsigned = is_unsigned_cond(c); bool in_range; S390Opcode opc; cc = tcg_...
false
qemu
b2c98d9d392c87c9b9e975d30f79924719d9cbbe
static void tgen_brcond(TCGContext *s, TCGType type, TCGCond c, TCGReg r1, TCGArg c2, int c2const, TCGLabel *l) { int cc; if (facilities & FACILITY_GEN_INST_EXT) { bool is_unsigned = is_unsigned_cond(c); bool in_range; S390Opcode opc; cc = tcg_...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGCond VAR_2, TCGReg VAR_3, TCGArg VAR_4, int VAR_5, TCGLabel *VAR_6) { int VAR_7; if (facilities & FACILITY_GEN_INST_EXT) { bool is_unsigned = is_unsigned_cond(VAR_2); bool in_range; S390Opcode opc; ...
[ "static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGCond VAR_2,\nTCGReg VAR_3, TCGArg VAR_4, int VAR_5, TCGLabel *VAR_6)\n{", "int VAR_7;", "if (facilities & FACILITY_GEN_INST_EXT) {", "bool is_unsigned = is_unsigned_cond(VAR_2);", "bool in_range;", "S390Opcode opc;", "VAR_7 = tcg_cond_to_s390_cond...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], ...
19,197
static int kvm_get_msrs(CPUState *env) { struct { struct kvm_msrs info; struct kvm_msr_entry entries[100]; } msr_data; struct kvm_msr_entry *msrs = msr_data.entries; int ret, i, n; n = 0; msrs[n++].index = MSR_IA32_SYSENTER_CS; msrs[n++].index = MSR_IA32_SYSENTER_...
false
qemu
c3a3a7d356c4df2fe145037172ae52cba5f545a5
static int kvm_get_msrs(CPUState *env) { struct { struct kvm_msrs info; struct kvm_msr_entry entries[100]; } msr_data; struct kvm_msr_entry *msrs = msr_data.entries; int ret, i, n; n = 0; msrs[n++].index = MSR_IA32_SYSENTER_CS; msrs[n++].index = MSR_IA32_SYSENTER_...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0) { struct { struct kvm_msrs info; struct kvm_msr_entry entries[100]; } VAR_1; struct kvm_msr_entry *VAR_2 = VAR_1.entries; int VAR_3, VAR_4, VAR_5; VAR_5 = 0; VAR_2[VAR_5++].index = MSR_IA32_SYSENTER_CS; VAR_2[VAR_5++].index = MSR...
[ "static int FUNC_0(CPUState *VAR_0)\n{", "struct {", "struct kvm_msrs info;", "struct kvm_msr_entry entries[100];", "} VAR_1;", "struct kvm_msr_entry *VAR_2 = VAR_1.entries;", "int VAR_3, VAR_4, VAR_5;", "VAR_5 = 0;", "VAR_2[VAR_5++].index = MSR_IA32_SYSENTER_CS;", "VAR_2[VAR_5++].index = MSR_IA32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [...
19,199
static int protocol_client_msg(VncState *vs, char *data, size_t len) { int i; uint16_t limit; switch (data[0]) { case 0: if (len == 1) return 20; set_pixel_format(vs, read_u8(data, 4), read_u8(data, 5), read_u8(data, 6), read_u8(data, 7), read_u16(data, 8), read_u16(data, 10...
false
qemu
baa7666c74e7495c0982afe2a566aabcd4dbe1ac
static int protocol_client_msg(VncState *vs, char *data, size_t len) { int i; uint16_t limit; switch (data[0]) { case 0: if (len == 1) return 20; set_pixel_format(vs, read_u8(data, 4), read_u8(data, 5), read_u8(data, 6), read_u8(data, 7), read_u16(data, 8), read_u16(data, 10...
{ "code": [], "line_no": [] }
static int FUNC_0(VncState *VAR_0, char *VAR_1, size_t VAR_2) { int VAR_3; uint16_t limit; switch (VAR_1[0]) { case 0: if (VAR_2 == 1) return 20; set_pixel_format(VAR_0, read_u8(VAR_1, 4), read_u8(VAR_1, 5), read_u8(VAR_1, 6), read_u8(VAR_1, 7), read_u16(VAR_1, 8), read_u16(...
[ "static int FUNC_0(VncState *VAR_0, char *VAR_1, size_t VAR_2)\n{", "int VAR_3;", "uint16_t limit;", "switch (VAR_1[0]) {", "case 0:\nif (VAR_2 == 1)\nreturn 20;", "set_pixel_format(VAR_0, read_u8(VAR_1, 4), read_u8(VAR_1, 5),\nread_u8(VAR_1, 6), read_u8(VAR_1, 7),\nread_u16(VAR_1, 8), read_u16(VAR_1, 10)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15, 17 ], [ 21, 23, 25, 27, 29 ], [ 31 ], [ 33, 35, 37 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], ...
19,200
static void mirror_drain(MirrorBlockJob *s) { while (s->in_flight > 0) { mirror_wait_for_io(s); } }
false
qemu
bae8196d9f97916de6323e70e3e374362ee16ec4
static void mirror_drain(MirrorBlockJob *s) { while (s->in_flight > 0) { mirror_wait_for_io(s); } }
{ "code": [], "line_no": [] }
static void FUNC_0(MirrorBlockJob *VAR_0) { while (VAR_0->in_flight > 0) { mirror_wait_for_io(VAR_0); } }
[ "static void FUNC_0(MirrorBlockJob *VAR_0)\n{", "while (VAR_0->in_flight > 0) {", "mirror_wait_for_io(VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
19,202
static inline void ide_abort_command(IDEState *s) { ide_transfer_stop(s); s->status = READY_STAT | ERR_STAT; s->error = ABRT_ERR; }
false
qemu
9ef2e93f9b1888c7d0deb4a105149138e6ad2e98
static inline void ide_abort_command(IDEState *s) { ide_transfer_stop(s); s->status = READY_STAT | ERR_STAT; s->error = ABRT_ERR; }
{ "code": [], "line_no": [] }
static inline void FUNC_0(IDEState *VAR_0) { ide_transfer_stop(VAR_0); VAR_0->status = READY_STAT | ERR_STAT; VAR_0->error = ABRT_ERR; }
[ "static inline void FUNC_0(IDEState *VAR_0)\n{", "ide_transfer_stop(VAR_0);", "VAR_0->status = READY_STAT | ERR_STAT;", "VAR_0->error = ABRT_ERR;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
19,203
static inline void gen_op_addw_ESP_im(int32_t val) { tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP])); tcg_gen_addi_tl(cpu_tmp0, cpu_tmp0, val); tcg_gen_st16_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP]) + REG_W_OFFSET); }
false
qemu
6e0d8677cb443e7408c0b7a25a93c6596d7fa380
static inline void gen_op_addw_ESP_im(int32_t val) { tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP])); tcg_gen_addi_tl(cpu_tmp0, cpu_tmp0, val); tcg_gen_st16_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP]) + REG_W_OFFSET); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(int32_t VAR_0) { tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP])); tcg_gen_addi_tl(cpu_tmp0, cpu_tmp0, VAR_0); tcg_gen_st16_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP]) + REG_W_OFFSET); }
[ "static inline void FUNC_0(int32_t VAR_0)\n{", "tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP]));", "tcg_gen_addi_tl(cpu_tmp0, cpu_tmp0, VAR_0);", "tcg_gen_st16_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP]) + REG_W_OFFSET);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
19,205
static void sun4m_hw_init(const struct sun4m_hwdef *hwdef, QEMUMachineInitArgs *args) { const char *cpu_model = args->cpu_model; unsigned int i; void *iommu, *espdma, *ledma, *nvram; qemu_irq *cpu_irqs[MAX_CPUS], slavio_irq[32], slavio_cpu_irq[MAX_CPUS], espdma_i...
false
qemu
c16547326988cc321c9bff43ed91cbe753e52892
static void sun4m_hw_init(const struct sun4m_hwdef *hwdef, QEMUMachineInitArgs *args) { const char *cpu_model = args->cpu_model; unsigned int i; void *iommu, *espdma, *ledma, *nvram; qemu_irq *cpu_irqs[MAX_CPUS], slavio_irq[32], slavio_cpu_irq[MAX_CPUS], espdma_i...
{ "code": [], "line_no": [] }
static void FUNC_0(const struct sun4m_hwdef *VAR_0, QEMUMachineInitArgs *VAR_1) { const char *VAR_2 = VAR_1->VAR_2; unsigned int VAR_3; void *VAR_4, *VAR_5, *VAR_6, *VAR_7; qemu_irq *cpu_irqs[MAX_CPUS], slavio_irq[32], slavio_cpu_irq[MAX_CPUS], espdma_irq, ledma_...
[ "static void FUNC_0(const struct sun4m_hwdef *VAR_0,\nQEMUMachineInitArgs *VAR_1)\n{", "const char *VAR_2 = VAR_1->VAR_2;", "unsigned int VAR_3;", "void *VAR_4, *VAR_5, *VAR_6, *VAR_7;", "qemu_irq *cpu_irqs[MAX_CPUS], slavio_irq[32], slavio_cpu_irq[MAX_CPUS],\nespdma_irq, ledma_irq;", "qemu_irq esp_reset,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
19,206
static inline void gen_op_eval_ble(TCGv dst, TCGv_i32 src) { gen_mov_reg_N(cpu_tmp0, src); gen_mov_reg_V(dst, src); tcg_gen_xor_tl(dst, dst, cpu_tmp0); gen_mov_reg_Z(cpu_tmp0, src); tcg_gen_or_tl(dst, dst, cpu_tmp0); }
false
qemu
de9e9d9f17a36ff76c1a02a5348835e5e0a081b0
static inline void gen_op_eval_ble(TCGv dst, TCGv_i32 src) { gen_mov_reg_N(cpu_tmp0, src); gen_mov_reg_V(dst, src); tcg_gen_xor_tl(dst, dst, cpu_tmp0); gen_mov_reg_Z(cpu_tmp0, src); tcg_gen_or_tl(dst, dst, cpu_tmp0); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGv VAR_0, TCGv_i32 VAR_1) { gen_mov_reg_N(cpu_tmp0, VAR_1); gen_mov_reg_V(VAR_0, VAR_1); tcg_gen_xor_tl(VAR_0, VAR_0, cpu_tmp0); gen_mov_reg_Z(cpu_tmp0, VAR_1); tcg_gen_or_tl(VAR_0, VAR_0, cpu_tmp0); }
[ "static inline void FUNC_0(TCGv VAR_0, TCGv_i32 VAR_1)\n{", "gen_mov_reg_N(cpu_tmp0, VAR_1);", "gen_mov_reg_V(VAR_0, VAR_1);", "tcg_gen_xor_tl(VAR_0, VAR_0, cpu_tmp0);", "gen_mov_reg_Z(cpu_tmp0, VAR_1);", "tcg_gen_or_tl(VAR_0, VAR_0, cpu_tmp0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
19,207
static void colo_compare_finalize(Object *obj) { CompareState *s = COLO_COMPARE(obj); qemu_chr_fe_deinit(&s->chr_pri_in, false); qemu_chr_fe_deinit(&s->chr_sec_in, false); qemu_chr_fe_deinit(&s->chr_out, false); g_main_loop_quit(s->compare_loop); qemu_thread_join(&s->thread); /...
false
qemu
dd321ecfc2e82e6f9578b986060b1aa3f036bd98
static void colo_compare_finalize(Object *obj) { CompareState *s = COLO_COMPARE(obj); qemu_chr_fe_deinit(&s->chr_pri_in, false); qemu_chr_fe_deinit(&s->chr_sec_in, false); qemu_chr_fe_deinit(&s->chr_out, false); g_main_loop_quit(s->compare_loop); qemu_thread_join(&s->thread); ...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { CompareState *s = COLO_COMPARE(VAR_0); qemu_chr_fe_deinit(&s->chr_pri_in, false); qemu_chr_fe_deinit(&s->chr_sec_in, false); qemu_chr_fe_deinit(&s->chr_out, false); g_main_loop_quit(s->compare_loop); qemu_thread_join(&s->thread); g_queu...
[ "static void FUNC_0(Object *VAR_0)\n{", "CompareState *s = COLO_COMPARE(VAR_0);", "qemu_chr_fe_deinit(&s->chr_pri_in, false);", "qemu_chr_fe_deinit(&s->chr_sec_in, false);", "qemu_chr_fe_deinit(&s->chr_out, false);", "g_main_loop_quit(s->compare_loop);", "qemu_thread_join(&s->thread);", "g_queue_forea...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
19,208
static int exec_close(MigrationState *s) { int ret = 0; DPRINTF("exec_close\n"); ret = qemu_fclose(s->opaque); s->opaque = NULL; s->fd = -1; if (ret >= 0 && !(WIFEXITED(ret) && WEXITSTATUS(ret) == 0)) { /* close succeeded, but non-zero exit code: */ ret = -EIO; /* fake e...
false
qemu
13c7b2da073ec83cb47f9582149c8d28bb038e73
static int exec_close(MigrationState *s) { int ret = 0; DPRINTF("exec_close\n"); ret = qemu_fclose(s->opaque); s->opaque = NULL; s->fd = -1; if (ret >= 0 && !(WIFEXITED(ret) && WEXITSTATUS(ret) == 0)) { ret = -EIO; } return ret; }
{ "code": [], "line_no": [] }
static int FUNC_0(MigrationState *VAR_0) { int VAR_1 = 0; DPRINTF("FUNC_0\n"); VAR_1 = qemu_fclose(VAR_0->opaque); VAR_0->opaque = NULL; VAR_0->fd = -1; if (VAR_1 >= 0 && !(WIFEXITED(VAR_1) && WEXITSTATUS(VAR_1) == 0)) { VAR_1 = -EIO; } return VAR_1; }
[ "static int FUNC_0(MigrationState *VAR_0)\n{", "int VAR_1 = 0;", "DPRINTF(\"FUNC_0\\n\");", "VAR_1 = qemu_fclose(VAR_0->opaque);", "VAR_0->opaque = NULL;", "VAR_0->fd = -1;", "if (VAR_1 >= 0 && !(WIFEXITED(VAR_1) && WEXITSTATUS(VAR_1) == 0)) {", "VAR_1 = -EIO;", "}", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
19,209
static int megasas_handle_abort(MegasasState *s, MegasasCmd *cmd) { uint64_t abort_ctx = le64_to_cpu(cmd->frame->abort.abort_context); target_phys_addr_t abort_addr, addr_hi, addr_lo; MegasasCmd *abort_cmd; addr_hi = le32_to_cpu(cmd->frame->abort.abort_mfi_addr_hi); addr_lo = le32_to_cpu(cmd...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static int megasas_handle_abort(MegasasState *s, MegasasCmd *cmd) { uint64_t abort_ctx = le64_to_cpu(cmd->frame->abort.abort_context); target_phys_addr_t abort_addr, addr_hi, addr_lo; MegasasCmd *abort_cmd; addr_hi = le32_to_cpu(cmd->frame->abort.abort_mfi_addr_hi); addr_lo = le32_to_cpu(cmd...
{ "code": [], "line_no": [] }
static int FUNC_0(MegasasState *VAR_0, MegasasCmd *VAR_1) { uint64_t abort_ctx = le64_to_cpu(VAR_1->frame->abort.abort_context); target_phys_addr_t abort_addr, addr_hi, addr_lo; MegasasCmd *abort_cmd; addr_hi = le32_to_cpu(VAR_1->frame->abort.abort_mfi_addr_hi); addr_lo = le32_to_cpu(VAR_1->...
[ "static int FUNC_0(MegasasState *VAR_0, MegasasCmd *VAR_1)\n{", "uint64_t abort_ctx = le64_to_cpu(VAR_1->frame->abort.abort_context);", "target_phys_addr_t abort_addr, addr_hi, addr_lo;", "MegasasCmd *abort_cmd;", "addr_hi = le32_to_cpu(VAR_1->frame->abort.abort_mfi_addr_hi);", "addr_lo = le32_to_cpu(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [...
19,210
static bool aio_epoll_enabled(AioContext *ctx) { /* Fall back to ppoll when external clients are disabled. */ return !aio_external_disabled(ctx) && ctx->epoll_enabled; }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
static bool aio_epoll_enabled(AioContext *ctx) { return !aio_external_disabled(ctx) && ctx->epoll_enabled; }
{ "code": [], "line_no": [] }
static bool FUNC_0(AioContext *ctx) { return !aio_external_disabled(ctx) && ctx->epoll_enabled; }
[ "static bool FUNC_0(AioContext *ctx)\n{", "return !aio_external_disabled(ctx) && ctx->epoll_enabled;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ] ]
19,211
av_cold void ff_h264_decode_init_vlc(void){ static int done = 0; if (!done) { int i; int offset; done = 1; chroma_dc_coeff_token_vlc.table = chroma_dc_coeff_token_vlc_table; chroma_dc_coeff_token_vlc.table_allocated = chroma_dc_coeff_token_vlc_table_size; ...
true
FFmpeg
54e1b62ee28f1588ca35d26eeb2df1fb59040de3
av_cold void ff_h264_decode_init_vlc(void){ static int done = 0; if (!done) { int i; int offset; done = 1; chroma_dc_coeff_token_vlc.table = chroma_dc_coeff_token_vlc_table; chroma_dc_coeff_token_vlc.table_allocated = chroma_dc_coeff_token_vlc_table_size; ...
{ "code": [ " chroma_dc_total_zeros_vlc[i].table = chroma_dc_total_zeros_vlc_tables[i];", " chroma_dc_total_zeros_vlc[i].table_allocated = chroma_dc_total_zeros_vlc_tables_size;", " init_vlc(&chroma_dc_total_zeros_vlc[i],", " chroma422_dc_total_zeros_vlc[i]....
av_cold void FUNC_0(void){ static int VAR_0 = 0; if (!VAR_0) { int VAR_1; int VAR_2; VAR_0 = 1; chroma_dc_coeff_token_vlc.table = chroma_dc_coeff_token_vlc_table; chroma_dc_coeff_token_vlc.table_allocated = chroma_dc_coeff_token_vlc_table_size; init_vl...
[ "av_cold void FUNC_0(void){", "static int VAR_0 = 0;", "if (!VAR_0) {", "int VAR_1;", "int VAR_2;", "VAR_0 = 1;", "chroma_dc_coeff_token_vlc.table = chroma_dc_coeff_token_vlc_table;", "chroma_dc_coeff_token_vlc.table_allocated = chroma_dc_coeff_token_vlc_table_size;", "init_vlc(&chroma_dc_coeff_toke...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27 ], [ 31 ], [ 33 ], [ 35, 37, 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55...
19,212
static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, unsigned int width, unsigned int height, int lumStride, int chromStride, int dstStride, int vertLumPerChroma) { unsigned y; const unsigned chromWidth= width>>1; for(y=0; y<height; y++) { ...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, unsigned int width, unsigned int height, int lumStride, int chromStride, int dstStride, int vertLumPerChroma) { unsigned y; const unsigned chromWidth= width>>1; for(y=0; y<height; y++) { ...
{ "code": [ "\tunsigned int width, unsigned int height,", "\tunsigned int width, unsigned int height,", "\tunsigned int width, unsigned int height,", "\tunsigned int width, unsigned int height,", "\tunsigned int width, unsigned int height,", "\tunsigned int width, unsigned int height,", "\...
static inline void FUNC_0(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, unsigned int width, unsigned int height, int lumStride, int chromStride, int dstStride, int vertLumPerChroma) { unsigned VAR_0; const unsigned VAR_1= width>>1; for(VAR_0=0; VAR_0<height; VA...
[ "static inline void FUNC_0(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,\nunsigned int width, unsigned int height,\nint lumStride, int chromStride, int dstStride, int vertLumPerChroma)\n{", "unsigned VAR_0;", "const unsigned VAR_1= width>>1;", "for(VAR_0=0; VAR_...
[ 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 47, 49, 51, 53, 55, 57, 59, 61, 65, 67, 69, 71, 75, 77,...
19,214
static inline int get_lowest_part_list_y(H264Context *h, Picture *pic, int n, int height, int y_offset, int list) { int raw_my = h->mv_cache[list][scan8[n]][1]; int filter_height = (raw_my & 3) ? 2 : 0; int full_my = (raw_my >> 2) + y_offset; i...
true
FFmpeg
fb845ffdd335a1efd6dfd43e8adeb530397b348e
static inline int get_lowest_part_list_y(H264Context *h, Picture *pic, int n, int height, int y_offset, int list) { int raw_my = h->mv_cache[list][scan8[n]][1]; int filter_height = (raw_my & 3) ? 2 : 0; int full_my = (raw_my >> 2) + y_offset; i...
{ "code": [ " int filter_height = (raw_my & 3) ? 2 : 0;", " int top = full_my - filter_height;", " int bottom = full_my + filter_height + height;" ], "line_no": [ 9, 13, 15 ] }
static inline int FUNC_0(H264Context *VAR_0, Picture *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { int VAR_6 = VAR_0->mv_cache[VAR_5][scan8[VAR_2]][1]; int VAR_7 = (VAR_6 & 3) ? 2 : 0; int VAR_8 = (VAR_6 >> 2) + VAR_4; int VAR_9 ...
[ "static inline int FUNC_0(H264Context *VAR_0, Picture *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{", "int VAR_6 = VAR_0->mv_cache[VAR_5][scan8[VAR_2]][1];", "int VAR_7 = (VAR_6 & 3) ? 2 : 0;", "int VAR_8 = (VAR_6 >> 2) + VAR_4;", "int VAR_9 = VAR_8 - VAR_7;", "int VAR_10 ...
[ 0, 0, 1, 0, 1, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
19,215
int avpriv_dv_produce_packet(DVDemuxContext *c, AVPacket *pkt, uint8_t* buf, int buf_size) { int size, i; uint8_t *ppcm[4] = {0}; if (buf_size < DV_PROFILE_BYTES || !(c->sys = avpriv_dv_frame_profile(c->sys, buf, buf_size)) || buf_size < c->sys->frame_size) { ...
true
FFmpeg
5a396bb3a66a61a68b80f2369d0249729bf85e04
int avpriv_dv_produce_packet(DVDemuxContext *c, AVPacket *pkt, uint8_t* buf, int buf_size) { int size, i; uint8_t *ppcm[4] = {0}; if (buf_size < DV_PROFILE_BYTES || !(c->sys = avpriv_dv_frame_profile(c->sys, buf, buf_size)) || buf_size < c->sys->frame_size) { ...
{ "code": [ " dv_extract_audio(buf, ppcm, c->sys);" ], "line_no": [ 41 ] }
int FUNC_0(DVDemuxContext *VAR_0, AVPacket *VAR_1, uint8_t* VAR_2, int VAR_3) { int VAR_4, VAR_5; uint8_t *ppcm[4] = {0}; if (VAR_3 < DV_PROFILE_BYTES || !(VAR_0->sys = avpriv_dv_frame_profile(VAR_0->sys, VAR_2, VAR_3)) || VAR_3 < VAR_0->sys->frame_size) { ...
[ "int FUNC_0(DVDemuxContext *VAR_0, AVPacket *VAR_1,\nuint8_t* VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "uint8_t *ppcm[4] = {0};", "if (VAR_3 < DV_PROFILE_BYTES ||\n!(VAR_0->sys = avpriv_dv_frame_profile(VAR_0->sys, VAR_2, VAR_3)) ||\nVAR_3 < VAR_0->sys->frame_size) {", "return -1;", "}", "VAR_4 = dv_...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15, 17 ], [ 19 ], [ 21 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [...
19,217
static void fw_cfg_io_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = fw_cfg_io_realize; dc->props = fw_cfg_io_properties; }
true
qemu
e4f4fb1eca795e36f363b4647724221e774523c1
static void fw_cfg_io_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = fw_cfg_io_realize; dc->props = fw_cfg_io_properties; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = fw_cfg_io_realize; dc->props = fw_cfg_io_properties; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = fw_cfg_io_realize;", "dc->props = fw_cfg_io_properties;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 18 ] ]
19,218
static int net_socket_listen_init(VLANState *vlan, const char *model, const char *name, const char *host_str) { NetSocketListenState *s; int fd, val, ret; struct sockaddr_in saddr; if (parse_h...
true
qemu
a46667ea29218565473e430ceae62e2838f6ce3f
static int net_socket_listen_init(VLANState *vlan, const char *model, const char *name, const char *host_str) { NetSocketListenState *s; int fd, val, ret; struct sockaddr_in saddr; if (parse_h...
{ "code": [], "line_no": [] }
static int FUNC_0(VLANState *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3) { NetSocketListenState *s; int VAR_4, VAR_5, VAR_6; struct sockaddr_in VAR_7; if (parse_host_port(&...
[ "static int FUNC_0(VLANState *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3)\n{", "NetSocketListenState *s;", "int VAR_4, VAR_5, VAR_6;", "struct sockaddr_in VAR_7;", "if (parse_host_port(&VAR_7, VAR_3) < 0)\nreturn -1;", "s = g_malloc0(sizeof(NetSocketListenState));", "VAR_4 = qemu_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ...
19,219
static void e1000e_pci_realize(PCIDevice *pci_dev, Error **errp) { static const uint16_t e1000e_pmrb_offset = 0x0C8; static const uint16_t e1000e_pcie_offset = 0x0E0; static const uint16_t e1000e_aer_offset = 0x100; static const uint16_t e1000e_dsn_offset = 0x140; E1000EState *s = E1000E(pci...
true
qemu
33848ceed79679b5c9e558b768447af2614b8db2
static void e1000e_pci_realize(PCIDevice *pci_dev, Error **errp) { static const uint16_t e1000e_pmrb_offset = 0x0C8; static const uint16_t e1000e_pcie_offset = 0x0E0; static const uint16_t e1000e_aer_offset = 0x100; static const uint16_t e1000e_dsn_offset = 0x140; E1000EState *s = E1000E(pci...
{ "code": [ " if (pcie_aer_init(pci_dev, e1000e_aer_offset, PCI_ERR_SIZEOF) < 0) {" ], "line_no": [ 137 ] }
static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1) { static const uint16_t VAR_2 = 0x0C8; static const uint16_t VAR_3 = 0x0E0; static const uint16_t VAR_4 = 0x100; static const uint16_t VAR_5 = 0x140; E1000EState *s = E1000E(VAR_0); uint8_t *macaddr; int VAR_6; trace_e1000e...
[ "static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{", "static const uint16_t VAR_2 = 0x0C8;", "static const uint16_t VAR_3 = 0x0E0;", "static const uint16_t VAR_4 = 0x100;", "static const uint16_t VAR_5 = 0x140;", "E1000EState *s = E1000E(VAR_0);", "uint8_t *macaddr;", "int VAR_6;", "trace_e10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 49, 51 ], [ 53, 55 ], [ 67,...
19,220
int ff_ac3_bit_alloc_calc_mask(AC3BitAllocParameters *s, int16_t *band_psd, int start, int end, int fast_gain, int is_lfe, int dba_mode, int dba_nsegs, uint8_t *dba_offsets, uint8_t *dba_lengths, uint8_t *dba_values, ...
true
FFmpeg
bc4fee7f2a51635fa3c0f61d1e5164da1efeded3
int ff_ac3_bit_alloc_calc_mask(AC3BitAllocParameters *s, int16_t *band_psd, int start, int end, int fast_gain, int is_lfe, int dba_mode, int dba_nsegs, uint8_t *dba_offsets, uint8_t *dba_lengths, uint8_t *dba_values, ...
{ "code": [], "line_no": [] }
int FUNC_0(AC3BitAllocParameters *VAR_0, int16_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, uint8_t *VAR_8, uint8_t *VAR_9, uint8_t *VAR_10, int16_t *VAR_11) { i...
[ "int FUNC_0(AC3BitAllocParameters *VAR_0, int16_t *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5,\nint VAR_6, int VAR_7, uint8_t *VAR_8,\nuint8_t *VAR_9, uint8_t *VAR_10,\nint16_t *VAR_11)\n{", "int16_t excite[AC3_CRITICAL_BANDS];", "int VAR_12;", "int VAR_13, VAR_14, VAR_15, VAR_16;", "int VAR_17, 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, 2, 3, 4, 5, 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22, 23 ], [ 24 ], [ ...
19,221
int v9fs_remove_xattr(FsContext *ctx, const char *path, const char *name) { XattrOperations *xops = get_xattr_operations(ctx->xops, name); if (xops) { return xops->removexattr(ctx, path, name); } errno = -EOPNOTSUPP; return -1; }
true
qemu
8af00205445eb901f17ca5b632d976065187538e
int v9fs_remove_xattr(FsContext *ctx, const char *path, const char *name) { XattrOperations *xops = get_xattr_operations(ctx->xops, name); if (xops) { return xops->removexattr(ctx, path, name); } errno = -EOPNOTSUPP; return -1; }
{ "code": [ " errno = -EOPNOTSUPP;", " errno = -EOPNOTSUPP;", " errno = -EOPNOTSUPP;" ], "line_no": [ 15, 15, 15 ] }
int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2) { XattrOperations *xops = get_xattr_operations(VAR_0->xops, VAR_2); if (xops) { return xops->removexattr(VAR_0, VAR_1, VAR_2); } errno = -EOPNOTSUPP; return -1; }
[ "int FUNC_0(FsContext *VAR_0,\nconst char *VAR_1, const char *VAR_2)\n{", "XattrOperations *xops = get_xattr_operations(VAR_0->xops, VAR_2);", "if (xops) {", "return xops->removexattr(VAR_0, VAR_1, VAR_2);", "}", "errno = -EOPNOTSUPP;", "return -1;", "}" ]
[ 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ] ]
19,222
static void gen_rfsvc(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_rfsvc(cpu_env); gen_sync_exception(ctx); #endif }...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_rfsvc(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_rfsvc(cpu_env); gen_sync_exception(ctx); #endif }...
{ "code": [ " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_rfsvc(cpu_env); gen_sync_exception(VAR_0); #e...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "return;", "}", "gen_helper_rfsvc(cpu_env);", "gen_sync_exception(VAR_0);", "#...
[ 0, 1, 1, 1, 0, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ] ]
19,224
static void pc_init1(QEMUMachineInitArgs *args, int pci_enabled, int kvmclock_enabled) { MemoryRegion *system_memory = get_system_memory(); MemoryRegion *system_io = get_system_io(); int i; ram_addr_t below_4g_mem_size, above_4g_mem_size; PCIBus *pci...
true
qemu
7839ff593be03a7de3c6760e0b50c565ea751d36
static void pc_init1(QEMUMachineInitArgs *args, int pci_enabled, int kvmclock_enabled) { MemoryRegion *system_memory = get_system_memory(); MemoryRegion *system_io = get_system_io(); int i; ram_addr_t below_4g_mem_size, above_4g_mem_size; PCIBus *pci...
{ "code": [ " if (has_pvpanic) {", " pvpanic_init(isa_bus);", " if (has_pvpanic) {", " pvpanic_init(isa_bus);" ], "line_no": [ 337, 339, 337, 339 ] }
static void FUNC_0(QEMUMachineInitArgs *VAR_0, int VAR_1, int VAR_2) { MemoryRegion *system_memory = get_system_memory(); MemoryRegion *system_io = get_system_io(); int VAR_3; ram_addr_t below_4g_mem_size, above_4g_mem_size; PCIBus *pci_bus; ISA...
[ "static void FUNC_0(QEMUMachineInitArgs *VAR_0,\nint VAR_1,\nint VAR_2)\n{", "MemoryRegion *system_memory = get_system_memory();", "MemoryRegion *system_io = get_system_io();", "int VAR_3;", "ram_addr_t below_4g_mem_size, above_4g_mem_size;", "PCIBus *pci_bus;", "ISABus *isa_bus;", "PCII440FXState *i4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
19,225
static void v9fs_getattr(void *opaque) { int32_t fid; size_t offset = 7; ssize_t retval = 0; struct stat stbuf; V9fsFidState *fidp; uint64_t request_mask; V9fsStatDotl v9stat_dotl; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dq", &fid, &...
true
qemu
c572f23a3e7180dbeab5e86583e43ea2afed6271
static void v9fs_getattr(void *opaque) { int32_t fid; size_t offset = 7; ssize_t retval = 0; struct stat stbuf; V9fsFidState *fidp; uint64_t request_mask; V9fsStatDotl v9stat_dotl; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dq", &fid, &...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int32_t fid; size_t offset = 7; ssize_t retval = 0; struct stat VAR_1; V9fsFidState *fidp; uint64_t request_mask; V9fsStatDotl v9stat_dotl; V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dq", &fid, &request_...
[ "static void FUNC_0(void *VAR_0)\n{", "int32_t fid;", "size_t offset = 7;", "ssize_t retval = 0;", "struct stat VAR_1;", "V9fsFidState *fidp;", "uint64_t request_mask;", "V9fsStatDotl v9stat_dotl;", "V9fsPDU *pdu = VAR_0;", "V9fsState *s = pdu->s;", "pdu_unmarshal(pdu, offset, \"dq\", &fid, &req...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 48 ], [ 50 ], [ 52 ], [ 54 ...
19,228
static int parse_audio_var(AVFormatContext *avctx, AVStream *st, const char *name, int size) { AVIOContext *pb = avctx->pb; if (!strcmp(name, "__DIR_COUNT")) { st->nb_frames = var_read_int(pb, size); } else if (!strcmp(name, "AUDIO_FORMAT")) { st->codec->codec_id = var_read_int(pb, siz...
true
FFmpeg
b89815f5199fd5e9a2d21417f827bf7c57244e84
static int parse_audio_var(AVFormatContext *avctx, AVStream *st, const char *name, int size) { AVIOContext *pb = avctx->pb; if (!strcmp(name, "__DIR_COUNT")) { st->nb_frames = var_read_int(pb, size); } else if (!strcmp(name, "AUDIO_FORMAT")) { st->codec->codec_id = var_read_int(pb, siz...
{ "code": [ " st->codec->channels = var_read_int(pb, size);", " st->codec->channel_layout = (st->codec->channels == 1) ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;" ], "line_no": [ 25, 27 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const char *VAR_2, int VAR_3) { AVIOContext *pb = VAR_0->pb; if (!strcmp(VAR_2, "__DIR_COUNT")) { VAR_1->nb_frames = var_read_int(pb, VAR_3); } else if (!strcmp(VAR_2, "AUDIO_FORMAT")) { VAR_1->codec->codec_id = var_read_int(pb...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const char *VAR_2, int VAR_3)\n{", "AVIOContext *pb = VAR_0->pb;", "if (!strcmp(VAR_2, \"__DIR_COUNT\")) {", "VAR_1->nb_frames = var_read_int(pb, VAR_3);", "} else if (!strcmp(VAR_2, \"AUDIO_FORMAT\")) {", "VAR_1->codec->codec_id = var_read_int(p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
19,229
static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) { const int w = 8; const int ix = ox >> (16 + shift); const int iy = oy ...
true
FFmpeg
58cf31cee7a456057f337b3102a03206d833d5e8
static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) { const int w = 8; const int ix = ox >> (16 + shift); const int iy = oy ...
{ "code": [ " int need_emu = (unsigned) ix >= width - w ||", " (unsigned) iy >= height - h;" ], "line_no": [ 55, 57 ] }
static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10, int VAR_11, int VAR_12, int VAR_13) { const int VAR_14 = 8; const int VAR_15 = VAR_4 >> (...
[ "static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5,\nint VAR_6, int VAR_7, int VAR_8, int VAR_9,\nint VAR_10, int VAR_11, int VAR_12, int VAR_13)\n{", "const int VAR_14 = 8;", "const int VAR_15 = VAR_4 >> (16 + VAR_10);", "const int VAR_16 = VAR_5 >> (16 +...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 47 ], [...
19,230
static int decode_band_types(AACContext *ac, enum BandType band_type[120], int band_type_run_end[120], GetBitContext *gb, IndividualChannelStream *ics) { int g, idx = 0; const int bits = (ics->window_sequence[0] == EIGHT_SHORT_SEQUENCE) ? 3 : 5; ...
true
FFmpeg
dbe29db8cb09fb39bd8dc5b25934e92279d0aa8d
static int decode_band_types(AACContext *ac, enum BandType band_type[120], int band_type_run_end[120], GetBitContext *gb, IndividualChannelStream *ics) { int g, idx = 0; const int bits = (ics->window_sequence[0] == EIGHT_SHORT_SEQUENCE) ? 3 : 5; ...
{ "code": [ " av_log(ac->avctx, AV_LOG_ERROR, overread_err);" ], "line_no": [ 41 ] }
static int FUNC_0(AACContext *VAR_0, enum BandType VAR_1[120], int VAR_2[120], GetBitContext *VAR_3, IndividualChannelStream *VAR_4) { int VAR_5, VAR_6 = 0; const int VAR_7 = (VAR_4->window_sequence[0] == EIGHT_SHORT_SEQUENCE) ? 3 : 5; for (VAR...
[ "static int FUNC_0(AACContext *VAR_0, enum BandType VAR_1[120],\nint VAR_2[120], GetBitContext *VAR_3,\nIndividualChannelStream *VAR_4)\n{", "int VAR_5, VAR_6 = 0;", "const int VAR_7 = (VAR_4->window_sequence[0] == EIGHT_SHORT_SEQUENCE) ? 3 : 5;", "for (VAR_5 = 0; VAR_5 < VAR_4->num_window_groups; VAR_5++) {"...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
19,231
target_ulong helper_ldr(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, int mem_idx) { uint64_t tmp; tmp = do_lbu(env, arg2, mem_idx); arg1 = (arg1 & 0xFFFFFFFFFFFFFF00ULL) | tmp; if (GET_LMASK64(arg2) >= 1) { tmp = do_lbu(env, GET_OFFSET(arg2, -1), me...
true
qemu
fc40787abcf8452b8f50d92b7a13243a12972c7a
target_ulong helper_ldr(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, int mem_idx) { uint64_t tmp; tmp = do_lbu(env, arg2, mem_idx); arg1 = (arg1 & 0xFFFFFFFFFFFFFF00ULL) | tmp; if (GET_LMASK64(arg2) >= 1) { tmp = do_lbu(env, GET_OFFSET(arg2, -1), me...
{ "code": [ " target_ulong arg2, int mem_idx)", " tmp = do_lbu(env, arg2, mem_idx);", " target_ulong arg2, int mem_idx)", " tmp = do_lbu(env, arg2, mem_idx);", " tmp = do_lbu(env, GET_OFFSET(arg2, -1), mem_idx);", " tmp = do_lbu...
target_ulong FUNC_0(CPUMIPSState *env, target_ulong arg1, target_ulong arg2, int mem_idx) { uint64_t tmp; tmp = do_lbu(env, arg2, mem_idx); arg1 = (arg1 & 0xFFFFFFFFFFFFFF00ULL) | tmp; if (GET_LMASK64(arg2) >= 1) { tmp = do_lbu(env, GET_OFFSET(arg2, -1), mem_id...
[ "target_ulong FUNC_0(CPUMIPSState *env, target_ulong arg1,\ntarget_ulong arg2, int mem_idx)\n{", "uint64_t tmp;", "tmp = do_lbu(env, arg2, mem_idx);", "arg1 = (arg1 & 0xFFFFFFFFFFFFFF00ULL) | tmp;", "if (GET_LMASK64(arg2) >= 1) {", "tmp = do_lbu(env, GET_OFFSET(arg2, -1), mem_idx);", "arg1 = (arg1 & 0xF...
[ 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], ...
19,232
int ff_hevc_decode_nal_sps(HEVCContext *s) { const AVPixFmtDescriptor *desc; GetBitContext *gb = &s->HEVClc->gb; int ret = 0; unsigned int sps_id = 0; int log2_diff_max_min_transform_block_size; int bit_depth_chroma, start, vui_present, sublayer_ordering_info; int i; HEVCSPS *...
true
FFmpeg
205b2ba3d677330e023aac2f4bd3f624039256b9
int ff_hevc_decode_nal_sps(HEVCContext *s) { const AVPixFmtDescriptor *desc; GetBitContext *gb = &s->HEVClc->gb; int ret = 0; unsigned int sps_id = 0; int log2_diff_max_min_transform_block_size; int bit_depth_chroma, start, vui_present, sublayer_ordering_info; int i; HEVCSPS *...
{ "code": [ " if (sps->log2_min_tb_size >= sps->log2_min_cb_size) {" ], "line_no": [ 391 ] }
int FUNC_0(HEVCContext *VAR_0) { const AVPixFmtDescriptor *VAR_1; GetBitContext *gb = &VAR_0->HEVClc->gb; int VAR_2 = 0; unsigned int VAR_3 = 0; int VAR_4; int VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9; HEVCSPS *sps; AVBufferRef *sps_buf = av_buffer_allocz(sizeof(*sps)); ...
[ "int FUNC_0(HEVCContext *VAR_0)\n{", "const AVPixFmtDescriptor *VAR_1;", "GetBitContext *gb = &VAR_0->HEVClc->gb;", "int VAR_2 = 0;", "unsigned int VAR_3 = 0;", "int VAR_4;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9;", "HEVCSPS *sps;", "AVBufferRef *sps_buf = av_buffer_allocz(sizeof(*sps));",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
19,234
static BlockDriverAIOCB *quorum_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, ...
true
qemu
a9db86b223030bd40bdd81b160788196bc95fe6f
static BlockDriverAIOCB *quorum_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, ...
{ "code": [ " int i;", "static BlockDriverAIOCB *quorum_aio_readv(BlockDriverState *bs,", " int64_t sector_num,", " QEMUIOVector *qiov,", " int nb_sectors,", " ...
static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, ...
[ "static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num,\nQEMUIOVector *qiov,\nint nb_sectors,\nBlockDriverCompletionFunc *cb,\nvoid *opaque)\n{", "BDRVQuorumState *s = bs->opaque;", "QuorumAIOCB *acb = quorum_aio_get(s, bs, qiov, sector_num,\nnb_sectors, cb, opaque);", "int VAR_0;", "acb...
[ 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51 ], [ 53 ] ]
19,235
static int tgv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; TgvContext *s = avctx->priv_data; const uint8_t *buf_end =...
true
FFmpeg
bb9f55163f17145d5b220b38e23c7d55824ec7c5
static int tgv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; TgvContext *s = avctx->priv_data; const uint8_t *buf_end =...
{ "code": [ " !(s->frame_buffer = av_malloc(s->width * s->height)))" ], "line_no": [ 105 ] }
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; TgvContext *s = VAR_0->priv_data; const uint8_t *VAR_6 = VAR_4 + VAR_5;...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "TgvContext *s = VAR_0->priv_data;", "const uint8_t *VAR_6 = VAR_4 + VAR_5;", "AVFrame *frame = VAR_1;", "int VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
19,236
void HELPER(ove)(CPUOpenRISCState *env, target_ulong test) { if (unlikely(test)) { OpenRISCCPU *cpu = openrisc_env_get_cpu(env); CPUState *cs = CPU(cpu); cs->exception_index = EXCP_RANGE; cpu_loop_exit_restore(cs, GETPC()); } }
true
qemu
9745807191a81c45970f780166f44a7f93b18653
void HELPER(ove)(CPUOpenRISCState *env, target_ulong test) { if (unlikely(test)) { OpenRISCCPU *cpu = openrisc_env_get_cpu(env); CPUState *cs = CPU(cpu); cs->exception_index = EXCP_RANGE; cpu_loop_exit_restore(cs, GETPC()); } }
{ "code": [ "void HELPER(ove)(CPUOpenRISCState *env, target_ulong test)", " if (unlikely(test)) {", " OpenRISCCPU *cpu = openrisc_env_get_cpu(env);", " CPUState *cs = CPU(cpu);", " cs->exception_index = EXCP_RANGE;", " cpu_loop_exit_restore(cs, GETPC());" ], ...
void FUNC_0(ove)(CPUOpenRISCState *env, target_ulong test) { if (unlikely(test)) { OpenRISCCPU *cpu = openrisc_env_get_cpu(env); CPUState *cs = CPU(cpu); cs->exception_index = EXCP_RANGE; cpu_loop_exit_restore(cs, GETPC()); } }
[ "void FUNC_0(ove)(CPUOpenRISCState *env, target_ulong test)\n{", "if (unlikely(test)) {", "OpenRISCCPU *cpu = openrisc_env_get_cpu(env);", "CPUState *cs = CPU(cpu);", "cs->exception_index = EXCP_RANGE;", "cpu_loop_exit_restore(cs, GETPC());", "}", "}" ]
[ 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
19,239
void net_slirp_smb(const char *exported_dir) { struct in_addr vserver_addr = { .s_addr = 0 }; if (legacy_smb_export) { fprintf(stderr, "-smb given twice\n"); exit(1); } legacy_smb_export = exported_dir; if (!QTAILQ_EMPTY(&slirp_stacks)) { slirp_smb(QTAILQ_FIRST(&sl...
true
qemu
0752706de257b38763006ff5bb6b39a97e669ba2
void net_slirp_smb(const char *exported_dir) { struct in_addr vserver_addr = { .s_addr = 0 }; if (legacy_smb_export) { fprintf(stderr, "-smb given twice\n"); exit(1); } legacy_smb_export = exported_dir; if (!QTAILQ_EMPTY(&slirp_stacks)) { slirp_smb(QTAILQ_FIRST(&sl...
{ "code": [ " exit(1);", "void net_slirp_smb(const char *exported_dir)", " exit(1);", " slirp_smb(QTAILQ_FIRST(&slirp_stacks), NULL, exported_dir,", " vserver_addr);" ], "line_no": [ 13, 1, 13, 21, 23 ] }
void FUNC_0(const char *VAR_0) { struct in_addr VAR_1 = { .s_addr = 0 }; if (legacy_smb_export) { fprintf(stderr, "-smb given twice\n"); exit(1); } legacy_smb_export = VAR_0; if (!QTAILQ_EMPTY(&slirp_stacks)) { slirp_smb(QTAILQ_FIRST(&slirp_stacks), NULL, VAR_0, ...
[ "void FUNC_0(const char *VAR_0)\n{", "struct in_addr VAR_1 = { .s_addr = 0 };", "if (legacy_smb_export) {", "fprintf(stderr, \"-smb given twice\\n\");", "exit(1);", "}", "legacy_smb_export = VAR_0;", "if (!QTAILQ_EMPTY(&slirp_stacks)) {", "slirp_smb(QTAILQ_FIRST(&slirp_stacks), NULL, VAR_0,\nVAR_1);...
[ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ] ]
19,240
static int cloop_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVCloopState *s = bs->opaque; uint32_t offsets_size, max_compressed_block_size = 1, i; int ret; bs->read_only = 1; /* read header */ ret = bdrv_pread(bs->file, 128, &s->block_size, 4); ...
true
qemu
d65f97a82c4ed48374a764c769d4ba1ea9724e97
static int cloop_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVCloopState *s = bs->opaque; uint32_t offsets_size, max_compressed_block_size = 1, i; int ret; bs->read_only = 1; ret = bdrv_pread(bs->file, 128, &s->block_size, 4); if (ret < 0) ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVCloopState *s = VAR_0->opaque; uint32_t offsets_size, max_compressed_block_size = 1, i; int VAR_4; VAR_0->read_only = 1; VAR_4 = bdrv_pread(VAR_0->file, 128, &s->block_size, 4); if...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVCloopState *s = VAR_0->opaque;", "uint32_t offsets_size, max_compressed_block_size = 1, i;", "int VAR_4;", "VAR_0->read_only = 1;", "VAR_4 = bdrv_pread(VAR_0->file, 128, &s->block_size, 4);", "if (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 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ], [ ...
19,241
void monitor_init(CharDriverState *hd, int show_banner) { int i; if (is_first_init) { for (i = 0; i < MAX_MON; i++) { monitor_hd[i] = NULL; } is_first_init = 0; } for (i = 0; i < MAX_MON; i++) { if (monitor_hd[i] == NULL) { monitor_hd[i] = hd; ...
true
qemu
ad8efe4b6e27f0ea87d6510c11ae11377eade93d
void monitor_init(CharDriverState *hd, int show_banner) { int i; if (is_first_init) { for (i = 0; i < MAX_MON; i++) { monitor_hd[i] = NULL; } is_first_init = 0; } for (i = 0; i < MAX_MON; i++) { if (monitor_hd[i] == NULL) { monitor_hd[i] = hd; ...
{ "code": [], "line_no": [] }
void FUNC_0(CharDriverState *VAR_0, int VAR_1) { int VAR_2; if (is_first_init) { for (VAR_2 = 0; VAR_2 < MAX_MON; VAR_2++) { monitor_hd[VAR_2] = NULL; } is_first_init = 0; } for (VAR_2 = 0; VAR_2 < MAX_MON; VAR_2++) { if (monitor_hd[VAR_2] == NULL) { ...
[ "void FUNC_0(CharDriverState *VAR_0, int VAR_1)\n{", "int VAR_2;", "if (is_first_init) {", "for (VAR_2 = 0; VAR_2 < MAX_MON; VAR_2++) {", "monitor_hd[VAR_2] = NULL;", "}", "is_first_init = 0;", "}", "for (VAR_2 = 0; VAR_2 < MAX_MON; VAR_2++) {", "if (monitor_hd[VAR_2] == NULL) {", "monitor_hd[VA...
[ 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,242
int ff_h264_decode_slice_header(H264Context *h, H264Context *h0) { unsigned int first_mb_in_slice; unsigned int pps_id; int ret; unsigned int slice_type, tmp, i, j; int last_pic_structure, last_pic_droppable; int must_reinit; int needs_reinit = 0; int field_pic_flag, bottom_fiel...
true
FFmpeg
c23a0e77dd492d6c794f89dbff3a438c95745e70
int ff_h264_decode_slice_header(H264Context *h, H264Context *h0) { unsigned int first_mb_in_slice; unsigned int pps_id; int ret; unsigned int slice_type, tmp, i, j; int last_pic_structure, last_pic_droppable; int must_reinit; int needs_reinit = 0; int field_pic_flag, bottom_fiel...
{ "code": [ " if (h == h0 && h->dequant_coeff_pps != pps_id) {" ], "line_no": [ 441 ] }
int FUNC_0(H264Context *VAR_0, H264Context *VAR_1) { unsigned int VAR_2; unsigned int VAR_3; int VAR_4; unsigned int VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9, VAR_10; int VAR_11; int VAR_12 = 0; int VAR_13, VAR_14; int VAR_15 = VAR_0 == VAR_1 && !VAR_1->current_slice; int...
[ "int FUNC_0(H264Context *VAR_0, H264Context *VAR_1)\n{", "unsigned int VAR_2;", "unsigned int VAR_3;", "int VAR_4;", "unsigned int VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9, VAR_10;", "int VAR_11;", "int VAR_12 = 0;", "int VAR_13, VAR_14;", "int VAR_15 = VAR_0 == VAR_1 && !VAR_1->current_slice;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
19,244
static void spatial_compose53i_dy_buffered(dwt_compose_t *cs, slice_buffer * sb, int width, int height, int stride_line){ int y= cs->y; int mirror0 = mirror(y-1, height-1); int mirror1 = mirror(y , height-1); int mirror2 = mirror(y+1, height-1); int mirror3 = mirror(y+2, height-1); DWTE...
true
FFmpeg
13705b69ebe9e375fdb52469760a0fbb5f593cc1
static void spatial_compose53i_dy_buffered(dwt_compose_t *cs, slice_buffer * sb, int width, int height, int stride_line){ int y= cs->y; int mirror0 = mirror(y-1, height-1); int mirror1 = mirror(y , height-1); int mirror2 = mirror(y+1, height-1); int mirror3 = mirror(y+2, height-1); DWTE...
{ "code": [ " if(mirror1 <= mirror3) vertical_compose53iL0(b1, b2, b3, width);", " if(mirror0 <= mirror2) vertical_compose53iH0(b0, b1, b2, width);", " if(y-1 >= 0) horizontal_compose53i(b0, width);", " if(mirror0 <= mirror2) horizontal_compose53i(b1, width);", " ...
static void FUNC_0(dwt_compose_t *VAR_0, slice_buffer * VAR_1, int VAR_2, int VAR_3, int VAR_4){ int VAR_5= VAR_0->VAR_5; int VAR_6 = mirror(VAR_5-1, VAR_3-1); int VAR_7 = mirror(VAR_5 , VAR_3-1); int VAR_8 = mirror(VAR_5+1, VAR_3-1); int VAR_9 = mirror(VAR_5+2, VAR_3-1); DWTELEM *b0= V...
[ "static void FUNC_0(dwt_compose_t *VAR_0, slice_buffer * VAR_1, int VAR_2, int VAR_3, int VAR_4){", "int VAR_5= VAR_0->VAR_5;", "int VAR_6 = mirror(VAR_5-1, VAR_3-1);", "int VAR_7 = mirror(VAR_5 , VAR_3-1);", "int VAR_8 = mirror(VAR_5+1, VAR_3-1);", "int VAR_9 = mirror(VAR_5+2, VAR_3-1);", "DWTELEM *b0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
19,246
void virtio_scsi_handle_ctrl_req(VirtIOSCSI *s, VirtIOSCSIReq *req) { VirtIODevice *vdev = (VirtIODevice *)s; uint32_t type; int r = 0; if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0, &type, sizeof(type)) < sizeof(type)) { virtio_scsi_bad_req(); return; ...
true
qemu
a8f2e5c8fffbaf7fbd4f0efc8efbeebade78008f
void virtio_scsi_handle_ctrl_req(VirtIOSCSI *s, VirtIOSCSIReq *req) { VirtIODevice *vdev = (VirtIODevice *)s; uint32_t type; int r = 0; if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0, &type, sizeof(type)) < sizeof(type)) { virtio_scsi_bad_req(); return; ...
{ "code": [ "void virtio_scsi_handle_ctrl_req(VirtIOSCSI *s, VirtIOSCSIReq *req)" ], "line_no": [ 1 ] }
void FUNC_0(VirtIOSCSI *VAR_0, VirtIOSCSIReq *VAR_1) { VirtIODevice *vdev = (VirtIODevice *)VAR_0; uint32_t type; int VAR_2 = 0; if (iov_to_buf(VAR_1->elem.out_sg, VAR_1->elem.out_num, 0, &type, sizeof(type)) < sizeof(type)) { virtio_scsi_bad_req(); return; ...
[ "void FUNC_0(VirtIOSCSI *VAR_0, VirtIOSCSIReq *VAR_1)\n{", "VirtIODevice *vdev = (VirtIODevice *)VAR_0;", "uint32_t type;", "int VAR_2 = 0;", "if (iov_to_buf(VAR_1->elem.out_sg, VAR_1->elem.out_num, 0,\n&type, sizeof(type)) < sizeof(type)) {", "virtio_scsi_bad_req();", "return;", "}", "virtio_tswap3...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49 ], [...
19,247
inline static void RENAME(hcscale)(uint16_t *dst, int dstWidth, uint8_t *src1, uint8_t *src2, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter, int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode, int srcFormat, uint8_t *formatConvBuffer) { if(srcFormat==IMGF...
true
FFmpeg
b7dc6f662868fbdad779c61c233b1d19d8b89d3c
inline static void RENAME(hcscale)(uint16_t *dst, int dstWidth, uint8_t *src1, uint8_t *src2, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter, int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode, int srcFormat, uint8_t *formatConvBuffer) { if(srcFormat==IMGF...
{ "code": [ "\t\t\t\t int srcFormat, uint8_t *formatConvBuffer)", "\t\t\t\"xorl %%ecx, %%ecx\t\t\\n\\t\"", "\t\t\tPREFETCH\" 1024(%%esi)\t\t\\n\\t\"\\", "\t\t\tPREFETCH\" 1056(%%esi)\t\t\\n\\t\"\\", "\t\t\tPREFETCH\" 1088(%%esi)\t\t\\n\\t\"\\", "\t\t\t\"xorl %%ecx, %%ecx\t\t\\n\\t\"", "\...
inline static void FUNC_0(hcscale)(uint16_t *dst, int dstWidth, uint8_t *src1, uint8_t *src2, int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter, int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode, int srcFormat, uint8_t *formatConvBuffer) { if(srcFormat==IMGF...
[ "inline static void FUNC_0(hcscale)(uint16_t *dst, int dstWidth, uint8_t *src1, uint8_t *src2,\nint srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter,\nint16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode,\nint srcFormat, uint8_t *formatConvBuffer)\n{", "if(srcFormat==IMGFMT_YUY2)\n{", ...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47,...
19,249
static uint64_t sniff_channel_order(uint8_t (*layout_map)[3], int tags) { int i, n, total_non_cc_elements; struct elem_to_channel e2c_vec[MAX_ELEM_ID] = {{ 0 }}; int num_front_channels, num_side_channels, num_back_channels; uint64_t layout; i = 0; num_front_channels = count_pai...
false
FFmpeg
a8d67efa53dae1d14614e3a7bd4e77e4eab066ab
static uint64_t sniff_channel_order(uint8_t (*layout_map)[3], int tags) { int i, n, total_non_cc_elements; struct elem_to_channel e2c_vec[MAX_ELEM_ID] = {{ 0 }}; int num_front_channels, num_side_channels, num_back_channels; uint64_t layout; i = 0; num_front_channels = count_pai...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(uint8_t (*layout_map)[3], int tags) { int VAR_0, VAR_1, VAR_2; struct elem_to_channel VAR_3[MAX_ELEM_ID] = {{ 0 }}; int VAR_4, VAR_5, VAR_6; uint64_t layout; VAR_0 = 0; VAR_4 = count_paired_channels(layout_map, tags, AAC_CHANNEL_FRONT, &VAR_0); if (V...
[ "static uint64_t FUNC_0(uint8_t (*layout_map)[3], int tags)\n{", "int VAR_0, VAR_1, VAR_2;", "struct elem_to_channel VAR_3[MAX_ELEM_ID] = {{ 0 }};", "int VAR_4, VAR_5, VAR_6;", "uint64_t layout;", "VAR_0 = 0;", "VAR_4 =\ncount_paired_channels(layout_map, tags, AAC_CHANNEL_FRONT, &VAR_0);", "if (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, 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 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [...
19,251
static int film_read_header(AVFormatContext *s) { FilmDemuxContext *film = s->priv_data; AVIOContext *pb = s->pb; AVStream *st; unsigned char scratch[256]; int i, ret; unsigned int data_offset; unsigned int audio_frame_counter; film->sample_table = NULL; film->stereo_buff...
false
FFmpeg
ded5957d75def70d2f1fc1c1eae079230004974b
static int film_read_header(AVFormatContext *s) { FilmDemuxContext *film = s->priv_data; AVIOContext *pb = s->pb; AVStream *st; unsigned char scratch[256]; int i, ret; unsigned int data_offset; unsigned int audio_frame_counter; film->sample_table = NULL; film->stereo_buff...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { FilmDemuxContext *film = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; AVStream *st; unsigned char VAR_1[256]; int VAR_2, VAR_3; unsigned int VAR_4; unsigned int VAR_5; film->sample_table = NULL; film->stereo_buffer = NULL; ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "FilmDemuxContext *film = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "AVStream *st;", "unsigned char VAR_1[256];", "int VAR_2, VAR_3;", "unsigned int VAR_4;", "unsigned int VAR_5;", "film->sample_table = NULL;", "film->stereo_buffer = 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, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 43 ], [ 47, 49 ], [ 53 ], [ 55 ], [ 57 ...