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
15,807
void qemu_spice_display_switch(SimpleSpiceDisplay *ssd, DisplaySurface *surface) { SimpleSpiceUpdate *update; bool need_destroy; if (surface && ssd->surface && surface_width(surface) == pixman_image_get_width(ssd->surface) && surface_height(surface) ==...
false
qemu
b2af43cc379e1d4c30d92af257bedebf0e3f618a
void qemu_spice_display_switch(SimpleSpiceDisplay *ssd, DisplaySurface *surface) { SimpleSpiceUpdate *update; bool need_destroy; if (surface && ssd->surface && surface_width(surface) == pixman_image_get_width(ssd->surface) && surface_height(surface) ==...
{ "code": [], "line_no": [] }
void FUNC_0(SimpleSpiceDisplay *VAR_0, DisplaySurface *VAR_1) { SimpleSpiceUpdate *update; bool need_destroy; if (VAR_1 && VAR_0->VAR_1 && surface_width(VAR_1) == pixman_image_get_width(VAR_0->VAR_1) && surface_height(VAR_1) == pixman_image_get_height(...
[ "void FUNC_0(SimpleSpiceDisplay *VAR_0,\nDisplaySurface *VAR_1)\n{", "SimpleSpiceUpdate *update;", "bool need_destroy;", "if (VAR_1 && VAR_0->VAR_1 &&\nsurface_width(VAR_1) == pixman_image_get_width(VAR_0->VAR_1) &&\nsurface_height(VAR_1) == pixman_image_get_height(VAR_0->VAR_1)) {", "dprint(1, \"%s/%d: fas...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 49, 51, 53, 55, 57 ], [ 61 ...
15,808
GuestNetworkInterfaceList *qmp_guest_network_get_interfaces(Error **errp) { GuestNetworkInterfaceList *head = NULL, *cur_item = NULL; struct ifaddrs *ifap, *ifa; char err_msg[512]; if (getifaddrs(&ifap) < 0) { snprintf(err_msg, sizeof(err_msg), "getifaddrs failed: %s", ...
false
qemu
a31f053129f378ff0e8f6e855b3f35d21143b9ef
GuestNetworkInterfaceList *qmp_guest_network_get_interfaces(Error **errp) { GuestNetworkInterfaceList *head = NULL, *cur_item = NULL; struct ifaddrs *ifap, *ifa; char err_msg[512]; if (getifaddrs(&ifap) < 0) { snprintf(err_msg, sizeof(err_msg), "getifaddrs failed: %s", ...
{ "code": [], "line_no": [] }
GuestNetworkInterfaceList *FUNC_0(Error **errp) { GuestNetworkInterfaceList *head = NULL, *cur_item = NULL; struct ifaddrs *VAR_0, *VAR_1; char VAR_2[512]; if (getifaddrs(&VAR_0) < 0) { snprintf(VAR_2, sizeof(VAR_2), "getifaddrs failed: %s", strerror(errno)); e...
[ "GuestNetworkInterfaceList *FUNC_0(Error **errp)\n{", "GuestNetworkInterfaceList *head = NULL, *cur_item = NULL;", "struct ifaddrs *VAR_0, *VAR_1;", "char VAR_2[512];", "if (getifaddrs(&VAR_0) < 0) {", "snprintf(VAR_2, sizeof(VAR_2),\n\"getifaddrs failed: %s\", strerror(errno));", "error_set(errp, QERR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
15,809
static inline int coef_test_compression(int coef) { int tmp = coef >> 2; int res = ff_ctz(tmp); if (res > 1) return 1; /* ...00 -> compressable */ else if (res == 1) return 0; /* ...10 -> uncompressable */ else if (ff_ctz(tmp >> 1) > 0) return 0; ...
false
FFmpeg
f20b67173ca6a05b8c3dee02dad3b7243b96292b
static inline int coef_test_compression(int coef) { int tmp = coef >> 2; int res = ff_ctz(tmp); if (res > 1) return 1; else if (res == 1) return 0; else if (ff_ctz(tmp >> 1) > 0) return 0; else return 1; }
{ "code": [], "line_no": [] }
static inline int FUNC_0(int VAR_0) { int VAR_1 = VAR_0 >> 2; int VAR_2 = ff_ctz(VAR_1); if (VAR_2 > 1) return 1; else if (VAR_2 == 1) return 0; else if (ff_ctz(VAR_1 >> 1) > 0) return 0; else return 1; }
[ "static inline int FUNC_0(int VAR_0)\n{", "int VAR_1 = VAR_0 >> 2;", "int VAR_2 = ff_ctz(VAR_1);", "if (VAR_2 > 1)\nreturn 1;", "else if (VAR_2 == 1)\nreturn 0;", "else if (ff_ctz(VAR_1 >> 1) > 0)\nreturn 0;", "else\nreturn 1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17, 19 ], [ 21, 23 ], [ 25 ] ]
15,810
static int ac97_load (QEMUFile *f, void *opaque, int version_id) { int ret; size_t i; uint8_t active[LAST_INDEX]; AC97LinkState *s = opaque; if (version_id != 2) return -EINVAL; ret = pci_device_load (s->pci_dev, f); if (ret) return ret; qemu_get_be32s (f...
false
qemu
10ee2aaa417d8d8978cdb2bbed55ebb152df5f6b
static int ac97_load (QEMUFile *f, void *opaque, int version_id) { int ret; size_t i; uint8_t active[LAST_INDEX]; AC97LinkState *s = opaque; if (version_id != 2) return -EINVAL; ret = pci_device_load (s->pci_dev, f); if (ret) return ret; qemu_get_be32s (f...
{ "code": [], "line_no": [] }
static int FUNC_0 (QEMUFile *VAR_0, void *VAR_1, int VAR_2) { int VAR_3; size_t i; uint8_t active[LAST_INDEX]; AC97LinkState *s = VAR_1; if (VAR_2 != 2) return -EINVAL; VAR_3 = pci_device_load (s->pci_dev, VAR_0); if (VAR_3) return VAR_3; qemu_get_be32s (...
[ "static int FUNC_0 (QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{", "int VAR_3;", "size_t i;", "uint8_t active[LAST_INDEX];", "AC97LinkState *s = VAR_1;", "if (VAR_2 != 2)\nreturn -EINVAL;", "VAR_3 = pci_device_load (s->pci_dev, VAR_0);", "if (VAR_3)\nreturn VAR_3;", "qemu_get_be32s (VAR_0, &s->glob_c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
15,812
void usb_test_hotplug(const char *hcd_id, const int port, void (*port_check)(void)) { QDict *response; char *cmd; cmd = g_strdup_printf("{'execute': 'device_add'," " 'arguments': {" " 'driver': 'usb-tablet'," ...
false
qemu
acd80015fbe28f4f513e036ad1db2a76738d1f53
void usb_test_hotplug(const char *hcd_id, const int port, void (*port_check)(void)) { QDict *response; char *cmd; cmd = g_strdup_printf("{'execute': 'device_add'," " 'arguments': {" " 'driver': 'usb-tablet'," ...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, const int VAR_1, void (*VAR_2)(void)) { QDict *response; char *VAR_3; VAR_3 = g_strdup_printf("{'execute': 'device_add'," " 'arguments': {" " 'driver': 'usb-tablet'," ...
[ "void FUNC_0(const char *VAR_0, const int VAR_1,\nvoid (*VAR_2)(void))\n{", "QDict *response;", "char *VAR_3;", "VAR_3 = g_strdup_printf(\"{'execute': 'device_add',\"", "\" 'arguments': {\"", "\" 'driver': 'usb-tablet',\"\n\" 'VAR_1': '%d',\"\n\" 'bus': '%s.0',\"\n\" 'id': 'usbdev%d'\"\n\"}}\", V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51, 53 ...
15,813
bool qemu_signalfd_available(void) { #ifdef CONFIG_SIGNALFD errno = 0; syscall(SYS_signalfd, -1, NULL, _NSIG / 8); return errno != ENOSYS; #else return false; #endif }
false
qemu
7f84c1272b601be88daeb828ec1890890c7aae25
bool qemu_signalfd_available(void) { #ifdef CONFIG_SIGNALFD errno = 0; syscall(SYS_signalfd, -1, NULL, _NSIG / 8); return errno != ENOSYS; #else return false; #endif }
{ "code": [], "line_no": [] }
bool FUNC_0(void) { #ifdef CONFIG_SIGNALFD errno = 0; syscall(SYS_signalfd, -1, NULL, _NSIG / 8); return errno != ENOSYS; #else return false; #endif }
[ "bool FUNC_0(void)\n{", "#ifdef CONFIG_SIGNALFD\nerrno = 0;", "syscall(SYS_signalfd, -1, NULL, _NSIG / 8);", "return errno != ENOSYS;", "#else\nreturn false;", "#endif\n}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 19 ] ]
15,814
static int xen_pt_byte_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint8_t *val, uint8_t dev_value, uint8_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint8_t writable_mask = 0; uint8_t throughable_mask = get_throug...
false
qemu
e2779de053b64f023de382fd87b3596613d47d1e
static int xen_pt_byte_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint8_t *val, uint8_t dev_value, uint8_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint8_t writable_mask = 0; uint8_t throughable_mask = get_throug...
{ "code": [], "line_no": [] }
static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1, uint8_t *VAR_2, uint8_t VAR_3, uint8_t VAR_4) { XenPTRegInfo *reg = VAR_1->reg; uint8_t writable_mask = 0; uint8_t throughable_mask = get_throughable_mask(VAR_0, reg, VAR...
[ "static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1,\nuint8_t *VAR_2, uint8_t VAR_3,\nuint8_t VAR_4)\n{", "XenPTRegInfo *reg = VAR_1->reg;", "uint8_t writable_mask = 0;", "uint8_t throughable_mask = get_throughable_mask(VAR_0, reg, VAR_4);", "writable_mask = reg->emu_mask & ~reg->ro_mask & VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 27 ], [ 31 ], [ 33 ] ]
15,816
static void omap_update_display(void *opaque) { struct omap_lcd_panel_s *omap_lcd = (struct omap_lcd_panel_s *) opaque; DisplaySurface *surface = qemu_console_surface(omap_lcd->con); draw_line_func draw_line; int size, height, first, last; int width, linesize, step, bpp, frame_offset; hwa...
false
qemu
c1076c3e13a86140cc2ba29866512df8460cc7c2
static void omap_update_display(void *opaque) { struct omap_lcd_panel_s *omap_lcd = (struct omap_lcd_panel_s *) opaque; DisplaySurface *surface = qemu_console_surface(omap_lcd->con); draw_line_func draw_line; int size, height, first, last; int width, linesize, step, bpp, frame_offset; hwa...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { struct omap_lcd_panel_s *VAR_1 = (struct omap_lcd_panel_s *) VAR_0; DisplaySurface *surface = qemu_console_surface(VAR_1->con); draw_line_func draw_line; int VAR_2, VAR_3, VAR_4, VAR_5; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; hwaddr frame_base; if ...
[ "static void FUNC_0(void *VAR_0)\n{", "struct omap_lcd_panel_s *VAR_1 = (struct omap_lcd_panel_s *) VAR_0;", "DisplaySurface *surface = qemu_console_surface(VAR_1->con);", "draw_line_func draw_line;", "int VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "hwaddr frame_base;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [...
15,817
static void rcu_qtest(const char *test, int duration, int nreaders) { int i; long long n_removed_local = 0; struct list_element *el, *prev_el; rcu_qtest_init(); for (i = 0; i < nreaders; i++) { create_thread(rcu_q_reader); } create_thread(rcu_q_updater); rcu_qtest_r...
false
qemu
8a5956ad6392f115521dad774055c737c49fb0dd
static void rcu_qtest(const char *test, int duration, int nreaders) { int i; long long n_removed_local = 0; struct list_element *el, *prev_el; rcu_qtest_init(); for (i = 0; i < nreaders; i++) { create_thread(rcu_q_reader); } create_thread(rcu_q_updater); rcu_qtest_r...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, int VAR_1, int VAR_2) { int VAR_3; long long VAR_4 = 0; struct list_element *VAR_5, *VAR_6; rcu_qtest_init(); for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) { create_thread(rcu_q_reader); } create_thread(rcu_q_updater); rcu_qtest_run(V...
[ "static void FUNC_0(const char *VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3;", "long long VAR_4 = 0;", "struct list_element *VAR_5, *VAR_6;", "rcu_qtest_init();", "for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) {", "create_thread(rcu_q_reader);", "}", "create_thread(rcu_q_updater);", "rcu_qtest_run(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
15,819
void qemu_chr_close(CharDriverState *chr) { TAILQ_REMOVE(&chardevs, chr, next); if (chr->chr_close) chr->chr_close(chr); qemu_free(chr->filename); qemu_free(chr->label); qemu_free(chr); }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void qemu_chr_close(CharDriverState *chr) { TAILQ_REMOVE(&chardevs, chr, next); if (chr->chr_close) chr->chr_close(chr); qemu_free(chr->filename); qemu_free(chr->label); qemu_free(chr); }
{ "code": [], "line_no": [] }
void FUNC_0(CharDriverState *VAR_0) { TAILQ_REMOVE(&chardevs, VAR_0, next); if (VAR_0->chr_close) VAR_0->chr_close(VAR_0); qemu_free(VAR_0->filename); qemu_free(VAR_0->label); qemu_free(VAR_0); }
[ "void FUNC_0(CharDriverState *VAR_0)\n{", "TAILQ_REMOVE(&chardevs, VAR_0, next);", "if (VAR_0->chr_close)\nVAR_0->chr_close(VAR_0);", "qemu_free(VAR_0->filename);", "qemu_free(VAR_0->label);", "qemu_free(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
15,821
static void mirror_start_job(const char *job_id, BlockDriverState *bs, int creation_flags, BlockDriverState *target, const char *replaces, int64_t speed, uint32_t granularity, int64_t buf_size, BlockM...
false
qemu
3182664220571d11d4fe03ecdc10fcc1e842ed32
static void mirror_start_job(const char *job_id, BlockDriverState *bs, int creation_flags, BlockDriverState *target, const char *replaces, int64_t speed, uint32_t granularity, int64_t buf_size, BlockM...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1, int VAR_2, BlockDriverState *VAR_3, const char *VAR_4, int64_t VAR_5, uint32_t VAR_6, int64_t VAR_7, BlockMirrorBackingMode VAR_8, ...
[ "static void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,\nint VAR_2, BlockDriverState *VAR_3,\nconst char *VAR_4, int64_t VAR_5,\nuint32_t VAR_6, int64_t VAR_7,\nBlockMirrorBackingMode VAR_8,\nBlockdevOnError VAR_9,\nBlockdevOnError VAR_10,\nbool VAR_11,\nBlockCompletionFunc *VAR_12,\nvoid *VAR_13,\nconst Bl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 59 ], [ 63 ...
15,822
static void test_acpi_tables(test_data *data) { int tables_nr = data->rsdt_tables_nr - 1; /* fadt is first */ int i; for (i = 0; i < tables_nr; i++) { AcpiSdtTable ssdt_table; uint32_t addr; addr = le32_to_cpu(data->rsdt_tables_addr[i + 1]); /* fadt is first */ te...
false
qemu
03010579835a17450693888f8b35a66817668d68
static void test_acpi_tables(test_data *data) { int tables_nr = data->rsdt_tables_nr - 1; int i; for (i = 0; i < tables_nr; i++) { AcpiSdtTable ssdt_table; uint32_t addr; addr = le32_to_cpu(data->rsdt_tables_addr[i + 1]); test_dst_table(&ssdt_table, addr); ...
{ "code": [], "line_no": [] }
static void FUNC_0(test_data *VAR_0) { int VAR_1 = VAR_0->rsdt_tables_nr - 1; int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++) { AcpiSdtTable ssdt_table; uint32_t addr; addr = le32_to_cpu(VAR_0->rsdt_tables_addr[VAR_2 + 1]); test_dst_table(&ssdt_table, addr); ...
[ "static void FUNC_0(test_data *VAR_0)\n{", "int VAR_1 = VAR_0->rsdt_tables_nr - 1;", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++) {", "AcpiSdtTable ssdt_table;", "uint32_t addr;", "addr = le32_to_cpu(VAR_0->rsdt_tables_addr[VAR_2 + 1]);", "test_dst_table(&ssdt_table, addr);", "g_array_appe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
15,824
void cris_mmu_flush_pid(CPUState *env, uint32_t pid) { target_ulong vaddr; unsigned int idx; uint32_t lo, hi; uint32_t tlb_vpn; int tlb_pid, tlb_g, tlb_v, tlb_k; unsigned int set; unsigned int mmu; pid &= 0xff; for (mmu = 0; mmu < 2; mmu++) { for (set = 0; set < 4; set++) { for (idx = 0; ...
false
qemu
80e1b265f4505149ba256ab6e18be942830072d0
void cris_mmu_flush_pid(CPUState *env, uint32_t pid) { target_ulong vaddr; unsigned int idx; uint32_t lo, hi; uint32_t tlb_vpn; int tlb_pid, tlb_g, tlb_v, tlb_k; unsigned int set; unsigned int mmu; pid &= 0xff; for (mmu = 0; mmu < 2; mmu++) { for (set = 0; set < 4; set++) { for (idx = 0; ...
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, uint32_t VAR_1) { target_ulong vaddr; unsigned int VAR_2; uint32_t lo, hi; uint32_t tlb_vpn; int VAR_3, VAR_4, VAR_5, VAR_6; unsigned int VAR_7; unsigned int VAR_8; VAR_1 &= 0xff; for (VAR_8 = 0; VAR_8 < 2; VAR_8++) { for (VAR_7 = 0; VAR_7 < 4; VAR_7++) { for ...
[ "void FUNC_0(CPUState *VAR_0, uint32_t VAR_1)\n{", "target_ulong vaddr;", "unsigned int VAR_2;", "uint32_t lo, hi;", "uint32_t tlb_vpn;", "int VAR_3, VAR_4, VAR_5, VAR_6;", "unsigned int VAR_7;", "unsigned int VAR_8;", "VAR_1 &= 0xff;", "for (VAR_8 = 0; VAR_8 < 2; VAR_8++) {", "for (VAR_7 = 0; V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
15,825
static void vfio_intp_interrupt(VFIOINTp *intp) { int ret; VFIOINTp *tmp; VFIOPlatformDevice *vdev = intp->vdev; bool delay_handling = false; qemu_mutex_lock(&vdev->intp_mutex); if (intp->state == VFIO_IRQ_INACTIVE) { QLIST_FOREACH(tmp, &vdev->intp_list, next) { if...
false
qemu
a22313deca720e038ebc5805cf451b3a685d29ce
static void vfio_intp_interrupt(VFIOINTp *intp) { int ret; VFIOINTp *tmp; VFIOPlatformDevice *vdev = intp->vdev; bool delay_handling = false; qemu_mutex_lock(&vdev->intp_mutex); if (intp->state == VFIO_IRQ_INACTIVE) { QLIST_FOREACH(tmp, &vdev->intp_list, next) { if...
{ "code": [], "line_no": [] }
static void FUNC_0(VFIOINTp *VAR_0) { int VAR_1; VFIOINTp *tmp; VFIOPlatformDevice *vdev = VAR_0->vdev; bool delay_handling = false; qemu_mutex_lock(&vdev->intp_mutex); if (VAR_0->state == VFIO_IRQ_INACTIVE) { QLIST_FOREACH(tmp, &vdev->intp_list, next) { if (tmp->s...
[ "static void FUNC_0(VFIOINTp *VAR_0)\n{", "int VAR_1;", "VFIOINTp *tmp;", "VFIOPlatformDevice *vdev = VAR_0->vdev;", "bool delay_handling = false;", "qemu_mutex_lock(&vdev->intp_mutex);", "if (VAR_0->state == VFIO_IRQ_INACTIVE) {", "QLIST_FOREACH(tmp, &vdev->intp_list, next) {", "if (tmp->state == V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53 ...
15,826
void tb_invalidate_phys_addr(hwaddr addr) { ram_addr_t ram_addr; MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS); if (!(memory_region_is_ram(section->mr) || memory_region_is_romd(section->mr))...
false
qemu
149f54b53b7666a3facd45e86eece60ce7d3b114
void tb_invalidate_phys_addr(hwaddr addr) { ram_addr_t ram_addr; MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS); if (!(memory_region_is_ram(section->mr) || memory_region_is_romd(section->mr))...
{ "code": [], "line_no": [] }
void FUNC_0(hwaddr VAR_0) { ram_addr_t ram_addr; MemoryRegionSection *section; section = phys_page_find(address_space_memory.dispatch, VAR_0 >> TARGET_PAGE_BITS); if (!(memory_region_is_ram(section->mr) || memory_region_is_romd(section->mr))) { re...
[ "void FUNC_0(hwaddr VAR_0)\n{", "ram_addr_t ram_addr;", "MemoryRegionSection *section;", "section = phys_page_find(address_space_memory.dispatch,\nVAR_0 >> TARGET_PAGE_BITS);", "if (!(memory_region_is_ram(section->mr)\n|| memory_region_is_romd(section->mr))) {", "return;", "}", "ram_addr = (memory_reg...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ] ]
15,827
static void lsi_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = lsi_scsi_init; k->exit = lsi_scsi_uninit; k->vendor_id = PCI_VENDOR_ID_LSI_LOGIC; k->device_id = PCI_DEVICE_ID_LSI_53C895A; k->...
false
qemu
6acbe4c6f18e7de00481ff30574262b58526de45
static void lsi_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = lsi_scsi_init; k->exit = lsi_scsi_uninit; k->vendor_id = PCI_VENDOR_ID_LSI_LOGIC; k->device_id = PCI_DEVICE_ID_LSI_53C895A; k->...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0); k->init = lsi_scsi_init; k->exit = lsi_scsi_uninit; k->vendor_id = PCI_VENDOR_ID_LSI_LOGIC; k->device_id = PCI_DEVICE_ID_LSI_53C895A; k->class_i...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0);", "k->init = lsi_scsi_init;", "k->exit = lsi_scsi_uninit;", "k->vendor_id = PCI_VENDOR_ID_LSI_LOGIC;", "k->device_id = PCI_DEVICE_ID_LSI_53C895A;", "k->clas...
[ 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 ] ]
15,828
static void sigp_stop(CPUState *cs, run_on_cpu_data arg) { S390CPU *cpu = S390_CPU(cs); SigpInfo *si = arg.host_ptr; if (s390_cpu_get_state(cpu) != CPU_STATE_OPERATING) { si->cc = SIGP_CC_ORDER_CODE_ACCEPTED; return; } /* disabled wait - sleeping in user space */ if ...
false
qemu
74b4c74d5efb0a489bdf0acc5b5d0197167e7649
static void sigp_stop(CPUState *cs, run_on_cpu_data arg) { S390CPU *cpu = S390_CPU(cs); SigpInfo *si = arg.host_ptr; if (s390_cpu_get_state(cpu) != CPU_STATE_OPERATING) { si->cc = SIGP_CC_ORDER_CODE_ACCEPTED; return; } if (cs->halted) { s390_cpu_set_state(C...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1) { S390CPU *cpu = S390_CPU(VAR_0); SigpInfo *si = VAR_1.host_ptr; if (s390_cpu_get_state(cpu) != CPU_STATE_OPERATING) { si->cc = SIGP_CC_ORDER_CODE_ACCEPTED; return; } if (VAR_0->halted) { s390_cpu_s...
[ "static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1)\n{", "S390CPU *cpu = S390_CPU(VAR_0);", "SigpInfo *si = VAR_1.host_ptr;", "if (s390_cpu_get_state(cpu) != CPU_STATE_OPERATING) {", "si->cc = SIGP_CC_ORDER_CODE_ACCEPTED;", "return;", "}", "if (VAR_0->halted) {", "s390_cpu_set_state(CPU_STAT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
15,829
static bool bdrv_exceed_iops_limits(BlockDriverState *bs, bool is_write, double elapsed_time, uint64_t *wait) { uint64_t iops_limit = 0; double ios_limit, ios_base; double slice_time, wait_time; if (bs->io_limits.iops[BLOCK_IO_LIMIT_TOTAL]) { iops_limit ...
false
qemu
5905fbc9c94ccd744c1b249472eafcc2d827548a
static bool bdrv_exceed_iops_limits(BlockDriverState *bs, bool is_write, double elapsed_time, uint64_t *wait) { uint64_t iops_limit = 0; double ios_limit, ios_base; double slice_time, wait_time; if (bs->io_limits.iops[BLOCK_IO_LIMIT_TOTAL]) { iops_limit ...
{ "code": [], "line_no": [] }
static bool FUNC_0(BlockDriverState *bs, bool is_write, double elapsed_time, uint64_t *wait) { uint64_t iops_limit = 0; double VAR_0, VAR_1; double VAR_2, VAR_3; if (bs->io_limits.iops[BLOCK_IO_LIMIT_TOTAL]) { iops_limit = bs->io_limits.iops[BLOCK_IO_LIM...
[ "static bool FUNC_0(BlockDriverState *bs, bool is_write,\ndouble elapsed_time, uint64_t *wait)\n{", "uint64_t iops_limit = 0;", "double VAR_0, VAR_1;", "double VAR_2, VAR_3;", "if (bs->io_limits.iops[BLOCK_IO_LIMIT_TOTAL]) {", "iops_limit = bs->io_limits.iops[BLOCK_IO_LIMIT_TOTAL];", "} else if (bs-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
15,830
static struct vm_area_struct *vma_next(struct vm_area_struct *vma) { return (TAILQ_NEXT(vma, vma_link)); }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static struct vm_area_struct *vma_next(struct vm_area_struct *vma) { return (TAILQ_NEXT(vma, vma_link)); }
{ "code": [], "line_no": [] }
static struct vm_area_struct *FUNC_0(struct vm_area_struct *VAR_0) { return (TAILQ_NEXT(VAR_0, vma_link)); }
[ "static struct vm_area_struct *FUNC_0(struct vm_area_struct *VAR_0)\n{", "return (TAILQ_NEXT(VAR_0, vma_link));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
15,831
void ff_get_unscaled_swscale(SwsContext *c) { const enum PixelFormat srcFormat = c->srcFormat; const enum PixelFormat dstFormat = c->dstFormat; const int flags = c->flags; const int dstH = c->dstH; int needsDither; needsDither= isAnyRGB(dstFormat) && c->dstFormatBpp < 24 ...
false
FFmpeg
b13ba5cb9a1a56883f0a8e7f7b02f7a1330ccb6d
void ff_get_unscaled_swscale(SwsContext *c) { const enum PixelFormat srcFormat = c->srcFormat; const enum PixelFormat dstFormat = c->dstFormat; const int flags = c->flags; const int dstH = c->dstH; int needsDither; needsDither= isAnyRGB(dstFormat) && c->dstFormatBpp < 24 ...
{ "code": [], "line_no": [] }
void FUNC_0(SwsContext *VAR_0) { const enum PixelFormat VAR_1 = VAR_0->VAR_1; const enum PixelFormat VAR_2 = VAR_0->VAR_2; const int VAR_3 = VAR_0->VAR_3; const int VAR_4 = VAR_0->VAR_4; int VAR_5; VAR_5= isAnyRGB(VAR_2) && VAR_0->dstFormatBpp < 24 && (VAR_0->dstForma...
[ "void FUNC_0(SwsContext *VAR_0)\n{", "const enum PixelFormat VAR_1 = VAR_0->VAR_1;", "const enum PixelFormat VAR_2 = VAR_0->VAR_2;", "const int VAR_3 = VAR_0->VAR_3;", "const int VAR_4 = VAR_0->VAR_4;", "int VAR_5;", "VAR_5= isAnyRGB(VAR_2)\n&& VAR_0->dstFormatBpp < 24\n&& (VAR_0->dstFormatBpp < 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19, 21 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 55, 57 ], [ 63,...
15,832
void address_space_init_dispatch(AddressSpace *as) { AddressSpaceDispatch *d = g_new(AddressSpaceDispatch, 1); d->phys_map = (PhysPageEntry) { .ptr = PHYS_MAP_NODE_NIL, .is_leaf = 0 }; d->listener = (MemoryListener) { .begin = mem_begin, .region_add = mem_add, .region_nop =...
false
qemu
89ae337acbe4dba5b2481007aec1277252d2b86c
void address_space_init_dispatch(AddressSpace *as) { AddressSpaceDispatch *d = g_new(AddressSpaceDispatch, 1); d->phys_map = (PhysPageEntry) { .ptr = PHYS_MAP_NODE_NIL, .is_leaf = 0 }; d->listener = (MemoryListener) { .begin = mem_begin, .region_add = mem_add, .region_nop =...
{ "code": [], "line_no": [] }
void FUNC_0(AddressSpace *VAR_0) { AddressSpaceDispatch *d = g_new(AddressSpaceDispatch, 1); d->phys_map = (PhysPageEntry) { .ptr = PHYS_MAP_NODE_NIL, .is_leaf = 0 }; d->listener = (MemoryListener) { .begin = mem_begin, .region_add = mem_add, .region_nop = mem_add, ...
[ "void FUNC_0(AddressSpace *VAR_0)\n{", "AddressSpaceDispatch *d = g_new(AddressSpaceDispatch, 1);", "d->phys_map = (PhysPageEntry) { .ptr = PHYS_MAP_NODE_NIL, .is_leaf = 0 };", "d->listener = (MemoryListener) {", ".begin = mem_begin,\n.region_add = mem_add,\n.region_nop = mem_add,\n.priority = 0,\n};", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15, 17, 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
15,834
void helper_fcmp_gt_FT(CPUSH4State *env, float32 t0, float32 t1) { int relation; set_float_exception_flags(0, &env->fp_status); relation = float32_compare(t0, t1, &env->fp_status); if (unlikely(relation == float_relation_unordered)) { update_fpscr(env, GETPC()); } else { en...
false
qemu
fea7d77d3ea287d3b1878648f3049fc6bb4fd57b
void helper_fcmp_gt_FT(CPUSH4State *env, float32 t0, float32 t1) { int relation; set_float_exception_flags(0, &env->fp_status); relation = float32_compare(t0, t1, &env->fp_status); if (unlikely(relation == float_relation_unordered)) { update_fpscr(env, GETPC()); } else { en...
{ "code": [], "line_no": [] }
void FUNC_0(CPUSH4State *VAR_0, float32 VAR_1, float32 VAR_2) { int VAR_3; set_float_exception_flags(0, &VAR_0->fp_status); VAR_3 = float32_compare(VAR_1, VAR_2, &VAR_0->fp_status); if (unlikely(VAR_3 == float_relation_unordered)) { update_fpscr(VAR_0, GETPC()); } else { VA...
[ "void FUNC_0(CPUSH4State *VAR_0, float32 VAR_1, float32 VAR_2)\n{", "int VAR_3;", "set_float_exception_flags(0, &VAR_0->fp_status);", "VAR_3 = float32_compare(VAR_1, VAR_2, &VAR_0->fp_status);", "if (unlikely(VAR_3 == float_relation_unordered)) {", "update_fpscr(VAR_0, GETPC());", "} else {", "VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
15,836
static void pxa2xx_i2s_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { PXA2xxI2SState *s = (PXA2xxI2SState *) opaque; uint32_t *sample; switch (addr) { case SACR0: if (value & (1 << 3)) /* RST */ pxa2xx_i2s_reset(s); ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void pxa2xx_i2s_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { PXA2xxI2SState *s = (PXA2xxI2SState *) opaque; uint32_t *sample; switch (addr) { case SACR0: if (value & (1 << 3)) pxa2xx_i2s_reset(s); s->cont...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { PXA2xxI2SState *s = (PXA2xxI2SState *) VAR_0; uint32_t *sample; switch (VAR_1) { case SACR0: if (VAR_2 & (1 << 3)) pxa2xx_i2s_reset(s); s->control[0] = ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "PXA2xxI2SState *s = (PXA2xxI2SState *) VAR_0;", "uint32_t *sample;", "switch (VAR_1) {", "case SACR0:\nif (VAR_2 & (1 << 3))\npxa2xx_i2s_reset(s);", "s->control[0] = VAR_2 & 0xff3d;", "if (!s->enable && (VAR_2 & 1) && ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ...
15,837
static int pci_unin_main_init_device(SysBusDevice *dev) { UNINState *s; int pci_mem_config, pci_mem_data; /* Use values found on a real PowerMac */ /* Uninorth main bus */ s = FROM_SYSBUS(UNINState, dev); pci_mem_config = cpu_register_io_memory(pci_unin_main_config_read, ...
false
qemu
4f5e19e6c570459cd524b29b24374f03860f5149
static int pci_unin_main_init_device(SysBusDevice *dev) { UNINState *s; int pci_mem_config, pci_mem_data; s = FROM_SYSBUS(UNINState, dev); pci_mem_config = cpu_register_io_memory(pci_unin_main_config_read, pci_unin_main_config_write, s); ...
{ "code": [], "line_no": [] }
static int FUNC_0(SysBusDevice *VAR_0) { UNINState *s; int VAR_1, VAR_2; s = FROM_SYSBUS(UNINState, VAR_0); VAR_1 = cpu_register_io_memory(pci_unin_main_config_read, pci_unin_main_config_write, s); VAR_2 = cpu_register_io_memory(pci_...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "UNINState *s;", "int VAR_1, VAR_2;", "s = FROM_SYSBUS(UNINState, VAR_0);", "VAR_1 = cpu_register_io_memory(pci_unin_main_config_read,\npci_unin_main_config_write, s);", "VAR_2 = cpu_register_io_memory(pci_unin_main_read,\npci_unin_main_write, &s->host_state);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 15 ], [ 19, 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
15,838
static inline void wb_SR_F(void) { int label; label = gen_new_label(); tcg_gen_andi_tl(cpu_sr, cpu_sr, ~SR_F); tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, label); tcg_gen_ori_tl(cpu_sr, cpu_sr, SR_F); gen_set_label(label); }
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static inline void wb_SR_F(void) { int label; label = gen_new_label(); tcg_gen_andi_tl(cpu_sr, cpu_sr, ~SR_F); tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, label); tcg_gen_ori_tl(cpu_sr, cpu_sr, SR_F); gen_set_label(label); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(void) { int VAR_0; VAR_0 = gen_new_label(); tcg_gen_andi_tl(cpu_sr, cpu_sr, ~SR_F); tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, VAR_0); tcg_gen_ori_tl(cpu_sr, cpu_sr, SR_F); gen_set_label(VAR_0); }
[ "static inline void FUNC_0(void)\n{", "int VAR_0;", "VAR_0 = gen_new_label();", "tcg_gen_andi_tl(cpu_sr, cpu_sr, ~SR_F);", "tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, VAR_0);", "tcg_gen_ori_tl(cpu_sr, cpu_sr, SR_F);", "gen_set_label(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
15,839
static inline uint32_t efsctsf(uint32_t val) { CPU_FloatU u; float32 tmp; u.l = val; /* NaN are not treated the same way IEEE 754 does */ if (unlikely(float32_is_nan(u.f))) return 0; tmp = uint64_to_float32(1ULL << 32, &env->vec_status); u.f = float32_mul(u.f, tmp, &env->v...
false
qemu
185698715dfb18c82ad2a5dbc169908602d43e81
static inline uint32_t efsctsf(uint32_t val) { CPU_FloatU u; float32 tmp; u.l = val; if (unlikely(float32_is_nan(u.f))) return 0; tmp = uint64_to_float32(1ULL << 32, &env->vec_status); u.f = float32_mul(u.f, tmp, &env->vec_status); return float32_to_int32(u.f, &env...
{ "code": [], "line_no": [] }
static inline uint32_t FUNC_0(uint32_t val) { CPU_FloatU u; float32 tmp; u.l = val; if (unlikely(float32_is_nan(u.f))) return 0; tmp = uint64_to_float32(1ULL << 32, &env->vec_status); u.f = float32_mul(u.f, tmp, &env->vec_status); return float32_to_int32(u.f, &env-...
[ "static inline uint32_t FUNC_0(uint32_t val)\n{", "CPU_FloatU u;", "float32 tmp;", "u.l = val;", "if (unlikely(float32_is_nan(u.f)))\nreturn 0;", "tmp = uint64_to_float32(1ULL << 32, &env->vec_status);", "u.f = float32_mul(u.f, tmp, &env->vec_status);", "return float32_to_int32(u.f, &env->vec_status);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
15,841
static inline int decode_seq_parameter_set(H264Context *h){ MpegEncContext * const s = &h->s; int profile_idc, level_idc; unsigned int sps_id, tmp, mb_width, mb_height; int i; SPS *sps; profile_idc= get_bits(&s->gb, 8); get_bits1(&s->gb); //constraint_set0_flag get_bits1(&s->...
false
FFmpeg
6a855aae9482a0ce95cb9c428ed39b8af164f6af
static inline int decode_seq_parameter_set(H264Context *h){ MpegEncContext * const s = &h->s; int profile_idc, level_idc; unsigned int sps_id, tmp, mb_width, mb_height; int i; SPS *sps; profile_idc= get_bits(&s->gb, 8); get_bits1(&s->gb); get_bits1(&s->gb); get_bits1...
{ "code": [], "line_no": [] }
static inline int FUNC_0(H264Context *VAR_0){ MpegEncContext * const s = &VAR_0->s; int VAR_1, VAR_2; unsigned int VAR_3, VAR_4, VAR_5, VAR_6; int VAR_7; SPS *sps; VAR_1= get_bits(&s->gb, 8); get_bits1(&s->gb); get_bits1(&s->gb); get_bits1(&s->gb); get_bits1(...
[ "static inline int FUNC_0(H264Context *VAR_0){", "MpegEncContext * const s = &VAR_0->s;", "int VAR_1, VAR_2;", "unsigned int VAR_3, VAR_4, VAR_5, VAR_6;", "int VAR_7;", "SPS *sps;", "VAR_1= get_bits(&s->gb, 8);", "get_bits1(&s->gb);", "get_bits1(&s->gb);", "get_bits1(&s->gb);", "get_bits1(&s->gb...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
15,842
static enum AVPixelFormat dshow_pixfmt(DWORD biCompression, WORD biBitCount) { switch(biCompression) { case BI_BITFIELDS: case BI_RGB: switch(biBitCount) { /* 1-8 are untested */ case 1: return AV_PIX_FMT_MONOWHITE; case 4: return AV_P...
false
FFmpeg
0ab00a75e41f4399126777e49385c809d8fcc311
static enum AVPixelFormat dshow_pixfmt(DWORD biCompression, WORD biBitCount) { switch(biCompression) { case BI_BITFIELDS: case BI_RGB: switch(biBitCount) { case 1: return AV_PIX_FMT_MONOWHITE; case 4: return AV_PIX_FMT_RGB4; ...
{ "code": [], "line_no": [] }
static enum AVPixelFormat FUNC_0(DWORD VAR_0, WORD VAR_1) { switch(VAR_0) { case BI_BITFIELDS: case BI_RGB: switch(VAR_1) { case 1: return AV_PIX_FMT_MONOWHITE; case 4: return AV_PIX_FMT_RGB4; case 8: ret...
[ "static enum AVPixelFormat FUNC_0(DWORD VAR_0, WORD VAR_1)\n{", "switch(VAR_0) {", "case BI_BITFIELDS:\ncase BI_RGB:\nswitch(VAR_1) {", "case 1:\nreturn AV_PIX_FMT_MONOWHITE;", "case 4:\nreturn AV_PIX_FMT_RGB4;", "case 8:\nreturn AV_PIX_FMT_RGB8;", "case 16:\nreturn AV_PIX_FMT_RGB555;", "case 24:\nret...
[ 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 ] ]
15,843
static void decode_scaling_list(H264Context *h, uint8_t *factors, int size, const uint8_t *jvt_list, const uint8_t *fallback_list) { int i, last = 8, next = 8; const uint8_t *scan = size == 16 ? ff_zigzag_scan : ff_zigzag_direct; if (!get...
false
FFmpeg
3176217c60ca7828712985092d9102d331ea4f3d
static void decode_scaling_list(H264Context *h, uint8_t *factors, int size, const uint8_t *jvt_list, const uint8_t *fallback_list) { int i, last = 8, next = 8; const uint8_t *scan = size == 16 ? ff_zigzag_scan : ff_zigzag_direct; if (!get...
{ "code": [], "line_no": [] }
static void FUNC_0(H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, const uint8_t *VAR_3, const uint8_t *VAR_4) { int VAR_5, VAR_6 = 8, VAR_7 = 8; const uint8_t *VAR_8 = VAR_2 == 16 ? ff_zigzag_scan : ff_zigzag_direct; if (!get_bits1(&VAR_0...
[ "static void FUNC_0(H264Context *VAR_0, uint8_t *VAR_1, int VAR_2,\nconst uint8_t *VAR_3,\nconst uint8_t *VAR_4)\n{", "int VAR_5, VAR_6 = 8, VAR_7 = 8;", "const uint8_t *VAR_8 = VAR_2 == 16 ? ff_zigzag_scan : ff_zigzag_direct;", "if (!get_bits1(&VAR_0->gb))\nmemcpy(VAR_1, VAR_4, VAR_2 * sizeof(uint8_t));", ...
[ 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 ] ]
15,845
static void iscsi_co_generic_bh_cb(void *opaque) { struct IscsiTask *iTask = opaque; iTask->complete = 1; qemu_bh_delete(iTask->bh); qemu_coroutine_enter(iTask->co, NULL); }
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static void iscsi_co_generic_bh_cb(void *opaque) { struct IscsiTask *iTask = opaque; iTask->complete = 1; qemu_bh_delete(iTask->bh); qemu_coroutine_enter(iTask->co, NULL); }
{ "code": [ " qemu_coroutine_enter(iTask->co, NULL);" ], "line_no": [ 11 ] }
static void FUNC_0(void *VAR_0) { struct IscsiTask *VAR_1 = VAR_0; VAR_1->complete = 1; qemu_bh_delete(VAR_1->bh); qemu_coroutine_enter(VAR_1->co, NULL); }
[ "static void FUNC_0(void *VAR_0)\n{", "struct IscsiTask *VAR_1 = VAR_0;", "VAR_1->complete = 1;", "qemu_bh_delete(VAR_1->bh);", "qemu_coroutine_enter(VAR_1->co, NULL);", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
15,847
av_cold int ff_dct_common_init(MpegEncContext *s) { ff_dsputil_init(&s->dsp, s->avctx); ff_videodsp_init(&s->vdsp, 8); s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_c; s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_c; s->dct_unquantize_mpeg1_intra = dct_unquantize_mpeg1_...
true
FFmpeg
1f4ea4e068f1131bff6c246308f52acbf1347cc2
av_cold int ff_dct_common_init(MpegEncContext *s) { ff_dsputil_init(&s->dsp, s->avctx); ff_videodsp_init(&s->vdsp, 8); s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_c; s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_c; s->dct_unquantize_mpeg1_intra = dct_unquantize_mpeg1_...
{ "code": [ " ff_videodsp_init(&s->vdsp, 8);" ], "line_no": [ 7 ] }
av_cold int FUNC_0(MpegEncContext *s) { ff_dsputil_init(&s->dsp, s->avctx); ff_videodsp_init(&s->vdsp, 8); s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_c; s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_c; s->dct_unquantize_mpeg1_intra = dct_unquantize_mpeg1_intra_c; ...
[ "av_cold int FUNC_0(MpegEncContext *s)\n{", "ff_dsputil_init(&s->dsp, s->avctx);", "ff_videodsp_init(&s->vdsp, 8);", "s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_c;", "s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_c;", "s->dct_unquantize_mpeg1_intra = dct_unquantize_mpeg1_intra_c;"...
[ 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [ 45, 47 ], [ 49, 59 ], ...
15,848
int s390_ccw_cmd_request(ORB *orb, SCSW *scsw, void *data) { S390CCWDeviceClass *cdc = S390_CCW_DEVICE_GET_CLASS(data); if (cdc->handle_request) { return cdc->handle_request(orb, scsw, data); } else { return -ENOSYS; } }
true
qemu
66dc50f7057b9a0191f54e55764412202306858d
int s390_ccw_cmd_request(ORB *orb, SCSW *scsw, void *data) { S390CCWDeviceClass *cdc = S390_CCW_DEVICE_GET_CLASS(data); if (cdc->handle_request) { return cdc->handle_request(orb, scsw, data); } else { return -ENOSYS; } }
{ "code": [ "int s390_ccw_cmd_request(ORB *orb, SCSW *scsw, void *data)", " S390CCWDeviceClass *cdc = S390_CCW_DEVICE_GET_CLASS(data);", " if (cdc->handle_request) {", " return cdc->handle_request(orb, scsw, data);", " } else {", " return -ENOSYS;" ], "line_no": [ ...
int FUNC_0(ORB *VAR_0, SCSW *VAR_1, void *VAR_2) { S390CCWDeviceClass *cdc = S390_CCW_DEVICE_GET_CLASS(VAR_2); if (cdc->handle_request) { return cdc->handle_request(VAR_0, VAR_1, VAR_2); } else { return -ENOSYS; } }
[ "int FUNC_0(ORB *VAR_0, SCSW *VAR_1, void *VAR_2)\n{", "S390CCWDeviceClass *cdc = S390_CCW_DEVICE_GET_CLASS(VAR_2);", "if (cdc->handle_request) {", "return cdc->handle_request(VAR_0, VAR_1, VAR_2);", "} else {", "return -ENOSYS;", "}", "}" ]
[ 1, 1, 1, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
15,849
static void v9fs_walk(void *opaque) { int name_idx; V9fsQID *qids = NULL; int i, err = 0; V9fsPath dpath, path; uint16_t nwnames; struct stat stbuf; size_t offset = 7; int32_t fid, newfid; V9fsString *wnames = NULL; V9fsFidState *fidp; V9fsFidState *newfidp = NULL...
true
qemu
fff39a7ad09da07ef490de05c92c91f22f8002f2
static void v9fs_walk(void *opaque) { int name_idx; V9fsQID *qids = NULL; int i, err = 0; V9fsPath dpath, path; uint16_t nwnames; struct stat stbuf; size_t offset = 7; int32_t fid, newfid; V9fsString *wnames = NULL; V9fsFidState *fidp; V9fsFidState *newfidp = NULL...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int VAR_1; V9fsQID *qids = NULL; int VAR_2, VAR_3 = 0; V9fsPath dpath, path; uint16_t nwnames; struct stat VAR_4; size_t offset = 7; int32_t fid, newfid; V9fsString *wnames = NULL; V9fsFidState *fidp; V9fsFidState *newfidp = NULL;...
[ "static void FUNC_0(void *VAR_0)\n{", "int VAR_1;", "V9fsQID *qids = NULL;", "int VAR_2, VAR_3 = 0;", "V9fsPath dpath, path;", "uint16_t nwnames;", "struct stat VAR_4;", "size_t offset = 7;", "int32_t fid, newfid;", "V9fsString *wnames = NULL;", "V9fsFidState *fidp;", "V9fsFidState *newfidp = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 42 ], [ 46 ...
15,850
static void disas_ldst_reg_imm9(DisasContext *s, uint32_t insn) { int rt = extract32(insn, 0, 5); int rn = extract32(insn, 5, 5); int imm9 = sextract32(insn, 12, 9); int opc = extract32(insn, 22, 2); int size = extract32(insn, 30, 2); int idx = extract32(insn, 10, 2); bool is_signed ...
true
qemu
949013ce111eb64f8bc81cf9a9f1cefd6a1678c3
static void disas_ldst_reg_imm9(DisasContext *s, uint32_t insn) { int rt = extract32(insn, 0, 5); int rn = extract32(insn, 5, 5); int imm9 = sextract32(insn, 12, 9); int opc = extract32(insn, 22, 2); int size = extract32(insn, 30, 2); int idx = extract32(insn, 10, 2); bool is_signed ...
{ "code": [ " int memidx = is_unpriv ? 1 : get_mem_index(s);" ], "line_no": [ 159 ] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1) { int VAR_2 = extract32(VAR_1, 0, 5); int VAR_3 = extract32(VAR_1, 5, 5); int VAR_4 = sextract32(VAR_1, 12, 9); int VAR_5 = extract32(VAR_1, 22, 2); int VAR_6 = extract32(VAR_1, 30, 2); int VAR_7 = extract32(VAR_1, 10, 2); bool ...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{", "int VAR_2 = extract32(VAR_1, 0, 5);", "int VAR_3 = extract32(VAR_1, 5, 5);", "int VAR_4 = sextract32(VAR_1, 12, 9);", "int VAR_5 = extract32(VAR_1, 22, 2);", "int VAR_6 = extract32(VAR_1, 30, 2);", "int VAR_7 = extract32(VAR_1, 10, 2);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
15,851
static int clv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; CLVContext *c = avctx->priv_data; GetByteContext gb; uint32_t frame_type; int i, j; int ret; int mb_...
true
FFmpeg
43c394dcaebe9eec5802b420f273385473380909
static int clv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; CLVContext *c = avctx->priv_data; GetByteContext gb; uint32_t frame_type; int i, j; int ret; int mb_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; CLVContext *c = VAR_0->priv_data; GetByteContext gb; uint32_t frame_type; int VAR_6, VAR_7; int VAR_8; int VAR_9 ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "CLVContext *c = VAR_0->priv_data;", "GetByteContext gb;", "uint32_t frame_type;", "int VAR_6, VAR_7;", "int VAR_8;", "int VAR_9 = 0;", "byt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17, 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ],...
15,853
static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, AVPacket *pkt) { unsigned char chunk_preamble[CHUNK_PREAMBLE_SIZE]; int chunk_type; int chunk_size; unsigned char opcode_preamble[OPCODE_PREAMBLE_SIZE]; unsigned char opcode_type; unsigned char opcode_version; in...
true
FFmpeg
8faabf3bd29cf587a8c5b8aa38836e9c99dba054
static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, AVPacket *pkt) { unsigned char chunk_preamble[CHUNK_PREAMBLE_SIZE]; int chunk_type; int chunk_size; unsigned char opcode_preamble[OPCODE_PREAMBLE_SIZE]; unsigned char opcode_type; unsigned char opcode_version; in...
{ "code": [ " if ((opcode_version > 1) || (opcode_size > 10)) {" ], "line_no": [ 251 ] }
static int FUNC_0(IPMVEContext *VAR_0, AVIOContext *VAR_1, AVPacket *VAR_2) { unsigned char VAR_3[CHUNK_PREAMBLE_SIZE]; int VAR_4; int VAR_5; unsigned char VAR_6[OPCODE_PREAMBLE_SIZE]; unsigned char VAR_7; unsigned char VAR_8; int VAR_9; unsigned char VAR_10[1024]; int...
[ "static int FUNC_0(IPMVEContext *VAR_0, AVIOContext *VAR_1,\nAVPacket *VAR_2)\n{", "unsigned char VAR_3[CHUNK_PREAMBLE_SIZE];", "int VAR_4;", "int VAR_5;", "unsigned char VAR_6[OPCODE_PREAMBLE_SIZE];", "unsigned char VAR_7;", "unsigned char VAR_8;", "int VAR_9;", "unsigned char VAR_10[1024];", "in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39, 41 ], [ 47, 49 ], [ 51, 53,...
15,854
static av_cold int svq1_encode_end(AVCodecContext *avctx) { SVQ1EncContext *const s = avctx->priv_data; int i; av_log(avctx, AV_LOG_DEBUG, "RD: %f\n", s->rd_total / (double)(avctx->width * avctx->height * avctx->frame_number)); s->m.mb_type = NULL;...
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int svq1_encode_end(AVCodecContext *avctx) { SVQ1EncContext *const s = avctx->priv_data; int i; av_log(avctx, AV_LOG_DEBUG, "RD: %f\n", s->rd_total / (double)(avctx->width * avctx->height * avctx->frame_number)); s->m.mb_type = NULL;...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { SVQ1EncContext *const s = avctx->priv_data; int VAR_0; av_log(avctx, AV_LOG_DEBUG, "RD: %f\n", s->rd_total / (double)(avctx->width * avctx->height * avctx->frame_number)); s->m.mb_type = NULL; ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "SVQ1EncContext *const s = avctx->priv_data;", "int VAR_0;", "av_log(avctx, AV_LOG_DEBUG, \"RD: %f\\n\",\ns->rd_total / (double)(avctx->width * avctx->height *\navctx->frame_number));", "s->m.mb_type = NULL;", "ff_mpv_common_end(&s->m);", "av_freep(...
[ 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 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53...
15,856
void MPV_decode_mb_internal(MpegEncContext *s, int16_t block[12][64], int is_mpeg12) { const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; #if FF_API_XVMC FF_DISABLE_DEPRECATION_WARNINGS if(CONFIG_MPEG_XVMC_DECODER && s->avctx->xvmc_acceleration){ ff_xvmc_decode_mb(s...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
void MPV_decode_mb_internal(MpegEncContext *s, int16_t block[12][64], int is_mpeg12) { const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; #if FF_API_XVMC FF_DISABLE_DEPRECATION_WARNINGS if(CONFIG_MPEG_XVMC_DECODER && s->avctx->xvmc_acceleration){ ff_xvmc_decode_mb(s...
{ "code": [ " const int uvlinesize = s->current_picture.f.linesize[1];", " ff_MPV_motion(s, dest_y, dest_cb, dest_cr, 0, s->last_picture.f.data, op_pix, op_qpix);", " ff_MPV_motion(s, dest_y, dest_cb, dest_cr, 1, s->next_picture.f.data, op_pix, op_qpix);" ], ...
void FUNC_0(MpegEncContext *VAR_0, int16_t VAR_1[12][64], int VAR_2) { const int VAR_3 = VAR_0->mb_y * VAR_0->mb_stride + VAR_0->mb_x; #if FF_API_XVMC FF_DISABLE_DEPRECATION_WARNINGS if(CONFIG_MPEG_XVMC_DECODER && VAR_0->avctx->xvmc_acceleration){ ff_xvmc_decode_mb(V...
[ "void FUNC_0(MpegEncContext *VAR_0, int16_t VAR_1[12][64],\nint VAR_2)\n{", "const int VAR_3 = VAR_0->mb_y * VAR_0->mb_stride + VAR_0->mb_x;", "#if FF_API_XVMC\nFF_DISABLE_DEPRECATION_WARNINGS\nif(CONFIG_MPEG_XVMC_DECODER && VAR_0->avctx->xvmc_acceleration){", "ff_xvmc_decode_mb(VAR_0);", "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, 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...
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], ...
15,858
static void vfio_start_irqfd_injection(SysBusDevice *sbdev, qemu_irq irq) { VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(sbdev); VFIOINTp *intp; if (!kvm_irqfds_enabled() || !kvm_resamplefds_enabled() || !vdev->irqfd_allowed) { goto fail_irqfd; } QLIST_FOREACH(intp, &v...
true
qemu
a5b39cd3f647eaaaef5b648beda5cb2f387418c0
static void vfio_start_irqfd_injection(SysBusDevice *sbdev, qemu_irq irq) { VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(sbdev); VFIOINTp *intp; if (!kvm_irqfds_enabled() || !kvm_resamplefds_enabled() || !vdev->irqfd_allowed) { goto fail_irqfd; } QLIST_FOREACH(intp, &v...
{ "code": [ " if (vfio_set_resample_eventfd(intp) < 0) {", " goto fail_vfio;", " trace_vfio_platform_start_irqfd_injection(intp->pin,", " event_notifier_get_fd(intp->interrupt),", " event_notifier_get_fd(intp->unm...
static void FUNC_0(SysBusDevice *VAR_0, qemu_irq VAR_1) { VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(VAR_0); VFIOINTp *intp; if (!kvm_irqfds_enabled() || !kvm_resamplefds_enabled() || !vdev->irqfd_allowed) { goto fail_irqfd; } QLIST_FOREACH(intp, &vdev->intp_list, ne...
[ "static void FUNC_0(SysBusDevice *VAR_0, qemu_irq VAR_1)\n{", "VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(VAR_0);", "VFIOINTp *intp;", "if (!kvm_irqfds_enabled() || !kvm_resamplefds_enabled() ||\n!vdev->irqfd_allowed) {", "goto fail_irqfd;", "}", "QLIST_FOREACH(intp, &vdev->intp_list, next) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
15,859
static inline void RENAME(BEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
true
FFmpeg
c3ab0004ae4dffc32494ae84dd15cfaa909a7884
static inline void RENAME(BEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
{ "code": [ "static inline void RENAME(BEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)" ], "line_no": [ 1 ] }
static inline void FUNC_0(BEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
[ "static inline void FUNC_0(BEToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)\n{", "#if COMPILE_TEMPLATE_MMX\n__asm__ volatile(\n\"movq \"MANGLE(bm01010101)\", %%mm4 \\n\\t\"\n\"mov %0, %%\"REG_a\" \\n\\t\"\n\"1: ...
[ 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61, 63 ] ]
15,860
static inline void RENAME(rgb24to16)(const uint8_t *src, uint8_t *dst, int src_size) { const uint8_t *s = src; const uint8_t *end; const uint8_t *mm_end; uint16_t *d = (uint16_t *)dst; end = s + src_size; __asm__ volatile(PREFETCH" %0"::"m"(*src):"memory"); __asm__ volatile( ...
true
FFmpeg
90540c2d5ace46a1e9789c75fde0b1f7dbb12a9b
static inline void RENAME(rgb24to16)(const uint8_t *src, uint8_t *dst, int src_size) { const uint8_t *s = src; const uint8_t *end; const uint8_t *mm_end; uint16_t *d = (uint16_t *)dst; end = s + src_size; __asm__ volatile(PREFETCH" %0"::"m"(*src):"memory"); __asm__ volatile( ...
{ "code": [ " PREFETCH\" 32%1 \\n\\t\"", " \"movd %1, %%mm0 \\n\\t\"", " PREFETCH\" 32%1 \\n\\t\"", " PREFETCH\" 32%1 \\n\\t\"", " \"movd %1, %%mm0 \\n\\t\"", " MOVN...
static inline void FUNC_0(rgb24to16)(const uint8_t *src, uint8_t *dst, int src_size) { const uint8_t *VAR_0 = src; const uint8_t *VAR_1; const uint8_t *VAR_2; uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; __asm__ volatile(PREFETCH" %0"::"m"(*src):"memory"); __asm__ vola...
[ "static inline void FUNC_0(rgb24to16)(const uint8_t *src, uint8_t *dst, int src_size)\n{", "const uint8_t *VAR_0 = src;", "const uint8_t *VAR_1;", "const uint8_t *VAR_2;", "uint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "__asm__ volatile(PREFETCH\" %0\"::\"m\"(*src):\"memory\");", "_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 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,...
15,861
int socket_connect(SocketAddress *addr, Error **errp, NonBlockingConnectHandler *callback, void *opaque) { QemuOpts *opts; int fd; opts = qemu_opts_create_nofail(&socket_optslist); switch (addr->kind) { case SOCKET_ADDRESS_KIND_INET: inet_addr_to_opts(opts, addr-...
true
qemu
1a751ebfbb2d7a696b889d8208cb5ffc83c090b1
int socket_connect(SocketAddress *addr, Error **errp, NonBlockingConnectHandler *callback, void *opaque) { QemuOpts *opts; int fd; opts = qemu_opts_create_nofail(&socket_optslist); switch (addr->kind) { case SOCKET_ADDRESS_KIND_INET: inet_addr_to_opts(opts, addr-...
{ "code": [], "line_no": [] }
int FUNC_0(SocketAddress *VAR_0, Error **VAR_1, NonBlockingConnectHandler *VAR_2, void *VAR_3) { QemuOpts *opts; int VAR_4; opts = qemu_opts_create_nofail(&socket_optslist); switch (VAR_0->kind) { case SOCKET_ADDRESS_KIND_INET: inet_addr_to_opts(opts, VAR_0->inet...
[ "int FUNC_0(SocketAddress *VAR_0, Error **VAR_1,\nNonBlockingConnectHandler *VAR_2, void *VAR_3)\n{", "QemuOpts *opts;", "int VAR_4;", "opts = qemu_opts_create_nofail(&socket_optslist);", "switch (VAR_0->kind) {", "case SOCKET_ADDRESS_KIND_INET:\ninet_addr_to_opts(opts, VAR_0->inet);", "VAR_4 = inet_con...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 44 ], [ 46 ], [ 48 ], [ 52, 54 ], [...
15,862
void do_divwo (void) { if (likely(!((Ts0 == INT32_MIN && Ts1 == -1) || Ts1 == 0))) { xer_ov = 0; T0 = (Ts0 / Ts1); } else { xer_so = 1; xer_ov = 1; T0 = (-1) * ((uint32_t)T0 >> 31); } }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
void do_divwo (void) { if (likely(!((Ts0 == INT32_MIN && Ts1 == -1) || Ts1 == 0))) { xer_ov = 0; T0 = (Ts0 / Ts1); } else { xer_so = 1; xer_ov = 1; T0 = (-1) * ((uint32_t)T0 >> 31); } }
{ "code": [ " } else {", " } else {", " T0 = (Ts0 / Ts1);", " } else {", " xer_ov = 0;", " } else {", " xer_so = 1;", " xer_ov = 1;", " } else {", " xer_ov = 0;", " } else {", " xer_so = 1;", " xer_o...
void FUNC_0 (void) { if (likely(!((Ts0 == INT32_MIN && Ts1 == -1) || Ts1 == 0))) { xer_ov = 0; T0 = (Ts0 / Ts1); } else { xer_so = 1; xer_ov = 1; T0 = (-1) * ((uint32_t)T0 >> 31); } }
[ "void FUNC_0 (void)\n{", "if (likely(!((Ts0 == INT32_MIN && Ts1 == -1) || Ts1 == 0))) {", "xer_ov = 0;", "T0 = (Ts0 / Ts1);", "} else {", "xer_so = 1;", "xer_ov = 1;", "T0 = (-1) * ((uint32_t)T0 >> 31);", "}", "}" ]
[ 0, 1, 1, 1, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
15,863
static void dump_json_image_info(ImageInfo *info) { Error *local_err = NULL; QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfo(qmp_output_get_visitor(ov), NULL, &info, &local_err); obj = qmp_output_get_qobject(ov); str = qobject_to_json...
true
qemu
911ee36d411ee9b3540855642b53219b6a974992
static void dump_json_image_info(ImageInfo *info) { Error *local_err = NULL; QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfo(qmp_output_get_visitor(ov), NULL, &info, &local_err); obj = qmp_output_get_qobject(ov); str = qobject_to_json...
{ "code": [ " Error *local_err = NULL;", " Error *local_err = NULL;", " Error *local_err = NULL;", " visit_type_ImageInfo(qmp_output_get_visitor(ov), NULL, &info, &local_err);" ], "line_no": [ 5, 5, 5, 13 ] }
static void FUNC_0(ImageInfo *VAR_0) { Error *local_err = NULL; QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfo(qmp_output_get_visitor(ov), NULL, &VAR_0, &local_err); obj = qmp_output_get_qobject(ov); str = qobject_to_json_pretty(obj)...
[ "static void FUNC_0(ImageInfo *VAR_0)\n{", "Error *local_err = NULL;", "QString *str;", "QmpOutputVisitor *ov = qmp_output_visitor_new();", "QObject *obj;", "visit_type_ImageInfo(qmp_output_get_visitor(ov), NULL, &VAR_0, &local_err);", "obj = qmp_output_get_qobject(ov);", "str = qobject_to_json_pretty...
[ 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
15,864
static av_cold int vtenc_init(AVCodecContext *avctx) { CFMutableDictionaryRef enc_info; CFMutableDictionaryRef pixel_buffer_info; CMVideoCodecType codec_type; VTEncContext *vtctx = avctx->priv_data; CFStringRef profile_level; CFBooleanRef has_b_frames_...
true
FFmpeg
9f26d670e447767683ed21b1b5ac16423eba4c72
static av_cold int vtenc_init(AVCodecContext *avctx) { CFMutableDictionaryRef enc_info; CFMutableDictionaryRef pixel_buffer_info; CMVideoCodecType codec_type; VTEncContext *vtctx = avctx->priv_data; CFStringRef profile_level; CFBooleanRef has_b_frames_...
{ "code": [ " if (!status) {" ], "line_no": [ 199 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { CFMutableDictionaryRef enc_info; CFMutableDictionaryRef pixel_buffer_info; CMVideoCodecType codec_type; VTEncContext *vtctx = avctx->priv_data; CFStringRef profile_level; CFBooleanRef has_b_frames_cfbo...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "CFMutableDictionaryRef enc_info;", "CFMutableDictionaryRef pixel_buffer_info;", "CMVideoCodecType codec_type;", "VTEncContext *vtctx = avctx->priv_data;", "CFStringRef profile_level;", "CFBooleanRef has_b_frames...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
15,865
bool qemu_run_timers(QEMUClock *clock) { return qemu_clock_run_timers(clock->type); }
false
qemu
b4049b74b97f30fe944c63b5f158ec9e87bd2593
bool qemu_run_timers(QEMUClock *clock) { return qemu_clock_run_timers(clock->type); }
{ "code": [], "line_no": [] }
bool FUNC_0(QEMUClock *clock) { return qemu_clock_run_timers(clock->type); }
[ "bool FUNC_0(QEMUClock *clock)\n{", "return qemu_clock_run_timers(clock->type);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
15,866
void *cpu_physical_memory_map(target_phys_addr_t addr, target_phys_addr_t *plen, int is_write) { return address_space_map(&address_space_memory, addr, plen, is_write); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void *cpu_physical_memory_map(target_phys_addr_t addr, target_phys_addr_t *plen, int is_write) { return address_space_map(&address_space_memory, addr, plen, is_write); }
{ "code": [], "line_no": [] }
void *FUNC_0(target_phys_addr_t VAR_0, target_phys_addr_t *VAR_1, int VAR_2) { return address_space_map(&address_space_memory, VAR_0, VAR_1, VAR_2); }
[ "void *FUNC_0(target_phys_addr_t VAR_0,\ntarget_phys_addr_t *VAR_1,\nint VAR_2)\n{", "return address_space_map(&address_space_memory, VAR_0, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ] ]
15,867
static void virtio_pci_device_unplugged(DeviceState *d) { VirtIOPCIProxy *proxy = VIRTIO_PCI(d); bool modern = !(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_MODERN); bool modern_pio = proxy->flags & VIRTIO_PCI_FLAG_MODERN_PIO_NOTIFY; virtio_pci_stop_ioeventfd(proxy); if (modern) { virt...
false
qemu
9a4c0e220d8a4f82b5665d0ee95ef94d8e1509d5
static void virtio_pci_device_unplugged(DeviceState *d) { VirtIOPCIProxy *proxy = VIRTIO_PCI(d); bool modern = !(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_MODERN); bool modern_pio = proxy->flags & VIRTIO_PCI_FLAG_MODERN_PIO_NOTIFY; virtio_pci_stop_ioeventfd(proxy); if (modern) { virt...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0) { VirtIOPCIProxy *proxy = VIRTIO_PCI(VAR_0); bool modern = !(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_MODERN); bool modern_pio = proxy->flags & VIRTIO_PCI_FLAG_MODERN_PIO_NOTIFY; virtio_pci_stop_ioeventfd(proxy); if (modern) { virtio_pci_modern...
[ "static void FUNC_0(DeviceState *VAR_0)\n{", "VirtIOPCIProxy *proxy = VIRTIO_PCI(VAR_0);", "bool modern = !(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_MODERN);", "bool modern_pio = proxy->flags & VIRTIO_PCI_FLAG_MODERN_PIO_NOTIFY;", "virtio_pci_stop_ioeventfd(proxy);", "if (modern) {", "virtio_pci_modern_me...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
15,868
static void apb_config_writel (void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { APBState *s = opaque; APB_DPRINTF("%s: addr " TARGET_FMT_lx " val %" PRIx64 "\n", __func__, addr, val); switch (addr & 0xffff) { case 0x30 ... 0x4f: /* DMA error ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void apb_config_writel (void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { APBState *s = opaque; APB_DPRINTF("%s: addr " TARGET_FMT_lx " val %" PRIx64 "\n", __func__, addr, val); switch (addr & 0xffff) { case 0x30 ... 0x4f: ...
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { APBState *s = VAR_0; APB_DPRINTF("%s: VAR_1 " TARGET_FMT_lx " VAR_2 %" PRIx64 "\n", __func__, VAR_1, VAR_2); switch (VAR_1 & 0xffff) { case 0x30 ... 0x4f: ...
[ "static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "APBState *s = VAR_0;", "APB_DPRINTF(\"%s: VAR_1 \" TARGET_FMT_lx \" VAR_2 %\" PRIx64 \"\\n\", __func__, VAR_1, VAR_2);", "switch (VAR_1 & 0xffff) {", "case 0x30 ... 0x4f:\nbreak;", "case 0x200 ... 0x20b:\ns-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17, 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53...
15,870
static inline int small_diamond_search(MpegEncContext * s, int *best, int dmin, UINT8 *new_pic, UINT8 *old_pic, int pic_stride, int pred_x, int pred_y, UINT16 *mv_penalty, int quant, int xmin, int ymi...
false
FFmpeg
0d21a84605bad4e75dacb8196e5859902ed36f01
static inline int small_diamond_search(MpegEncContext * s, int *best, int dmin, UINT8 *new_pic, UINT8 *old_pic, int pic_stride, int pred_x, int pred_y, UINT16 *mv_penalty, int quant, int xmin, int ymi...
{ "code": [], "line_no": [] }
static inline int FUNC_0(MpegEncContext * VAR_0, int *VAR_1, int VAR_2, UINT8 *VAR_3, UINT8 *VAR_4, int VAR_5, int VAR_6, int VAR_7, UINT16 *VAR_8, int VAR_9, int VAR_10, int VAR_11, int VAR_12, int V...
[ "static inline int FUNC_0(MpegEncContext * VAR_0, int *VAR_1, int VAR_2,\nUINT8 *VAR_3, UINT8 *VAR_4, int VAR_5,\nint VAR_6, int VAR_7, UINT16 *VAR_8, int VAR_9,\nint VAR_10, int VAR_11, int VAR_12, int VAR_13, int VAR_14)\n{", "int VAR_15=-1;", "for(;;){", "int VAR_16;", "const int VAR_17= VAR_15;", "con...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31, 33, 35, 37, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 99 ] ]
15,871
pci_ebus_init1(PCIDevice *s) { isa_bus_new(&s->qdev); pci_config_set_vendor_id(s->config, PCI_VENDOR_ID_SUN); pci_config_set_device_id(s->config, PCI_DEVICE_ID_SUN_EBUS); s->config[0x04] = 0x06; // command = bus master, pci mem s->config[0x05] = 0x00; s->config[0x06] = 0xa0; // status =...
false
qemu
e8b36ba92e0394815b64d96b00e81db3c851f6e2
pci_ebus_init1(PCIDevice *s) { isa_bus_new(&s->qdev); pci_config_set_vendor_id(s->config, PCI_VENDOR_ID_SUN); pci_config_set_device_id(s->config, PCI_DEVICE_ID_SUN_EBUS); s->config[0x04] = 0x06; s->config[0x05] = 0x00; s->config[0x06] = 0xa0; s->config[0x07] = 0x03; s->conf...
{ "code": [], "line_no": [] }
FUNC_0(PCIDevice *VAR_0) { isa_bus_new(&VAR_0->qdev); pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_SUN); pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_SUN_EBUS); VAR_0->config[0x04] = 0x06; VAR_0->config[0x05] = 0x00; VAR_0->config[0x06] = 0xa0; VAR_0->config[0x0...
[ "FUNC_0(PCIDevice *VAR_0)\n{", "isa_bus_new(&VAR_0->qdev);", "pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_SUN);", "pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_SUN_EBUS);", "VAR_0->config[0x04] = 0x06;", "VAR_0->config[0x05] = 0x00;", "VAR_0->config[0x06] = 0xa0;", "VAR_0->config[0x...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ] ]
15,872
static int v9fs_synth_fsync(FsContext *ctx, int fid_type, V9fsFidOpenState *fs, int datasync) { errno = ENOSYS; return 0; }
false
qemu
364031f17932814484657e5551ba12957d993d7e
static int v9fs_synth_fsync(FsContext *ctx, int fid_type, V9fsFidOpenState *fs, int datasync) { errno = ENOSYS; return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, int VAR_1, V9fsFidOpenState *VAR_2, int VAR_3) { errno = ENOSYS; return 0; }
[ "static int FUNC_0(FsContext *VAR_0, int VAR_1,\nV9fsFidOpenState *VAR_2, int VAR_3)\n{", "errno = ENOSYS;", "return 0;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
15,873
int64_t qmp_guest_fsfreeze_freeze(Error **err) { error_set(err, QERR_UNSUPPORTED); return 0; }
false
qemu
64c003174039d0c63ea2bef48d600363ce80a58b
int64_t qmp_guest_fsfreeze_freeze(Error **err) { error_set(err, QERR_UNSUPPORTED); return 0; }
{ "code": [], "line_no": [] }
int64_t FUNC_0(Error **err) { error_set(err, QERR_UNSUPPORTED); return 0; }
[ "int64_t FUNC_0(Error **err)\n{", "error_set(err, QERR_UNSUPPORTED);", "return 0;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
15,874
static void raw_probe_alignment(BlockDriverState *bs) { BDRVRawState *s = bs->opaque; DWORD sectorsPerCluster, freeClusters, totalClusters, count; DISK_GEOMETRY_EX dg; BOOL status; if (s->type == FTYPE_CD) { bs->request_alignment = 2048; return; } if (s->type == F...
false
qemu
2914a1de992118286f5280eddf4f4e6060a8e00b
static void raw_probe_alignment(BlockDriverState *bs) { BDRVRawState *s = bs->opaque; DWORD sectorsPerCluster, freeClusters, totalClusters, count; DISK_GEOMETRY_EX dg; BOOL status; if (s->type == FTYPE_CD) { bs->request_alignment = 2048; return; } if (s->type == F...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0) { BDRVRawState *s = VAR_0->opaque; DWORD sectorsPerCluster, freeClusters, totalClusters, count; DISK_GEOMETRY_EX dg; BOOL status; if (s->type == FTYPE_CD) { VAR_0->request_alignment = 2048; return; } if (s->type == FTYPE...
[ "static void FUNC_0(BlockDriverState *VAR_0)\n{", "BDRVRawState *s = VAR_0->opaque;", "DWORD sectorsPerCluster, freeClusters, totalClusters, count;", "DISK_GEOMETRY_EX dg;", "BOOL status;", "if (s->type == FTYPE_CD) {", "VAR_0->request_alignment = 2048;", "return;", "}", "if (s->type == FTYPE_HARD...
[ 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 ], [ 39 ], [ 43 ], [ 45, 47, 49 ], [...
15,875
static inline void gen_neon_narrow_satu(int size, TCGv dest, TCGv src) { switch (size) { case 0: gen_helper_neon_narrow_sat_u8(dest, cpu_env, src); break; case 1: gen_helper_neon_narrow_sat_u16(dest, cpu_env, src); break; case 2: gen_helper_neon_narrow_sat_u32(dest, cpu_env, src); break; defau...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static inline void gen_neon_narrow_satu(int size, TCGv dest, TCGv src) { switch (size) { case 0: gen_helper_neon_narrow_sat_u8(dest, cpu_env, src); break; case 1: gen_helper_neon_narrow_sat_u16(dest, cpu_env, src); break; case 2: gen_helper_neon_narrow_sat_u32(dest, cpu_env, src); break; defau...
{ "code": [], "line_no": [] }
static inline void FUNC_0(int VAR_0, TCGv VAR_1, TCGv VAR_2) { switch (VAR_0) { case 0: gen_helper_neon_narrow_sat_u8(VAR_1, cpu_env, VAR_2); break; case 1: gen_helper_neon_narrow_sat_u16(VAR_1, cpu_env, VAR_2); break; case 2: gen_helper_neon_narrow_sat_u32(VAR_1, cpu_env, VAR_2); break; defau...
[ "static inline void FUNC_0(int VAR_0, TCGv VAR_1, TCGv VAR_2)\n{", "switch (VAR_0) {", "case 0: gen_helper_neon_narrow_sat_u8(VAR_1, cpu_env, VAR_2); break;", "case 1: gen_helper_neon_narrow_sat_u16(VAR_1, cpu_env, VAR_2); break;", "case 2: gen_helper_neon_narrow_sat_u32(VAR_1, cpu_env, VAR_2); break;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
15,876
static void block_dirty_bitmap_clear_prepare(BlkActionState *common, Error **errp) { BlockDirtyBitmapState *state = DO_UPCAST(BlockDirtyBitmapState, common, common); BlockDirtyBitmap *action; if (action_check_c...
false
qemu
2119882c7eb7e2c612b24fc0c8d86f5887d6f1c3
static void block_dirty_bitmap_clear_prepare(BlkActionState *common, Error **errp) { BlockDirtyBitmapState *state = DO_UPCAST(BlockDirtyBitmapState, common, common); BlockDirtyBitmap *action; if (action_check_c...
{ "code": [], "line_no": [] }
static void FUNC_0(BlkActionState *VAR_0, Error **VAR_1) { BlockDirtyBitmapState *state = DO_UPCAST(BlockDirtyBitmapState, VAR_0, VAR_0); BlockDirtyBitmap *action; if (action_check_completion_mode(VAR_0, VAR_1)...
[ "static void FUNC_0(BlkActionState *VAR_0,\nError **VAR_1)\n{", "BlockDirtyBitmapState *state = DO_UPCAST(BlockDirtyBitmapState,\nVAR_0, VAR_0);", "BlockDirtyBitmap *action;", "if (action_check_completion_mode(VAR_0, VAR_1) < 0) {", "return;", "}", "action = VAR_0->action->u.block_dirty_bitmap_clear.dat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27, 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
15,878
static uint64_t bonito_ldma_readl(void *opaque, target_phys_addr_t addr, unsigned size) { uint32_t val; PCIBonitoState *s = opaque; val = ((uint32_t *)(&s->bonldma))[addr/sizeof(uint32_t)]; return val; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t bonito_ldma_readl(void *opaque, target_phys_addr_t addr, unsigned size) { uint32_t val; PCIBonitoState *s = opaque; val = ((uint32_t *)(&s->bonldma))[addr/sizeof(uint32_t)]; return val; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { uint32_t val; PCIBonitoState *s = opaque; val = ((uint32_t *)(&s->bonldma))[addr/sizeof(uint32_t)]; return val; }
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "uint32_t val;", "PCIBonitoState *s = opaque;", "val = ((uint32_t *)(&s->bonldma))[addr/sizeof(uint32_t)];", "return val;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ] ]
15,880
static void tcg_out_movi(TCGContext *s, TCGType type, TCGReg t0, tcg_target_long arg) { uint8_t *old_code_ptr = s->code_ptr; uint32_t arg32 = arg; if (type == TCG_TYPE_I32 || arg == arg32) { tcg_out_op_t(s, INDEX_op_movi_i32); tcg_out_r(s, t0); tcg_ou...
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static void tcg_out_movi(TCGContext *s, TCGType type, TCGReg t0, tcg_target_long arg) { uint8_t *old_code_ptr = s->code_ptr; uint32_t arg32 = arg; if (type == TCG_TYPE_I32 || arg == arg32) { tcg_out_op_t(s, INDEX_op_movi_i32); tcg_out_r(s, t0); tcg_ou...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, tcg_target_long VAR_3) { uint8_t *old_code_ptr = VAR_0->code_ptr; uint32_t arg32 = VAR_3; if (VAR_1 == TCG_TYPE_I32 || VAR_3 == arg32) { tcg_out_op_t(VAR_0, INDEX_op_movi_i32); tcg_out_r(VAR_0,...
[ "static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1,\nTCGReg VAR_2, tcg_target_long VAR_3)\n{", "uint8_t *old_code_ptr = VAR_0->code_ptr;", "uint32_t arg32 = VAR_3;", "if (VAR_1 == TCG_TYPE_I32 || VAR_3 == arg32) {", "tcg_out_op_t(VAR_0, INDEX_op_movi_i32);", "tcg_out_r(VAR_0, VAR_2);", "tcg_out32(VAR_...
[ 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 ] ]
15,881
static int mjpeg_probe(AVProbeData *p) { int i; int state = -1; int nb_invalid = 0; int nb_frames = 0; for (i=0; i<p->buf_size-2; i++) { int c; if (p->buf[i] != 0xFF) continue; c = p->buf[i+1]; switch (c) { case 0xD8: sta...
false
FFmpeg
bf51fcd304d5594a4d8eed2bedf0ef0f68fa65f8
static int mjpeg_probe(AVProbeData *p) { int i; int state = -1; int nb_invalid = 0; int nb_frames = 0; for (i=0; i<p->buf_size-2; i++) { int c; if (p->buf[i] != 0xFF) continue; c = p->buf[i+1]; switch (c) { case 0xD8: sta...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { int VAR_6; int VAR_2 = -1; int VAR_3 = 0; int VAR_4 = 0; for (VAR_6=0; VAR_6<VAR_0->buf_size-2; VAR_6++) { int c; if (VAR_0->buf[VAR_6] != 0xFF) continue; c = VAR_0->buf[VAR_6+1]; switch (c) { c...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "int VAR_6;", "int VAR_2 = -1;", "int VAR_3 = 0;", "int VAR_4 = 0;", "for (VAR_6=0; VAR_6<VAR_0->buf_size-2; VAR_6++) {", "int c;", "if (VAR_0->buf[VAR_6] != 0xFF)\ncontinue;", "c = VAR_0->buf[VAR_6+1];", "switch (c) {", "case 0xD8:\nVAR_2 = 0xD8;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35, 37, 39, 41, 43, 45, 47, 49 ], [ 51 ], [ 53 ...
15,882
static void omap_mcbsp_writew(void *opaque, target_phys_addr_t addr, uint32_t value) { struct omap_mcbsp_s *s = (struct omap_mcbsp_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (offset == 0x04) { /* DXR */ if (((s->xcr[0] >> 5) & 7) < 3) /* XWDLEN1 */ ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void omap_mcbsp_writew(void *opaque, target_phys_addr_t addr, uint32_t value) { struct omap_mcbsp_s *s = (struct omap_mcbsp_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (offset == 0x04) { if (((s->xcr[0] >> 5) & 7) < 3) return; i...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { struct omap_mcbsp_s *VAR_3 = (struct omap_mcbsp_s *) VAR_0; int VAR_4 = VAR_1 & OMAP_MPUI_REG_MASK; if (VAR_4 == 0x04) { if (((VAR_3->xcr[0] >> 5) & 7) < 3) return; if (VA...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "struct omap_mcbsp_s *VAR_3 = (struct omap_mcbsp_s *) VAR_0;", "int VAR_4 = VAR_1 & OMAP_MPUI_REG_MASK;", "if (VAR_4 == 0x04) {", "if (((VAR_3->xcr[0] >> 5) & 7) < 3)\nreturn;", "if (VAR_3->tx_req > 3) {", "VAR_3->tx_req -=...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
15,884
static void memory_region_update_coalesced_range_as(MemoryRegion *mr, AddressSpace *as) { FlatView *view; FlatRange *fr; CoalescedMemoryRange *cmr; AddrRange tmp; MemoryRegionSection section; view = as->current_map; FOR_EACH_FLAT_RANGE(fr, view) { if (fr->mr == mr) { ...
false
qemu
856d72454f03aea26fd61c728762ef9cd1d71512
static void memory_region_update_coalesced_range_as(MemoryRegion *mr, AddressSpace *as) { FlatView *view; FlatRange *fr; CoalescedMemoryRange *cmr; AddrRange tmp; MemoryRegionSection section; view = as->current_map; FOR_EACH_FLAT_RANGE(fr, view) { if (fr->mr == mr) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryRegion *VAR_0, AddressSpace *VAR_1) { FlatView *view; FlatRange *fr; CoalescedMemoryRange *cmr; AddrRange tmp; MemoryRegionSection section; view = VAR_1->current_map; FOR_EACH_FLAT_RANGE(fr, view) { if (fr->VAR_0 == VAR_0) { section = ...
[ "static void FUNC_0(MemoryRegion *VAR_0, AddressSpace *VAR_1)\n{", "FlatView *view;", "FlatRange *fr;", "CoalescedMemoryRange *cmr;", "AddrRange tmp;", "MemoryRegionSection section;", "view = VAR_1->current_map;", "FOR_EACH_FLAT_RANGE(fr, view) {", "if (fr->VAR_0 == VAR_0) {", "section = (MemoryRe...
[ 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 ], [ 35, 37, 39 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 51 ], [...
15,886
static void lance_cleanup(NetClientState *nc) { PCNetState *d = qemu_get_nic_opaque(nc); pcnet_common_cleanup(d); }
false
qemu
57407ea44cc0a3d630b9b89a2be011f1955ce5c1
static void lance_cleanup(NetClientState *nc) { PCNetState *d = qemu_get_nic_opaque(nc); pcnet_common_cleanup(d); }
{ "code": [], "line_no": [] }
static void FUNC_0(NetClientState *VAR_0) { PCNetState *d = qemu_get_nic_opaque(VAR_0); pcnet_common_cleanup(d); }
[ "static void FUNC_0(NetClientState *VAR_0)\n{", "PCNetState *d = qemu_get_nic_opaque(VAR_0);", "pcnet_common_cleanup(d);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
15,887
static int kvm_put_sregs(CPUState *env) { struct kvm_sregs sregs; memset(sregs.interrupt_bitmap, 0, sizeof(sregs.interrupt_bitmap)); if (env->interrupt_injected >= 0) { sregs.interrupt_bitmap[env->interrupt_injected / 64] |= (uint64_t)1 << (env->interrupt_injected % 64); ...
false
qemu
b9bec74bcb16519a876ec21cd5277c526a9b512d
static int kvm_put_sregs(CPUState *env) { struct kvm_sregs sregs; memset(sregs.interrupt_bitmap, 0, sizeof(sregs.interrupt_bitmap)); if (env->interrupt_injected >= 0) { sregs.interrupt_bitmap[env->interrupt_injected / 64] |= (uint64_t)1 << (env->interrupt_injected % 64); ...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0) { struct kvm_sregs VAR_1; memset(VAR_1.interrupt_bitmap, 0, sizeof(VAR_1.interrupt_bitmap)); if (VAR_0->interrupt_injected >= 0) { VAR_1.interrupt_bitmap[VAR_0->interrupt_injected / 64] |= (uint64_t)1 << (VAR_0->interrupt_injected % 64); ...
[ "static int FUNC_0(CPUState *VAR_0)\n{", "struct kvm_sregs VAR_1;", "memset(VAR_1.interrupt_bitmap, 0, sizeof(VAR_1.interrupt_bitmap));", "if (VAR_0->interrupt_injected >= 0) {", "VAR_1.interrupt_bitmap[VAR_0->interrupt_injected / 64] |=\n(uint64_t)1 << (VAR_0->interrupt_injected % 64);", "}", "if ((VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...
15,888
static int check_refcounts_l1(BlockDriverState *bs, BdrvCheckResult *res, uint16_t *refcount_table, int64_t refcount_table_size, int64_t l1_table_offset, int l1_size, ...
false
qemu
641bb63cd6b003ab0ca2e312a014449037d71647
static int check_refcounts_l1(BlockDriverState *bs, BdrvCheckResult *res, uint16_t *refcount_table, int64_t refcount_table_size, int64_t l1_table_offset, int l1_size, ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, uint16_t *VAR_2, int64_t VAR_3, int64_t VAR_4, int VAR_5, int VAR_6) { BDRVQcowState *s = VA...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nBdrvCheckResult *VAR_1,\nuint16_t *VAR_2,\nint64_t VAR_3,\nint64_t VAR_4, int VAR_5,\nint VAR_6)\n{", "BDRVQcowState *s = VAR_0->opaque;", "uint64_t *l1_table = NULL, l2_offset, l1_size2;", "int VAR_7, VAR_8;", "l1_size2 = VAR_5 * sizeof(uint64_t);", "VAR_8 = i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
15,889
static int coroutine_fn iscsi_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; uint64_t lba; uint32_t num_sectors; ...
false
qemu
9f0eb9e129398d8907ec990b18c03f20ee0de15e
static int coroutine_fn iscsi_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; uint64_t lba; uint32_t num_sectors; ...
{ "code": [], "line_no": [] }
static int VAR_0 iscsi_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; uint64_t lba; uint32_t num_sectors; int fua...
[ "static int VAR_0 iscsi_co_writev(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors,\nQEMUIOVector *iov)\n{", "IscsiLun *iscsilun = bs->opaque;", "struct IscsiTask iTask;", "uint64_t lba;", "uint32_t num_sectors;", "int fua;", "if (!is_request_lun_aligned(sector_num, nb_sectors, iscsilun)) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ...
15,891
static BlockDriverAIOCB *raw_aio_submit(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque, int type) { BDRVRawState *s = bs->opaque; if (fd_open(bs) < 0) return NULL; /* * If O_DIRECT is used the...
false
qemu
c53b1c5114bdf7fc945cbf11436da61789ca2267
static BlockDriverAIOCB *raw_aio_submit(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque, int type) { BDRVRawState *s = bs->opaque; if (fd_open(bs) < 0) return NULL; if ((bs->open_flags ...
{ "code": [], "line_no": [] }
static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque, int type) { BDRVRawState *s = bs->opaque; if (fd_open(bs) < 0) return NULL; if ((bs->open_flags & BDRV_O...
[ "static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque, int type)\n{", "BDRVRawState *s = bs->opaque;", "if (fd_open(bs) < 0)\nreturn NULL;", "if ((bs->open_flags & BDRV_O_NOCACHE)) {", "if (!qiov_is_aligne...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13, 15 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 51, 53 ], [ 55 ] ]
15,892
static void encode_header(SnowContext *s){ int plane_index, level, orientation; put_cabac(&s->c, s->header_state, s->keyframe); // state clearing stuff? if(s->keyframe){ put_symbol(&s->c, s->header_state, s->version, 0); put_symbol(&s->c, s->header_state, s->temporal_decomposition_typ...
false
FFmpeg
155ec6edf82692bcf3a5f87d2bc697404f4e5aaf
static void encode_header(SnowContext *s){ int plane_index, level, orientation; put_cabac(&s->c, s->header_state, s->keyframe); if(s->keyframe){ put_symbol(&s->c, s->header_state, s->version, 0); put_symbol(&s->c, s->header_state, s->temporal_decomposition_type, 0); put_symb...
{ "code": [], "line_no": [] }
static void FUNC_0(SnowContext *VAR_0){ int VAR_1, VAR_2, VAR_3; put_cabac(&VAR_0->c, VAR_0->header_state, VAR_0->keyframe); if(VAR_0->keyframe){ put_symbol(&VAR_0->c, VAR_0->header_state, VAR_0->version, 0); put_symbol(&VAR_0->c, VAR_0->header_state, VAR_0->temporal_decomposition_ty...
[ "static void FUNC_0(SnowContext *VAR_0){", "int VAR_1, VAR_2, VAR_3;", "put_cabac(&VAR_0->c, VAR_0->header_state, VAR_0->keyframe);", "if(VAR_0->keyframe){", "put_symbol(&VAR_0->c, VAR_0->header_state, VAR_0->version, 0);", "put_symbol(&VAR_0->c, VAR_0->header_state, VAR_0->temporal_decomposition_type, 0)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...
15,893
void bdrv_iterate_format(void (*it)(void *opaque, const char *name), void *opaque) { BlockDriver *drv; int count = 0; int i; const char **formats = NULL; QLIST_FOREACH(drv, &bdrv_drivers, list) { if (drv->format_name) { bool found = false; ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
void bdrv_iterate_format(void (*it)(void *opaque, const char *name), void *opaque) { BlockDriver *drv; int count = 0; int i; const char **formats = NULL; QLIST_FOREACH(drv, &bdrv_drivers, list) { if (drv->format_name) { bool found = false; ...
{ "code": [], "line_no": [] }
void FUNC_0(void (*VAR_0)(void *VAR_3, const char *VAR_2), void *VAR_3) { BlockDriver *drv; int VAR_3 = 0; int VAR_4; const char **VAR_5 = NULL; QLIST_FOREACH(drv, &bdrv_drivers, list) { if (drv->format_name) { bool found = false; ...
[ "void FUNC_0(void (*VAR_0)(void *VAR_3, const char *VAR_2),\nvoid *VAR_3)\n{", "BlockDriver *drv;", "int VAR_3 = 0;", "int VAR_4;", "const char **VAR_5 = NULL;", "QLIST_FOREACH(drv, &bdrv_drivers, list) {", "if (drv->format_name) {", "bool found = false;", "int VAR_4 = VAR_3;", "while (VAR_5 && VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
15,894
static int tcg_target_const_match(tcg_target_long val, TCGType type, const TCGArgConstraint *arg_ct) { int ct = arg_ct->ct; if (ct & TCG_CT_CONST) { return 1; } if (type == TCG_TYPE_I32) { val = (int32_t)val; } /* The following ar...
false
qemu
ba18b07dc689a21caa31feee922c165e90b4c28b
static int tcg_target_const_match(tcg_target_long val, TCGType type, const TCGArgConstraint *arg_ct) { int ct = arg_ct->ct; if (ct & TCG_CT_CONST) { return 1; } if (type == TCG_TYPE_I32) { val = (int32_t)val; } if (ct & TCG_...
{ "code": [], "line_no": [] }
static int FUNC_0(tcg_target_long VAR_0, TCGType VAR_1, const TCGArgConstraint *VAR_2) { int VAR_3 = VAR_2->VAR_3; if (VAR_3 & TCG_CT_CONST) { return 1; } if (VAR_1 == TCG_TYPE_I32) { VAR_0 = (int32_t)VAR_0; } if (VAR_3 & TC...
[ "static int FUNC_0(tcg_target_long VAR_0, TCGType VAR_1,\nconst TCGArgConstraint *VAR_2)\n{", "int VAR_3 = VAR_2->VAR_3;", "if (VAR_3 & TCG_CT_CONST) {", "return 1;", "}", "if (VAR_1 == TCG_TYPE_I32) {", "VAR_0 = (int32_t)VAR_0;", "}", "if (VAR_3 & TCG_CT_CONST_S16) {", "return VAR_0 == (int16_t)V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
15,895
static void cpu_exec_nocache(CPUArchState *env, int max_cycles, TranslationBlock *orig_tb) { CPUState *cpu = ENV_GET_CPU(env); TranslationBlock *tb; target_ulong pc = orig_tb->pc; target_ulong cs_base = orig_tb->cs_base; uint64_t flags = orig_tb->flags; /* ...
false
qemu
d8a499f17ee5f05407874f29f69f0e3e3198a853
static void cpu_exec_nocache(CPUArchState *env, int max_cycles, TranslationBlock *orig_tb) { CPUState *cpu = ENV_GET_CPU(env); TranslationBlock *tb; target_ulong pc = orig_tb->pc; target_ulong cs_base = orig_tb->cs_base; uint64_t flags = orig_tb->flags; ...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUArchState *VAR_0, int VAR_1, TranslationBlock *VAR_2) { CPUState *cpu = ENV_GET_CPU(VAR_0); TranslationBlock *tb; target_ulong pc = VAR_2->pc; target_ulong cs_base = VAR_2->cs_base; uint64_t flags = VAR_2->flags; if (VAR_1 > CF...
[ "static void FUNC_0(CPUArchState *VAR_0, int VAR_1,\nTranslationBlock *VAR_2)\n{", "CPUState *cpu = ENV_GET_CPU(VAR_0);", "TranslationBlock *tb;", "target_ulong pc = VAR_2->pc;", "target_ulong cs_base = VAR_2->cs_base;", "uint64_t flags = VAR_2->flags;", "if (VAR_1 > CF_COUNT_MASK)\nVAR_1 = CF_COUNT_MAS...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 23, 25 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ] ]
15,896
void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end, int is_cpu_write_access) { TranslationBlock *tb, *tb_next; #if defined(TARGET_HAS_PRECISE_SMC) CPUState *cpu = current_cpu; CPUArchState *env = NULL; #endif tb_page_addr_t tb_start, tb...
false
qemu
9b990ee5a3cc6aa38f81266fb0c6ef37a36c45b9
void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end, int is_cpu_write_access) { TranslationBlock *tb, *tb_next; #if defined(TARGET_HAS_PRECISE_SMC) CPUState *cpu = current_cpu; CPUArchState *env = NULL; #endif tb_page_addr_t tb_start, tb...
{ "code": [], "line_no": [] }
void FUNC_0(tb_page_addr_t VAR_0, tb_page_addr_t VAR_1, int VAR_2) { TranslationBlock *tb, *tb_next; #if defined(TARGET_HAS_PRECISE_SMC) CPUState *cpu = current_cpu; CPUArchState *env = NULL; #endif tb_page_addr_t tb_start, tb_end; PageDesc *p; int VA...
[ "void FUNC_0(tb_page_addr_t VAR_0, tb_page_addr_t VAR_1,\nint VAR_2)\n{", "TranslationBlock *tb, *tb_next;", "#if defined(TARGET_HAS_PRECISE_SMC)\nCPUState *cpu = current_cpu;", "CPUArchState *env = NULL;", "#endif\ntb_page_addr_t tb_start, tb_end;", "PageDesc *p;", "int VAR_3;", "#ifdef TARGET_HAS_PR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 41 ], [ 43 ], [ 47 ], [ 49 ], [...
15,898
static void test_io_channel_setup_sync(SocketAddress *listen_addr, SocketAddress *connect_addr, QIOChannel **src, QIOChannel **dst) { QIOChannelSocket *lioc; lioc = qio_channel_socket_new...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
static void test_io_channel_setup_sync(SocketAddress *listen_addr, SocketAddress *connect_addr, QIOChannel **src, QIOChannel **dst) { QIOChannelSocket *lioc; lioc = qio_channel_socket_new...
{ "code": [], "line_no": [] }
static void FUNC_0(SocketAddress *VAR_0, SocketAddress *VAR_1, QIOChannel **VAR_2, QIOChannel **VAR_3) { QIOChannelSocket *lioc; lioc = qio_channel_socket_new(); qio_channel_socket_l...
[ "static void FUNC_0(SocketAddress *VAR_0,\nSocketAddress *VAR_1,\nQIOChannel **VAR_2,\nQIOChannel **VAR_3)\n{", "QIOChannelSocket *lioc;", "lioc = qio_channel_socket_new();", "qio_channel_socket_listen_sync(lioc, VAR_0, &error_abort);", "if (VAR_0->type == SOCKET_ADDRESS_KIND_INET) {", "SocketAddress *lad...
[ 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 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [...
15,899
static int qcow2_create2(const char *filename, int64_t total_size, const char *backing_file, const char *backing_format, int flags, size_t cluster_size, PreallocMode prealloc, QemuOpts *opts, int version, int refcount_order, ...
false
qemu
786a4ea82ec9c87e3a895cf41081029b285a5fe5
static int qcow2_create2(const char *filename, int64_t total_size, const char *backing_file, const char *backing_format, int flags, size_t cluster_size, PreallocMode prealloc, QemuOpts *opts, int version, int refcount_order, ...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, int64_t VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4, size_t VAR_5, PreallocMode VAR_6, QemuOpts *VAR_7, int VAR_8, int VAR_9, Error **VAR_10) { int VAR_11; ...
[ "static int FUNC_0(const char *VAR_0, int64_t VAR_1,\nconst char *VAR_2, const char *VAR_3,\nint VAR_4, size_t VAR_5, PreallocMode VAR_6,\nQemuOpts *VAR_7, int VAR_8, int VAR_9,\nError **VAR_10)\n{", "int VAR_11;", "VAR_11 = ffs(VAR_5) - 1;", "if (VAR_11 < MIN_CLUSTER_BITS || VAR_11 > MAX_CLUSTER_BITS ||\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, 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 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [ 71 ], [ 83 ], [ 85 ], [ 87 ], [...
15,900
static void ahci_start_transfer(IDEDMA *dma) { AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma); IDEState *s = &ad->port.ifs[0]; uint32_t size = (uint32_t)(s->data_end - s->data_ptr); /* write == ram -> device */ uint32_t opts = le32_to_cpu(ad->cur_cmd->opts); int is_write = opts & AHCI_C...
false
qemu
bef1301acb74d177b42890116e4eeaf26047b9e3
static void ahci_start_transfer(IDEDMA *dma) { AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma); IDEState *s = &ad->port.ifs[0]; uint32_t size = (uint32_t)(s->data_end - s->data_ptr); uint32_t opts = le32_to_cpu(ad->cur_cmd->opts); int is_write = opts & AHCI_CMD_WRITE; int is_atapi ...
{ "code": [], "line_no": [] }
static void FUNC_0(IDEDMA *VAR_0) { AHCIDevice *ad = DO_UPCAST(AHCIDevice, VAR_0, VAR_0); IDEState *s = &ad->port.ifs[0]; uint32_t size = (uint32_t)(s->data_end - s->data_ptr); uint32_t opts = le32_to_cpu(ad->cur_cmd->opts); int VAR_1 = opts & AHCI_CMD_WRITE; int VAR_2 = opts & AHCI...
[ "static void FUNC_0(IDEDMA *VAR_0)\n{", "AHCIDevice *ad = DO_UPCAST(AHCIDevice, VAR_0, VAR_0);", "IDEState *s = &ad->port.ifs[0];", "uint32_t size = (uint32_t)(s->data_end - s->data_ptr);", "uint32_t opts = le32_to_cpu(ad->cur_cmd->opts);", "int VAR_1 = opts & AHCI_CMD_WRITE;", "int VAR_2 = opts & AHCI_...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47, 49 ], [ 53 ], [ 55 ...
15,901
static int pl110_init(SysBusDevice *dev) { pl110_state *s = FROM_SYSBUS(pl110_state, dev); memory_region_init_io(&s->iomem, &pl110_ops, s, "pl110", 0x1000); sysbus_init_mmio(dev, &s->iomem); sysbus_init_irq(dev, &s->irq); qdev_init_gpio_in(&s->busdev.qdev, pl110_mux_ctrl_set, 1); s->con...
false
qemu
2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5
static int pl110_init(SysBusDevice *dev) { pl110_state *s = FROM_SYSBUS(pl110_state, dev); memory_region_init_io(&s->iomem, &pl110_ops, s, "pl110", 0x1000); sysbus_init_mmio(dev, &s->iomem); sysbus_init_irq(dev, &s->irq); qdev_init_gpio_in(&s->busdev.qdev, pl110_mux_ctrl_set, 1); s->con...
{ "code": [], "line_no": [] }
static int FUNC_0(SysBusDevice *VAR_0) { pl110_state *s = FROM_SYSBUS(pl110_state, VAR_0); memory_region_init_io(&s->iomem, &pl110_ops, s, "pl110", 0x1000); sysbus_init_mmio(VAR_0, &s->iomem); sysbus_init_irq(VAR_0, &s->irq); qdev_init_gpio_in(&s->busdev.qdev, pl110_mux_ctrl_set, 1); s-...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "pl110_state *s = FROM_SYSBUS(pl110_state, VAR_0);", "memory_region_init_io(&s->iomem, &pl110_ops, s, \"pl110\", 0x1000);", "sysbus_init_mmio(VAR_0, &s->iomem);", "sysbus_init_irq(VAR_0, &s->irq);", "qdev_init_gpio_in(&s->busdev.qdev, pl110_mux_ctrl_set, 1);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21 ], [ 23 ], [ 25 ] ]
15,903
static int ljpeg_encode_bgr(AVCodecContext *avctx, PutBitContext *pb, const AVFrame *frame) { LJpegEncContext *s = avctx->priv_data; const int width = frame->width; const int height = frame->height; const int linesize = frame->linesize[0]; uint16_t...
false
FFmpeg
2862b63783b5556f7f3fb2d097629bc6879f833a
static int ljpeg_encode_bgr(AVCodecContext *avctx, PutBitContext *pb, const AVFrame *frame) { LJpegEncContext *s = avctx->priv_data; const int width = frame->width; const int height = frame->height; const int linesize = frame->linesize[0]; uint16_t...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, PutBitContext *VAR_1, const AVFrame *VAR_2) { LJpegEncContext *s = VAR_0->priv_data; const int VAR_3 = VAR_2->VAR_3; const int VAR_4 = VAR_2->VAR_4; const int VAR_5 = VAR_2->VAR_5[0]; uint16_t (*buffer)[4] =...
[ "static int FUNC_0(AVCodecContext *VAR_0, PutBitContext *VAR_1,\nconst AVFrame *VAR_2)\n{", "LJpegEncContext *s = VAR_0->priv_data;", "const int VAR_3 = VAR_2->VAR_3;", "const int VAR_4 = VAR_2->VAR_4;", "const int VAR_5 = VAR_2->VAR_5[0];", "uint16_t (*buffer)[4] = s->scratch;", "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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [...
15,904
static int ipmovie_probe(AVProbeData *p) { if (p->buf_size < IPMOVIE_SIGNATURE_SIZE) return 0; if (strncmp(p->buf, IPMOVIE_SIGNATURE, IPMOVIE_SIGNATURE_SIZE) != 0) return 0; return AVPROBE_SCORE_MAX; }
false
FFmpeg
87e8788680e16c51f6048af26f3f7830c35207a5
static int ipmovie_probe(AVProbeData *p) { if (p->buf_size < IPMOVIE_SIGNATURE_SIZE) return 0; if (strncmp(p->buf, IPMOVIE_SIGNATURE, IPMOVIE_SIGNATURE_SIZE) != 0) return 0; return AVPROBE_SCORE_MAX; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { if (VAR_0->buf_size < IPMOVIE_SIGNATURE_SIZE) return 0; if (strncmp(VAR_0->buf, IPMOVIE_SIGNATURE, IPMOVIE_SIGNATURE_SIZE) != 0) return 0; return AVPROBE_SCORE_MAX; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if (VAR_0->buf_size < IPMOVIE_SIGNATURE_SIZE)\nreturn 0;", "if (strncmp(VAR_0->buf, IPMOVIE_SIGNATURE, IPMOVIE_SIGNATURE_SIZE) != 0)\nreturn 0;", "return AVPROBE_SCORE_MAX;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 15 ], [ 17 ] ]
15,905
static void vc1_decode_p_blocks(VC1Context *v) { MpegEncContext *s = &v->s; int apply_loop_filter; /* select codingmode used for VLC tables selection */ switch (v->c_ac_table_index) { case 0: v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA; break; ...
false
FFmpeg
0d194ee51ed477f843900e657a7edbcbecdffa42
static void vc1_decode_p_blocks(VC1Context *v) { MpegEncContext *s = &v->s; int apply_loop_filter; switch (v->c_ac_table_index) { case 0: v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA; break; case 1: v->codingset = CS_HIGH_MOT_INTRA...
{ "code": [], "line_no": [] }
static void FUNC_0(VC1Context *VAR_0) { MpegEncContext *s = &VAR_0->s; int VAR_1; switch (VAR_0->c_ac_table_index) { case 0: VAR_0->codingset = (VAR_0->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA; break; case 1: VAR_0->codingset = CS_HIGH_MOT_INTRA;...
[ "static void FUNC_0(VC1Context *VAR_0)\n{", "MpegEncContext *s = &VAR_0->s;", "int VAR_1;", "switch (VAR_0->c_ac_table_index) {", "case 0:\nVAR_0->codingset = (VAR_0->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA;", "break;", "case 1:\nVAR_0->codingset = CS_HIGH_MOT_INTRA;", "break;", "case ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51, 53...
15,907
static int vc9_decode_init(AVCodecContext *avctx) { VC9Context *v = avctx->priv_data; GetBitContext gb; if (!avctx->extradata_size || !avctx->extradata) return -1; avctx->pix_fmt = PIX_FMT_YUV420P; v->avctx = avctx; if (init_common(v) < 0) return -1; if (avctx->codec_id == CODE...
false
FFmpeg
e5540b3fd30367ce3cc33b2f34a04b660dbc4b38
static int vc9_decode_init(AVCodecContext *avctx) { VC9Context *v = avctx->priv_data; GetBitContext gb; if (!avctx->extradata_size || !avctx->extradata) return -1; avctx->pix_fmt = PIX_FMT_YUV420P; v->avctx = avctx; if (init_common(v) < 0) return -1; if (avctx->codec_id == CODE...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { VC9Context *v = VAR_0->priv_data; GetBitContext gb; if (!VAR_0->extradata_size || !VAR_0->extradata) return -1; VAR_0->pix_fmt = PIX_FMT_YUV420P; v->VAR_0 = VAR_0; if (init_common(v) < 0) return -1; if (VAR_0->codec_id == CODEC_ID_WMV3...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "VC9Context *v = VAR_0->priv_data;", "GetBitContext gb;", "if (!VAR_0->extradata_size || !VAR_0->extradata) return -1;", "VAR_0->pix_fmt = PIX_FMT_YUV420P;", "v->VAR_0 = VAR_0;", "if (init_common(v) < 0) return -1;", "if (VAR_0->codec_id == CODEC_ID_WMV3)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 41 ], [ 45 ], [ 49 ], [ 51, 53 ], [ 55, 57 ], [ 59 ], [ 61, 63 ], [ 65 ], [ 67...
15,908
enum AVCodecID ff_guess_image2_codec(const char *filename) { return av_str2id(img_tags, filename); }
false
FFmpeg
fb135139fd3992eb1f0eacc9cfd878e05b95ec46
enum AVCodecID ff_guess_image2_codec(const char *filename) { return av_str2id(img_tags, filename); }
{ "code": [], "line_no": [] }
enum AVCodecID FUNC_0(const char *VAR_0) { return av_str2id(img_tags, VAR_0); }
[ "enum AVCodecID FUNC_0(const char *VAR_0)\n{", "return av_str2id(img_tags, VAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
15,909
static int sd_open(BlockDriverState *bs, const char *filename, int flags) { int ret, fd; uint32_t vid = 0; BDRVSheepdogState *s = bs->opaque; char vdi[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN]; uint32_t snapid; char *buf = NULL; strstart(filename, "sheepdog:", (const char **)&filena...
false
qemu
477830727821e4bc337f4ac1fd222ffe0b900e1a
static int sd_open(BlockDriverState *bs, const char *filename, int flags) { int ret, fd; uint32_t vid = 0; BDRVSheepdogState *s = bs->opaque; char vdi[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN]; uint32_t snapid; char *buf = NULL; strstart(filename, "sheepdog:", (const char **)&filena...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2) { int VAR_3, VAR_4; uint32_t vid = 0; BDRVSheepdogState *s = VAR_0->opaque; char VAR_5[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN]; uint32_t snapid; char *VAR_6 = NULL; strstart(VAR_1, "sheepdog:", (const char **...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4;", "uint32_t vid = 0;", "BDRVSheepdogState *s = VAR_0->opaque;", "char VAR_5[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN];", "uint32_t snapid;", "char *VAR_6 = NULL;", "strstart(VAR_1, \"sheepdog:\", (const ch...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
15,910
static void virt_set_gic_version(Object *obj, const char *value, Error **errp) { VirtMachineState *vms = VIRT_MACHINE(obj); if (!strcmp(value, "3")) { vms->gic_version = 3; } else if (!strcmp(value, "2")) { vms->gic_version = 2; } else if (!strcmp(value, "host")) { vms-...
false
qemu
7b55044f9d96ec518e7ab58bd8a3637b52a35f79
static void virt_set_gic_version(Object *obj, const char *value, Error **errp) { VirtMachineState *vms = VIRT_MACHINE(obj); if (!strcmp(value, "3")) { vms->gic_version = 3; } else if (!strcmp(value, "2")) { vms->gic_version = 2; } else if (!strcmp(value, "host")) { vms-...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2) { VirtMachineState *vms = VIRT_MACHINE(VAR_0); if (!strcmp(VAR_1, "3")) { vms->gic_version = 3; } else if (!strcmp(VAR_1, "2")) { vms->gic_version = 2; } else if (!strcmp(VAR_1, "host")) { vms->gic_vers...
[ "static void FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2)\n{", "VirtMachineState *vms = VIRT_MACHINE(VAR_0);", "if (!strcmp(VAR_1, \"3\")) {", "vms->gic_version = 3;", "} else if (!strcmp(VAR_1, \"2\")) {", "vms->gic_version = 2;", "} else if (!strcmp(VAR_1, \"host\")) {", "vms->gic_version...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
15,912
static int sys_openat(int dirfd, const char *pathname, int flags, ...) { /* * open(2) has extra parameter 'mode' when called with * flag O_CREAT. */ if ((flags & O_CREAT) != 0) { va_list ap; mode_t mode; /* * Get the 'mode' parameter and translate it to * host b...
false
qemu
f4c690101c74afcc58deead71f6302fe343718b7
static int sys_openat(int dirfd, const char *pathname, int flags, ...) { if ((flags & O_CREAT) != 0) { va_list ap; mode_t mode; va_start(ap, flags); mode = va_arg(ap, mode_t); mode = target_to_host_bitmask(mode, fcntl_flags_tbl); va_end(ap); ...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, const char *VAR_1, int VAR_2, ...) { if ((VAR_2 & O_CREAT) != 0) { va_list ap; mode_t mode; va_start(ap, VAR_2); mode = va_arg(ap, mode_t); mode = target_to_host_bitmask(mode, fcntl_flags_tbl); va_end(ap); retu...
[ "static int FUNC_0(int VAR_0, const char *VAR_1, int VAR_2, ...)\n{", "if ((VAR_2 & O_CREAT) != 0) {", "va_list ap;", "mode_t mode;", "va_start(ap, VAR_2);", "mode = va_arg(ap, mode_t);", "mode = target_to_host_bitmask(mode, fcntl_flags_tbl);", "va_end(ap);", "return (openat(VAR_0, VAR_1, VAR_2, mod...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 13 ], [ 15 ], [ 17 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
15,913
static void coroutine_fn backup_run(void *opaque) { BackupBlockJob *job = opaque; BackupCompleteData *data; BlockDriverState *bs = job->common.bs; BlockDriverState *target = job->target; BlockdevOnError on_target_error = job->on_target_error; NotifierWithReturn before_write = { ....
false
qemu
b2f56462d51a49c28d2a7b214b3ae8e8d3329f1f
static void coroutine_fn backup_run(void *opaque) { BackupBlockJob *job = opaque; BackupCompleteData *data; BlockDriverState *bs = job->common.bs; BlockDriverState *target = job->target; BlockdevOnError on_target_error = job->on_target_error; NotifierWithReturn before_write = { ....
{ "code": [], "line_no": [] }
static void VAR_0 backup_run(void *opaque) { BackupBlockJob *job = opaque; BackupCompleteData *data; BlockDriverState *bs = job->common.bs; BlockDriverState *target = job->target; BlockdevOnError on_target_error = job->on_target_error; NotifierWithReturn before_write = { .notify ...
[ "static void VAR_0 backup_run(void *opaque)\n{", "BackupBlockJob *job = opaque;", "BackupCompleteData *data;", "BlockDriverState *bs = job->common.bs;", "BlockDriverState *target = job->target;", "BlockdevOnError on_target_error = job->on_target_error;", "NotifierWithReturn before_write = {", ".notify...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
15,914
static RawAIOCB *raw_aio_setup(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { BDRVRawState *s = bs->opaque; RawAIOCB *acb; if (fd_open(bs) < 0) return NULL; acb = qemu_aio_get(&raw_aio_pool,...
false
qemu
9ef91a677110ec200d7b2904fc4bcae5a77329ad
static RawAIOCB *raw_aio_setup(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { BDRVRawState *s = bs->opaque; RawAIOCB *acb; if (fd_open(bs) < 0) return NULL; acb = qemu_aio_get(&raw_aio_pool,...
{ "code": [], "line_no": [] }
static RawAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { BDRVRawState *s = bs->opaque; RawAIOCB *acb; if (fd_open(bs) < 0) return NULL; acb = qemu_aio_get(&raw_aio_pool, bs, cb...
[ "static RawAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num,\nQEMUIOVector *qiov, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque)\n{", "BDRVRawState *s = bs->opaque;", "RawAIOCB *acb;", "if (fd_open(bs) < 0)\nreturn NULL;", "acb = qemu_aio_get(&raw_aio_pool, bs, cb, opaque);", "if (!ac...
[ 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 ], [ 35 ], [ 37 ], [ 39 ], [ 53, 55 ], [ 59 ], [ 61 ], [ 63 ], [...
15,915
static int net_socket_listen_init(NetClientState *peer, const char *model, const char *name, const char *host_str) { NetClientState *nc; NetSocketState *s; SocketAddressLegacy *saddr; int ret; ...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
static int net_socket_listen_init(NetClientState *peer, const char *model, const char *name, const char *host_str) { NetClientState *nc; NetSocketState *s; SocketAddressLegacy *saddr; int ret; ...
{ "code": [], "line_no": [] }
static int FUNC_0(NetClientState *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3) { NetClientState *nc; NetSocketState *s; SocketAddressLegacy *saddr; int VAR_4; Error *loca...
[ "static int FUNC_0(NetClientState *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3)\n{", "NetClientState *nc;", "NetSocketState *s;", "SocketAddressLegacy *saddr;", "int VAR_4;", "Error *local_error = NULL;", "saddr = socket_parse(VAR_3, &local_error);", "if (saddr == NULL) {", "er...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [...
15,916
InputEvent *qemu_input_event_new_key(KeyValue *key, bool down) { InputEvent *evt = g_new0(InputEvent, 1); evt->key = g_new0(InputKeyEvent, 1); evt->kind = INPUT_EVENT_KIND_KEY; evt->key->key = key; evt->key->down = down; return evt; }
false
qemu
568c73a4783cd981e9aa6de4f15dcda7829643ad
InputEvent *qemu_input_event_new_key(KeyValue *key, bool down) { InputEvent *evt = g_new0(InputEvent, 1); evt->key = g_new0(InputKeyEvent, 1); evt->kind = INPUT_EVENT_KIND_KEY; evt->key->key = key; evt->key->down = down; return evt; }
{ "code": [], "line_no": [] }
InputEvent *FUNC_0(KeyValue *key, bool down) { InputEvent *evt = g_new0(InputEvent, 1); evt->key = g_new0(InputKeyEvent, 1); evt->kind = INPUT_EVENT_KIND_KEY; evt->key->key = key; evt->key->down = down; return evt; }
[ "InputEvent *FUNC_0(KeyValue *key, bool down)\n{", "InputEvent *evt = g_new0(InputEvent, 1);", "evt->key = g_new0(InputKeyEvent, 1);", "evt->kind = INPUT_EVENT_KIND_KEY;", "evt->key->key = key;", "evt->key->down = down;", "return evt;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
15,917
static void mirror_exit(BlockJob *job, void *opaque) { MirrorBlockJob *s = container_of(job, MirrorBlockJob, common); MirrorExitData *data = opaque; AioContext *replace_aio_context = NULL; BlockDriverState *src = s->common.bs; /* Make sure that the source BDS doesn't go away before we called...
false
qemu
1f0c461b82d5ec2664ca0cfc9548f80da87a8f8a
static void mirror_exit(BlockJob *job, void *opaque) { MirrorBlockJob *s = container_of(job, MirrorBlockJob, common); MirrorExitData *data = opaque; AioContext *replace_aio_context = NULL; BlockDriverState *src = s->common.bs; bdrv_ref(src); if (s->to_replace) { repla...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockJob *VAR_0, void *VAR_1) { MirrorBlockJob *s = container_of(VAR_0, MirrorBlockJob, common); MirrorExitData *data = VAR_1; AioContext *replace_aio_context = NULL; BlockDriverState *src = s->common.bs; bdrv_ref(src); if (s->to_replace) { replace_...
[ "static void FUNC_0(BlockJob *VAR_0, void *VAR_1)\n{", "MirrorBlockJob *s = container_of(VAR_0, MirrorBlockJob, common);", "MirrorExitData *data = VAR_1;", "AioContext *replace_aio_context = NULL;", "BlockDriverState *src = s->common.bs;", "bdrv_ref(src);", "if (s->to_replace) {", "replace_aio_context...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
15,919
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost) { AVFormatContext *s = of->ctx; AVStream *st = ost->st; int ret; if (!of->header_written) { AVPacket tmp_pkt = {0}; /* the muxer is not initialized yet, buffer the packet */ if (!av_fifo_space(os...
false
FFmpeg
c4be288fdbe1993110f1abd28ea57587cb2bc221
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost) { AVFormatContext *s = of->ctx; AVStream *st = ost->st; int ret; if (!of->header_written) { AVPacket tmp_pkt = {0}; if (!av_fifo_space(ost->muxing_queue)) { int new_size = FFMIN(2 *...
{ "code": [], "line_no": [] }
static void FUNC_0(OutputFile *VAR_0, AVPacket *VAR_1, OutputStream *VAR_2) { AVFormatContext *s = VAR_0->ctx; AVStream *st = VAR_2->st; int VAR_3; if (!VAR_0->header_written) { AVPacket tmp_pkt = {0}; if (!av_fifo_space(VAR_2->muxing_queue)) { int VAR_4 =...
[ "static void FUNC_0(OutputFile *VAR_0, AVPacket *VAR_1, OutputStream *VAR_2)\n{", "AVFormatContext *s = VAR_0->ctx;", "AVStream *st = VAR_2->st;", "int VAR_3;", "if (!VAR_0->header_written) {", "AVPacket tmp_pkt = {0};", "if (!av_fifo_space(VAR_2->muxing_queue)) {", "int VAR_4 = FFMIN(2 * av_fifo_size...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [...
15,920
static int estimate_qp(MpegEncContext *s, int dry_run){ if (s->next_lambda){ s->current_picture_ptr->quality= s->current_picture.quality = s->next_lambda; if(!dry_run) s->next_lambda= 0; } else if (!s->fixed_qscale) { s->current_picture_ptr->quality= s->current_pic...
false
FFmpeg
965424dad112211fc5887d96bd093773c133416c
static int estimate_qp(MpegEncContext *s, int dry_run){ if (s->next_lambda){ s->current_picture_ptr->quality= s->current_picture.quality = s->next_lambda; if(!dry_run) s->next_lambda= 0; } else if (!s->fixed_qscale) { s->current_picture_ptr->quality= s->current_pic...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext *VAR_0, int VAR_1){ if (VAR_0->next_lambda){ VAR_0->current_picture_ptr->quality= VAR_0->current_picture.quality = VAR_0->next_lambda; if(!VAR_1) VAR_0->next_lambda= 0; } else if (!VAR_0->fixed_qscale) { VAR_0->current_picture_ptr->quality= ...
[ "static int FUNC_0(MpegEncContext *VAR_0, int VAR_1){", "if (VAR_0->next_lambda){", "VAR_0->current_picture_ptr->quality=\nVAR_0->current_picture.quality = VAR_0->next_lambda;", "if(!VAR_1) VAR_0->next_lambda= 0;", "} else if (!VAR_0->fixed_qscale) {", "VAR_0->current_picture_ptr->quality=\nVAR_0->current...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37, 39, 41, 43, 45 ], [ 47 ], [ 49 ], [ 53 ...
15,921
int coroutine_fn bdrv_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int count, BdrvRequestFlags flags) { trace_bdrv_co_pwrite_zeroes(bs, offset, count, flags); if (!(bs->open_flags & BDRV_O_UNMAP)) { flags &= ...
false
qemu
a03ef88f77af045a2eb9629b5ce774a3fb973c5e
int coroutine_fn bdrv_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int count, BdrvRequestFlags flags) { trace_bdrv_co_pwrite_zeroes(bs, offset, count, flags); if (!(bs->open_flags & BDRV_O_UNMAP)) { flags &= ...
{ "code": [], "line_no": [] }
int VAR_0 bdrv_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int count, BdrvRequestFlags flags) { trace_bdrv_co_pwrite_zeroes(bs, offset, count, flags); if (!(bs->open_flags & BDRV_O_UNMAP)) { flags &= ~BDRV_R...
[ "int VAR_0 bdrv_co_pwrite_zeroes(BlockDriverState *bs,\nint64_t offset, int count,\nBdrvRequestFlags flags)\n{", "trace_bdrv_co_pwrite_zeroes(bs, offset, count, flags);", "if (!(bs->open_flags & BDRV_O_UNMAP)) {", "flags &= ~BDRV_REQ_MAY_UNMAP;", "}", "return bdrv_co_pwritev(bs, offset, count, NULL,\nBDRV...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ] ]
15,923
static void test_validate_fail_union_flat_no_discrim(TestInputVisitorData *data, const void *unused) { UserDefFlatUnion2 *tmp = NULL; Error *err = NULL; Visitor *v; /* test situation where discriminator field ('enum1' here) is missing */ ...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_validate_fail_union_flat_no_discrim(TestInputVisitorData *data, const void *unused) { UserDefFlatUnion2 *tmp = NULL; Error *err = NULL; Visitor *v; v = validate_test_init(data, "{ 'integer': 42, 'string': 'c', 'string1':...
{ "code": [], "line_no": [] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { UserDefFlatUnion2 *tmp = NULL; Error *err = NULL; Visitor *v; v = validate_test_init(VAR_0, "{ 'integer': 42, 'string': 'c', 'string1': 'd', 'string2': 'e' }"); ...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "UserDefFlatUnion2 *tmp = NULL;", "Error *err = NULL;", "Visitor *v;", "v = validate_test_init(VAR_0, \"{ 'integer': 42, 'string': 'c', 'string1': 'd', 'string2': 'e' }\");", "visit_type_UserDefFlatUnion2(v, NULL, &tmp, &err);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
15,925
static void s390_init(QEMUMachineInitArgs *args) { ram_addr_t my_ram_size = args->ram_size; const char *cpu_model = args->cpu_model; const char *kernel_filename = args->kernel_filename; const char *kernel_cmdline = args->kernel_cmdline; const char *initrd_filename = args->initrd_filename; ...
false
qemu
2d0d2837dcf786da415cf4165d37f4ddd684ff57
static void s390_init(QEMUMachineInitArgs *args) { ram_addr_t my_ram_size = args->ram_size; const char *cpu_model = args->cpu_model; const char *kernel_filename = args->kernel_filename; const char *kernel_cmdline = args->kernel_cmdline; const char *initrd_filename = args->initrd_filename; ...
{ "code": [], "line_no": [] }
static void FUNC_0(QEMUMachineInitArgs *VAR_0) { ram_addr_t my_ram_size = VAR_0->ram_size; const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; CPUS390XState *env = NULL; MemoryRegion *sysmem = get_sys...
[ "static void FUNC_0(QEMUMachineInitArgs *VAR_0)\n{", "ram_addr_t my_ram_size = VAR_0->ram_size;", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "CPUS390XState *env = NULL;", "MemoryRegion *sysmem = ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 45 ], [ 47 ...
15,926
void sparc64_set_context(CPUSPARCState *env) { abi_ulong ucp_addr; struct target_ucontext *ucp; target_mc_gregset_t *grp; abi_ulong pc, npc, tstate; abi_ulong fp, i7, w_addr; int err; unsigned int i; ucp_addr = env->regwptr[UREG_I0]; if (!lock_user_struct(VERIFY_READ, ucp...
false
qemu
1c275925bfbbc2de84a8f0e09d1dd70bbefb6da3
void sparc64_set_context(CPUSPARCState *env) { abi_ulong ucp_addr; struct target_ucontext *ucp; target_mc_gregset_t *grp; abi_ulong pc, npc, tstate; abi_ulong fp, i7, w_addr; int err; unsigned int i; ucp_addr = env->regwptr[UREG_I0]; if (!lock_user_struct(VERIFY_READ, ucp...
{ "code": [], "line_no": [] }
void FUNC_0(CPUSPARCState *VAR_0) { abi_ulong ucp_addr; struct target_ucontext *VAR_1; target_mc_gregset_t *grp; abi_ulong pc, npc, tstate; abi_ulong fp, i7, w_addr; int VAR_2; unsigned int VAR_3; ucp_addr = VAR_0->regwptr[UREG_I0]; if (!lock_user_struct(VERIFY_READ, VAR_...
[ "void FUNC_0(CPUSPARCState *VAR_0)\n{", "abi_ulong ucp_addr;", "struct target_ucontext *VAR_1;", "target_mc_gregset_t *grp;", "abi_ulong pc, npc, tstate;", "abi_ulong fp, i7, w_addr;", "int VAR_2;", "unsigned int VAR_3;", "ucp_addr = VAR_0->regwptr[UREG_I0];", "if (!lock_user_struct(VERIFY_READ, V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47,...
15,927
uint32_t cpu_mips_get_count (CPUState *env) { if (env->CP0_Cause & (1 << CP0Ca_DC)) { return env->CP0_Count; } else { return env->CP0_Count + (uint32_t)muldiv64(qemu_get_clock(vm_clock), TIMER_FREQ, get_ticks_per_sec()); } }
false
qemu
e027e1f075afe36698ce55d86f01b7817707c8b6
uint32_t cpu_mips_get_count (CPUState *env) { if (env->CP0_Cause & (1 << CP0Ca_DC)) { return env->CP0_Count; } else { return env->CP0_Count + (uint32_t)muldiv64(qemu_get_clock(vm_clock), TIMER_FREQ, get_ticks_per_sec()); } }
{ "code": [], "line_no": [] }
uint32_t FUNC_0 (CPUState *env) { if (env->CP0_Cause & (1 << CP0Ca_DC)) { return env->CP0_Count; } else { return env->CP0_Count + (uint32_t)muldiv64(qemu_get_clock(vm_clock), TIMER_FREQ, get_ticks_per_sec()); } }
[ "uint32_t FUNC_0 (CPUState *env)\n{", "if (env->CP0_Cause & (1 << CP0Ca_DC)) {", "return env->CP0_Count;", "} else {", "return env->CP0_Count +\n(uint32_t)muldiv64(qemu_get_clock(vm_clock),\nTIMER_FREQ, get_ticks_per_sec());", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13, 15 ], [ 17 ], [ 19 ] ]
15,930
static int cpu_has_work(CPUState *env) { if (env->stop) return 1; if (env->stopped) return 0; if (!env->halted) return 1; if (qemu_cpu_has_work(env)) return 1; return 0; }
false
qemu
55274a30522d0f542c1659386f01096b78669455
static int cpu_has_work(CPUState *env) { if (env->stop) return 1; if (env->stopped) return 0; if (!env->halted) return 1; if (qemu_cpu_has_work(env)) return 1; return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0) { if (VAR_0->stop) return 1; if (VAR_0->stopped) return 0; if (!VAR_0->halted) return 1; if (qemu_cpu_has_work(VAR_0)) return 1; return 0; }
[ "static int FUNC_0(CPUState *VAR_0)\n{", "if (VAR_0->stop)\nreturn 1;", "if (VAR_0->stopped)\nreturn 0;", "if (!VAR_0->halted)\nreturn 1;", "if (qemu_cpu_has_work(VAR_0))\nreturn 1;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23 ] ]
15,932
static void outport_write(KBDState *s, uint32_t val) { DPRINTF("kbd: write outport=0x%02x\n", val); s->outport = val; if (s->a20_out) { qemu_set_irq(*s->a20_out, (val >> 1) & 1); } if (!(val & 1)) { qemu_system_reset_request(); } }
false
qemu
3115b9e2d286188a54d6f415186ae556046b68a3
static void outport_write(KBDState *s, uint32_t val) { DPRINTF("kbd: write outport=0x%02x\n", val); s->outport = val; if (s->a20_out) { qemu_set_irq(*s->a20_out, (val >> 1) & 1); } if (!(val & 1)) { qemu_system_reset_request(); } }
{ "code": [], "line_no": [] }
static void FUNC_0(KBDState *VAR_0, uint32_t VAR_1) { DPRINTF("kbd: write outport=0x%02x\n", VAR_1); VAR_0->outport = VAR_1; if (VAR_0->a20_out) { qemu_set_irq(*VAR_0->a20_out, (VAR_1 >> 1) & 1); } if (!(VAR_1 & 1)) { qemu_system_reset_request(); } }
[ "static void FUNC_0(KBDState *VAR_0, uint32_t VAR_1)\n{", "DPRINTF(\"kbd: write outport=0x%02x\\n\", VAR_1);", "VAR_0->outport = VAR_1;", "if (VAR_0->a20_out) {", "qemu_set_irq(*VAR_0->a20_out, (VAR_1 >> 1) & 1);", "}", "if (!(VAR_1 & 1)) {", "qemu_system_reset_request();", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
15,933
static void nvdimm_dsm_get_label_data(NVDIMMDevice *nvdimm, NvdimmDsmIn *in, hwaddr dsm_mem_addr) { NVDIMMClass *nvc = NVDIMM_GET_CLASS(nvdimm); NvdimmFuncGetLabelDataIn *get_label_data; NvdimmFuncGetLabelDataOut *get_label_data_out; uint32_t status; int ...
false
qemu
c2fa30757a2ba1bb5b053883773a9a61fbdd7082
static void nvdimm_dsm_get_label_data(NVDIMMDevice *nvdimm, NvdimmDsmIn *in, hwaddr dsm_mem_addr) { NVDIMMClass *nvc = NVDIMM_GET_CLASS(nvdimm); NvdimmFuncGetLabelDataIn *get_label_data; NvdimmFuncGetLabelDataOut *get_label_data_out; uint32_t status; int ...
{ "code": [], "line_no": [] }
static void FUNC_0(NVDIMMDevice *VAR_0, NvdimmDsmIn *VAR_1, hwaddr VAR_2) { NVDIMMClass *nvc = NVDIMM_GET_CLASS(VAR_0); NvdimmFuncGetLabelDataIn *get_label_data; NvdimmFuncGetLabelDataOut *get_label_data_out; uint32_t status; int VAR_3; get_label_d...
[ "static void FUNC_0(NVDIMMDevice *VAR_0, NvdimmDsmIn *VAR_1,\nhwaddr VAR_2)\n{", "NVDIMMClass *nvc = NVDIMM_GET_CLASS(VAR_0);", "NvdimmFuncGetLabelDataIn *get_label_data;", "NvdimmFuncGetLabelDataOut *get_label_data_out;", "uint32_t status;", "int VAR_3;", "get_label_data = (NvdimmFuncGetLabelDataIn *)V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [...
15,934
static QObject *visitor_get(TestOutputVisitorData *data) { visit_complete(data->ov, &data->obj); g_assert(data->obj); return data->obj; }
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static QObject *visitor_get(TestOutputVisitorData *data) { visit_complete(data->ov, &data->obj); g_assert(data->obj); return data->obj; }
{ "code": [], "line_no": [] }
static QObject *FUNC_0(TestOutputVisitorData *data) { visit_complete(data->ov, &data->obj); g_assert(data->obj); return data->obj; }
[ "static QObject *FUNC_0(TestOutputVisitorData *data)\n{", "visit_complete(data->ov, &data->obj);", "g_assert(data->obj);", "return data->obj;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
15,935
static void fill_elf_header(struct elfhdr *elf, int segs, uint16_t machine, uint32_t flags) { (void) memset(elf, 0, sizeof(*elf)); (void) memcpy(elf->e_ident, ELFMAG, SELFMAG); elf->e_ident[EI_CLASS] = ELF_CLASS; elf->e_ident[EI_DATA] = ELF_DATA; elf->e_ident[EI_...
false
qemu
991f8f0c91d65cebf51fa931450e02b0d5209012
static void fill_elf_header(struct elfhdr *elf, int segs, uint16_t machine, uint32_t flags) { (void) memset(elf, 0, sizeof(*elf)); (void) memcpy(elf->e_ident, ELFMAG, SELFMAG); elf->e_ident[EI_CLASS] = ELF_CLASS; elf->e_ident[EI_DATA] = ELF_DATA; elf->e_ident[EI_...
{ "code": [], "line_no": [] }
static void FUNC_0(struct elfhdr *VAR_0, int VAR_1, uint16_t VAR_2, uint32_t VAR_3) { (void) memset(VAR_0, 0, sizeof(*VAR_0)); (void) memcpy(VAR_0->e_ident, ELFMAG, SELFMAG); VAR_0->e_ident[EI_CLASS] = ELF_CLASS; VAR_0->e_ident[EI_DATA] = ELF_DATA; VAR_0->e_ident...
[ "static void FUNC_0(struct elfhdr *VAR_0, int VAR_1, uint16_t VAR_2,\nuint32_t VAR_3)\n{", "(void) memset(VAR_0, 0, sizeof(*VAR_0));", "(void) memcpy(VAR_0->e_ident, ELFMAG, SELFMAG);", "VAR_0->e_ident[EI_CLASS] = ELF_CLASS;", "VAR_0->e_ident[EI_DATA] = ELF_DATA;", "VAR_0->e_ident[EI_VERSION] = EV_CURRENT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45, 47 ] ]