id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
19,988
static int32_t virtio_net_flush_tx(VirtIONet *n, VirtQueue *vq) { VirtQueueElement elem; int32_t num_packets = 0; if (!(n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) { return num_packets; } if (n->async_tx.elem.out_num) { virtio_queue_set_notification(n->tx_vq, 0); ...
true
qemu
783e7706937fe15523b609b545587a028a2bdd03
static int32_t virtio_net_flush_tx(VirtIONet *n, VirtQueue *vq) { VirtQueueElement elem; int32_t num_packets = 0; if (!(n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) { return num_packets; } if (n->async_tx.elem.out_num) { virtio_queue_set_notification(n->tx_vq, 0); ...
{ "code": [], "line_no": [] }
static int32_t FUNC_0(VirtIONet *n, VirtQueue *vq) { VirtQueueElement elem; int32_t num_packets = 0; if (!(n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) { return num_packets; } if (n->async_tx.elem.VAR_0) { virtio_queue_set_notification(n->tx_vq, 0); return num_pa...
[ "static int32_t FUNC_0(VirtIONet *n, VirtQueue *vq)\n{", "VirtQueueElement elem;", "int32_t num_packets = 0;", "if (!(n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK)) {", "return num_packets;", "}", "if (n->async_tx.elem.VAR_0) {", "virtio_queue_set_notification(n->tx_vq, 0);", "return num_packets;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43, 45, 47 ], [ 51 ], [ 53 ], [ 55...
19,989
static int vmdk_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { BDRVVmdkState *s = bs->opaque; int ret; uint64_t n, index_in_cluster; VmdkExtent *extent = NULL; uint64_t cluster_offset; while (nb_sectors > 0) { extent = find_e...
true
qemu
b1649fae49a899a222c3ac53c5009dd6f23349e1
static int vmdk_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { BDRVVmdkState *s = bs->opaque; int ret; uint64_t n, index_in_cluster; VmdkExtent *extent = NULL; uint64_t cluster_offset; while (nb_sectors > 0) { extent = find_e...
{ "code": [ " index_in_cluster = sector_num % extent->cluster_sectors;", " index_in_cluster = sector_num % extent->cluster_sectors;" ], "line_no": [ 35, 35 ] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, uint8_t *VAR_2, int VAR_3) { BDRVVmdkState *s = VAR_0->opaque; int VAR_4; uint64_t n, index_in_cluster; VmdkExtent *extent = NULL; uint64_t cluster_offset; while (VAR_3 > 0) { extent = find_extent(s,...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nuint8_t *VAR_2, int VAR_3)\n{", "BDRVVmdkState *s = VAR_0->opaque;", "int VAR_4;", "uint64_t n, index_in_cluster;", "VmdkExtent *extent = NULL;", "uint64_t cluster_offset;", "while (VAR_3 > 0) {", "extent = find_extent(s, VAR_1, extent);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
19,990
static void gen_mfsr(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_const_tl(SR(ctx->opcode)); gen_helper_lo...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_mfsr(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_const_tl(SR(ctx->opcode)); gen_helper_lo...
{ "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 TCGv t0; if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_const_tl(SR(VAR_0->opcode)); gen_h...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "#else\nTCGv t0;", "if (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "return;", "}", "t0 = tcg_const_tl(SR(VAR_0->opcode));", "gen_help...
[ 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ] ]
19,992
void fd_start_incoming_migration(const char *infd, Error **errp) { int fd; QEMUFile *f; DPRINTF("Attempting to start an incoming migration via fd\n"); fd = strtol(infd, NULL, 0); f = qemu_fdopen(fd, "rb"); if(f == NULL) { error_setg_errno(errp, errno, "failed to open the sour...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
void fd_start_incoming_migration(const char *infd, Error **errp) { int fd; QEMUFile *f; DPRINTF("Attempting to start an incoming migration via fd\n"); fd = strtol(infd, NULL, 0); f = qemu_fdopen(fd, "rb"); if(f == NULL) { error_setg_errno(errp, errno, "failed to open the sour...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, Error **VAR_1) { int VAR_2; QEMUFile *f; DPRINTF("Attempting to start an incoming migration via VAR_2\n"); VAR_2 = strtol(VAR_0, NULL, 0); f = qemu_fdopen(VAR_2, "rb"); if(f == NULL) { error_setg_errno(VAR_1, errno, "failed to open the source de...
[ "void FUNC_0(const char *VAR_0, Error **VAR_1)\n{", "int VAR_2;", "QEMUFile *f;", "DPRINTF(\"Attempting to start an incoming migration via VAR_2\\n\");", "VAR_2 = strtol(VAR_0, NULL, 0);", "f = qemu_fdopen(VAR_2, \"rb\");", "if(f == NULL) {", "error_setg_errno(VAR_1, errno, \"failed to open the source...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ] ]
19,994
int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw, int mmu_idx, int is_softmmu) { mmu_ctx_t ctx; int access_type; int ret = 0; if (rw == 2) { /* code access */ rw = 0; access_type = ACCESS_CODE; } else { ...
true
qemu
faadf50e2962dd54175647a80bd6fc4319c91973
int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw, int mmu_idx, int is_softmmu) { mmu_ctx_t ctx; int access_type; int ret = 0; if (rw == 2) { rw = 0; access_type = ACCESS_CODE; } else { ...
{ "code": [ " ret = get_physical_address(env, &ctx, address, rw, access_type, 1);", "#if 0", "#endif", "#endif", "#endif", "#endif", "#endif", "#endif" ], "line_no": [ 37, 455, 55, 55, 55, 55, 55, 55 ] }
int FUNC_0 (CPUState *VAR_0, target_ulong VAR_1, int VAR_2, int VAR_3, int VAR_4) { mmu_ctx_t ctx; int VAR_5; int VAR_6 = 0; if (VAR_2 == 2) { VAR_2 = 0; VAR_5 = ACCESS_CODE; } else { VAR_5 = ACCESS_INT...
[ "int FUNC_0 (CPUState *VAR_0, target_ulong VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{", "mmu_ctx_t ctx;", "int VAR_5;", "int VAR_6 = 0;", "if (VAR_2 == 2) {", "VAR_2 = 0;", "VAR_5 = ACCESS_CODE;", "} else {", "VAR_5 = ACCESS_INT;", "}", "VAR_6 = get_physical_address(VAR_0, &ctx, VAR_1, VAR_2, V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43, 45 ], [ 47 ], [ 49, 51, 53 ], [ 55, 57 ], [ 59 ...
19,995
void do_POWER_rac (void) { #if 0 mmu_ctx_t ctx; /* We don't have to generate many instances of this instruction, * as rac is supervisor only. */ if (get_physical_address(env, &ctx, T0, 0, ACCESS_INT, 1) == 0) T0 = ctx.raddr; #endif }
true
qemu
faadf50e2962dd54175647a80bd6fc4319c91973
void do_POWER_rac (void) { #if 0 mmu_ctx_t ctx; if (get_physical_address(env, &ctx, T0, 0, ACCESS_INT, 1) == 0) T0 = ctx.raddr; #endif }
{ "code": [ "#if 0", " if (get_physical_address(env, &ctx, T0, 0, ACCESS_INT, 1) == 0)", "#endif", "#endif", "#endif", "#endif", "#endif", "#endif" ], "line_no": [ 5, 17, 21, 21, 21, 21, 21, 21 ] }
void FUNC_0 (void) { #if 0 mmu_ctx_t ctx; if (get_physical_address(env, &ctx, T0, 0, ACCESS_INT, 1) == 0) T0 = ctx.raddr; #endif }
[ "void FUNC_0 (void)\n{", "#if 0\nmmu_ctx_t ctx;", "if (get_physical_address(env, &ctx, T0, 0, ACCESS_INT, 1) == 0)\nT0 = ctx.raddr;", "#endif\n}" ]
[ 0, 1, 1, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 17, 19 ], [ 21, 23 ] ]
19,997
hwaddr s390_cpu_get_phys_page_debug(CPUState *cs, vaddr vaddr) { S390CPU *cpu = S390_CPU(cs); CPUS390XState *env = &cpu->env; target_ulong raddr; int prot; uint64_t asc = env->psw.mask & PSW_MASK_ASC; /* 31-Bit mode */ if (!(env->psw.mask & PSW_MASK_64)) { vaddr &= 0x7ffff...
true
qemu
234779a2b9141d9386289ba5ed86c9d617567646
hwaddr s390_cpu_get_phys_page_debug(CPUState *cs, vaddr vaddr) { S390CPU *cpu = S390_CPU(cs); CPUS390XState *env = &cpu->env; target_ulong raddr; int prot; uint64_t asc = env->psw.mask & PSW_MASK_ASC; if (!(env->psw.mask & PSW_MASK_64)) { vaddr &= 0x7fffffff; } ...
{ "code": [ " mmu_translate(env, vaddr, MMU_INST_FETCH, asc, &raddr, &prot, false);" ], "line_no": [ 27 ] }
hwaddr FUNC_0(CPUState *cs, vaddr vaddr) { S390CPU *cpu = S390_CPU(cs); CPUS390XState *env = &cpu->env; target_ulong raddr; int VAR_0; uint64_t asc = env->psw.mask & PSW_MASK_ASC; if (!(env->psw.mask & PSW_MASK_64)) { vaddr &= 0x7fffffff; } mmu_translate(env, ...
[ "hwaddr FUNC_0(CPUState *cs, vaddr vaddr)\n{", "S390CPU *cpu = S390_CPU(cs);", "CPUS390XState *env = &cpu->env;", "target_ulong raddr;", "int VAR_0;", "uint64_t asc = env->psw.mask & PSW_MASK_ASC;", "if (!(env->psw.mask & PSW_MASK_64)) {", "vaddr &= 0x7fffffff;", "}", "mmu_translate(env, vaddr, MM...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ] ]
20,001
static void msix_handle_mask_update(PCIDevice *dev, int vector) { if (!msix_is_masked(dev, vector) && msix_is_pending(dev, vector)) { msix_clr_pending(dev, vector); msix_notify(dev, vector); } }
true
qemu
ae392c416c69a020226c768d9c3af08b29dd6d96
static void msix_handle_mask_update(PCIDevice *dev, int vector) { if (!msix_is_masked(dev, vector) && msix_is_pending(dev, vector)) { msix_clr_pending(dev, vector); msix_notify(dev, vector); } }
{ "code": [ "static void msix_handle_mask_update(PCIDevice *dev, int vector)", " if (!msix_is_masked(dev, vector) && msix_is_pending(dev, vector)) {" ], "line_no": [ 1, 5 ] }
static void FUNC_0(PCIDevice *VAR_0, int VAR_1) { if (!msix_is_masked(VAR_0, VAR_1) && msix_is_pending(VAR_0, VAR_1)) { msix_clr_pending(VAR_0, VAR_1); msix_notify(VAR_0, VAR_1); } }
[ "static void FUNC_0(PCIDevice *VAR_0, int VAR_1)\n{", "if (!msix_is_masked(VAR_0, VAR_1) && msix_is_pending(VAR_0, VAR_1)) {", "msix_clr_pending(VAR_0, VAR_1);", "msix_notify(VAR_0, VAR_1);", "}", "}" ]
[ 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
20,002
static int dct_quantize_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow) { int i, j, level, last_non_zero, q; const int *qmat; int bias; int max=0; unsigned int threshold1, threshold2; av_fdct (block); /* we...
false
FFmpeg
7f2fe444a39bca733d390b6608801c5f002bfd31
static int dct_quantize_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow) { int i, j, level, last_non_zero, q; const int *qmat; int bias; int max=0; unsigned int threshold1, threshold2; av_fdct (block); ...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext *VAR_0, DCTELEM *VAR_1, int VAR_2, int VAR_3, int *VAR_4) { int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; const int *VAR_10; int VAR_11; int VAR_12=0; unsigned int VAR_13, VAR_14; av_fdct (VAR_1); ...
[ "static int FUNC_0(MpegEncContext *VAR_0,\nDCTELEM *VAR_1, int VAR_2,\nint VAR_3, int *VAR_4)\n{", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "const int *VAR_10;", "int VAR_11;", "int VAR_12=0;", "unsigned int VAR_13, VAR_14;", "av_fdct (VAR_1);", "block_permute(VAR_1);", "if (VAR_0->mb_intra) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 57 ], [ 59 ], [ 61 ...
20,003
static void radix_sort(RCCMPEntry *data, int size) { int buckets[RADIX_PASSES][NBUCKETS]; RCCMPEntry *tmp = av_malloc_array(size, sizeof(*tmp)); radix_count(data, size, buckets); radix_sort_pass(tmp, data, size, buckets[0], 0); radix_sort_pass(data, tmp, size, buckets[1], 1); if (buckets[...
false
FFmpeg
6c5b98d40b8eeec14174fb9602acbf4b0c924981
static void radix_sort(RCCMPEntry *data, int size) { int buckets[RADIX_PASSES][NBUCKETS]; RCCMPEntry *tmp = av_malloc_array(size, sizeof(*tmp)); radix_count(data, size, buckets); radix_sort_pass(tmp, data, size, buckets[0], 0); radix_sort_pass(data, tmp, size, buckets[1], 1); if (buckets[...
{ "code": [], "line_no": [] }
static void FUNC_0(RCCMPEntry *VAR_0, int VAR_1) { int VAR_2[RADIX_PASSES][NBUCKETS]; RCCMPEntry *tmp = av_malloc_array(VAR_1, sizeof(*tmp)); radix_count(VAR_0, VAR_1, VAR_2); radix_sort_pass(tmp, VAR_0, VAR_1, VAR_2[0], 0); radix_sort_pass(VAR_0, tmp, VAR_1, VAR_2[1], 1); if (VAR_2[2][NB...
[ "static void FUNC_0(RCCMPEntry *VAR_0, int VAR_1)\n{", "int VAR_2[RADIX_PASSES][NBUCKETS];", "RCCMPEntry *tmp = av_malloc_array(VAR_1, sizeof(*tmp));", "radix_count(VAR_0, VAR_1, VAR_2);", "radix_sort_pass(tmp, VAR_0, VAR_1, VAR_2[0], 0);", "radix_sort_pass(VAR_0, tmp, VAR_1, VAR_2[1], 1);", "if (VAR_2[...
[ 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 ] ]
20,004
static inline void mix_3f_1r_to_stereo(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) { output[1][i] += (output[2][i] + output[4][i]); output[2][i] += (output[3][i] + output[4][i]); } memset(output[3], 0, size...
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline void mix_3f_1r_to_stereo(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) { output[1][i] += (output[2][i] + output[4][i]); output[2][i] += (output[3][i] + output[4][i]); } memset(output[3], 0, size...
{ "code": [], "line_no": [] }
static inline void FUNC_0(AC3DecodeContext *VAR_0) { int VAR_1; float (*VAR_2)[256] = VAR_0->audio_block.block_output; for (VAR_1 = 0; VAR_1 < 256; VAR_1++) { VAR_2[1][VAR_1] += (VAR_2[2][VAR_1] + VAR_2[4][VAR_1]); VAR_2[2][VAR_1] += (VAR_2[3][VAR_1] + VAR_2[4][VAR_1]); } m...
[ "static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{", "int VAR_1;", "float (*VAR_2)[256] = VAR_0->audio_block.block_output;", "for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {", "VAR_2[1][VAR_1] += (VAR_2[2][VAR_1] + VAR_2[4][VAR_1]);", "VAR_2[2][VAR_1] += (VAR_2[3][VAR_1] + VAR_2[4][VAR_1]);", "}", "memset...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
20,006
static int check(AVIOContext *pb, int64_t pos, uint32_t *ret_header) { int64_t ret = avio_seek(pb, pos, SEEK_SET); unsigned header; MPADecodeHeader sd; if (ret < 0) return ret; header = avio_rb32(pb); if (ff_mpa_check_header(header) < 0) return -1; if (avpriv_mpeg...
false
FFmpeg
1c9215e580b6436d1aff3c0118ef01269712ebd9
static int check(AVIOContext *pb, int64_t pos, uint32_t *ret_header) { int64_t ret = avio_seek(pb, pos, SEEK_SET); unsigned header; MPADecodeHeader sd; if (ret < 0) return ret; header = avio_rb32(pb); if (ff_mpa_check_header(header) < 0) return -1; if (avpriv_mpeg...
{ "code": [], "line_no": [] }
static int FUNC_0(AVIOContext *VAR_0, int64_t VAR_1, uint32_t *VAR_2) { int64_t ret = avio_seek(VAR_0, VAR_1, SEEK_SET); unsigned VAR_3; MPADecodeHeader sd; if (ret < 0) return ret; VAR_3 = avio_rb32(VAR_0); if (ff_mpa_check_header(VAR_3) < 0) return -1; if (avpri...
[ "static int FUNC_0(AVIOContext *VAR_0, int64_t VAR_1, uint32_t *VAR_2)\n{", "int64_t ret = avio_seek(VAR_0, VAR_1, SEEK_SET);", "unsigned VAR_3;", "MPADecodeHeader sd;", "if (ret < 0)\nreturn ret;", "VAR_3 = avio_rb32(VAR_0);", "if (ff_mpa_check_header(VAR_3) < 0)\nreturn -1;", "if (avpriv_mpegaudio_d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 29, 31 ], [ 33 ], [ 35 ] ]
20,007
void ff_put_h264_qpel4_mc30_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_qrt_4w_msa(src - 2, stride, dst, stride, 4, 1); }
false
FFmpeg
b5da07d4340a8e8e40dcd1900977a76ff31fbb84
void ff_put_h264_qpel4_mc30_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hz_qrt_4w_msa(src - 2, stride, dst, stride, 4, 1); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_hz_qrt_4w_msa(VAR_1 - 2, VAR_2, VAR_0, VAR_2, 4, 1); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_hz_qrt_4w_msa(VAR_1 - 2, VAR_2, VAR_0, VAR_2, 4, 1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
20,008
void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, const int bit_depth, const int chroma_format_idc) { #if HAVE_YASM int mm_flags = av_get_cpu_flags(); if (bit_depth == 8) { if (mm_flags & AV_CPU_FLAG_MMX) { h->pred16x16[VERT_PRED8x8 ] = ff_pred16x16_vertical_mmx; ...
false
FFmpeg
e0c6cce44729d94e2a5507a4b6d031f23e8bd7b6
void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, const int bit_depth, const int chroma_format_idc) { #if HAVE_YASM int mm_flags = av_get_cpu_flags(); if (bit_depth == 8) { if (mm_flags & AV_CPU_FLAG_MMX) { h->pred16x16[VERT_PRED8x8 ] = ff_pred16x16_vertical_mmx; ...
{ "code": [], "line_no": [] }
void FUNC_0(H264PredContext *VAR_0, int VAR_1, const int VAR_2, const int VAR_3) { #if HAVE_YASM int mm_flags = av_get_cpu_flags(); if (VAR_2 == 8) { if (mm_flags & AV_CPU_FLAG_MMX) { VAR_0->pred16x16[VERT_PRED8x8 ] = ff_pred16x16_vertical_mmx; VAR_0->pred16x16[H...
[ "void FUNC_0(H264PredContext *VAR_0, int VAR_1, const int VAR_2, const int VAR_3)\n{", "#if HAVE_YASM\nint mm_flags = av_get_cpu_flags();", "if (VAR_2 == 8) {", "if (mm_flags & AV_CPU_FLAG_MMX) {", "VAR_0->pred16x16[VERT_PRED8x8 ] = ff_pred16x16_vertical_mmx;", "VAR_0->pred16x16[HOR_PRED8x8 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], ...
20,010
static void qobject_input_optional(Visitor *v, const char *name, bool *present) { QObjectInputVisitor *qiv = to_qiv(v); QObject *qobj = qobject_input_get_object(qiv, name, false, NULL); if (!qobj) { *present = false; return; } *present = true; }
true
qemu
a9fc37f6bc3f2ab90585cb16493da9f6dcfbfbcf
static void qobject_input_optional(Visitor *v, const char *name, bool *present) { QObjectInputVisitor *qiv = to_qiv(v); QObject *qobj = qobject_input_get_object(qiv, name, false, NULL); if (!qobj) { *present = false; return; } *present = true; }
{ "code": [ " QObject *qobj = qobject_input_get_object(qiv, name, false, NULL);" ], "line_no": [ 7 ] }
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, bool *VAR_2) { QObjectInputVisitor *qiv = to_qiv(VAR_0); QObject *qobj = qobject_input_get_object(qiv, VAR_1, false, NULL); if (!qobj) { *VAR_2 = false; return; } *VAR_2 = true; }
[ "static void FUNC_0(Visitor *VAR_0, const char *VAR_1, bool *VAR_2)\n{", "QObjectInputVisitor *qiv = to_qiv(VAR_0);", "QObject *qobj = qobject_input_get_object(qiv, VAR_1, false, NULL);", "if (!qobj) {", "*VAR_2 = false;", "return;", "}", "*VAR_2 = true;", "}" ]
[ 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
20,011
static int coroutine_fn copy_sectors(BlockDriverState *bs, uint64_t start_sect, uint64_t cluster_offset, int n_start, int n_end) { BDRVQcowState *s = bs->opaque; QEMUIOVector qiov; struct io...
true
qemu
bd60436936ecebf2c683eef9ea561f2b949700f3
static int coroutine_fn copy_sectors(BlockDriverState *bs, uint64_t start_sect, uint64_t cluster_offset, int n_start, int n_end) { BDRVQcowState *s = bs->opaque; QEMUIOVector qiov; struct io...
{ "code": [ " return -ENOMEDIUM;" ], "line_no": [ 47 ] }
static int VAR_0 copy_sectors(BlockDriverState *bs, uint64_t start_sect, uint64_t cluster_offset, int n_start, int n_end) { BDRVQcowState *s = bs->opaque; QEMUIOVector qiov; struct iovec iov...
[ "static int VAR_0 copy_sectors(BlockDriverState *bs,\nuint64_t start_sect,\nuint64_t cluster_offset,\nint n_start, int n_end)\n{", "BDRVQcowState *s = bs->opaque;", "QEMUIOVector qiov;", "struct iovec iov;", "int n, ret;", "n = n_end - n_start;", "if (n <= 0) {", "return 0;", "}", "iov.iov_len = n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 61 ], [ 63 ], [...
20,012
static uint32_t ahci_port_read(AHCIState *s, int port, int offset) { uint32_t val; AHCIPortRegs *pr; pr = &s->dev[port].port_regs; switch (offset) { case PORT_LST_ADDR: val = pr->lst_addr; break; case PORT_LST_ADDR_HI: val = pr->lst_addr_hi; break; ...
true
qemu
fac7aa7fc2ebc26803b0a7b44b010f47ce3e1dd8
static uint32_t ahci_port_read(AHCIState *s, int port, int offset) { uint32_t val; AHCIPortRegs *pr; pr = &s->dev[port].port_regs; switch (offset) { case PORT_LST_ADDR: val = pr->lst_addr; break; case PORT_LST_ADDR_HI: val = pr->lst_addr_hi; break; ...
{ "code": [ " val = ((uint16_t)s->dev[port].port.ifs[0].error << 8) |", " s->dev[port].port.ifs[0].status;" ], "line_no": [ 59, 61 ] }
static uint32_t FUNC_0(AHCIState *s, int port, int offset) { uint32_t val; AHCIPortRegs *pr; pr = &s->dev[port].port_regs; switch (offset) { case PORT_LST_ADDR: val = pr->lst_addr; break; case PORT_LST_ADDR_HI: val = pr->lst_addr_hi; break; case...
[ "static uint32_t FUNC_0(AHCIState *s, int port, int offset)\n{", "uint32_t val;", "AHCIPortRegs *pr;", "pr = &s->dev[port].port_regs;", "switch (offset) {", "case PORT_LST_ADDR:\nval = pr->lst_addr;", "break;", "case PORT_LST_ADDR_HI:\nval = pr->lst_addr_hi;", "break;", "case PORT_FIS_ADDR:\nval ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ...
20,013
av_cold void ff_wmv2_common_init(Wmv2Context *w) { MpegEncContext *const s = &w->s; ff_blockdsp_init(&s->bdsp, s->avctx); ff_wmv2dsp_init(&w->wdsp); s->idsp.perm_type = w->wdsp.idct_perm; ff_init_scantable_permutation(s->idsp.idct_permutation, w->wdsp.idct_...
false
FFmpeg
dcc39ee10e82833ce24aa57926c00ffeb1948198
av_cold void ff_wmv2_common_init(Wmv2Context *w) { MpegEncContext *const s = &w->s; ff_blockdsp_init(&s->bdsp, s->avctx); ff_wmv2dsp_init(&w->wdsp); s->idsp.perm_type = w->wdsp.idct_perm; ff_init_scantable_permutation(s->idsp.idct_permutation, w->wdsp.idct_...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(Wmv2Context *w) { MpegEncContext *const s = &w->s; ff_blockdsp_init(&s->bdsp, s->avctx); ff_wmv2dsp_init(&w->wdsp); s->idsp.perm_type = w->wdsp.idct_perm; ff_init_scantable_permutation(s->idsp.idct_permutation, w->wdsp.idct_perm); f...
[ "av_cold void FUNC_0(Wmv2Context *w)\n{", "MpegEncContext *const s = &w->s;", "ff_blockdsp_init(&s->bdsp, s->avctx);", "ff_wmv2dsp_init(&w->wdsp);", "s->idsp.perm_type = w->wdsp.idct_perm;", "ff_init_scantable_permutation(s->idsp.idct_permutation,\nw->wdsp.idct_perm);", "ff_init_scantable(s->idsp.idct_p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
20,014
static int decode_subpacket(COOKContext *q, uint8_t *inbuffer, int sub_packet_size, int16_t *outbuffer) { int i,j; int value; float* tmp_ptr; /* packet dump */ // for (i=0 ; i<sub_packet_size ; i++) { // av_log(NULL, AV_LOG_ERROR, "%02x", inbuffer[i]); // ...
true
FFmpeg
560b10a6c3627cccf6735170d370cf9e3d38e805
static int decode_subpacket(COOKContext *q, uint8_t *inbuffer, int sub_packet_size, int16_t *outbuffer) { int i,j; int value; float* tmp_ptr; decode_bytes(inbuffer, q->decoded_bytes_buffer, sub_packet_size); init_get_bits(&q->gb, q->decoded_bytes_b...
{ "code": [ " mono_decode(q, q->decode_buf_ptr[0]);", " tmp_ptr = q->decode_buf_ptr[0];", " q->decode_buf_ptr[0] = q->decode_buf_ptr[1];", " q->decode_buf_ptr[1] = q->decode_buf_ptr[2];", " q->decode_buf_ptr[2] = q->decode_buf_ptr[3];", " ...
static int FUNC_0(COOKContext *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t *VAR_3) { int VAR_4,VAR_5; int VAR_6; float* VAR_7; decode_bytes(VAR_1, VAR_0->decoded_bytes_buffer, VAR_2); init_get_bits(&VAR_0->gb, VAR_0->decoded_bytes_buffer, VAR_2*8); ...
[ "static int FUNC_0(COOKContext *VAR_0, uint8_t *VAR_1,\nint VAR_2, int16_t *VAR_3) {", "int VAR_4,VAR_5;", "int VAR_6;", "float* VAR_7;", "decode_bytes(VAR_1, VAR_0->decoded_bytes_buffer, VAR_2);", "init_get_bits(&VAR_0->gb, VAR_0->decoded_bytes_buffer, VAR_2*8);", "decode_gain_info(&VAR_0->gb, &VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 61 ], [ 63 ], [ 65 ], [ 69 ...
20,015
void ff_put_h264_qpel16_mc00_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { copy_width16_msa(src, stride, dst, stride, 16); }
false
FFmpeg
0105ed551cb9610c62b6920a301125781e1161a0
void ff_put_h264_qpel16_mc00_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { copy_width16_msa(src, stride, dst, stride, 16); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { copy_width16_msa(VAR_1, VAR_2, VAR_0, VAR_2, 16); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "copy_width16_msa(VAR_1, VAR_2, VAR_0, VAR_2, 16);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
20,016
static int process_output_surface(AVCodecContext *avctx, AVPacket *pkt, NvencSurface *tmpoutsurf) { NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; uint32_t slice_mode_data; uint32_t *sl...
false
FFmpeg
48e52e4edd12adbc36eee0eebe1b97ffe0255be3
static int process_output_surface(AVCodecContext *avctx, AVPacket *pkt, NvencSurface *tmpoutsurf) { NvencContext *ctx = avctx->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; uint32_t slice_mode_data; uint32_t *sl...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, NvencSurface *VAR_2) { NvencContext *ctx = VAR_0->priv_data; NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs; NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs; uint32_t slice_mode_data; uint32_t *slice_offsets = NULL;...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, NvencSurface *VAR_2)\n{", "NvencContext *ctx = VAR_0->priv_data;", "NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;", "NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;", "uint32_t slice_mode_data;", "uint32_t *slice_offsets = NU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
20,018
static int img_read_header(AVFormatContext *s1) { VideoDemuxData *s = s1->priv_data; int first_index, last_index; AVStream *st; enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE; s1->ctx_flags |= AVFMTCTX_NOHEADER; st = avformat_new_stream(s1, NULL); if (!st) { return AVERROR...
false
FFmpeg
a753776ff5d85994952f0abcb77fa49faf76b475
static int img_read_header(AVFormatContext *s1) { VideoDemuxData *s = s1->priv_data; int first_index, last_index; AVStream *st; enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE; s1->ctx_flags |= AVFMTCTX_NOHEADER; st = avformat_new_stream(s1, NULL); if (!st) { return AVERROR...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { VideoDemuxData *s = VAR_0->priv_data; int VAR_1, VAR_2; AVStream *st; enum AVPixelFormat VAR_3 = AV_PIX_FMT_NONE; VAR_0->ctx_flags |= AVFMTCTX_NOHEADER; st = avformat_new_stream(VAR_0, NULL); if (!st) { return AVERROR(ENOMEM); ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "VideoDemuxData *s = VAR_0->priv_data;", "int VAR_1, VAR_2;", "AVStream *st;", "enum AVPixelFormat VAR_3 = AV_PIX_FMT_NONE;", "VAR_0->ctx_flags |= AVFMTCTX_NOHEADER;", "st = avformat_new_stream(VAR_0, NULL);", "if (!st) {", "return AVERROR(ENOMEM);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 53, 55 ], [...
20,020
static void rgba32_to_rgb24(AVPicture *dst, AVPicture *src, int width, int height) { const uint8_t *s; uint8_t *d; int src_wrap, dst_wrap, j, y; unsigned int v; s = src->data[0]; src_wrap = src->linesize[0] - width * 4; d = dst->data[0]; dst_wrap...
false
FFmpeg
7e7e59409294af9caa63808e56c5cc824c98b4fc
static void rgba32_to_rgb24(AVPicture *dst, AVPicture *src, int width, int height) { const uint8_t *s; uint8_t *d; int src_wrap, dst_wrap, j, y; unsigned int v; s = src->data[0]; src_wrap = src->linesize[0] - width * 4; d = dst->data[0]; dst_wrap...
{ "code": [], "line_no": [] }
static void FUNC_0(AVPicture *VAR_0, AVPicture *VAR_1, int VAR_2, int VAR_3) { const uint8_t *VAR_4; uint8_t *d; int VAR_5, VAR_6, VAR_7, VAR_8; unsigned int VAR_9; VAR_4 = VAR_1->data[0]; VAR_5 = VAR_1->linesize[0] - VAR_2 * 4; d = VAR_0->data[0]; ...
[ "static void FUNC_0(AVPicture *VAR_0, AVPicture *VAR_1,\nint VAR_2, int VAR_3)\n{", "const uint8_t *VAR_4;", "uint8_t *d;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "unsigned int VAR_9;", "VAR_4 = VAR_1->data[0];", "VAR_5 = VAR_1->linesize[0] - VAR_2 * 4;", "d = VAR_0->data[0];", "VAR_6 = VAR_0->linesize[...
[ 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 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
20,021
int opt_codec_debug(void *optctx, const char *opt, const char *arg) { av_log_set_level(AV_LOG_DEBUG); return opt_default(NULL, opt, arg); }
false
FFmpeg
ba4bcb191aa8b5fa66131544bf9ebf1f17ff7d9a
int opt_codec_debug(void *optctx, const char *opt, const char *arg) { av_log_set_level(AV_LOG_DEBUG); return opt_default(NULL, opt, arg); }
{ "code": [], "line_no": [] }
int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2) { av_log_set_level(AV_LOG_DEBUG); return opt_default(NULL, VAR_1, VAR_2); }
[ "int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2)\n{", "av_log_set_level(AV_LOG_DEBUG);", "return opt_default(NULL, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
20,024
void mips_r4k_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_filename;...
true
qemu
f8ed85ac992c48814d916d5df4d44f9a971c5de4
void mips_r4k_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_filename;...
{ "code": [ " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " &erro...
void FUNC_0(MachineState *VAR_0) { ram_addr_t ram_size = VAR_0->ram_size; const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; char *VAR_5; MemoryRegion *address_space_mem = get_system_memory(); M...
[ "void FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "char *VAR_5;", "MemoryRegion *address_space_mem = get_system_memory();",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
20,025
static int get_packetheader(NUTContext *nut, ByteIOContext *bc, int calculate_checksum) { int64_t start, size; // start= url_ftell(bc) - 8; size= get_v(bc); init_checksum(bc, calculate_checksum ? av_crc04C11DB7_update : NULL, 1); // nut->packet_start[2] = start; // nut->written_packet_...
true
FFmpeg
5d97d9d53ea1cc2c28411ad734565372ddeccc32
static int get_packetheader(NUTContext *nut, ByteIOContext *bc, int calculate_checksum) { int64_t start, size; size= get_v(bc); init_checksum(bc, calculate_checksum ? av_crc04C11DB7_update : NULL, 1); return size; }
{ "code": [ " init_checksum(bc, calculate_checksum ? av_crc04C11DB7_update : NULL, 1);" ], "line_no": [ 15 ] }
static int FUNC_0(NUTContext *VAR_0, ByteIOContext *VAR_1, int VAR_2) { int64_t start, size; size= get_v(VAR_1); init_checksum(VAR_1, VAR_2 ? av_crc04C11DB7_update : NULL, 1); return size; }
[ "static int FUNC_0(NUTContext *VAR_0, ByteIOContext *VAR_1, int VAR_2)\n{", "int64_t start, size;", "size= get_v(VAR_1);", "init_checksum(VAR_1, VAR_2 ? av_crc04C11DB7_update : NULL, 1);", "return size;", "}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 15 ], [ 25 ], [ 27 ] ]
20,027
static int decode_slice(AVCodecContext *avctx, void *tdata) { ProresThreadData *td = tdata; ProresContext *ctx = avctx->priv_data; int mb_x_pos = td->x_pos; int mb_y_pos = td->y_pos; int pic_num = ctx->pic_num; int slice_num = td->slice_num; int mbs_per_slice = td->slice_width; ...
true
FFmpeg
1e33035ee7a8d9fb7a4b8b6cc54842e72b36ed70
static int decode_slice(AVCodecContext *avctx, void *tdata) { ProresThreadData *td = tdata; ProresContext *ctx = avctx->priv_data; int mb_x_pos = td->x_pos; int mb_y_pos = td->y_pos; int pic_num = ctx->pic_num; int slice_num = td->slice_num; int mbs_per_slice = td->slice_width; ...
{ "code": [ " if (v_data_size < 0 || a_data_size < 0 || hdr_size < 6) {" ], "line_no": [ 141 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1) { ProresThreadData *td = VAR_1; ProresContext *ctx = VAR_0->priv_data; int VAR_2 = td->x_pos; int VAR_3 = td->y_pos; int VAR_4 = ctx->VAR_4; int VAR_5 = td->VAR_5; int VAR_6 = td->slice_width; const uint8_t *VAR_7; u...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1)\n{", "ProresThreadData *td = VAR_1;", "ProresContext *ctx = VAR_0->priv_data;", "int VAR_2 = td->x_pos;", "int VAR_3 = td->y_pos;", "int VAR_4 = ctx->VAR_4;", "int VAR_5 = td->VAR_5;", "int VAR_6 = td->slice_width;", "const uint8_t *VAR_7;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ...
20,028
static int put_v(ByteIOContext *bc, uint64_t val) { int i; // if (bytes_left(s)*8 < 9) // return -1; if (bytes_left(bc) < 1) return -1; val &= 0x7FFFFFFFFFFFFFFFULL; // FIXME can only encode upto 63 bits currently i= get_length(val); for (i-=7; i>0; i-=7){ put_byte(bc, 0x80 | (v...
false
FFmpeg
465e1dadbef7596a3eb87089a66bb4ecdc26d3c4
static int put_v(ByteIOContext *bc, uint64_t val) { int i; if (bytes_left(bc) < 1) return -1; val &= 0x7FFFFFFFFFFFFFFFULL; i= get_length(val); for (i-=7; i>0; i-=7){ put_byte(bc, 0x80 | (val>>i)); } put_byte(bc, val&0x7f); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(ByteIOContext *VAR_0, uint64_t VAR_1) { int VAR_2; if (bytes_left(VAR_0) < 1) return -1; VAR_1 &= 0x7FFFFFFFFFFFFFFFULL; VAR_2= get_length(VAR_1); for (VAR_2-=7; VAR_2>0; VAR_2-=7){ put_byte(VAR_0, 0x80 | (VAR_1>>VAR_2)); } put_byte(VAR_0, VAR_1&0x7...
[ "static int FUNC_0(ByteIOContext *VAR_0, uint64_t VAR_1)\n{", "int VAR_2;", "if (bytes_left(VAR_0) < 1)\nreturn -1;", "VAR_1 &= 0x7FFFFFFFFFFFFFFFULL;", "VAR_2= get_length(VAR_1);", "for (VAR_2-=7; VAR_2>0; VAR_2-=7){", "put_byte(VAR_0, 0x80 | (VAR_1>>VAR_2));", "}", "put_byte(VAR_0, VAR_1&0x7f);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ] ]
20,029
static inline void gen_bcond(DisasContext *ctx, int type) { uint32_t bo = BO(ctx->opcode); int l1; TCGv target; ctx->exception = POWERPC_EXCP_BRANCH; if (type == BCOND_LR || type == BCOND_CTR || type == BCOND_TAR) { target = tcg_temp_local_new(); if (type == BCOND_CTR) ...
true
qemu
a9e8f4e7df385a6c704527d9c5b562f42566d491
static inline void gen_bcond(DisasContext *ctx, int type) { uint32_t bo = BO(ctx->opcode); int l1; TCGv target; ctx->exception = POWERPC_EXCP_BRANCH; if (type == BCOND_LR || type == BCOND_CTR || type == BCOND_TAR) { target = tcg_temp_local_new(); if (type == BCOND_CTR) ...
{ "code": [ " if (type == BCOND_LR || type == BCOND_CTR) {" ], "line_no": [ 155 ] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1) { uint32_t bo = BO(VAR_0->opcode); int VAR_2; TCGv target; VAR_0->exception = POWERPC_EXCP_BRANCH; if (VAR_1 == BCOND_LR || VAR_1 == BCOND_CTR || VAR_1 == BCOND_TAR) { target = tcg_temp_local_new(); if (VAR_1 == BCON...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1)\n{", "uint32_t bo = BO(VAR_0->opcode);", "int VAR_2;", "TCGv target;", "VAR_0->exception = POWERPC_EXCP_BRANCH;", "if (VAR_1 == BCOND_LR || VAR_1 == BCOND_CTR || VAR_1 == BCOND_TAR) {", "target = tcg_temp_local_new();", "if (VAR_1 == BCOND_CTR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
20,030
void arm_handle_psci_call(ARMCPU *cpu) { /* * This function partially implements the logic for dispatching Power State * Coordination Interface (PSCI) calls (as described in ARM DEN 0022B.b), * to the extent required for bringing up and taking down secondary cores, * and for handling reset...
true
qemu
062ba099e01ff1474be98c0a4f3da351efab5d9d
void arm_handle_psci_call(ARMCPU *cpu) { CPUARMState *env = &cpu->env; uint64_t param[4]; uint64_t context_id, mpidr; target_ulong entry; int32_t ret = 0; int i; for (i = 0; i < 4; i++) { param[i] = is_a64(env) ? env->xregs[i] : env->r...
{ "code": [ " } else {", " } else {", " } else {", " ret = target_cpu->powered_off ? 1 : 0;" ], "line_no": [ 253, 253, 253, 107 ] }
void FUNC_0(ARMCPU *VAR_0) { CPUARMState *env = &VAR_0->env; uint64_t param[4]; uint64_t context_id, mpidr; target_ulong entry; int32_t ret = 0; int VAR_1; for (VAR_1 = 0; VAR_1 < 4; VAR_1++) { param[VAR_1] = is_a64(env) ? env->xregs[V...
[ "void FUNC_0(ARMCPU *VAR_0)\n{", "CPUARMState *env = &VAR_0->env;", "uint64_t param[4];", "uint64_t context_id, mpidr;", "target_ulong entry;", "int32_t ret = 0;", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < 4; VAR_1++) {", "param[VAR_1] = is_a64(env) ? env->xregs[VAR_1] : env->regs[VAR_1];", "}", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ], [ 65 ], [ 67 ], [ 71, 73 ], [ 75 ], ...
20,031
static inline int gen_iwmmxt_address(DisasContext *s, uint32_t insn, TCGv dest) { int rd; uint32_t offset; TCGv tmp; rd = (insn >> 16) & 0xf; tmp = load_reg(s, rd); offset = (insn & 0xff) << ((insn >> 7) & 2); if (insn & (1 << 24)) { /* Pre indexed */ if (insn &...
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static inline int gen_iwmmxt_address(DisasContext *s, uint32_t insn, TCGv dest) { int rd; uint32_t offset; TCGv tmp; rd = (insn >> 16) & 0xf; tmp = load_reg(s, rd); offset = (insn & 0xff) << ((insn >> 7) & 2); if (insn & (1 << 24)) { if (insn & (1 << 23)) ...
{ "code": [ " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", ...
static inline int FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, TCGv VAR_2) { int VAR_3; uint32_t offset; TCGv tmp; VAR_3 = (VAR_1 >> 16) & 0xf; tmp = load_reg(VAR_0, VAR_3); offset = (VAR_1 & 0xff) << ((VAR_1 >> 7) & 2); if (VAR_1 & (1 << 24)) { if (VAR_1 & (1 <...
[ "static inline int FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, TCGv VAR_2)\n{", "int VAR_3;", "uint32_t offset;", "TCGv tmp;", "VAR_3 = (VAR_1 >> 16) & 0xf;", "tmp = load_reg(VAR_0, VAR_3);", "offset = (VAR_1 & 0xff) << ((VAR_1 >> 7) & 2);", "if (VAR_1 & (1 << 24)) {", "if (VAR_1 & (1 << 23))\ntcg_g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 47 ], [ 49, 51 ], [ 53, 55 ...
20,033
static MOVFragmentStreamInfo * get_current_frag_stream_info( MOVFragmentIndex *frag_index) { MOVFragmentIndexItem * item = &frag_index->item[frag_index->current]; if (item->current >= 0 && item->current < item->nb_stream_info) return &item->stream_info[item->current]; // This shouldn't happen }
true
FFmpeg
20c38f2e7085ce02c19df965d02ecdf5628f11b8
static MOVFragmentStreamInfo * get_current_frag_stream_info( MOVFragmentIndex *frag_index) { MOVFragmentIndexItem * item = &frag_index->item[frag_index->current]; if (item->current >= 0 && item->current < item->nb_stream_info) return &item->stream_info[item->current]; }
{ "code": [], "line_no": [] }
static MOVFragmentStreamInfo * FUNC_0( MOVFragmentIndex *frag_index) { MOVFragmentIndexItem * item = &frag_index->item[frag_index->current]; if (item->current >= 0 && item->current < item->nb_stream_info) return &item->stream_info[item->current]; }
[ "static MOVFragmentStreamInfo * FUNC_0(\nMOVFragmentIndex *frag_index)\n{", "MOVFragmentIndexItem * item = &frag_index->item[frag_index->current];", "if (item->current >= 0 && item->current < item->nb_stream_info)\nreturn &item->stream_info[item->current];", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5, 6 ], [ 8 ] ]
20,037
static void v9fs_wstat(void *opaque) { int32_t fid; int err = 0; int16_t unused; V9fsStat v9stat; size_t offset = 7; struct stat stbuf; V9fsFidState *fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dwS", &fid, &unused, &v9stat); ...
true
qemu
c572f23a3e7180dbeab5e86583e43ea2afed6271
static void v9fs_wstat(void *opaque) { int32_t fid; int err = 0; int16_t unused; V9fsStat v9stat; size_t offset = 7; struct stat stbuf; V9fsFidState *fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dwS", &fid, &unused, &v9stat); ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int32_t fid; int VAR_1 = 0; int16_t unused; V9fsStat v9stat; size_t offset = 7; struct stat VAR_2; V9fsFidState *fidp; V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dwS", &fid, &unused, &v9stat); f...
[ "static void FUNC_0(void *VAR_0)\n{", "int32_t fid;", "int VAR_1 = 0;", "int16_t unused;", "V9fsStat v9stat;", "size_t offset = 7;", "struct stat VAR_2;", "V9fsFidState *fidp;", "V9fsPDU *pdu = VAR_0;", "V9fsState *s = pdu->s;", "pdu_unmarshal(pdu, offset, \"dwS\", &fid, &unused, &v9stat);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
20,038
static void vnc_colordepth(VncState *vs) { if (vnc_has_feature(vs, VNC_FEATURE_WMVI)) { /* Sending a WMVi message to notify the client*/ vnc_lock_output(vs); vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE); vnc_write_u8(vs, 0); vnc_write_u16(vs, 1); /* number of re...
true
qemu
bea60dd7679364493a0d7f5b54316c767cf894ef
static void vnc_colordepth(VncState *vs) { if (vnc_has_feature(vs, VNC_FEATURE_WMVI)) { vnc_lock_output(vs); vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE); vnc_write_u8(vs, 0); vnc_write_u16(vs, 1); vnc_framebuffer_update(vs, 0, 0, ...
{ "code": [ " surface_width(vs->vd->ds),", " surface_height(vs->vd->ds),", " surface_width(vs->vd->ds),", " surface_height(vs->vd->ds)," ], "line_no": [ 19, 21, 19, ...
static void FUNC_0(VncState *VAR_0) { if (vnc_has_feature(VAR_0, VNC_FEATURE_WMVI)) { vnc_lock_output(VAR_0); vnc_write_u8(VAR_0, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE); vnc_write_u8(VAR_0, 0); vnc_write_u16(VAR_0, 1); vnc_framebuffer_update(VAR_0, 0, 0, ...
[ "static void FUNC_0(VncState *VAR_0)\n{", "if (vnc_has_feature(VAR_0, VNC_FEATURE_WMVI)) {", "vnc_lock_output(VAR_0);", "vnc_write_u8(VAR_0, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE);", "vnc_write_u8(VAR_0, 0);", "vnc_write_u16(VAR_0, 1);", "vnc_framebuffer_update(VAR_0, 0, 0,\nsurface_width(VAR_0->vd->ds),\ns...
[ 0, 0, 0, 0, 0, 0, 1, 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 ] ]
20,039
static void output_audio_block(AC3EncodeContext *s, int blk) { int ch, i, baie, bnd, got_cpl, ch0; AC3Block *block = &s->blocks[blk]; /* block switching */ if (!s->eac3) { for (ch = 0; ch < s->fbw_channels; ch++) put_bits(&s->pb, 1, 0); } /* dither flags */ ...
true
FFmpeg
eeb48353abaab335a1fc9cc448a5691330325a09
static void output_audio_block(AC3EncodeContext *s, int blk) { int ch, i, baie, bnd, got_cpl, ch0; AC3Block *block = &s->blocks[blk]; if (!s->eac3) { for (ch = 0; ch < s->fbw_channels; ch++) put_bits(&s->pb, 1, 0); } if (!s->eac3) { for (ch = 0; c...
{ "code": [ " int ch, i, baie, bnd, got_cpl, ch0;" ], "line_no": [ 5 ] }
static void FUNC_0(AC3EncodeContext *VAR_0, int VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; AC3Block *block = &VAR_0->blocks[VAR_1]; if (!VAR_0->eac3) { for (VAR_2 = 0; VAR_2 < VAR_0->fbw_channels; VAR_2++) put_bits(&VAR_0->pb, 1, 0); } if (!VAR...
[ "static void FUNC_0(AC3EncodeContext *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "AC3Block *block = &VAR_0->blocks[VAR_1];", "if (!VAR_0->eac3) {", "for (VAR_2 = 0; VAR_2 < VAR_0->fbw_channels; VAR_2++)", "put_bits(&VAR_0->pb, 1, 0);", "}", "if (!VAR_0->eac3) {", "for (V...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 43, 45 ], [ 51, 53 ], [ 55 ], [ 57, 59 ], [ 61 ], [ 63 ], ...
20,041
void virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *conf, VirtIOBlockDataPlane **dataplane, Error **errp) { VirtIOBlockDataPlane *s; Error *local_err = NULL; BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); ...
true
qemu
4ef3982a99f9d2634588b4785c8d841605517946
void virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *conf, VirtIOBlockDataPlane **dataplane, Error **errp) { VirtIOBlockDataPlane *s; Error *local_err = NULL; BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); ...
{ "code": [], "line_no": [] }
void FUNC_0(VirtIODevice *VAR_0, VirtIOBlkConf *VAR_1, VirtIOBlockDataPlane **VAR_2, Error **VAR_3) { VirtIOBlockDataPlane *s; Error *local_err = NULL; BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_0))); VirtioBusClass *k =...
[ "void FUNC_0(VirtIODevice *VAR_0, VirtIOBlkConf *VAR_1,\nVirtIOBlockDataPlane **VAR_2,\nError **VAR_3)\n{", "VirtIOBlockDataPlane *s;", "Error *local_err = NULL;", "BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_0)));", "VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);", "*VAR_2 = NULL;", "if (!VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 53, 55 ], [ 57, 59 ], [ 61 ], [ 63 ...
20,042
static inline int parse_nal_units(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t *buf, int buf_size) { HEVCContext *h = &((HEVCParseContext *)s->priv_data)->h; GetBitContext *gb = &h->HEVClc->gb; SliceHeader *sh = &h->sh; const uint8_t *buf_end = buf + buf...
false
FFmpeg
05cc8c8e4b7008ff3be8ec477c901b2ceca4b16b
static inline int parse_nal_units(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t *buf, int buf_size) { HEVCContext *h = &((HEVCParseContext *)s->priv_data)->h; GetBitContext *gb = &h->HEVClc->gb; SliceHeader *sh = &h->sh; const uint8_t *buf_end = buf + buf...
{ "code": [], "line_no": [] }
static inline int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1, const uint8_t *VAR_2, int VAR_3) { HEVCContext *h = &((HEVCParseContext *)VAR_0->priv_data)->h; GetBitContext *gb = &h->HEVClc->gb; SliceHeader *sh = &h->sh; const uint8_t *VAR_4 = VAR_2 + VAR_3...
[ "static inline int FUNC_0(AVCodecParserContext *VAR_0, AVCodecContext *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{", "HEVCContext *h = &((HEVCParseContext *)VAR_0->priv_data)->h;", "GetBitContext *gb = &h->HEVClc->gb;", "SliceHeader *sh = &h->sh;", "const uint8_t *VAR_4 = VAR_2 + VAR_3;", "int VAR_5 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [...
20,043
static void filter_mb_fast( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) { MpegEncContext * const s = &h->s; int mb_xy, mb_type; int qp, qp0, qp1, qpc, qpc0, qpc1, qp_thresh; mb_xy = mb_x + mb_y*s->mb_stride; ...
true
FFmpeg
4691a77db4672026d62d524fd292fb17db6514b4
static void filter_mb_fast( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) { MpegEncContext * const s = &h->s; int mb_xy, mb_type; int qp, qp0, qp1, qpc, qpc0, qpc1, qp_thresh; mb_xy = mb_x + mb_y*s->mb_stride; ...
{ "code": [ " if(mb_x==0 || mb_y==0 || !s->dsp.h264_loop_filter_strength ||", " qpc = get_chroma_qp( h, qp );", " qpc0 = get_chroma_qp( h, qp0 );", " qpc1 = get_chroma_qp( h, qp1 );" ], "line_no": [ 15, 39, 41, 43 ] }
static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5, unsigned int VAR_6, unsigned int VAR_7) { MpegEncContext * const s = &VAR_0->s; int VAR_8, VAR_9; int VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16; VAR_8 = VAR_1 + VAR_2*s->mb_st...
[ "static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5, unsigned int VAR_6, unsigned int VAR_7) {", "MpegEncContext * const s = &VAR_0->s;", "int VAR_8, VAR_9;", "int VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16;", "VAR_8 = VAR_1 + VAR_2*s->mb...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
20,044
static int decode_frame_header(NUTContext *nut, int64_t *pts, int *stream_id, uint8_t *header_idx, int frame_code) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; StreamContext *stc; int size, flags, size_mul, pts_delta, i, reserved_count; uint64_t ...
true
FFmpeg
73581afe01b41d0028afb6b14f5493568cf1be3d
static int decode_frame_header(NUTContext *nut, int64_t *pts, int *stream_id, uint8_t *header_idx, int frame_code) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; StreamContext *stc; int size, flags, size_mul, pts_delta, i, reserved_count; uint64_t ...
{ "code": [ " *pts = coded_pts - (1 << stc->msb_pts_shift);" ], "line_no": [ 77 ] }
static int FUNC_0(NUTContext *VAR_0, int64_t *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { AVFormatContext *s = VAR_0->avf; AVIOContext *bc = s->pb; StreamContext *stc; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; uint64_t tmp; if (avio_tell(bc) >...
[ "static int FUNC_0(NUTContext *VAR_0, int64_t *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "AVFormatContext *s = VAR_0->avf;", "AVIOContext *bc = s->pb;", "StreamContext *stc;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "uint64_t tmp;", "if (avio_tell(bc) > VAR_0->last_syncpoint_pos +...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ...
20,045
static int vmstate_n_elems(void *opaque, VMStateField *field) { int n_elems = 1; if (field->flags & VMS_ARRAY) { n_elems = field->num; } else if (field->flags & VMS_VARRAY_INT32) { n_elems = *(int32_t *)(opaque+field->num_offset); } else if (field->flags & VMS_VARRAY_UINT32) { ...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int vmstate_n_elems(void *opaque, VMStateField *field) { int n_elems = 1; if (field->flags & VMS_ARRAY) { n_elems = field->num; } else if (field->flags & VMS_VARRAY_INT32) { n_elems = *(int32_t *)(opaque+field->num_offset); } else if (field->flags & VMS_VARRAY_UINT32) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, VMStateField *VAR_1) { int VAR_2 = 1; if (VAR_1->flags & VMS_ARRAY) { VAR_2 = VAR_1->num; } else if (VAR_1->flags & VMS_VARRAY_INT32) { VAR_2 = *(int32_t *)(VAR_0+VAR_1->num_offset); } else if (VAR_1->flags & VMS_VARRAY_UINT32) { VAR_2 = *...
[ "static int FUNC_0(void *VAR_0, VMStateField *VAR_1)\n{", "int VAR_2 = 1;", "if (VAR_1->flags & VMS_ARRAY) {", "VAR_2 = VAR_1->num;", "} else if (VAR_1->flags & VMS_VARRAY_INT32) {", "VAR_2 = *(int32_t *)(VAR_0+VAR_1->num_offset);", "} else if (VAR_1->flags & VMS_VARRAY_UINT32) {", "VAR_2 = *(uint32_t...
[ 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 ] ]
20,046
static void mm_decode_intra(MmContext * s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size) { int i, x, y; i=0; x=0; y=0; while(i<buf_size) { int run_length, color; if (buf[i] & 0x80) { run_length = 1; color = buf[i]; i++; }else{ ...
true
FFmpeg
94e58e5770d2a2295a13240f51ddba583e6d5360
static void mm_decode_intra(MmContext * s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size) { int i, x, y; i=0; x=0; y=0; while(i<buf_size) { int run_length, color; if (buf[i] & 0x80) { run_length = 1; color = buf[i]; i++; }else{ ...
{ "code": [], "line_no": [] }
static void FUNC_0(MmContext * VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4) { int VAR_5, VAR_6, VAR_7; VAR_5=0; VAR_6=0; VAR_7=0; while(VAR_5<VAR_4) { int VAR_8, VAR_9; if (VAR_3[VAR_5] & 0x80) { VAR_8 = 1; VAR_9 = VAR_3[VAR_5]; VAR_5++; ...
[ "static void FUNC_0(MmContext * VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6, VAR_7;", "VAR_5=0; VAR_6=0; VAR_7=0;", "while(VAR_5<VAR_4) {", "int VAR_8, VAR_9;", "if (VAR_3[VAR_5] & 0x80) {", "VAR_8 = 1;", "VAR_9 = VAR_3[VAR_5];", "VAR_5++;", "}else{", "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 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16, 17 ], [ 18 ], [ 19 ], [ 20, 21 ], [ 22 ],...
20,047
static void dnxhd_decode_dct_block_10_444(const DNXHDContext *ctx, RowContext *row, int n) { dnxhd_decode_dct_block(ctx, row, n, 6, 32, 6); }
true
FFmpeg
b8b8e82ea14016b2cb04b49ecea57f836e6ee7f8
static void dnxhd_decode_dct_block_10_444(const DNXHDContext *ctx, RowContext *row, int n) { dnxhd_decode_dct_block(ctx, row, n, 6, 32, 6); }
{ "code": [ "static void dnxhd_decode_dct_block_10_444(const DNXHDContext *ctx,", "static void dnxhd_decode_dct_block_10_444(const DNXHDContext *ctx,", " dnxhd_decode_dct_block(ctx, row, n, 6, 32, 6);" ], "line_no": [ 1, 1, 7 ] }
static void FUNC_0(const DNXHDContext *VAR_0, RowContext *VAR_1, int VAR_2) { dnxhd_decode_dct_block(VAR_0, VAR_1, VAR_2, 6, 32, 6); }
[ "static void FUNC_0(const DNXHDContext *VAR_0,\nRowContext *VAR_1, int VAR_2)\n{", "dnxhd_decode_dct_block(VAR_0, VAR_1, VAR_2, 6, 32, 6);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
20,048
int qemu_accept(int s, struct sockaddr *addr, socklen_t *addrlen) { int ret; #ifdef CONFIG_ACCEPT4 ret = accept4(s, addr, addrlen, SOCK_CLOEXEC); #else ret = accept(s, addr, addrlen); if (ret >= 0) { qemu_set_cloexec(ret); } #endif return ret; }
true
qemu
3a03bfa5a219fe06779706315f2555622b51193c
int qemu_accept(int s, struct sockaddr *addr, socklen_t *addrlen) { int ret; #ifdef CONFIG_ACCEPT4 ret = accept4(s, addr, addrlen, SOCK_CLOEXEC); #else ret = accept(s, addr, addrlen); if (ret >= 0) { qemu_set_cloexec(ret); } #endif return ret; }
{ "code": [ "#else", "#endif", "#else", "#endif", "#else", "#endif" ], "line_no": [ 13, 23, 13, 23, 13, 23 ] }
int FUNC_0(int VAR_0, struct sockaddr *VAR_1, socklen_t *VAR_2) { int VAR_3; #ifdef CONFIG_ACCEPT4 VAR_3 = accept4(VAR_0, VAR_1, VAR_2, SOCK_CLOEXEC); #else VAR_3 = accept(VAR_0, VAR_1, VAR_2); if (VAR_3 >= 0) { qemu_set_cloexec(VAR_3); } #endif return VAR_3; }
[ "int FUNC_0(int VAR_0, struct sockaddr *VAR_1, socklen_t *VAR_2)\n{", "int VAR_3;", "#ifdef CONFIG_ACCEPT4\nVAR_3 = accept4(VAR_0, VAR_1, VAR_2, SOCK_CLOEXEC);", "#else\nVAR_3 = accept(VAR_0, VAR_1, VAR_2);", "if (VAR_3 >= 0) {", "qemu_set_cloexec(VAR_3);", "}", "#endif\nreturn VAR_3;", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 27 ], [ 29 ] ]
20,049
static int aac_decode_frame(AVCodecContext * avccontext, void * data, int * data_size, const uint8_t * buf, int buf_size) { AACContext * ac = avccontext->priv_data; GetBitContext gb; enum RawDataBlockType elem_type; int err, elem_id, data_size_tmp; init_get_bits(&gb, buf, buf_size*8); ...
false
FFmpeg
ff587009ae60f6cf76d70879986125696490f99c
static int aac_decode_frame(AVCodecContext * avccontext, void * data, int * data_size, const uint8_t * buf, int buf_size) { AACContext * ac = avccontext->priv_data; GetBitContext gb; enum RawDataBlockType elem_type; int err, elem_id, data_size_tmp; init_get_bits(&gb, buf, buf_size*8); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext * VAR_0, void * VAR_1, int * VAR_2, const uint8_t * VAR_3, int VAR_4) { AACContext * ac = VAR_0->priv_data; GetBitContext gb; enum RawDataBlockType VAR_5; int VAR_6, VAR_7, VAR_8; init_get_bits(&gb, VAR_3, VAR_4*8); if (show_bits(&gb, 12) == 0xfff) { ...
[ "static int FUNC_0(AVCodecContext * VAR_0, void * VAR_1, int * VAR_2, const uint8_t * VAR_3, int VAR_4) {", "AACContext * ac = VAR_0->priv_data;", "GetBitContext gb;", "enum RawDataBlockType VAR_5;", "int VAR_6, VAR_7, VAR_8;", "init_get_bits(&gb, VAR_3, VAR_4*8);", "if (show_bits(&gb, 12) == 0xfff) {",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ...
20,050
void ff_h264dsp_init(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) { #undef FUNC #define FUNC(a, depth) a ## _ ## depth ## _c #define ADDPX_DSP(depth) \ c->h264_add_pixels4 = FUNC(ff_h264_add_pixels4, depth);\ c->h264_add_pixels8 = FUNC(ff_h264_add_pixels8, depth) if (bit_d...
false
FFmpeg
1acd7d594c15aa491729c837ad3519d3469e620a
void ff_h264dsp_init(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) { #undef FUNC #define FUNC(a, depth) a ## _ ## depth ## _c #define ADDPX_DSP(depth) \ c->h264_add_pixels4 = FUNC(ff_h264_add_pixels4, depth);\ c->h264_add_pixels8 = FUNC(ff_h264_add_pixels8, depth) if (bit_d...
{ "code": [], "line_no": [] }
void FUNC_0(H264DSPContext *VAR_0, const int VAR_1, const int VAR_2) { #undef FUNC #define FUNC(a, depth) a ## _ ## depth ## _c #define ADDPX_DSP(depth) \ VAR_0->h264_add_pixels4 = FUNC(ff_h264_add_pixels4, depth);\ VAR_0->h264_add_pixels8 = FUNC(ff_h264_add_pixels8, depth) if (VAR_1 > 8 && VAR_1...
[ "void FUNC_0(H264DSPContext *VAR_0, const int VAR_1, const int VAR_2)\n{", "#undef FUNC\n#define FUNC(a, depth) a ## _ ## depth ## _c\n#define ADDPX_DSP(depth) \\\nVAR_0->h264_add_pixels4 = FUNC(ff_h264_add_pixels4, depth);\\", "VAR_0->h264_add_pixels8 = FUNC(ff_h264_add_pixels8, depth)\nif (VAR_1 > 8 && VAR_1 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 11, 13 ], [ 15, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ], [ 53 ], ...
20,051
int redir_open(AVFormatContext **ic_ptr, ByteIOContext *f) { char buf[4096], *q; int c; AVFormatContext *ic = NULL; /* parse each URL and try to open it */ c = url_fgetc(f); while (c != URL_EOF) { /* skip spaces */ for(;;) { if (!redir_isspace(c)) ...
false
FFmpeg
e8acf0edeae0b5ef53233c49015b07cc9711f20c
int redir_open(AVFormatContext **ic_ptr, ByteIOContext *f) { char buf[4096], *q; int c; AVFormatContext *ic = NULL; c = url_fgetc(f); while (c != URL_EOF) { for(;;) { if (!redir_isspace(c)) break; c = url_fgetc(f); ...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext **VAR_0, ByteIOContext *VAR_1) { char VAR_2[4096], *VAR_3; int VAR_4; AVFormatContext *ic = NULL; VAR_4 = url_fgetc(VAR_1); while (VAR_4 != URL_EOF) { for(;;) { if (!redir_isspace(VAR_4)) break; VA...
[ "int FUNC_0(AVFormatContext **VAR_0, ByteIOContext *VAR_1)\n{", "char VAR_2[4096], *VAR_3;", "int VAR_4;", "AVFormatContext *ic = NULL;", "VAR_4 = url_fgetc(VAR_1);", "while (VAR_4 != URL_EOF) {", "for(;;) {", "if (!redir_isspace(VAR_4))\nbreak;", "VAR_4 = url_fgetc(VAR_1);", "}", "if (VAR_4 == ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ...
20,052
static int common_init(AVCodecContext *avctx){ SnowContext *s = avctx->priv_data; int width, height; int level, orientation, plane_index, dec; s->avctx= avctx; dsputil_init(&s->dsp, avctx); #define mcf(dx,dy)\ s->dsp.put_qpel_pixels_tab [0][dy+dx/4]=\ s->dsp.put_n...
false
FFmpeg
155ec6edf82692bcf3a5f87d2bc697404f4e5aaf
static int common_init(AVCodecContext *avctx){ SnowContext *s = avctx->priv_data; int width, height; int level, orientation, plane_index, dec; s->avctx= avctx; dsputil_init(&s->dsp, avctx); #define mcf(dx,dy)\ s->dsp.put_qpel_pixels_tab [0][dy+dx/4]=\ s->dsp.put_n...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0){ SnowContext *s = VAR_0->priv_data; int VAR_1, VAR_2; int VAR_3, VAR_4, VAR_5, VAR_6; s->VAR_0= VAR_0; dsputil_init(&s->dsp, VAR_0); #define mcf(dx,dy)\ s->dsp.put_qpel_pixels_tab [0][dy+dx/4]=\ s->dsp.put_no_rnd_qpel_pixel...
[ "static int FUNC_0(AVCodecContext *VAR_0){", "SnowContext *s = VAR_0->priv_data;", "int VAR_1, VAR_2;", "int VAR_3, VAR_4, VAR_5, VAR_6;", "s->VAR_0= VAR_0;", "dsputil_init(&s->dsp, VAR_0);", "#define mcf(dx,dy)\\\ns->dsp.put_qpel_pixels_tab [0][dy+dx/4]=\\\ns->dsp.put_no_rnd_qpel_pixels_tab[0][dy...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 19, 21, 23, 25 ], [ 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 63, 65, 67, 69 ], [ 73, 75...
20,053
USBDevice *usbdevice_create(const char *cmdline) { USBBus *bus = usb_bus_find(-1 /* any */); DeviceInfo *info; USBDeviceInfo *usb; char driver[32]; const char *params; int len; params = strchr(cmdline,':'); if (params) { params++; len = params - cmdline; ...
false
qemu
98f22dc172e1ebd5341da3de0d67666442566f72
USBDevice *usbdevice_create(const char *cmdline) { USBBus *bus = usb_bus_find(-1 ); DeviceInfo *info; USBDeviceInfo *usb; char driver[32]; const char *params; int len; params = strchr(cmdline,':'); if (params) { params++; len = params - cmdline; if (...
{ "code": [], "line_no": [] }
USBDevice *FUNC_0(const char *cmdline) { USBBus *bus = usb_bus_find(-1 ); DeviceInfo *info; USBDeviceInfo *usb; char VAR_0[32]; const char *VAR_1; int VAR_2; VAR_1 = strchr(cmdline,':'); if (VAR_1) { VAR_1++; VAR_2 = VAR_1 - cmdline; if (VAR_2 > size...
[ "USBDevice *FUNC_0(const char *cmdline)\n{", "USBBus *bus = usb_bus_find(-1 );", "DeviceInfo *info;", "USBDeviceInfo *usb;", "char VAR_0[32];", "const char *VAR_1;", "int VAR_2;", "VAR_1 = strchr(cmdline,':');", "if (VAR_1) {", "VAR_1++;", "VAR_2 = VAR_1 - cmdline;", "if (VAR_2 > sizeof(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ...
20,057
static int net_init_nic(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan) { int idx; NICInfo *nd; const char *netdev; idx = nic_get_free_idx(); if (idx == -1 || nb_nics >= MAX_NICS) { qemu_erro...
false
qemu
62112d181ca33fea976100c4335dfc3e2f727e6c
static int net_init_nic(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan) { int idx; NICInfo *nd; const char *netdev; idx = nic_get_free_idx(); if (idx == -1 || nb_nics >= MAX_NICS) { qemu_erro...
{ "code": [], "line_no": [] }
static int FUNC_0(QemuOpts *VAR_0, Monitor *VAR_1, const char *VAR_2, VLANState *VAR_3) { int VAR_4; NICInfo *nd; const char *VAR_5; VAR_4 = nic_get_free_idx(); if (VAR_4 == -1 || nb_nics >= MAX_NICS) { qemu_...
[ "static int FUNC_0(QemuOpts *VAR_0,\nMonitor *VAR_1,\nconst char *VAR_2,\nVLANState *VAR_3)\n{", "int VAR_4;", "NICInfo *nd;", "const char *VAR_5;", "VAR_4 = nic_get_free_idx();", "if (VAR_4 == -1 || nb_nics >= MAX_NICS) {", "qemu_error(\"Too Many NICs\\n\");", "return -1;", "}", "nd = &nd_table[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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
20,058
print_insn_sparc (bfd_vma memaddr, disassemble_info *info) { FILE *stream = info->stream; bfd_byte buffer[4]; unsigned long insn; sparc_opcode_hash *op; /* Nonzero of opcode table has been initialized. */ static int opcodes_initialized = 0; /* bfd mach number of last call. */ static unsigned ...
false
qemu
452f58eb4966de0d957e9314383cf490fcb69064
print_insn_sparc (bfd_vma memaddr, disassemble_info *info) { FILE *stream = info->stream; bfd_byte buffer[4]; unsigned long insn; sparc_opcode_hash *op; static int opcodes_initialized = 0; static unsigned long current_mach = 0; bfd_vma (*getword) (const unsigned char *); if (!opcodes_...
{ "code": [], "line_no": [] }
FUNC_0 (bfd_vma VAR_0, disassemble_info *VAR_1) { FILE *stream = VAR_1->stream; bfd_byte buffer[4]; unsigned long VAR_2; sparc_opcode_hash *op; static int VAR_3 = 0; static unsigned long VAR_4 = 0; bfd_vma (*getword) (const unsigned char *); if (!VAR_3 || VAR_1->mach != VAR_4) ...
[ "FUNC_0 (bfd_vma VAR_0, disassemble_info *VAR_1)\n{", "FILE *stream = VAR_1->stream;", "bfd_byte buffer[4];", "unsigned long VAR_2;", "sparc_opcode_hash *op;", "static int VAR_3 = 0;", "static unsigned long VAR_4 = 0;", "bfd_vma (*getword) (const unsigned char *);", "if (!VAR_3\n|| VAR_1->mach != 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 25, 27, 29 ], [ 31 ], [ 35 ], [ 39, 41, 43 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 57 ], [ 59 ], [...
20,059
static int max7310_tx(I2CSlave *i2c, uint8_t data) { MAX7310State *s = MAX7310(i2c); uint8_t diff; int line; if (s->len ++ > 1) { #ifdef VERBOSE printf("%s: message too long (%i bytes)\n", __FUNCTION__, s->len); #endif return 1; } if (s->i2c_command_byte) { ...
false
qemu
786a4ea82ec9c87e3a895cf41081029b285a5fe5
static int max7310_tx(I2CSlave *i2c, uint8_t data) { MAX7310State *s = MAX7310(i2c); uint8_t diff; int line; if (s->len ++ > 1) { #ifdef VERBOSE printf("%s: message too long (%i bytes)\n", __FUNCTION__, s->len); #endif return 1; } if (s->i2c_command_byte) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1) { MAX7310State *s = MAX7310(VAR_0); uint8_t diff; int VAR_2; if (s->len ++ > 1) { #ifdef VERBOSE printf("%s: message too long (%i bytes)\n", __FUNCTION__, s->len); #endif return 1; } if (s->i2c_command_byte) { ...
[ "static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1)\n{", "MAX7310State *s = MAX7310(VAR_0);", "uint8_t diff;", "int VAR_2;", "if (s->len ++ > 1) {", "#ifdef VERBOSE\nprintf(\"%s: message too long (%i bytes)\\n\", __FUNCTION__, s->len);", "#endif\nreturn 1;", "}", "if (s->i2c_command_byte) {", "s->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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49, 51 ...
20,061
BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv) { DriveInfo *dinfo; TAILQ_FOREACH(dinfo, &drives, next) { if (dinfo->bdrv == bdrv) return dinfo->onerror; } return BLOCK_ERR_STOP_ENOSPC; }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv) { DriveInfo *dinfo; TAILQ_FOREACH(dinfo, &drives, next) { if (dinfo->bdrv == bdrv) return dinfo->onerror; } return BLOCK_ERR_STOP_ENOSPC; }
{ "code": [], "line_no": [] }
BlockInterfaceErrorAction FUNC_0(BlockDriverState *bdrv) { DriveInfo *dinfo; TAILQ_FOREACH(dinfo, &drives, next) { if (dinfo->bdrv == bdrv) return dinfo->onerror; } return BLOCK_ERR_STOP_ENOSPC; }
[ "BlockInterfaceErrorAction FUNC_0(BlockDriverState *bdrv)\n{", "DriveInfo *dinfo;", "TAILQ_FOREACH(dinfo, &drives, next) {", "if (dinfo->bdrv == bdrv)\nreturn dinfo->onerror;", "}", "return BLOCK_ERR_STOP_ENOSPC;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 19 ], [ 21 ] ]
20,062
static inline void tcg_out_movi_imm32(TCGContext *s, int ret, uint32_t arg) { if (check_fit_tl(arg, 12)) tcg_out_movi_imm13(s, ret, arg); else { tcg_out_sethi(s, ret, arg); if (arg & 0x3ff) tcg_out_arithi(s, ret, ret, arg & 0x3ff, ARITH_OR); } }
false
qemu
4a09aa895e7cd82192e47ede9cde8ab7da4a96ba
static inline void tcg_out_movi_imm32(TCGContext *s, int ret, uint32_t arg) { if (check_fit_tl(arg, 12)) tcg_out_movi_imm13(s, ret, arg); else { tcg_out_sethi(s, ret, arg); if (arg & 0x3ff) tcg_out_arithi(s, ret, ret, arg & 0x3ff, ARITH_OR); } }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGContext *VAR_0, int VAR_1, uint32_t VAR_2) { if (check_fit_tl(VAR_2, 12)) tcg_out_movi_imm13(VAR_0, VAR_1, VAR_2); else { tcg_out_sethi(VAR_0, VAR_1, VAR_2); if (VAR_2 & 0x3ff) tcg_out_arithi(VAR_0, VAR_1, VAR_1, VAR_2 & 0x3ff, ARITH_OR); ...
[ "static inline void FUNC_0(TCGContext *VAR_0, int VAR_1, uint32_t VAR_2)\n{", "if (check_fit_tl(VAR_2, 12))\ntcg_out_movi_imm13(VAR_0, VAR_1, VAR_2);", "else {", "tcg_out_sethi(VAR_0, VAR_1, VAR_2);", "if (VAR_2 & 0x3ff)\ntcg_out_arithi(VAR_0, VAR_1, VAR_1, VAR_2 & 0x3ff, ARITH_OR);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ] ]
20,063
static void pcie_aer_msg(PCIDevice *dev, const PCIEAERMsg *msg) { uint8_t type; while (dev) { if (!pci_is_express(dev)) { /* just ignore it */ /* TODO: Shouldn't we set PCI_STATUS_SIG_SYSTEM_ERROR? * Consider e.g. a PCI bridge above a PCI Express device. */ ...
false
qemu
40f8f0c31b6009e802175463c97f3b9e6f7c5d0f
static void pcie_aer_msg(PCIDevice *dev, const PCIEAERMsg *msg) { uint8_t type; while (dev) { if (!pci_is_express(dev)) { return; } type = pcie_cap_get_type(dev); if ((type == PCI_EXP_TYPE_ROOT_PORT || type == PCI...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIDevice *VAR_0, const PCIEAERMsg *VAR_1) { uint8_t type; while (VAR_0) { if (!pci_is_express(VAR_0)) { return; } type = pcie_cap_get_type(VAR_0); if ((type == PCI_EXP_TYPE_ROOT_PORT || type ==...
[ "static void FUNC_0(PCIDevice *VAR_0, const PCIEAERMsg *VAR_1)\n{", "uint8_t type;", "while (VAR_0) {", "if (!pci_is_express(VAR_0)) {", "return;", "}", "type = pcie_cap_get_type(VAR_0);", "if ((type == PCI_EXP_TYPE_ROOT_PORT ||\ntype == PCI_EXP_TYPE_UPSTREAM ||\ntype == PCI_EXP_TYPE_DOWNSTREAM) &&\n!...
[ 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 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 63 ], [ 65 ], [ 67 ], ...
20,065
static int ide_drive_pio_post_load(void *opaque, int version_id) { IDEState *s = opaque; if (s->end_transfer_fn_idx < 0 || s->end_transfer_fn_idx > ARRAY_SIZE(transfer_end_table)) { return -EINVAL; } s->end_transfer_func = transfer_end_table[s->end_transfer_fn_idx]; s->data...
false
qemu
7bccf57383cca60a778d5c543ac80c9f62d89ef2
static int ide_drive_pio_post_load(void *opaque, int version_id) { IDEState *s = opaque; if (s->end_transfer_fn_idx < 0 || s->end_transfer_fn_idx > ARRAY_SIZE(transfer_end_table)) { return -EINVAL; } s->end_transfer_func = transfer_end_table[s->end_transfer_fn_idx]; s->data...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, int VAR_1) { IDEState *s = VAR_0; if (s->end_transfer_fn_idx < 0 || s->end_transfer_fn_idx > ARRAY_SIZE(transfer_end_table)) { return -EINVAL; } s->end_transfer_func = transfer_end_table[s->end_transfer_fn_idx]; s->data_ptr = s->io_buffer + s-...
[ "static int FUNC_0(void *VAR_0, int VAR_1)\n{", "IDEState *s = VAR_0;", "if (s->end_transfer_fn_idx < 0 ||\ns->end_transfer_fn_idx > ARRAY_SIZE(transfer_end_table)) {", "return -EINVAL;", "}", "s->end_transfer_func = transfer_end_table[s->end_transfer_fn_idx];", "s->data_ptr = s->io_buffer + s->cur_io_b...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
20,066
void timer_del(QEMUTimer *ts) { QEMUTimer **pt, *t; pt = &ts->timer_list->active_timers; for(;;) { t = *pt; if (!t) break; if (t == ts) { *pt = t->next; break; } pt = &t->next; } }
false
qemu
978f2205c791de0e02c8802a645bea657408abfd
void timer_del(QEMUTimer *ts) { QEMUTimer **pt, *t; pt = &ts->timer_list->active_timers; for(;;) { t = *pt; if (!t) break; if (t == ts) { *pt = t->next; break; } pt = &t->next; } }
{ "code": [], "line_no": [] }
void FUNC_0(QEMUTimer *VAR_0) { QEMUTimer **pt, *t; pt = &VAR_0->timer_list->active_timers; for(;;) { t = *pt; if (!t) break; if (t == VAR_0) { *pt = t->next; break; } pt = &t->next; } }
[ "void FUNC_0(QEMUTimer *VAR_0)\n{", "QEMUTimer **pt, *t;", "pt = &VAR_0->timer_list->active_timers;", "for(;;) {", "t = *pt;", "if (!t)\nbreak;", "if (t == VAR_0) {", "*pt = t->next;", "break;", "}", "pt = &t->next;", "}", "}" ]
[ 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 ] ]
20,069
static int xen_host_pci_get_value(XenHostPCIDevice *d, const char *name, unsigned int *pvalue, int base) { char path[PATH_MAX]; char buf[XEN_HOST_PCI_GET_VALUE_BUFFER_SIZE]; int fd, rc; unsigned long value; char *endptr; xen_host_pci_sysfs_path(d, name...
false
qemu
f524bc3b3da5bd595840fca93d43a9852b8d066f
static int xen_host_pci_get_value(XenHostPCIDevice *d, const char *name, unsigned int *pvalue, int base) { char path[PATH_MAX]; char buf[XEN_HOST_PCI_GET_VALUE_BUFFER_SIZE]; int fd, rc; unsigned long value; char *endptr; xen_host_pci_sysfs_path(d, name...
{ "code": [], "line_no": [] }
static int FUNC_0(XenHostPCIDevice *VAR_0, const char *VAR_1, unsigned int *VAR_2, int VAR_3) { char VAR_4[PATH_MAX]; char VAR_5[XEN_HOST_PCI_GET_VALUE_BUFFER_SIZE]; int VAR_6, VAR_7; unsigned long VAR_8; char *VAR_9; xen_host_pci_sysfs_path(VAR_0, VAR...
[ "static int FUNC_0(XenHostPCIDevice *VAR_0, const char *VAR_1,\nunsigned int *VAR_2, int VAR_3)\n{", "char VAR_4[PATH_MAX];", "char VAR_5[XEN_HOST_PCI_GET_VALUE_BUFFER_SIZE];", "int VAR_6, VAR_7;", "unsigned long VAR_8;", "char *VAR_9;", "xen_host_pci_sysfs_path(VAR_0, VAR_1, VAR_4, sizeof(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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
20,071
uint32_t helper_float_cvtw_s(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; wt2 = float32_to_int32(fst0, &env->active_fpu.fp_status); update_fcr31(env, GETPC()); if (get_float_exception_flags(&env->active_fpu.fp_status) & (float_flag_invalid | float_flag_overflow)) { wt2 = FP...
false
qemu
2b09f94cdbf5c54e2278d7f3aed2eceff3494790
uint32_t helper_float_cvtw_s(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; wt2 = float32_to_int32(fst0, &env->active_fpu.fp_status); update_fcr31(env, GETPC()); if (get_float_exception_flags(&env->active_fpu.fp_status) & (float_flag_invalid | float_flag_overflow)) { wt2 = FP...
{ "code": [], "line_no": [] }
uint32_t FUNC_0(CPUMIPSState *env, uint32_t fst0) { uint32_t wt2; wt2 = float32_to_int32(fst0, &env->active_fpu.fp_status); update_fcr31(env, GETPC()); if (get_float_exception_flags(&env->active_fpu.fp_status) & (float_flag_invalid | float_flag_overflow)) { wt2 = FP_TO_INT32_OVE...
[ "uint32_t FUNC_0(CPUMIPSState *env, uint32_t fst0)\n{", "uint32_t wt2;", "wt2 = float32_to_int32(fst0, &env->active_fpu.fp_status);", "update_fcr31(env, GETPC());", "if (get_float_exception_flags(&env->active_fpu.fp_status)\n& (float_flag_invalid | float_flag_overflow)) {", "wt2 = FP_TO_INT32_OVERFLOW;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
20,072
static void test_visitor_in_native_list_int16(TestInputVisitorData *data, const void *unused) { test_native_list_integer_helper(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_S16); }
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_visitor_in_native_list_int16(TestInputVisitorData *data, const void *unused) { test_native_list_integer_helper(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_S16); }
{ "code": [], "line_no": [] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { test_native_list_integer_helper(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_S16); }
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "test_native_list_integer_helper(VAR_0, VAR_1,\nUSER_DEF_NATIVE_LIST_UNION_KIND_S16);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
20,073
int get_osversion(void) { static int osversion; struct new_utsname buf; const char *s; int i, n, tmp; if (osversion) return osversion; if (qemu_uname_release && *qemu_uname_release) { s = qemu_uname_release; } else { if (sys_uname(&buf)) return...
false
qemu
4a24a758101ff726c9bd3b867e12d5580c793af0
int get_osversion(void) { static int osversion; struct new_utsname buf; const char *s; int i, n, tmp; if (osversion) return osversion; if (qemu_uname_release && *qemu_uname_release) { s = qemu_uname_release; } else { if (sys_uname(&buf)) return...
{ "code": [], "line_no": [] }
int FUNC_0(void) { static int VAR_0; struct new_utsname VAR_1; const char *VAR_2; int VAR_3, VAR_4, VAR_5; if (VAR_0) return VAR_0; if (qemu_uname_release && *qemu_uname_release) { VAR_2 = qemu_uname_release; } else { if (sys_uname(&VAR_1)) ret...
[ "int FUNC_0(void)\n{", "static int VAR_0;", "struct new_utsname VAR_1;", "const char *VAR_2;", "int VAR_3, VAR_4, VAR_5;", "if (VAR_0)\nreturn VAR_0;", "if (qemu_uname_release && *qemu_uname_release) {", "VAR_2 = qemu_uname_release;", "} else {", "if (sys_uname(&VAR_1))\nreturn 0;", "VAR_2 = 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
20,074
static int colo_packet_compare_common(Packet *ppkt, Packet *spkt) { trace_colo_compare_ip_info(ppkt->size, inet_ntoa(ppkt->ip->ip_src), inet_ntoa(ppkt->ip->ip_dst), spkt->size, inet_ntoa(spkt->ip->ip_src), inet_ntoa(sp...
false
qemu
6efeb3286dd80c8c943f50fbb5f611d525cd6f8a
static int colo_packet_compare_common(Packet *ppkt, Packet *spkt) { trace_colo_compare_ip_info(ppkt->size, inet_ntoa(ppkt->ip->ip_src), inet_ntoa(ppkt->ip->ip_dst), spkt->size, inet_ntoa(spkt->ip->ip_src), inet_ntoa(sp...
{ "code": [], "line_no": [] }
static int FUNC_0(Packet *VAR_0, Packet *VAR_1) { trace_colo_compare_ip_info(VAR_0->size, inet_ntoa(VAR_0->ip->ip_src), inet_ntoa(VAR_0->ip->ip_dst), VAR_1->size, inet_ntoa(VAR_1->ip->ip_src), inet_ntoa(VAR_1->ip->ip_d...
[ "static int FUNC_0(Packet *VAR_0, Packet *VAR_1)\n{", "trace_colo_compare_ip_info(VAR_0->size, inet_ntoa(VAR_0->ip->ip_src),\ninet_ntoa(VAR_0->ip->ip_dst), VAR_1->size,\ninet_ntoa(VAR_1->ip->ip_src),\ninet_ntoa(VAR_1->ip->ip_dst));", "if (VAR_0->size == VAR_1->size) {", "return memcmp(VAR_0->data, VAR_1->data...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
20,075
static int gdb_handle_packet(GDBState *s, const char *line_buf) { CPUState *env; const char *p; int ch, reg_size, type, res, thread; char buf[MAX_PACKET_LENGTH]; uint8_t mem_buf[MAX_PACKET_LENGTH]; uint8_t *registers; target_ulong addr, len; #ifdef DEBUG_GDB printf("command='...
false
qemu
8a34a0fb03191770a77026da164f3ad589c61407
static int gdb_handle_packet(GDBState *s, const char *line_buf) { CPUState *env; const char *p; int ch, reg_size, type, res, thread; char buf[MAX_PACKET_LENGTH]; uint8_t mem_buf[MAX_PACKET_LENGTH]; uint8_t *registers; target_ulong addr, len; #ifdef DEBUG_GDB printf("command='...
{ "code": [], "line_no": [] }
static int FUNC_0(GDBState *VAR_0, const char *VAR_1) { CPUState *env; const char *VAR_2; int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; char VAR_8[MAX_PACKET_LENGTH]; uint8_t mem_buf[MAX_PACKET_LENGTH]; uint8_t *registers; target_ulong addr, len; #ifdef DEBUG_GDB printf("command='%V...
[ "static int FUNC_0(GDBState *VAR_0, const char *VAR_1)\n{", "CPUState *env;", "const char *VAR_2;", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "char VAR_8[MAX_PACKET_LENGTH];", "uint8_t mem_buf[MAX_PACKET_LENGTH];", "uint8_t *registers;", "target_ulong addr, len;", "#ifdef DEBUG_GDB\nprintf(\"command...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33, 37 ], [ 39 ], [ 41 ], [ 51 ], [ 53 ], [ 55, 57 ...
20,076
static void s390_memory_init(ram_addr_t mem_size) { MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); /* allocate RAM for core */ memory_region_allocate_system_memory(ram, NULL, "s390.ram", mem_size); memory_region_add_subregion(sysmem, 0, ram); /...
false
qemu
bb223055b9b327ec66e1f6d2fbaebaee0b8f3dbe
static void s390_memory_init(ram_addr_t mem_size) { MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); memory_region_allocate_system_memory(ram, NULL, "s390.ram", mem_size); memory_region_add_subregion(sysmem, 0, ram); s390_skeys_init(); ...
{ "code": [], "line_no": [] }
static void FUNC_0(ram_addr_t VAR_0) { MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); memory_region_allocate_system_memory(ram, NULL, "s390.ram", VAR_0); memory_region_add_subregion(sysmem, 0, ram); s390_skeys_init(); s390_sta...
[ "static void FUNC_0(ram_addr_t VAR_0)\n{", "MemoryRegion *sysmem = get_system_memory();", "MemoryRegion *ram = g_new(MemoryRegion, 1);", "memory_region_allocate_system_memory(ram, NULL, \"s390.ram\", VAR_0);", "memory_region_add_subregion(sysmem, 0, ram);", "s390_skeys_init();", "s390_stattrib_init();",...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 21 ], [ 25 ], [ 27 ] ]
20,078
static int read_braindead_odml_indx(AVFormatContext *s, int frame_num){ AVIContext *avi = s->priv_data; AVIOContext *pb = s->pb; int longs_pre_entry= avio_rl16(pb); int index_sub_type = avio_r8(pb); int index_type = avio_r8(pb); int entries_in_use = avio_rl32(pb); int chunk_id ...
false
FFmpeg
570a4a0189946c2c983da41d37fdd67fa13266e7
static int read_braindead_odml_indx(AVFormatContext *s, int frame_num){ AVIContext *avi = s->priv_data; AVIOContext *pb = s->pb; int longs_pre_entry= avio_rl16(pb); int index_sub_type = avio_r8(pb); int index_type = avio_r8(pb); int entries_in_use = avio_rl32(pb); int chunk_id ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1){ AVIContext *avi = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; int VAR_2= avio_rl16(pb); int VAR_3 = avio_r8(pb); int VAR_4 = avio_r8(pb); int VAR_5 = avio_rl32(pb); int VAR_6 = avio_rl32(pb); int64_t base = ...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1){", "AVIContext *avi = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "int VAR_2= avio_rl16(pb);", "int VAR_3 = avio_r8(pb);", "int VAR_4 = avio_r8(pb);", "int VAR_5 = avio_rl32(pb);", "int VAR_6 = avio_rl32(pb);", "int64_t base ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [...
20,079
static void qapi_dealloc_start_list(Visitor *v, const char *name, Error **errp) { QapiDeallocVisitor *qov = to_qov(v); qapi_dealloc_push(qov, NULL); }
false
qemu
d9f62dde1303286b24ac8ce88be27e2b9b9c5f46
static void qapi_dealloc_start_list(Visitor *v, const char *name, Error **errp) { QapiDeallocVisitor *qov = to_qov(v); qapi_dealloc_push(qov, NULL); }
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, Error **VAR_2) { QapiDeallocVisitor *qov = to_qov(VAR_0); qapi_dealloc_push(qov, NULL); }
[ "static void FUNC_0(Visitor *VAR_0, const char *VAR_1, Error **VAR_2)\n{", "QapiDeallocVisitor *qov = to_qov(VAR_0);", "qapi_dealloc_push(qov, NULL);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
20,080
int event_notifier_set_handler(EventNotifier *e, EventNotifierHandler *handler) { return qemu_set_fd_handler(e->fd, (IOHandler *)handler, NULL, e); }
false
qemu
d0cc2fbfa607678866475383c508be84818ceb64
int event_notifier_set_handler(EventNotifier *e, EventNotifierHandler *handler) { return qemu_set_fd_handler(e->fd, (IOHandler *)handler, NULL, e); }
{ "code": [], "line_no": [] }
int FUNC_0(EventNotifier *VAR_0, EventNotifierHandler *VAR_1) { return qemu_set_fd_handler(VAR_0->fd, (IOHandler *)VAR_1, NULL, VAR_0); }
[ "int FUNC_0(EventNotifier *VAR_0,\nEventNotifierHandler *VAR_1)\n{", "return qemu_set_fd_handler(VAR_0->fd, (IOHandler *)VAR_1, NULL, VAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
20,081
static ObjectClass *alpha_cpu_class_by_name(const char *cpu_model) { ObjectClass *oc = NULL; char *typename; int i; if (cpu_model == NULL) { return NULL; } oc = object_class_by_name(cpu_model); if (oc != NULL && object_class_dynamic_cast(oc, TYPE_ALPHA_CPU) != NULL && ...
false
qemu
82a3d1f81f8e401c6c34cba541970197aba2bb9a
static ObjectClass *alpha_cpu_class_by_name(const char *cpu_model) { ObjectClass *oc = NULL; char *typename; int i; if (cpu_model == NULL) { return NULL; } oc = object_class_by_name(cpu_model); if (oc != NULL && object_class_dynamic_cast(oc, TYPE_ALPHA_CPU) != NULL && ...
{ "code": [], "line_no": [] }
static ObjectClass *FUNC_0(const char *cpu_model) { ObjectClass *oc = NULL; char *VAR_0; int VAR_1; if (cpu_model == NULL) { return NULL; } oc = object_class_by_name(cpu_model); if (oc != NULL && object_class_dynamic_cast(oc, TYPE_ALPHA_CPU) != NULL && !object_c...
[ "static ObjectClass *FUNC_0(const char *cpu_model)\n{", "ObjectClass *oc = NULL;", "char *VAR_0;", "int VAR_1;", "if (cpu_model == NULL) {", "return NULL;", "}", "oc = object_class_by_name(cpu_model);", "if (oc != NULL && object_class_dynamic_cast(oc, TYPE_ALPHA_CPU) != NULL &&\n!object_class_is_abs...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [...
20,082
void qmp_migrate(const char *uri, bool has_blk, bool blk, bool has_inc, bool inc, bool has_detach, bool detach, Error **errp) { Error *local_err = NULL; MigrationState *s = migrate_get_current(); MigrationParams params; const char *p; params.blk = has_blk ...
false
qemu
0b827d5e7291193887d22d058bc20c12b423047c
void qmp_migrate(const char *uri, bool has_blk, bool blk, bool has_inc, bool inc, bool has_detach, bool detach, Error **errp) { Error *local_err = NULL; MigrationState *s = migrate_get_current(); MigrationParams params; const char *p; params.blk = has_blk ...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, bool VAR_1, bool VAR_2, bool VAR_3, bool VAR_4, bool VAR_5, bool VAR_6, Error **VAR_7) { Error *local_err = NULL; MigrationState *s = migrate_get_current(); MigrationParams params; const char *VAR_8; params.VAR_2 = VAR_1 && V...
[ "void FUNC_0(const char *VAR_0, bool VAR_1, bool VAR_2,\nbool VAR_3, bool VAR_4, bool VAR_5, bool VAR_6,\nError **VAR_7)\n{", "Error *local_err = NULL;", "MigrationState *s = migrate_get_current();", "MigrationParams params;", "const char *VAR_8;", "params.VAR_2 = VAR_1 && VAR_2;", "params.shared = 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
20,083
static void imx_avic_write(void *opaque, target_phys_addr_t offset, uint64_t val, unsigned size) { IMXAVICState *s = (IMXAVICState *)opaque; /* Vector Registers not yet supported */ if (offset >= 0x100 && offset <= 0x2fc) { IPRINTF("imx_avic_write to vector register...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void imx_avic_write(void *opaque, target_phys_addr_t offset, uint64_t val, unsigned size) { IMXAVICState *s = (IMXAVICState *)opaque; if (offset >= 0x100 && offset <= 0x2fc) { IPRINTF("imx_avic_write to vector register %d ignored\n", (unsign...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { IMXAVICState *s = (IMXAVICState *)VAR_0; if (VAR_1 >= 0x100 && VAR_1 <= 0x2fc) { IPRINTF("FUNC_0 to vector register %d ignored\n", (unsigned int)((VAR_1 - 0...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "IMXAVICState *s = (IMXAVICState *)VAR_0;", "if (VAR_1 >= 0x100 && VAR_1 <= 0x2fc) {", "IPRINTF(\"FUNC_0 to vector register %d ignored\\n\",\n(unsigned int)((VAR_1 - 0x100) >> 2));", "return;", "}", "DPRINTF...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 53, 55 ], [ 57...
20,084
QemuOpts *qemu_opts_create(QemuOptsList *list, const char *id, int fail_if_exists) { QemuOpts *opts = NULL; if (id) { opts = qemu_opts_find(list, id); if (opts != NULL) { if (fail_if_exists) { fprintf(stderr, "tried to create id \"%s\" twice for \"%s\"\n", ...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
QemuOpts *qemu_opts_create(QemuOptsList *list, const char *id, int fail_if_exists) { QemuOpts *opts = NULL; if (id) { opts = qemu_opts_find(list, id); if (opts != NULL) { if (fail_if_exists) { fprintf(stderr, "tried to create id \"%s\" twice for \"%s\"\n", ...
{ "code": [], "line_no": [] }
QemuOpts *FUNC_0(QemuOptsList *list, const char *id, int fail_if_exists) { QemuOpts *opts = NULL; if (id) { opts = qemu_opts_find(list, id); if (opts != NULL) { if (fail_if_exists) { fprintf(stderr, "tried to create id \"%s\" twice for \"%s\"\n", ...
[ "QemuOpts *FUNC_0(QemuOptsList *list, const char *id, int fail_if_exists)\n{", "QemuOpts *opts = NULL;", "if (id) {", "opts = qemu_opts_find(list, id);", "if (opts != NULL) {", "if (fail_if_exists) {", "fprintf(stderr, \"tried to create id \\\"%s\\\" twice for \\\"%s\\\"\\n\",\nid, list->name);", "ret...
[ 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 ], ...
20,085
static void tco_timer_expired(void *opaque) { TCOIORegs *tr = opaque; ICH9LPCPMRegs *pm = container_of(tr, ICH9LPCPMRegs, tco_regs); ICH9LPCState *lpc = container_of(pm, ICH9LPCState, pm); uint32_t gcs = pci_get_long(lpc->chip_config + ICH9_CC_GCS); tr->tco.rld = 0; tr->tco.sts1 |= TCO_...
false
qemu
5add35bec1e249bb5345a47008c8f298d4760be4
static void tco_timer_expired(void *opaque) { TCOIORegs *tr = opaque; ICH9LPCPMRegs *pm = container_of(tr, ICH9LPCPMRegs, tco_regs); ICH9LPCState *lpc = container_of(pm, ICH9LPCState, pm); uint32_t gcs = pci_get_long(lpc->chip_config + ICH9_CC_GCS); tr->tco.rld = 0; tr->tco.sts1 |= TCO_...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { TCOIORegs *tr = VAR_0; ICH9LPCPMRegs *pm = container_of(tr, ICH9LPCPMRegs, tco_regs); ICH9LPCState *lpc = container_of(pm, ICH9LPCState, pm); uint32_t gcs = pci_get_long(lpc->chip_config + ICH9_CC_GCS); tr->tco.rld = 0; tr->tco.sts1 |= TCO_TIMEOUT; ...
[ "static void FUNC_0(void *VAR_0)\n{", "TCOIORegs *tr = VAR_0;", "ICH9LPCPMRegs *pm = container_of(tr, ICH9LPCPMRegs, tco_regs);", "ICH9LPCState *lpc = container_of(pm, ICH9LPCState, pm);", "uint32_t gcs = pci_get_long(lpc->chip_config + ICH9_CC_GCS);", "tr->tco.rld = 0;", "tr->tco.sts1 |= TCO_TIMEOUT;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
20,087
static void access_with_adjusted_size(hwaddr addr, uint64_t *value, unsigned size, unsigned access_size_min, unsigned access_size_max, ...
false
qemu
e7342aa39b3193473ded24cbf2233930665796e9
static void access_with_adjusted_size(hwaddr addr, uint64_t *value, unsigned size, unsigned access_size_min, unsigned access_size_max, ...
{ "code": [], "line_no": [] }
static void FUNC_0(hwaddr VAR_7, uint64_t *VAR_7, unsigned VAR_7, unsigned VAR_3, unsigned VAR_4, void (*VAR_5)(MemoryRegion ...
[ "static void FUNC_0(hwaddr VAR_7,\nuint64_t *VAR_7,\nunsigned VAR_7,\nunsigned VAR_3,\nunsigned VAR_4,\nvoid (*VAR_5)(MemoryRegion *VAR_9,\nhwaddr VAR_7,\nuint64_t *VAR_7,\nunsigned VAR_7,\nunsigned VAR_7,\nuint64_t VAR_8),\nMemoryRegion *VAR_9)\n{", "uint64_t access_mask;", "unsigned VAR_9;", "unsigned VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [ 57, 59,...
20,088
static void scsi_disk_emulate_write_same(SCSIDiskReq *r, uint8_t *inbuf) { SCSIRequest *req = &r->req; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); uint32_t nb_sectors = scsi_data_cdb_length(r->req.cmd.buf); WriteSameCBData *data; uint8_t *buf; int i; /* Fail if PBD...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void scsi_disk_emulate_write_same(SCSIDiskReq *r, uint8_t *inbuf) { SCSIRequest *req = &r->req; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); uint32_t nb_sectors = scsi_data_cdb_length(r->req.cmd.buf); WriteSameCBData *data; uint8_t *buf; int i; if (nb_s...
{ "code": [], "line_no": [] }
static void FUNC_0(SCSIDiskReq *VAR_0, uint8_t *VAR_1) { SCSIRequest *req = &VAR_0->req; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); uint32_t nb_sectors = scsi_data_cdb_length(VAR_0->req.cmd.buf); WriteSameCBData *data; uint8_t *buf; int VAR_2; if (nb_sectors...
[ "static void FUNC_0(SCSIDiskReq *VAR_0, uint8_t *VAR_1)\n{", "SCSIRequest *req = &VAR_0->req;", "SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);", "uint32_t nb_sectors = scsi_data_cdb_length(VAR_0->req.cmd.buf);", "WriteSameCBData *data;", "uint8_t *buf;", "int VAR_2;", "if (nb_sectors ==...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
20,089
static int kvm_put_msr_feature_control(X86CPU *cpu) { struct { struct kvm_msrs info; struct kvm_msr_entry entry; } msr_data; kvm_msr_entry_set(&msr_data.entry, MSR_IA32_FEATURE_CONTROL, cpu->env.msr_ia32_feature_control); msr_data.info.nmsrs = 1; retu...
false
qemu
c7fe4b12984a36b87438080e48aff5e8f6d48ac9
static int kvm_put_msr_feature_control(X86CPU *cpu) { struct { struct kvm_msrs info; struct kvm_msr_entry entry; } msr_data; kvm_msr_entry_set(&msr_data.entry, MSR_IA32_FEATURE_CONTROL, cpu->env.msr_ia32_feature_control); msr_data.info.nmsrs = 1; retu...
{ "code": [], "line_no": [] }
static int FUNC_0(X86CPU *VAR_0) { struct { struct kvm_msrs info; struct kvm_msr_entry entry; } VAR_1; kvm_msr_entry_set(&VAR_1.entry, MSR_IA32_FEATURE_CONTROL, VAR_0->env.msr_ia32_feature_control); VAR_1.info.nmsrs = 1; return kvm_vcpu_ioctl(CPU(VAR_...
[ "static int FUNC_0(X86CPU *VAR_0)\n{", "struct {", "struct kvm_msrs info;", "struct kvm_msr_entry entry;", "} VAR_1;", "kvm_msr_entry_set(&VAR_1.entry, MSR_IA32_FEATURE_CONTROL,\nVAR_0->env.msr_ia32_feature_control);", "VAR_1.info.nmsrs = 1;", "return kvm_vcpu_ioctl(CPU(VAR_0), KVM_SET_MSRS, &VAR_1);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
20,090
static void ppc_prep_init (int ram_size, int vga_ram_size, const char *boot_device, DisplayState *ds, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, ...
false
qemu
4018bae91649e8e38e371dc00cb5ac8f9e40089e
static void ppc_prep_init (int ram_size, int vga_ram_size, const char *boot_device, DisplayState *ds, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, ...
{ "code": [], "line_no": [] }
static void FUNC_0 (int VAR_0, int VAR_1, const char *VAR_2, DisplayState *VAR_3, const char *VAR_4, const char *VAR_5, const char *VAR_6, const char *VAR_7) { CPUState *env ...
[ "static void FUNC_0 (int VAR_0, int VAR_1,\nconst char *VAR_2, DisplayState *VAR_3,\nconst char *VAR_4,\nconst char *VAR_5,\nconst char *VAR_6,\nconst char *VAR_7)\n{", "CPUState *env = NULL, *envs[MAX_CPUS];", "char VAR_8[1024];", "nvram_t nvram;", "m48t59_t *m48t59;", "int VAR_9;", "int VAR_10, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 47 ], [ 53, 55 ], [...
20,091
static void mpeg1_skip_picture(MpegEncContext *s, int pict_num) { assert(s->codec_id == CODEC_ID_MPEG1VIDEO); // mpeg2 can do these repeat things /* mpeg1 picture header */ put_header(s, PICTURE_START_CODE); /* temporal reference */ put_bits(&s->pb, 10, pict_num & 0x3ff); put_bit...
false
FFmpeg
2c492e94fc9d8a5e998b25f4d0390c95f2d4674f
static void mpeg1_skip_picture(MpegEncContext *s, int pict_num) { assert(s->codec_id == CODEC_ID_MPEG1VIDEO); put_header(s, PICTURE_START_CODE); put_bits(&s->pb, 10, pict_num & 0x3ff); put_bits(&s->pb, 3, P_TYPE); put_bits(&s->pb, 16, 0xffff); put_bits(&s->pb,...
{ "code": [], "line_no": [] }
static void FUNC_0(MpegEncContext *VAR_0, int VAR_1) { assert(VAR_0->codec_id == CODEC_ID_MPEG1VIDEO); put_header(VAR_0, PICTURE_START_CODE); put_bits(&VAR_0->pb, 10, VAR_1 & 0x3ff); put_bits(&VAR_0->pb, 3, P_TYPE); put_bits(&VAR_0->pb, 16, 0xffff); put_bits(&...
[ "static void FUNC_0(MpegEncContext *VAR_0, int VAR_1)\n{", "assert(VAR_0->codec_id == CODEC_ID_MPEG1VIDEO);", "put_header(VAR_0, PICTURE_START_CODE);", "put_bits(&VAR_0->pb, 10, VAR_1 & 0x3ff);", "put_bits(&VAR_0->pb, 3, P_TYPE);", "put_bits(&VAR_0->pb, 16, 0xffff);", "put_bits(&VAR_0->pb, 1, 1);", "p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 51 ], [ 57 ], [ 59 ], [ 65 ], [ 71 ], [ 77 ], [ 7...
20,092
static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) { USBDevice *dev; USBEndpoint *ep; uint32_t i, len, pid, dir, devaddr, endp; uint32_t pg, off, ptr1, ptr2, max, mult; ehci->periodic_sched_active = PERIODIC_ACT...
false
qemu
adbecc89731cf3e0ae656d50ea9fa58c589c4bdc
static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) { USBDevice *dev; USBEndpoint *ep; uint32_t i, len, pid, dir, devaddr, endp; uint32_t pg, off, ptr1, ptr2, max, mult; ehci->periodic_sched_active = PERIODIC_ACT...
{ "code": [], "line_no": [] }
static int FUNC_0(EHCIState *VAR_0, EHCIitd *VAR_1, uint32_t VAR_2) { USBDevice *dev; USBEndpoint *ep; uint32_t i, len, pid, dir, devaddr, endp; uint32_t pg, off, ptr1, ptr2, max, mult; VAR_0->periodic_sched_active = PERIODIC_ACTIVE; ...
[ "static int FUNC_0(EHCIState *VAR_0,\nEHCIitd *VAR_1,\nuint32_t VAR_2)\n{", "USBDevice *dev;", "USBEndpoint *ep;", "uint32_t i, len, pid, dir, devaddr, endp;", "uint32_t pg, off, ptr1, ptr2, max, mult;", "VAR_0->periodic_sched_active = PERIODIC_ACTIVE;", "dir =(VAR_1->bufptr[1] & ITD_BUFPTR_DIRECTION);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
20,093
uint64_t helper_fctid (uint64_t arg) { CPU_DoubleU farg; farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { /* sNaN conversion */ farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI); } else if (unlikely(float64_is_nan(farg.d) || float64_...
false
qemu
185698715dfb18c82ad2a5dbc169908602d43e81
uint64_t helper_fctid (uint64_t arg) { CPU_DoubleU farg; farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI); } else if (unlikely(float64_is_nan(farg.d) || float64_is_infinity(farg.d)))...
{ "code": [], "line_no": [] }
uint64_t FUNC_0 (uint64_t arg) { CPU_DoubleU farg; farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI); } else if (unlikely(float64_is_nan(farg.d) || float64_is_infinity(farg.d))) { ...
[ "uint64_t FUNC_0 (uint64_t arg)\n{", "CPU_DoubleU farg;", "farg.ll = arg;", "if (unlikely(float64_is_signaling_nan(farg.d))) {", "farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);", "} else if (unlikely(float64_is_nan(farg.d) || float64_is_infinity(farg.d))) {", "farg.ll =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
20,094
static void pc_q35_init(MachineState *machine) { PCMachineState *pcms = PC_MACHINE(machine); Q35PCIHost *q35_host; PCIHostState *phb; PCIBus *host_bus; PCIDevice *lpc; BusState *idebus[MAX_SATA_PORTS]; ISADevice *rtc_state; MemoryRegion *pci_memory; MemoryRegion *rom_memory...
false
qemu
46232aaacb66733d3e16dcbd0d26c32ec388801d
static void pc_q35_init(MachineState *machine) { PCMachineState *pcms = PC_MACHINE(machine); Q35PCIHost *q35_host; PCIHostState *phb; PCIBus *host_bus; PCIDevice *lpc; BusState *idebus[MAX_SATA_PORTS]; ISADevice *rtc_state; MemoryRegion *pci_memory; MemoryRegion *rom_memory...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { PCMachineState *pcms = PC_MACHINE(VAR_0); Q35PCIHost *q35_host; PCIHostState *phb; PCIBus *host_bus; PCIDevice *lpc; BusState *idebus[MAX_SATA_PORTS]; ISADevice *rtc_state; MemoryRegion *pci_memory; MemoryRegion *rom_memory; Me...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "PCMachineState *pcms = PC_MACHINE(VAR_0);", "Q35PCIHost *q35_host;", "PCIHostState *phb;", "PCIBus *host_bus;", "PCIDevice *lpc;", "BusState *idebus[MAX_SATA_PORTS];", "ISADevice *rtc_state;", "MemoryRegion *pci_memory;", "MemoryRegion *rom_memory;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
20,096
static uint32_t nvram_readl (void *opaque, target_phys_addr_t addr) { M48t59State *NVRAM = opaque; uint32_t retval; retval = m48t59_read(NVRAM, addr) << 24; retval |= m48t59_read(NVRAM, addr + 1) << 16; retval |= m48t59_read(NVRAM, addr + 2) << 8; retval |= m48t59_read(NVRAM, addr + 3);...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint32_t nvram_readl (void *opaque, target_phys_addr_t addr) { M48t59State *NVRAM = opaque; uint32_t retval; retval = m48t59_read(NVRAM, addr) << 24; retval |= m48t59_read(NVRAM, addr + 1) << 16; retval |= m48t59_read(NVRAM, addr + 2) << 8; retval |= m48t59_read(NVRAM, addr + 3);...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0 (void *opaque, target_phys_addr_t addr) { M48t59State *NVRAM = opaque; uint32_t retval; retval = m48t59_read(NVRAM, addr) << 24; retval |= m48t59_read(NVRAM, addr + 1) << 16; retval |= m48t59_read(NVRAM, addr + 2) << 8; retval |= m48t59_read(NVRAM, addr + 3); ...
[ "static uint32_t FUNC_0 (void *opaque, target_phys_addr_t addr)\n{", "M48t59State *NVRAM = opaque;", "uint32_t retval;", "retval = m48t59_read(NVRAM, addr) << 24;", "retval |= m48t59_read(NVRAM, addr + 1) << 16;", "retval |= m48t59_read(NVRAM, addr + 2) << 8;", "retval |= m48t59_read(NVRAM, addr + 3);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
20,097
static void tcg_out_label(TCGContext *s, int label_index, tcg_insn_unit *ptr) { TCGLabel *l = &s->labels[label_index]; intptr_t value = (intptr_t)ptr; TCGRelocation *r; assert(!l->has_value); for (r = l->u.first_reloc; r != NULL; r = r->next) { patch_reloc(r->ptr, r->type, value, ...
false
qemu
bec1631100323fac0900aea71043d5c4e22fc2fa
static void tcg_out_label(TCGContext *s, int label_index, tcg_insn_unit *ptr) { TCGLabel *l = &s->labels[label_index]; intptr_t value = (intptr_t)ptr; TCGRelocation *r; assert(!l->has_value); for (r = l->u.first_reloc; r != NULL; r = r->next) { patch_reloc(r->ptr, r->type, value, ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, int VAR_1, tcg_insn_unit *VAR_2) { TCGLabel *l = &VAR_0->labels[VAR_1]; intptr_t value = (intptr_t)VAR_2; TCGRelocation *r; assert(!l->has_value); for (r = l->u.first_reloc; r != NULL; r = r->next) { patch_reloc(r->VAR_2, r->type, value, r->ad...
[ "static void FUNC_0(TCGContext *VAR_0, int VAR_1, tcg_insn_unit *VAR_2)\n{", "TCGLabel *l = &VAR_0->labels[VAR_1];", "intptr_t value = (intptr_t)VAR_2;", "TCGRelocation *r;", "assert(!l->has_value);", "for (r = l->u.first_reloc; r != NULL; r = r->next) {", "patch_reloc(r->VAR_2, r->type, value, r->adden...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ] ]
20,099
static CharDriverState *qemu_chr_open_mux(CharDriverState *drv) { CharDriverState *chr; MuxDriver *d; chr = g_malloc0(sizeof(CharDriverState)); d = g_malloc0(sizeof(MuxDriver)); chr->opaque = d; d->drv = drv; d->focus = -1; chr->chr_write = mux_chr_write; chr->chr_updat...
false
qemu
db39fcf1f690b02d612e2bfc00980700887abe03
static CharDriverState *qemu_chr_open_mux(CharDriverState *drv) { CharDriverState *chr; MuxDriver *d; chr = g_malloc0(sizeof(CharDriverState)); d = g_malloc0(sizeof(MuxDriver)); chr->opaque = d; d->drv = drv; d->focus = -1; chr->chr_write = mux_chr_write; chr->chr_updat...
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(CharDriverState *drv) { CharDriverState *chr; MuxDriver *d; chr = g_malloc0(sizeof(CharDriverState)); d = g_malloc0(sizeof(MuxDriver)); chr->opaque = d; d->drv = drv; d->focus = -1; chr->chr_write = mux_chr_write; chr->chr_update_read_hand...
[ "static CharDriverState *FUNC_0(CharDriverState *drv)\n{", "CharDriverState *chr;", "MuxDriver *d;", "chr = g_malloc0(sizeof(CharDriverState));", "d = g_malloc0(sizeof(MuxDriver));", "chr->opaque = d;", "d->drv = drv;", "d->focus = -1;", "chr->chr_write = mux_chr_write;", "chr->chr_update_read_han...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
20,100
static int xen_domain_watcher(void) { int qemu_running = 1; int fd[2], i, n, rc; char byte; if (pipe(fd) != 0) { qemu_log("%s: Huh? pipe error: %s\n", __FUNCTION__, strerror(errno)); return -1; } if (fork() != 0) return 0; /* not child */ /* close all f...
false
qemu
d5b93ddfefe63d5869a8eb97ea3474867d3b105b
static int xen_domain_watcher(void) { int qemu_running = 1; int fd[2], i, n, rc; char byte; if (pipe(fd) != 0) { qemu_log("%s: Huh? pipe error: %s\n", __FUNCTION__, strerror(errno)); return -1; } if (fork() != 0) return 0; n = getdtablesize(); ...
{ "code": [], "line_no": [] }
static int FUNC_0(void) { int VAR_0 = 1; int VAR_1[2], VAR_2, VAR_3, VAR_4; char VAR_5; if (pipe(VAR_1) != 0) { qemu_log("%s: Huh? pipe error: %s\VAR_3", __FUNCTION__, strerror(errno)); return -1; } if (fork() != 0) return 0; VAR_3 = getdtables...
[ "static int FUNC_0(void)\n{", "int VAR_0 = 1;", "int VAR_1[2], VAR_2, VAR_3, VAR_4;", "char VAR_5;", "if (pipe(VAR_1) != 0) {", "qemu_log(\"%s: Huh? pipe error: %s\\VAR_3\", __FUNCTION__, strerror(errno));", "return -1;", "}", "if (fork() != 0)\nreturn 0;", "VAR_3 = getdtablesize();", "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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 59 ], [...
20,101
static int vnc_update_client(VncState *vs, int has_dirty, bool sync) { if (vs->need_update && vs->csock != -1) { VncDisplay *vd = vs->vd; VncJob *job; int y; int height; int n = 0; if (vs->output.offset && !vs->audio_cap && !vs->force_update) /*...
false
qemu
2f487a3d40faff1772e14da6b921900915501f9a
static int vnc_update_client(VncState *vs, int has_dirty, bool sync) { if (vs->need_update && vs->csock != -1) { VncDisplay *vd = vs->vd; VncJob *job; int y; int height; int n = 0; if (vs->output.offset && !vs->audio_cap && !vs->force_update) ...
{ "code": [], "line_no": [] }
static int FUNC_0(VncState *VAR_0, int VAR_1, bool VAR_2) { if (VAR_0->need_update && VAR_0->csock != -1) { VncDisplay *vd = VAR_0->vd; VncJob *job; int VAR_3; int VAR_4; int VAR_5 = 0; if (VAR_0->output.VAR_9 && !VAR_0->audio_cap && !VAR_0->force_update) ...
[ "static int FUNC_0(VncState *VAR_0, int VAR_1, bool VAR_2)\n{", "if (VAR_0->need_update && VAR_0->csock != -1) {", "VncDisplay *vd = VAR_0->vd;", "VncJob *job;", "int VAR_3;", "int VAR_4;", "int VAR_5 = 0;", "if (VAR_0->output.VAR_9 && !VAR_0->audio_cap && !VAR_0->force_update)\nreturn 0;", "if (!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, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 23 ], [ 27, 29 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61, 63, 65 ], [ 67 ], [ 71 ...
20,103
static int input_init(struct XenDevice *xendev) { struct XenInput *in = container_of(xendev, struct XenInput, c.xendev); if (!in->c.ds) { xen_be_printf(xendev, 1, "ds not set (yet)\n"); return -1; } xenstore_write_be_int(xendev, "feature-abs-pointer", 1); return 0; }
false
qemu
37cdfcf194825d03334542297bee3a3a4723e6e3
static int input_init(struct XenDevice *xendev) { struct XenInput *in = container_of(xendev, struct XenInput, c.xendev); if (!in->c.ds) { xen_be_printf(xendev, 1, "ds not set (yet)\n"); return -1; } xenstore_write_be_int(xendev, "feature-abs-pointer", 1); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(struct XenDevice *VAR_0) { struct XenInput *VAR_1 = container_of(VAR_0, struct XenInput, c.VAR_0); if (!VAR_1->c.ds) { xen_be_printf(VAR_0, 1, "ds not set (yet)\n"); return -1; } xenstore_write_be_int(VAR_0, "feature-abs-pointer", 1); return 0; }
[ "static int FUNC_0(struct XenDevice *VAR_0)\n{", "struct XenInput *VAR_1 = container_of(VAR_0, struct XenInput, c.VAR_0);", "if (!VAR_1->c.ds) {", "xen_be_printf(VAR_0, 1, \"ds not set (yet)\\n\");", "return -1;", "}", "xenstore_write_be_int(VAR_0, \"feature-abs-pointer\", 1);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ] ]
20,104
static int start_auth_vnc(VncState *vs) { make_challenge(vs); /* Send client a 'random' challenge */ vnc_write(vs, vs->challenge, sizeof(vs->challenge)); vnc_flush(vs); vnc_read_when(vs, protocol_client_auth_vnc, sizeof(vs->challenge)); return 0; }
false
qemu
5fb6c7a8b26eab1a22207d24b4784bd2b39ab54b
static int start_auth_vnc(VncState *vs) { make_challenge(vs); vnc_write(vs, vs->challenge, sizeof(vs->challenge)); vnc_flush(vs); vnc_read_when(vs, protocol_client_auth_vnc, sizeof(vs->challenge)); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(VncState *VAR_0) { make_challenge(VAR_0); vnc_write(VAR_0, VAR_0->challenge, sizeof(VAR_0->challenge)); vnc_flush(VAR_0); vnc_read_when(VAR_0, protocol_client_auth_vnc, sizeof(VAR_0->challenge)); return 0; }
[ "static int FUNC_0(VncState *VAR_0)\n{", "make_challenge(VAR_0);", "vnc_write(VAR_0, VAR_0->challenge, sizeof(VAR_0->challenge));", "vnc_flush(VAR_0);", "vnc_read_when(VAR_0, protocol_client_auth_vnc, sizeof(VAR_0->challenge));", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ] ]
20,107
static void io_region_del(MemoryListener *listener, MemoryRegionSection *section) { isa_unassign_ioport(section->offset_within_address_space, int128_get64(section->size)); }
false
qemu
b40acf99bef69fa8ab0f9092ff162fde945eec12
static void io_region_del(MemoryListener *listener, MemoryRegionSection *section) { isa_unassign_ioport(section->offset_within_address_space, int128_get64(section->size)); }
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryListener *VAR_0, MemoryRegionSection *VAR_1) { isa_unassign_ioport(VAR_1->offset_within_address_space, int128_get64(VAR_1->size)); }
[ "static void FUNC_0(MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1)\n{", "isa_unassign_ioport(VAR_1->offset_within_address_space,\nint128_get64(VAR_1->size));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
20,108
static void disas_thumb_insn(CPUState *env, DisasContext *s) { uint32_t val, insn, op, rm, rn, rd, shift, cond; int32_t offset; int i; TCGv tmp; TCGv tmp2; TCGv addr; if (s->condexec_mask) { cond = s->condexec_cond; if (cond != 0x0e) { /* Skip conditional when...
false
qemu
be5e7a76010bd14d09f74504ed6368782e701888
static void disas_thumb_insn(CPUState *env, DisasContext *s) { uint32_t val, insn, op, rm, rn, rd, shift, cond; int32_t offset; int i; TCGv tmp; TCGv tmp2; TCGv addr; if (s->condexec_mask) { cond = s->condexec_cond; if (cond != 0x0e) { s->condlabel...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0, DisasContext *VAR_1) { uint32_t val, insn, op, rm, rn, rd, shift, cond; int32_t offset; int VAR_2; TCGv tmp; TCGv tmp2; TCGv addr; if (VAR_1->condexec_mask) { cond = VAR_1->condexec_cond; if (cond != 0x0e) { VAR_...
[ "static void FUNC_0(CPUState *VAR_0, DisasContext *VAR_1)\n{", "uint32_t val, insn, op, rm, rn, rd, shift, cond;", "int32_t offset;", "int VAR_2;", "TCGv tmp;", "TCGv tmp2;", "TCGv addr;", "if (VAR_1->condexec_mask) {", "cond = VAR_1->condexec_cond;", "if (cond != 0x0e) {", "VAR_1->condlabel = g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 49 ], [...
20,111
static int ape_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; APEContext *s = avctx->priv_data; int16_t *samples = data; int nblocks; ...
true
FFmpeg
b7e514575982fd2f5db5ea4f3b466d6dd6a08aa7
static int ape_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; APEContext *s = avctx->priv_data; int16_t *samples = data; int nblocks; ...
{ "code": [ " nblocks = s->samples = bytestream_get_be32(&s->ptr);", " if (s->samples <= 0) {" ], "line_no": [ 57, 79 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; APEContext *s = VAR_0->priv_data; int16_t *samples = VAR_1; int VAR_6; int VAR_7, VA...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "APEContext *s = VAR_0->priv_data;", "int16_t *samples = VAR_1;", "int VAR_6;", "int VAR_7, VAR_8;", "int VAR_9;", "int VAR_10;", "if (BLOC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
20,112
static void aarch64_numa_cpu(const void *data) { char *cli; QDict *resp; QList *cpus; const QObject *e; cli = make_cli(data, "-smp 2 " "-numa node,nodeid=0 -numa node,nodeid=1 " "-numa cpu,node-id=1,thread-id=0 " "-numa cpu,node-id=0,thread-id=1"); qtest_start...
true
qemu
5e39d89d20b17cf6fb7f09d181d34f17b2ae2160
static void aarch64_numa_cpu(const void *data) { char *cli; QDict *resp; QList *cpus; const QObject *e; cli = make_cli(data, "-smp 2 " "-numa node,nodeid=0 -numa node,nodeid=1 " "-numa cpu,node-id=1,thread-id=0 " "-numa cpu,node-id=0,thread-id=1"); qtest_start...
{ "code": [ " const QObject *e;", " const QObject *e;", " const QObject *e;", " const QObject *e;" ], "line_no": [ 11, 11, 11, 11 ] }
static void FUNC_0(const void *VAR_0) { char *VAR_1; QDict *resp; QList *cpus; const QObject *VAR_2; VAR_1 = make_cli(VAR_0, "-smp 2 " "-numa node,nodeid=0 -numa node,nodeid=1 " "-numa cpu,node-id=1,thread-id=0 " "-numa cpu,node-id=0,thread-id=1"); qtest_start...
[ "static void FUNC_0(const void *VAR_0)\n{", "char *VAR_1;", "QDict *resp;", "QList *cpus;", "const QObject *VAR_2;", "VAR_1 = make_cli(VAR_0, \"-smp 2 \"\n\"-numa node,nodeid=0 -numa node,nodeid=1 \"\n\"-numa cpu,node-id=1,thread-id=0 \"\n\"-numa cpu,node-id=0,thread-id=1\");", "qtest_start(VAR_1);", ...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17, 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [...
20,113
static int unpack_vlcs(Vp3DecodeContext *s, GetBitContext *gb, VLC *table, int coeff_index, int first_fragment, int last_fragment, int eob_run) { int i; int token; int zero_run = 0; DCTELEM coeff = 0; Vp3Fragment *fragm...
false
FFmpeg
ee3d7f585215458246c2dd971c2afdd2642a5ca8
static int unpack_vlcs(Vp3DecodeContext *s, GetBitContext *gb, VLC *table, int coeff_index, int first_fragment, int last_fragment, int eob_run) { int i; int token; int zero_run = 0; DCTELEM coeff = 0; Vp3Fragment *fragm...
{ "code": [], "line_no": [] }
static int FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1, VLC *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { int VAR_7; int VAR_8; int VAR_9 = 0; DCTELEM coeff = 0; Vp3Fragment *fragment; uint8_t *per...
[ "static int FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1,\nVLC *VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint VAR_6)\n{", "int VAR_7;", "int VAR_8;", "int VAR_9 = 0;", "DCTELEM coeff = 0;", "Vp3Fragment *fragment;", "uint8_t *perm= VAR_0->scantable.permutated;", "int VAR_10;", "if ((VAR_4 >=...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 53 ], [ 57 ...
20,114
static inline void vmxnet3_ring_init(Vmxnet3Ring *ring, hwaddr pa, size_t size, size_t cell_size, bool zero_region) { ring->pa = pa; ring->size = size; ...
true
qemu
c508277335e3b6b20cf18e6ea3a35c1fa835c64a
static inline void vmxnet3_ring_init(Vmxnet3Ring *ring, hwaddr pa, size_t size, size_t cell_size, bool zero_region) { ring->pa = pa; ring->size = size; ...
{ "code": [ "static inline void vmxnet3_ring_init(Vmxnet3Ring *ring,", " vmw_shmem_set(pa, 0, size * cell_size);" ], "line_no": [ 1, 27 ] }
static inline void FUNC_0(Vmxnet3Ring *VAR_0, hwaddr VAR_1, size_t VAR_2, size_t VAR_3, bool VAR_4) { VAR_0->VAR_1 = VAR_1; VAR_0->VAR_2 = VAR_2; VAR_0-...
[ "static inline void FUNC_0(Vmxnet3Ring *VAR_0,\nhwaddr VAR_1,\nsize_t VAR_2,\nsize_t VAR_3,\nbool VAR_4)\n{", "VAR_0->VAR_1 = VAR_1;", "VAR_0->VAR_2 = VAR_2;", "VAR_0->VAR_3 = VAR_3;", "VAR_0->gen = VMXNET3_INIT_GEN;", "VAR_0->next = 0;", "if (VAR_4) {", "vmw_shmem_set(VAR_1, 0, VAR_2 * VAR_3);", "}...
[ 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
20,115
uint32_t virtio_config_readw(VirtIODevice *vdev, uint32_t addr) { VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); uint16_t val; k->get_config(vdev, vdev->config); if (addr > (vdev->config_len - sizeof(val))) return (uint32_t)-1; val = lduw_p(vdev->config + addr); retu...
true
qemu
5f5a1318653c08e435cfa52f60b6a712815b659d
uint32_t virtio_config_readw(VirtIODevice *vdev, uint32_t addr) { VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); uint16_t val; k->get_config(vdev, vdev->config); if (addr > (vdev->config_len - sizeof(val))) return (uint32_t)-1; val = lduw_p(vdev->config + addr); retu...
{ "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); uint16_t val; k->get_config(vdev, vdev->config); if (addr > (vdev->config_len - sizeof(val))) return (uint32_t)-1; val = lduw_p(vdev->config + addr); return val; }
[ "uint32_t FUNC_0(VirtIODevice *vdev, uint32_t addr)\n{", "VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev);", "uint16_t val;", "k->get_config(vdev, vdev->config);", "if (addr > (vdev->config_len - sizeof(val)))\nreturn (uint32_t)-1;", "val = lduw_p(vdev->config + addr);", "return val;", "}" ]
[ 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ] ]
20,116
static int get_qcx(Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q) { int i, x; if (s->buf_end - s->buf < 1) return AVERROR_INVALIDDATA; x = bytestream_get_byte(&s->buf); // Sqcd q->nguardbits = x >> 5; q->quantsty = x & 0x1f; if (q->quantsty == JPEG2000_QSTY_NO...
true
FFmpeg
1a3598aae768465a8efc8475b6df5a8261bc62fc
static int get_qcx(Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q) { int i, x; if (s->buf_end - s->buf < 1) return AVERROR_INVALIDDATA; x = bytestream_get_byte(&s->buf); q->nguardbits = x >> 5; q->quantsty = x & 0x1f; if (q->quantsty == JPEG2000_QSTY_NONE) { ...
{ "code": [ " return AVERROR_INVALIDDATA;", " if (s->buf_end - s->buf < 1)", " if (s->buf_end - s->buf < n)", " q->expn[i] = bytestream_get_byte(&s->buf) >> 3;", " if (s->buf_end - s->buf < 2)", " x = bytestream_get_be16(&s->buf);", " ...
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1, Jpeg2000QuantStyle *VAR_2) { int VAR_3, VAR_4; if (VAR_0->buf_end - VAR_0->buf < 1) return AVERROR_INVALIDDATA; VAR_4 = bytestream_get_byte(&VAR_0->buf); VAR_2->nguardbits = VAR_4 >> 5; VAR_2->quantsty = VAR_4 & 0x1f...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1, Jpeg2000QuantStyle *VAR_2)\n{", "int VAR_3, VAR_4;", "if (VAR_0->buf_end - VAR_0->buf < 1)\nreturn AVERROR_INVALIDDATA;", "VAR_4 = bytestream_get_byte(&VAR_0->buf);", "VAR_2->nguardbits = VAR_4 >> 5;", "VAR_2->quantsty = VAR_4 & 0x1f;", "if ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
20,117
static void qemu_kvm_eat_signals(CPUState *env) { struct timespec ts = { 0, 0 }; siginfo_t siginfo; sigset_t waitset; sigset_t chkset; int r; sigemptyset(&waitset); sigaddset(&waitset, SIG_IPI); sigaddset(&waitset, SIGBUS); do { r = sigtimedwait(&waitset, &sigi...
true
qemu
12d4536f7d911b6d87a766ad7300482ea663cea2
static void qemu_kvm_eat_signals(CPUState *env) { struct timespec ts = { 0, 0 }; siginfo_t siginfo; sigset_t waitset; sigset_t chkset; int r; sigemptyset(&waitset); sigaddset(&waitset, SIG_IPI); sigaddset(&waitset, SIGBUS); do { r = sigtimedwait(&waitset, &sigi...
{ "code": [ "#endif", "#endif", "#ifndef CONFIG_IOTHREAD", " if (sigismember(&chkset, SIGIO) || sigismember(&chkset, SIGALRM)) {", " qemu_notify_event();", "#endif", "#endif", "#endif", "#endif", "#ifndef CONFIG_IOTHREAD", " int r;", " exit(1);",...
static void FUNC_0(CPUState *VAR_0) { struct timespec VAR_1 = { 0, 0 }; siginfo_t siginfo; sigset_t waitset; sigset_t chkset; int VAR_2; sigemptyset(&waitset); sigaddset(&waitset, SIG_IPI); sigaddset(&waitset, SIGBUS); do { VAR_2 = sigtimedwait(&waitset, &sigin...
[ "static void FUNC_0(CPUState *VAR_0)\n{", "struct timespec VAR_1 = { 0, 0 };", "siginfo_t siginfo;", "sigset_t waitset;", "sigset_t chkset;", "int VAR_2;", "sigemptyset(&waitset);", "sigaddset(&waitset, SIG_IPI);", "sigaddset(&waitset, SIGBUS);", "do {", "VAR_2 = sigtimedwait(&waitset, &siginfo,...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [...
20,118
static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int64_t total_size = 0; MOVAtom a; int i; if (atom.size < 0) atom.size = INT64_MAX; while (total_size + 8 <= atom.size && !url_feof(pb)) { int (*parse)(MOVContext*, AVIOContext*, MOVAtom) = NULL; ...
false
FFmpeg
e1ccc9216b5d2bfa0074c208aa5dfa2b05b5ad2a
static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int64_t total_size = 0; MOVAtom a; int i; if (atom.size < 0) atom.size = INT64_MAX; while (total_size + 8 <= atom.size && !url_feof(pb)) { int (*parse)(MOVContext*, AVIOContext*, MOVAtom) = NULL; ...
{ "code": [], "line_no": [] }
VAR_6staticVAR_6 VAR_6intVAR_6 VAR_6mov_read_defaultVAR_6(VAR_6MOVContextVAR_6 *VAR_6VAR_0VAR_6, VAR_6AVIOContextVAR_6 *VAR_6VAR_1VAR_6, VAR_6MOVAtomVAR_6 VAR_6VAR_2VAR_6) { VAR_6int64_tVAR_6 VAR_6total_sizeVAR_6 = VAR_60VAR_6; VAR_6MOVAtomVAR_6 VAR_6aVAR_6; VAR_6intVAR_6 VAR_6VAR_3VAR_6; VAR_6if...
[ "VAR_6staticVAR_6 VAR_6intVAR_6 VAR_6mov_read_defaultVAR_6(VAR_6MOVContextVAR_6 *VAR_6VAR_0VAR_6, VAR_6AVIOContextVAR_6 *VAR_6VAR_1VAR_6, VAR_6MOVAtomVAR_6 VAR_6VAR_2VAR_6)\n{", "VAR_6int64_tVAR_6 VAR_6total_sizeVAR_6 = VAR_60VAR_6;", "VAR_6MOVAtomVAR_6 VAR_6aVAR_6;", "VAR_6intVAR_6 VAR_6VAR_3VAR_6;", "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 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ...
20,119
int check_intra_pred8x8_mode_emuedge(int mode, int mb_x, int mb_y) { switch (mode) { case DC_PRED8x8: return check_dc_pred8x8_mode(mode, mb_x, mb_y); case VERT_PRED8x8: return !mb_y ? DC_127_PRED8x8 : mode; case HOR_PRED8x8: return !mb_x ? DC_129_PRED8x8 : mode; case...
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
int check_intra_pred8x8_mode_emuedge(int mode, int mb_x, int mb_y) { switch (mode) { case DC_PRED8x8: return check_dc_pred8x8_mode(mode, mb_x, mb_y); case VERT_PRED8x8: return !mb_y ? DC_127_PRED8x8 : mode; case HOR_PRED8x8: return !mb_x ? DC_129_PRED8x8 : mode; case...
{ "code": [ "int check_intra_pred8x8_mode_emuedge(int mode, int mb_x, int mb_y)", " return !mb_y ? DC_127_PRED8x8 : mode;", " return !mb_x ? DC_129_PRED8x8 : mode;", " return check_tm_pred8x8_mode(mode, mb_x, mb_y);" ], "line_no": [ 1, 13, 17, 21 ] }
int FUNC_0(int VAR_0, int VAR_1, int VAR_2) { switch (VAR_0) { case DC_PRED8x8: return check_dc_pred8x8_mode(VAR_0, VAR_1, VAR_2); case VERT_PRED8x8: return !VAR_2 ? DC_127_PRED8x8 : VAR_0; case HOR_PRED8x8: return !VAR_1 ? DC_129_PRED8x8 : VAR_0; case PLANE_PRED8x8:...
[ "int FUNC_0(int VAR_0, int VAR_1, int VAR_2)\n{", "switch (VAR_0) {", "case DC_PRED8x8:\nreturn check_dc_pred8x8_mode(VAR_0, VAR_1, VAR_2);", "case VERT_PRED8x8:\nreturn !VAR_2 ? DC_127_PRED8x8 : VAR_0;", "case HOR_PRED8x8:\nreturn !VAR_1 ? DC_129_PRED8x8 : VAR_0;", "case PLANE_PRED8x8:\nreturn check_tm_p...
[ 1, 0, 0, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ] ]
20,120
static int jpeg_write_trailer(AVFormatContext *s1) { JpegContext *s = s1->priv_data; av_free(s); return 0; }
true
FFmpeg
0726b2d1ea4343698ff603cc32b824f5bce952c5
static int jpeg_write_trailer(AVFormatContext *s1) { JpegContext *s = s1->priv_data; av_free(s); return 0; }
{ "code": [ " JpegContext *s = s1->priv_data;", " av_free(s);", " JpegContext *s = s1->priv_data;", " av_free(s);" ], "line_no": [ 5, 7, 5, 7 ] }
static int FUNC_0(AVFormatContext *VAR_0) { JpegContext *s = VAR_0->priv_data; av_free(s); return 0; }
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "JpegContext *s = VAR_0->priv_data;", "av_free(s);", "return 0;", "}" ]
[ 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
20,121
static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform){ int i, mb_x, mb_y; const int nb_components=3; for(mb_y = 0; mb_y < s->mb_height; mb_y++) { for(mb_x = 0; mb_x < s->mb_width; mb_x++) { if (s->restart_interval && !s->restart_count) ...
false
FFmpeg
484b1cdd5303771447e15d0067a2034b0c17fdc8
static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform){ int i, mb_x, mb_y; const int nb_components=3; for(mb_y = 0; mb_y < s->mb_height; mb_y++) { for(mb_x = 0; mb_x < s->mb_width; mb_x++) { if (s->restart_interval && !s->restart_count) ...
{ "code": [], "line_no": [] }
static int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1, int VAR_2){ int VAR_3, VAR_4, VAR_5; const int VAR_6=3; for(VAR_5 = 0; VAR_5 < VAR_0->mb_height; VAR_5++) { for(VAR_4 = 0; VAR_4 < VAR_0->mb_width; VAR_4++) { if (VAR_0->restart_interval && !VAR_0->restart_count) ...
[ "static int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1, int VAR_2){", "int VAR_3, VAR_4, VAR_5;", "const int VAR_6=3;", "for(VAR_5 = 0; VAR_5 < VAR_0->mb_height; VAR_5++) {", "for(VAR_4 = 0; VAR_4 < VAR_0->mb_width; VAR_4++) {", "if (VAR_0->restart_interval && !VAR_0->restart_count)\nVAR_0->restart_count...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49...
20,122
static void filter_mb_mbaff_edgecv( H264Context *h, uint8_t *pix, int stride, const int16_t bS[7], int bsi, int qp ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; int alpha = alpha_table[index_a]; int beta = beta_table[qp - q...
false
FFmpeg
a4f6be86d67ae30d494fbe8a470bc32b715d75a9
static void filter_mb_mbaff_edgecv( H264Context *h, uint8_t *pix, int stride, const int16_t bS[7], int bsi, int qp ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; int alpha = alpha_table[index_a]; int beta = beta_table[qp - q...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, const int16_t VAR_3[7], int VAR_4, int VAR_5 ) { const int VAR_6 = 6 * (VAR_0->sps.bit_depth_luma - 8); int VAR_7 = VAR_5 - VAR_6 + VAR_0->slice_alpha_c0_offset; int VAR_8 = alpha_table[VAR_7]; int VAR_9 = beta_table[VAR_5 - VAR_6 +...
[ "static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, const int16_t VAR_3[7], int VAR_4, int VAR_5 ) {", "const int VAR_6 = 6 * (VAR_0->sps.bit_depth_luma - 8);", "int VAR_7 = VAR_5 - VAR_6 + VAR_0->slice_alpha_c0_offset;", "int VAR_8 = alpha_table[VAR_7];", "int VAR_9 = beta_table[VAR_5 - VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]