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
10,331
static void vmsvga_init(struct vmsvga_state_s *s, MemoryRegion *address_space, MemoryRegion *io) { s->scratch_size = SVGA_SCRATCH_SIZE; s->scratch = g_malloc(s->scratch_size * 4); s->vga.con = graphic_console_init(vmsvga_update_display, v...
false
qemu
2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5
static void vmsvga_init(struct vmsvga_state_s *s, MemoryRegion *address_space, MemoryRegion *io) { s->scratch_size = SVGA_SCRATCH_SIZE; s->scratch = g_malloc(s->scratch_size * 4); s->vga.con = graphic_console_init(vmsvga_update_display, v...
{ "code": [], "line_no": [] }
static void FUNC_0(struct vmsvga_state_s *VAR_0, MemoryRegion *VAR_1, MemoryRegion *VAR_2) { VAR_0->scratch_size = SVGA_SCRATCH_SIZE; VAR_0->scratch = g_malloc(VAR_0->scratch_size * 4); VAR_0->vga.con = graphic_console_init(vmsvga_update_display, ...
[ "static void FUNC_0(struct vmsvga_state_s *VAR_0,\nMemoryRegion *VAR_1, MemoryRegion *VAR_2)\n{", "VAR_0->scratch_size = SVGA_SCRATCH_SIZE;", "VAR_0->scratch = g_malloc(VAR_0->scratch_size * 4);", "VAR_0->vga.con = graphic_console_init(vmsvga_update_display,\nvmsvga_invalidate_display,\nvmsvga_screen_dump,\nv...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15, 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
10,332
static int local_set_mapped_file_attr(FsContext *ctx, const char *path, FsCred *credp) { FILE *fp; int ret = 0; char buf[ATTR_MAX]; char attr_path[PATH_MAX]; int uid = -1, gid = -1, mode = -1, rdev = -1; fp = local_fopen(local_mapped_attr_path(ctx,...
false
qemu
4fa4ce7107c6ec432f185307158c5df91ce54308
static int local_set_mapped_file_attr(FsContext *ctx, const char *path, FsCred *credp) { FILE *fp; int ret = 0; char buf[ATTR_MAX]; char attr_path[PATH_MAX]; int uid = -1, gid = -1, mode = -1, rdev = -1; fp = local_fopen(local_mapped_attr_path(ctx,...
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, FsCred *VAR_2) { FILE *fp; int VAR_3 = 0; char VAR_4[ATTR_MAX]; char VAR_5[PATH_MAX]; int VAR_6 = -1, VAR_7 = -1, VAR_8 = -1, VAR_9 = -1; fp = local_fopen(local_mapped_attr_path(VAR_0, VAR_1, V...
[ "static int FUNC_0(FsContext *VAR_0,\nconst char *VAR_1, FsCred *VAR_2)\n{", "FILE *fp;", "int VAR_3 = 0;", "char VAR_4[ATTR_MAX];", "char VAR_5[PATH_MAX];", "int VAR_6 = -1, VAR_7 = -1, VAR_8 = -1, VAR_9 = -1;", "fp = local_fopen(local_mapped_attr_path(VAR_0, VAR_1, VAR_5), \"r\");", "if (!fp) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
10,334
static int64_t qemu_next_alarm_deadline(void) { int64_t delta; int64_t rtdelta; if (!use_icount && vm_clock->active_timers) { delta = vm_clock->active_timers->expire_time - qemu_get_clock_ns(vm_clock); } else { delta = INT32_MAX; } if (host_clock-...
false
qemu
4ffd16fc2900219c8ec8bb288b6fa3dfcae295a7
static int64_t qemu_next_alarm_deadline(void) { int64_t delta; int64_t rtdelta; if (!use_icount && vm_clock->active_timers) { delta = vm_clock->active_timers->expire_time - qemu_get_clock_ns(vm_clock); } else { delta = INT32_MAX; } if (host_clock-...
{ "code": [], "line_no": [] }
static int64_t FUNC_0(void) { int64_t delta; int64_t rtdelta; if (!use_icount && vm_clock->active_timers) { delta = vm_clock->active_timers->expire_time - qemu_get_clock_ns(vm_clock); } else { delta = INT32_MAX; } if (host_clock->active_timers) { ...
[ "static int64_t FUNC_0(void)\n{", "int64_t delta;", "int64_t rtdelta;", "if (!use_icount && vm_clock->active_timers) {", "delta = vm_clock->active_timers->expire_time -\nqemu_get_clock_ns(vm_clock);", "} else {", "delta = INT32_MAX;", "}", "if (host_clock->active_timers) {", "int64_t hdelta = host...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], ...
10,335
static int decode_motion_vector (bit_buffer_t *bitbuf, svq1_pmv_t *mv, svq1_pmv_t **pmv) { uint32_t bit_cache; vlc_code_t *vlc; int diff, sign; int i; for (i=0; i < 2; i++) { /* get motion code */ bit_cache = get_bit_cache (bitbuf); if (!(bit_cache & 0xFFE00000)) ...
false
FFmpeg
82dd7d0dec29ee59af91ce18c29eb151b363ff37
static int decode_motion_vector (bit_buffer_t *bitbuf, svq1_pmv_t *mv, svq1_pmv_t **pmv) { uint32_t bit_cache; vlc_code_t *vlc; int diff, sign; int i; for (i=0; i < 2; i++) { bit_cache = get_bit_cache (bitbuf); if (!(bit_cache & 0xFFE00000)) return -1; ...
{ "code": [], "line_no": [] }
static int FUNC_0 (bit_buffer_t *VAR_0, svq1_pmv_t *VAR_1, svq1_pmv_t **VAR_2) { uint32_t bit_cache; vlc_code_t *vlc; int VAR_3, VAR_4; int VAR_5; for (VAR_5=0; VAR_5 < 2; VAR_5++) { bit_cache = get_bit_cache (VAR_0); if (!(bit_cache & 0xFFE00000)) return -1; ...
[ "static int FUNC_0 (bit_buffer_t *VAR_0, svq1_pmv_t *VAR_1, svq1_pmv_t **VAR_2) {", "uint32_t bit_cache;", "vlc_code_t *vlc;", "int\t VAR_3, VAR_4;", "int\t VAR_5;", "for (VAR_5=0; VAR_5 < 2; VAR_5++) {", "bit_cache = get_bit_cache (VAR_0);", "if (!(bit_cache & 0xFFE00000))\nreturn -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 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ], [ 59 ], [ 65 ...
10,336
static void drive_backup_prepare(BlkActionState *common, Error **errp) { DriveBackupState *state = DO_UPCAST(DriveBackupState, common, common); BlockBackend *blk; DriveBackup *backup; Error *local_err = NULL; assert(common->action->type == TRANSACTION_ACTION_KIND_DRIVE_BACKUP); backup =...
false
qemu
b7e4fa224200ec87b9599a1d72b16ada35a3d113
static void drive_backup_prepare(BlkActionState *common, Error **errp) { DriveBackupState *state = DO_UPCAST(DriveBackupState, common, common); BlockBackend *blk; DriveBackup *backup; Error *local_err = NULL; assert(common->action->type == TRANSACTION_ACTION_KIND_DRIVE_BACKUP); backup =...
{ "code": [], "line_no": [] }
static void FUNC_0(BlkActionState *VAR_0, Error **VAR_1) { DriveBackupState *state = DO_UPCAST(DriveBackupState, VAR_0, VAR_0); BlockBackend *blk; DriveBackup *backup; Error *local_err = NULL; assert(VAR_0->action->type == TRANSACTION_ACTION_KIND_DRIVE_BACKUP); backup = VAR_0->action->u...
[ "static void FUNC_0(BlkActionState *VAR_0, Error **VAR_1)\n{", "DriveBackupState *state = DO_UPCAST(DriveBackupState, VAR_0, VAR_0);", "BlockBackend *blk;", "DriveBackup *backup;", "Error *local_err = NULL;", "assert(VAR_0->action->type == TRANSACTION_ACTION_KIND_DRIVE_BACKUP);", "backup = VAR_0->action...
[ 0, 0, 0, 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, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [...
10,337
void ssi_register_slave(SSISlaveInfo *info) { assert(info->qdev.size >= sizeof(SSISlave)); info->qdev.init = ssi_slave_init; info->qdev.bus_type = BUS_TYPE_SSI; qdev_register(&info->qdev); }
false
qemu
10c4c98ab7dc18169b37b76f6ea5e60ebe65222b
void ssi_register_slave(SSISlaveInfo *info) { assert(info->qdev.size >= sizeof(SSISlave)); info->qdev.init = ssi_slave_init; info->qdev.bus_type = BUS_TYPE_SSI; qdev_register(&info->qdev); }
{ "code": [], "line_no": [] }
void FUNC_0(SSISlaveInfo *VAR_0) { assert(VAR_0->qdev.size >= sizeof(SSISlave)); VAR_0->qdev.init = ssi_slave_init; VAR_0->qdev.bus_type = BUS_TYPE_SSI; qdev_register(&VAR_0->qdev); }
[ "void FUNC_0(SSISlaveInfo *VAR_0)\n{", "assert(VAR_0->qdev.size >= sizeof(SSISlave));", "VAR_0->qdev.init = ssi_slave_init;", "VAR_0->qdev.bus_type = BUS_TYPE_SSI;", "qdev_register(&VAR_0->qdev);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
10,339
uint64_t bdrv_dirty_bitmap_serialization_align(const BdrvDirtyBitmap *bitmap) { return hbitmap_serialization_align(bitmap->bitmap); }
false
qemu
86f6ae67e157362f3b141649874213ce01dcc622
uint64_t bdrv_dirty_bitmap_serialization_align(const BdrvDirtyBitmap *bitmap) { return hbitmap_serialization_align(bitmap->bitmap); }
{ "code": [], "line_no": [] }
uint64_t FUNC_0(const BdrvDirtyBitmap *bitmap) { return hbitmap_serialization_align(bitmap->bitmap); }
[ "uint64_t FUNC_0(const BdrvDirtyBitmap *bitmap)\n{", "return hbitmap_serialization_align(bitmap->bitmap);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
10,340
static void parse_drive(DeviceState *dev, const char *str, void **ptr, const char *propname, Error **errp) { BlockBackend *blk; blk = blk_by_name(str); if (!blk) { error_setg(errp, "Property '%s.%s' can't find value '%s'", object_get_typename(OBJEC...
false
qemu
a9d52a75634ac9aa7d101bf7f63e10bf6655a865
static void parse_drive(DeviceState *dev, const char *str, void **ptr, const char *propname, Error **errp) { BlockBackend *blk; blk = blk_by_name(str); if (!blk) { error_setg(errp, "Property '%s.%s' can't find value '%s'", object_get_typename(OBJEC...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, const char *VAR_1, void **VAR_2, const char *VAR_3, Error **VAR_4) { BlockBackend *blk; blk = blk_by_name(VAR_1); if (!blk) { error_setg(VAR_4, "Property '%s.%s' can't find value '%s'", object_get_typename(OBJ...
[ "static void FUNC_0(DeviceState *VAR_0, const char *VAR_1, void **VAR_2,\nconst char *VAR_3, Error **VAR_4)\n{", "BlockBackend *blk;", "blk = blk_by_name(VAR_1);", "if (!blk) {", "error_setg(VAR_4, \"Property '%s.%s' can't find value '%s'\",\nobject_get_typename(OBJECT(VAR_0)), VAR_3, VAR_1);", "return;",...
[ 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 ], [ 51...
10,341
static int get_segment (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int type) { target_phys_addr_t sdr, hash, mask, sdr_mask, htab_mask; target_ulong sr, vsid, vsid_mask, pgidx, page_mask; #if defined(TARGET_PPC64) int attr; #endif int ds, nx, vsid_sh, sdr_...
false
qemu
b227a8e9aa5f27d29f77ba90d5eb9d0662a1175e
static int get_segment (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int type) { target_phys_addr_t sdr, hash, mask, sdr_mask, htab_mask; target_ulong sr, vsid, vsid_mask, pgidx, page_mask; #if defined(TARGET_PPC64) int attr; #endif int ds, nx, vsid_sh, sdr_...
{ "code": [], "line_no": [] }
static int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { target_phys_addr_t sdr, hash, mask, sdr_mask, htab_mask; target_ulong sr, vsid, vsid_mask, pgidx, page_mask; #if defined(TARGET_PPC64) int attr; #endif int VAR_5, VAR_6, VAR_...
[ "static int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4)\n{", "target_phys_addr_t sdr, hash, mask, sdr_mask, htab_mask;", "target_ulong sr, vsid, vsid_mask, pgidx, page_mask;", "#if defined(TARGET_PPC64)\nint attr;", "#endif\nint VAR_5, VAR_6, VAR_7, VAR_8;", "int ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ...
10,342
static void arm_gic_realize(DeviceState *dev, Error **errp) { /* Device instance realize function for the GIC sysbus device */ GICv3State *s = ARM_GICV3(dev); ARMGICv3Class *agc = ARM_GICV3_GET_CLASS(s); Error *local_err = NULL; agc->parent_realize(dev, &local_err); if (local_err) { ...
false
qemu
287c181ae4132d7cc75ea422051f2c90e90b6493
static void arm_gic_realize(DeviceState *dev, Error **errp) { GICv3State *s = ARM_GICV3(dev); ARMGICv3Class *agc = ARM_GICV3_GET_CLASS(s); Error *local_err = NULL; agc->parent_realize(dev, &local_err); if (local_err) { error_propagate(errp, local_err); return; } ...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { GICv3State *s = ARM_GICV3(VAR_0); ARMGICv3Class *agc = ARM_GICV3_GET_CLASS(s); Error *local_err = NULL; agc->parent_realize(VAR_0, &local_err); if (local_err) { error_propagate(VAR_1, local_err); return; } ...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "GICv3State *s = ARM_GICV3(VAR_0);", "ARMGICv3Class *agc = ARM_GICV3_GET_CLASS(s);", "Error *local_err = NULL;", "agc->parent_realize(VAR_0, &local_err);", "if (local_err) {", "error_propagate(VAR_1, local_err);", "return;", "}", "gicv3_i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
10,343
static void build_append_notify_target(GArray *method, GArray *target_name, uint32_t value, int size) { GArray *notify = build_alloc_array(); uint8_t op = 0xA0; /* IfOp */ build_append_byte(notify, 0x93); /* LEqualOp */ build_append_byte(notify, 0x68); /* A...
false
qemu
99fd437dee468609de8218f0eb3b16621fb6a9c9
static void build_append_notify_target(GArray *method, GArray *target_name, uint32_t value, int size) { GArray *notify = build_alloc_array(); uint8_t op = 0xA0; build_append_byte(notify, 0x93); build_append_byte(notify, 0x68); build_append_value(not...
{ "code": [], "line_no": [] }
static void FUNC_0(GArray *VAR_0, GArray *VAR_1, uint32_t VAR_2, int VAR_3) { GArray *notify = build_alloc_array(); uint8_t op = 0xA0; build_append_byte(notify, 0x93); build_append_byte(notify, 0x68); build_append_value(notify, VAR_2, VAR_3); b...
[ "static void FUNC_0(GArray *VAR_0, GArray *VAR_1,\nuint32_t VAR_2, int VAR_3)\n{", "GArray *notify = build_alloc_array();", "uint8_t op = 0xA0;", "build_append_byte(notify, 0x93);", "build_append_byte(notify, 0x68);", "build_append_value(notify, VAR_2, VAR_3);", "build_append_byte(notify, 0x86);", "bu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ] ]
10,344
static void contextidr_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { ARMCPU *cpu = arm_env_get_cpu(env); if (env->cp15.contextidr_el1 != value && !arm_feature(env, ARM_FEATURE_MPU) && !extended_addresses_enabled(env)) { /* For VMSA (when n...
false
qemu
8d5c773e323b22402abdd0beef4c7d2fc91dd0eb
static void contextidr_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { ARMCPU *cpu = arm_env_get_cpu(env); if (env->cp15.contextidr_el1 != value && !arm_feature(env, ARM_FEATURE_MPU) && !extended_addresses_enabled(env)) { tlb...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2) { ARMCPU *cpu = arm_env_get_cpu(VAR_0); if (VAR_0->cp15.contextidr_el1 != VAR_2 && !arm_feature(VAR_0, ARM_FEATURE_MPU) && !extended_addresses_enabled(VAR_0)) { ...
[ "static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1,\nuint64_t VAR_2)\n{", "ARMCPU *cpu = arm_env_get_cpu(VAR_0);", "if (VAR_0->cp15.contextidr_el1 != VAR_2 && !arm_feature(VAR_0, ARM_FEATURE_MPU)\n&& !extended_addresses_enabled(VAR_0)) {", "tlb_flush(CPU(cpu), 1);", "}", "VAR_0->cp15.contex...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
10,345
static ram_addr_t qxl_rom_size(void) { uint32_t required_rom_size = sizeof(QXLRom) + sizeof(QXLModes) + sizeof(qxl_modes); uint32_t rom_size = 8192; /* two pages */ QEMU_BUILD_BUG_ON(required_rom_size > rom_size); return rom_size; }
true
qemu
df45892c1290c6c853010b83e5afebe8740cb9fa
static ram_addr_t qxl_rom_size(void) { uint32_t required_rom_size = sizeof(QXLRom) + sizeof(QXLModes) + sizeof(qxl_modes); uint32_t rom_size = 8192; QEMU_BUILD_BUG_ON(required_rom_size > rom_size); return rom_size; }
{ "code": [ " uint32_t required_rom_size = sizeof(QXLRom) + sizeof(QXLModes) +", " sizeof(qxl_modes);", " QEMU_BUILD_BUG_ON(required_rom_size > rom_size);", " return rom_size;" ], "line_no": [ 5, 7, 13, 15 ] }
static ram_addr_t FUNC_0(void) { uint32_t required_rom_size = sizeof(QXLRom) + sizeof(QXLModes) + sizeof(qxl_modes); uint32_t rom_size = 8192; QEMU_BUILD_BUG_ON(required_rom_size > rom_size); return rom_size; }
[ "static ram_addr_t FUNC_0(void)\n{", "uint32_t required_rom_size = sizeof(QXLRom) + sizeof(QXLModes) +\nsizeof(qxl_modes);", "uint32_t rom_size = 8192;", "QEMU_BUILD_BUG_ON(required_rom_size > rom_size);", "return rom_size;", "}" ]
[ 0, 1, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ] ]
10,346
static NetSocketState *net_socket_fd_init(NetClientState *peer, const char *model, const char *name, int fd, int is_connected) { int so_type = -1, optlen=sizeof(so_type); if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so...
true
qemu
0f8c289ad539feb5135c545bea947b310a893f4b
static NetSocketState *net_socket_fd_init(NetClientState *peer, const char *model, const char *name, int fd, int is_connected) { int so_type = -1, optlen=sizeof(so_type); if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so...
{ "code": [ " int fd, int is_connected)", " return net_socket_fd_init_dgram(peer, model, name, fd, is_connected);" ], "line_no": [ 5, 31 ] }
static NetSocketState *FUNC_0(NetClientState *peer, const char *model, const char *name, int fd, int is_connected) { int VAR_0 = -1, VAR_1=sizeof(VAR_0); if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&VAR_0, (so...
[ "static NetSocketState *FUNC_0(NetClientState *peer,\nconst char *model, const char *name,\nint fd, int is_connected)\n{", "int VAR_0 = -1, VAR_1=sizeof(VAR_0);", "if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&VAR_0,\n(socklen_t *)&VAR_1)< 0) {", "fprintf(stderr, \"qemu: error: getsockopt(SO_TYPE) for fd=%d...
[ 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
10,347
static int calculate_refcounts(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix, uint16_t **refcount_table, int64_t *nb_clusters) { BDRVQcowState *s = bs->opaque; int64_t i; QCowSnapshot *sn; int ret; if (!*refcount...
true
qemu
f307b2558f61e068ce514f2dde2cad74c62036d6
static int calculate_refcounts(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix, uint16_t **refcount_table, int64_t *nb_clusters) { BDRVQcowState *s = bs->opaque; int64_t i; QCowSnapshot *sn; int ret; if (!*refcount...
{ "code": [ " BDRVQcowState *s = bs->opaque;", " if (ret < 0) {", " return ret;", " if (ret < 0) {", " return ret;", " BDRVQcowState *s = bs->opaque;", " int ret;", " if (ret < 0) {", " if (ret < 0) {", " if (ret < 0) {", " if (ret <...
static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, BdrvCheckMode VAR_2, uint16_t **VAR_3, int64_t *VAR_4) { BDRVQcowState *s = VAR_0->opaque; int64_t i; QCowSnapshot *sn; int VAR_5; if (!*VAR_3) { *VAR_3...
[ "static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,\nBdrvCheckMode VAR_2, uint16_t **VAR_3,\nint64_t *VAR_4)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int64_t i;", "QCowSnapshot *sn;", "int VAR_5;", "if (!*VAR_3) {", "*VAR_3 = g_try_new0(uint16_t, *VAR_4);", "if (*VAR_4 && *VAR_3 == N...
[ 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51, 53 ], [ 55 ...
10,348
long check_dcbzl_effect(void) { register char *fakedata = (char*)av_malloc(1024); register char *fakedata_middle; register long zero = 0; register long i = 0; long count = 0; if (!fakedata) { return 0L; } fakedata_middle = (fakedata + 512); memset(fakedata, 0xFF, 1024); /*...
false
FFmpeg
90901860c21468d6e9ae437c2bacb099c7bd3acf
long check_dcbzl_effect(void) { register char *fakedata = (char*)av_malloc(1024); register char *fakedata_middle; register long zero = 0; register long i = 0; long count = 0; if (!fakedata) { return 0L; } fakedata_middle = (fakedata + 512); memset(fakedata, 0xFF, 1024); ...
{ "code": [], "line_no": [] }
long FUNC_0(void) { register char *VAR_0 = (char*)av_malloc(1024); register char *VAR_1; register long VAR_2 = 0; register long VAR_3 = 0; long VAR_4 = 0; if (!VAR_0) { return 0L; } VAR_1 = (VAR_0 + 512); memset(VAR_0, 0xFF, 1024); asm volatile("dcbzl %0, %1" : : "b"...
[ "long FUNC_0(void)\n{", "register char *VAR_0 = (char*)av_malloc(1024);", "register char *VAR_1;", "register long VAR_2 = 0;", "register long VAR_3 = 0;", "long VAR_4 = 0;", "if (!VAR_0)\n{", "return 0L;", "}", "VAR_1 = (VAR_0 + 512);", "memset(VAR_0, 0xFF, 1024);", "asm volatile(\"dcbzl %0, %...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 55 ], [ 59 ], [ 61 ...
10,350
static void vga_update_display(void *opaque) { VGACommonState *s = opaque; int full_update, graphic_mode; qemu_flush_coalesced_mmio_buffer(); if (ds_get_bits_per_pixel(s->ds) == 0) { /* nothing to do */ } else { full_update = 0; if (!(s->ar_index & 0x20)) { ...
true
qemu
482f7bf86b43af9f6903c52726fedf82b28bf953
static void vga_update_display(void *opaque) { VGACommonState *s = opaque; int full_update, graphic_mode; qemu_flush_coalesced_mmio_buffer(); if (ds_get_bits_per_pixel(s->ds) == 0) { } else { full_update = 0; if (!(s->ar_index & 0x20)) { graphic_mod...
{ "code": [ " if (!(s->ar_index & 0x20)) {" ], "line_no": [ 23 ] }
static void FUNC_0(void *VAR_0) { VGACommonState *s = VAR_0; int VAR_1, VAR_2; qemu_flush_coalesced_mmio_buffer(); if (ds_get_bits_per_pixel(s->ds) == 0) { } else { VAR_1 = 0; if (!(s->ar_index & 0x20)) { VAR_2 = GMODE_BLANK; } else { ...
[ "static void FUNC_0(void *VAR_0)\n{", "VGACommonState *s = VAR_0;", "int VAR_1, VAR_2;", "qemu_flush_coalesced_mmio_buffer();", "if (ds_get_bits_per_pixel(s->ds) == 0) {", "} else {", "VAR_1 = 0;", "if (!(s->ar_index & 0x20)) {", "VAR_2 = GMODE_BLANK;", "} else {", "VAR_2 = s->gr[VGA_GFX_MISC] &...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], ...
10,352
static inline void comp_block(MadContext *t, int mb_x, int mb_y, int j, int mv_x, int mv_y, int add) { MpegEncContext *s = &t->s; if (j < 4) { comp(t->frame.data[0] + (mb_y*16 + ((j&2)<<2))*t->frame.linesize[0] + mb_x*16 + ((j&1)<<3), t->frame.linesize[0]...
true
FFmpeg
da35797359cec148f3fe59894c62727b0422d75a
static inline void comp_block(MadContext *t, int mb_x, int mb_y, int j, int mv_x, int mv_y, int add) { MpegEncContext *s = &t->s; if (j < 4) { comp(t->frame.data[0] + (mb_y*16 + ((j&2)<<2))*t->frame.linesize[0] + mb_x*16 + ((j&1)<<3), t->frame.linesize[0]...
{ "code": [ " t->last_frame.data[0] + (mb_y*16 + ((j&2)<<2) + mv_y)*t->last_frame.linesize[0] + mb_x*16 + ((j&1)<<3) + mv_x,", " t->last_frame.data[index] + (mb_y * 8 + (mv_y/2))*t->last_frame.linesize[index] + mb_x * 8 + (mv_x/2)," ], "line_no": [ 15, 27 ] }
static inline void FUNC_0(MadContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { MpegEncContext *s = &VAR_0->s; if (VAR_3 < 4) { comp(VAR_0->frame.data[0] + (VAR_2*16 + ((VAR_3&2)<<2))*VAR_0->frame.linesize[0] + VAR_1*16 + ((VAR_3&1)<<3)...
[ "static inline void FUNC_0(MadContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{", "MpegEncContext *s = &VAR_0->s;", "if (VAR_3 < 4) {", "comp(VAR_0->frame.data[0] + (VAR_2*16 + ((VAR_3&2)<<2))*VAR_0->frame.linesize[0] + VAR_1*16 + ((VAR_3&1)<<3),\nVAR_0->frame.linesize[0],\...
[ 0, 0, 0, 1, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13, 15, 17 ], [ 19 ], [ 21 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33 ] ]
10,353
static inline int gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb, int search_pc) { DisasContext dc1, *dc = &dc1; uint16_t *gen_opc_end; int j, lj; target_ulong pc_start; uint32_t n...
true
qemu
6658ffb81ee56a510d7d77025872a508a9adce3a
static inline int gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb, int search_pc) { DisasContext dc1, *dc = &dc1; uint16_t *gen_opc_end; int j, lj; target_ulong pc_start; uint32_t n...
{ "code": [], "line_no": [] }
static inline int FUNC_0(CPUState *VAR_0, TranslationBlock *VAR_1, int VAR_2) { DisasContext dc1, *dc = &dc1; uint16_t *gen_opc_end; int VAR_3, VAR_4; target_ulong pc_start; uint32_t next_page_start; ...
[ "static inline int FUNC_0(CPUState *VAR_0,\nTranslationBlock *VAR_1,\nint VAR_2)\n{", "DisasContext dc1, *dc = &dc1;", "uint16_t *gen_opc_end;", "int VAR_3, VAR_4;", "target_ulong pc_start;", "uint32_t next_page_start;", "pc_start = VAR_1->pc;", "dc->VAR_1 = VAR_1;", "gen_opc_ptr = gen_opc_buf;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22, 23 ], [ ...
10,354
static always_inline void gen_op_arith_subf(DisasContext *ctx, TCGv ret, TCGv arg1, TCGv arg2, int add_ca, int compute_ca, int compute_ov) { TCGv t0, t1; if ((!compute_ca && !compute_ov) || (!TCGV_EQUAL(ret, arg1) && !TCGV_EQUAL(ret, arg2))) { ...
true
qemu
d2e9fd8f703203c2eeeed120b1ef6c3a6574e0ab
static always_inline void gen_op_arith_subf(DisasContext *ctx, TCGv ret, TCGv arg1, TCGv arg2, int add_ca, int compute_ca, int compute_ov) { TCGv t0, t1; if ((!compute_ca && !compute_ov) || (!TCGV_EQUAL(ret, arg1) && !TCGV_EQUAL(ret, arg2))) { ...
{ "code": [], "line_no": [] }
static always_inline void FUNC_0(DisasContext *ctx, TCGv ret, TCGv arg1, TCGv arg2, int add_ca, int compute_ca, int compute_ov) { TCGv t0, t1; if ((!compute_ca && !compute_ov) || (!TCGV_EQUAL(ret, arg1) && !TCGV_EQUAL(ret, arg2))) { t0 = ret; ...
[ "static always_inline void FUNC_0(DisasContext *ctx, TCGv ret, TCGv arg1, TCGv arg2,\nint add_ca, int compute_ca, int compute_ov)\n{", "TCGv t0, t1;", "if ((!compute_ca && !compute_ov) ||\n(!TCGV_EQUAL(ret, arg1) && !TCGV_EQUAL(ret, arg2))) {", "t0 = ret;", "t0 = tcg_temp_local_new();", "}", "if (add_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, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 18 ], [ 20 ], [ 24 ], [ 26 ], [ 28 ], [ 30 ], [ 34 ], [ 38 ], [ 42 ], [ 44 ], [ 48 ], [ 50 ], [ 54 ], [ 56 ], [ 60...
10,357
static uint64_t imx_ccm_read(void *opaque, target_phys_addr_t offset, unsigned size) { IMXCCMState *s = (IMXCCMState *)opaque; DPRINTF("read(offset=%x)", offset >> 2); switch (offset >> 2) { case 0: /* CCMR */ DPRINTF(" ccmr = 0x%x\n", s->ccmr); ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t imx_ccm_read(void *opaque, target_phys_addr_t offset, unsigned size) { IMXCCMState *s = (IMXCCMState *)opaque; DPRINTF("read(offset=%x)", offset >> 2); switch (offset >> 2) { case 0: DPRINTF(" ccmr = 0x%x\n", s->ccmr); return s->...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset, unsigned size) { IMXCCMState *s = (IMXCCMState *)opaque; DPRINTF("read(offset=%x)", offset >> 2); switch (offset >> 2) { case 0: DPRINTF(" ccmr = 0x%x\n", s->ccmr); return s->ccmr; ...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{", "IMXCCMState *s = (IMXCCMState *)opaque;", "DPRINTF(\"read(offset=%x)\", offset >> 2);", "switch (offset >> 2) {", "case 0:\nDPRINTF(\" ccmr = 0x%x\\n\", s->ccmr);", "return s->ccmr;", "case 1:\nDPRINTF(\" pdr0 = 0x%x\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], ...
10,358
static void ne2000_receive(void *opaque, const uint8_t *buf, size_t size) { NE2000State *s = opaque; uint8_t *p; unsigned int total_len, next, avail, len, index, mcast_idx; uint8_t buf1[60]; static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; #if def...
false
qemu
e3f5ec2b5e92706e3b807059f79b1fb5d936e567
static void ne2000_receive(void *opaque, const uint8_t *buf, size_t size) { NE2000State *s = opaque; uint8_t *p; unsigned int total_len, next, avail, len, index, mcast_idx; uint8_t buf1[60]; static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; #if def...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2) { NE2000State *s = VAR_0; uint8_t *p; unsigned int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; uint8_t buf1[60]; static const uint8_t VAR_9[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; #if defined(DEBUG_NE2000) ...
[ "static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)\n{", "NE2000State *s = VAR_0;", "uint8_t *p;", "unsigned int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "uint8_t buf1[60];", "static const uint8_t VAR_9[6] =\n{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };", "#if defined(DEBUG_NE2000)\nprint...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 53, 55 ], [ 57 ], [ 59, 61 ], [...
10,359
int kvm_init(void) { static const char upgrade_note[] = "Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n" "(see http://sourceforge.net/projects/kvm).\n"; KVMState *s; const KVMCapabilityInfo *missing_cap; int ret; int i; int max_vcpus; s = g_malloc0(...
false
qemu
670436ced08738802e15764039d03ab0dbab2bf3
int kvm_init(void) { static const char upgrade_note[] = "Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n" "(see http: KVMState *s; const KVMCapabilityInfo *missing_cap; int ret; int i; int max_vcpus; s = g_malloc0(sizeof(KVMState)); ...
{ "code": [], "line_no": [] }
int FUNC_0(void) { static const char VAR_0[] = "Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n" "(see http: KVMState *s; const KVMCapabilityInfo *VAR_1; int VAR_2; int VAR_3; int VAR_4; s = g_malloc0(sizeof(KVMState)); assert(...
[ "int FUNC_0(void)\n{", "static const char VAR_0[] =\n\"Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\\n\"\n\"(see http:\nKVMState *s;", "const KVMCapabilityInfo *VAR_1;", "int VAR_2;", "int VAR_3;", "int VAR_4;", "s = g_malloc0(sizeof(KVMState));", "assert(TARGET_PAGE_SIZE <= getpagesize...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 43, 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [...
10,360
static int mov_open_dref(AVIOContext **pb, char *src, MOVDref *ref, AVIOInterruptCB *int_cb) { /* try relative path, we do not try the absolute because it can leak information about our system to an attacker */ if (ref->nlvl_to > 0 && ref->nlvl_from > 0) { char file...
false
FFmpeg
9286de045968ad456d4e752651eec22de5e89060
static int mov_open_dref(AVIOContext **pb, char *src, MOVDref *ref, AVIOInterruptCB *int_cb) { if (ref->nlvl_to > 0 && ref->nlvl_from > 0) { char filename[1024]; char *src_path; int i, l; src_path = strrchr(src, '/'); if (s...
{ "code": [], "line_no": [] }
static int FUNC_0(AVIOContext **VAR_0, char *VAR_1, MOVDref *VAR_2, AVIOInterruptCB *VAR_3) { if (VAR_2->nlvl_to > 0 && VAR_2->nlvl_from > 0) { char VAR_4[1024]; char *VAR_5; int VAR_6, VAR_7; VAR_5 = strrchr(VAR_1, '/'); i...
[ "static int FUNC_0(AVIOContext **VAR_0, char *VAR_1, MOVDref *VAR_2,\nAVIOInterruptCB *VAR_3)\n{", "if (VAR_2->nlvl_to > 0 && VAR_2->nlvl_from > 0) {", "char VAR_4[1024];", "char *VAR_5;", "int VAR_6, VAR_7;", "VAR_5 = strrchr(VAR_1, '/');", "if (VAR_5)\nVAR_5++;", "else\nVAR_5 = VAR_1;", "for (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 ]
[ [ 1, 3, 5 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ], ...
10,361
static int mmu_translate_asce(CPUS390XState *env, target_ulong vaddr, uint64_t asc, uint64_t asce, int level, target_ulong *raddr, int *flags, int rw) { CPUState *cs = CPU(s390_env_get_cpu(env)); uint64_t offs = 0; uint64_t origin; uint6...
false
qemu
89a41e0a37f3c749f3038ac2544f74257bc7b94d
static int mmu_translate_asce(CPUS390XState *env, target_ulong vaddr, uint64_t asc, uint64_t asce, int level, target_ulong *raddr, int *flags, int rw) { CPUState *cs = CPU(s390_env_get_cpu(env)); uint64_t offs = 0; uint64_t origin; uint6...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUS390XState *VAR_0, target_ulong VAR_1, uint64_t VAR_2, uint64_t VAR_3, int VAR_4, target_ulong *VAR_5, int *VAR_6, int VAR_7) { CPUState *cs = CPU(s390_env_get_cpu(VAR_0)); uint64_t offs = 0; uint64_t origin; uint64_...
[ "static int FUNC_0(CPUS390XState *VAR_0, target_ulong VAR_1,\nuint64_t VAR_2, uint64_t VAR_3, int VAR_4,\ntarget_ulong *VAR_5, int *VAR_6, int VAR_7)\n{", "CPUState *cs = CPU(s390_env_get_cpu(VAR_0));", "uint64_t offs = 0;", "uint64_t origin;", "uint64_t new_asce;", "PTE_DPRINTF(\"%s: 0x%\" PRIx64 \"\\n\"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 55 ], [ 57 ], [...
10,362
bool iommu_dma_memory_valid(DMAContext *dma, dma_addr_t addr, dma_addr_t len, DMADirection dir) { target_phys_addr_t paddr, plen; #ifdef DEBUG_IOMMU fprintf(stderr, "dma_memory_check context=%p addr=0x" DMA_ADDR_FMT " len=0x" DMA_ADDR_FMT " dir=%d\n", dma, addr, l...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
bool iommu_dma_memory_valid(DMAContext *dma, dma_addr_t addr, dma_addr_t len, DMADirection dir) { target_phys_addr_t paddr, plen; #ifdef DEBUG_IOMMU fprintf(stderr, "dma_memory_check context=%p addr=0x" DMA_ADDR_FMT " len=0x" DMA_ADDR_FMT " dir=%d\n", dma, addr, l...
{ "code": [], "line_no": [] }
bool FUNC_0(DMAContext *dma, dma_addr_t addr, dma_addr_t len, DMADirection dir) { target_phys_addr_t paddr, plen; #ifdef DEBUG_IOMMU fprintf(stderr, "dma_memory_check context=%p addr=0x" DMA_ADDR_FMT " len=0x" DMA_ADDR_FMT " dir=%d\n", dma, addr, len, dir); #endi...
[ "bool FUNC_0(DMAContext *dma, dma_addr_t addr, dma_addr_t len,\nDMADirection dir)\n{", "target_phys_addr_t paddr, plen;", "#ifdef DEBUG_IOMMU\nfprintf(stderr, \"dma_memory_check context=%p addr=0x\" DMA_ADDR_FMT\n\" len=0x\" DMA_ADDR_FMT \" dir=%d\\n\", dma, addr, len, dir);", "#endif\nwhile (len) {", "if (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13, 15 ], [ 17, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ] ]
10,363
static void tm_put(QEMUFile *f, struct tm *tm) { qemu_put_be16(f, tm->tm_sec); qemu_put_be16(f, tm->tm_min); qemu_put_be16(f, tm->tm_hour); qemu_put_be16(f, tm->tm_mday); qemu_put_be16(f, tm->tm_min); qemu_put_be16(f, tm->tm_year); }
false
qemu
f0495f56c9f4574140c392bdbad42721ba692d19
static void tm_put(QEMUFile *f, struct tm *tm) { qemu_put_be16(f, tm->tm_sec); qemu_put_be16(f, tm->tm_min); qemu_put_be16(f, tm->tm_hour); qemu_put_be16(f, tm->tm_mday); qemu_put_be16(f, tm->tm_min); qemu_put_be16(f, tm->tm_year); }
{ "code": [], "line_no": [] }
static void FUNC_0(QEMUFile *VAR_0, struct VAR_1 *VAR_1) { qemu_put_be16(VAR_0, VAR_1->tm_sec); qemu_put_be16(VAR_0, VAR_1->tm_min); qemu_put_be16(VAR_0, VAR_1->tm_hour); qemu_put_be16(VAR_0, VAR_1->tm_mday); qemu_put_be16(VAR_0, VAR_1->tm_min); qemu_put_be16(VAR_0, VAR_1->tm_year); }
[ "static void FUNC_0(QEMUFile *VAR_0, struct VAR_1 *VAR_1) {", "qemu_put_be16(VAR_0, VAR_1->tm_sec);", "qemu_put_be16(VAR_0, VAR_1->tm_min);", "qemu_put_be16(VAR_0, VAR_1->tm_hour);", "qemu_put_be16(VAR_0, VAR_1->tm_mday);", "qemu_put_be16(VAR_0, VAR_1->tm_min);", "qemu_put_be16(VAR_0, VAR_1->tm_year);",...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
10,365
uint64_t helper_fsqrt(CPUPPCState *env, uint64_t arg) { CPU_DoubleU farg; farg.ll = arg; if (unlikely(float64_is_neg(farg.d) && !float64_is_zero(farg.d))) { /* Square root of a negative nonzero number */ farg.ll = fload_invalid_op_excp(env, POWERPC_EXCP_FP_VXSQRT); } else { ...
false
qemu
59800ec8e52bcfa271fa61fb0aae19205ef1b7f1
uint64_t helper_fsqrt(CPUPPCState *env, uint64_t arg) { CPU_DoubleU farg; farg.ll = arg; if (unlikely(float64_is_neg(farg.d) && !float64_is_zero(farg.d))) { farg.ll = fload_invalid_op_excp(env, POWERPC_EXCP_FP_VXSQRT); } else { if (unlikely(float64_is_signaling_nan(f...
{ "code": [], "line_no": [] }
uint64_t FUNC_0(CPUPPCState *env, uint64_t arg) { CPU_DoubleU farg; farg.ll = arg; if (unlikely(float64_is_neg(farg.d) && !float64_is_zero(farg.d))) { farg.ll = fload_invalid_op_excp(env, POWERPC_EXCP_FP_VXSQRT); } else { if (unlikely(float64_is_signaling_nan(farg.d)...
[ "uint64_t FUNC_0(CPUPPCState *env, uint64_t arg)\n{", "CPU_DoubleU farg;", "farg.ll = arg;", "if (unlikely(float64_is_neg(farg.d) && !float64_is_zero(farg.d))) {", "farg.ll = fload_invalid_op_excp(env, POWERPC_EXCP_FP_VXSQRT);", "} else {", "if (unlikely(float64_is_signaling_nan(farg.d))) {", "fload_i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
10,366
static int kvm_handle_internal_error(CPUState *env, struct kvm_run *run) { fprintf(stderr, "KVM internal error."); if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) { int i; fprintf(stderr, " Suberror: %d\n", run->internal.suberror); for (i = 0; i < run->internal.n...
false
qemu
d73cd8f4ea1c2944bd16f7a1c445eaa25c9e6e26
static int kvm_handle_internal_error(CPUState *env, struct kvm_run *run) { fprintf(stderr, "KVM internal error."); if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) { int i; fprintf(stderr, " Suberror: %d\n", run->internal.suberror); for (i = 0; i < run->internal.n...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1) { fprintf(stderr, "KVM internal error."); if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) { int VAR_2; fprintf(stderr, " Suberror: %d\n", VAR_1->internal.suberror); for (VAR_2 = 0; VAR_2 < VAR_1->internal....
[ "static int FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1)\n{", "fprintf(stderr, \"KVM internal error.\");", "if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) {", "int VAR_2;", "fprintf(stderr, \" Suberror: %d\\n\", VAR_1->internal.suberror);", "for (VAR_2 = 0; VAR_2 < VAR_1->internal.ndat...
[ 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 ], [ 49 ], [...
10,367
int virtio_get_block_size(void) { return blk_cfg.blk_size; }
false
qemu
92cb05574b7bd489be81f9c58497dc7dfe5d8859
int virtio_get_block_size(void) { return blk_cfg.blk_size; }
{ "code": [], "line_no": [] }
int FUNC_0(void) { return blk_cfg.blk_size; }
[ "int FUNC_0(void)\n{", "return blk_cfg.blk_size;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
10,368
void tlb_fill(target_ulong addr, int is_write, int mmu_idx, void *retaddr) { tlb_set_page(cpu_single_env, addr & ~(TARGET_PAGE_SIZE - 1), addr & ~(TARGET_PAGE_SIZE - 1), PAGE_READ | PAGE_WRITE | PAGE_EXEC, mmu_idx, TARGET_PAGE_SIZE); }
false
qemu
b67ea0cd74417b42482499c29feb90914fbf8097
void tlb_fill(target_ulong addr, int is_write, int mmu_idx, void *retaddr) { tlb_set_page(cpu_single_env, addr & ~(TARGET_PAGE_SIZE - 1), addr & ~(TARGET_PAGE_SIZE - 1), PAGE_READ | PAGE_WRITE | PAGE_EXEC, mmu_idx, TARGET_PAGE_SIZE); }
{ "code": [], "line_no": [] }
void FUNC_0(target_ulong VAR_0, int VAR_1, int VAR_2, void *VAR_3) { tlb_set_page(cpu_single_env, VAR_0 & ~(TARGET_PAGE_SIZE - 1), VAR_0 & ~(TARGET_PAGE_SIZE - 1), PAGE_READ | PAGE_WRITE | PAGE_EXEC, VAR_2, TARGET_PAGE_SIZE); }
[ "void FUNC_0(target_ulong VAR_0, int VAR_1, int VAR_2, void *VAR_3)\n{", "tlb_set_page(cpu_single_env,\nVAR_0 & ~(TARGET_PAGE_SIZE - 1),\nVAR_0 & ~(TARGET_PAGE_SIZE - 1),\nPAGE_READ | PAGE_WRITE | PAGE_EXEC,\nVAR_2, TARGET_PAGE_SIZE);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13 ], [ 15 ] ]
10,371
pp_context_t *pp_get_context(int width, int height, int cpuCaps){ PPContext *c= memalign(32, sizeof(PPContext)); int i; int stride= (width+15)&(~15); //assumed / will realloc if needed memset(c, 0, sizeof(PPContext)); c->cpuCaps= cpuCaps; if(cpuCaps&PP_FORMAT){ c->hChromaSubSample= cpuCaps&0x3;...
false
FFmpeg
ca390e727d165bf80445035c4b67a7239fdc87c0
pp_context_t *pp_get_context(int width, int height, int cpuCaps){ PPContext *c= memalign(32, sizeof(PPContext)); int i; int stride= (width+15)&(~15); memset(c, 0, sizeof(PPContext)); c->cpuCaps= cpuCaps; if(cpuCaps&PP_FORMAT){ c->hChromaSubSample= cpuCaps&0x3; c->vChromaSubSample= (cpuCaps>...
{ "code": [], "line_no": [] }
pp_context_t *FUNC_0(int width, int height, int cpuCaps){ PPContext *c= memalign(32, sizeof(PPContext)); int VAR_0; int VAR_1= (width+15)&(~15); memset(c, 0, sizeof(PPContext)); c->cpuCaps= cpuCaps; if(cpuCaps&PP_FORMAT){ c->hChromaSubSample= cpuCaps&0x3; c->vChromaSubSample= (cpuCaps>>4)&0...
[ "pp_context_t *FUNC_0(int width, int height, int cpuCaps){", "PPContext *c= memalign(32, sizeof(PPContext));", "int VAR_0;", "int VAR_1= (width+15)&(~15);", "memset(c, 0, sizeof(PPContext));", "c->cpuCaps= cpuCaps;", "if(cpuCaps&PP_FORMAT){", "c->hChromaSubSample= cpuCaps&0x3;", "c->vChromaSubSample...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ] ]
10,372
static gboolean gd_leave_event(GtkWidget *widget, GdkEventCrossing *crossing, gpointer opaque) { VirtualConsole *vc = opaque; GtkDisplayState *s = vc->s; if (!gd_is_grab_active(s) && gd_grab_on_hover(s)) { gd_ungrab_keyboard(s); } return TRUE; }
false
qemu
2884cf5b934808f547b5268a51be631805c25857
static gboolean gd_leave_event(GtkWidget *widget, GdkEventCrossing *crossing, gpointer opaque) { VirtualConsole *vc = opaque; GtkDisplayState *s = vc->s; if (!gd_is_grab_active(s) && gd_grab_on_hover(s)) { gd_ungrab_keyboard(s); } return TRUE; }
{ "code": [], "line_no": [] }
static gboolean FUNC_0(GtkWidget *widget, GdkEventCrossing *crossing, gpointer opaque) { VirtualConsole *vc = opaque; GtkDisplayState *s = vc->s; if (!gd_is_grab_active(s) && gd_grab_on_hover(s)) { gd_ungrab_keyboard(s); } return TRUE; }
[ "static gboolean FUNC_0(GtkWidget *widget, GdkEventCrossing *crossing,\ngpointer opaque)\n{", "VirtualConsole *vc = opaque;", "GtkDisplayState *s = vc->s;", "if (!gd_is_grab_active(s) && gd_grab_on_hover(s)) {", "gd_ungrab_keyboard(s);", "}", "return TRUE;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
10,373
static void vty_receive(void *opaque, const uint8_t *buf, int size) { VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)opaque; int i; if ((dev->in == dev->out) && size) { /* toggle line to simulate edge interrupt */ qemu_irq_pulse(dev->sdev.qirq); } for (i = 0; i < size; i++) ...
false
qemu
a307d59434ba78b97544b42b8cfd24a1b62e39a6
static void vty_receive(void *opaque, const uint8_t *buf, int size) { VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)opaque; int i; if ((dev->in == dev->out) && size) { qemu_irq_pulse(dev->sdev.qirq); } for (i = 0; i < size; i++) { assert((dev->in - dev->out) < VTE...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, int VAR_2) { VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)VAR_0; int VAR_3; if ((dev->in == dev->out) && VAR_2) { qemu_irq_pulse(dev->sdev.qirq); } for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) { assert((dev->in - d...
[ "static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)VAR_0;", "int VAR_3;", "if ((dev->in == dev->out) && VAR_2) {", "qemu_irq_pulse(dev->sdev.qirq);", "}", "for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) {", "assert((dev->in - dev->out) < VTER...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
10,375
int kvm_arch_process_async_events(CPUState *env) { return 0; }
false
qemu
71b12d31971751f46c546d693c1e216f38ba2053
int kvm_arch_process_async_events(CPUState *env) { return 0; }
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0) { return 0; }
[ "int FUNC_0(CPUState *VAR_0)\n{", "return 0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
10,377
static void coroutine_fn stream_run(void *opaque) { StreamBlockJob *s = opaque; StreamCompleteData *data; BlockBackend *blk = s->common.blk; BlockDriverState *bs = blk_bs(blk); BlockDriverState *base = s->base; int64_t sector_num = 0; int64_t end = -1; uint64_t delay_ns = 0; ...
false
qemu
d535435f4a3968a897803d38bf1642f3b644979a
static void coroutine_fn stream_run(void *opaque) { StreamBlockJob *s = opaque; StreamCompleteData *data; BlockBackend *blk = s->common.blk; BlockDriverState *bs = blk_bs(blk); BlockDriverState *base = s->base; int64_t sector_num = 0; int64_t end = -1; uint64_t delay_ns = 0; ...
{ "code": [], "line_no": [] }
static void VAR_0 stream_run(void *opaque) { StreamBlockJob *s = opaque; StreamCompleteData *data; BlockBackend *blk = s->common.blk; BlockDriverState *bs = blk_bs(blk); BlockDriverState *base = s->base; int64_t sector_num = 0; int64_t end = -1; uint64_t delay_ns = 0; int e...
[ "static void VAR_0 stream_run(void *opaque)\n{", "StreamBlockJob *s = opaque;", "StreamCompleteData *data;", "BlockBackend *blk = s->common.blk;", "BlockDriverState *bs = blk_bs(blk);", "BlockDriverState *base = s->base;", "int64_t sector_num = 0;", "int64_t end = -1;", "uint64_t delay_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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
10,378
static void palmte_onoff_gpios(void *opaque, int line, int level) { switch (line) { case 0: printf("%s: current to MMC/SD card %sabled.\n", __FUNCTION__, level ? "dis" : "en"); break; case 1: printf("%s: internal speaker amplifier %s.\n", ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void palmte_onoff_gpios(void *opaque, int line, int level) { switch (line) { case 0: printf("%s: current to MMC/SD card %sabled.\n", __FUNCTION__, level ? "dis" : "en"); break; case 1: printf("%s: internal speaker amplifier %s.\n", ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { switch (VAR_1) { case 0: printf("%s: current to MMC/SD card %sabled.\n", __FUNCTION__, VAR_2 ? "dis" : "en"); break; case 1: printf("%s: internal speaker amplifier %s.\n", ...
[ "static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "switch (VAR_1) {", "case 0:\nprintf(\"%s: current to MMC/SD card %sabled.\\n\",\n__FUNCTION__, VAR_2 ? \"dis\" : \"en\");", "break;", "case 1:\nprintf(\"%s: internal speaker amplifier %s.\\n\",\n__FUNCTION__, VAR_2 ? \"down\" : \"on\");", "break...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11 ], [ 13 ], [ 15, 17, 19 ], [ 21 ], [ 27, 29, 31, 33, 35 ], [ 37 ], [ 39, 41, 43, 45 ], [ 47 ], [ 49 ], [ 51 ] ]
10,379
static int ppc_hash64_check_prot(int prot, int rwx) { int ret; if (rwx == 2) { if (prot & PAGE_EXEC) { ret = 0; } else { ret = -2; } } else if (rwx == 1) { if (prot & PAGE_WRITE) { ret = 0; } else { ret = ...
false
qemu
e01b444523e2b0c663b42b3e8f44ef48a6153051
static int ppc_hash64_check_prot(int prot, int rwx) { int ret; if (rwx == 2) { if (prot & PAGE_EXEC) { ret = 0; } else { ret = -2; } } else if (rwx == 1) { if (prot & PAGE_WRITE) { ret = 0; } else { ret = ...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, int VAR_1) { int VAR_2; if (VAR_1 == 2) { if (VAR_0 & PAGE_EXEC) { VAR_2 = 0; } else { VAR_2 = -2; } } else if (VAR_1 == 1) { if (VAR_0 & PAGE_WRITE) { VAR_2 = 0; } else { VAR_...
[ "static int FUNC_0(int VAR_0, int VAR_1)\n{", "int VAR_2;", "if (VAR_1 == 2) {", "if (VAR_0 & PAGE_EXEC) {", "VAR_2 = 0;", "} else {", "VAR_2 = -2;", "}", "} else if (VAR_1 == 1) {", "if (VAR_0 & PAGE_WRITE) {", "VAR_2 = 0;", "} else {", "VAR_2 = -2;", "}", "} else {", "if (VAR_0 & PAG...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
10,380
static void exynos4210_pwm_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { Exynos4210PWMState *s = (Exynos4210PWMState *)opaque; int index; uint32_t new_val; int i; switch (offset) { case TCFG0: case TCFG1: index = (offset - TCFG0) >> 2;...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void exynos4210_pwm_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { Exynos4210PWMState *s = (Exynos4210PWMState *)opaque; int index; uint32_t new_val; int i; switch (offset) { case TCFG0: case TCFG1: index = (offset - TCFG0) >> 2;...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { Exynos4210PWMState *s = (Exynos4210PWMState *)VAR_0; int VAR_4; uint32_t new_val; int VAR_5; switch (VAR_1) { case TCFG0: case TCFG1: VAR_4 = (VAR_1 - TCFG0) >> 2; s->r...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "Exynos4210PWMState *s = (Exynos4210PWMState *)VAR_0;", "int VAR_4;", "uint32_t new_val;", "int VAR_5;", "switch (VAR_1) {", "case TCFG0: case TCFG1:\nVAR_4 = (VAR_1 - TCFG0) >> 2;", "s->reg_tcfg[VAR_4] = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43, 45 ], [ 63 ], [ 65, 67 ], [ 69 ], [...
10,381
static void smbios_build_type_1_table(void) { SMBIOS_BUILD_TABLE_PRE(1, 0x100, true); /* required */ SMBIOS_TABLE_SET_STR(1, manufacturer_str, type1.manufacturer); SMBIOS_TABLE_SET_STR(1, product_name_str, type1.product); SMBIOS_TABLE_SET_STR(1, version_str, type1.version); SMBIOS_TABLE_SET_...
false
qemu
9c5ce8db2e5c2769ed2fd3d91928dd1853b5ce7c
static void smbios_build_type_1_table(void) { SMBIOS_BUILD_TABLE_PRE(1, 0x100, true); SMBIOS_TABLE_SET_STR(1, manufacturer_str, type1.manufacturer); SMBIOS_TABLE_SET_STR(1, product_name_str, type1.product); SMBIOS_TABLE_SET_STR(1, version_str, type1.version); SMBIOS_TABLE_SET_STR(1, serial_...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { SMBIOS_BUILD_TABLE_PRE(1, 0x100, true); SMBIOS_TABLE_SET_STR(1, manufacturer_str, type1.manufacturer); SMBIOS_TABLE_SET_STR(1, product_name_str, type1.product); SMBIOS_TABLE_SET_STR(1, version_str, type1.version); SMBIOS_TABLE_SET_STR(1, serial_number_str, type1.s...
[ "static void FUNC_0(void)\n{", "SMBIOS_BUILD_TABLE_PRE(1, 0x100, true);", "SMBIOS_TABLE_SET_STR(1, manufacturer_str, type1.manufacturer);", "SMBIOS_TABLE_SET_STR(1, product_name_str, type1.product);", "SMBIOS_TABLE_SET_STR(1, version_str, type1.version);", "SMBIOS_TABLE_SET_STR(1, serial_number_str, type1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
10,382
static int rv10_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; int i; AVFrame *pict = data; i...
false
FFmpeg
605b047bcc48482dc8a356f56629da259fbddbf1
static int rv10_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; int i; AVFrame *pict = data; i...
{ "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->VAR_10; MpegEncContext *s = VAR_0->priv_data; int VAR_6; AVFrame *pict = VAR_1; int VAR_...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->VAR_10;", "MpegEncContext *s = VAR_0->priv_data;", "int VAR_6;", "AVFrame *pict = VAR_1;", "int VAR_7;", "const uint8_t *VAR_8 = NULL;", "av_dlog(VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51,...
10,384
int css_do_rchp(uint8_t cssid, uint8_t chpid) { uint8_t real_cssid; if (cssid > channel_subsys.max_cssid) { return -EINVAL; } if (channel_subsys.max_cssid == 0) { real_cssid = channel_subsys.default_cssid; } else { real_cssid = cssid; } if (!channel_subsy...
false
qemu
5c8d6f008c0555b54cf10550fa86199a2cfabbca
int css_do_rchp(uint8_t cssid, uint8_t chpid) { uint8_t real_cssid; if (cssid > channel_subsys.max_cssid) { return -EINVAL; } if (channel_subsys.max_cssid == 0) { real_cssid = channel_subsys.default_cssid; } else { real_cssid = cssid; } if (!channel_subsy...
{ "code": [], "line_no": [] }
int FUNC_0(uint8_t VAR_0, uint8_t VAR_1) { uint8_t real_cssid; if (VAR_0 > channel_subsys.max_cssid) { return -EINVAL; } if (channel_subsys.max_cssid == 0) { real_cssid = channel_subsys.default_cssid; } else { real_cssid = VAR_0; } if (!channel_subsys.css...
[ "int FUNC_0(uint8_t VAR_0, uint8_t VAR_1)\n{", "uint8_t real_cssid;", "if (VAR_0 > channel_subsys.max_cssid) {", "return -EINVAL;", "}", "if (channel_subsys.max_cssid == 0) {", "real_cssid = channel_subsys.default_cssid;", "} else {", "real_cssid = VAR_0;", "}", "if (!channel_subsys.css[real_css...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45, 47 ], [ 49...
10,386
static void gen_swap_asi(DisasContext *dc, TCGv dst, TCGv src, TCGv addr, int insn) { TCGv_i32 r_asi, r_size, r_sign; TCGv_i64 s64, t64 = tcg_temp_new_i64(); r_asi = gen_get_asi(dc, insn); r_size = tcg_const_i32(4); r_sign = tcg_const_i32(0); gen_helper_ld_asi(...
false
qemu
7ec1e5ea4bd0700fa48da86bffa2fcc6146c410a
static void gen_swap_asi(DisasContext *dc, TCGv dst, TCGv src, TCGv addr, int insn) { TCGv_i32 r_asi, r_size, r_sign; TCGv_i64 s64, t64 = tcg_temp_new_i64(); r_asi = gen_get_asi(dc, insn); r_size = tcg_const_i32(4); r_sign = tcg_const_i32(0); gen_helper_ld_asi(...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2, TCGv VAR_3, int VAR_4) { TCGv_i32 r_asi, r_size, r_sign; TCGv_i64 s64, t64 = tcg_temp_new_i64(); r_asi = gen_get_asi(VAR_0, VAR_4); r_size = tcg_const_i32(4); r_sign = tcg_const_i32(0); gen_helper_...
[ "static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2,\nTCGv VAR_3, int VAR_4)\n{", "TCGv_i32 r_asi, r_size, r_sign;", "TCGv_i64 s64, t64 = tcg_temp_new_i64();", "r_asi = gen_get_asi(VAR_0, VAR_4);", "r_size = tcg_const_i32(4);", "r_sign = tcg_const_i32(0);", "gen_helper_ld_asi(t64, cpu_env, V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ] ]
10,387
static void borzoi_init(int ram_size, int vga_ram_size, int boot_device, DisplayState *ds, const char **fd_filename, int snapshot, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { spitz_common_init(ram...
false
qemu
4207117c93357347500235952ce7891688089cb1
static void borzoi_init(int ram_size, int vga_ram_size, int boot_device, DisplayState *ds, const char **fd_filename, int snapshot, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { spitz_common_init(ram...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int VAR_1, int VAR_2, DisplayState *VAR_3, const char **VAR_4, int VAR_5, const char *VAR_6, const char *VAR_7, const char *VAR_8, const char *VAR_9) { spitz_common_init(VAR_0, VAR_1, VAR_3, VAR_6, VAR_7, VAR_8, borz...
[ "static void FUNC_0(int VAR_0, int VAR_1, int VAR_2,\nDisplayState *VAR_3, const char **VAR_4, int VAR_5,\nconst char *VAR_6, const char *VAR_7,\nconst char *VAR_8, const char *VAR_9)\n{", "spitz_common_init(VAR_0, VAR_1, VAR_3, VAR_6,\nVAR_7, VAR_8, borzoi, 0x33f);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11, 13 ], [ 15 ] ]
10,388
static struct addrinfo *inet_parse_connect_opts(QemuOpts *opts, Error **errp) { struct addrinfo ai, *res; int rc; const char *addr; const char *port; memset(&ai, 0, sizeof(ai)); ai.ai_flags = AI_CANONNAME | AI_ADDRCONFIG; ai.ai_family = PF_UNSPEC; ai.ai_socktype = SOCK_STREA...
true
qemu
3de3d698d942d1116152417f882c897b26b44e41
static struct addrinfo *inet_parse_connect_opts(QemuOpts *opts, Error **errp) { struct addrinfo ai, *res; int rc; const char *addr; const char *port; memset(&ai, 0, sizeof(ai)); ai.ai_flags = AI_CANONNAME | AI_ADDRCONFIG; ai.ai_family = PF_UNSPEC; ai.ai_socktype = SOCK_STREA...
{ "code": [ " ai.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;", " ai.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;" ], "line_no": [ 19, 19 ] }
static struct addrinfo *FUNC_0(QemuOpts *VAR_0, Error **VAR_1) { struct addrinfo VAR_2, *VAR_3; int VAR_4; const char *VAR_5; const char *VAR_6; memset(&VAR_2, 0, sizeof(VAR_2)); VAR_2.ai_flags = AI_CANONNAME | AI_ADDRCONFIG; VAR_2.ai_family = PF_UNSPEC; VAR_2.ai_socktype = ...
[ "static struct addrinfo *FUNC_0(QemuOpts *VAR_0, Error **VAR_1)\n{", "struct addrinfo VAR_2, *VAR_3;", "int VAR_4;", "const char *VAR_5;", "const char *VAR_6;", "memset(&VAR_2, 0, sizeof(VAR_2));", "VAR_2.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;", "VAR_2.ai_family = PF_UNSPEC;", "VAR_2.ai_socktype =...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
10,390
static int arm_gic_init(SysBusDevice *dev) { /* Device instance init function for the GIC sysbus device */ int i; GICState *s = FROM_SYSBUS(GICState, dev); ARMGICClass *agc = ARM_GIC_GET_CLASS(s); agc->parent_init(dev); gic_init_irqs_and_distributor(s, s->num_irq); /* Memory re...
true
qemu
53111180946a56d314a9c1d07d09b9ef91e847b9
static int arm_gic_init(SysBusDevice *dev) { int i; GICState *s = FROM_SYSBUS(GICState, dev); ARMGICClass *agc = ARM_GIC_GET_CLASS(s); agc->parent_init(dev); gic_init_irqs_and_distributor(s, s->num_irq); memory_region_init_io(&s->cpuiomem[0], &gic_thiscpu_o...
{ "code": [ "static int arm_gic_init(SysBusDevice *dev)", " GICState *s = FROM_SYSBUS(GICState, dev);", " agc->parent_init(dev);", " sysbus_init_mmio(dev, &s->iomem);", " sysbus_init_mmio(dev, &s->cpuiomem[i]);", " return 0;", " GICState *s = FROM_SYSBUS(GICState, dev...
static int FUNC_0(SysBusDevice *VAR_0) { int VAR_1; GICState *s = FROM_SYSBUS(GICState, VAR_0); ARMGICClass *agc = ARM_GIC_GET_CLASS(s); agc->parent_init(VAR_0); gic_init_irqs_and_distributor(s, s->num_irq); memory_region_init_io(&s->cpuiomem[0], &gic_thisc...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "int VAR_1;", "GICState *s = FROM_SYSBUS(GICState, VAR_0);", "ARMGICClass *agc = ARM_GIC_GET_CLASS(s);", "agc->parent_init(VAR_0);", "gic_init_irqs_and_distributor(s, s->num_irq);", "memory_region_init_io(&s->cpuiomem[0], &gic_thiscpu_ops, s,\n\"gic_cpu\", 0x...
[ 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 55 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ] ]
10,392
static bool addrrange_intersects(AddrRange r1, AddrRange r2) { return (r1.start >= r2.start && r1.start < r2.start + r2.size) || (r2.start >= r1.start && r2.start < r1.start + r1.size); }
true
qemu
d2963631dd54ddf0f46c151b7e3013e39bb78d3b
static bool addrrange_intersects(AddrRange r1, AddrRange r2) { return (r1.start >= r2.start && r1.start < r2.start + r2.size) || (r2.start >= r1.start && r2.start < r1.start + r1.size); }
{ "code": [ " return (r1.start >= r2.start && r1.start < r2.start + r2.size)", " || (r2.start >= r1.start && r2.start < r1.start + r1.size);" ], "line_no": [ 5, 7 ] }
static bool FUNC_0(AddrRange r1, AddrRange r2) { return (r1.start >= r2.start && r1.start < r2.start + r2.size) || (r2.start >= r1.start && r2.start < r1.start + r1.size); }
[ "static bool FUNC_0(AddrRange r1, AddrRange r2)\n{", "return (r1.start >= r2.start && r1.start < r2.start + r2.size)\n|| (r2.start >= r1.start && r2.start < r1.start + r1.size);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
10,393
static void network_to_result(RDMARegisterResult *result) { result->rkey = ntohl(result->rkey); result->host_addr = ntohll(result->host_addr); };
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void network_to_result(RDMARegisterResult *result) { result->rkey = ntohl(result->rkey); result->host_addr = ntohll(result->host_addr); };
{ "code": [], "line_no": [] }
static void FUNC_0(RDMARegisterResult *VAR_0) { VAR_0->rkey = ntohl(VAR_0->rkey); VAR_0->host_addr = ntohll(VAR_0->host_addr); };
[ "static void FUNC_0(RDMARegisterResult *VAR_0)\n{", "VAR_0->rkey = ntohl(VAR_0->rkey);", "VAR_0->host_addr = ntohll(VAR_0->host_addr);", "};" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
10,394
static inline void RENAME(bgr24ToY_mmx)(uint8_t *dst, const uint8_t *src, int width, enum PixelFormat srcFormat) { if(srcFormat == PIX_FMT_BGR24) { __asm__ volatile( "movq "MANGLE(ff_bgr24toY1Coeff)", %%mm5 \n\t" "movq "MANGLE(ff_bgr24toY2Coeff)", %%mm6 \n\t" ...
true
FFmpeg
c3ab0004ae4dffc32494ae84dd15cfaa909a7884
static inline void RENAME(bgr24ToY_mmx)(uint8_t *dst, const uint8_t *src, int width, enum PixelFormat srcFormat) { if(srcFormat == PIX_FMT_BGR24) { __asm__ volatile( "movq "MANGLE(ff_bgr24toY1Coeff)", %%mm5 \n\t" "movq "MANGLE(ff_bgr24toY2Coeff)", %%mm6 \n\t" ...
{ "code": [ "static inline void RENAME(bgr24ToY_mmx)(uint8_t *dst, const uint8_t *src, int width, enum PixelFormat srcFormat)" ], "line_no": [ 1 ] }
static inline void FUNC_0(bgr24ToY_mmx)(uint8_t *dst, const uint8_t *src, int width, enum PixelFormat srcFormat) { if(srcFormat == PIX_FMT_BGR24) { __asm__ volatile( "movq "MANGLE(ff_bgr24toY1Coeff)", %%mm5 \n\t" "movq "MANGLE(ff_bgr24toY2Coeff)", %%mm6 \n\t" ...
[ "static inline void FUNC_0(bgr24ToY_mmx)(uint8_t *dst, const uint8_t *src, int width, enum PixelFormat srcFormat)\n{", "if(srcFormat == PIX_FMT_BGR24) {", "__asm__ volatile(\n\"movq \"MANGLE(ff_bgr24toY1Coeff)\", %%mm5 \\n\\t\"\n\"movq \"MANGLE(ff_bgr24toY2Coeff)\", %%mm6 \\n\\t\"\n:\n);", "} el...
[ 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9, 11, 13, 15, 17 ], [ 19 ], [ 21, 23, 25, 27, 29 ], [ 31 ], [ 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71...
10,395
static int xvid_ff_2pass_after(struct xvid_context *ref, xvid_plg_data_t *param) { char *log = ref->twopassbuffer; const char *frame_types = " ipbs"; char frame_type; /* Quick bounds check */ if( log == NULL ) return XVID_ERR_FAIL; /* Convert t...
false
FFmpeg
f929ab0569ff31ed5a59b0b0adb7ce09df3fca39
static int xvid_ff_2pass_after(struct xvid_context *ref, xvid_plg_data_t *param) { char *log = ref->twopassbuffer; const char *frame_types = " ipbs"; char frame_type; if( log == NULL ) return XVID_ERR_FAIL; if( param->type < 5 && param->...
{ "code": [], "line_no": [] }
static int FUNC_0(struct xvid_context *VAR_0, xvid_plg_data_t *VAR_1) { char *VAR_2 = VAR_0->twopassbuffer; const char *VAR_3 = " ipbs"; char VAR_4; if( VAR_2 == NULL ) return XVID_ERR_FAIL; if( VAR_1->type < 5 && VAR_1->type > 0 ) { ...
[ "static int FUNC_0(struct xvid_context *VAR_0,\nxvid_plg_data_t *VAR_1) {", "char *VAR_2 = VAR_0->twopassbuffer;", "const char *VAR_3 = \" ipbs\";", "char VAR_4;", "if( VAR_2 == NULL )\nreturn XVID_ERR_FAIL;", "if( VAR_1->type < 5 && VAR_1->type > 0 ) {", "VAR_4 = VAR_3[VAR_1->type];", "} else {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15, 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37, 39, 41 ], [ 45 ], [ 47 ] ]
10,396
int ff_vdpau_common_end_frame(AVCodecContext *avctx, AVFrame *frame, struct vdpau_picture_context *pic_ctx) { VDPAUContext *vdctx = avctx->internal->hwaccel_priv_data; AVVDPAUContext *hwctx = avctx->hwaccel_context; VdpVideoSurface surf = ff_vdpau_get_surface_id(frame); ...
false
FFmpeg
0e57c051181c06d9a3468d5e072ded827ed09a53
int ff_vdpau_common_end_frame(AVCodecContext *avctx, AVFrame *frame, struct vdpau_picture_context *pic_ctx) { VDPAUContext *vdctx = avctx->internal->hwaccel_priv_data; AVVDPAUContext *hwctx = avctx->hwaccel_context; VdpVideoSurface surf = ff_vdpau_get_surface_id(frame); ...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, struct vdpau_picture_context *VAR_2) { VDPAUContext *vdctx = VAR_0->internal->hwaccel_priv_data; AVVDPAUContext *hwctx = VAR_0->hwaccel_context; VdpVideoSurface surf = ff_vdpau_get_surface_id(VAR_1); VdpStatus status; ...
[ "int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,\nstruct vdpau_picture_context *VAR_2)\n{", "VDPAUContext *vdctx = VAR_0->internal->hwaccel_priv_data;", "AVVDPAUContext *hwctx = VAR_0->hwaccel_context;", "VdpVideoSurface surf = ff_vdpau_get_surface_id(VAR_1);", "VdpStatus status;", "int VAR_3;", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 45 ], [ 47, 49 ], [ 51 ], [ 53, 55,...
10,397
static CheckasmFunc *get_func(const char *name, int length) { CheckasmFunc *f, **f_ptr = &state.funcs; /* Search the tree for a matching node */ while ((f = *f_ptr)) { int cmp = cmp_func_names(name, f->name); if (!cmp) return f; f_ptr = &f->child[(cmp > 0)]; ...
false
FFmpeg
5405584b7b54ca889c341743de1d58792449830d
static CheckasmFunc *get_func(const char *name, int length) { CheckasmFunc *f, **f_ptr = &state.funcs; while ((f = *f_ptr)) { int cmp = cmp_func_names(name, f->name); if (!cmp) return f; f_ptr = &f->child[(cmp > 0)]; } f = *f_ptr = checkasm_...
{ "code": [], "line_no": [] }
static CheckasmFunc *FUNC_0(const char *name, int length) { CheckasmFunc *f, **f_ptr = &state.funcs; while ((f = *f_ptr)) { int VAR_0 = cmp_func_names(name, f->name); if (!VAR_0) return f; f_ptr = &f->child[(VAR_0 > 0)]; } f = *f_ptr = check...
[ "static CheckasmFunc *FUNC_0(const char *name, int length)\n{", "CheckasmFunc *f, **f_ptr = &state.funcs;", "while ((f = *f_ptr)) {", "int VAR_0 = cmp_func_names(name, f->name);", "if (!VAR_0)\nreturn f;", "f_ptr = &f->child[(VAR_0 > 0)];", "}", "f = *f_ptr = checkasm_malloc(sizeof(CheckasmFunc) + len...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
10,398
static void unref_picture(H264Context *h, Picture *pic) { int off = offsetof(Picture, tf) + sizeof(pic->tf); int i; if (!pic->f.data[0]) return; ff_thread_release_buffer(h->avctx, &pic->tf); av_buffer_unref(&pic->hwaccel_priv_buf); av_buffer_unref(&pic->qscale_table_buf); ...
false
FFmpeg
a553c6a347d3d28d7ee44c3df3d5c4ee780dba23
static void unref_picture(H264Context *h, Picture *pic) { int off = offsetof(Picture, tf) + sizeof(pic->tf); int i; if (!pic->f.data[0]) return; ff_thread_release_buffer(h->avctx, &pic->tf); av_buffer_unref(&pic->hwaccel_priv_buf); av_buffer_unref(&pic->qscale_table_buf); ...
{ "code": [], "line_no": [] }
static void FUNC_0(H264Context *VAR_0, Picture *VAR_1) { int VAR_2 = offsetof(Picture, tf) + sizeof(VAR_1->tf); int VAR_3; if (!VAR_1->f.data[0]) return; ff_thread_release_buffer(VAR_0->avctx, &VAR_1->tf); av_buffer_unref(&VAR_1->hwaccel_priv_buf); av_buffer_unref(&VAR_1->q...
[ "static void FUNC_0(H264Context *VAR_0, Picture *VAR_1)\n{", "int VAR_2 = offsetof(Picture, tf) + sizeof(VAR_1->tf);", "int VAR_3;", "if (!VAR_1->f.data[0])\nreturn;", "ff_thread_release_buffer(VAR_0->avctx, &VAR_1->tf);", "av_buffer_unref(&VAR_1->hwaccel_priv_buf);", "av_buffer_unref(&VAR_1->qscale_tab...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
10,400
void ff_free_parser_state(AVFormatContext *s, AVParserState *state) { int i; AVParserStreamState *ss; if (!state) return; for (i = 0; i < state->nb_streams; i++) { ss = &state->stream_states[i]; if (ss->parser) av_parser_close(ss->parser); av_fre...
false
FFmpeg
27c7ca9c12bb42d5c44d46f24cd970469d0ef55a
void ff_free_parser_state(AVFormatContext *s, AVParserState *state) { int i; AVParserStreamState *ss; if (!state) return; for (i = 0; i < state->nb_streams; i++) { ss = &state->stream_states[i]; if (ss->parser) av_parser_close(ss->parser); av_fre...
{ "code": [], "line_no": [] }
void FUNC_0(AVFormatContext *VAR_0, AVParserState *VAR_1) { int VAR_2; AVParserStreamState *ss; if (!VAR_1) return; for (VAR_2 = 0; VAR_2 < VAR_1->nb_streams; VAR_2++) { ss = &VAR_1->stream_states[VAR_2]; if (ss->parser) av_parser_close(ss->parser); ...
[ "void FUNC_0(AVFormatContext *VAR_0, AVParserState *VAR_1)\n{", "int VAR_2;", "AVParserStreamState *ss;", "if (!VAR_1)\nreturn;", "for (VAR_2 = 0; VAR_2 < VAR_1->nb_streams; VAR_2++) {", "ss = &VAR_1->stream_states[VAR_2];", "if (ss->parser)\nav_parser_close(ss->parser);", "av_free_packet(&ss->cur_pkt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ] ]
10,401
static int mjpeg_decode_com(MJpegDecodeContext *s) { /* XXX: verify len field validity */ int len = get_bits(&s->gb, 16); if (len >= 2 && len < 32768) { /* XXX: any better upper bound */ uint8_t *cbuf = av_malloc(len - 1); if (cbuf) { int i; for (i = 0; i < len - 2; i++) cbuf[i] = g...
true
FFmpeg
e33943728e775ef9f3239fe950f3be4fa405d1f2
static int mjpeg_decode_com(MJpegDecodeContext *s) { int len = get_bits(&s->gb, 16); if (len >= 2 && len < 32768) { uint8_t *cbuf = av_malloc(len - 1); if (cbuf) { int i; for (i = 0; i < len - 2; i++) cbuf[i] = get_bits(&s->gb, 8); if (i > 0 && cbuf[i-1] == '\n') cbuf[i-1...
{ "code": [ " if (len >= 2 && len < 32768) {" ], "line_no": [ 9 ] }
static int FUNC_0(MJpegDecodeContext *VAR_0) { int VAR_1 = get_bits(&VAR_0->gb, 16); if (VAR_1 >= 2 && VAR_1 < 32768) { uint8_t *cbuf = av_malloc(VAR_1 - 1); if (cbuf) { int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_1 - 2; VAR_2++) cbuf[VAR_2] = get_bits(&VAR_0->gb, 8); if (VAR_2 >...
[ "static int FUNC_0(MJpegDecodeContext *VAR_0)\n{", "int VAR_1 = get_bits(&VAR_0->gb, 16);", "if (VAR_1 >= 2 && VAR_1 < 32768) {", "uint8_t *cbuf = av_malloc(VAR_1 - 1);", "if (cbuf) {", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < VAR_1 - 2; VAR_2++)", "cbuf[VAR_2] = get_bits(&VAR_0->gb, 8);", "if (VAR_2 ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 33, 35 ], [ 41, 43 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 61...
10,402
static void xhci_runtime_write(void *ptr, hwaddr reg, uint64_t val, unsigned size) { XHCIState *xhci = ptr; int v = (reg - 0x20) / 0x20; XHCIInterrupter *intr = &xhci->intr[v]; trace_usb_xhci_runtime_write(reg, val); if (reg < 0x20) { trace_usb_xhci_u...
true
qemu
7da76e12cc5cc902dda4c168d8d608fd4e61cbc5
static void xhci_runtime_write(void *ptr, hwaddr reg, uint64_t val, unsigned size) { XHCIState *xhci = ptr; int v = (reg - 0x20) / 0x20; XHCIInterrupter *intr = &xhci->intr[v]; trace_usb_xhci_runtime_write(reg, val); if (reg < 0x20) { trace_usb_xhci_u...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { XHCIState *xhci = VAR_0; int VAR_4 = (VAR_1 - 0x20) / 0x20; XHCIInterrupter *intr = &xhci->intr[VAR_4]; trace_usb_xhci_runtime_write(VAR_1, VAR_2); if (VAR_1 < 0x20) { tra...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "XHCIState *xhci = VAR_0;", "int VAR_4 = (VAR_1 - 0x20) / 0x20;", "XHCIInterrupter *intr = &xhci->intr[VAR_4];", "trace_usb_xhci_runtime_write(VAR_1, VAR_2);", "if (VAR_1 < 0x20) {", "trace_usb_xhci_unimplemented(\"runt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 26 ], [ 28, 30 ], [ 32 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 44 ], [ 46 ], [ 48, 50 ], [...
10,403
static void test_ide_none(void) { char *argv[256]; setup_common(argv, ARRAY_SIZE(argv)); qtest_start(g_strjoinv(" ", argv)); test_cmos(); qtest_end(); }
true
qemu
2c8f86961b6eaac705be21bc98299f5517eb0b6b
static void test_ide_none(void) { char *argv[256]; setup_common(argv, ARRAY_SIZE(argv)); qtest_start(g_strjoinv(" ", argv)); test_cmos(); qtest_end(); }
{ "code": [ " char *argv[256];", " setup_common(argv, ARRAY_SIZE(argv));", " qtest_start(g_strjoinv(\" \", argv));", " char *argv[256];", " qtest_start(g_strjoinv(\" \", argv));", " qtest_start(g_strjoinv(\" \", argv));", " char *argv[256];", " qtest_start(g_str...
static void FUNC_0(void) { char *VAR_0[256]; setup_common(VAR_0, ARRAY_SIZE(VAR_0)); qtest_start(g_strjoinv(" ", VAR_0)); test_cmos(); qtest_end(); }
[ "static void FUNC_0(void)\n{", "char *VAR_0[256];", "setup_common(VAR_0, ARRAY_SIZE(VAR_0));", "qtest_start(g_strjoinv(\" \", VAR_0));", "test_cmos();", "qtest_end();", "}" ]
[ 0, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
10,404
int ff_dca_xll_decode_audio(DCAContext *s, AVFrame *frame) { /* FIXME: Decodes only the first frequency band. */ int seg, chset_i; /* Coding parameters for each channel set. */ struct coding_params { int seg_type; int rice_code_flag[16]; int pancAuxABIT[16]; in...
true
FFmpeg
c9ed48e80ef807ab0c1bb946ac8db5f34d83d9c9
int ff_dca_xll_decode_audio(DCAContext *s, AVFrame *frame) { int seg, chset_i; struct coding_params { int seg_type; int rice_code_flag[16]; int pancAuxABIT[16]; int pancABIT0[16]; int pancABIT[16]; int nSamplPart0[16]; } param_stat...
{ "code": [ " int bits = params->pancABIT0[param_index];" ], "line_no": [ 217 ] }
int FUNC_0(DCAContext *VAR_0, AVFrame *VAR_1) { int VAR_2, VAR_3; struct coding_params { int seg_type; int rice_code_flag[16]; int pancAuxABIT[16]; int pancABIT0[16]; int pancABIT[16]; int nSamplPart0[16]; } VAR_4[16]; GetBi...
[ "int FUNC_0(DCAContext *VAR_0, AVFrame *VAR_1)\n{", "int VAR_2, VAR_3;", "struct coding_params {", "int seg_type;", "int rice_code_flag[16];", "int pancAuxABIT[16];", "int pancABIT0[16];", "int pancABIT[16];", "int nSamplPart0[16];", "} VAR_4[16];", "GetBitContext *gb = &VAR_0->xll_navi.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, 1, 0, 0...
[ [ 1, 3 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 43, 45, 47 ], [ 49, 51 ], [ 55 ], [ 59 ], [ 61 ], [ 65 ], ...
10,405
static void encode_cblk(Jpeg2000EncoderContext *s, Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk, Jpeg2000Tile *tile, int width, int height, int bandpos, int lev) { int pass_t = 2, passno, x, y, max=0, nmsedec, bpno; int64_t wmsedec = 0; for (y = 0; y < height+2; y++) mem...
false
FFmpeg
f1e173049ecc9de03817385ba8962d14cba779db
static void encode_cblk(Jpeg2000EncoderContext *s, Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk, Jpeg2000Tile *tile, int width, int height, int bandpos, int lev) { int pass_t = 2, passno, x, y, max=0, nmsedec, bpno; int64_t wmsedec = 0; for (y = 0; y < height+2; y++) mem...
{ "code": [], "line_no": [] }
static void FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000T1Context *VAR_1, Jpeg2000Cblk *VAR_2, Jpeg2000Tile *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { int VAR_8 = 2, VAR_9, VAR_10, VAR_11, VAR_12=0, VAR_13, VAR_14; int64_t wmsedec = 0; for (VAR_11 = 0; VAR_11 < VA...
[ "static void FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000T1Context *VAR_1, Jpeg2000Cblk *VAR_2, Jpeg2000Tile *VAR_3,\nint VAR_4, int VAR_5, int VAR_6, int VAR_7)\n{", "int VAR_8 = 2, VAR_9, VAR_10, VAR_11, VAR_12=0, VAR_13, VAR_14;", "int64_t wmsedec = 0;", "for (VAR_11 = 0; VAR_11 < VAR_5+2; VAR_11++)", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
10,407
void cpu_disable_ticks(void) { /* Here, the really thing protected by seqlock is cpu_clock_offset. */ seqlock_write_lock(&timers_state.vm_clock_seqlock); if (timers_state.cpu_ticks_enabled) { timers_state.cpu_ticks_offset = cpu_get_ticks(); timers_state.cpu_clock_offset = cpu_get_clock...
true
qemu
5f3e31012e334f3410e04abae7f88565df17c91a
void cpu_disable_ticks(void) { seqlock_write_lock(&timers_state.vm_clock_seqlock); if (timers_state.cpu_ticks_enabled) { timers_state.cpu_ticks_offset = cpu_get_ticks(); timers_state.cpu_clock_offset = cpu_get_clock_locked(); timers_state.cpu_ticks_enabled = 0; } se...
{ "code": [ " timers_state.cpu_ticks_offset = cpu_get_ticks();" ], "line_no": [ 11 ] }
void FUNC_0(void) { seqlock_write_lock(&timers_state.vm_clock_seqlock); if (timers_state.cpu_ticks_enabled) { timers_state.cpu_ticks_offset = cpu_get_ticks(); timers_state.cpu_clock_offset = cpu_get_clock_locked(); timers_state.cpu_ticks_enabled = 0; } seqlock_write...
[ "void FUNC_0(void)\n{", "seqlock_write_lock(&timers_state.vm_clock_seqlock);", "if (timers_state.cpu_ticks_enabled) {", "timers_state.cpu_ticks_offset = cpu_get_ticks();", "timers_state.cpu_clock_offset = cpu_get_clock_locked();", "timers_state.cpu_ticks_enabled = 0;", "}", "seqlock_write_unlock(&time...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
10,408
static inline void RENAME(yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, unsigned int width, unsigned int height, int lumStride, int chromStride, int dstStride) { //FIXME interpolate chroma RENAME(yuvPlanartoyuy2)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromS...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
static inline void RENAME(yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, unsigned int width, unsigned int height, int lumStride, int chromStride, int dstStride) { RENAME(yuvPlanartoyuy2)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2); }
{ "code": [ "\tunsigned int width, unsigned int height,", "\tunsigned int width, unsigned int height,", "\tunsigned int width, unsigned int height,", "\tunsigned int width, unsigned int height,", "\tunsigned int width, unsigned int height,", "\tunsigned int width, unsigned int height,", "\...
static inline void FUNC_0(yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, unsigned int width, unsigned int height, int lumStride, int chromStride, int dstStride) { FUNC_0(yuvPlanartoyuy2)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2); }
[ "static inline void FUNC_0(yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,\nunsigned int width, unsigned int height,\nint lumStride, int chromStride, int dstStride)\n{", "FUNC_0(yuvPlanartoyuy2)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2);",...
[ 1, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 11 ], [ 13 ] ]
10,411
static int decode_residuals(FLACContext *s, int channel, int pred_order) { int i, tmp, partition, method_type, rice_order; int sample = 0, samples; method_type = get_bits(&s->gb, 2); if (method_type > 1) { av_log(s->avctx, AV_LOG_ERROR, "illegal residual coding method %d\n", ...
false
FFmpeg
ea98507db018c7b0ea7a167281a210ba1328dde7
static int decode_residuals(FLACContext *s, int channel, int pred_order) { int i, tmp, partition, method_type, rice_order; int sample = 0, samples; method_type = get_bits(&s->gb, 2); if (method_type > 1) { av_log(s->avctx, AV_LOG_ERROR, "illegal residual coding method %d\n", ...
{ "code": [], "line_no": [] }
static int FUNC_0(FLACContext *VAR_0, int VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8 = 0, VAR_9; VAR_6 = get_bits(&VAR_0->gb, 2); if (VAR_6 > 1) { av_log(VAR_0->avctx, AV_LOG_ERROR, "illegal residual coding method %d\n", VAR_6); return -...
[ "static int FUNC_0(FLACContext *VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8 = 0, VAR_9;", "VAR_6 = get_bits(&VAR_0->gb, 2);", "if (VAR_6 > 1) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"illegal residual coding method %d\\n\",\nVAR_6);", "return -1;", "}", "VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], ...
10,413
static int print_device_sinks(AVOutputFormat *fmt, AVDictionary *opts) { int ret, i; AVFormatContext *dev = NULL; AVDeviceInfoList *device_list = NULL; AVDictionary *tmp_opts = NULL; if (!fmt || !fmt->priv_class || !AV_IS_OUTPUT_DEVICE(fmt->priv_class->category)) return AVERROR(EIN...
true
FFmpeg
44e6eeb30de8e2d20db56284984da4615763525c
static int print_device_sinks(AVOutputFormat *fmt, AVDictionary *opts) { int ret, i; AVFormatContext *dev = NULL; AVDeviceInfoList *device_list = NULL; AVDictionary *tmp_opts = NULL; if (!fmt || !fmt->priv_class || !AV_IS_OUTPUT_DEVICE(fmt->priv_class->category)) return AVERROR(EIN...
{ "code": [ " AVFormatContext *dev = NULL;", " AVDictionary *tmp_opts = NULL;", " av_dict_copy(&tmp_opts, opts, 0);", " printf(\"Cannot open device: %s.\\n\", fmt->name);", " goto fail;", " if ((ret = avdevice_list_devices(dev, &device_list)) < 0) {", " av_dict...
static int FUNC_0(AVOutputFormat *VAR_0, AVDictionary *VAR_1) { int VAR_2, VAR_3; AVFormatContext *dev = NULL; AVDeviceInfoList *device_list = NULL; AVDictionary *tmp_opts = NULL; if (!VAR_0 || !VAR_0->priv_class || !AV_IS_OUTPUT_DEVICE(VAR_0->priv_class->category)) return AVERROR(...
[ "static int FUNC_0(AVOutputFormat *VAR_0, AVDictionary *VAR_1)\n{", "int VAR_2, VAR_3;", "AVFormatContext *dev = NULL;", "AVDeviceInfoList *device_list = NULL;", "AVDictionary *tmp_opts = NULL;", "if (!VAR_0 || !VAR_0->priv_class || !AV_IS_OUTPUT_DEVICE(VAR_0->priv_class->category))\nreturn AVERROR(EINVA...
[ 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [...
10,415
static int bmp_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { BMPContext *s = avctx->priv_data; AVFrame *picture = data; AVFrame *p = &s->picture; unsigned int fsize, hsize; int width, heig...
true
FFmpeg
e8f917d6fd9f42fa4f36fd6dd8a21c1e31cd1c26
static int bmp_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { BMPContext *s = avctx->priv_data; AVFrame *picture = data; AVFrame *p = &s->picture; unsigned int fsize, hsize; int width, heig...
{ "code": [ " memcpy(ptr, buf, n);" ], "line_no": [ 311 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { BMPContext *s = VAR_0->priv_data; AVFrame *picture = VAR_1; AVFrame *p = &s->picture; unsigned int VAR_5, VAR_6; int VAR_7, VAR_8; unsig...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "BMPContext *s = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "AVFrame *p = &s->picture;", "unsigned int VAR_5, VAR_6;", "int VAR_7, VAR_8;", "unsigned int VAR_9;", "BiCompression comp;", "unsign...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47,...
10,417
void HELPER(stfl)(CPUS390XState *env) { uint64_t words[MAX_STFL_WORDS]; do_stfle(env, words); cpu_stl_data(env, 200, words[0] >> 32); }
true
qemu
86b5ab390992fd57f3a23764994a7e082bcc2fc4
void HELPER(stfl)(CPUS390XState *env) { uint64_t words[MAX_STFL_WORDS]; do_stfle(env, words); cpu_stl_data(env, 200, words[0] >> 32); }
{ "code": [ " cpu_stl_data(env, 200, words[0] >> 32);" ], "line_no": [ 11 ] }
void FUNC_0(stfl)(CPUS390XState *env) { uint64_t words[MAX_STFL_WORDS]; do_stfle(env, words); cpu_stl_data(env, 200, words[0] >> 32); }
[ "void FUNC_0(stfl)(CPUS390XState *env)\n{", "uint64_t words[MAX_STFL_WORDS];", "do_stfle(env, words);", "cpu_stl_data(env, 200, words[0] >> 32);", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
10,418
static QDict *qmp_check_input_obj(QObject *input_obj) { const QDictEntry *ent; int has_exec_key = 0; QDict *input_dict; if (qobject_type(input_obj) != QTYPE_QDICT) { qerror_report(QERR_QMP_BAD_INPUT_OBJECT, "object"); return NULL; } input_dict = qobject_to_qdict(inpu...
true
qemu
65207c59d99f2260c5f1d3b9c491146616a522aa
static QDict *qmp_check_input_obj(QObject *input_obj) { const QDictEntry *ent; int has_exec_key = 0; QDict *input_dict; if (qobject_type(input_obj) != QTYPE_QDICT) { qerror_report(QERR_QMP_BAD_INPUT_OBJECT, "object"); return NULL; } input_dict = qobject_to_qdict(inpu...
{ "code": [ " } else if (!strcmp(arg_name, \"id\")) {" ], "line_no": [ 61 ] }
static QDict *FUNC_0(QObject *input_obj) { const QDictEntry *VAR_0; int VAR_1 = 0; QDict *input_dict; if (qobject_type(input_obj) != QTYPE_QDICT) { qerror_report(QERR_QMP_BAD_INPUT_OBJECT, "object"); return NULL; } input_dict = qobject_to_qdict(input_obj); for...
[ "static QDict *FUNC_0(QObject *input_obj)\n{", "const QDictEntry *VAR_0;", "int VAR_1 = 0;", "QDict *input_dict;", "if (qobject_type(input_obj) != QTYPE_QDICT) {", "qerror_report(QERR_QMP_BAD_INPUT_OBJECT, \"object\");", "return NULL;", "}", "input_dict = qobject_to_qdict(input_obj);", "for (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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
10,419
static void add_pixels_clamped4_c(const DCTELEM *block, uint8_t *restrict pixels, int line_size) { int i; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; /* read the pixels */ for(i=0;i<4;i++) { pixels[0] = cm[pixels[0] + block[0]]; pixels[1] = cm[pixels[1] +...
true
FFmpeg
c23acbaed40101c677dfcfbbfe0d2c230a8e8f44
static void add_pixels_clamped4_c(const DCTELEM *block, uint8_t *restrict pixels, int line_size) { int i; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; for(i=0;i<4;i++) { pixels[0] = cm[pixels[0] + block[0]]; pixels[1] = cm[pixels[1] + block[1]]; ...
{ "code": [ " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " pixels[0] = cm[pixels[0] + block[0]];", " pixels[1] = cm[pixels[1] + block...
static void FUNC_0(const DCTELEM *VAR_0, uint8_t *restrict VAR_1, int VAR_2) { int VAR_3; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; for(VAR_3=0;VAR_3<4;VAR_3++) { VAR_1[0] = cm[VAR_1[0] + VAR_0[0]]; VAR_1[1] = cm[VAR_1[1] + VAR_0[1]]; VAR_1[2]...
[ "static void FUNC_0(const DCTELEM *VAR_0, uint8_t *restrict VAR_1,\nint VAR_2)\n{", "int VAR_3;", "uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", "for(VAR_3=0;VAR_3<4;VAR_3++) {", "VAR_1[0] = cm[VAR_1[0] + VAR_0[0]];", "VAR_1[1] = cm[VAR_1[1] + VAR_0[1]];", "VAR_1[2] = cm[VAR_1[2] + VAR_0[2]];", "VAR_1[3]...
[ 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
10,420
static void msmpeg4_encode_dc(MpegEncContext * s, int level, int n, int *dir_ptr) { int sign, code; int pred, extquant; int extrabits = 0; int16_t *dc_val; pred = ff_msmpeg4_pred_dc(s, n, &dc_val, dir_ptr); /* update predictor */ if (n < 4) { *dc_val = level * s->y_dc_sc...
true
FFmpeg
e0a99d54111165eb83991945fed0568556cb0efe
static void msmpeg4_encode_dc(MpegEncContext * s, int level, int n, int *dir_ptr) { int sign, code; int pred, extquant; int extrabits = 0; int16_t *dc_val; pred = ff_msmpeg4_pred_dc(s, n, &dc_val, dir_ptr); if (n < 4) { *dc_val = level * s->y_dc_scale; } else { ...
{ "code": [ " int pred, extquant;" ], "line_no": [ 7 ] }
static void FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2, int *VAR_3) { int VAR_4, VAR_5; int VAR_6, VAR_7; int VAR_8 = 0; int16_t *dc_val; VAR_6 = ff_msmpeg4_pred_dc(VAR_0, VAR_2, &dc_val, VAR_3); if (VAR_2 < 4) { *dc_val = VAR_1 * VAR_0->y_dc_scale; } else...
[ "static void FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2, int *VAR_3)\n{", "int VAR_4, VAR_5;", "int VAR_6, VAR_7;", "int VAR_8 = 0;", "int16_t *dc_val;", "VAR_6 = ff_msmpeg4_pred_dc(VAR_0, VAR_2, &dc_val, VAR_3);", "if (VAR_2 < 4) {", "*dc_val = VAR_1 * VAR_0->y_dc_scale;", "} else {", "*...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 39 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 51, 53, 55 ], [ 57 ...
10,421
matroska_read_header (AVFormatContext *s, AVFormatParameters *ap) { MatroskaDemuxContext *matroska = s->priv_data; char *doctype; int version, last_level, res = 0; uint32_t id; matroska->ctx = s; /* First read the EBML header. */ doctype = NULL; if ...
true
FFmpeg
074ac3c2d04abaf6b8b1048ba55a1e4ade13042f
matroska_read_header (AVFormatContext *s, AVFormatParameters *ap) { MatroskaDemuxContext *matroska = s->priv_data; char *doctype; int version, last_level, res = 0; uint32_t id; matroska->ctx = s; doctype = NULL; if ((res = ebml_read_header(matroska...
{ "code": [ " if (stream >= 0)" ], "line_no": [ 693 ] }
FUNC_0 (AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { MatroskaDemuxContext *matroska = VAR_0->priv_data; char *VAR_2; int VAR_3, VAR_4, VAR_5 = 0; uint32_t id; matroska->ctx = VAR_0; VAR_2 = NULL; if ((VAR_5 = ebml_read_header(matroska, &VAR...
[ "FUNC_0 (AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{", "MatroskaDemuxContext *matroska = VAR_0->priv_data;", "char *VAR_2;", "int VAR_3, VAR_4, VAR_5 = 0;", "uint32_t id;", "matroska->ctx = VAR_0;", "VAR_2 = NULL;", "if ((VAR_5 = ebml_read_header(matroska, &VAR_2, &VAR_3)) < 0)\nreturn 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 ], [ 17 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51, 53 ], [...
10,423
static void test_enabled(void) { int i; throttle_config_init(&cfg); g_assert(!throttle_enabled(&cfg)); for (i = 0; i < BUCKETS_COUNT; i++) { throttle_config_init(&cfg); set_cfg_value(false, i, 150); g_assert(throttle_enabled(&cfg)); } for (i = 0; i < BUCKE...
true
qemu
d00e6923b1e2c1bec7840b0a0706764493648527
static void test_enabled(void) { int i; throttle_config_init(&cfg); g_assert(!throttle_enabled(&cfg)); for (i = 0; i < BUCKETS_COUNT; i++) { throttle_config_init(&cfg); set_cfg_value(false, i, 150); g_assert(throttle_enabled(&cfg)); } for (i = 0; i < BUCKE...
{ "code": [ " g_assert(!throttle_enabled(&cfg));" ], "line_no": [ 33 ] }
static void FUNC_0(void) { int VAR_0; throttle_config_init(&cfg); g_assert(!throttle_enabled(&cfg)); for (VAR_0 = 0; VAR_0 < BUCKETS_COUNT; VAR_0++) { throttle_config_init(&cfg); set_cfg_value(false, VAR_0, 150); g_assert(throttle_enabled(&cfg)); } for (VA...
[ "static void FUNC_0(void)\n{", "int VAR_0;", "throttle_config_init(&cfg);", "g_assert(!throttle_enabled(&cfg));", "for (VAR_0 = 0; VAR_0 < BUCKETS_COUNT; VAR_0++) {", "throttle_config_init(&cfg);", "set_cfg_value(false, VAR_0, 150);", "g_assert(throttle_enabled(&cfg));", "}", "for (VAR_0 = 0; VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
10,424
static inline void drawbox(AVFilterBufferRef *picref, unsigned int x, unsigned int y, unsigned int width, unsigned int height, uint8_t *line[4], int pixel_step[4], uint8_t color[4], int hsub, int vsub, int is_rgba_packed, uint8_t rgba_m...
true
FFmpeg
db56a7507ee7c1e095d2eef451d5a487f614edff
static inline void drawbox(AVFilterBufferRef *picref, unsigned int x, unsigned int y, unsigned int width, unsigned int height, uint8_t *line[4], int pixel_step[4], uint8_t color[4], int hsub, int vsub, int is_rgba_packed, uint8_t rgba_m...
{ "code": [ "static inline void drawbox(AVFilterBufferRef *picref, unsigned int x, unsigned int y,", " unsigned int width, unsigned int height," ], "line_no": [ 1, 3 ] }
static inline void FUNC_0(AVFilterBufferRef *VAR_0, unsigned int VAR_1, unsigned int VAR_2, unsigned int VAR_3, unsigned int VAR_4, uint8_t *VAR_5[4], int VAR_6[4], uint8_t VAR_7[4], int VAR_8, int VAR_9, int VAR_10, uint8_t VAR_11[4]) ...
[ "static inline void FUNC_0(AVFilterBufferRef *VAR_0, unsigned int VAR_1, unsigned int VAR_2,\nunsigned int VAR_3, unsigned int VAR_4,\nuint8_t *VAR_5[4], int VAR_6[4], uint8_t VAR_7[4],\nint VAR_8, int VAR_9, int VAR_10, uint8_t VAR_11[4])\n{", "int VAR_12, VAR_13, VAR_14;", "if (VAR_7[3] != 0xFF) {", "if (VA...
[ 1, 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 ...
10,425
static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccontext) { codebook_t * cb; floor_t * fc; residue_t * rc; mapping_t * mc; int i, book; venc->channels = avccontext->channels; venc->sample_rate = avccontext->sample_rate; venc->blocksize[0] = venc->blo...
true
FFmpeg
2d06ce4c879549f13fc1c514cdb5680603f635d1
static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccontext) { codebook_t * cb; floor_t * fc; residue_t * rc; mapping_t * mc; int i, book; venc->channels = avccontext->channels; venc->sample_rate = avccontext->sample_rate; venc->blocksize[0] = venc->blo...
{ "code": [ " for (i = 0; i < fc->partitions; i++) fc->partition_to_class = 0;" ], "line_no": [ 127 ] }
static void FUNC_0(venc_context_t * VAR_0, AVCodecContext * VAR_1) { codebook_t * cb; floor_t * fc; residue_t * rc; mapping_t * mc; int VAR_2, VAR_3; VAR_0->channels = VAR_1->channels; VAR_0->sample_rate = VAR_1->sample_rate; VAR_0->blocksize[0] = VAR_0->blocksize[1] = 8; ...
[ "static void FUNC_0(venc_context_t * VAR_0, AVCodecContext * VAR_1) {", "codebook_t * cb;", "floor_t * fc;", "residue_t * rc;", "mapping_t * mc;", "int VAR_2, VAR_3;", "VAR_0->channels = VAR_1->channels;", "VAR_0->sample_rate = VAR_1->sample_rate;", "VAR_0->blocksize[0] = VAR_0->blocksize[1] = 8;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
10,426
static int iscsi_readcapacity_sync(IscsiLun *iscsilun) { struct scsi_task *task = NULL; struct scsi_readcapacity10 *rc10 = NULL; struct scsi_readcapacity16 *rc16 = NULL; int ret = 0; int retries = ISCSI_CMD_RETRIES; do { if (task != NULL) { scsi_free_scsi_task(tas...
true
qemu
f2917853f715b0ef55df29eb2ffea29dc69ce814
static int iscsi_readcapacity_sync(IscsiLun *iscsilun) { struct scsi_task *task = NULL; struct scsi_readcapacity10 *rc10 = NULL; struct scsi_readcapacity16 *rc16 = NULL; int ret = 0; int retries = ISCSI_CMD_RETRIES; do { if (task != NULL) { scsi_free_scsi_task(tas...
{ "code": [ " return 0;", "static int iscsi_readcapacity_sync(IscsiLun *iscsilun)", " int ret = 0;", " error_report(\"iSCSI: Failed to unmarshall readcapacity16 data.\");", " ret = -EINVAL;", " error_report(\"iSCSI: Failed ...
static int FUNC_0(IscsiLun *VAR_0) { struct scsi_task *VAR_1 = NULL; struct scsi_readcapacity10 *VAR_2 = NULL; struct scsi_readcapacity16 *VAR_3 = NULL; int VAR_4 = 0; int VAR_5 = ISCSI_CMD_RETRIES; do { if (VAR_1 != NULL) { scsi_free_scsi_task(VAR_1); ...
[ "static int FUNC_0(IscsiLun *VAR_0)\n{", "struct scsi_task *VAR_1 = NULL;", "struct scsi_readcapacity10 *VAR_2 = NULL;", "struct scsi_readcapacity16 *VAR_3 = NULL;", "int VAR_4 = 0;", "int VAR_5 = ISCSI_CMD_RETRIES;", "do {", "if (VAR_1 != NULL) {", "scsi_free_scsi_task(VAR_1);", "VAR_1 = NULL;", ...
[ 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
10,427
int kvm_arch_process_async_events(CPUState *env) { if (kvm_irqchip_in_kernel()) { if (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) { if (env->interrupt_request & CPU_INTERRUPT_INIT) { do_cpu_init(env); if (env->interrupt_request & CPU_INTERRUPT_SIPI) { do_cpu_sipi(e...
true
qemu
ab443475c9235822e329e1bfde89be6c71e2c21e
int kvm_arch_process_async_events(CPUState *env) { if (kvm_irqchip_in_kernel()) { if (env->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) { if (env->interrupt_request & CPU_INTERRUPT_INIT) { do_cpu_init(env); if (env->interrupt_request & CPU_INTERRUPT_SIPI) { do_cpu_sipi(e...
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0) { if (kvm_irqchip_in_kernel()) { if (VAR_0->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) { if (VAR_0->interrupt_request & CPU_INTERRUPT_INIT) { do_cpu_init(VAR_0); if (VAR_0->interrupt_request & CPU_INTERRUPT_SIPI) { do_cpu_sipi(VAR_0); re...
[ "int FUNC_0(CPUState *VAR_0)\n{", "if (kvm_irqchip_in_kernel()) {", "if (VAR_0->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {", "if (VAR_0->interrupt_request & CPU_INTERRUPT_INIT) {", "do_cpu_init(VAR_0);", "if (VAR_0->interrupt_request & CPU_INTERRUPT_SIPI) {", "do_cpu_sipi(VAR_0);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ] ]
10,428
static void gen_slbmte(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } gen_helper_store_slb(cpu_env, cpu_gpr[rB(ctx->opcode)], ...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_slbmte(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } gen_helper_store_slb(cpu_env, cpu_gpr[rB(ctx->opcode)], ...
{ "code": [ " if (unlikely(ctx->pr)) {", " if (unlikely(ctx->pr)) {", "#if defined(CONFIG_USER_ONLY)", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#else", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#endif", "#if d...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); #else if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); return; } gen_helper_store_slb(cpu_env, cpu_gpr[rB(VAR_0->opcode)], ...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "return;", "}", "gen_helper_store_slb(cpu_env, cpu_gpr[rB(VAR_0->opcode)],\ncpu_gp...
[ 0, 1, 1, 1, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ] ]
10,430
static void shifter_out_im(TCGv var, int shift) { TCGv tmp = new_tmp(); if (shift == 0) { tcg_gen_andi_i32(tmp, var, 1); } else { tcg_gen_shri_i32(tmp, var, shift); if (shift != 31) tcg_gen_andi_i32(tmp, tmp, 1); } gen_set_CF(tmp); dead_tmp(tmp); }...
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static void shifter_out_im(TCGv var, int shift) { TCGv tmp = new_tmp(); if (shift == 0) { tcg_gen_andi_i32(tmp, var, 1); } else { tcg_gen_shri_i32(tmp, var, shift); if (shift != 31) tcg_gen_andi_i32(tmp, tmp, 1); } gen_set_CF(tmp); dead_tmp(tmp); }...
{ "code": [ " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " TCGv tmp = new_tmp();", " dead_tmp(tmp);", " TCGv tmp = new_tmp();", " dead_tmp(tmp);", " TCGv tmp = new_tmp();", " dead_tmp(tmp);", " TCGv tmp = new_tmp();", " dead_tmp(tmp);", ...
static void FUNC_0(TCGv VAR_0, int VAR_1) { TCGv tmp = new_tmp(); if (VAR_1 == 0) { tcg_gen_andi_i32(tmp, VAR_0, 1); } else { tcg_gen_shri_i32(tmp, VAR_0, VAR_1); if (VAR_1 != 31) tcg_gen_andi_i32(tmp, tmp, 1); } gen_set_CF(tmp); dead_tmp(tmp); }
[ "static void FUNC_0(TCGv VAR_0, int VAR_1)\n{", "TCGv tmp = new_tmp();", "if (VAR_1 == 0) {", "tcg_gen_andi_i32(tmp, VAR_0, 1);", "} else {", "tcg_gen_shri_i32(tmp, VAR_0, VAR_1);", "if (VAR_1 != 31)\ntcg_gen_andi_i32(tmp, tmp, 1);", "}", "gen_set_CF(tmp);", "dead_tmp(tmp);", "}" ]
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
10,431
static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table, const char *language, kbd_layout_t *k) { FILE *f; char * filename; char line[1024]; int len; filename = qemu_find_file(QEMU_FILE_TYPE...
true
qemu
fedf0d35aafc4f1f1e5f6dbc80cb23ae1ae49f0b
static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table, const char *language, kbd_layout_t *k) { FILE *f; char * filename; char line[1024]; int len; filename = qemu_find_file(QEMU_FILE_TYPE...
{ "code": [ " k = g_malloc0(sizeof(kbd_layout_t));" ], "line_no": [ 37 ] }
static kbd_layout_t *FUNC_0(const name2keysym_t *table, const char *language, kbd_layout_t *k) { FILE *f; char * VAR_0; char VAR_1[1024]; int VAR_2; VAR_0 = qemu_find_file(QEMU_FILE_TYPE_KEYMAP, language)...
[ "static kbd_layout_t *FUNC_0(const name2keysym_t *table,\nconst char *language,\nkbd_layout_t *k)\n{", "FILE *f;", "char * VAR_0;", "char VAR_1[1024];", "int VAR_2;", "VAR_0 = qemu_find_file(QEMU_FILE_TYPE_KEYMAP, language);", "f = VAR_0 ? fopen(VAR_0, \"r\") : NULL;", "g_free(VAR_0);", "if (!f) {",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
10,432
static void ff_h264_idct_add8_mmx(uint8_t **dest, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){ int i; for(i=16; i<16+8; i++){ if(nnzc[ scan8[i] ] || block[i*16]) ff_h264_idct_add_mmx (dest[(i&4)>>2] + block_offset[i], block + i*16, stride); } }
false
FFmpeg
1d16a1cf99488f16492b1bb48e023f4da8377e07
static void ff_h264_idct_add8_mmx(uint8_t **dest, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){ int i; for(i=16; i<16+8; i++){ if(nnzc[ scan8[i] ] || block[i*16]) ff_h264_idct_add_mmx (dest[(i&4)>>2] + block_offset[i], block + i*16, stride); } }
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t **VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){ int VAR_5; for(VAR_5=16; VAR_5<16+8; VAR_5++){ if(VAR_4[ scan8[VAR_5] ] || VAR_2[VAR_5*16]) ff_h264_idct_add_mmx (VAR_0[(VAR_5&4)>>2] + VAR_1[VAR_5], VAR_2 + VAR_5*16, VAR_3); ...
[ "static void FUNC_0(uint8_t **VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){", "int VAR_5;", "for(VAR_5=16; VAR_5<16+8; VAR_5++){", "if(VAR_4[ scan8[VAR_5] ] || VAR_2[VAR_5*16])\nff_h264_idct_add_mmx (VAR_0[(VAR_5&4)>>2] + VAR_1[VAR_5], VAR_2 + VAR_5*16, VAR_3);", "}", "...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ] ]
10,433
static void vmxnet3_deactivate_device(VMXNET3State *s) { VMW_CBPRN("Deactivating vmxnet3..."); s->device_active = false; }
true
qemu
aa4a3dce1c88ed51b616806b8214b7c8428b7470
static void vmxnet3_deactivate_device(VMXNET3State *s) { VMW_CBPRN("Deactivating vmxnet3..."); s->device_active = false; }
{ "code": [ " VMW_CBPRN(\"Deactivating vmxnet3...\");", " s->device_active = false;" ], "line_no": [ 5, 7 ] }
static void FUNC_0(VMXNET3State *VAR_0) { VMW_CBPRN("Deactivating vmxnet3..."); VAR_0->device_active = false; }
[ "static void FUNC_0(VMXNET3State *VAR_0)\n{", "VMW_CBPRN(\"Deactivating vmxnet3...\");", "VAR_0->device_active = false;", "}" ]
[ 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
10,434
e1000e_set_pbaclr(E1000ECore *core, int index, uint32_t val) { int i; core->mac[PBACLR] = val & E1000_PBACLR_VALID_MASK; if (msix_enabled(core->owner)) { return; } for (i = 0; i < E1000E_MSIX_VEC_NUM; i++) { if (core->mac[PBACLR] & BIT(i)) { msix_clr_pendin...
true
qemu
680e60b6ba5a26332d684a60a6d9f39c0a999941
e1000e_set_pbaclr(E1000ECore *core, int index, uint32_t val) { int i; core->mac[PBACLR] = val & E1000_PBACLR_VALID_MASK; if (msix_enabled(core->owner)) { return; } for (i = 0; i < E1000E_MSIX_VEC_NUM; i++) { if (core->mac[PBACLR] & BIT(i)) { msix_clr_pendin...
{ "code": [ " if (msix_enabled(core->owner)) {" ], "line_no": [ 13 ] }
FUNC_0(E1000ECore *VAR_0, int VAR_1, uint32_t VAR_2) { int VAR_3; VAR_0->mac[PBACLR] = VAR_2 & E1000_PBACLR_VALID_MASK; if (msix_enabled(VAR_0->owner)) { return; } for (VAR_3 = 0; VAR_3 < E1000E_MSIX_VEC_NUM; VAR_3++) { if (VAR_0->mac[PBACLR] & BIT(VAR_3)) { ...
[ "FUNC_0(E1000ECore *VAR_0, int VAR_1, uint32_t VAR_2)\n{", "int VAR_3;", "VAR_0->mac[PBACLR] = VAR_2 & E1000_PBACLR_VALID_MASK;", "if (msix_enabled(VAR_0->owner)) {", "return;", "}", "for (VAR_3 = 0; VAR_3 < E1000E_MSIX_VEC_NUM; VAR_3++) {", "if (VAR_0->mac[PBACLR] & BIT(VAR_3)) {", "msix_clr_pendin...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
10,435
void qemu_spice_vm_change_state_handler(void *opaque, int running, int reason) { SimpleSpiceDisplay *ssd = opaque; if (running) { ssd->worker->start(ssd->worker); } else { qemu_mutex_unlock_iothread(); ssd->worker->stop(ssd->worker); qemu_mutex_lock_iothread(); ...
true
qemu
196a778428989217b82de042725dc8eb29c8f8d8
void qemu_spice_vm_change_state_handler(void *opaque, int running, int reason) { SimpleSpiceDisplay *ssd = opaque; if (running) { ssd->worker->start(ssd->worker); } else { qemu_mutex_unlock_iothread(); ssd->worker->stop(ssd->worker); qemu_mutex_lock_iothread(); ...
{ "code": [ " qemu_mutex_unlock_iothread();", " qemu_mutex_lock_iothread();", " qemu_mutex_unlock_iothread();", " qemu_mutex_lock_iothread();" ], "line_no": [ 15, 19, 15, 19 ] }
void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { SimpleSpiceDisplay *ssd = VAR_0; if (VAR_1) { ssd->worker->start(ssd->worker); } else { qemu_mutex_unlock_iothread(); ssd->worker->stop(ssd->worker); qemu_mutex_lock_iothread(); } ssd->VAR_1 = VAR_1; }
[ "void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "SimpleSpiceDisplay *ssd = VAR_0;", "if (VAR_1) {", "ssd->worker->start(ssd->worker);", "} else {", "qemu_mutex_unlock_iothread();", "ssd->worker->stop(ssd->worker);", "qemu_mutex_lock_iothread();", "}", "ssd->VAR_1 = VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
10,436
static void do_audio_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, unsigned char *buf, int size) { uint8_t *buftmp; uint8_t audio_buf[2*MAX_AUDIO_PACKET_SIZE]; /* XXX: allocate it */ uint8_t audio_out[4*MA...
true
FFmpeg
d66c7abc937069d57fb156bcecec16e406b88c7b
static void do_audio_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, unsigned char *buf, int size) { uint8_t *buftmp; uint8_t audio_buf[2*MAX_AUDIO_PACKET_SIZE]; uint8_t audio_out[4*MAX_AUDIO_PACKET_SIZE]; ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVOutputStream *VAR_1, AVInputStream *VAR_2, unsigned char *VAR_3, int VAR_4) { uint8_t *buftmp; uint8_t audio_buf[2*MAX_AUDIO_PACKET_SIZE]; uint8_t audio_out[4*MAX_AUDIO_PACKET_SI...
[ "static void FUNC_0(AVFormatContext *VAR_0,\nAVOutputStream *VAR_1,\nAVInputStream *VAR_2,\nunsigned char *VAR_3, int VAR_4)\n{", "uint8_t *buftmp;", "uint8_t audio_buf[2*MAX_AUDIO_PACKET_SIZE];", "uint8_t audio_out[4*MAX_AUDIO_PACKET_SIZE];", "int VAR_5, VAR_6, VAR_7;", "AVCodecContext *enc;", "enc = &...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 55, 57 ...
10,437
static int ehci_state_waitlisthead(EHCIState *ehci, int async) { EHCIqh qh; int i = 0; int again = 0; uint32_t entry = ehci->asynclistaddr; /* set reclamation flag at start event (4.8.6) */ if (async) { ehci_set_usbsts(ehci, USBSTS_REC); } ehci_queues_rip_unused(eh...
true
qemu
4be23939ab0d7019c7e59a37485b416fbbf0f073
static int ehci_state_waitlisthead(EHCIState *ehci, int async) { EHCIqh qh; int i = 0; int again = 0; uint32_t entry = ehci->asynclistaddr; if (async) { ehci_set_usbsts(ehci, USBSTS_REC); } ehci_queues_rip_unused(ehci, async); for(i = 0; i < MAX_QH; i...
{ "code": [ " ehci_queues_rip_unused(ehci, async);", " break;" ], "line_no": [ 25, 67 ] }
static int FUNC_0(EHCIState *VAR_0, int VAR_1) { EHCIqh qh; int VAR_2 = 0; int VAR_3 = 0; uint32_t entry = VAR_0->asynclistaddr; if (VAR_1) { ehci_set_usbsts(VAR_0, USBSTS_REC); } ehci_queues_rip_unused(VAR_0, VAR_1); for(VAR_2 = 0; VAR_2 < MAX_QH; VA...
[ "static int FUNC_0(EHCIState *VAR_0, int VAR_1)\n{", "EHCIqh qh;", "int VAR_2 = 0;", "int VAR_3 = 0;", "uint32_t entry = VAR_0->asynclistaddr;", "if (VAR_1) {", "ehci_set_usbsts(VAR_0, USBSTS_REC);", "}", "ehci_queues_rip_unused(VAR_0, VAR_1);", "for(VAR_2 = 0; VAR_2 < MAX_QH; VAR_2++) {", "get...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [...
10,438
static void aux_bus_map_device(AUXBus *bus, AUXSlave *dev, hwaddr addr) { memory_region_add_subregion(bus->aux_io, addr, dev->mmio); }
true
qemu
e0dadc1e9ef1f35208e5d2af9c7740c18a0b769f
static void aux_bus_map_device(AUXBus *bus, AUXSlave *dev, hwaddr addr) { memory_region_add_subregion(bus->aux_io, addr, dev->mmio); }
{ "code": [], "line_no": [] }
static void FUNC_0(AUXBus *VAR_0, AUXSlave *VAR_1, hwaddr VAR_2) { memory_region_add_subregion(VAR_0->aux_io, VAR_2, VAR_1->mmio); }
[ "static void FUNC_0(AUXBus *VAR_0, AUXSlave *VAR_1, hwaddr VAR_2)\n{", "memory_region_add_subregion(VAR_0->aux_io, VAR_2, VAR_1->mmio);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
10,440
static int verify_md5(HEVCContext *s, AVFrame *frame) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format); int pixel_shift = desc->comp[0].depth_minus1 > 7; int i, j; if (!desc) return AVERROR(EINVAL); av_log(s->avctx, AV_LOG_DEBUG, "Verifying checksum for frame ...
true
FFmpeg
b769cf4b44c8112827c2fdfcab74bd95600fd6d3
static int verify_md5(HEVCContext *s, AVFrame *frame) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format); int pixel_shift = desc->comp[0].depth_minus1 > 7; int i, j; if (!desc) return AVERROR(EINVAL); av_log(s->avctx, AV_LOG_DEBUG, "Verifying checksum for frame ...
{ "code": [ " int pixel_shift = desc->comp[0].depth_minus1 > 7;" ], "line_no": [ 7 ] }
static int FUNC_0(HEVCContext *VAR_0, AVFrame *VAR_1) { const AVPixFmtDescriptor *VAR_2 = av_pix_fmt_desc_get(VAR_1->format); int VAR_3 = VAR_2->comp[0].depth_minus1 > 7; int VAR_4, VAR_5; if (!VAR_2) return AVERROR(EINVAL); av_log(VAR_0->avctx, AV_LOG_DEBUG, "Verifying checksum f...
[ "static int FUNC_0(HEVCContext *VAR_0, AVFrame *VAR_1)\n{", "const AVPixFmtDescriptor *VAR_2 = av_pix_fmt_desc_get(VAR_1->format);", "int VAR_3 = VAR_2->comp[0].depth_minus1 > 7;", "int VAR_4, VAR_5;", "if (!VAR_2)\nreturn AVERROR(EINVAL);", "av_log(VAR_0->avctx, AV_LOG_DEBUG, \"Verifying checksum for VAR...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19, 21 ], [ 29, 31 ], [ 33, 35, 37 ], [ 39, 41 ], [ 43 ], [ 45, 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [...
10,441
static int dxva2_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { const VC1Context *v = avctx->priv_data; AVDXVAContext *ctx = avctx->hwaccel_context; struct dxva2_picture_context *ctx_p...
false
FFmpeg
4dec101acc393fbfe9a8ce0237b9efbae3f20139
static int dxva2_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { const VC1Context *v = avctx->priv_data; AVDXVAContext *ctx = avctx->hwaccel_context; struct dxva2_picture_context *ctx_p...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, av_unused const VAR_1 *buffer, av_unused uint32_t size) { const VC1Context *VAR_2 = VAR_0->priv_data; AVDXVAContext *ctx = VAR_0->hwaccel_context; struct dxva2_picture_context *VAR_3 = VAR_2->s.c...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nav_unused const VAR_1 *buffer,\nav_unused uint32_t size)\n{", "const VC1Context *VAR_2 = VAR_0->priv_data;", "AVDXVAContext *ctx = VAR_0->hwaccel_context;", "struct dxva2_picture_context *VAR_3 = VAR_2->s.current_picture_ptr->hwaccel_picture_private;", "if (!DXVA_C...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
10,442
static void write_frame(AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx, AVBitStreamFilterContext *bsfc){ while(bsfc){ AVPacket new_pkt= *pkt; int a= av_bitstream_filter_filter(bsfc, avctx, NULL, &new_pkt.data, &new_pkt.size, ...
false
FFmpeg
0ac0703107c12bc78ea2853877a38a2a7384789a
static void write_frame(AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx, AVBitStreamFilterContext *bsfc){ while(bsfc){ AVPacket new_pkt= *pkt; int a= av_bitstream_filter_filter(bsfc, avctx, NULL, &new_pkt.data, &new_pkt.size, ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, AVCodecContext *VAR_2, AVBitStreamFilterContext *VAR_3){ while(VAR_3){ AVPacket new_pkt= *VAR_1; int VAR_4= av_bitstream_filter_filter(VAR_3, VAR_2, NULL, &new_pkt.data, &new_pkt.size, ...
[ "static void FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, AVCodecContext *VAR_2, AVBitStreamFilterContext *VAR_3){", "while(VAR_3){", "AVPacket new_pkt= *VAR_1;", "int VAR_4= av_bitstream_filter_filter(VAR_3, VAR_2, NULL,\n&new_pkt.data, &new_pkt.size,\nVAR_1->data, VAR_1->size,\nVAR_1->flags & PKT_FLAG_KE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
10,443
static inline void h264_loop_filter_luma_c(uint8_t *pix, int xstride, int ystride, int alpha, int beta, int *tc0) { int i, d; for( i = 0; i < 4; i++ ) { if( tc0[i] < 0 ) { pix += 4*ystride; continue; } for( d = 0; d < 4; d++ ) { const int p0 =...
false
FFmpeg
bda1c56c474c137957c261dcf9df4fd3232a8b43
static inline void h264_loop_filter_luma_c(uint8_t *pix, int xstride, int ystride, int alpha, int beta, int *tc0) { int i, d; for( i = 0; i < 4; i++ ) { if( tc0[i] < 0 ) { pix += 4*ystride; continue; } for( d = 0; d < 4; d++ ) { const int p0 =...
{ "code": [], "line_no": [] }
static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int *VAR_5) { int VAR_6, VAR_7; for( VAR_6 = 0; VAR_6 < 4; VAR_6++ ) { if( VAR_5[VAR_6] < 0 ) { VAR_0 += 4*VAR_2; continue; } for( VAR_7 = 0; VAR_7 < 4; VAR_7++ ) { ...
[ "static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int *VAR_5)\n{", "int VAR_6, VAR_7;", "for( VAR_6 = 0; VAR_6 < 4; VAR_6++ ) {", "if( VAR_5[VAR_6] < 0 ) {", "VAR_0 += 4*VAR_2;", "continue;", "}", "for( VAR_7 = 0; VAR_7 < 4; VAR_7++ ) {", "const int VAR_8 = 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35, 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
10,444
int64_t av_gettime_relative(void) { #if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC) struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return (int64_t)ts.tv_sec * 1000000 + ts.tv_nsec / 1000; #else return av_gettime() + 42 * 60 * 60 * INT64_C(1000000); #endif }
false
FFmpeg
0e8b68a2c4031e25082603ad88711be12210d41f
int64_t av_gettime_relative(void) { #if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC) struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return (int64_t)ts.tv_sec * 1000000 + ts.tv_nsec / 1000; #else return av_gettime() + 42 * 60 * 60 * INT64_C(1000000); #endif }
{ "code": [], "line_no": [] }
int64_t FUNC_0(void) { #if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC) struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return (int64_t)ts.tv_sec * 1000000 + ts.tv_nsec / 1000; #else return av_gettime() + 42 * 60 * 60 * INT64_C(1000000); #endif }
[ "int64_t FUNC_0(void)\n{", "#if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC)\nstruct timespec ts;", "clock_gettime(CLOCK_MONOTONIC, &ts);", "return (int64_t)ts.tv_sec * 1000000 + ts.tv_nsec / 1000;", "#else\nreturn av_gettime() + 42 * 60 * 60 * INT64_C(1000000);", "#endif\n}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 19 ] ]
10,445
static void update_odml_entry(AVFormatContext *s, int stream_index, int64_t ix) { AVIOContext *pb = s->pb; AVIContext *avi = s->priv_data; AVIStream *avist = s->streams[stream_index]->priv_data; int64_t pos; int au_byterate, au_ssize, au_scale; avio_flush(pb); pos = avio_tell(pb); ...
false
FFmpeg
bbcc09518e0d1efc189a43ff0120c1a31f51c802
static void update_odml_entry(AVFormatContext *s, int stream_index, int64_t ix) { AVIOContext *pb = s->pb; AVIContext *avi = s->priv_data; AVIStream *avist = s->streams[stream_index]->priv_data; int64_t pos; int au_byterate, au_ssize, au_scale; avio_flush(pb); pos = avio_tell(pb); ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2) { AVIOContext *pb = VAR_0->pb; AVIContext *avi = VAR_0->priv_data; AVIStream *avist = VAR_0->streams[VAR_1]->priv_data; int64_t pos; int VAR_3, VAR_4, VAR_5; avio_flush(pb); pos = avio_tell(pb); avio_...
[ "static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2)\n{", "AVIOContext *pb = VAR_0->pb;", "AVIContext *avi = VAR_0->priv_data;", "AVIStream *avist = VAR_0->streams[VAR_1]->priv_data;", "int64_t pos;", "int VAR_3, VAR_4, VAR_5;", "avio_flush(pb);", "pos = avio_tell(pb);", "avio_seek(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
10,446
av_cold void ff_msmpeg4_encode_init(MpegEncContext *s) { static int init_done=0; int i; ff_msmpeg4_common_init(s); if(s->msmpeg4_version>=4){ s->min_qcoeff= -255; s->max_qcoeff= 255; } if (!init_done) { /* init various encoding tables */ init_done ...
false
FFmpeg
1c6183233d56fb27a4a154e7e64ecab98bd877f1
av_cold void ff_msmpeg4_encode_init(MpegEncContext *s) { static int init_done=0; int i; ff_msmpeg4_common_init(s); if(s->msmpeg4_version>=4){ s->min_qcoeff= -255; s->max_qcoeff= 255; } if (!init_done) { init_done = 1; init_mv_table(&ff_mv...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(MpegEncContext *s) { static int VAR_0=0; int VAR_1; ff_msmpeg4_common_init(s); if(s->msmpeg4_version>=4){ s->min_qcoeff= -255; s->max_qcoeff= 255; } if (!VAR_0) { VAR_0 = 1; init_mv_table(&ff_mv_tables[0]); in...
[ "av_cold void FUNC_0(MpegEncContext *s)\n{", "static int VAR_0=0;", "int VAR_1;", "ff_msmpeg4_common_init(s);", "if(s->msmpeg4_version>=4){", "s->min_qcoeff= -255;", "s->max_qcoeff= 255;", "}", "if (!VAR_0) {", "VAR_0 = 1;", "init_mv_table(&ff_mv_tables[0]);", "init_mv_table(&ff_mv_tables[1])...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
10,447
int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec) { if (*spec <= '9' && *spec >= '0') /* opt:index */ return strtol(spec, NULL, 0) == st->index; else if (*spec == 'v' || *spec == 'a' || *spec == 's' || *spec == 'd' || *spec == 't') { /* opt:[vasdt] */ ...
false
FFmpeg
b0629366a26628f19245ea2c06a6e366cb70f92f
int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec) { if (*spec <= '9' && *spec >= '0') return strtol(spec, NULL, 0) == st->index; else if (*spec == 'v' || *spec == 'a' || *spec == 's' || *spec == 'd' || *spec == 't') { enum AVMediaType type; ...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const char *VAR_2) { if (*VAR_2 <= '9' && *VAR_2 >= '0') return strtol(VAR_2, NULL, 0) == VAR_1->VAR_5; else if (*VAR_2 == 'v' || *VAR_2 == 'a' || *VAR_2 == 'VAR_0' || *VAR_2 == 'd' || *VAR_2 == 't') { enum AVMediaType VAR_...
[ "int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const char *VAR_2)\n{", "if (*VAR_2 <= '9' && *VAR_2 >= '0')\nreturn strtol(VAR_2, NULL, 0) == VAR_1->VAR_5;", "else if (*VAR_2 == 'v' || *VAR_2 == 'a' || *VAR_2 == 'VAR_0' || *VAR_2 == 'd' ||\n*VAR_2 == 't') {", "enum AVMediaType VAR_3;", "switch (*VAR_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 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
10,448
static void filter_mb_edgecv( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int qp ) { const int index_a = qp + h->slice_alpha_c0_offset; const int alpha = (alpha_table+52)[index_a]; const int beta = (beta_table+52)[qp + h->slice_beta_offset]; if (alpha ==0 || beta == 0) return; i...
false
FFmpeg
082cf97106e2e94a969877d4f8c05c1e526acf54
static void filter_mb_edgecv( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int qp ) { const int index_a = qp + h->slice_alpha_c0_offset; const int alpha = (alpha_table+52)[index_a]; const int beta = (beta_table+52)[qp + h->slice_beta_offset]; if (alpha ==0 || beta == 0) return; i...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) { const int VAR_5 = VAR_4 + VAR_0->slice_alpha_c0_offset; const int VAR_6 = (alpha_table+52)[VAR_5]; const int VAR_7 = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset]; if (VAR_6 ==0 || VAR_7 == 0) ret...
[ "static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) {", "const int VAR_5 = VAR_4 + VAR_0->slice_alpha_c0_offset;", "const int VAR_6 = (alpha_table+52)[VAR_5];", "const int VAR_7 = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset];", "if (VAR_6 ==0 || VAR_7 == 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 ] ]
10,450
int x86_cpu_handle_mmu_fault(CPUState *cs, vaddr addr, int is_write1, int mmu_idx) { X86CPU *cpu = X86_CPU(cs); CPUX86State *env = &cpu->env; uint64_t ptep, pte; target_ulong pde_addr, pte_addr; int error_code = 0; int is_dirty, prot, page_size, is_write, is_...
true
qemu
b09481de91cce94342bac3327bb7633c39ff8bf6
int x86_cpu_handle_mmu_fault(CPUState *cs, vaddr addr, int is_write1, int mmu_idx) { X86CPU *cpu = X86_CPU(cs); CPUX86State *env = &cpu->env; uint64_t ptep, pte; target_ulong pde_addr, pte_addr; int error_code = 0; int is_dirty, prot, page_size, is_write, is_...
{ "code": [ " if (!(ptep & PG_NX_MASK))" ], "line_no": [ 469 ] }
int FUNC_0(CPUState *VAR_0, vaddr VAR_1, int VAR_2, int VAR_3) { X86CPU *cpu = X86_CPU(VAR_0); CPUX86State *env = &cpu->env; uint64_t ptep, pte; target_ulong pde_addr, pte_addr; int VAR_4 = 0; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; hwaddr paddr; uin...
[ "int FUNC_0(CPUState *VAR_0, vaddr VAR_1,\nint VAR_2, int VAR_3)\n{", "X86CPU *cpu = X86_CPU(VAR_0);", "CPUX86State *env = &cpu->env;", "uint64_t ptep, pte;", "target_ulong pde_addr, pte_addr;", "int VAR_4 = 0;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "hwaddr paddr;", "uint64_t rsvd_mask = PG_HI_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33, 35 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 47, 49 ], [...
10,451
uint32_t virtio_config_readb(VirtIODevice *vdev, uint32_t addr) { VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); uint8_t val; k->get_config(vdev, vdev->config); if (addr > (vdev->config_len - sizeof(val))) return (uint32_t)-1; val = ldub_p(vdev->config + addr); retur...
true
qemu
5f5a1318653c08e435cfa52f60b6a712815b659d
uint32_t virtio_config_readb(VirtIODevice *vdev, uint32_t addr) { VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); uint8_t val; k->get_config(vdev, vdev->config); if (addr > (vdev->config_len - sizeof(val))) return (uint32_t)-1; val = ldub_p(vdev->config + addr); retur...
{ "code": [ " k->get_config(vdev, vdev->config);", " if (addr > (vdev->config_len - sizeof(val)))", " k->get_config(vdev, vdev->config);", " if (addr > (vdev->config_len - sizeof(val)))", " k->get_config(vdev, vdev->config);", " if (addr > (vdev->config_len - sizeof(val)))", ...
uint32_t FUNC_0(VirtIODevice *vdev, uint32_t addr) { VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); uint8_t val; k->get_config(vdev, vdev->config); if (addr > (vdev->config_len - sizeof(val))) return (uint32_t)-1; val = ldub_p(vdev->config + addr); return val; }
[ "uint32_t FUNC_0(VirtIODevice *vdev, uint32_t addr)\n{", "VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev);", "uint8_t val;", "k->get_config(vdev, vdev->config);", "if (addr > (vdev->config_len - sizeof(val)))\nreturn (uint32_t)-1;", "val = ldub_p(vdev->config + addr);", "return val;", "}" ]
[ 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ] ]
10,452
av_cold int ff_rdft_init(RDFTContext *s, int nbits, enum RDFTransformType trans) { int n = 1 << nbits; int ret; s->nbits = nbits; s->inverse = trans == IDFT_C2R || trans == DFT_C2R; s->sign_convention = trans == IDFT_R2C || trans == DFT_C2R ? 1 : -1; if (nbits < 4 ||...
false
FFmpeg
0780ad9c688cc8272daa7780d3f112a9f55208ca
av_cold int ff_rdft_init(RDFTContext *s, int nbits, enum RDFTransformType trans) { int n = 1 << nbits; int ret; s->nbits = nbits; s->inverse = trans == IDFT_C2R || trans == DFT_C2R; s->sign_convention = trans == IDFT_R2C || trans == DFT_C2R ? 1 : -1; if (nbits < 4 ||...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(RDFTContext *s, int nbits, enum RDFTransformType trans) { int VAR_0 = 1 << nbits; int VAR_1; s->nbits = nbits; s->inverse = trans == IDFT_C2R || trans == DFT_C2R; s->sign_convention = trans == IDFT_R2C || trans == DFT_C2R ? 1 : -1; if (nbits < 4 ||...
[ "av_cold int FUNC_0(RDFTContext *s, int nbits, enum RDFTransformType trans)\n{", "int VAR_0 = 1 << nbits;", "int VAR_1;", "s->nbits = nbits;", "s->inverse = trans == IDFT_C2R || trans == DFT_C2R;", "s->sign_convention = trans == IDFT_R2C || trans == DFT_C2R ? 1 : -1;", "if (nbits < 4 |...
[ 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53...
10,453
static int uhci_handle_td(UHCIState *s, uint32_t addr, UHCI_TD *td, uint32_t *int_mask) { UHCIAsync *async; int len = 0, max_len; uint8_t pid; USBDevice *dev; USBEndpoint *ep; /* Is active ? */ if (!(td->ctrl & TD_CTRL_ACTIVE)) return TD_RESULT_NEXT_QH; async = uhci...
true
qemu
6c60134091cb2754d810b012773754967d8bbf92
static int uhci_handle_td(UHCIState *s, uint32_t addr, UHCI_TD *td, uint32_t *int_mask) { UHCIAsync *async; int len = 0, max_len; uint8_t pid; USBDevice *dev; USBEndpoint *ep; if (!(td->ctrl & TD_CTRL_ACTIVE)) return TD_RESULT_NEXT_QH; async = uhci_async_find_td(s,...
{ "code": [ " if (!async)", " return TD_RESULT_NEXT_QH;" ], "line_no": [ 53, 21 ] }
static int FUNC_0(UHCIState *VAR_0, uint32_t VAR_1, UHCI_TD *VAR_2, uint32_t *VAR_3) { UHCIAsync *async; int VAR_4 = 0, VAR_5; uint8_t pid; USBDevice *dev; USBEndpoint *ep; if (!(VAR_2->ctrl & TD_CTRL_ACTIVE)) return TD_RESULT_NEXT_QH; async = uhci_async_find_td(VA...
[ "static int FUNC_0(UHCIState *VAR_0, uint32_t VAR_1, UHCI_TD *VAR_2, uint32_t *VAR_3)\n{", "UHCIAsync *async;", "int VAR_4 = 0, VAR_5;", "uint8_t pid;", "USBDevice *dev;", "USBEndpoint *ep;", "if (!(VAR_2->ctrl & TD_CTRL_ACTIVE))\nreturn TD_RESULT_NEXT_QH;", "async = uhci_async_find_td(VAR_0, VAR_1, V...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53, 55 ], [ 65 ], [ 67 ], [...
10,454
static int update_wrap_reference(AVFormatContext *s, AVStream *st, int stream_index) { if (s->correct_ts_overflow && st->pts_wrap_bits != 64 && st->pts_wrap_reference == AV_NOPTS_VALUE && st->first_dts != AV_NOPTS_VALUE) { int i; // reference time stamp should be 60 s before first tim...
true
FFmpeg
1662bd350a470f1cbd5c2cc9a0e1bfaa8543033f
static int update_wrap_reference(AVFormatContext *s, AVStream *st, int stream_index) { if (s->correct_ts_overflow && st->pts_wrap_bits != 64 && st->pts_wrap_reference == AV_NOPTS_VALUE && st->first_dts != AV_NOPTS_VALUE) { int i; int64_t pts_wrap_reference = st->first_dts - ...
{ "code": [ " if (s->correct_ts_overflow && st->pts_wrap_bits != 64 &&" ], "line_no": [ 5 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int VAR_2) { if (VAR_0->correct_ts_overflow && VAR_1->pts_wrap_bits != 64 && VAR_1->pts_wrap_reference == AV_NOPTS_VALUE && VAR_1->first_dts != AV_NOPTS_VALUE) { int VAR_3; int64_t pts_wrap_reference = VAR_1->first_d...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int VAR_2)\n{", "if (VAR_0->correct_ts_overflow && VAR_1->pts_wrap_bits != 64 &&\nVAR_1->pts_wrap_reference == AV_NOPTS_VALUE && VAR_1->first_dts != AV_NOPTS_VALUE) {", "int VAR_3;", "int64_t pts_wrap_reference = VAR_1->first_dts - av_rescale(60, VAR...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 15 ], [ 19, 21, 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
10,455
static int pty_chr_write(CharDriverState *chr, const uint8_t *buf, int len) { PtyCharDriver *s = chr->opaque; if (!s->connected) { /* guest sends data, check for (re-)connect */ pty_chr_update_read_handler_locked(chr); return 0; } return io_channel_send(s->fd, buf, len)...
true
qemu
cf7330c759345de2efe9c0df7921189ac5ff11d3
static int pty_chr_write(CharDriverState *chr, const uint8_t *buf, int len) { PtyCharDriver *s = chr->opaque; if (!s->connected) { pty_chr_update_read_handler_locked(chr); return 0; } return io_channel_send(s->fd, buf, len); }
{ "code": [ " return 0;" ], "line_no": [ 15 ] }
static int FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2) { PtyCharDriver *s = VAR_0->opaque; if (!s->connected) { pty_chr_update_read_handler_locked(VAR_0); return 0; } return io_channel_send(s->fd, VAR_1, VAR_2); }
[ "static int FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "PtyCharDriver *s = VAR_0->opaque;", "if (!s->connected) {", "pty_chr_update_read_handler_locked(VAR_0);", "return 0;", "}", "return io_channel_send(s->fd, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
10,456
int vnc_client_io_error(VncState *vs, int ret, int last_errno) { if (ret == 0 || ret == -1) { if (ret == -1) { switch (last_errno) { case EINTR: case EAGAIN: #ifdef _WIN32 case WSAEWOULDBLOCK: #endif return 0; ...
true
qemu
198a0039c5fca224a77e9761e2350dd9cc102ad0
int vnc_client_io_error(VncState *vs, int ret, int last_errno) { if (ret == 0 || ret == -1) { if (ret == -1) { switch (last_errno) { case EINTR: case EAGAIN: #ifdef _WIN32 case WSAEWOULDBLOCK: #endif return 0; ...
{ "code": [ " VNC_DEBUG(\"Closing down client sock %d %d\\n\", ret, ret < 0 ? last_errno : 0);", " qemu_set_fd_handler2(vs->csock, NULL, NULL, NULL, NULL);", " closesocket(vs->csock);", " qemu_del_timer(vs->timer);", " qemu_free_timer(vs->timer);", " i...
int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2) { if (VAR_1 == 0 || VAR_1 == -1) { if (VAR_1 == -1) { switch (VAR_2) { case EINTR: case EAGAIN: #ifdef _WIN32 case WSAEWOULDBLOCK: #endif return 0; def...
[ "int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2)\n{", "if (VAR_1 == 0 || VAR_1 == -1) {", "if (VAR_1 == -1) {", "switch (VAR_2) {", "case EINTR:\ncase EAGAIN:\n#ifdef _WIN32\ncase WSAEWOULDBLOCK:\n#endif\nreturn 0;", "default:\nbreak;", "}", "}", "VNC_DEBUG(\"Closing down client sock %d %d\\n\", V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13, 15, 17, 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [...