idx
int64
func
string
target
int64
384,845
backslash_halve_save(char_u *p) { char_u *res; res = vim_strsave(p); if (res == NULL) return p; backslash_halve(res); return res; }
0
487,645
struct group_info *groups_alloc(int gidsetsize) { struct group_info *group_info; int nblocks; int i; nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK; /* Make sure we always allocate at least one indirect block pointer */ nblocks = nblocks ? : 1; group_info = kmalloc(sizeof(*group_info) + nblo...
0
90,780
void QuotaManager::GetStatistics( std::map<std::string, std::string>* statistics) { DCHECK(statistics); if (temporary_storage_evictor_.get()) { std::map<std::string, int64> stats; temporary_storage_evictor_->GetStatistics(&stats); for (std::map<std::string, int64>::iterator p = stats.begin(); ...
0
500,054
static int kssl_test_confound(unsigned char *p) { int len = 2; int xx = 0, yy = 0; if (*p++ != 0x62) return 0; if (*p > 0x82) return 0; switch(*p) { case 0x82: p++; xx = (*p++ << 8); xx += *p++; break; case 0x81: p++; xx = *p++; break; case 0x80: return 0; default: xx = ...
0
387,756
void InstanceKlass::purge_previous_version_list() { assert(SafepointSynchronize::is_at_safepoint(), "only called at safepoint"); assert(has_been_redefined(), "Should only be called for main class"); // Quick exit. if (previous_versions() == NULL) { return; } // This klass has previous versions so see ...
0
223,421
static void check_newlinechar(compiler_common *common, int nltype, jump_list **backtracks, BOOL jumpifmatch) { /* Character comes in TMP1. Checks if it is a newline. TMP2 may be destroyed. */ DEFINE_COMPILER; struct sljit_jump *jump; if (nltype == NLTYPE_ANY) { add_jump(compiler, &common->anynewline, JUMP(SLJIT_FA...
0
219,029
bool ConstantFolding::ReduceDivToReciprocalMul(GraphDef* optimized_graph, NodeDef* node) { // Strength reduce floating point division by a constant Div(x, const) to // multiplication by the reciprocal Mul(x, Reciprocal(const)). This in turn // will be constant folded...
0
462,220
static pj_status_t decode_uint_attr(pj_pool_t *pool, const pj_uint8_t *buf, const pj_stun_msg_hdr *msghdr, void **p_attr) { pj_stun_uint_attr *attr; PJ_UNUSED_ARG(msghdr); /* Create the attribute */ attr = PJ_POOL_ZALLOC_T(pool, pj_stun_uint_attr); GETATTRHDR(buf, &attr-...
0
411,934
check_s4u2self(krb5_context context, krb5_kdc_configuration *config, HDB *clientdb, hdb_entry_ex *client, krb5_const_principal server) { krb5_error_code ret; /* if client does a s4u2self to itself, that ok */ if (krb5_principal_compare(context, client->entry.principal, serve...
0
430,364
void seq_put_decimal_ull_width(struct seq_file *m, const char *delimiter, unsigned long long num, unsigned int width) { int len; if (m->count + 2 >= m->size) /* we'll write 2 bytes at least */ goto overflow; if (delimiter && delimiter[0]) { if (delimiter[1] == 0) seq_putc(m, delimiter[0]); else seq...
0
195,665
njs_array_prototype_splice(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { int64_t i, n, start, length, items, delta, delete; njs_int_t ret; njs_value_t *this, value, del_object; njs_array_t *array, *deleted; this = njs_argument(args, 0); ret = njs_value_...
1
369,380
static void io_req_complete_fail_submit(struct io_kiocb *req) { /* * We don't submit, fail them all, for that replace hardlinks with * normal links. Extra REQ_F_LINK is tolerated. */ req->flags &= ~REQ_F_HARDLINK; req->flags |= REQ_F_LINK; io_req_complete_failed(req, req->result); }
0
254,881
const std::vector<AccumulationStatement>& DocumentSourceGroup::getAccumulatedFields() const { return _accumulatedFields; }
0
387,603
static int snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { struct user_element *ue = kcontrol->private_data; unsigned int size = ue->elem_data_size; char *src = ue->elem_data + snd_ctl_get_ioff(kcontrol, &ucontrol->id) * size; memcpy(&ucontrol->value, src, size);...
0
328,929
R_API RBinJavaVerificationObj *r_bin_java_read_from_buffer_verification_info_new(ut8 *buffer, ut64 sz, ut64 buf_offset) { if (sz < 8) { return NULL; } ut64 offset = 0; RBinJavaVerificationObj *se = R_NEW0 (RBinJavaVerificationObj); if (!se) { return NULL; } se->file_offset = buf_offset; se->tag = buffer[off...
0
292,237
inbound_uback (server *serv, const message_tags_data *tags_data) { serv->is_away = FALSE; serv->reconnect_away = FALSE; fe_set_away (serv); inbound_set_all_away_status (serv, serv->nick, 0); }
0
301,357
static int vfswrap_sys_acl_set_file(vfs_handle_struct *handle, const char *name, SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl) { return sys_acl_set_file(handle, name, acltype, theacl); }
0
355,638
eval2(char_u **arg, typval_T *rettv, evalarg_T *evalarg) { char_u *p; int getnext; /* * Get the first variable. */ if (eval3(arg, rettv, evalarg) == FAIL) return FAIL; /* * Handle the "||" operator. */ p = eval_next_non_blank(*arg, evalarg, &getnext); if (p[0] == '|'...
0
253,559
smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const char *full_path, char **target_path, bool is_reparse_point) { int rc; __le16 *utf16_path = NULL; __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; struct cifs_open_parms oparms; struct cifs_fid fid; struct kvec er...
0
261,767
njs_function_frame_invoke(njs_vm_t *vm, njs_value_t *retval) { njs_native_frame_t *frame; frame = vm->top_frame; frame->retval = retval; if (njs_function_object_type(vm, frame->function) == NJS_OBJ_TYPE_ASYNC_FUNCTION) { return njs_async_function_frame_invoke(vm, retval); } ...
0
301,502
find_keepcap_word(slang_T *slang, char_u *fword, char_u *kword) { char_u uword[MAXWLEN]; // "fword" in upper-case int depth; idx_T tryidx; // The following arrays are used at each depth in the tree. idx_T arridx[MAXWLEN]; int round[MAXWLEN]; int fwordidx[MAXWLEN]; int uwordidx[MAXW...
0
270,396
static bool ok_inflater_distance_tree(ok_inflater *inflater) { bool done = ok_inflater_inflate_huffman_tree(inflater, inflater->distance_huffman, inflater->code_length_huffman, inflater->num_distance_codes); if (do...
0
476,120
static int count_ext_prop(struct usb_configuration *c, int interface) { struct usb_function *f; int j; f = c->interface[interface]; for (j = 0; j < f->os_desc_n; ++j) { struct usb_os_desc *d; if (interface != f->os_desc_table[j].if_id) continue; d = f->os_desc_table[j].os_desc; if (d && d->ext_compat_i...
0
512,733
Item *build_clone(THD *thd) { return 0; }
0
486,829
static hwaddr gem_get_desc_addr(CadenceGEMState *s, bool tx, int q) { hwaddr desc_addr = 0; if (s->regs[GEM_DMACFG] & GEM_DMACFG_ADDR_64B) { desc_addr = s->regs[tx ? GEM_TBQPH : GEM_RBQPH]; } desc_addr <<= 32; desc_addr |= tx ? s->tx_desc_addr[q] : s->rx_desc_addr[q]; return desc_addr; ...
0
506,688
static int set_altname_email(X509 *crt, const char *name) { return set_altname(crt, GEN_EMAIL, name, 0); }
0
353,236
bool SplashAxialPattern::getParameter(double xc, double yc, double *t) { double s; xc -= x0; yc -= y0; s = (xc * dx + yc * dy) * mul; if (0 <= s && s <= 1) { *t = t0 + dt * s; } else if (s < 0 && shading->getExtend0()) { *t = t0; } else if (s > 1 && shading->getExtend1()) { *t = t1; } else...
0
413,665
static int fcn_list_table(RCore *core, const char *q, int fmt) { char xref[128], ccstr[128], castr[128]; RAnalFunction *fcn; RListIter *iter; RTable *t = r_core_table (core, "fcns"); RTableColumnType *typeString = r_table_type ("string"); RTableColumnType *typeNumber = r_table_type ("number"); r_table_add_column...
0
359,599
bgp_clear_vty (struct vty *vty, const char *name, afi_t afi, safi_t safi, enum clear_sort sort, enum bgp_clear_type stype, const char *arg) { int ret; struct bgp *bgp; /* BGP structure lookup. */ if (name) { bgp = bgp_lookup_by_name (name); if (bgp == NULL) ...
0
201,382
drill_parse_T_code(gerb_file_t *fd, drill_state_t *state, gerbv_image_t *image, ssize_t file_line) { int tool_num; gboolean done = FALSE; int temp; double size; gerbv_drill_stats_t *stats = image->drill_stats; gerbv_aperture_t *apert; gchar *tmps; gchar *string; dprintf("---> ent...
1
238,542
static void coerce_reg_to_size(struct bpf_reg_state *reg, int size) { u64 mask; /* clear high bits in bit representation */ reg->var_off = tnum_cast(reg->var_off, size); /* fix arithmetic bounds */ mask = ((u64)1 << (size * 8)) - 1; if ((reg->umin_value & ~mask) == (reg->umax_value & ~mask)) { reg->umin_value...
0
291,840
static int __init rtrs_client_init(void) { rtrs_rdma_dev_pd_init(0, &dev_pd); rtrs_clt_dev_class = class_create(THIS_MODULE, "rtrs-client"); if (IS_ERR(rtrs_clt_dev_class)) { pr_err("Failed to create rtrs-client dev class\n"); return PTR_ERR(rtrs_clt_dev_class); } rtrs_wq = alloc_workqueue("rtrs_client_wq", 0...
0
463,219
static void init_annotation_definitions(void) { char *p; char aline[ANNOT_DEF_MAXLINELEN]; annotate_entrydesc_t *ae; int i; FILE* f; struct parse_state state; ptrarray_t *entries = NULL; /* copy static entries into list */ for (i = 0 ; server_builtin_entries[i].name ; i++) p...
0
384,874
FreeWild(int count, char_u **files) { if (count <= 0 || files == NULL) return; while (count--) vim_free(files[count]); vim_free(files); }
0
359,358
DEFUN (clear_bgp_external_soft_in, clear_bgp_external_soft_in_cmd, "clear bgp external soft in", CLEAR_STR BGP_STR "Clear all external peers\n" "Soft reconfig\n" "Soft reconfig inbound update\n") { return bgp_clear_vty (vty, NULL, AFI_IP6, SAFI_UNICAST, clear_external,...
0
447,231
apprentice_load(struct magic_set *ms, const char *fn, int action) { int errs = 0; uint32_t i, j; size_t files = 0, maxfiles = 0; char **filearr = NULL; struct stat st; struct magic_map *map; struct magic_entry_set mset[MAGIC_SETS]; php_stream *dir; php_stream_dirent d; TSRMLS_FETCH(); memset(mset, 0, size...
0
244,176
GF_Err ctts_box_read(GF_Box *s, GF_BitStream *bs) { u32 i; u32 sampleCount; GF_CompositionOffsetBox *ptr = (GF_CompositionOffsetBox *)s; ISOM_DECREASE_SIZE(ptr, 4); ptr->nb_entries = gf_bs_read_u32(bs); if (ptr->nb_entries > ptr->size / 8 || (u64)ptr->nb_entries > (u64)SIZE_MAX/sizeof(GF_DttsEntry) ) { GF_LOG...
0
443,706
init(void) { #ifdef USE_CALLOUT int id; OnigEncoding enc; char* name; unsigned int args[4]; OnigValue opts[4]; enc = ONIG_ENCODING_UTF16_BE; name = "\000F\000A\000I\000L\000\000"; BC0_P(name, fail); name = "\000M\000I\000S\000M\000A\000T\000C\000H\000\000"; BC0_P(name, mism...
0
371,226
static inline void fuse_make_bad(struct inode *inode) { remove_inode_hash(inode); set_bit(FUSE_I_BAD, &get_fuse_inode(inode)->state); }
0
361,296
stl_change_vertices(stl_file *stl, int facet_num, int vnot, stl_vertex new_vertex) { int first_facet; int direction; int next_edge; int pivot_vertex; if (stl->error) return; first_facet = facet_num; direction = 0; for(;;) { if(vnot > 2) { if(direction == 0) { piv...
0
513,120
bool mysql_install_plugin(THD *thd, const LEX_STRING *name, const LEX_STRING *dl_arg) { TABLE_LIST tables; TABLE *table; LEX_STRING dl= *dl_arg; bool error; int argc=orig_argc; char **argv=orig_argv; unsigned long event_class_mask[MYSQL_AUDIT_CLASS_MASK_SIZE] = { MYSQL_AUDIT_GE...
0
513,333
static COND* substitute_for_best_equal_field(THD *thd, JOIN_TAB *context_tab, COND *cond, COND_EQUAL *cond_equal, void *table_join_idx) { Item_equal *item_equal; COND *org_cond= con...
0
436,097
static bool io_drain_req(struct io_kiocb *req) { struct io_kiocb *pos; struct io_ring_ctx *ctx = req->ctx; struct io_defer_entry *de; int ret; u32 seq; /* * If we need to drain a request in the middle of a link, drain the * head request and the next request/link after the current link. * Considering seque...
0
474,084
cp949_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { return onigenc_mb2_is_code_ctype(enc, code, ctype); }
0
202,889
int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) { u8 *tail; int nfrags; int esph_offset; struct page *page; struct sk_buff *trailer; int tailen = esp->tailen; if (x->encap) { int err = esp6_output_encap(x, skb, esp); if (err < 0) return err; } if (!skb_cloned(skb...
1
395,071
text_to_screenline(win_T *wp, char_u *text, int col) { int off = (int)(current_ScreenLine - ScreenLines); if (has_mbyte) { int cells; int u8c, u8cc[MAX_MCO]; int i; int idx; int c_len; char_u *p; # ifdef FEAT_ARABIC int prev_c = 0; // previous Arabic character int prev_c1 = 0; // first composing...
0
441,828
SProcXkbDispatch(ClientPtr client) { REQUEST(xReq); switch (stuff->data) { case X_kbUseExtension: return SProcXkbUseExtension(client); case X_kbSelectEvents: return SProcXkbSelectEvents(client); case X_kbBell: return SProcXkbBell(client); case X_kbGetState: return...
0
498,085
void cgit_tag_link(const char *name, const char *title, const char *class, const char *tag) { reporevlink("tag", name, title, class, tag, NULL, NULL); }
0
439,074
ModuleExport size_t RegisterRLEImage(void) { MagickInfo *entry; entry=SetMagickInfo("RLE"); entry->decoder=(DecodeImageHandler *) ReadRLEImage; entry->magick=(IsImageFormatHandler *) IsRLE; entry->seekable_stream=MagickTrue; entry->adjoin=MagickFalse; entry->description=ConstantString("Utah Run lengt...
0
234,756
void btrfs_rm_dev_replace_free_srcdev(struct btrfs_device *srcdev) { struct btrfs_fs_devices *fs_devices = srcdev->fs_devices; mutex_lock(&uuid_mutex); btrfs_close_bdev(srcdev); synchronize_rcu(); btrfs_free_device(srcdev); /* if this is no devs we rather delete the fs_devices */ if (!fs_devices->num_devices)...
0
219,947
int callback_glewlwyd_user_auth (const struct _u_request * request, struct _u_response * response, void * user_data) { struct config_elements * config = (struct config_elements *)user_data; json_t * j_param = ulfius_get_json_body_request(request, NULL), * j_result = NULL; const char * ip_source = get_ip_source(re...
0
521,481
ZipInputStream (ZipFile& zf, const ZipFile::ZipEntryHolder& zei) : file (zf), zipEntryHolder (zei), inputStream (zf.inputStream) { if (zf.inputSource != nullptr) { streamToDelete.reset (file.inputSource->createInputStream()); inputStrea...
0
292,217
is_hilight (char *from, char *text, session *sess, server *serv) { if (alert_match_word (from, prefs.hex_irc_no_hilight)) return 0; text = strip_color (text, -1, STRIP_ALL); if (alert_match_text (text, serv->nick) || alert_match_text (text, prefs.hex_irc_extra_hilight) || alert_match_word (from, prefs.hex_...
0
238,607
static bool signed_sub32_overflows(s32 a, s32 b) { /* Do the sub in u32, where overflow is well-defined */ s32 res = (s32)((u32)a - (u32)b); if (b < 0) return res < a; return res > a; }
0
437,309
alt_merge_opt_exact(OptExact* to, OptExact* add, OptEnv* env) { int i, j, len; if (add->len == 0 || to->len == 0) { clear_opt_exact(to); return ; } if (! is_equal_mml(&to->mmd, &add->mmd)) { clear_opt_exact(to); return ; } for (i = 0; i < to->len && i < add->len; ) { if (to->s[i] != a...
0
90,872
int additional_callback_count() const { return additional_callback_count_; }
0
309,882
spush(char *x) { if (TPS(stack_ptr) < STACKSIZE) { TPS(stack)[TPS(stack_ptr)].num_type = FALSE; TPS(stack)[TPS(stack_ptr)].data.str = x; TPS(stack_ptr)++; } else { DEBUG(2, ("spush: stack overflow: %s", _nc_visbuf(TPS(tparam_base)))); _nc_tparm_err++; } }
0
200,672
static void sdhci_do_adma(SDHCIState *s) { unsigned int begin, length; const uint16_t block_size = s->blksize & BLOCK_SIZE_MASK; ADMADescr dscr = {}; int i; if (s->trnmod & SDHC_TRNS_BLK_CNT_EN && !s->blkcnt) { /* Stop Multiple Transfer */ sdhci_end_transfer(s); return; ...
1
349,872
static int aq_fw1x_set_wake_magic(struct aq_hw_s *self, bool wol_enabled, const u8 *mac) { struct hw_atl_utils_fw_rpc *prpc = NULL; unsigned int rpc_size = 0U; int err = 0; err = hw_atl_utils_fw_rpc_wait(self, &prpc); if (err < 0) goto err_exit; memset(prpc, 0, sizeof(*prpc)); if (wol_enabled) { rpc...
0
225,019
connectDBComplete(PGconn *conn) { PostgresPollingStatusType flag = PGRES_POLLING_WRITING; time_t finish_time = ((time_t) -1); int timeout = 0; int last_whichhost = -2; /* certainly different from whichhost */ struct addrinfo *last_addr_cur = NULL; if (conn == NULL || conn->status == CONNECTION_BAD) return...
0
364,758
taglen_advance(int l) { if (l == MAXCOL) { msg_putchar('\n'); msg_advance(24); } else msg_advance(13 + l); }
0
281,150
static inline int secpath_has_nontransport(const struct sec_path *sp, int k, int *idxp) { for (; k < sp->len; k++) { if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) { *idxp = k; return 1; } } return 0; }
0
516,258
static int peer_attach(VirtIONet *n, int index) { NetClientState *nc = qemu_get_subqueue(n->nic, index); if (!nc->peer) { return 0; } if (nc->peer->info->type == NET_CLIENT_DRIVER_VHOST_USER) { vhost_set_vring_enable(nc->peer, 1); } if (nc->peer->info->type != NET_CLIENT_DRIVE...
0
256,987
route4_reset_fastmap(struct route4_head *head) { spin_lock_bh(&fastmap_lock); memset(head->fastmap, 0, sizeof(head->fastmap)); spin_unlock_bh(&fastmap_lock); }
0
450,771
re_mult_next(char *what) { if (re_multi_type(peekchr()) == MULTI_MULT) { semsg(_("E888: (NFA regexp) cannot repeat %s"), what); rc_did_emsg = TRUE; return FAIL; } return OK; }
0
196,860
GF_Err afra_box_read(GF_Box *s, GF_BitStream *bs) { unsigned int i; GF_AdobeFragRandomAccessBox *ptr = (GF_AdobeFragRandomAccessBox *)s; ISOM_DECREASE_SIZE(ptr, 9) ptr->long_ids = gf_bs_read_int(bs, 1); ptr->long_offsets = gf_bs_read_int(bs, 1); ptr->global_entries = gf_bs_read_int(bs, 1); ptr->reserved = gf_bs...
1
276,907
static int do_i2c_write(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { uint chip; uint devaddr, length; uint alen; u_char *memaddr; int ret; #if CONFIG_IS_ENABLED(DM_I2C) struct udevice *dev; struct dm_i2c_chip *i2c_chip; #endif if ((argc < 5) || (argc > 6)) return cmd_usage(cmdtp); /...
0
317,371
static int may_context_mount_inode_relabel(u32 sid, struct superblock_security_struct *sbsec, const struct cred *cred) { const struct task_security_struct *tsec = selinux_cred(cred); int rc; rc = avc_has_perm(&selinux_state, tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, FILESYSTEM__RELABELFROM, NULL); ...
0
262,001
static void *conncache_add_bundle(struct conncache *connc, char *key, struct connectbundle *bundle) { return Curl_hash_add(&connc->hash, key, strlen(key), bundle); }
0
343,237
void die_mem(void) { die(421, LOG_ERR, MSG_OUT_OF_MEMORY); }
0
356,175
void fs_machineid(void) { union machineid_t { uint8_t u8[16]; uint32_t u32[4]; } mid; // if --machine-id flag is inactive, do nothing if (arg_machineid == 0) return; if (arg_debug) printf("Generating a new machine-id\n"); // init random number generator srand(time(NULL)); // generate random id mid.u...
0
195,017
u32 GetHintFormat(GF_TrackBox *trak) { GF_HintMediaHeaderBox *hmhd = (GF_HintMediaHeaderBox *)trak->Media->information->InfoHeader; if (hmhd->type != GF_ISOM_BOX_TYPE_HMHD) return 0; if (!hmhd || !hmhd->subType) { GF_Box *a = (GF_Box *)gf_list_get(trak->Media->information->sampleTable->SampleDescription->chil...
1
289,299
static int snd_pcm_oss_get_active_substream(struct snd_pcm_oss_file *pcm_oss_file, struct snd_pcm_substream **r_substream) { int idx, err; struct snd_pcm_substream *asubstream = NULL, *substream; for (idx = 0; idx < 2; idx++) { substream = pcm_oss_file->streams[idx]; if (substream == NULL) continue; if (as...
0
244,056
GF_Box *dfla_box_new() { ISOM_DECL_BOX_ALLOC(GF_FLACConfigBox, GF_ISOM_BOX_TYPE_DFLA); return (GF_Box *)tmp; }
0
229,182
static void flush_queued_data_bh(void *opaque) { VirtIOSerialPort *port = opaque; flush_queued_data(port); }
0
234,241
display_debug_pubnames_worker (struct dwarf_section *section, void *file ATTRIBUTE_UNUSED, int is_gnu) { DWARF2_Internal_PubNames names; unsigned char *start = section->start; unsigned char *end = start + section->size; /* It does not matter if this load fails, we test for that later o...
0
521,454
inline uint32 readUnalignedLittleEndianInt (const void* buffer) { auto data = readUnaligned<uint32> (buffer); return ByteOrder::littleEndianInt (&data); }
0
432,172
MemoryRegionSection *iotlb_to_section(CPUState *cpu, hwaddr index, MemTxAttrs attrs) { #ifdef TARGET_ARM struct uc_struct *uc = cpu->uc; #endif int asidx = cpu_asidx_from_attrs(cpu, attrs); CPUAddressSpace *cpuas = &cpu->cpu_ases[asidx]; AddressSpaceDispatch *d = cp...
0
225,875
GF_Err audio_sample_entry_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_isom_audio_sample_entry_write((GF_AudioSampleEntryBox*)s, bs); return GF_OK; }
0
413,685
static bool opiscall(RCore *core, RAnalOp *aop, ut64 addr, const ut8* buf, int len, int arch) { switch (arch) { case R2_ARCH_ARM64: aop->size = 4; //addr should be aligned by 4 in aarch64 if (addr % 4) { char diff = addr % 4; addr = addr - diff; buf = buf - diff; } //if is not bl do not analyze i...
0
404,722
static unsigned long __fget_light(unsigned int fd, fmode_t mask) { struct files_struct *files = current->files; struct file *file; if (atomic_read(&files->count) == 1) { file = files_lookup_fd_raw(files, fd); if (!file || unlikely(file->f_mode & mask)) return 0; return (unsigned long)file; } else { file...
0
361,302
stl_load_edge_nearby(stl_file *stl, stl_hash_edge *edge, stl_vertex *a, stl_vertex *b, float tolerance) { float diff_x; float diff_y; float diff_z; float max_diff; unsigned vertex1[3]; unsigned vertex2[3]; diff_x = ABS(a->x - b->x); diff_y = ABS(a->y - b->y); diff_z = ABS(a->z -...
0
244,272
GF_Err pdin_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i; GF_ProgressiveDownloadBox *ptr = (GF_ProgressiveDownloadBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; for (i=0; i<ptr->count; i++) { gf_bs_write_u32(bs, ptr->rates[i]); gf_bs_write_u32(bs, ptr->times[i]); } return GF_OK; }
0
459,024
http_Proto(struct http *to) { const char *fm; fm = to->hd[HTTP_HDR_PROTO].b; if (fm != NULL && (fm[0] == 'H' || fm[0] == 'h') && (fm[1] == 'T' || fm[1] == 't') && (fm[2] == 'T' || fm[2] == 't') && (fm[3] == 'P' || fm[3] == 'p') && fm[4] == '/' && vct_isdigit(fm[5]) && fm[6] == '....
0
312,436
ex_cnext(exarg_T *eap) { qf_info_T *qi; int errornr; int dir; if ((qi = qf_cmd_get_stack(eap, TRUE)) == NULL) return; if (eap->addr_count > 0 && (eap->cmdidx != CMD_cdo && eap->cmdidx != CMD_ldo && eap->cmdidx != CMD_cfdo && eap->cmdidx != CMD_lfdo)) errornr = (int)eap->line2; else ...
0
221,174
GF_Err gf_odf_delete_descriptor_list(GF_List *descList) { GF_Err e; GF_Descriptor*tmp; u32 i; //no error if NULL chain... if (! descList) return GF_OK; i=0; while ((tmp = (GF_Descriptor*)gf_list_enum(descList, &i))) { e = gf_odf_delete_descriptor(tmp); if (e) return e; } gf_list_del(descList); return GF_O...
0
307,845
bool ciEnv::jvmti_state_changed() const { if (!_jvmti_can_access_local_variables && JvmtiExport::can_access_local_variables()) { return true; } if (!_jvmti_can_hotswap_or_post_breakpoint && JvmtiExport::can_hotswap_or_post_breakpoint()) { return true; } if (!_jvmti_can_post_on_exceptions &...
0
234,147
comp_addr_base (const void * v0, const void * v1) { debug_info *info0 = *(debug_info **) v0; debug_info *info1 = *(debug_info **) v1; return info0->addr_base - info1->addr_base; }
0
275,480
njs_vm_retval(njs_vm_t *vm) { return &vm->retval; }
0
466,154
static void decode_register_operand(struct x86_emulate_ctxt *ctxt, struct operand *op, int inhibit_bytereg) { unsigned reg = ctxt->modrm_reg; int highbyte_regs = ctxt->rex_prefix == 0; if (!(ctxt->d & ModRM)) reg = (ctxt->b & 7) | ((ctxt->rex_prefix & 1) << 3); if (ctxt->d & Sse) { op->type = ...
0
309,970
save_text(const char *fmt, const char *s, int len) { size_t s_len = (size_t) len + strlen(s) + strlen(fmt); get_space(s_len + 1); _nc_SPRINTF(TPS(out_buff) + TPS(out_used), _nc_SLIMIT(TPS(out_size) - TPS(out_used)) fmt, s); TPS(out_used) += strlen(TPS(out_buff) + TPS(out_used)); }
0
316,991
static void smack_free_mnt_opts(void *mnt_opts) { struct smack_mnt_opts *opts = mnt_opts; kfree(opts->fsdefault); kfree(opts->fsfloor); kfree(opts->fshat); kfree(opts->fsroot); kfree(opts->fstransmute); kfree(opts); }
0
474,005
onig_free_shared_cclass_table(void) { THREAD_ATOMIC_START; if (IS_NOT_NULL(OnigTypeCClassTable)) { onig_st_foreach(OnigTypeCClassTable, i_free_shared_class, 0); onig_st_free_table(OnigTypeCClassTable); OnigTypeCClassTable = NULL; } THREAD_ATOMIC_END; return 0; }
0
279,938
skip_vimgrep_pat_ext(char_u *p, char_u **s, int *flags, char_u **nulp, int *cp) { int c; if (vim_isIDc(*p)) { // ":vimgrep pattern fname" if (s != NULL) *s = p; p = skiptowhite(p); if (s != NULL && *p != NUL) { if (nulp != NULL) { *nulp = p; *cp = *p; } *p++ = NUL; } ...
0
344,249
int luaG_traceexec (lua_State *L, const Instruction *pc) { CallInfo *ci = L->ci; lu_byte mask = L->hookmask; const Proto *p = ci_func(ci)->p; int counthook; if (!(mask & (LUA_MASKLINE | LUA_MASKCOUNT))) { /* no hooks? */ ci->u.l.trap = 0; /* don't need to stop again */ return 0; /* turn off 'trap' ...
0
317,248
static void smk_bu_mode(int mode, char *s) { int i = 0; if (mode & MAY_READ) s[i++] = 'r'; if (mode & MAY_WRITE) s[i++] = 'w'; if (mode & MAY_EXEC) s[i++] = 'x'; if (mode & MAY_APPEND) s[i++] = 'a'; if (mode & MAY_TRANSMUTE) s[i++] = 't'; if (mode & MAY_LOCK) s[i++] = 'l'; if (i == 0) s[i++] = '-...
0
459,086
int tc_setup_action(struct flow_action *flow_action, struct tc_action *actions[]) { int i, j, index, err = 0; struct tc_action *act; BUILD_BUG_ON(TCA_ACT_HW_STATS_ANY != FLOW_ACTION_HW_STATS_ANY); BUILD_BUG_ON(TCA_ACT_HW_STATS_IMMEDIATE != FLOW_ACTION_HW_STATS_IMMEDIATE); BUILD_BUG_ON(TCA_ACT_HW_STATS_DELAY...
0
201,007
static int print_media_desc(const pjmedia_sdp_media *m, char *buf, pj_size_t len) { char *p = buf; char *end = buf+len; unsigned i; int printed; /* check length for the "m=" line. */ if (len < (pj_size_t)m->desc.media.slen+m->desc.transport.slen+12+24) { return -1; } *p++ = 'm'; /*...
1
336,566
static void reds_migrate_channels_seamless(RedsState *reds) { RedClient *client; /* seamless migration is supported for only one client for now */ client = reds_get_client(reds); client->migrate(); }
0
247,519
int expectedVerifyErrorCode() const { return expected_verify_error_code_; }
0