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
9,569
int pit_get_initial_count(PITState *pit, int channel) { PITChannelState *s = &pit->channels[channel]; return s->count; }
false
qemu
64d7e9a421fea0ac50b44541f5521de455e7cd5d
int pit_get_initial_count(PITState *pit, int channel) { PITChannelState *s = &pit->channels[channel]; return s->count; }
{ "code": [], "line_no": [] }
int FUNC_0(PITState *VAR_0, int VAR_1) { PITChannelState *s = &VAR_0->channels[VAR_1]; return s->count; }
[ "int FUNC_0(PITState *VAR_0, int VAR_1)\n{", "PITChannelState *s = &VAR_0->channels[VAR_1];", "return s->count;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
9,570
static void net_socket_update_fd_handler(NetSocketState *s) { qemu_set_fd_handler2(s->fd, s->read_poll ? net_socket_can_send : NULL, s->read_poll ? s->send_fn : NULL, s->write_poll ? net_socket_writable : NULL, ...
false
qemu
6e99c631f116221d169ea53953d91b8aa74d297a
static void net_socket_update_fd_handler(NetSocketState *s) { qemu_set_fd_handler2(s->fd, s->read_poll ? net_socket_can_send : NULL, s->read_poll ? s->send_fn : NULL, s->write_poll ? net_socket_writable : NULL, ...
{ "code": [], "line_no": [] }
static void FUNC_0(NetSocketState *VAR_0) { qemu_set_fd_handler2(VAR_0->fd, VAR_0->read_poll ? net_socket_can_send : NULL, VAR_0->read_poll ? VAR_0->send_fn : NULL, VAR_0->write_poll ? net_socket_writable : NULL, ...
[ "static void FUNC_0(NetSocketState *VAR_0)\n{", "qemu_set_fd_handler2(VAR_0->fd,\nVAR_0->read_poll ? net_socket_can_send : NULL,\nVAR_0->read_poll ? VAR_0->send_fn : NULL,\nVAR_0->write_poll ? net_socket_writable : NULL,\nVAR_0);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13 ], [ 15 ] ]
9,571
static void bdrv_throttle_read_timer_cb(void *opaque) { BlockDriverState *bs = opaque; qemu_co_enter_next(&bs->throttled_reqs[0]); }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static void bdrv_throttle_read_timer_cb(void *opaque) { BlockDriverState *bs = opaque; qemu_co_enter_next(&bs->throttled_reqs[0]); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { BlockDriverState *bs = VAR_0; qemu_co_enter_next(&bs->throttled_reqs[0]); }
[ "static void FUNC_0(void *VAR_0)\n{", "BlockDriverState *bs = VAR_0;", "qemu_co_enter_next(&bs->throttled_reqs[0]);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
9,572
static void host_x86_cpu_initfn(Object *obj) { X86CPU *cpu = X86_CPU(obj); CPUX86State *env = &cpu->env; KVMState *s = kvm_state; /* We can't fill the features array here because we don't know yet if * "migratable" is true or false. */ cpu->host_features = true; /* If KVM ...
false
qemu
104494ea25ef6286d79e2f17d609f7ef4cd2dcce
static void host_x86_cpu_initfn(Object *obj) { X86CPU *cpu = X86_CPU(obj); CPUX86State *env = &cpu->env; KVMState *s = kvm_state; cpu->host_features = true; if (kvm_enabled()) { env->cpuid_level = kvm_arch_get_supported_cpuid(s, 0x0, 0, R_EAX); env->cpuid_...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { X86CPU *cpu = X86_CPU(VAR_0); CPUX86State *env = &cpu->env; KVMState *s = kvm_state; cpu->host_features = true; if (kvm_enabled()) { env->cpuid_level = kvm_arch_get_supported_cpuid(s, 0x0, 0, R_EAX); env->cpuid_xlevel = ...
[ "static void FUNC_0(Object *VAR_0)\n{", "X86CPU *cpu = X86_CPU(VAR_0);", "CPUX86State *env = &cpu->env;", "KVMState *s = kvm_state;", "cpu->host_features = true;", "if (kvm_enabled()) {", "env->cpuid_level = kvm_arch_get_supported_cpuid(s, 0x0, 0, R_EAX);", "env->cpuid_xlevel = kvm_arch_get_supported_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
9,573
void usb_device_attach(USBDevice *dev, Error **errp) { USBBus *bus = usb_bus_from_device(dev); USBPort *port = dev->port; char devspeed[32], portspeed[32]; assert(port != NULL); assert(!dev->attached); usb_mask_to_str(devspeed, sizeof(devspeed), dev->speedmask); usb_mask_to_str(por...
false
qemu
594a53607e5bd4a2b7555a7a2908d2c406fea9aa
void usb_device_attach(USBDevice *dev, Error **errp) { USBBus *bus = usb_bus_from_device(dev); USBPort *port = dev->port; char devspeed[32], portspeed[32]; assert(port != NULL); assert(!dev->attached); usb_mask_to_str(devspeed, sizeof(devspeed), dev->speedmask); usb_mask_to_str(por...
{ "code": [], "line_no": [] }
void FUNC_0(USBDevice *VAR_0, Error **VAR_1) { USBBus *bus = usb_bus_from_device(VAR_0); USBPort *port = VAR_0->port; char VAR_2[32], VAR_3[32]; assert(port != NULL); assert(!VAR_0->attached); usb_mask_to_str(VAR_2, sizeof(VAR_2), VAR_0->speedmask); usb_mask_to_str(VAR_3, sizeof(VA...
[ "void FUNC_0(USBDevice *VAR_0, Error **VAR_1)\n{", "USBBus *bus = usb_bus_from_device(VAR_0);", "USBPort *port = VAR_0->port;", "char VAR_2[32], VAR_3[32];", "assert(port != NULL);", "assert(!VAR_0->attached);", "usb_mask_to_str(VAR_2, sizeof(VAR_2), VAR_0->speedmask);", "usb_mask_to_str(VAR_3, sizeof...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29, 31, 33, 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ] ]
9,575
static void gen_store_exclusive(DisasContext *s, int rd, int rt, int rt2, TCGv_i32 addr, int size) { TCGv_i32 tmp; TCGv_i64 val64, extaddr; int done_label; int fail_label; /* if (env->exclusive_addr == addr && env->exclusive_val == [addr]) { [addr] ...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static void gen_store_exclusive(DisasContext *s, int rd, int rt, int rt2, TCGv_i32 addr, int size) { TCGv_i32 tmp; TCGv_i64 val64, extaddr; int done_label; int fail_label; fail_label = gen_new_label(); done_label = gen_new_label(); e...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, TCGv_i32 VAR_4, int VAR_5) { TCGv_i32 tmp; TCGv_i64 val64, extaddr; int VAR_6; int VAR_7; VAR_7 = gen_new_label(); VAR_6 = gen_new_label(); extaddr = tcg_temp_n...
[ "static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nTCGv_i32 VAR_4, int VAR_5)\n{", "TCGv_i32 tmp;", "TCGv_i64 val64, extaddr;", "int VAR_6;", "int VAR_7;", "VAR_7 = gen_new_label();", "VAR_6 = gen_new_label();", "extaddr = tcg_temp_new_i64();", "tcg_gen_extu_i32_i64(extaddr, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53, 55 ], [ 57 ], [ 59, 61,...
9,578
static int gdbserver_open(int port) { struct sockaddr_in sockaddr; int fd, ret; fd = socket(PF_INET, SOCK_STREAM, 0); if (fd < 0) { perror("socket"); return -1; } #ifndef _WIN32 fcntl(fd, F_SETFD, FD_CLOEXEC); #endif socket_set_fast_reuse(fd); sockaddr....
false
qemu
96165b9eb4207a34a87c46df731d3cc42c052e13
static int gdbserver_open(int port) { struct sockaddr_in sockaddr; int fd, ret; fd = socket(PF_INET, SOCK_STREAM, 0); if (fd < 0) { perror("socket"); return -1; } #ifndef _WIN32 fcntl(fd, F_SETFD, FD_CLOEXEC); #endif socket_set_fast_reuse(fd); sockaddr....
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0) { struct sockaddr_in VAR_1; int VAR_2, VAR_3; VAR_2 = socket(PF_INET, SOCK_STREAM, 0); if (VAR_2 < 0) { perror("socket"); return -1; } #ifndef _WIN32 fcntl(VAR_2, F_SETFD, FD_CLOEXEC); #endif socket_set_fast_reuse(VAR_2); VA...
[ "static int FUNC_0(int VAR_0)\n{", "struct sockaddr_in VAR_1;", "int VAR_2, VAR_3;", "VAR_2 = socket(PF_INET, SOCK_STREAM, 0);", "if (VAR_2 < 0) {", "perror(\"socket\");", "return -1;", "}", "#ifndef _WIN32\nfcntl(VAR_2, F_SETFD, FD_CLOEXEC);", "#endif\nsocket_set_fast_reuse(VAR_2);", "VAR_1.sin...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
9,580
void bdrv_get_geometry_hint(BlockDriverState *bs, int *pcyls, int *pheads, int *psecs) { *pcyls = bs->cyls; *pheads = bs->heads; *psecs = bs->secs; }
false
qemu
2b584959ed300ddff4acba0d7554becad5f274fd
void bdrv_get_geometry_hint(BlockDriverState *bs, int *pcyls, int *pheads, int *psecs) { *pcyls = bs->cyls; *pheads = bs->heads; *psecs = bs->secs; }
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0, int *VAR_1, int *VAR_2, int *VAR_3) { *VAR_1 = VAR_0->cyls; *VAR_2 = VAR_0->heads; *VAR_3 = VAR_0->secs; }
[ "void FUNC_0(BlockDriverState *VAR_0,\nint *VAR_1, int *VAR_2, int *VAR_3)\n{", "*VAR_1 = VAR_0->cyls;", "*VAR_2 = VAR_0->heads;", "*VAR_3 = VAR_0->secs;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
9,581
static uint64_t arm_thiswdog_read(void *opaque, target_phys_addr_t addr, unsigned size) { arm_mptimer_state *s = (arm_mptimer_state *)opaque; int id = get_current_cpu(s); return timerblock_read(&s->timerblock[id * 2 + 1], addr, size); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t arm_thiswdog_read(void *opaque, target_phys_addr_t addr, unsigned size) { arm_mptimer_state *s = (arm_mptimer_state *)opaque; int id = get_current_cpu(s); return timerblock_read(&s->timerblock[id * 2 + 1], addr, size); }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { arm_mptimer_state *s = (arm_mptimer_state *)opaque; int VAR_0 = get_current_cpu(s); return timerblock_read(&s->timerblock[VAR_0 * 2 + 1], addr, size); }
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "arm_mptimer_state *s = (arm_mptimer_state *)opaque;", "int VAR_0 = get_current_cpu(s);", "return timerblock_read(&s->timerblock[VAR_0 * 2 + 1], addr, size);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
9,582
e1000_set_link_status(NetClientState *nc) { E1000State *s = qemu_get_nic_opaque(nc); uint32_t old_status = s->mac_reg[STATUS]; if (nc->link_down) { e1000_link_down(s); } else { if (s->compat_flags & E1000_FLAG_AUTONEG && s->phy_reg[PHY_CTRL] & MII_CR_AUTO_NEG_EN && ...
false
qemu
d7a4155265416a1c8f3067b59e68bf5fda1d6215
e1000_set_link_status(NetClientState *nc) { E1000State *s = qemu_get_nic_opaque(nc); uint32_t old_status = s->mac_reg[STATUS]; if (nc->link_down) { e1000_link_down(s); } else { if (s->compat_flags & E1000_FLAG_AUTONEG && s->phy_reg[PHY_CTRL] & MII_CR_AUTO_NEG_EN && ...
{ "code": [], "line_no": [] }
FUNC_0(NetClientState *VAR_0) { E1000State *s = qemu_get_nic_opaque(VAR_0); uint32_t old_status = s->mac_reg[STATUS]; if (VAR_0->link_down) { e1000_link_down(s); } else { if (s->compat_flags & E1000_FLAG_AUTONEG && s->phy_reg[PHY_CTRL] & MII_CR_AUTO_NEG_EN && ...
[ "FUNC_0(NetClientState *VAR_0)\n{", "E1000State *s = qemu_get_nic_opaque(VAR_0);", "uint32_t old_status = s->mac_reg[STATUS];", "if (VAR_0->link_down) {", "e1000_link_down(s);", "} else {", "if (s->compat_flags & E1000_FLAG_AUTONEG &&\ns->phy_reg[PHY_CTRL] & MII_CR_AUTO_NEG_EN &&\ns->phy_reg[PHY_CTRL] &...
[ 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 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ] ]
9,587
static inline void backup_mb_border(H264Context *h, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, int linesize, int uvlinesize, int simple){ MpegEncContext * const s = &h->s; int i; int step = 1; int offset = 1; int uvoffset= 1; int top_idx = 1; int skiplast= 0; src_y ...
false
FFmpeg
c988f97566cdf536ba0dcbc0d77d885456852060
static inline void backup_mb_border(H264Context *h, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, int linesize, int uvlinesize, int simple){ MpegEncContext * const s = &h->s; int i; int step = 1; int offset = 1; int uvoffset= 1; int top_idx = 1; int skiplast= 0; src_y ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(H264Context *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3, int VAR_4, int VAR_5, int VAR_6){ MpegEncContext * const s = &VAR_0->s; int VAR_7; int VAR_8 = 1; int VAR_9 = 1; int VAR_10= 1; int VAR_11 = 1; int VAR_12= 0; VAR_1 -= VAR_4; ...
[ "static inline void FUNC_0(H264Context *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3, int VAR_4, int VAR_5, int VAR_6){", "MpegEncContext * const s = &VAR_0->s;", "int VAR_7;", "int VAR_8 = 1;", "int VAR_9 = 1;", "int VAR_10= 1;", "int VAR_11 = 1;", "int VAR_12= 0;", "VAR_1 -= VAR_4;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
9,588
static ssize_t qio_channel_file_readv(QIOChannel *ioc, const struct iovec *iov, size_t niov, int **fds, size_t *nfds, Error *...
false
qemu
30fd3e27907dfd1c0c66cc1339657af1a2ce1d4b
static ssize_t qio_channel_file_readv(QIOChannel *ioc, const struct iovec *iov, size_t niov, int **fds, size_t *nfds, Error *...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(QIOChannel *ioc, const struct iovec *iov, size_t niov, int **fds, size_t *nfds, Error **errp) { Q...
[ "static ssize_t FUNC_0(QIOChannel *ioc,\nconst struct iovec *iov,\nsize_t niov,\nint **fds,\nsize_t *nfds,\nError **errp)\n{", "QIOChannelFile *fioc = QIO_CHANNEL_FILE(ioc);", "ssize_t ret;", "retry:\nret = readv(fioc->fd, iov, niov);", "if (ret < 0) {", "if (errno == EAGAIN ||\nerrno == EWOULDBLOCK) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ...
9,589
int mmap_frag(unsigned long host_start, unsigned long start, unsigned long end, int prot, int flags, int fd, unsigned long offset) { unsigned long host_end, ret, addr; int prot1, prot_new; host_end = host_start + qemu_host_page_size; /* get the protection of the ...
false
qemu
059bca46bbfd7f16cd2ccca631b91334e08d9abb
int mmap_frag(unsigned long host_start, unsigned long start, unsigned long end, int prot, int flags, int fd, unsigned long offset) { unsigned long host_end, ret, addr; int prot1, prot_new; host_end = host_start + qemu_host_page_size; prot1 = 0; for(add...
{ "code": [], "line_no": [] }
int FUNC_0(unsigned long VAR_0, unsigned long VAR_1, unsigned long VAR_2, int VAR_3, int VAR_4, int VAR_5, unsigned long VAR_6) { unsigned long VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11; VAR_7 = VAR_0 + qemu_host_page_size; VAR_10 = 0; for(VAR_9 = VAR_0;...
[ "int FUNC_0(unsigned long VAR_0,\nunsigned long VAR_1, unsigned long VAR_2,\nint VAR_3, int VAR_4, int VAR_5, unsigned long VAR_6)\n{", "unsigned long VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11;", "VAR_7 = VAR_0 + qemu_host_page_size;", "VAR_10 = 0;", "for(VAR_9 = VAR_0; VAR_9 < VAR_7; VAR_9++) {", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 59, 61, 63, 65,...
9,590
static int decode_cabac_field_decoding_flag(H264Context *h) { MpegEncContext * const s = &h->s; const int mb_x = s->mb_x; const int mb_y = s->mb_y & ~1; const int mba_xy = mb_x - 1 + mb_y *s->mb_stride; const int mbb_xy = mb_x + (mb_y-2)*s->mb_stride; unsigned int ctx = 0; ...
false
FFmpeg
851ded8918c977d8160c6617b69604f758cabf50
static int decode_cabac_field_decoding_flag(H264Context *h) { MpegEncContext * const s = &h->s; const int mb_x = s->mb_x; const int mb_y = s->mb_y & ~1; const int mba_xy = mb_x - 1 + mb_y *s->mb_stride; const int mbb_xy = mb_x + (mb_y-2)*s->mb_stride; unsigned int ctx = 0; ...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0) { MpegEncContext * const s = &VAR_0->s; const int VAR_1 = s->VAR_1; const int VAR_2 = s->VAR_2 & ~1; const int VAR_3 = VAR_1 - 1 + VAR_2 *s->mb_stride; const int VAR_4 = VAR_1 + (VAR_2-2)*s->mb_stride; unsigned int VAR_5 = 0; if( VAR_0-...
[ "static int FUNC_0(H264Context *VAR_0) {", "MpegEncContext * const s = &VAR_0->s;", "const int VAR_1 = s->VAR_1;", "const int VAR_2 = s->VAR_2 & ~1;", "const int VAR_3 = VAR_1 - 1 + VAR_2 *s->mb_stride;", "const int VAR_4 = VAR_1 + (VAR_2-2)*s->mb_stride;", "unsigned int VAR_5 = 0;", "if( VAR_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 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
9,591
static int bayer_to_rgb24_wrapper(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]) { uint8_t *dstPtr= dst[0]; const uint8_t *srcPtr= src[0]; int i; void (*copy) (const uint8_t *src, int src_...
false
FFmpeg
ad3b6fa7d83db7de951ed891649af93a47e74be5
static int bayer_to_rgb24_wrapper(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]) { uint8_t *dstPtr= dst[0]; const uint8_t *srcPtr= src[0]; int i; void (*copy) (const uint8_t *src, int src_...
{ "code": [], "line_no": [] }
static int FUNC_0(SwsContext *VAR_0, const uint8_t* VAR_14[], int VAR_2[], int VAR_3, int VAR_4, uint8_t* VAR_14[], int VAR_6[]) { uint8_t *dstPtr= VAR_14[0]; const uint8_t *VAR_7= VAR_14[0]; int VAR_8; void (*VAR_9) (const uint8_t *VAR_14, int VAR_14, uint8...
[ "static int FUNC_0(SwsContext *VAR_0, const uint8_t* VAR_14[], int VAR_2[], int VAR_3,\nint VAR_4, uint8_t* VAR_14[], int VAR_6[])\n{", "uint8_t *dstPtr= VAR_14[0];", "const uint8_t *VAR_7= VAR_14[0];", "int VAR_8;", "void (*VAR_9) (const uint8_t *VAR_14, int VAR_14, uint8_t *VAR_14, int VAR_14, int V...
[ 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, 47, 49, 51, 53, 55 ], [ 57 ], [...
9,592
static void ff_h264_idct_add16_mmx(uint8_t *dst, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){ int i; for(i=0; i<16; i++){ if(nnzc[ scan8[i] ]) ff_h264_idct_add_mmx(dst + block_offset[i], block + i*16, stride); } }
false
FFmpeg
1d16a1cf99488f16492b1bb48e023f4da8377e07
static void ff_h264_idct_add16_mmx(uint8_t *dst, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){ int i; for(i=0; i<16; i++){ if(nnzc[ scan8[i] ]) ff_h264_idct_add_mmx(dst + block_offset[i], block + i*16, stride); } }
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){ int VAR_5; for(VAR_5=0; VAR_5<16; VAR_5++){ if(VAR_4[ scan8[VAR_5] ]) ff_h264_idct_add_mmx(VAR_0 + VAR_1[VAR_5], VAR_2 + VAR_5*16, VAR_3); } }
[ "static void FUNC_0(uint8_t *VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){", "int VAR_5;", "for(VAR_5=0; VAR_5<16; VAR_5++){", "if(VAR_4[ scan8[VAR_5] ])\nff_h264_idct_add_mmx(VAR_0 + VAR_1[VAR_5], VAR_2 + VAR_5*16, VAR_3);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ] ]
9,593
static char *make_digest_auth(HTTPAuthState *state, const char *username, const char *password, const char *uri, const char *method) { DigestParams *digest = &state->digest_params; int len; uint32_t cnonce_buf[2]; char cnonce[17]; c...
false
FFmpeg
3ba056017f978ba69ea933c593f0e616b3632261
static char *make_digest_auth(HTTPAuthState *state, const char *username, const char *password, const char *uri, const char *method) { DigestParams *digest = &state->digest_params; int len; uint32_t cnonce_buf[2]; char cnonce[17]; c...
{ "code": [], "line_no": [] }
static char *FUNC_0(HTTPAuthState *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4) { DigestParams *digest = &VAR_0->digest_params; int VAR_5; uint32_t cnonce_buf[2]; char VAR_6[17]; char VAR_7[9]; ...
[ "static char *FUNC_0(HTTPAuthState *VAR_0, const char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4)\n{", "DigestParams *digest = &VAR_0->digest_params;", "int VAR_5;", "uint32_t cnonce_buf[2];", "char VAR_6[17];", "char VAR_7[9];", "int VAR_8;", "char VAR_9[33], VAR_10[33], 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 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51,...
9,594
static void vector_fmul_vfp(float *dst, const float *src, int len) { int tmp; asm volatile( "fmrx %[tmp], fpscr\n\t" "orr %[tmp], %[tmp], #(3 << 16)\n\t" /* set vector size to 4 */ "fmxr fpscr, %[tmp]\n\t" "fldmias %[dst_r]!, {s0-s3}\n\t" ...
true
FFmpeg
28215b3700723da0c0beb93945702b6fb2b3596d
static void vector_fmul_vfp(float *dst, const float *src, int len) { int tmp; asm volatile( "fmrx %[tmp], fpscr\n\t" "orr %[tmp], %[tmp], #(3 << 16)\n\t" "fmxr fpscr, %[tmp]\n\t" "fldmias %[dst_r]!, {s0-s3}\n\t" "fldmias %[src]...
{ "code": [ "static void vector_fmul_vfp(float *dst, const float *src, int len)\r", " int tmp;\r", " asm volatile(\r", " \"fmrx %[tmp], fpscr\\n\\t\"\r", " \"fmxr fpscr, %[tmp]\\n\\t\"\r", " \"fldmias %[dst_r]!, {s0-s3}\\n\\t\"\r", " \"fldmi...
static void FUNC_0(float *VAR_0, const float *VAR_1, int VAR_2) { int VAR_3; asm volatile( "fmrx %[VAR_3], fpscr\n\t" "orr %[VAR_3], %[VAR_3], #(3 << 16)\n\t" "fmxr fpscr, %[VAR_3]\n\t" "fldmias %[dst_r]!, {s0-s3}\n\t" "fldmias ...
[ "static void FUNC_0(float *VAR_0, const float *VAR_1, int VAR_2)\n{", "int VAR_3;", "asm volatile(\n\"fmrx %[VAR_3], fpscr\\n\\t\"\n\"orr %[VAR_3], %[VAR_3], #(3 << 16)\\n\\t\"\n\"fmxr fpscr, %[VAR_3]\\n\\t\"\n\"fldmias %[dst_r]!, {s0-s3}\\n\\t\"", "\"fldmias %[VAR_1]!, {s8-s11}\\n\\t...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27, 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ...
9,595
static void decode_opc (CPUState *env, DisasContext *ctx, int *is_branch) { int32_t offset; int rs, rt, rd, sa; uint32_t op, op1, op2; int16_t imm; /* make sure instructions are on a word boundary */ if (ctx->pc & 0x3) { env->CP0_BadVAddr = ctx->pc; generate_exception(...
true
qemu
9ed5726c043958359b0f1fa44ab3e4f25f9d9a47
static void decode_opc (CPUState *env, DisasContext *ctx, int *is_branch) { int32_t offset; int rs, rt, rd, sa; uint32_t op, op1, op2; int16_t imm; if (ctx->pc & 0x3) { env->CP0_BadVAddr = ctx->pc; generate_exception(ctx, EXCP_AdEL); return; } ...
{ "code": [ " gen_helper_dmt(t0, t0);", " gen_helper_emt(t0, t0);", " gen_helper_dvpe(t0, t0);", " gen_helper_evpe(t0, t0);" ], "line_no": [ 867, 877, 887, 897 ] }
static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, int *VAR_2) { int32_t offset; int VAR_3, VAR_4, VAR_5, VAR_6; uint32_t op, op1, op2; int16_t imm; if (VAR_1->pc & 0x3) { VAR_0->CP0_BadVAddr = VAR_1->pc; generate_exception(VAR_1, EXCP_AdEL); return; ...
[ "static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, int *VAR_2)\n{", "int32_t offset;", "int VAR_3, VAR_4, VAR_5, VAR_6;", "uint32_t op, op1, op2;", "int16_t imm;", "if (VAR_1->pc & 0x3) {", "VAR_0->CP0_BadVAddr = VAR_1->pc;", "generate_exception(VAR_1, EXCP_AdEL);", "return;", "}", "if (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [...
9,596
static void generate_2_noise_channels(MLPDecodeContext *m, unsigned int substr) { SubStream *s = &m->substream[substr]; unsigned int i; uint32_t seed = s->noisegen_seed; unsigned int maxchan = s->max_matrix_channel; for (i = 0; i < s->blockpos; i++) { uint16_t seed_shr7 = seed >> 7;...
true
FFmpeg
74dc728a2c2cc353da20cdc09b8cdfbbe14b7be8
static void generate_2_noise_channels(MLPDecodeContext *m, unsigned int substr) { SubStream *s = &m->substream[substr]; unsigned int i; uint32_t seed = s->noisegen_seed; unsigned int maxchan = s->max_matrix_channel; for (i = 0; i < s->blockpos; i++) { uint16_t seed_shr7 = seed >> 7;...
{ "code": [ " m->sample_buffer[i][maxchan+1] = ((int8_t)(seed >> 15)) << s->noise_shift;", " m->sample_buffer[i][maxchan+2] = ((int8_t) seed_shr7) << s->noise_shift;" ], "line_no": [ 19, 21 ] }
static void FUNC_0(MLPDecodeContext *VAR_0, unsigned int VAR_1) { SubStream *s = &VAR_0->substream[VAR_1]; unsigned int VAR_2; uint32_t seed = s->noisegen_seed; unsigned int VAR_3 = s->max_matrix_channel; for (VAR_2 = 0; VAR_2 < s->blockpos; VAR_2++) { uint16_t seed_shr7 = seed >> 7...
[ "static void FUNC_0(MLPDecodeContext *VAR_0, unsigned int VAR_1)\n{", "SubStream *s = &VAR_0->substream[VAR_1];", "unsigned int VAR_2;", "uint32_t seed = s->noisegen_seed;", "unsigned int VAR_3 = s->max_matrix_channel;", "for (VAR_2 = 0; VAR_2 < s->blockpos; VAR_2++) {", "uint16_t seed_shr7 = seed >> 7;...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
9,597
static int filter_frame(AVFilterLink *inlink, AVFrame *frame) { AVFilterContext *ctx = inlink->dst; AudioEchoContext *s = ctx->priv; AVFrame *out_frame; if (av_frame_is_writable(frame)) { out_frame = frame; } else { out_frame = ff_get_audio_buffer(inlink, frame->nb_samples)...
true
FFmpeg
142894d7202b5559d87f58df30baf48107a816f6
static int filter_frame(AVFilterLink *inlink, AVFrame *frame) { AVFilterContext *ctx = inlink->dst; AudioEchoContext *s = ctx->priv; AVFrame *out_frame; if (av_frame_is_writable(frame)) { out_frame = frame; } else { out_frame = ff_get_audio_buffer(inlink, frame->nb_samples)...
{ "code": [ " if (!out_frame)", " if (!out_frame)" ], "line_no": [ 21, 21 ] }
static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1) { AVFilterContext *ctx = VAR_0->dst; AudioEchoContext *s = ctx->priv; AVFrame *out_frame; if (av_frame_is_writable(VAR_1)) { out_frame = VAR_1; } else { out_frame = ff_get_audio_buffer(VAR_0, VAR_1->nb_samples); ...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "AudioEchoContext *s = ctx->priv;", "AVFrame *out_frame;", "if (av_frame_is_writable(VAR_1)) {", "out_frame = VAR_1;", "} else {", "out_frame = ff_get_audio_buffer(VAR_0, VAR_1->nb_samples);", "if (!ou...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 41, 43 ], [ 47 ], [ 49 ] ]
9,599
static int pci_add_option_rom(PCIDevice *pdev, bool is_default_rom) { int size; char *path; void *ptr; char name[32]; if (!pdev->romfile) return 0; if (strlen(pdev->romfile) == 0) return 0; if (!pdev->rom_bar) { /* * Load rom via fw_cfg instea...
true
qemu
386bbf45720b00496d5b9f9137359801c4e7ac0e
static int pci_add_option_rom(PCIDevice *pdev, bool is_default_rom) { int size; char *path; void *ptr; char name[32]; if (!pdev->romfile) return 0; if (strlen(pdev->romfile) == 0) return 0; if (!pdev->rom_bar) { int class = pci_get_word(...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0, bool VAR_1) { int VAR_2; char *VAR_3; void *VAR_4; char VAR_5[32]; if (!VAR_0->romfile) return 0; if (strlen(VAR_0->romfile) == 0) return 0; if (!VAR_0->rom_bar) { int VAR_6 = pci_get_word(VAR_0->confi...
[ "static int FUNC_0(PCIDevice *VAR_0, bool VAR_1)\n{", "int VAR_2;", "char *VAR_3;", "void *VAR_4;", "char VAR_5[32];", "if (!VAR_0->romfile)\nreturn 0;", "if (strlen(VAR_0->romfile) == 0)\nreturn 0;", "if (!VAR_0->rom_bar) {", "int VAR_6 = pci_get_word(VAR_0->config + PCI_CLASS_DEVICE);", "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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19, 21 ], [ 25 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ...
9,600
void qemu_system_reset_request(void) { if (no_reboot) { shutdown_requested = 1; } else { reset_requested = 1; } cpu_stop_current(); qemu_notify_event(); }
true
qemu
aedbe19297907143f17b733a7ff0e0534377bed1
void qemu_system_reset_request(void) { if (no_reboot) { shutdown_requested = 1; } else { reset_requested = 1; } cpu_stop_current(); qemu_notify_event(); }
{ "code": [ " shutdown_requested = 1;", " reset_requested = 1;" ], "line_no": [ 7, 11 ] }
void FUNC_0(void) { if (no_reboot) { shutdown_requested = 1; } else { reset_requested = 1; } cpu_stop_current(); qemu_notify_event(); }
[ "void FUNC_0(void)\n{", "if (no_reboot) {", "shutdown_requested = 1;", "} else {", "reset_requested = 1;", "}", "cpu_stop_current();", "qemu_notify_event();", "}" ]
[ 0, 0, 1, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
9,601
static void encode_frame(VC2EncContext *s, const AVFrame *frame, const char *aux_data, int field) { int i; /* Sequence header */ encode_parse_info(s, DIRAC_PCODE_SEQ_HEADER); encode_seq_header(s); /* Encoder version */ if (aux_data) { encode_parse_in...
true
FFmpeg
b88be742fac7a77a8095e8155ba8790db4b77568
static void encode_frame(VC2EncContext *s, const AVFrame *frame, const char *aux_data, int field) { int i; encode_parse_info(s, DIRAC_PCODE_SEQ_HEADER); encode_seq_header(s); if (aux_data) { encode_parse_info(s, DIRAC_PCODE_AUX); avpriv_pu...
{ "code": [ "static void encode_frame(VC2EncContext *s, const AVFrame *frame,", " const char *aux_data, int field)", " int i;", " for (i = 0; i < 3; i++) {", " s->transform_args[i].ctx = s;", " s->transform_args[i].field = field;", " s->...
static void FUNC_0(VC2EncContext *VAR_0, const AVFrame *VAR_1, const char *VAR_2, int VAR_3) { int VAR_4; encode_parse_info(VAR_0, DIRAC_PCODE_SEQ_HEADER); encode_seq_header(VAR_0); if (VAR_2) { encode_parse_info(VAR_0, DIRAC_PCODE_AUX); a...
[ "static void FUNC_0(VC2EncContext *VAR_0, const AVFrame *VAR_1,\nconst char *VAR_2, int VAR_3)\n{", "int VAR_4;", "encode_parse_info(VAR_0, DIRAC_PCODE_SEQ_HEADER);", "encode_seq_header(VAR_0);", "if (VAR_2) {", "encode_parse_info(VAR_0, DIRAC_PCODE_AUX);", "avpriv_put_string(&VAR_0->pb, VAR_2, 1);", ...
[ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57, 59 ], [ 65...
9,602
static void gen_tlbre_booke206(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_booke206_tlbre(cpu_env); #endif }
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_tlbre_booke206(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_booke206_tlbre(cpu_env); #endif }
{ "code": [ " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_booke206_tlbre(cpu_env); #endif }
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "return;", "}", "gen_helper_booke206_tlbre(cpu_env);", "#endif\n}" ]
[ 0, 1, 1, 1, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ] ]
9,603
static inline av_flatten int get_symbol_inline(RangeCoder *c, uint8_t *state, int is_signed) { if (get_rac(c, state + 0)) return 0; else { int i, e, a; e = 0; while (get_rac(c, state + 1 + FFMIN(e, 9))) { // 1..10 ...
true
FFmpeg
8630b2cd36c57918acfe18302fe77d1ceefbd676
static inline av_flatten int get_symbol_inline(RangeCoder *c, uint8_t *state, int is_signed) { if (get_rac(c, state + 0)) return 0; else { int i, e, a; e = 0; while (get_rac(c, state + 1 + FFMIN(e, 9))) { e++; ...
{ "code": [ " int i, e, a;" ], "line_no": [ 13 ] }
static inline av_flatten int FUNC_0(RangeCoder *c, uint8_t *state, int is_signed) { if (get_rac(c, state + 0)) return 0; else { int VAR_0, VAR_1, VAR_2; VAR_1 = 0; while (get_rac(c, state + 1 + FFMIN(VAR_1, 9))) { ...
[ "static inline av_flatten int FUNC_0(RangeCoder *c, uint8_t *state,\nint is_signed)\n{", "if (get_rac(c, state + 0))\nreturn 0;", "else {", "int VAR_0, VAR_1, VAR_2;", "VAR_1 = 0;", "while (get_rac(c, state + 1 + FFMIN(VAR_1, 9))) {", "VAR_1++;", "if (VAR_1 > 31)\nreturn AVERROR_INVALIDDATA;", "}", ...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
9,604
static int mpeg_mux_end(AVFormatContext *ctx) { MpegMuxContext *s = ctx->priv_data; StreamInfo *stream; int i; /* flush each packet */ for(i=0;i<ctx->nb_streams;i++) { stream = ctx->streams[i]->priv_data; while (stream->buffer_ptr > 0) { flush_packet(ctx, i, AV...
true
FFmpeg
0dbb48d91e9e97c7eb11f4ebc03c4ff4b6f5b692
static int mpeg_mux_end(AVFormatContext *ctx) { MpegMuxContext *s = ctx->priv_data; StreamInfo *stream; int i; for(i=0;i<ctx->nb_streams;i++) { stream = ctx->streams[i]->priv_data; while (stream->buffer_ptr > 0) { flush_packet(ctx, i, AV_NOPTS_VALUE, AV_NOPTS_...
{ "code": [ " while (stream->buffer_ptr > 0) {", " flush_packet(ctx, i, AV_NOPTS_VALUE, AV_NOPTS_VALUE, s->last_scr);" ], "line_no": [ 19, 21 ] }
static int FUNC_0(AVFormatContext *VAR_0) { MpegMuxContext *s = VAR_0->priv_data; StreamInfo *stream; int VAR_1; for(VAR_1=0;VAR_1<VAR_0->nb_streams;VAR_1++) { stream = VAR_0->streams[VAR_1]->priv_data; while (stream->buffer_ptr > 0) { flush_packet(VAR_0, VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MpegMuxContext *s = VAR_0->priv_data;", "StreamInfo *stream;", "int VAR_1;", "for(VAR_1=0;VAR_1<VAR_0->nb_streams;VAR_1++) {", "stream = VAR_0->streams[VAR_1]->priv_data;", "while (stream->buffer_ptr > 0) {", "flush_packet(VAR_0, VAR_1, AV_NOPTS_VALUE, ...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
9,605
static coroutine_fn int hdev_co_write_zeroes(BlockDriverState *bs, int64_t sector_num, int nb_sectors, BdrvRequestFlags flags) { BDRVRawState *s = bs->opaque; int rc; rc = fd_open(bs); if (rc < 0) { return rc; } if (!(flags & BDRV_REQ_MAY_UNMAP)) { return -ENOTSUP...
true
qemu
97a2ae34537882df34810d538ab1f51085499d2c
static coroutine_fn int hdev_co_write_zeroes(BlockDriverState *bs, int64_t sector_num, int nb_sectors, BdrvRequestFlags flags) { BDRVRawState *s = bs->opaque; int rc; rc = fd_open(bs); if (rc < 0) { return rc; } if (!(flags & BDRV_REQ_MAY_UNMAP)) { return -ENOTSUP...
{ "code": [ " return -ENOTSUP;", " if (!s->discard_zeroes) {", " return -ENOTSUP;", " return paio_submit_co(bs, s->fd, sector_num, NULL, nb_sectors,", " return -ENOTSUP;", " if (!s->discard_zeroes) {", " return -ENOTSUP;", " return paio_submit_co...
static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num, int nb_sectors, BdrvRequestFlags flags) { BDRVRawState *s = bs->opaque; int VAR_0; VAR_0 = fd_open(bs); if (VAR_0 < 0) { return VAR_0; } if (!(flags & BDRV_REQ_MAY_UNMAP)) { return -ENOTSUP; ...
[ "static coroutine_fn int FUNC_0(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, BdrvRequestFlags flags)\n{", "BDRVRawState *s = bs->opaque;", "int VAR_0;", "VAR_0 = fd_open(bs);", "if (VAR_0 < 0) {", "return VAR_0;", "}", "if (!(flags & BDRV_REQ_MAY_UNMAP)) {", "return -ENOTSUP;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ] ]
9,606
theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp, int64_t *dts) { struct ogg *ogg = ctx->priv_data; struct ogg_stream *os = ogg->streams + idx; struct theora_params *thp = os->private; uint64_t iframe = gp >> thp->gpshift; uint64_t pframe = gp & thp->gpmask; if (thp->version < ...
true
FFmpeg
f927c5b753f2ec1f037ad38cb55b4407dd7a9d79
theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp, int64_t *dts) { struct ogg *ogg = ctx->priv_data; struct ogg_stream *os = ogg->streams + idx; struct theora_params *thp = os->private; uint64_t iframe = gp >> thp->gpshift; uint64_t pframe = gp & thp->gpmask; if (thp->version < ...
{ "code": [ " uint64_t iframe = gp >> thp->gpshift;", " uint64_t pframe = gp & thp->gpmask;" ], "line_no": [ 11, 13 ] }
FUNC_0(AVFormatContext *VAR_0, int VAR_1, uint64_t VAR_2, int64_t *VAR_3) { struct VAR_4 *VAR_4 = VAR_0->priv_data; struct ogg_stream *VAR_5 = VAR_4->streams + VAR_1; struct theora_params *VAR_6 = VAR_5->private; uint64_t iframe = VAR_2 >> VAR_6->gpshift; uint64_t pframe = VAR_2 & VAR_6->gpmas...
[ "FUNC_0(AVFormatContext *VAR_0, int VAR_1, uint64_t VAR_2, int64_t *VAR_3)\n{", "struct VAR_4 *VAR_4 = VAR_0->priv_data;", "struct ogg_stream *VAR_5 = VAR_4->streams + VAR_1;", "struct theora_params *VAR_6 = VAR_5->private;", "uint64_t iframe = VAR_2 >> VAR_6->gpshift;", "uint64_t pframe = VAR_2 & VAR_6->...
[ 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23, 25 ], [ 29, 31 ], [ 35 ], [ 37 ] ]
9,608
static void qtrle_decode_32bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change) { int rle_code; int pixel_ptr; int row_inc = s->frame.linesize[0]; unsigned char a, r, g, b; unsigned int argb; unsigned char *rgb = s->frame.data[0]; int pixel_limit = s->frame.linesize...
true
FFmpeg
7fb92be7e50ea4ba5712804326c6814ae02dd190
static void qtrle_decode_32bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change) { int rle_code; int pixel_ptr; int row_inc = s->frame.linesize[0]; unsigned char a, r, g, b; unsigned int argb; unsigned char *rgb = s->frame.data[0]; int pixel_limit = s->frame.linesize...
{ "code": [], "line_no": [] }
static void FUNC_0(QtrleContext *VAR_0, int VAR_1, int VAR_2, int VAR_3) { int VAR_4; int VAR_5; int VAR_6 = VAR_0->frame.linesize[0]; unsigned char VAR_7, VAR_8, VAR_9, VAR_10; unsigned int VAR_11; unsigned char *VAR_12 = VAR_0->frame.data[0]; int VAR_13 = VAR_0->frame.linesize[0] *...
[ "static void FUNC_0(QtrleContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4;", "int VAR_5;", "int VAR_6 = VAR_0->frame.linesize[0];", "unsigned char VAR_7, VAR_8, VAR_9, VAR_10;", "unsigned int VAR_11;", "unsigned char *VAR_12 = VAR_0->frame.data[0];", "int VAR_13 = VAR_0->frame.linesize...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 30 ], [ 32 ], [ 36 ], [ 38 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
9,609
int loader_exec(const char * filename, char ** argv, char ** envp, struct target_pt_regs * regs, struct image_info *infop) { struct linux_binprm bprm; int retval; int i; bprm.p = TARGET_PAGE_SIZE*MAX_ARG_PAGES-sizeof(unsigned int); for (i=0 ; i<MAX_ARG_PAGES ; i++) /* cle...
true
qemu
c580dee4e170adad1ebdf901d32f0e1ed7d125b9
int loader_exec(const char * filename, char ** argv, char ** envp, struct target_pt_regs * regs, struct image_info *infop) { struct linux_binprm bprm; int retval; int i; bprm.p = TARGET_PAGE_SIZE*MAX_ARG_PAGES-sizeof(unsigned int); for (i=0 ; i<MAX_ARG_PAGES ; i++) ...
{ "code": [ " free(bprm.page[i]);" ], "line_no": [ 85 ] }
int FUNC_0(const char * VAR_0, char ** VAR_1, char ** VAR_2, struct target_pt_regs * VAR_3, struct image_info *VAR_4) { struct linux_binprm VAR_5; int VAR_6; int VAR_7; VAR_5.p = TARGET_PAGE_SIZE*MAX_ARG_PAGES-sizeof(unsigned int); for (VAR_7=0 ; VAR_7<MAX_ARG_PAGES ; VAR_7++) ...
[ "int FUNC_0(const char * VAR_0, char ** VAR_1, char ** VAR_2,\nstruct target_pt_regs * VAR_3, struct image_info *VAR_4)\n{", "struct linux_binprm VAR_5;", "int VAR_6;", "int VAR_7;", "VAR_5.p = TARGET_PAGE_SIZE*MAX_ARG_PAGES-sizeof(unsigned int);", "for (VAR_7=0 ; VAR_7<MAX_ARG_PAGES ; VAR_7++)", "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, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47, 49, 51,...
9,610
static av_always_inline SoftFloat autocorr_calc(int64_t accu) { int nz, mant, expo, round; int i = (int)(accu >> 32); if (i == 0) { nz = 1; } else { nz = 0; while (FFABS(i) < 0x40000000) { i <<= 1; nz++; ...
true
FFmpeg
ad2296ab3a131d3560c385e43437841987166804
static av_always_inline SoftFloat autocorr_calc(int64_t accu) { int nz, mant, expo, round; int i = (int)(accu >> 32); if (i == 0) { nz = 1; } else { nz = 0; while (FFABS(i) < 0x40000000) { i <<= 1; nz++; ...
{ "code": [ " int nz, mant, expo, round;", " round = 1 << (nz-1);" ], "line_no": [ 5, 31 ] }
static av_always_inline VAR_0 autocorr_calc(int64_t accu) { int nz, mant, expo, round; int i = (int)(accu >> 32); if (i == 0) { nz = 1; } else { nz = 0; while (FFABS(i) < 0x40000000) { i <<= 1; nz++; ...
[ "static av_always_inline VAR_0 autocorr_calc(int64_t accu)\n{", "int nz, mant, expo, round;", "int i = (int)(accu >> 32);", "if (i == 0) {", "nz = 1;", "} else {", "nz = 0;", "while (FFABS(i) < 0x40000000) {", "i <<= 1;", "nz++;", "}", "nz = 32-nz;", "}", "round = 1 << (nz-1);", "mant = ...
[ 0, 1, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
9,612
static void search_for_ms(AACEncContext *s, ChannelElement *cpe, const float lambda) { int start = 0, i, w, w2, g; float M[128], S[128]; float *L34 = s->scoefs, *R34 = s->scoefs + 128, *M34 = s->scoefs + 128*2, *S34 = s->scoefs + 128*3; SingleChannelElement *sce0 = &cpe->...
true
FFmpeg
6394acaf36da3106f4793bda32730f8ff6b0ddb1
static void search_for_ms(AACEncContext *s, ChannelElement *cpe, const float lambda) { int start = 0, i, w, w2, g; float M[128], S[128]; float *L34 = s->scoefs, *R34 = s->scoefs + 128, *M34 = s->scoefs + 128*2, *S34 = s->scoefs + 128*3; SingleChannelElement *sce0 = &cpe->...
{ "code": [ " M[i] = (sce0->coeffs[start+w2*128+i]", " + sce1->coeffs[start+w2*128+i]) * 0.5;", " - sce1->coeffs[start+w2*128+i];" ], "line_no": [ 41, 43, 47 ] }
static void FUNC_0(AACEncContext *VAR_0, ChannelElement *VAR_1, const float VAR_2) { int VAR_3 = 0, VAR_4, VAR_5, VAR_6, VAR_7; float VAR_8[128], VAR_9[128]; float *VAR_10 = VAR_0->scoefs, *VAR_11 = VAR_0->scoefs + 128, *VAR_12 = VAR_0->scoefs + 128*2, *VAR_13 = VAR_0->scoefs ...
[ "static void FUNC_0(AACEncContext *VAR_0, ChannelElement *VAR_1,\nconst float VAR_2)\n{", "int VAR_3 = 0, VAR_4, VAR_5, VAR_6, VAR_7;", "float VAR_8[128], VAR_9[128];", "float *VAR_10 = VAR_0->scoefs, *VAR_11 = VAR_0->scoefs + 128, *VAR_12 = VAR_0->scoefs + 128*2, *VAR_13 = VAR_0->scoefs + 128*3;", "SingleC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [...
9,614
struct SwrContext *swr_alloc_set_opts(struct SwrContext *s, int64_t out_ch_layout, enum AVSampleFormat out_sample_fmt, int out_sample_rate, int64_t in_ch_layout, enum AVSampleFormat in_sample_fmt, int in_sample_rate, ...
true
FFmpeg
f4e814f787d050ac65f507b1304dcdc4ffa56f29
struct SwrContext *swr_alloc_set_opts(struct SwrContext *s, int64_t out_ch_layout, enum AVSampleFormat out_sample_fmt, int out_sample_rate, int64_t in_ch_layout, enum AVSampleFormat in_sample_fmt, int in_sample_rate, ...
{ "code": [ " av_opt_set_int(s, \"ocl\", out_ch_layout, 0);", " av_opt_set_int(s, \"osf\", out_sample_fmt, 0);", " av_opt_set_int(s, \"osr\", out_sample_rate, 0);", " av_opt_set_int(s, \"icl\", in_ch_layout, 0);", " av_opt_set_int(s, \"isf\", in_sample_fmt, 0);", " av...
struct SwrContext *FUNC_0(struct SwrContext *VAR_0, int64_t VAR_1, enum AVSampleFormat VAR_2, int VAR_3, int64_t VAR_4, enum AVSampleFormat VAR_5, int VAR_6, int VAR_7, void *VAR_8){ if(!VAR_0) V...
[ "struct SwrContext *FUNC_0(struct SwrContext *VAR_0,\nint64_t VAR_1, enum AVSampleFormat VAR_2, int VAR_3,\nint64_t VAR_4, enum AVSampleFormat VAR_5, int VAR_6,\nint VAR_7, void *VAR_8){", "if(!VAR_0) VAR_0= swr_alloc();", "if(!VAR_0) return NULL;", "VAR_0->log_level_offset= VAR_7;", "VAR_0->VAR_8= VAR_8...
[ 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
9,615
static int ipvideo_decode_block_opcode_0x8(IpvideoContext *s, AVFrame *frame) { int x, y; unsigned char P[4]; unsigned int flags = 0; /* 2-color encoding for each 4x4 quadrant, or 2-color encoding on * either top and bottom or left and right halves */ P[0] = bytestream2_get_byte(&s->stream_ptr)...
true
FFmpeg
8eb76217d0137b7adad438f6c923310fbc1fc4c1
static int ipvideo_decode_block_opcode_0x8(IpvideoContext *s, AVFrame *frame) { int x, y; unsigned char P[4]; unsigned int flags = 0; P[0] = bytestream2_get_byte(&s->stream_ptr); P[1] = bytestream2_get_byte(&s->stream_ptr); if (P[0] <= P[1]) { for (y = 0; y < 16; y++) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(IpvideoContext *VAR_0, AVFrame *VAR_1) { int VAR_2, VAR_3; unsigned char VAR_4[4]; unsigned int VAR_5 = 0; VAR_4[0] = bytestream2_get_byte(&VAR_0->stream_ptr); VAR_4[1] = bytestream2_get_byte(&VAR_0->stream_ptr); if (VAR_4[0] <= VAR_4[1]) { for (VAR_3 = 0; VAR_3 <...
[ "static int FUNC_0(IpvideoContext *VAR_0, AVFrame *VAR_1)\n{", "int VAR_2, VAR_3;", "unsigned char VAR_4[4];", "unsigned int VAR_5 = 0;", "VAR_4[0] = bytestream2_get_byte(&VAR_0->stream_ptr);", "VAR_4[1] = bytestream2_get_byte(&VAR_0->stream_ptr);", "if (VAR_4[0] <= VAR_4[1]) {", "for (VAR_3 = 0; 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 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 22 ], [ 23 ], [ 24 ], [ 25 ...
9,617
FpPort *fp_port_alloc(Rocker *r, char *sw_name, MACAddr *start_mac, unsigned int index, NICPeers *peers) { FpPort *port = g_malloc0(sizeof(FpPort)); if (!port) { return NULL; } port->r = r; port->index = index; port->pport = index...
true
qemu
778358d0a8f74a76488daea3c1b6fb327d8135b4
FpPort *fp_port_alloc(Rocker *r, char *sw_name, MACAddr *start_mac, unsigned int index, NICPeers *peers) { FpPort *port = g_malloc0(sizeof(FpPort)); if (!port) { return NULL; } port->r = r; port->index = index; port->pport = index...
{ "code": [ " FpPort *port = g_malloc0(sizeof(FpPort));" ], "line_no": [ 9 ] }
FpPort *FUNC_0(Rocker *r, char *sw_name, MACAddr *start_mac, unsigned int index, NICPeers *peers) { FpPort *port = g_malloc0(sizeof(FpPort)); if (!port) { return NULL; } port->r = r; port->index = index; port->pport = index + 1; ...
[ "FpPort *FUNC_0(Rocker *r, char *sw_name,\nMACAddr *start_mac, unsigned int index,\nNICPeers *peers)\n{", "FpPort *port = g_malloc0(sizeof(FpPort));", "if (!port) {", "return NULL;", "}", "port->r = r;", "port->index = index;", "port->pport = index + 1;", "port->name = g_strdup_printf(\"%sp%d\", sw_...
[ 0, 1, 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 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51, 53 ], [ 57 ], [ 61 ], [ 63 ...
9,618
static void show_stream(AVFormatContext *fmt_ctx, int stream_idx) { AVStream *stream = fmt_ctx->streams[stream_idx]; AVCodecContext *dec_ctx; AVCodec *dec; const char *profile; char val_str[128]; AVRational display_aspect_ratio; probe_object_header("stream"); probe_int("inde...
true
FFmpeg
aba232cfa9b193604ed98f3fa505378d006b1b3b
static void show_stream(AVFormatContext *fmt_ctx, int stream_idx) { AVStream *stream = fmt_ctx->streams[stream_idx]; AVCodecContext *dec_ctx; AVCodec *dec; const char *profile; char val_str[128]; AVRational display_aspect_ratio; probe_object_header("stream"); probe_int("inde...
{ "code": [ " probe_str(\"r_frame_rate\",", " rational_string(val_str, sizeof(val_str), \"/\",", " &stream->r_frame_rate));" ], "line_no": [ 151, 153, 155 ] }
static void FUNC_0(AVFormatContext *VAR_0, int VAR_1) { AVStream *stream = VAR_0->streams[VAR_1]; AVCodecContext *dec_ctx; AVCodec *dec; const char *VAR_2; char VAR_3[128]; AVRational display_aspect_ratio; probe_object_header("stream"); probe_int("index", stream->index); ...
[ "static void FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "AVStream *stream = VAR_0->streams[VAR_1];", "AVCodecContext *dec_ctx;", "AVCodec *dec;", "const char *VAR_2;", "char VAR_3[128];", "AVRational display_aspect_ratio;", "probe_object_header(\"stream\");", "probe_int(\"index\", stream->index)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47, 49 ], [ 55 ...
9,620
static int is_not_zero(const uint8_t *sector, int len) { /* * Use long as the biggest available internal data type that fits into the * CPU register and unroll the loop to smooth out the effect of memory * latency. */ int i; long d0, d1, d2, d3; const long * const data = (...
false
qemu
1a6d39fd71ddf90c5b76026cac4d5ff51fbaf8d8
static int is_not_zero(const uint8_t *sector, int len) { int i; long d0, d1, d2, d3; const long * const data = (const long *) sector; len /= sizeof(long); for(i = 0; i < len; i += 4) { d0 = data[i + 0]; d1 = data[i + 1]; d2 = data[i + 2]; ...
{ "code": [], "line_no": [] }
static int FUNC_0(const uint8_t *VAR_0, int VAR_1) { int VAR_2; long VAR_3, VAR_4, VAR_5, VAR_6; const long * const VAR_7 = (const long *) VAR_0; VAR_1 /= sizeof(long); for(VAR_2 = 0; VAR_2 < VAR_1; VAR_2 += 4) { VAR_3 = VAR_7[VAR_2 + 0]; VAR_4 = VAR_7[VAR...
[ "static int FUNC_0(const uint8_t *VAR_0, int VAR_1)\n{", "int VAR_2;", "long VAR_3, VAR_4, VAR_5, VAR_6;", "const long * const VAR_7 = (const long *) VAR_0;", "VAR_1 /= sizeof(long);", "for(VAR_2 = 0; VAR_2 < VAR_1; VAR_2 += 4) {", "VAR_3 = VAR_7[VAR_2 + 0];", "VAR_4 = VAR_7[VAR_2 + 1];", "VAR_5 = V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ] ]
9,621
static void taihu_405ep_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const cha...
false
qemu
093209cd681fe9fb65bd8a1c2ff711b8168bbfcd
static void taihu_405ep_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const cha...
{ "code": [], "line_no": [] }
static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5) { char *VAR_6; CPUPPCState ...
[ "static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nconst char *VAR_4,\nconst char *VAR_5)\n{", "char *VAR_6;", "CPUPPCState *env;", "qemu_irq *pic;", "ram_addr_t bios_offset;", "target_phys_addr_t ram_bases[2], ram_sizes[2];", "target_ulong bios_size;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ...
9,622
static int decode_frame_header (bit_buffer_t *bitbuf,MpegEncContext *s) { int frame_size_code; /* unknown field */ get_bits (bitbuf, 8); /* frame type */ s->pict_type = get_bits (bitbuf, 2); if (s->pict_type == 3) return -1; if (s->pict_type == SVQ1_FRAME_INTRA) { /* unknown fie...
false
FFmpeg
82dd7d0dec29ee59af91ce18c29eb151b363ff37
static int decode_frame_header (bit_buffer_t *bitbuf,MpegEncContext *s) { int frame_size_code; get_bits (bitbuf, 8); s->pict_type = get_bits (bitbuf, 2); if (s->pict_type == 3) return -1; if (s->pict_type == SVQ1_FRAME_INTRA) { if (s->f_code == 0x50 || s->f_code == 0x60)...
{ "code": [], "line_no": [] }
static int FUNC_0 (bit_buffer_t *VAR_0,MpegEncContext *VAR_1) { int VAR_2; get_bits (VAR_0, 8); VAR_1->pict_type = get_bits (VAR_0, 2); if (VAR_1->pict_type == 3) return -1; if (VAR_1->pict_type == SVQ1_FRAME_INTRA) { if (VAR_1->f_code == 0x50 || VAR_1->f_code == 0x60) {...
[ "static int FUNC_0 (bit_buffer_t *VAR_0,MpegEncContext *VAR_1) {", "int VAR_2;", "get_bits (VAR_0, 8);", "VAR_1->pict_type = get_bits (VAR_0, 2);", "if (VAR_1->pict_type == 3)\nreturn -1;", "if (VAR_1->pict_type == SVQ1_FRAME_INTRA) {", "if (VAR_1->f_code == 0x50 || VAR_1->f_code == 0x60) {", "get_bit...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 9 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ], [ 61 ], [ 65 ], [ 67 ], [ 7...
9,623
static void posix_aio_read(void *opaque) { PosixAioState *s = opaque; RawAIOCB *acb, **pacb; int ret; ssize_t len; /* read all bytes from signal pipe */ for (;;) { char bytes[16]; len = read(s->rfd, bytes, sizeof(bytes)); if (len == -1 && errno == EINTR) ...
false
qemu
3c529d935923a70519557d420db1d5a09a65086a
static void posix_aio_read(void *opaque) { PosixAioState *s = opaque; RawAIOCB *acb, **pacb; int ret; ssize_t len; for (;;) { char bytes[16]; len = read(s->rfd, bytes, sizeof(bytes)); if (len == -1 && errno == EINTR) continue; if (len...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { PosixAioState *s = VAR_0; RawAIOCB *acb, **pacb; int VAR_1; ssize_t len; for (;;) { char VAR_2[16]; len = read(s->rfd, VAR_2, sizeof(VAR_2)); if (len == -1 && errno == EINTR) continue; if (len == size...
[ "static void FUNC_0(void *VAR_0)\n{", "PosixAioState *s = VAR_0;", "RawAIOCB *acb, **pacb;", "int VAR_1;", "ssize_t len;", "for (;;) {", "char VAR_2[16];", "len = read(s->rfd, VAR_2, sizeof(VAR_2));", "if (len == -1 && errno == EINTR)\ncontinue;", "if (len == sizeof(VAR_2))\ncontinue;", "break;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [...
9,624
static int usbredir_handle_data(USBDevice *udev, USBPacket *p) { USBRedirDevice *dev = DO_UPCAST(USBRedirDevice, dev, udev); uint8_t ep; ep = p->devep; if (p->pid == USB_TOKEN_IN) { ep |= USB_DIR_IN; } switch (dev->endpoint[EP2I(ep)].type) { case USB_ENDPOINT_XFER_CONTRO...
false
qemu
079d0b7f1eedcc634c371fe05b617fdc55c8b762
static int usbredir_handle_data(USBDevice *udev, USBPacket *p) { USBRedirDevice *dev = DO_UPCAST(USBRedirDevice, dev, udev); uint8_t ep; ep = p->devep; if (p->pid == USB_TOKEN_IN) { ep |= USB_DIR_IN; } switch (dev->endpoint[EP2I(ep)].type) { case USB_ENDPOINT_XFER_CONTRO...
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1) { USBRedirDevice *dev = DO_UPCAST(USBRedirDevice, dev, VAR_0); uint8_t ep; ep = VAR_1->devep; if (VAR_1->pid == USB_TOKEN_IN) { ep |= USB_DIR_IN; } switch (dev->endpoint[EP2I(ep)].type) { case USB_ENDPOINT_XFER_CONTRO...
[ "static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)\n{", "USBRedirDevice *dev = DO_UPCAST(USBRedirDevice, dev, VAR_0);", "uint8_t ep;", "ep = VAR_1->devep;", "if (VAR_1->pid == USB_TOKEN_IN) {", "ep |= USB_DIR_IN;", "}", "switch (dev->endpoint[EP2I(ep)].type) {", "case USB_ENDPOINT_XFER_CONTROL:\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43, 45 ], [ 47 ], [ 49 ], [ 51...
9,625
int kvm_s390_vcpu_interrupt_post_load(S390CPU *cpu) { CPUState *cs = CPU(cpu); struct kvm_s390_irq_state irq_state; int r; if (!kvm_check_extension(kvm_state, KVM_CAP_S390_IRQ_STATE)) { return -ENOSYS; } if (cpu->irqstate_saved_size == 0) { return 0; } irq_...
false
qemu
b853d4cbf2062813e84f9bb880feff8daf467e05
int kvm_s390_vcpu_interrupt_post_load(S390CPU *cpu) { CPUState *cs = CPU(cpu); struct kvm_s390_irq_state irq_state; int r; if (!kvm_check_extension(kvm_state, KVM_CAP_S390_IRQ_STATE)) { return -ENOSYS; } if (cpu->irqstate_saved_size == 0) { return 0; } irq_...
{ "code": [], "line_no": [] }
int FUNC_0(S390CPU *VAR_0) { CPUState *cs = CPU(VAR_0); struct kvm_s390_irq_state VAR_1; int VAR_2; if (!kvm_check_extension(kvm_state, KVM_CAP_S390_IRQ_STATE)) { return -ENOSYS; } if (VAR_0->irqstate_saved_size == 0) { return 0; } VAR_1.buf = (uint64_t) VA...
[ "int FUNC_0(S390CPU *VAR_0)\n{", "CPUState *cs = CPU(VAR_0);", "struct kvm_s390_irq_state VAR_1;", "int VAR_2;", "if (!kvm_check_extension(kvm_state, KVM_CAP_S390_IRQ_STATE)) {", "return -ENOSYS;", "}", "if (VAR_0->irqstate_saved_size == 0) {", "return 0;", "}", "VAR_1.buf = (uint64_t) VAR_0->ir...
[ 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 ] ]
9,626
void do_info_roms(Monitor *mon) { Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (!rom->fw_file) { monitor_printf(mon, "addr=" TARGET_FMT_plx " size=0x%06zx mem=%s name=\"%s\" \n", rom->addr, rom->romsize, ...
false
qemu
bdb5ee3064d5ae786b0bcb6cf6ff4e3554a72990
void do_info_roms(Monitor *mon) { Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (!rom->fw_file) { monitor_printf(mon, "addr=" TARGET_FMT_plx " size=0x%06zx mem=%s name=\"%s\" \n", rom->addr, rom->romsize, ...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0) { Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (!rom->fw_file) { monitor_printf(VAR_0, "addr=" TARGET_FMT_plx " size=0x%06zx mem=%s name=\"%s\" \n", rom->addr, rom->romsize, ...
[ "void FUNC_0(Monitor *VAR_0)\n{", "Rom *rom;", "QTAILQ_FOREACH(rom, &roms, next) {", "if (!rom->fw_file) {", "monitor_printf(VAR_0, \"addr=\" TARGET_FMT_plx\n\" size=0x%06zx mem=%s name=\\\"%s\\\" \\n\",\nrom->addr, rom->romsize,\nrom->isrom ? \"rom\" : \"ram\",\nrom->name);", "} else {", "monitor_print...
[ 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 ] ]
9,628
static void do_smbios_option(const char *optarg) { if (smbios_entry_add(optarg) < 0) { fprintf(stderr, "Wrong smbios provided\n"); exit(1); } }
false
qemu
ad96090a01d848df67d70c5259ed8aa321fa8716
static void do_smbios_option(const char *optarg) { if (smbios_entry_add(optarg) < 0) { fprintf(stderr, "Wrong smbios provided\n"); exit(1); } }
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { if (smbios_entry_add(VAR_0) < 0) { fprintf(stderr, "Wrong smbios provided\n"); exit(1); } }
[ "static void FUNC_0(const char *VAR_0)\n{", "if (smbios_entry_add(VAR_0) < 0) {", "fprintf(stderr, \"Wrong smbios provided\\n\");", "exit(1);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
9,631
static ExitStatus gen_store_conditional(DisasContext *ctx, int ra, int rb, int32_t disp16, int quad) { TCGv addr; if (ra == 31) { /* ??? Don't bother storing anything. The user can't tell the difference, since the zero register always reads zer...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static ExitStatus gen_store_conditional(DisasContext *ctx, int ra, int rb, int32_t disp16, int quad) { TCGv addr; if (ra == 31) { return NO_EXIT; } #if defined(CONFIG_USER_ONLY) addr = cpu_lock_st_addr; #else addr = tcg_temp_l...
{ "code": [], "line_no": [] }
static ExitStatus FUNC_0(DisasContext *ctx, int ra, int rb, int32_t disp16, int quad) { TCGv addr; if (ra == 31) { return NO_EXIT; } #if defined(CONFIG_USER_ONLY) addr = cpu_lock_st_addr; #else addr = tcg_temp_local_new(); #e...
[ "static ExitStatus FUNC_0(DisasContext *ctx, int ra, int rb,\nint32_t disp16, int quad)\n{", "TCGv addr;", "if (ra == 31) {", "return NO_EXIT;", "}", "#if defined(CONFIG_USER_ONLY)\naddr = cpu_lock_st_addr;", "#else\naddr = tcg_temp_local_new();", "#endif\ntcg_gen_addi_i64(addr, load_gpr(ctx, rb), dis...
[ 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27, 29 ], [ 31, 35 ], [ 39, 47 ], [ 49, 55 ], [ 57 ], [ 59 ], [ 63 ], [ 65 ], [ 67 ], [ 71 ], [ 73...
9,632
static int mp_pacl_setxattr(FsContext *ctx, const char *path, const char *name, void *value, size_t size, int flags) { char buffer[PATH_MAX]; return lsetxattr(rpath(ctx, path, buffer), MAP_ACL_ACCESS, value, size, flags); }
false
qemu
4fa4ce7107c6ec432f185307158c5df91ce54308
static int mp_pacl_setxattr(FsContext *ctx, const char *path, const char *name, void *value, size_t size, int flags) { char buffer[PATH_MAX]; return lsetxattr(rpath(ctx, path, buffer), MAP_ACL_ACCESS, value, size, flags); }
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2, void *VAR_3, size_t VAR_4, int VAR_5) { char VAR_6[PATH_MAX]; return lsetxattr(rpath(VAR_0, VAR_1, VAR_6), MAP_ACL_ACCESS, VAR_3, VAR_4, VAR_5); }
[ "static int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2,\nvoid *VAR_3, size_t VAR_4, int VAR_5)\n{", "char VAR_6[PATH_MAX];", "return lsetxattr(rpath(VAR_0, VAR_1, VAR_6), MAP_ACL_ACCESS, VAR_3,\nVAR_4, VAR_5);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13 ] ]
9,633
static int mkv_write_attachments(AVFormatContext *s) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *dyn_cp, *pb = s->pb; ebml_master attachments; AVLFG c; int i, ret; if (!mkv->have_attachments) return 0; mkv->attachments = av_mallocz(sizeof(*mkv->attachments)); ...
false
FFmpeg
eabbc64728c2fdb74f565aededec2ab023d20699
static int mkv_write_attachments(AVFormatContext *s) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *dyn_cp, *pb = s->pb; ebml_master attachments; AVLFG c; int i, ret; if (!mkv->have_attachments) return 0; mkv->attachments = av_mallocz(sizeof(*mkv->attachments)); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { MatroskaMuxContext *mkv = VAR_0->priv_data; AVIOContext *dyn_cp, *pb = VAR_0->pb; ebml_master attachments; AVLFG c; int VAR_1, VAR_2; if (!mkv->have_attachments) return 0; mkv->attachments = av_mallocz(sizeof(*mkv->attachments)...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MatroskaMuxContext *mkv = VAR_0->priv_data;", "AVIOContext *dyn_cp, *pb = VAR_0->pb;", "ebml_master attachments;", "AVLFG c;", "int VAR_1, VAR_2;", "if (!mkv->have_attachments)\nreturn 0;", "mkv->attachments = av_mallocz(sizeof(*mkv->attachments));", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
9,634
static void spr_write_dbatu (void *opaque, int sprn) { DisasContext *ctx = opaque; gen_op_store_dbatu((sprn - SPR_DBAT0U) / 2); RET_STOP(ctx); }
false
qemu
e1833e1f96456fd8fc17463246fe0b2050e68efb
static void spr_write_dbatu (void *opaque, int sprn) { DisasContext *ctx = opaque; gen_op_store_dbatu((sprn - SPR_DBAT0U) / 2); RET_STOP(ctx); }
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, int VAR_1) { DisasContext *ctx = VAR_0; gen_op_store_dbatu((VAR_1 - SPR_DBAT0U) / 2); RET_STOP(ctx); }
[ "static void FUNC_0 (void *VAR_0, int VAR_1)\n{", "DisasContext *ctx = VAR_0;", "gen_op_store_dbatu((VAR_1 - SPR_DBAT0U) / 2);", "RET_STOP(ctx);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
9,635
void vga_hw_invalidate(void) { if (active_console->hw_invalidate) active_console->hw_invalidate(active_console->hw); }
false
qemu
26572b8a0e90ee0c77587173a78fa293a1d2beb6
void vga_hw_invalidate(void) { if (active_console->hw_invalidate) active_console->hw_invalidate(active_console->hw); }
{ "code": [], "line_no": [] }
void FUNC_0(void) { if (active_console->hw_invalidate) active_console->hw_invalidate(active_console->hw); }
[ "void FUNC_0(void)\n{", "if (active_console->hw_invalidate)\nactive_console->hw_invalidate(active_console->hw);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
9,636
static uint32_t pmac_ide_readw (void *opaque,target_phys_addr_t addr) { uint16_t retval; MACIOIDEState *d = opaque; addr = (addr & 0xFFF) >> 4; if (addr == 0) { retval = ide_data_readw(&d->bus, 0); } else { retval = 0xFFFF; } retval = bswap16(retval); return ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint32_t pmac_ide_readw (void *opaque,target_phys_addr_t addr) { uint16_t retval; MACIOIDEState *d = opaque; addr = (addr & 0xFFF) >> 4; if (addr == 0) { retval = ide_data_readw(&d->bus, 0); } else { retval = 0xFFFF; } retval = bswap16(retval); return ...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0 (void *opaque,target_phys_addr_t addr) { uint16_t retval; MACIOIDEState *d = opaque; addr = (addr & 0xFFF) >> 4; if (addr == 0) { retval = ide_data_readw(&d->bus, 0); } else { retval = 0xFFFF; } retval = bswap16(retval); return retval; ...
[ "static uint32_t FUNC_0 (void *opaque,target_phys_addr_t addr)\n{", "uint16_t retval;", "MACIOIDEState *d = opaque;", "addr = (addr & 0xFFF) >> 4;", "if (addr == 0) {", "retval = ide_data_readw(&d->bus, 0);", "} else {", "retval = 0xFFFF;", "}", "retval = bswap16(retval);", "return retval;", "...
[ 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 ] ]
9,637
DeviceState *pxa2xx_gpio_init(target_phys_addr_t base, CPUState *env, qemu_irq *pic, int lines) { DeviceState *dev; dev = qdev_create(NULL, "pxa2xx-gpio"); qdev_prop_set_int32(dev, "lines", lines); qdev_prop_set_int32(dev, "ncpu", env->cpu_index); qdev_init_nofail(dev); ...
false
qemu
e1f8c729fa890c67bb4532f22c22ace6fb0e1aaf
DeviceState *pxa2xx_gpio_init(target_phys_addr_t base, CPUState *env, qemu_irq *pic, int lines) { DeviceState *dev; dev = qdev_create(NULL, "pxa2xx-gpio"); qdev_prop_set_int32(dev, "lines", lines); qdev_prop_set_int32(dev, "ncpu", env->cpu_index); qdev_init_nofail(dev); ...
{ "code": [], "line_no": [] }
DeviceState *FUNC_0(target_phys_addr_t base, CPUState *env, qemu_irq *pic, int lines) { DeviceState *dev; dev = qdev_create(NULL, "pxa2xx-gpio"); qdev_prop_set_int32(dev, "lines", lines); qdev_prop_set_int32(dev, "ncpu", env->cpu_index); qdev_init_nofail(dev); sysbus_...
[ "DeviceState *FUNC_0(target_phys_addr_t base,\nCPUState *env, qemu_irq *pic, int lines)\n{", "DeviceState *dev;", "dev = qdev_create(NULL, \"pxa2xx-gpio\");", "qdev_prop_set_int32(dev, \"lines\", lines);", "qdev_prop_set_int32(dev, \"ncpu\", env->cpu_index);", "qdev_init_nofail(dev);", "sysbus_mmio_map(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
9,638
static void v9fs_renameat(void *opaque) { ssize_t err = 0; size_t offset = 7; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; int32_t olddirfid, newdirfid; V9fsString old_name, new_name; pdu_unmarshal(pdu, offset, "dsds", &olddirfid, &old_name, &newdirfid, &new_nam...
false
qemu
ddca7f86ac022289840e0200fd4050b2b58e9176
static void v9fs_renameat(void *opaque) { ssize_t err = 0; size_t offset = 7; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; int32_t olddirfid, newdirfid; V9fsString old_name, new_name; pdu_unmarshal(pdu, offset, "dsds", &olddirfid, &old_name, &newdirfid, &new_nam...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { ssize_t err = 0; size_t offset = 7; V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; int32_t olddirfid, newdirfid; V9fsString old_name, new_name; pdu_unmarshal(pdu, offset, "dsds", &olddirfid, &old_name, &newdirfid, &new_name); ...
[ "static void FUNC_0(void *VAR_0)\n{", "ssize_t err = 0;", "size_t offset = 7;", "V9fsPDU *pdu = VAR_0;", "V9fsState *s = pdu->s;", "int32_t olddirfid, newdirfid;", "V9fsString old_name, new_name;", "pdu_unmarshal(pdu, offset, \"dsds\", &olddirfid,\n&old_name, &newdirfid, &new_name);", "v9fs_path_wri...
[ 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 ], [ 43 ], [ 45 ] ]
9,640
static int ssi_sd_init(SSISlave *d) { DeviceState *dev = DEVICE(d); ssi_sd_state *s = FROM_SSI_SLAVE(ssi_sd_state, d); DriveInfo *dinfo; s->mode = SSI_SD_CMD; dinfo = drive_get_next(IF_SD); s->sd = sd_init(dinfo ? blk_bs(blk_by_legacy_dinfo(dinfo)) : NULL, true); if (s->sd == NULL)...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static int ssi_sd_init(SSISlave *d) { DeviceState *dev = DEVICE(d); ssi_sd_state *s = FROM_SSI_SLAVE(ssi_sd_state, d); DriveInfo *dinfo; s->mode = SSI_SD_CMD; dinfo = drive_get_next(IF_SD); s->sd = sd_init(dinfo ? blk_bs(blk_by_legacy_dinfo(dinfo)) : NULL, true); if (s->sd == NULL)...
{ "code": [], "line_no": [] }
static int FUNC_0(SSISlave *VAR_0) { DeviceState *dev = DEVICE(VAR_0); ssi_sd_state *s = FROM_SSI_SLAVE(ssi_sd_state, VAR_0); DriveInfo *dinfo; s->mode = SSI_SD_CMD; dinfo = drive_get_next(IF_SD); s->sd = sd_init(dinfo ? blk_bs(blk_by_legacy_dinfo(dinfo)) : NULL, true); if (s->sd =...
[ "static int FUNC_0(SSISlave *VAR_0)\n{", "DeviceState *dev = DEVICE(VAR_0);", "ssi_sd_state *s = FROM_SSI_SLAVE(ssi_sd_state, VAR_0);", "DriveInfo *dinfo;", "s->mode = SSI_SD_CMD;", "dinfo = drive_get_next(IF_SD);", "s->sd = sd_init(dinfo ? blk_bs(blk_by_legacy_dinfo(dinfo)) : NULL, true);", "if (s->s...
[ 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 ] ]
9,641
static int vfio_mmap_bar(VFIOBAR *bar, MemoryRegion *mem, MemoryRegion *submem, void **map, size_t size, off_t offset, const char *name) { int ret = 0; if (size && bar->flags & VFIO_REGION_INFO_FLAG_MMAP) { int prot = 0; if (bar->flags...
false
qemu
82ca891283a08cddd659b534592fe00f2159bc74
static int vfio_mmap_bar(VFIOBAR *bar, MemoryRegion *mem, MemoryRegion *submem, void **map, size_t size, off_t offset, const char *name) { int ret = 0; if (size && bar->flags & VFIO_REGION_INFO_FLAG_MMAP) { int prot = 0; if (bar->flags...
{ "code": [], "line_no": [] }
static int FUNC_0(VFIOBAR *VAR_0, MemoryRegion *VAR_1, MemoryRegion *VAR_2, void **VAR_3, size_t VAR_4, off_t VAR_5, const char *VAR_6) { int VAR_7 = 0; if (VAR_4 && VAR_0->flags & VFIO_REGION_INFO_FLAG_MMAP) { int VAR_8 = 0; if (VAR_0...
[ "static int FUNC_0(VFIOBAR *VAR_0, MemoryRegion *VAR_1, MemoryRegion *VAR_2,\nvoid **VAR_3, size_t VAR_4, off_t VAR_5,\nconst char *VAR_6)\n{", "int VAR_7 = 0;", "if (VAR_4 && VAR_0->flags & VFIO_REGION_INFO_FLAG_MMAP) {", "int VAR_8 = 0;", "if (VAR_0->flags & VFIO_REGION_INFO_FLAG_READ) {", "VAR_8 |= PRO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [...
9,644
int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){ AVFrame temp_pic; int i; assert(s->codec_type == AVMEDIA_TYPE_VIDEO); if (pic->data[0] && (pic->width != s->width || pic->height != s->height || pic->format != s->pix_fmt)) { av_log(s, AV_LOG_WARNING, "Picture changed fr...
false
FFmpeg
e49780f749b2ce8e229fb8257cd01f60e0661b54
int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){ AVFrame temp_pic; int i; assert(s->codec_type == AVMEDIA_TYPE_VIDEO); if (pic->data[0] && (pic->width != s->width || pic->height != s->height || pic->format != s->pix_fmt)) { av_log(s, AV_LOG_WARNING, "Picture changed fr...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1){ AVFrame temp_pic; int VAR_2; assert(VAR_0->codec_type == AVMEDIA_TYPE_VIDEO); if (VAR_1->data[0] && (VAR_1->width != VAR_0->width || VAR_1->height != VAR_0->height || VAR_1->format != VAR_0->pix_fmt)) { av_log(VAR_0, AV_LOG_WARNING, "Pi...
[ "int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1){", "AVFrame temp_pic;", "int VAR_2;", "assert(VAR_0->codec_type == AVMEDIA_TYPE_VIDEO);", "if (VAR_1->data[0] && (VAR_1->width != VAR_0->width || VAR_1->height != VAR_0->height || VAR_1->format != VAR_0->pix_fmt)) {", "av_log(VAR_0, AV_LOG_WARNING, \"Pict...
[ 0, 0, 0, 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 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 61 ], [ 63...
9,645
void helper_ldfsr(CPUSPARCState *env, uint32_t new_fsr) { env->fsr = (new_fsr & FSR_LDFSR_MASK) | (env->fsr & FSR_LDFSR_OLDMASK); set_fsr(env); }
false
qemu
7385aed20db5d83979f683b9d0048674411e963c
void helper_ldfsr(CPUSPARCState *env, uint32_t new_fsr) { env->fsr = (new_fsr & FSR_LDFSR_MASK) | (env->fsr & FSR_LDFSR_OLDMASK); set_fsr(env); }
{ "code": [], "line_no": [] }
void FUNC_0(CPUSPARCState *VAR_0, uint32_t VAR_1) { VAR_0->fsr = (VAR_1 & FSR_LDFSR_MASK) | (VAR_0->fsr & FSR_LDFSR_OLDMASK); set_fsr(VAR_0); }
[ "void FUNC_0(CPUSPARCState *VAR_0, uint32_t VAR_1)\n{", "VAR_0->fsr = (VAR_1 & FSR_LDFSR_MASK) | (VAR_0->fsr & FSR_LDFSR_OLDMASK);", "set_fsr(VAR_0);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
9,646
void qemu_thread_self(QemuThread *thread) { thread->thread = pthread_self(); }
false
qemu
b7680cb6078bd7294a3dd86473d3f2fdee991dd0
void qemu_thread_self(QemuThread *thread) { thread->thread = pthread_self(); }
{ "code": [], "line_no": [] }
void FUNC_0(QemuThread *VAR_0) { VAR_0->VAR_0 = pthread_self(); }
[ "void FUNC_0(QemuThread *VAR_0)\n{", "VAR_0->VAR_0 = pthread_self();", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
9,648
static int create_shared_memory_BAR(IVShmemState *s, int fd, uint8_t attr, Error **errp) { void * ptr; ptr = mmap(0, s->ivshmem_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); if (ptr == MAP_FAILED) { error_setg_errno(errp, errno, "Failed to mmap shared me...
true
qemu
f689d2811a36894618087e1e2cc3ade78e758e94
static int create_shared_memory_BAR(IVShmemState *s, int fd, uint8_t attr, Error **errp) { void * ptr; ptr = mmap(0, s->ivshmem_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); if (ptr == MAP_FAILED) { error_setg_errno(errp, errno, "Failed to mmap shared me...
{ "code": [ " s->shm_fd = fd;" ], "line_no": [ 23 ] }
static int FUNC_0(IVShmemState *VAR_0, int VAR_1, uint8_t VAR_2, Error **VAR_3) { void * VAR_4; VAR_4 = mmap(0, VAR_0->ivshmem_size, PROT_READ|PROT_WRITE, MAP_SHARED, VAR_1, 0); if (VAR_4 == MAP_FAILED) { error_setg_errno(VAR_3, errno, "Failed to mmap shar...
[ "static int FUNC_0(IVShmemState *VAR_0, int VAR_1, uint8_t VAR_2,\nError **VAR_3)\n{", "void * VAR_4;", "VAR_4 = mmap(0, VAR_0->ivshmem_size, PROT_READ|PROT_WRITE, MAP_SHARED, VAR_1, 0);", "if (VAR_4 == MAP_FAILED) {", "error_setg_errno(VAR_3, errno, \"Failed to mmap shared memory\");", "return -1;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 39 ], [ 43 ], [ 45 ] ]
9,652
static av_always_inline int vc1_filter_line(uint8_t* src, int stride, int pq){ uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int a0 = (2*(src[-2*stride] - src[ 1*stride]) - 5*(src[-1*stride] - src[ 0*stride]) + 4) >> 3; int a0_sign = a0 >> 31; /* Store sign */ a0 = (a0 ^ a0_sign) - a0_sign; /* a...
true
FFmpeg
c23acbaed40101c677dfcfbbfe0d2c230a8e8f44
static av_always_inline int vc1_filter_line(uint8_t* src, int stride, int pq){ uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int a0 = (2*(src[-2*stride] - src[ 1*stride]) - 5*(src[-1*stride] - src[ 0*stride]) + 4) >> 3; int a0_sign = a0 >> 31; a0 = (a0 ^ a0_sign) - a0_sign; if(a0 < pq){ ...
{ "code": [ " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " uint8_t *cm = ff_cropTbl + MAX_NEG_CR...
static av_always_inline int FUNC_0(uint8_t* src, int stride, int pq){ uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int VAR_0 = (2*(src[-2*stride] - src[ 1*stride]) - 5*(src[-1*stride] - src[ 0*stride]) + 4) >> 3; int VAR_1 = VAR_0 >> 31; VAR_0 = (VAR_0 ^ VAR_1) - VAR_1; if(VAR_0 < pq){ ...
[ "static av_always_inline int FUNC_0(uint8_t* src, int stride, int pq){", "uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", "int VAR_0 = (2*(src[-2*stride] - src[ 1*stride]) - 5*(src[-1*stride] - src[ 0*stride]) + 4) >> 3;", "int VAR_1 = VAR_0 >> 31;", "VAR_0 = (VAR_0 ^ VAR_1) - VAR_1;", "if(VAR_0 < pq){", "in...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45...
9,653
static AVCodec *choose_codec(OptionsContext *o, AVFormatContext *s, AVStream *st, enum AVMediaType type) { char *codec_name = NULL; MATCH_PER_STREAM_OPT(codec_names, str, codec_name, s, st); if (!codec_name) { if (s->oformat) { st->codec->codec_id = av_guess_codec(s->oformat, N...
false
FFmpeg
1b648c7cdbee335c642bd2c05fe624fc195b85e6
static AVCodec *choose_codec(OptionsContext *o, AVFormatContext *s, AVStream *st, enum AVMediaType type) { char *codec_name = NULL; MATCH_PER_STREAM_OPT(codec_names, str, codec_name, s, st); if (!codec_name) { if (s->oformat) { st->codec->codec_id = av_guess_codec(s->oformat, N...
{ "code": [], "line_no": [] }
static AVCodec *FUNC_0(OptionsContext *o, AVFormatContext *s, AVStream *st, enum AVMediaType type) { char *VAR_0 = NULL; MATCH_PER_STREAM_OPT(codec_names, str, VAR_0, s, st); if (!VAR_0) { if (s->oformat) { st->codec->codec_id = av_guess_codec(s->oformat, NULL, s->filename, NUL...
[ "static AVCodec *FUNC_0(OptionsContext *o, AVFormatContext *s, AVStream *st, enum AVMediaType type)\n{", "char *VAR_0 = NULL;", "MATCH_PER_STREAM_OPT(codec_names, str, VAR_0, s, st);", "if (!VAR_0) {", "if (s->oformat) {", "st->codec->codec_id = av_guess_codec(s->oformat, NULL, s->filename, NULL, type);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 39 ], [ 41 ] ]
9,654
static uint16_t nvme_create_cq(NvmeCtrl *n, NvmeCmd *cmd) { NvmeCQueue *cq; NvmeCreateCq *c = (NvmeCreateCq *)cmd; uint16_t cqid = le16_to_cpu(c->cqid); uint16_t vector = le16_to_cpu(c->irq_vector); uint16_t qsize = le16_to_cpu(c->qsize); uint16_t qflags = le16_to_cpu(c->cq_flags); u...
true
qemu
1ee24514aed34760fb2863d98bea3a1b705d9c9f
static uint16_t nvme_create_cq(NvmeCtrl *n, NvmeCmd *cmd) { NvmeCQueue *cq; NvmeCreateCq *c = (NvmeCreateCq *)cmd; uint16_t cqid = le16_to_cpu(c->cqid); uint16_t vector = le16_to_cpu(c->irq_vector); uint16_t qsize = le16_to_cpu(c->qsize); uint16_t qflags = le16_to_cpu(c->cq_flags); u...
{ "code": [ " if (!prp1) {", " if (!qsize || qsize > NVME_CAP_MQES(n->bar.cap)) {", " if (!cqid || !nvme_check_cqid(n, cqid)) {", " if (!qsize || qsize > NVME_CAP_MQES(n->bar.cap)) {", " if (!prp1) {", " if (vector > n->num_queues) {", " if (!(NVME_CQ_FLAGS_PC(qflags))...
static uint16_t FUNC_0(NvmeCtrl *n, NvmeCmd *cmd) { NvmeCQueue *cq; NvmeCreateCq *c = (NvmeCreateCq *)cmd; uint16_t cqid = le16_to_cpu(c->cqid); uint16_t vector = le16_to_cpu(c->irq_vector); uint16_t qsize = le16_to_cpu(c->qsize); uint16_t qflags = le16_to_cpu(c->cq_flags); uint64_t ...
[ "static uint16_t FUNC_0(NvmeCtrl *n, NvmeCmd *cmd)\n{", "NvmeCQueue *cq;", "NvmeCreateCq *c = (NvmeCreateCq *)cmd;", "uint16_t cqid = le16_to_cpu(c->cqid);", "uint16_t vector = le16_to_cpu(c->irq_vector);", "uint16_t qsize = le16_to_cpu(c->qsize);", "uint16_t qflags = le16_to_cpu(c->cq_flags);", "uint...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
9,655
static void FUNC(put_hevc_epel_bi_w_hv)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, int denom, int wx0, int wx1, int ox0, int ox1, intptr_t ...
true
FFmpeg
fbdab6eca7874fbeba6aa79c269f345e4d43f5d4
static void FUNC(put_hevc_epel_bi_w_hv)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, int denom, int wx0, int wx1, int ox0, int ox1, intptr_t ...
{ "code": [ " ((ox0 + ox1 + 1) << log2Wd)) >> (log2Wd + 1));" ], "line_no": [ 67 ] }
static void FUNC_0(put_hevc_epel_bi_w_hv)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, int denom, int wx0, int wx1, int ox0, int ox1, intptr_...
[ "static void FUNC_0(put_hevc_epel_bi_w_hv)(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride,\nint16_t *src2,\nint height, int denom, int wx0, int wx1,\nint ox0, int ox1, intptr_t mx, intptr_t my, int width)\n{", "int VAR_0, VAR_1;", "pixel *src = (pixel *)_src;", "ptrdiff_t srcstride =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
9,656
static int vc1_decode_p_mb(VC1Context *v, DCTELEM block[6][64]) { MpegEncContext *s = &v->s; GetBitContext *gb = &s->gb; int i, j; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; int cbp; /* cbp decoding stuff */ int mqdiff, mquant; /* MB quantization */ int ttmb = v->ttfrm; /* MB Tra...
true
FFmpeg
928dc49d0e37db50a9d1359ef910cb1856aabfaf
static int vc1_decode_p_mb(VC1Context *v, DCTELEM block[6][64]) { MpegEncContext *s = &v->s; GetBitContext *gb = &s->gb; int i, j; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; int cbp; int mqdiff, mquant; int ttmb = v->ttfrm; int status; static const int size_table[6...
{ "code": [ " if(v->mb_type[0][s->block_index[i] - s->block_wrap[i]] || v->mb_type[0][s->block_index[i] - 1]) {" ], "line_no": [ 311 ] }
static int FUNC_0(VC1Context *VAR_0, DCTELEM VAR_1[6][64]) { MpegEncContext *s = &VAR_0->s; GetBitContext *gb = &s->gb; int VAR_2, VAR_3; int VAR_4 = s->mb_x + s->mb_y * s->mb_stride; int VAR_5; int VAR_6, VAR_7; int VAR_8 = VAR_0->ttfrm; int VAR_9; static const int VA...
[ "static int FUNC_0(VC1Context *VAR_0, DCTELEM VAR_1[6][64])\n{", "MpegEncContext *s = &VAR_0->s;", "GetBitContext *gb = &s->gb;", "int VAR_2, VAR_3;", "int VAR_4 = s->mb_x + s->mb_y * s->mb_stride;", "int VAR_5;", "int VAR_6, VAR_7;", "int VAR_8 = VAR_0->ttfrm;", "int VAR_9;", "static const int 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 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47,...
9,657
void qemu_co_rwlock_rdlock(CoRwlock *lock) { while (lock->writer) { qemu_co_queue_wait(&lock->queue); } lock->reader++; }
true
qemu
1b7f01d966f97b7820f3cdd471461cf0799a93cc
void qemu_co_rwlock_rdlock(CoRwlock *lock) { while (lock->writer) { qemu_co_queue_wait(&lock->queue); } lock->reader++; }
{ "code": [], "line_no": [] }
void FUNC_0(CoRwlock *VAR_0) { while (VAR_0->writer) { qemu_co_queue_wait(&VAR_0->queue); } VAR_0->reader++; }
[ "void FUNC_0(CoRwlock *VAR_0)\n{", "while (VAR_0->writer) {", "qemu_co_queue_wait(&VAR_0->queue);", "}", "VAR_0->reader++;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ] ]
9,658
static Qcow2BitmapList *bitmap_list_load(BlockDriverState *bs, uint64_t offset, uint64_t size, Error **errp) { int ret; BDRVQcow2State *s = bs->opaque; uint8_t *dir, *dir_end; Qcow2BitmapDirEntry *e; uint32_t nb_dir_entries = 0; Qcow2BitmapList *b...
true
qemu
5330f32b71b1868bdb3b444733063cb5adc4e8e6
static Qcow2BitmapList *bitmap_list_load(BlockDriverState *bs, uint64_t offset, uint64_t size, Error **errp) { int ret; BDRVQcow2State *s = bs->opaque; uint8_t *dir, *dir_end; Qcow2BitmapDirEntry *e; uint32_t nb_dir_entries = 0; Qcow2BitmapList *b...
{ "code": [ " bm = g_new(Qcow2Bitmap, 1);" ], "line_no": [ 135 ] }
static Qcow2BitmapList *FUNC_0(BlockDriverState *bs, uint64_t offset, uint64_t size, Error **errp) { int VAR_0; BDRVQcow2State *s = bs->opaque; uint8_t *dir, *dir_end; Qcow2BitmapDirEntry *e; uint32_t nb_dir_entries = 0; Qcow2BitmapList *bm_list =...
[ "static Qcow2BitmapList *FUNC_0(BlockDriverState *bs, uint64_t offset,\nuint64_t size, Error **errp)\n{", "int VAR_0;", "BDRVQcow2State *s = bs->opaque;", "uint8_t *dir, *dir_end;", "Qcow2BitmapDirEntry *e;", "uint32_t nb_dir_entries = 0;", "Qcow2BitmapList *bm_list = NULL;", "if (size == 0) {", "er...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
9,662
static void test_copy(const AVCodec *c1, const AVCodec *c2) { AVCodecContext *ctx1, *ctx2; printf("%s -> %s\nclosed:\n", c1 ? c1->name : "NULL", c2 ? c2->name : "NULL"); ctx1 = avcodec_alloc_context3(c1); ctx2 = avcodec_alloc_context3(c2); ctx1->width = ctx1->height = 128; if (ctx2->codec...
false
FFmpeg
699201ac0ef64baee261bc6fc587d00724f195af
static void test_copy(const AVCodec *c1, const AVCodec *c2) { AVCodecContext *ctx1, *ctx2; printf("%s -> %s\nclosed:\n", c1 ? c1->name : "NULL", c2 ? c2->name : "NULL"); ctx1 = avcodec_alloc_context3(c1); ctx2 = avcodec_alloc_context3(c2); ctx1->width = ctx1->height = 128; if (ctx2->codec...
{ "code": [], "line_no": [] }
static void FUNC_0(const AVCodec *VAR_0, const AVCodec *VAR_1) { AVCodecContext *ctx1, *ctx2; printf("%s -> %s\nclosed:\n", VAR_0 ? VAR_0->name : "NULL", VAR_1 ? VAR_1->name : "NULL"); ctx1 = avcodec_alloc_context3(VAR_0); ctx2 = avcodec_alloc_context3(VAR_1); ctx1->width = ctx1->height = 128;...
[ "static void FUNC_0(const AVCodec *VAR_0, const AVCodec *VAR_1)\n{", "AVCodecContext *ctx1, *ctx2;", "printf(\"%s -> %s\\nclosed:\\n\", VAR_0 ? VAR_0->name : \"NULL\", VAR_1 ? VAR_1->name : \"NULL\");", "ctx1 = avcodec_alloc_context3(VAR_0);", "ctx2 = avcodec_alloc_context3(VAR_1);", "ctx1->width = ctx1->...
[ 0, 0, 0, 0, 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 ...
9,663
static int process_audio_header_elements(AVFormatContext *s) { int inHeader = 1; EaDemuxContext *ea = s->priv_data; ByteIOContext *pb = &s->pb; int compression_type; ea->num_channels = 1; while (inHeader) { int inSubheader; uint8_t byte; byte = get_byte(pb);...
false
FFmpeg
93fa8b2bf5eb4302b2b188e7cbc44bf4909fd510
static int process_audio_header_elements(AVFormatContext *s) { int inHeader = 1; EaDemuxContext *ea = s->priv_data; ByteIOContext *pb = &s->pb; int compression_type; ea->num_channels = 1; while (inHeader) { int inSubheader; uint8_t byte; byte = get_byte(pb);...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { int VAR_1 = 1; EaDemuxContext *ea = VAR_0->priv_data; ByteIOContext *pb = &VAR_0->pb; int VAR_2; ea->num_channels = 1; while (VAR_1) { int VAR_3; uint8_t byte; byte = get_byte(pb); switch (byte) { ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1 = 1;", "EaDemuxContext *ea = VAR_0->priv_data;", "ByteIOContext *pb = &VAR_0->pb;", "int VAR_2;", "ea->num_channels = 1;", "while (VAR_1) {", "int VAR_3;", "uint8_t byte;", "byte = get_byte(pb);", "switch (byte) {", "case 0xFD:\nav_log...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51 ...
9,664
static int vc1_decode_b_mb_intfr(VC1Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &s->gb; int i, j; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; int cbp = 0; /* cbp decoding stuff */ int mqdiff, mquant; /* MB quantization */ int ttmb = v->ttfrm; /* MB Transform type ...
false
FFmpeg
b67138598ce158e3083f6295a27b63e2065d5ecb
static int vc1_decode_b_mb_intfr(VC1Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &s->gb; int i, j; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; int cbp = 0; int mqdiff, mquant; int ttmb = v->ttfrm; int mvsw = 0; int mb_has_coeffs = 1; int dmv_x, ...
{ "code": [], "line_no": [] }
static int FUNC_0(VC1Context *VAR_0) { MpegEncContext *s = &VAR_0->s; GetBitContext *gb = &s->gb; int VAR_1, VAR_2; int VAR_3 = s->mb_x + s->mb_y * s->mb_stride; int VAR_4 = 0; int VAR_5, VAR_6; int VAR_7 = VAR_0->ttfrm; int VAR_8 = 0; int VAR_9 = 1; int VAR_10, V...
[ "static int FUNC_0(VC1Context *VAR_0)\n{", "MpegEncContext *s = &VAR_0->s;", "GetBitContext *gb = &s->gb;", "int VAR_1, VAR_2;", "int VAR_3 = s->mb_x + s->mb_y * s->mb_stride;", "int VAR_4 = 0;", "int VAR_5, VAR_6;", "int VAR_7 = VAR_0->ttfrm;", "int VAR_8 = 0;", "int VAR_9 = 1;", "int VAR_10, V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
9,665
static void search_for_pns(AACEncContext *s, AVCodecContext *avctx, SingleChannelElement *sce) { int start = 0, w, w2, g; const float lambda = s->lambda; const float freq_mult = avctx->sample_rate/(1024.0f/sce->ics.num_windows)/2.0f; const float spread_threshold = NOISE_SPREAD_THRESHOLD*(lambda/120...
false
FFmpeg
033e58941e684ac7190d6d1b06f31a677be4539f
static void search_for_pns(AACEncContext *s, AVCodecContext *avctx, SingleChannelElement *sce) { int start = 0, w, w2, g; const float lambda = s->lambda; const float freq_mult = avctx->sample_rate/(1024.0f/sce->ics.num_windows)/2.0f; const float spread_threshold = NOISE_SPREAD_THRESHOLD*(lambda/120...
{ "code": [], "line_no": [] }
static void FUNC_0(AACEncContext *VAR_0, AVCodecContext *VAR_1, SingleChannelElement *VAR_2) { int VAR_3 = 0, VAR_4, VAR_5, VAR_6; const float VAR_7 = VAR_0->VAR_7; const float VAR_8 = VAR_1->sample_rate/(1024.0f/VAR_2->ics.num_windows)/2.0f; const float VAR_9 = NOISE_SPREAD_THRESHOLD*(VAR_7/120.f)...
[ "static void FUNC_0(AACEncContext *VAR_0, AVCodecContext *VAR_1, SingleChannelElement *VAR_2)\n{", "int VAR_3 = 0, VAR_4, VAR_5, VAR_6;", "const float VAR_7 = VAR_0->VAR_7;", "const float VAR_8 = VAR_1->sample_rate/(1024.0f/VAR_2->ics.num_windows)/2.0f;", "const float VAR_9 = NOISE_SPREAD_THRESHOLD*(VAR_7/1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ...
9,667
static void curses_calc_pad(void) { if (is_graphic_console()) { width = gwidth; height = gheight; } else { width = COLS; height = LINES; } if (screenpad) delwin(screenpad); clear(); refresh(); screenpad = newpad(height, width); ...
false
qemu
c21bbcfa3ff4f6dc49fb01080ef598851aa424dd
static void curses_calc_pad(void) { if (is_graphic_console()) { width = gwidth; height = gheight; } else { width = COLS; height = LINES; } if (screenpad) delwin(screenpad); clear(); refresh(); screenpad = newpad(height, width); ...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { if (is_graphic_console()) { width = gwidth; height = gheight; } else { width = COLS; height = LINES; } if (screenpad) delwin(screenpad); clear(); refresh(); screenpad = newpad(height, width); if (wid...
[ "static void FUNC_0(void)\n{", "if (is_graphic_console()) {", "width = gwidth;", "height = gheight;", "} else {", "width = COLS;", "height = LINES;", "}", "if (screenpad)\ndelwin(screenpad);", "clear();", "refresh();", "screenpad = newpad(height, width);", "if (width > COLS) {", "px = (wid...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
9,668
static void fpu_dump_state(CPUState *env, FILE *f, int (*fpu_fprintf)(FILE *f, const char *fmt, ...), int flags) { int i; int is_fpu64 = !!(env->hflags & MIPS_HFLAG_F64); #define printfpr(fp) \ ...
false
qemu
9a78eead0c74333a394c0f7bbfc4423ac746fcd5
static void fpu_dump_state(CPUState *env, FILE *f, int (*fpu_fprintf)(FILE *f, const char *fmt, ...), int flags) { int i; int is_fpu64 = !!(env->hflags & MIPS_HFLAG_F64); #define printfpr(fp) \ ...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0, FILE *VAR_3, int (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...), int VAR_4) { int VAR_5; int VAR_6 = !!(VAR_0->hflags & MIPS_HFLAG_F64); #define printfpr(fp) \ ...
[ "static void FUNC_0(CPUState *VAR_0, FILE *VAR_3,\nint (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),\nint VAR_4)\n{", "int VAR_5;", "int VAR_6 = !!(VAR_0->hflags & MIPS_HFLAG_F64);", "#define printfpr(fp) \\\ndo { ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19, 21, 23, 25, 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43, 45, 47, 49, 51 ], [ 53 ], [ 55 ], [ 61,...
9,671
static void qxl_hw_screen_dump(void *opaque, const char *filename, bool cswitch, Error **errp) { PCIQXLDevice *qxl = opaque; VGACommonState *vga = &qxl->vga; switch (qxl->mode) { case QXL_MODE_COMPAT: case QXL_MODE_NATIVE: qxl_render_update(qxl); ...
false
qemu
2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5
static void qxl_hw_screen_dump(void *opaque, const char *filename, bool cswitch, Error **errp) { PCIQXLDevice *qxl = opaque; VGACommonState *vga = &qxl->vga; switch (qxl->mode) { case QXL_MODE_COMPAT: case QXL_MODE_NATIVE: qxl_render_update(qxl); ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const char *VAR_1, bool VAR_2, Error **VAR_3) { PCIQXLDevice *qxl = VAR_0; VGACommonState *vga = &qxl->vga; switch (qxl->mode) { case QXL_MODE_COMPAT: case QXL_MODE_NATIVE: qxl_render_update(qxl); ppm_save(VAR_...
[ "static void FUNC_0(void *VAR_0, const char *VAR_1, bool VAR_2,\nError **VAR_3)\n{", "PCIQXLDevice *qxl = VAR_0;", "VGACommonState *vga = &qxl->vga;", "switch (qxl->mode) {", "case QXL_MODE_COMPAT:\ncase QXL_MODE_NATIVE:\nqxl_render_update(qxl);", "ppm_save(VAR_1, qxl->ssd.ds, VAR_3);", "break;", "cas...
[ 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 ] ]
9,672
void qmp_input_send_event(int64_t console, InputEventList *events, Error **errp) { InputEventList *e; QemuConsole *con; con = qemu_console_lookup_by_index(console); if (!con) { error_setg(errp, "console %" PRId64 " not found", console); return; } ...
false
qemu
51fc44768a5b71ad78fa40e609a58f71ed62775a
void qmp_input_send_event(int64_t console, InputEventList *events, Error **errp) { InputEventList *e; QemuConsole *con; con = qemu_console_lookup_by_index(console); if (!con) { error_setg(errp, "console %" PRId64 " not found", console); return; } ...
{ "code": [], "line_no": [] }
void FUNC_0(int64_t VAR_0, InputEventList *VAR_1, Error **VAR_2) { InputEventList *e; QemuConsole *con; con = qemu_console_lookup_by_index(VAR_0); if (!con) { error_setg(VAR_2, "VAR_0 %" PRId64 " not found", VAR_0); return; } if (!runstate_...
[ "void FUNC_0(int64_t VAR_0, InputEventList *VAR_1,\nError **VAR_2)\n{", "InputEventList *e;", "QemuConsole *con;", "con = qemu_console_lookup_by_index(VAR_0);", "if (!con) {", "error_setg(VAR_2, \"VAR_0 %\" PRId64 \" not found\", VAR_0);", "return;", "}", "if (!runstate_is_running() && !runstate_che...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 51 ], [...
9,673
static av_cold int cuvid_decode_init(AVCodecContext *avctx) { CuvidContext *ctx = avctx->priv_data; AVCUDADeviceContext *device_hwctx; AVHWDeviceContext *device_ctx; AVHWFramesContext *hwframe_ctx; CUVIDSOURCEDATAPACKET seq_pkt; CUcontext cuda_ctx = NULL; CUcontext dummy; const ...
false
FFmpeg
fea471347218be0b8d1313b8f14ea9512e555d76
static av_cold int cuvid_decode_init(AVCodecContext *avctx) { CuvidContext *ctx = avctx->priv_data; AVCUDADeviceContext *device_hwctx; AVHWDeviceContext *device_ctx; AVHWFramesContext *hwframe_ctx; CUVIDSOURCEDATAPACKET seq_pkt; CUcontext cuda_ctx = NULL; CUcontext dummy; const ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { CuvidContext *ctx = avctx->priv_data; AVCUDADeviceContext *device_hwctx; AVHWDeviceContext *device_ctx; AVHWFramesContext *hwframe_ctx; CUVIDSOURCEDATAPACKET seq_pkt; CUcontext cuda_ctx = NULL; CUcontext dummy; const AVBitStream...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "CuvidContext *ctx = avctx->priv_data;", "AVCUDADeviceContext *device_hwctx;", "AVHWDeviceContext *device_ctx;", "AVHWFramesContext *hwframe_ctx;", "CUVIDSOURCEDATAPACKET seq_pkt;", "CUcontext cuda_ctx = NULL;", "CUcontext dummy;", "const AVBitS...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
9,674
static void default_end_frame(AVFilterLink *inlink) { AVFilterLink *outlink = NULL; if (inlink->dst->nb_outputs) outlink = inlink->dst->outputs[0]; if (outlink) { if (outlink->out_buf) { avfilter_unref_buffer(outlink->out_buf); outlink->out_buf = NULL; ...
false
FFmpeg
4c9080a7ef18ad71fb0a75c8d1c1803edd780edd
static void default_end_frame(AVFilterLink *inlink) { AVFilterLink *outlink = NULL; if (inlink->dst->nb_outputs) outlink = inlink->dst->outputs[0]; if (outlink) { if (outlink->out_buf) { avfilter_unref_buffer(outlink->out_buf); outlink->out_buf = NULL; ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFilterLink *VAR_0) { AVFilterLink *outlink = NULL; if (VAR_0->dst->nb_outputs) outlink = VAR_0->dst->outputs[0]; if (outlink) { if (outlink->out_buf) { avfilter_unref_buffer(outlink->out_buf); outlink->out_buf = NULL; } ...
[ "static void FUNC_0(AVFilterLink *VAR_0)\n{", "AVFilterLink *outlink = NULL;", "if (VAR_0->dst->nb_outputs)\noutlink = VAR_0->dst->outputs[0];", "if (outlink) {", "if (outlink->out_buf) {", "avfilter_unref_buffer(outlink->out_buf);", "outlink->out_buf = NULL;", "}", "ff_end_frame(outlink);", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
9,675
static inline void gen_op_addq_ESP_im(int32_t val) { tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP])); tcg_gen_addi_tl(cpu_tmp0, cpu_tmp0, val); tcg_gen_st_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP])); }
false
qemu
6e0d8677cb443e7408c0b7a25a93c6596d7fa380
static inline void gen_op_addq_ESP_im(int32_t val) { tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP])); tcg_gen_addi_tl(cpu_tmp0, cpu_tmp0, val); tcg_gen_st_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP])); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(int32_t VAR_0) { tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP])); tcg_gen_addi_tl(cpu_tmp0, cpu_tmp0, VAR_0); tcg_gen_st_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP])); }
[ "static inline void FUNC_0(int32_t VAR_0)\n{", "tcg_gen_ld_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP]));", "tcg_gen_addi_tl(cpu_tmp0, cpu_tmp0, VAR_0);", "tcg_gen_st_tl(cpu_tmp0, cpu_env, offsetof(CPUState, regs[R_ESP]));", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
9,676
static int img_snapshot(int argc, char **argv) { BlockDriverState *bs; QEMUSnapshotInfo sn; char *filename, *snapshot_name = NULL; int c, ret = 0, bdrv_oflags; int action = 0; qemu_timeval tv; bdrv_oflags = BDRV_O_FLAGS | BDRV_O_RDWR; /* Parse commandline parameters */ fo...
false
qemu
f0536bb848ad6eb2709a7dc675f261bd160c751b
static int img_snapshot(int argc, char **argv) { BlockDriverState *bs; QEMUSnapshotInfo sn; char *filename, *snapshot_name = NULL; int c, ret = 0, bdrv_oflags; int action = 0; qemu_timeval tv; bdrv_oflags = BDRV_O_FLAGS | BDRV_O_RDWR; for(;;) { c = getopt(argc, ...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, char **VAR_1) { BlockDriverState *bs; QEMUSnapshotInfo sn; char *VAR_2, *VAR_3 = NULL; int VAR_4, VAR_5 = 0, VAR_6; int VAR_7 = 0; qemu_timeval tv; VAR_6 = BDRV_O_FLAGS | BDRV_O_RDWR; for(;;) { VAR_4 = getopt(VAR_0, VAR_1, "la:VAR_4:...
[ "static int FUNC_0(int VAR_0, char **VAR_1)\n{", "BlockDriverState *bs;", "QEMUSnapshotInfo sn;", "char *VAR_2, *VAR_3 = NULL;", "int VAR_4, VAR_5 = 0, VAR_6;", "int VAR_7 = 0;", "qemu_timeval tv;", "VAR_6 = BDRV_O_FLAGS | BDRV_O_RDWR;", "for(;;) {", "VAR_4 = getopt(VAR_0, VAR_1, \"la:VAR_4:d:h\")...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 47 ], [...
9,677
static void pcnet_aprom_writeb(void *opaque, uint32_t addr, uint32_t val) { PCNetState *s = opaque; #ifdef PCNET_DEBUG printf("pcnet_aprom_writeb addr=0x%08x val=0x%02x\n", addr, val); #endif /* Check APROMWE bit to enable write access */ if (pcnet_bcr_readw(s,2) & 0x100) s->prom[addr & ...
false
qemu
488a1a5dfe9a9ba57fa6c6b6b98136ea494e0296
static void pcnet_aprom_writeb(void *opaque, uint32_t addr, uint32_t val) { PCNetState *s = opaque; #ifdef PCNET_DEBUG printf("pcnet_aprom_writeb addr=0x%08x val=0x%02x\n", addr, val); #endif if (pcnet_bcr_readw(s,2) & 0x100) s->prom[addr & 15] = val; }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { PCNetState *s = VAR_0; #ifdef PCNET_DEBUG printf("FUNC_0 VAR_1=0x%08x VAR_2=0x%02x\n", VAR_1, VAR_2); #endif if (pcnet_bcr_readw(s,2) & 0x100) s->prom[VAR_1 & 15] = VAR_2; }
[ "static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "PCNetState *s = VAR_0;", "#ifdef PCNET_DEBUG\nprintf(\"FUNC_0 VAR_1=0x%08x VAR_2=0x%02x\\n\", VAR_1, VAR_2);", "#endif\nif (pcnet_bcr_readw(s,2) & 0x100)\ns->prom[VAR_1 & 15] = VAR_2;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 15, 17 ], [ 19 ] ]
9,679
static int qcow2_create2(const char *filename, int64_t total_size, const char *backing_file, const char *backing_format, int flags, size_t cluster_size, PreallocMode prealloc, QemuOpts *opts, int version, int refcount_order, ...
false
qemu
0eb4a8c1df6db29e835daeb954352bfaa8994374
static int qcow2_create2(const char *filename, int64_t total_size, const char *backing_file, const char *backing_format, int flags, size_t cluster_size, PreallocMode prealloc, QemuOpts *opts, int version, int refcount_order, ...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, int64_t VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4, size_t VAR_5, PreallocMode VAR_6, QemuOpts *VAR_7, int VAR_8, int VAR_9, const char *VAR_10, Error **VAR_11) { ...
[ "static int FUNC_0(const char *VAR_0, int64_t VAR_1,\nconst char *VAR_2, const char *VAR_3,\nint VAR_4, size_t VAR_5, PreallocMode VAR_6,\nQemuOpts *VAR_7, int VAR_8, int VAR_9,\nconst char *VAR_10, Error **VAR_11)\n{", "int VAR_12;", "QDict *options;", "VAR_12 = ctz32(VAR_5);", "if (VAR_12 < MIN_CLUSTER_BI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 63 ], [ 65 ], [ 67 ], [ 69 ], [ 71 ], [ 75 ], [ 77, 79 ], [ 81 ...
9,680
static int protocol_version(VncState *vs, char *version, size_t len) { char local[13]; int maj, min; memcpy(local, version, 12); local[12] = 0; if (sscanf(local, "RFB %03d.%03d\n", &maj, &min) != 2) { vnc_client_error(vs); return 0; } vnc_write_u32(vs, 1); /* None */ v...
false
qemu
7084851534c834f00652f90a9da5e4032bd22130
static int protocol_version(VncState *vs, char *version, size_t len) { char local[13]; int maj, min; memcpy(local, version, 12); local[12] = 0; if (sscanf(local, "RFB %03d.%03d\n", &maj, &min) != 2) { vnc_client_error(vs); return 0; } vnc_write_u32(vs, 1); vnc_flush(v...
{ "code": [], "line_no": [] }
static int FUNC_0(VncState *VAR_0, char *VAR_1, size_t VAR_2) { char VAR_3[13]; int VAR_4, VAR_5; memcpy(VAR_3, VAR_1, 12); VAR_3[12] = 0; if (sscanf(VAR_3, "RFB %03d.%03d\n", &VAR_4, &VAR_5) != 2) { vnc_client_error(VAR_0); return 0; } vnc_write_u32(VAR_0, 1); vnc_fl...
[ "static int FUNC_0(VncState *VAR_0, char *VAR_1, size_t VAR_2)\n{", "char VAR_3[13];", "int VAR_4, VAR_5;", "memcpy(VAR_3, VAR_1, 12);", "VAR_3[12] = 0;", "if (sscanf(VAR_3, \"RFB %03d.%03d\\n\", &VAR_4, &VAR_5) != 2) {", "vnc_client_error(VAR_0);", "return 0;", "}", "vnc_write_u32(VAR_0, 1);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ] ]
9,681
void ppce500_init(MachineState *machine, PPCE500Params *params) { MemoryRegion *address_space_mem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); PCIBus *pci_bus; CPUPPCState *env = NULL; uint64_t elf_entry; uint64_t elf_lowaddr; hwaddr entry=0; hwaddr loadadd...
false
qemu
903585dec63ee83bd8149006e31f92ea789b38e3
void ppce500_init(MachineState *machine, PPCE500Params *params) { MemoryRegion *address_space_mem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); PCIBus *pci_bus; CPUPPCState *env = NULL; uint64_t elf_entry; uint64_t elf_lowaddr; hwaddr entry=0; hwaddr loadadd...
{ "code": [], "line_no": [] }
void FUNC_0(MachineState *VAR_0, PPCE500Params *VAR_1) { MemoryRegion *address_space_mem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); PCIBus *pci_bus; CPUPPCState *env = NULL; uint64_t elf_entry; uint64_t elf_lowaddr; hwaddr entry=0; hwaddr loadaddr=UIMAGE_...
[ "void FUNC_0(MachineState *VAR_0, PPCE500Params *VAR_1)\n{", "MemoryRegion *address_space_mem = get_system_memory();", "MemoryRegion *ram = g_new(MemoryRegion, 1);", "PCIBus *pci_bus;", "CPUPPCState *env = NULL;", "uint64_t elf_entry;", "uint64_t elf_lowaddr;", "hwaddr entry=0;", "hwaddr loadaddr=UI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
9,682
static void virtio_net_set_mrg_rx_bufs(VirtIONet *n, int mergeable_rx_bufs) { int i; NetClientState *nc; n->mergeable_rx_bufs = mergeable_rx_bufs; n->guest_hdr_len = n->mergeable_rx_bufs ? sizeof(struct virtio_net_hdr_mrg_rxbuf) : sizeof(struct virtio_net_hdr); for (i = 0; i < n...
false
qemu
cf528b89580797050b8cf60fee6247f35531a675
static void virtio_net_set_mrg_rx_bufs(VirtIONet *n, int mergeable_rx_bufs) { int i; NetClientState *nc; n->mergeable_rx_bufs = mergeable_rx_bufs; n->guest_hdr_len = n->mergeable_rx_bufs ? sizeof(struct virtio_net_hdr_mrg_rxbuf) : sizeof(struct virtio_net_hdr); for (i = 0; i < n...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIONet *VAR_0, int VAR_1) { int VAR_2; NetClientState *nc; VAR_0->VAR_1 = VAR_1; VAR_0->guest_hdr_len = VAR_0->VAR_1 ? sizeof(struct virtio_net_hdr_mrg_rxbuf) : sizeof(struct virtio_net_hdr); for (VAR_2 = 0; VAR_2 < VAR_0->max_queues; VAR_2++) { nc...
[ "static void FUNC_0(VirtIONet *VAR_0, int VAR_1)\n{", "int VAR_2;", "NetClientState *nc;", "VAR_0->VAR_1 = VAR_1;", "VAR_0->guest_hdr_len = VAR_0->VAR_1 ?\nsizeof(struct virtio_net_hdr_mrg_rxbuf) : sizeof(struct virtio_net_hdr);", "for (VAR_2 = 0; VAR_2 < VAR_0->max_queues; VAR_2++) {", "nc = qemu_get_s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
9,684
void qemu_acl_reset(qemu_acl *acl) { qemu_acl_entry *entry; /* Put back to deny by default, so there is no window * of "open access" while the user re-initializes the * access control list */ acl->defaultDeny = 1; TAILQ_FOREACH(entry, &acl->entries, next) { TAILQ_REMOVE(&acl-...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void qemu_acl_reset(qemu_acl *acl) { qemu_acl_entry *entry; acl->defaultDeny = 1; TAILQ_FOREACH(entry, &acl->entries, next) { TAILQ_REMOVE(&acl->entries, entry, next); free(entry->match); free(entry); } acl->nentries = 0; }
{ "code": [], "line_no": [] }
void FUNC_0(qemu_acl *VAR_0) { qemu_acl_entry *entry; VAR_0->defaultDeny = 1; TAILQ_FOREACH(entry, &VAR_0->entries, next) { TAILQ_REMOVE(&VAR_0->entries, entry, next); free(entry->match); free(entry); } VAR_0->nentries = 0; }
[ "void FUNC_0(qemu_acl *VAR_0)\n{", "qemu_acl_entry *entry;", "VAR_0->defaultDeny = 1;", "TAILQ_FOREACH(entry, &VAR_0->entries, next) {", "TAILQ_REMOVE(&VAR_0->entries, entry, next);", "free(entry->match);", "free(entry);", "}", "VAR_0->nentries = 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
9,685
static void mov_fix_index(MOVContext *mov, AVStream *st) { MOVStreamContext *msc = st->priv_data; AVIndexEntry *e_old = st->index_entries; int nb_old = st->nb_index_entries; const AVIndexEntry *e_old_end = e_old + nb_old; const AVIndexEntry *current = NULL; MOVStts *ctts_data_old = msc->c...
false
FFmpeg
93db5e3fc41ac0242acab86c3e4ce3a3dfb80075
static void mov_fix_index(MOVContext *mov, AVStream *st) { MOVStreamContext *msc = st->priv_data; AVIndexEntry *e_old = st->index_entries; int nb_old = st->nb_index_entries; const AVIndexEntry *e_old_end = e_old + nb_old; const AVIndexEntry *current = NULL; MOVStts *ctts_data_old = msc->c...
{ "code": [], "line_no": [] }
static void FUNC_0(MOVContext *VAR_0, AVStream *VAR_1) { MOVStreamContext *msc = VAR_1->priv_data; AVIndexEntry *e_old = VAR_1->index_entries; int VAR_2 = VAR_1->nb_index_entries; const AVIndexEntry *VAR_3 = e_old + VAR_2; const AVIndexEntry *VAR_4 = NULL; MOVStts *ctts_data_old = msc->ct...
[ "static void FUNC_0(MOVContext *VAR_0, AVStream *VAR_1)\n{", "MOVStreamContext *msc = VAR_1->priv_data;", "AVIndexEntry *e_old = VAR_1->index_entries;", "int VAR_2 = VAR_1->nb_index_entries;", "const AVIndexEntry *VAR_3 = e_old + VAR_2;", "const AVIndexEntry *VAR_4 = NULL;", "MOVStts *ctts_data_old = ms...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
9,686
int scsi_bus_legacy_handle_cmdline(SCSIBus *bus) { Location loc; DriveInfo *dinfo; int res = 0, unit; loc_push_none(&loc); for (unit = 0; unit < MAX_SCSI_DEVS; unit++) { dinfo = drive_get(IF_SCSI, bus->busnr, unit); if (dinfo == NULL) { continue; } ...
false
qemu
622b520fb4ca50b5028485f1d225317ece0a42b9
int scsi_bus_legacy_handle_cmdline(SCSIBus *bus) { Location loc; DriveInfo *dinfo; int res = 0, unit; loc_push_none(&loc); for (unit = 0; unit < MAX_SCSI_DEVS; unit++) { dinfo = drive_get(IF_SCSI, bus->busnr, unit); if (dinfo == NULL) { continue; } ...
{ "code": [], "line_no": [] }
int FUNC_0(SCSIBus *VAR_0) { Location loc; DriveInfo *dinfo; int VAR_1 = 0, VAR_2; loc_push_none(&loc); for (VAR_2 = 0; VAR_2 < MAX_SCSI_DEVS; VAR_2++) { dinfo = drive_get(IF_SCSI, VAR_0->busnr, VAR_2); if (dinfo == NULL) { continue; } qemu_op...
[ "int FUNC_0(SCSIBus *VAR_0)\n{", "Location loc;", "DriveInfo *dinfo;", "int VAR_1 = 0, VAR_2;", "loc_push_none(&loc);", "for (VAR_2 = 0; VAR_2 < MAX_SCSI_DEVS; VAR_2++) {", "dinfo = drive_get(IF_SCSI, VAR_0->busnr, VAR_2);", "if (dinfo == NULL) {", "continue;", "}", "qemu_opts_loc_restore(dinfo-...
[ 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 ] ]
9,687
static void hda_codec_device_class_init(ObjectClass *klass, void *data) { DeviceClass *k = DEVICE_CLASS(klass); k->realize = hda_codec_dev_realize; k->exit = hda_codec_dev_exit; set_bit(DEVICE_CATEGORY_SOUND, k->categories); k->bus_type = TYPE_HDA_BUS; k->props = hda_props; }
false
qemu
8ac55351459055f2faee585d9ba2f84707741815
static void hda_codec_device_class_init(ObjectClass *klass, void *data) { DeviceClass *k = DEVICE_CLASS(klass); k->realize = hda_codec_dev_realize; k->exit = hda_codec_dev_exit; set_bit(DEVICE_CATEGORY_SOUND, k->categories); k->bus_type = TYPE_HDA_BUS; k->props = hda_props; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *k = DEVICE_CLASS(VAR_0); k->realize = hda_codec_dev_realize; k->exit = hda_codec_dev_exit; set_bit(DEVICE_CATEGORY_SOUND, k->categories); k->bus_type = TYPE_HDA_BUS; k->props = hda_props; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *k = DEVICE_CLASS(VAR_0);", "k->realize = hda_codec_dev_realize;", "k->exit = hda_codec_dev_exit;", "set_bit(DEVICE_CATEGORY_SOUND, k->categories);", "k->bus_type = TYPE_HDA_BUS;", "k->props = hda_props;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
9,690
static inline void downmix_stereo_to_mono(float *samples) { int i; for (i = 0; i < 256; i++) { samples[i] += samples[i + 256]; samples[i + 256] = 0; } }
false
FFmpeg
0058584580b87feb47898e60e4b80c7f425882ad
static inline void downmix_stereo_to_mono(float *samples) { int i; for (i = 0; i < 256; i++) { samples[i] += samples[i + 256]; samples[i + 256] = 0; } }
{ "code": [], "line_no": [] }
static inline void FUNC_0(float *VAR_0) { int VAR_1; for (VAR_1 = 0; VAR_1 < 256; VAR_1++) { VAR_0[VAR_1] += VAR_0[VAR_1 + 256]; VAR_0[VAR_1 + 256] = 0; } }
[ "static inline void FUNC_0(float *VAR_0)\n{", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {", "VAR_0[VAR_1] += VAR_0[VAR_1 + 256];", "VAR_0[VAR_1 + 256] = 0;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
9,691
static int thread_execute2(AVCodecContext *avctx, action_func2* func2, void *arg, int *ret, int job_count) { ThreadContext *c= avctx->thread_opaque; c->func2 = func2; return thread_execute(avctx, NULL, arg, ret, job_count, 0); }
false
FFmpeg
daa7a1d4431b6acf1f93c4a98b3de123abf4ca18
static int thread_execute2(AVCodecContext *avctx, action_func2* func2, void *arg, int *ret, int job_count) { ThreadContext *c= avctx->thread_opaque; c->func2 = func2; return thread_execute(avctx, NULL, arg, ret, job_count, 0); }
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, action_func2* VAR_1, void *VAR_2, int *VAR_3, int VAR_4) { ThreadContext *c= VAR_0->thread_opaque; c->VAR_1 = VAR_1; return thread_execute(VAR_0, NULL, VAR_2, VAR_3, VAR_4, 0); }
[ "static int FUNC_0(AVCodecContext *VAR_0, action_func2* VAR_1, void *VAR_2, int *VAR_3, int VAR_4)\n{", "ThreadContext *c= VAR_0->thread_opaque;", "c->VAR_1 = VAR_1;", "return thread_execute(VAR_0, NULL, VAR_2, VAR_3, VAR_4, 0);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
9,692
static void flat_print_section_header(WriterContext *wctx) { FlatContext *flat = wctx->priv; AVBPrint *buf = &flat->section_header[wctx->level]; int i; /* build section header */ av_bprint_clear(buf); for (i = 1; i <= wctx->level; i++) { if (flat->hierarchical || !...
false
FFmpeg
01e4537f66c6d054f8c7bdbdd5b3cfb4220d12fe
static void flat_print_section_header(WriterContext *wctx) { FlatContext *flat = wctx->priv; AVBPrint *buf = &flat->section_header[wctx->level]; int i; av_bprint_clear(buf); for (i = 1; i <= wctx->level; i++) { if (flat->hierarchical || !(wctx->section[i]->flags &...
{ "code": [], "line_no": [] }
static void FUNC_0(WriterContext *VAR_0) { FlatContext *flat = VAR_0->priv; AVBPrint *buf = &flat->section_header[VAR_0->level]; int VAR_1; av_bprint_clear(buf); for (VAR_1 = 1; VAR_1 <= VAR_0->level; VAR_1++) { if (flat->hierarchical || !(VAR_0->section[VAR_1]->f...
[ "static void FUNC_0(WriterContext *VAR_0)\n{", "FlatContext *flat = VAR_0->priv;", "AVBPrint *buf = &flat->section_header[VAR_0->level];", "int VAR_1;", "av_bprint_clear(buf);", "for (VAR_1 = 1; VAR_1 <= VAR_0->level; VAR_1++) {", "if (flat->hierarchical ||\n!(VAR_0->section[VAR_1]->flags & (SECTION_FLA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ] ]
9,693
static int write_header(AVFormatContext *s) { AVCodecContext *codec = s->streams[0]->codec; if (s->nb_streams > 1) { av_log(s, AV_LOG_ERROR, "only one stream is supported\n"); return AVERROR(EINVAL); } if (codec->codec_id != AV_CODEC_ID_WAVPACK) { av_log(s, AV_LOG_ERROR...
false
FFmpeg
269fc8e04906ffd965aa19425ca90980b23c6508
static int write_header(AVFormatContext *s) { AVCodecContext *codec = s->streams[0]->codec; if (s->nb_streams > 1) { av_log(s, AV_LOG_ERROR, "only one stream is supported\n"); return AVERROR(EINVAL); } if (codec->codec_id != AV_CODEC_ID_WAVPACK) { av_log(s, AV_LOG_ERROR...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { AVCodecContext *codec = VAR_0->streams[0]->codec; if (VAR_0->nb_streams > 1) { av_log(VAR_0, AV_LOG_ERROR, "only one stream is supported\n"); return AVERROR(EINVAL); } if (codec->codec_id != AV_CODEC_ID_WAVPACK) { av_log(VAR_0...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVCodecContext *codec = VAR_0->streams[0]->codec;", "if (VAR_0->nb_streams > 1) {", "av_log(VAR_0, AV_LOG_ERROR, \"only one stream is supported\\n\");", "return AVERROR(EINVAL);", "}", "if (codec->codec_id != AV_CODEC_ID_WAVPACK) {", "av_log(VAR_0, AV_L...
[ 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 ], [ 37 ], [ 39 ] ]
9,694
static int default_start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { AVFilterLink *outlink = NULL; if (inlink->dst->nb_outputs) outlink = inlink->dst->outputs[0]; if (outlink) { outlink->out_buf = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h); ...
false
FFmpeg
1dc42050185d63c1de5d16146fbaee92640af187
static int default_start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) { AVFilterLink *outlink = NULL; if (inlink->dst->nb_outputs) outlink = inlink->dst->outputs[0]; if (outlink) { outlink->out_buf = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterLink *outlink = NULL; if (VAR_0->dst->nb_outputs) outlink = VAR_0->dst->outputs[0]; if (outlink) { outlink->out_buf = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h); if (!outlin...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterLink *outlink = NULL;", "if (VAR_0->dst->nb_outputs)\noutlink = VAR_0->dst->outputs[0];", "if (outlink) {", "outlink->out_buf = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);", "if (!outlink->out_buf)\nre...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
9,695
static uint64_t ivshmem_io_read(void *opaque, target_phys_addr_t addr, unsigned size) { IVShmemState *s = opaque; uint32_t ret; switch (addr) { case INTRMASK: ret = ivshmem_IntrMask_read(s); break; case INTRSTATUS: ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t ivshmem_io_read(void *opaque, target_phys_addr_t addr, unsigned size) { IVShmemState *s = opaque; uint32_t ret; switch (addr) { case INTRMASK: ret = ivshmem_IntrMask_read(s); break; case INTRSTATUS: ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { IVShmemState *s = opaque; uint32_t ret; switch (addr) { case INTRMASK: ret = ivshmem_IntrMask_read(s); break; case INTRSTATUS: ...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "IVShmemState *s = opaque;", "uint32_t ret;", "switch (addr)\n{", "case INTRMASK:\nret = ivshmem_IntrMask_read(s);", "break;", "case INTRSTATUS:\nret = ivshmem_IntrStatus_read(s);", "break;", "case IVPOSITION:\nif (s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 35, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53, 55 ], [ 57 ], [ 59...
9,696
static void omap_os_timer_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_32khz_timer_s *s = (struct omap_32khz_timer_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (size != 4) { return omap_badwidth_write32(o...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void omap_os_timer_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_32khz_timer_s *s = (struct omap_32khz_timer_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (size != 4) { return omap_badwidth_write32(o...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { struct omap_32khz_timer_s *VAR_4 = (struct omap_32khz_timer_s *) VAR_0; int VAR_5 = VAR_1 & OMAP_MPUI_REG_MASK; if (VAR_3 != 4) { return omap_badwidth_write32(VAR_0, VA...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "struct omap_32khz_timer_s *VAR_4 = (struct omap_32khz_timer_s *) VAR_0;", "int VAR_5 = VAR_1 & OMAP_MPUI_REG_MASK;", "if (VAR_3 != 4) {", "return omap_badwidth_write32(VAR_0, VAR_1, VAR_2);", "}", "switch (...
[ 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 ], [ 31, 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
9,698
static void tcg_out_setcond(TCGContext *s, TCGType type, TCGCond cond, TCGArg arg0, TCGArg arg1, TCGArg arg2, int const_arg2) { int crop, sh; assert(TCG_TARGET_REG_BITS == 64 || type == TCG_TYPE_I32); /* Ignore high bits of a potential consta...
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static void tcg_out_setcond(TCGContext *s, TCGType type, TCGCond cond, TCGArg arg0, TCGArg arg1, TCGArg arg2, int const_arg2) { int crop, sh; assert(TCG_TARGET_REG_BITS == 64 || type == TCG_TYPE_I32); if (type == TCG_TYPE_I32) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGCond VAR_2, TCGArg VAR_3, TCGArg VAR_4, TCGArg VAR_5, int VAR_6) { int VAR_7, VAR_8; assert(TCG_TARGET_REG_BITS == 64 || VAR_1 == TCG_TYPE_I32); if (VAR_1 == TCG_TYPE_I32) { ...
[ "static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGCond VAR_2,\nTCGArg VAR_3, TCGArg VAR_4, TCGArg VAR_5,\nint VAR_6)\n{", "int VAR_7, VAR_8;", "assert(TCG_TARGET_REG_BITS == 64 || VAR_1 == TCG_TYPE_I32);", "if (VAR_1 == TCG_TYPE_I32) {", "VAR_5 = (uint32_t)VAR_5;", "}", "if (VAR_5 == 0) {", "sw...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55 ], [...
9,702
static void qmp_input_optional(Visitor *v, const char *name, bool *present) { QmpInputVisitor *qiv = to_qiv(v); QObject *qobj = qmp_input_get_object(qiv, name, false, NULL); if (!qobj) { *present = false; return; } *present = true; }
false
qemu
09e68369a88d7de0f988972bf28eec1b80cc47f9
static void qmp_input_optional(Visitor *v, const char *name, bool *present) { QmpInputVisitor *qiv = to_qiv(v); QObject *qobj = qmp_input_get_object(qiv, name, false, NULL); if (!qobj) { *present = false; return; } *present = true; }
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, bool *VAR_2) { QmpInputVisitor *qiv = to_qiv(VAR_0); QObject *qobj = qmp_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{", "QmpInputVisitor *qiv = to_qiv(VAR_0);", "QObject *qobj = qmp_input_get_object(qiv, VAR_1, false, NULL);", "if (!qobj) {", "*VAR_2 = false;", "return;", "}", "*VAR_2 = true;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
9,703
static int intel_hda_send_command(IntelHDAState *d, uint32_t verb) { uint32_t cad, nid, data; HDACodecDevice *codec; HDACodecDeviceClass *cdc; cad = (verb >> 28) & 0x0f; if (verb & (1 << 27)) { /* indirect node addressing, not specified in HDA 1.0 */ dprint(d, 1, "%s: indir...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static int intel_hda_send_command(IntelHDAState *d, uint32_t verb) { uint32_t cad, nid, data; HDACodecDevice *codec; HDACodecDeviceClass *cdc; cad = (verb >> 28) & 0x0f; if (verb & (1 << 27)) { dprint(d, 1, "%s: indirect node addressing (guest bug?)\n", __FUNCTION__); ...
{ "code": [], "line_no": [] }
static int FUNC_0(IntelHDAState *VAR_0, uint32_t VAR_1) { uint32_t cad, nid, data; HDACodecDevice *codec; HDACodecDeviceClass *cdc; cad = (VAR_1 >> 28) & 0x0f; if (VAR_1 & (1 << 27)) { dprint(VAR_0, 1, "%s: indirect node addressing (guest bug?)\n", __FUNCTION__); ...
[ "static int FUNC_0(IntelHDAState *VAR_0, uint32_t VAR_1)\n{", "uint32_t cad, nid, data;", "HDACodecDevice *codec;", "HDACodecDeviceClass *cdc;", "cad = (VAR_1 >> 28) & 0x0f;", "if (VAR_1 & (1 << 27)) {", "dprint(VAR_0, 1, \"%s: indirect node addressing (guest bug?)\\n\", __FUNCTION__);", "return -1;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
9,704
static void timerblock_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { timerblock *tb = (timerblock *)opaque; int64_t old; switch (addr) { case 0: /* Load */ tb->load = value; /* Fall through. */ case 4: /* Counter....
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void timerblock_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { timerblock *tb = (timerblock *)opaque; int64_t old; switch (addr) { case 0: tb->load = value; case 4: if ((tb->control & 1) && tb->co...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { timerblock *tb = (timerblock *)VAR_0; int64_t old; switch (VAR_1) { case 0: tb->load = VAR_2; case 4: if ((tb->control & 1) && tb->count) { ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "timerblock *tb = (timerblock *)VAR_0;", "int64_t old;", "switch (VAR_1) {", "case 0:\ntb->load = VAR_2;", "case 4:\nif ((tb->control & 1) && tb->count) {", "qemu_del_timer(tb->timer);", "}", "tb->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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
9,705
int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type, int wanted_stream_nb, int related_stream, AVCodec **decoder_ret, int flags) { int i, nb_streams = ic->nb_streams, stream_...
false
FFmpeg
2c7158169859eb2dd49a72337f9f3f28347da77a
int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type, int wanted_stream_nb, int related_stream, AVCodec **decoder_ret, int flags) { int i, nb_streams = ic->nb_streams, stream_...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, enum AVMediaType VAR_1, int VAR_2, int VAR_3, AVCodec **VAR_4, int VAR_5) { int VAR_6, VAR_7 = VAR_0->VAR_7, VAR_8 = 0; int VAR_9 = AVERROR_STREAM_NO...
[ "int FUNC_0(AVFormatContext *VAR_0,\nenum AVMediaType VAR_1,\nint VAR_2,\nint VAR_3,\nAVCodec **VAR_4,\nint VAR_5)\n{", "int VAR_6, VAR_7 = VAR_0->VAR_7, VAR_8 = 0;", "int VAR_9 = AVERROR_STREAM_NOT_FOUND, VAR_10 = -1;", "unsigned *VAR_11 = NULL;", "AVCodec *decoder = NULL, *best_decoder = NULL;", "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, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49,...
9,708
BlockDriverState *bdrv_new(const char *device_name, Error **errp) { BlockDriverState *bs; int i; if (*device_name && !bdrv_is_valid_name(device_name)) { error_setg(errp, "Invalid device name"); return NULL; } if (bdrv_find(device_name)) { error_setg(errp, "Device...
false
qemu
f5bebbbb28dc7a149a891f0f1e112fb50bb72664
BlockDriverState *bdrv_new(const char *device_name, Error **errp) { BlockDriverState *bs; int i; if (*device_name && !bdrv_is_valid_name(device_name)) { error_setg(errp, "Invalid device name"); return NULL; } if (bdrv_find(device_name)) { error_setg(errp, "Device...
{ "code": [], "line_no": [] }
BlockDriverState *FUNC_0(const char *device_name, Error **errp) { BlockDriverState *bs; int VAR_0; if (*device_name && !bdrv_is_valid_name(device_name)) { error_setg(errp, "Invalid device name"); return NULL; } if (bdrv_find(device_name)) { error_setg(errp, "Devi...
[ "BlockDriverState *FUNC_0(const char *device_name, Error **errp)\n{", "BlockDriverState *bs;", "int VAR_0;", "if (*device_name && !bdrv_is_valid_name(device_name)) {", "error_setg(errp, \"Invalid device name\");", "return NULL;", "}", "if (bdrv_find(device_name)) {", "error_setg(errp, \"Device with ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], ...