idx
int64
func
string
target
int64
389,682
tv_get_string_strict(typval_T *varp) { static char_u mybuf[NUMBUFLEN]; char_u *res = tv_get_string_buf_chk_strict( varp, mybuf, in_vim9script()); return res != NULL ? res : (char_u *)""; }
0
474,023
st_hash_start(st_index_t h) { return h; }
0
430,390
static void update_range(struct sw_flow_match *match, size_t offset, size_t size, bool is_mask) { struct sw_flow_key_range *range; size_t start = rounddown(offset, sizeof(long)); size_t end = roundup(offset + size, sizeof(long)); if (!is_mask) range = &match->range; else range = &match->mask->range; if ...
0
384,910
vim_isblankline(char_u *lbuf) { char_u *p; p = skipwhite(lbuf); return (*p == NUL || *p == '\r' || *p == '\n'); }
0
300,744
int tsk_set_importance(struct sock *sk, int imp) { if (imp > TIPC_CRITICAL_IMPORTANCE) return -EINVAL; msg_set_importance(&tipc_sk(sk)->phdr, (u32)imp); return 0; }
0
385,896
int vfs_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) { int error; int is_dir = S_ISDIR(old_dentry->d_inode->i_mode); const unsigned char *old_name; if (old_dentry->d_inode == new_dentry->d_inode) return 0; error = may_delete(old_dir, old_d...
0
359,412
DEFUN (show_ip_bgp_attr_info, show_ip_bgp_attr_info_cmd, "show ip bgp attribute-info", SHOW_STR IP_STR BGP_STR "List all bgp attribute information\n") { attr_show_all (vty); return CMD_SUCCESS; }
0
313,554
void rose_add_loopback_neigh(void) { struct rose_neigh *sn; rose_loopback_neigh = kmalloc(sizeof(struct rose_neigh), GFP_KERNEL); if (!rose_loopback_neigh) return; sn = rose_loopback_neigh; sn->callsign = null_ax25_address; sn->digipeat = NULL; sn->ax25 = NULL; sn->dev = NULL; sn->count = ...
0
292,131
methodHandle LinkResolver::resolve_virtual_call_or_null( Klass* receiver_klass, const LinkInfo& link_info) { EXCEPTION_MARK; CallInfo info; resolve_virtual_call(info, Handle(), receiver_klass, link_info, false, THREA...
0
463,059
static void sungem_do_tx_csum(SunGEMState *s) { uint16_t start, off; uint32_t csum; start = (s->tx_first_ctl & TXDCTRL_CSTART) >> 15; off = (s->tx_first_ctl & TXDCTRL_COFF) >> 21; trace_sungem_tx_checksum(start, off); if (start > (s->tx_size - 2) || off > (s->tx_size - 2)) { trace_sun...
0
226,265
void reftype_box_del(GF_Box *s) { GF_TrackReferenceTypeBox *ptr = (GF_TrackReferenceTypeBox *)s; if (!ptr) return; if (ptr->trackIDs) gf_free(ptr->trackIDs); gf_free(ptr);
0
373,519
ipf_is_first_v4_frag(const struct dp_packet *pkt) { const struct ip_header *l3 = dp_packet_l3(pkt); if (!(l3->ip_frag_off & htons(IP_FRAG_OFF_MASK)) && l3->ip_frag_off & htons(IP_MORE_FRAGMENTS)) { return true; } return false; }
0
489,161
static sctp_disposition_t __sctp_sf_do_9_1_abort(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) { struct sctp_chunk *chunk = arg; unsigned len; __be16 error = SCTP_ERROR_NO_ERROR; /* See if we have an error ca...
0
294,394
get_limit(VALUE opt) { if (!NIL_P(opt)) { VALUE limit = rb_hash_aref(opt, ID2SYM(rb_intern("limit"))); if (NIL_P(limit)) return SIZE_MAX; return NUM2SIZET(limit); } return 128; }
0
508,839
bool st_select_lex::save_prep_leaf_tables(THD *thd) { if (prep_leaf_list_state == SAVED) return FALSE; List_iterator_fast<TABLE_LIST> li(leaf_tables); TABLE_LIST *table; /* Check that the SELECT_LEX was really prepared and so tables are setup. It can be subquery in SET clause of UPDATE which was ...
0
291,836
static void rtrs_clt_stop_and_destroy_conns(struct rtrs_clt_path *clt_path) { struct rtrs_clt_con *con; unsigned int cid; WARN_ON(READ_ONCE(clt_path->state) == RTRS_CLT_CONNECTED); /* * Possible race with rtrs_clt_open(), when DEVICE_REMOVAL comes * exactly in between. Start destroying after it finishes. *...
0
400,102
int PipeSocketHandler::connect(const SocketEndpoint& endpoint) { lock_guard<std::recursive_mutex> mutexGuard(globalMutex); string pipePath = endpoint.name(); sockaddr_un remote; int sockFd = ::socket(AF_UNIX, SOCK_STREAM, 0); FATAL_FAIL(sockFd); initSocket(sockFd); remote.sun_family = AF_UNIX; strncpy...
0
508,806
bool st_select_lex::is_merged_child_of(st_select_lex *ancestor) { bool all_merged= TRUE; for (SELECT_LEX *sl= this; sl && sl!=ancestor; sl=sl->outer_select()) { Item *subs= sl->master_unit()->item; if (subs && subs->type() == Item::SUBSELECT_ITEM && ((Item_subselect*)subs)->substype() == I...
0
513,175
static size_t var_storage_size(int flags) { switch (flags & PLUGIN_VAR_TYPEMASK) { case PLUGIN_VAR_BOOL: return sizeof(my_bool); case PLUGIN_VAR_INT: return sizeof(int); case PLUGIN_VAR_LONG: return sizeof(long); case PLUGIN_VAR_ENUM: return sizeof(long); case PLUGIN_VAR_LON...
0
376,324
gpg_ctx_get_executable_name (void) { static gint index = -1; const gchar *names[] = { "gpg", "gpg2", NULL }; if (index == -1) { for (index = 0; names[index]; index++) { gchar *path = g_find_program_in_path (names[index]); if (path) { g_free (path); break; } } if (!names[index]) in...
0
253,563
void close_cached_dir_lease(struct cached_fid *cfid) { mutex_lock(&cfid->fid_mutex); close_cached_dir_lease_locked(cfid); mutex_unlock(&cfid->fid_mutex); }
0
254,071
inline char * qs_k2v(const char * key, char * const * qs_kv, int qs_kv_size, int nth = 0) { int i; size_t key_len, skip; key_len = strlen(key); #ifdef _qsSORTING // TODO: binary search for key in the sorted qs_kv #else // _qsSORTING for(i=0; i<qs_kv_size; i++) { // we rely on the unambigu...
0
432,218
void *cpu_physical_memory_map(AddressSpace *as, hwaddr addr, hwaddr *plen, bool is_write) { return address_space_map(as, addr, plen, is_write, MEMTXATTRS_UNSPECIFIED); }
0
512,651
Item *get_copy(THD *thd) { return get_item_copy<Item_cache_int>(thd, this); }
0
438,655
static int rpmsg_remove_device(struct device *dev, void *data) { device_unregister(dev); return 0; }
0
395,077
update_prepare(void) { cursor_off(); updating_screen = TRUE; #ifdef FEAT_GUI // Remove the cursor before starting to do anything, because scrolling may // make it difficult to redraw the text under it. if (gui.in_use) gui_undraw_cursor(); #endif #ifdef FEAT_SEARCH_EXTRA start_search_hl(); #endi...
0
477,356
R_API char *r_bin_java_print_methodtype_cp_stringify(RBinJavaCPTypeObj *obj) { ut32 size = 255, consumed = 0; char *value = malloc (size); if (value) { memset (value, 0, size); consumed = snprintf (value, size, "%d.0x%04"PFMT64x ".%s.%d", obj->metas->ord, obj->file_offset + obj->loadaddr, ((RBinJavaCPTypeMeta...
0
208,370
bracketed_paste(paste_mode_T mode, int drop, garray_T *gap) { int c; char_u buf[NUMBUFLEN + MB_MAXBYTES]; int idx = 0; char_u *end = find_termcode((char_u *)"PE"); int ret_char = -1; int save_allow_keys = allow_keys; int save_paste = p_paste; // If the end code is too long we can't...
1
224,492
static void gf_webvtt_flush_sample(void *user, GF_WebVTTSample *samp) { u64 start, end; GF_TXTIn *ctx = (GF_TXTIn *)user; GF_ISOSample *s; start = gf_webvtt_sample_get_start(samp); end = gf_webvtt_sample_get_end(samp); if (ctx->seek_state==2) { Double tsend = (Double) end; tsend /= 1000; if (tsend<ctx->st...
0
242,611
explicit UnstageOp(OpKernelConstruction* ctx) : OpKernel(ctx) {}
0
474,078
strhash(st_data_t arg) { register const char *string = (const char *)arg; register st_index_t hval = FNV1_32A_INIT; /* * FNV-1a hash each octet in the buffer */ while (*string) { /* xor the bottom with the current octet */ hval ^= (unsigned int)*string++; /* multiply by the 32 bit FNV mag...
0
244,131
GF_Err subs_box_read(GF_Box *s, GF_BitStream *bs) { GF_SubSampleInformationBox *ptr = (GF_SubSampleInformationBox *)s; u32 entry_count, i, j; u16 subsample_count; ISOM_DECREASE_SIZE(ptr, 4); entry_count = gf_bs_read_u32(bs); for (i=0; i<entry_count; i++) { u32 subs_size=0; GF_SubSampleInfoEntry *pSamp = (GF...
0
244,032
GF_Err mhac_box_size(GF_Box *s) { GF_MHAConfigBox *ptr = (GF_MHAConfigBox *) s; s->size += 5; if (ptr->mha_config_size && ptr->mha_config) s->size += ptr->mha_config_size; return GF_OK; }
0
513,001
Item *Item_func_eq::negated_item(THD *thd) /* a = b -> a != b */ { return new (thd->mem_root) Item_func_ne(thd, args[0], args[1]); }
0
486,831
static inline unsigned rx_desc_get_wrap(uint32_t *desc) { return desc[0] & DESC_0_RX_WRAP ? 1 : 0; }
0
393,501
static SQInteger table_map(HSQUIRRELVM v) { SQObject &o = stack_get(v, 1); SQTable *tbl = _table(o); SQInteger nitr, n = 0; SQInteger nitems = tbl->CountUsed(); SQObjectPtr ret = SQArray::Create(_ss(v), nitems); SQObjectPtr itr, key, val; while ((nitr = tbl->Next(false, itr, key, val)) != -1) { itr = (SQIntege...
0
286,724
TPM_RESULT SWTPM_NVRAM_Init(void) { const char *backend_uri; TPM_RESULT rc = 0; TPM_DEBUG(" SWTPM_NVRAM_Init:\n"); backend_uri = tpmstate_get_backend_uri(); if (!backend_uri) { logprintf(STDERR_FILENO, "SWTPM_NVRAM_Init: Missing backend URI.\n"); rc = TPM_FAIL; ...
0
218,748
static MagickBooleanType CheckPSDChannels(const Image *image, const PSDInfo *psd_info,LayerInfo *layer_info) { int channel_type; size_t blob_size; ssize_t i; if (layer_info->channels < psd_info->min_channels) return(MagickFalse); channel_type=RedChannel; if (psd_info->min_channels >= 3)...
0
225,968
GF_Err proj_type_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_ProjectionTypeBox *ptr = (GF_ProjectionTypeBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; if (ptr->type==GF_ISOM_BOX_TYPE_CBMP) { gf_bs_write_u32(bs, ptr->layout); gf_bs_write_u32(bs, ptr->padding); } else if (ptr->type==G...
0
231,024
static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue ) { UBaseType_t uxHighestPriorityOfWaitingTasks; /* If a task waiting for a mutex causes the mutex holder to inherit a * priority, but the waiting task times out, then the holder should ...
0
226,432
const std::vector<PartialTensorShape>& output_shapes() const override { return shapes_; }
0
398,509
RZ_API const char *rz_bin_dwarf_get_tag_name(ut64 tag) { if (tag >= DW_TAG_LAST) { return NULL; } return dwarf_tag_name_encodings[tag]; }
0
486,812
static inline uint32_t gem_get_tx_queue_base_addr(CadenceGEMState *s, int q) { return gem_get_queue_base_addr(s, true, q); }
0
405,380
int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, struct xfrm_migrate *m, int num_migrate, struct xfrm_kmaddress *k, struct net *net, struct xfrm_encap_tmpl *encap, u32 if_id) { int i, err, nx_cur = 0, nx_new = 0; struct xfrm_policy *pol = NULL; struct xfrm_state *x, *xc; struct xfrm_state...
0
459,204
static void tcf_block_flush_all_chains(struct tcf_block *block, bool rtnl_held) { struct tcf_chain *chain; /* Last reference to block. At this point chains cannot be added or * removed concurrently. */ for (chain = tcf_get_next_chain(block, NULL); chain; chain = tcf_get_next_chain(block, chain)) { ...
0
450,353
static int send_sub_rect_nojpeg(VncState *vs, int x, int y, int w, int h, int bg, int fg, int colors, VncPalette *palette) { int ret; if (colors == 0) { if (tight_detect_smooth_image(vs, w, h)) { ret = send_gradient_rect(vs, x, y, w, h); } else { ...
0
90,121
virtual void ConnectToWifiNetwork(ConnectionSecurity security, const std::string& ssid, const std::string& password, const std::string& identity, const std::string& certpath,...
0
459,208
struct tcf_chain *tcf_chain_get_by_act(struct tcf_block *block, u32 chain_index) { return __tcf_chain_get(block, chain_index, true, true); }
0
229,169
static void handle_input(VirtIODevice *vdev, VirtQueue *vq) { /* * Users of virtio-serial would like to know when guest becomes * writable again -- i.e. if a vq had stuff queued up and the * guest wasn't reading at all, the host would not be able to * write to the vq anymore. Once the guest rea...
0
230,387
PJ_DEF(pj_xml_node*) pj_xml_find_node(const pj_xml_node *parent, const pj_str_t *name) { const pj_xml_node *node = parent->node_head.next; PJ_CHECK_STACK(); while (node != (void*)&parent->node_head) { if (pj_stricmp(&node->name, name) == 0) return (pj_xml_node*)node; node = node->next; ...
0
264,654
GF_Err BM_ParseIndexDelete(GF_BifsDecoder *codec, GF_BitStream *bs, GF_List *com_list) { u32 NodeID, NumBits, ind, field_ind; s32 pos; GF_Command *com; u8 type; GF_Node *node; GF_Err e; GF_CommandField *inf; GF_FieldInfo field; NodeID = 1 + gf_bs_read_int(bs, codec->info->config.NodeIDBits); node = gf_sg_fin...
0
308,198
static void fastrpc_notify_users(struct fastrpc_user *user) { struct fastrpc_invoke_ctx *ctx; spin_lock(&user->lock); list_for_each_entry(ctx, &user->pending, node) complete(&ctx->work); spin_unlock(&user->lock); }
0
512,784
Item_direct_ref_to_ident(THD *thd, Item_ident *item): Item_direct_ref(thd, item->context, (Item**)&item, item->table_name, &item->field_name, FALSE) { ident= item; ref= (Item**)&ident; }
0
210,814
ins_compl_add( char_u *str, int len, char_u *fname, char_u **cptext, // extra text for popup menu or NULL typval_T *user_data UNUSED, // "user_data" entry or NULL int cdir, int flags_arg, int adup) // accept duplicate match { compl_T *match; int dir = (cdir == 0 ? comp...
1
281,057
static bool xfrm_policy_mark_match(struct xfrm_policy *policy, struct xfrm_policy *pol) { u32 mark = policy->mark.v & policy->mark.m; if (policy->mark.v == pol->mark.v && policy->mark.m == pol->mark.m) return true; if ((mark & pol->mark.m) == pol->mark.v && policy->priority == pol->priority) return...
0
369,187
static inline unsigned int io_put_kbuf_comp(struct io_kiocb *req) { lockdep_assert_held(&req->ctx->completion_lock); if (likely(!(req->flags & REQ_F_BUFFER_SELECTED))) return 0; return __io_put_kbuf(req, &req->ctx->io_buffers_comp); }
0
439,145
ModuleExport size_t RegisterIPLImage(void) { MagickInfo *entry; entry=SetMagickInfo("IPL"); entry->decoder=(DecodeImageHandler *) ReadIPLImage; entry->encoder=(EncodeImageHandler *) WriteIPLImage; entry->magick=(IsImageFormatHandler *) IsIPL; entry->adjoin=MagickTrue; entry->description=ConstantStrin...
0
369,160
static int io_sync_file_range(struct io_kiocb *req, unsigned int issue_flags) { int ret; /* sync_file_range always requires a blocking context */ if (issue_flags & IO_URING_F_NONBLOCK) return -EAGAIN; ret = sync_file_range(req->file, req->sync.off, req->sync.len, req->sync.flags); if (ret < 0) req_set_fa...
0
238,777
last_csearch(void) { return lastc_bytes; }
0
242,121
int LuaSettings::l_set(lua_State* L) { NO_MAP_LOCK_REQUIRED; LuaSettings* o = checkobject(L, 1); std::string key = std::string(luaL_checkstring(L, 2)); const char* value = luaL_checkstring(L, 3); CHECK_SETTING_SECURITY(L, key); if (!o->m_settings->set(key, value)) throw LuaError("Invalid sequence found in se...
0
276,955
SampleEncrypter::EncryptVideoSample(AP4_DataBuffer& sample, AP4_UI08 nalu_length_size) { AP4_DataBuffer encrypted; AP4_UI08* nalu = sample.UseData(); AP4_Size bytes_remaining = sample.GetDataSize(); while (bytes_remaining > nalu_length_size) { AP4_Size nalu_length = 0; switch (nalu...
0
336,596
SPICE_GNUC_VISIBLE int spice_server_migrate_switch(SpiceServer *reds) { spice_debug("trace"); if (reds->clients.empty()) { return 0; } reds->expect_migrate = FALSE; if (!reds->config->mig_spice) { spice_warning("spice_server_migrate_switch called without migrate_info set"); re...
0
346,461
ex_scriptnames(exarg_T *eap) { int i; if (eap->addr_count > 0 || *eap->arg != NUL) { // :script {scriptId}: edit the script if (eap->addr_count > 0 && !SCRIPT_ID_VALID(eap->line2)) emsg(_(e_invalid_argument)); else { if (eap->addr_count > 0) eap->arg = SCRIPT_ITEM(eap->line2)->sn_name; ...
0
318,962
ga_concat_shorten_esc(garray_T *gap, char_u *str) { char_u *p; char_u *s; int c; int clen; char_u buf[NUMBUFLEN]; int same_len; if (str == NULL) { ga_concat(gap, (char_u *)"NULL"); return; } for (p = str; *p != NUL; ++p) { same_len = 1; s = p; c = mb_cpt...
0
483,515
int __init efi_config_init(efi_config_table_type_t *arch_tables) { void *config_tables; int sz, ret; if (efi.systab->nr_tables == 0) return 0; if (efi_enabled(EFI_64BIT)) sz = sizeof(efi_config_table_64_t); else sz = sizeof(efi_config_table_32_t); /* * Let's see what config tables the firmware passed t...
0
512,404
Item_string(THD *thd, const char *str, uint length, CHARSET_INFO *cs, Derivation dv, uint repertoire) :Item_literal(thd) { str_value.set_or_copy_aligned(str, length, cs); fix_and_set_name_from_value(thd, dv, Metadata(&str_value, repertoire)); }
0
301,367
static struct tevent_req *vfswrap_fsync_send(struct vfs_handle_struct *handle, TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct files_struct *fsp) { struct tevent_req *req; struct vfswrap_asys_state *state; int ret; req = tevent_req_create(mem_ctx, &state, struct vfswrap_asys_st...
0
432,223
static FlatRange *flatview_lookup(FlatView *view, AddrRange addr) { return bsearch(&addr, view->ranges, view->nr, sizeof(FlatRange), cmp_flatrange_addr); }
0
276,993
fiber_switch(mrb_state *mrb, mrb_value self, mrb_int len, const mrb_value *a, mrb_bool resume, mrb_bool vmexec) { struct mrb_context *c = fiber_check(mrb, self); struct mrb_context *old_c = mrb->c; enum mrb_fiber_state status; mrb_value value; fiber_check_cfunc(mrb, c); status = c->status; switch (status...
0
512,715
Item_bool_rowready_func2::value_depends_on_sql_mode() const { if (compare_collation()->state & MY_CS_NOPAD) return Item_func::value_depends_on_sql_mode(); return ((args[0]->value_depends_on_sql_mode() | args[1]->value_depends_on_sql_mode()) & Sql_mode_dependency(~0, ~MODE_PAD_CHAR_TO_FULL_L...
0
301,426
static int vfswrap_closedir(vfs_handle_struct *handle, DIR *dirp) { int result; START_PROFILE(syscall_closedir); result = closedir(dirp); END_PROFILE(syscall_closedir); return result; }
0
402,602
handle_signing(context *ctx, struct pollfd *pollfd, socklen_t size, int attached, bool with_file_type) { struct msghdr msg; struct iovec iov; ssize_t n; char *buffer = malloc(size); uint32_t file_format; if (!buffer) { oom: ctx->cms->log(ctx->cms, ctx->priority|LOG_ERR, "unable to allocate memory: %...
0
241,066
void list_peers(int fd) { char *data; unsigned int olen; struct boothc_hdr_msg hdr; if (format_peers(&data, &olen) < 0) goto out; init_header(&hdr.header, CL_LIST, 0, 0, RLT_SUCCESS, 0, sizeof(hdr) + olen); (void)send_header_plus(fd, &hdr, data, olen); out: if (data) free(data); }
0
366,254
static inline struct hlist_head *m_hash(struct vfsmount *mnt, struct dentry *dentry) { unsigned long tmp = ((unsigned long)mnt / L1_CACHE_BYTES); tmp += ((unsigned long)dentry / L1_CACHE_BYTES); tmp = tmp + (tmp >> m_hash_shift); return &mount_hashtable[tmp & m_hash_mask]; }
0
283,742
static void zynq_slcr_compute_clocks(ZynqSLCRState *s) { uint64_t ps_clk = clock_get(s->ps_clk); /* consider outputs clocks are disabled while in reset */ if (device_is_in_reset(DEVICE(s))) { ps_clk = 0; } uint64_t io_pll = zynq_slcr_compute_pll(ps_clk, s->regs[R_IO_PLL_CTRL]); uint64_...
0
386,538
bool DL_Dxf::checkVariable(const char* var, DL_Codes::version version) { if (version>=DL_VERSION_2000) { return true; } else if (version==DL_VERSION_R12) { // these are all the variables recognized by dxf r12: if (!strcmp(var, "$ACADVER")) { return true; } if ...
0
344,748
argv_next(int *argcp, char ***argvp) { char *ret = (*argvp)[0]; if (*argcp > 0 && ret != NULL) { (*argcp)--; (*argvp)++; } return ret; }
0
244,148
GF_Err udta_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i; GF_UserDataMap *map; GF_UserDataBox *ptr = (GF_UserDataBox *)s; e = gf_isom_box_write_header(s, bs); if (e) return e; i=0; while ((map = (GF_UserDataMap *)gf_list_enum(ptr->recordList, &i))) { //warning: here we are not passing the actual ...
0
244,297
GF_Err mvcg_box_read(GF_Box *s,GF_BitStream *bs) { u32 i; GF_MultiviewGroupBox *ptr = (GF_MultiviewGroupBox *) s; ISOM_DECREASE_SIZE(s, 7) ptr->multiview_group_id = gf_bs_read_u32(bs); ptr->num_entries = gf_bs_read_u16(bs); gf_bs_read_u8(bs); ptr->entries = gf_malloc(ptr->num_entries * sizeof(MVCIEntry)); memse...
0
225,925
GF_Err vwid_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i, j; GF_ViewIdentifierBox *ptr = (GF_ViewIdentifierBox *) s; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_int(bs, 0, 2); gf_bs_write_int(bs, ptr->min_temporal_id, 3); gf_bs_write_int(bs, ptr->max_temporal_id, 3); gf_bs_wri...
0
369,221
static int io_openat2_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) { struct open_how __user *how; size_t len; int ret; how = u64_to_user_ptr(READ_ONCE(sqe->addr2)); len = READ_ONCE(sqe->len); if (len < OPEN_HOW_SIZE_VER0) return -EINVAL; ret = copy_struct_from_user(&req->open.how, sizeof(req->o...
0
90,868
void SetPersistentHostQuota(const std::string& host, int64 new_quota) { quota_status_ = kQuotaStatusUnknown; host_.clear(); type_ = kStorageTypeUnknown; quota_ = -1; quota_manager_->SetPersistentHostQuota(host, new_quota, callback_factory_.NewCallback( &QuotaManagerTest::DidGet...
0
313,810
nv_operator(cmdarg_T *cap) { int op_type; op_type = get_op_type(cap->cmdchar, cap->nchar); #ifdef FEAT_JOB_CHANNEL if (bt_prompt(curbuf) && op_is_change(op_type) && !prompt_curpos_editable()) { clearopbeep(cap->oap); return; } #endif if (op_type == cap->oap->op_type) // double operat...
0
225,987
GF_Err stsd_box_size(GF_Box *s) { GF_SampleDescriptionBox *ptr = (GF_SampleDescriptionBox *)s; ptr->size += 4; return GF_OK; }
0
218,965
ConstantFolding::ConstantFolding(DeviceBase* cpu_device, bool disable_compressed_tensor_optimization, bool fold_quantization_ops) : ConstantFolding(RewriterConfig::ON, cpu_device, disable_compressed_tensor_optimization, ...
0
398,522
static int init_comp_unit(RzBinDwarfCompUnit *cu) { if (!cu) { return -EINVAL; } cu->dies = calloc(sizeof(RzBinDwarfDie), COMP_UNIT_CAPACITY); if (!cu->dies) { return -ENOMEM; } cu->capacity = COMP_UNIT_CAPACITY; cu->count = 0; return 0; }
0
212,407
http_isfiltered(const struct http *fm, unsigned u, unsigned how) { const char *e; const struct http_hdrflg *f; if (fm->hdf[u] & HDF_FILTER) return (1); e = strchr(fm->hd[u].b, ':'); if (e == NULL) return (0); f = http_hdr_flags(fm->hd[u].b, e); return (f != NULL && f->flag & how); }
1
427,729
cdf_unpack_catalog(const cdf_header_t *h, const cdf_stream_t *sst, cdf_catalog_t **cat) { size_t ss = cdf_check_stream(sst, h); const char *b = CAST(const char *, sst->sst_tab); const char *nb, *eb = b + ss * sst->sst_len; size_t nr, i, j, k; cdf_catalog_entry_t *ce; uint16_t reclen; const uint16_t *np; fo...
0
317,060
static int selinux_socket_post_create(struct socket *sock, int family, int type, int protocol, int kern) { const struct task_security_struct *tsec = selinux_cred(current_cred()); struct inode_security_struct *isec = inode_security_novalidate(SOCK_INODE(sock)); struct sk_security_struct *sksec; u16 sclass ...
0
229,247
static inline cql_server::result_with_foreign_response_ptr convert_error_message_to_coordinator_result(messages::result_message* msg) { return std::move(*dynamic_cast<messages::result_message::exception*>(msg)).get_exception(); }
0
224,464
static GF_Err txtin_process(GF_Filter *filter) { GF_TXTIn *ctx = gf_filter_get_udta(filter); GF_FilterPacket *pck; GF_Err e; Bool start, end; pck = gf_filter_pid_get_packet(ctx->ipid); if (!pck) { return GF_OK; } gf_filter_pck_get_framing(pck, &start, &end); if (!end) { gf_filter_pid_drop_packet(ctx->ipid)...
0
359,597
peer_weight_unset_vty (struct vty *vty, const char *ip_str) { struct peer *peer; peer = peer_and_group_lookup_vty (vty, ip_str); if (! peer) return CMD_WARNING; peer_weight_unset (peer); return CMD_SUCCESS; }
0
245,143
void Examples::RandomShuffle() { std::iota(sampled_index_.begin(), sampled_index_.end(), 0); std::random_device rd; std::mt19937 rng(rd()); std::shuffle(sampled_index_.begin(), sampled_index_.end(), rng); }
0
247,112
GF_Filter *gf_fs_load_destination(GF_FilterSession *fsess, const char *url, const char *args, const char *parent_url, GF_Err *err) { return gf_fs_load_source_dest_internal(fsess, url, args, parent_url, err, NULL, NULL, GF_FALSE, GF_FALSE, NULL); }
0
210,050
static void singlevar (LexState *ls, expdesc *var) { TString *varname = str_checkname(ls); FuncState *fs = ls->fs; singlevaraux(fs, varname, var, 1); if (var->k == VVOID) { /* global name? */ expdesc key; singlevaraux(fs, ls->envn, var, 1); /* get environment variable */ lua_assert(var->k != VVOID...
1
318,965
assert_equal_common(typval_T *argvars, assert_type_T atype) { garray_T ga; if (tv_equal(&argvars[0], &argvars[1], FALSE, FALSE) != (atype == ASSERT_EQUAL)) { prepare_assert_error(&ga); fill_assert_error(&ga, &argvars[2], NULL, &argvars[0], &argvars[1], atype); assert_error(&ga); ...
0
240,615
explicit ResourceGatherOp(OpKernelConstruction* c) : OpKernel(c) { OP_REQUIRES_OK(c, c->GetAttr("batch_dims", &batch_dims_)); }
0
503,881
is_file_name_separator (SCM c) { if (scm_is_eq (c, SCM_MAKE_CHAR ('/'))) return 1; #ifdef __MINGW32__ if (scm_is_eq (c, SCM_MAKE_CHAR ('\\'))) return 1; #endif return 0; }
0
390,550
_GetCountedString(char **wire_inout,Bool swap) { char * wire,*str; CARD16 len,*plen; wire= *wire_inout; plen= (CARD16 *)wire; if (swap) { register int n; swaps(plen,n); } len= *plen; str= (char *)_XkbAlloc(len+1); if (str) { memcpy(str,&wire[2],len); str[len]= '\0'; } wire+= Xkb...
0
273,875
static void mlsd_printf(ctrl_t *ctrl, char *buf, size_t len, char *path, char *name, struct stat *st) { char perms[10] = ""; int ro = !access(path, R_OK); int rw = !access(path, W_OK); if (S_ISDIR(st->st_mode)) { /* XXX: Verify 'e' by checking that we can CD to the 'name' */ if (ro) strlcat(perms, "le", siz...
0