idx
int64
func
string
target
int64
477,814
static int rtas_name_matches(char *s1, char *s2) { struct kvm_rtas_token_args args; return !strncmp(s1, s2, sizeof(args.name)); }
0
459,094
int tcf_classify(struct sk_buff *skb, const struct tcf_block *block, const struct tcf_proto *tp, struct tcf_result *res, bool compat_mode) { #if !IS_ENABLED(CONFIG_NET_TC_SKB_EXT) u32 last_executed_chain = 0; return __tcf_classify(skb, tp, tp, res, compat_mode, &last_executed_chain); #else u32 las...
0
387,816
void InstanceKlass::ensure_space_for_methodids(int start_offset) { int new_jmeths = 0; int length = methods()->length(); for (int index = start_offset; index < length; index++) { Method* m = methods()->at(index); jmethodID id = m->find_jmethod_id_or_null(); if (id == NULL) { new_jmeths++; } ...
0
309,901
NCURSES_SP_NAME(color_content) (NCURSES_SP_DCLx NCURSES_COLOR_T color, NCURSES_COLOR_T *r, NCURSES_COLOR_T *g, NCURSES_COLOR_T *b) { int my_r, my_g, my_b; int rc = _nc_color_content(SP_PARM, color, &my_r, &my_g, &my_b); if (rc == OK) { *r = limit_COLOR(my_r); *g = limit_COLOR(my_g); *b = ...
0
231,695
TEST_F(QuicServerTransportTest, RecvNewConnectionIdNoopValidDuplicate) { auto& conn = server->getNonConstConn(); conn.transportSettings.selfActiveConnectionIdLimit = 1; ConnectionId connId2({5, 5, 5, 5}); conn.peerConnectionIds.emplace_back(connId2, 1); ShortHeader header(ProtectionType::KeyPhaseZero, *conn...
0
300,748
static int tipc_sendmcast(struct socket *sock, struct tipc_uaddr *ua, struct msghdr *msg, size_t dlen, long timeout) { struct sock *sk = sock->sk; struct tipc_sock *tsk = tipc_sk(sk); struct tipc_msg *hdr = &tsk->phdr; struct net *net = sock_net(sk); int mtu = tipc_bcast_get_mtu(net); struct sk_buff_head pk...
0
424,914
iwl_trans_pcie_dump_monitor(struct iwl_trans *trans, struct iwl_fw_error_dump_data **data, u32 monitor_len) { u32 len = 0; if (trans->dbg.dest_tlv || (trans->dbg.num_blocks && (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_7000 || trans->trans_cfg->device_family >= IWL_DEVICE_F...
0
473,837
utf32le_mbc_enc_len(const UChar* p ARG_UNUSED, const OnigUChar* e ARG_UNUSED, OnigEncoding enc ARG_UNUSED) { return 4; }
0
498,097
static const char *fmt_date(time_t secs, const char *format, int local_time) { static char buf[64]; struct tm *time; if (!secs) return ""; if (local_time) time = localtime(&secs); else time = gmtime(&secs); strftime(buf, sizeof(buf)-1, format, time); return buf; }
0
274,725
callbacks_change_tool (GtkButton *button, gpointer user_data) { gint toolNumber = GPOINTER_TO_INT (user_data); /* make sure se don't get caught in endless recursion here */ if (screen.win.updatingTools) return; screen.win.updatingTools = TRUE; gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (screen...
0
307,857
void ciEnv::dump_replay_data(int compile_id) { static char buffer[O_BUFLEN]; int ret = jio_snprintf(buffer, O_BUFLEN, "replay_pid%p_compid%d.log", os::current_process_id(), compile_id); if (ret > 0) { int fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666); if (fd != -1) { FILE* replay_data_file = o...
0
361,753
void em28xx_free_device(struct kref *ref) { struct em28xx *dev = kref_to_dev(ref); dev_info(&dev->intf->dev, "Freeing device\n"); if (!dev->disconnected) em28xx_release_resources(dev); if (dev->ts == PRIMARY_TS) kfree(dev->alt_max_pkt_size_isoc); kfree(dev); }
0
344,235
void luaV_concat (lua_State *L, int total) { if (total == 1) return; /* "all" values already concatenated */ do { StkId top = L->top; int n = 2; /* number of elements handled in this pass (at least 2) */ if (!(ttisstring(s2v(top - 2)) || cvt2str(s2v(top - 2))) || !tostring(L, s2v(top - 1))...
0
231,016
const char * pcQueueGetName( QueueHandle_t xQueue ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ { UBaseType_t ux; const char * pcReturn = NULL; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ ...
0
247,090
Bool gf_fs_check_filter_register_cap(const GF_FilterRegister *f_reg, u32 incode, GF_PropertyValue *cap_input, u32 outcode, GF_PropertyValue *cap_output, Bool exact_match_only) { return gf_fs_check_filter_register_cap_ex(f_reg, incode, cap_input, outcode, cap_output, exact_match_only, GF_FALSE); }
0
393,457
static SQInteger base_enabledebuginfo(HSQUIRRELVM v) { SQObjectPtr &o=stack_get(v,2); sq_enabledebuginfo(v,SQVM::IsFalse(o)?SQFalse:SQTrue); return 0; }
0
230,378
PJ_DEF(pj_xml_node*) pj_xml_parse( pj_pool_t *pool, char *msg, pj_size_t len) { pj_xml_node *node = NULL; pj_scanner scanner; PJ_USE_EXCEPTION; if (!msg || !len || !pool) return NULL; pj_scan_init( &scanner, msg, len, PJ_SCAN_AUTOSKIP_WS|PJ_SCAN_AUTOSKIP_NEWLINE, &on_syntax_error); ...
0
502,720
void SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx, int (*cb) (SSL *ssl, unsigned char *cookie, unsigned int cookie_len)) { ctx->app_verify_cookie_cb = cb; }
0
338,192
Index WasmBinaryBuilder::getAbsoluteLocalIndex(Index index) { // Wasm binaries put each let at the bottom of the index space, which may be // good for binary size as often the uses of the let variables are close to // the let itself. However, in Binaryen IR we just have a simple flat index // space of absolute ...
0
395,075
copy_text_attr( int off, char_u *buf, int len, int attr) { int i; mch_memmove(ScreenLines + off, buf, (size_t)len); if (enc_utf8) vim_memset(ScreenLinesUC + off, 0, sizeof(u8char_T) * (size_t)len); for (i = 0; i < len; ++i) ScreenAttrs[off + i] = attr; }
0
451,883
static jpc_enc_prc_t *prc_create(jpc_enc_prc_t *prc, jpc_enc_band_t *band) { uint_fast32_t prcno; uint_fast32_t prcxind; uint_fast32_t prcyind; uint_fast32_t cbgtlx; uint_fast32_t cbgtly; uint_fast32_t tlprctlx; uint_fast32_t tlprctly; uint_fast32_t tlcbgtlx; uint_fast32_t tlcbgtly; uint_fast16_t rlvlno; jpc...
0
486,804
static void gem_write(void *opaque, hwaddr offset, uint64_t val, unsigned size) { CadenceGEMState *s = (CadenceGEMState *)opaque; uint32_t readonly; int i; DB_PRINT("offset: 0x%04x write: 0x%08x ", (unsigned)offset, (unsigned)val); offset >>= 2; /* Squash bits which are read only in wr...
0
376,354
gpg_hash_str (CamelCipherHash hash) { switch (hash) { case CAMEL_CIPHER_HASH_MD2: return "--digest-algo=MD2"; case CAMEL_CIPHER_HASH_MD5: return "--digest-algo=MD5"; case CAMEL_CIPHER_HASH_SHA1: return "--digest-algo=SHA1"; case CAMEL_CIPHER_HASH_SHA256: return "--digest-algo=SHA256"; case CAMEL_CIPHER_HA...
0
344,228
int luaV_tointegerns (const TValue *obj, lua_Integer *p, F2Imod mode) { if (ttisfloat(obj)) return luaV_flttointeger(fltvalue(obj), p, mode); else if (ttisinteger(obj)) { *p = ivalue(obj); return 1; } else return 0; }
0
253,542
smb2_get_srv_inum(const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const char *full_path, u64 *uniqueid, FILE_ALL_INFO *data) { *uniqueid = le64_to_cpu(data->IndexNumber); return 0; }
0
509,544
int ha_maria::rnd_end() { ds_mrr.dsmrr_close(); /* Safe to call even if we don't have started a scan */ maria_scan_end(file); return 0; }
0
459,212
static inline int __tcf_classify(struct sk_buff *skb, const struct tcf_proto *tp, const struct tcf_proto *orig_tp, struct tcf_result *res, bool compat_mode, u32 *last_executed_chain) { #ifdef CONFIG_NET_CLS_ACT const int max_reclassify_loop = 16; const struct tcf_proto *first_tp; int limit =...
0
473,995
big5_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) { return onigenc_mb2_is_code_ctype(enc, code, ctype); }
0
245,718
static int extract_url (const char *url, int default_port, struct request_s *request) { char *p; int port; /* Split the URL on the slash to separate host from path */ p = strchr (url, '/'); if (p != NULL) { int len; len = p...
0
442,795
static void dumpeasycode(struct Configurable *config) { struct curl_slist *ptr = easycode; char *o = config->libcurl; if(o) { FILE *out; bool fopened = FALSE; if(strcmp(o, "-")) { out = fopen(o, "wt"); fopened = TRUE; } else out= stdout; if(!out) warnf(config, "Fai...
0
265,461
static int sqfs_get_metablk_pos(u32 *pos_list, void *table, u32 offset, int metablks_count) { u32 data_size, cur_size = 0; int j, ret = 0; bool comp; if (!metablks_count) return -EINVAL; for (j = 0; j < metablks_count; j++) { ret = sqfs_read_metablock(table, offset + cur_size, &comp, &data_size); ...
0
225,382
static int vidioc_try_fmt_out(struct file *file, void *priv, struct v4l2_format *fmt) { struct v4l2_loopback_device *dev; MARK(); dev = v4l2loopback_getdevice(file); /* TODO(vasaka) loopback does not care about formats writer want to set, * maybe it is a good idea to restrict format somehow */ if (dev...
0
313,787
invoke_edit( cmdarg_T *cap, int repl, // "r" or "gr" command int cmd, int startln) { int restart_edit_save = 0; // Complicated: When the user types "a<C-O>a" we don't want to do Insert // mode recursively. But when doing "a<C-O>." or "a<C-O>rx" we do allow // it. if (repl || !...
0
313,838
nv_screengo(oparg_T *oap, int dir, long dist) { int linelen = linetabsize(ml_get_curline()); int retval = OK; int atend = FALSE; int n; int col_off1; // margin offset for first screen line int col_off2; // margin offset for wrapped screen line int width1; // text width for first scre...
0
462,412
stopWorkerPool(void) { int i; DBGPRINTF("imptcp: stoping worker pool\n"); pthread_mutex_lock(&io_q.mut); pthread_cond_broadcast(&io_q.wakeup_worker); /* awake wrkr if not running */ pthread_mutex_unlock(&io_q.mut); for(i = 0 ; i < runModConf->wrkrMax ; ++i) { pthread_join(wrkrInfo[i].tid, NULL); DBGPRINTF("im...
0
229,346
Status MaybePackInputTensor(EagerOperation* op) { if (op->is_function() || op->EagerContext().RunEagerOpAsFunction()) { // Functions could take packed TensorHandles as inputs. return Status::OK(); } EagerContext& ctx = op->EagerContext(); const absl::InlinedVector<TensorHandle*, 4>* inputs; TF_RETURN_...
0
366,244
static struct mount *mnt_list_next(struct mnt_namespace *ns, struct list_head *p) { struct mount *mnt, *ret = NULL; lock_ns_list(ns); list_for_each_continue(p, &ns->list) { mnt = list_entry(p, typeof(*mnt), mnt_list); if (!mnt_is_cursor(mnt)) { ret = mnt; break; } } unlock_ns_list(ns); return...
0
400,406
ins_ctrl_ey(int tc) { int c = tc; if (ctrl_x_mode_scroll()) { if (c == Ctrl_Y) scrolldown_clamp(); else scrollup_clamp(); redraw_later(UPD_VALID); } else { c = ins_copychar(curwin->w_cursor.lnum + (c == Ctrl_Y ? -1 : 1)); if (c != NUL) { long tw_save; // The chara...
0
349,884
static u32 hw_atl_utils_mif_cmd_get(struct aq_hw_s *self) { return aq_hw_read_reg(self, HW_ATL_MIF_CMD); }
0
512,760
bool Item_func_like::find_selective_predicates_list_processor(void *arg) { find_selective_predicates_list_processor_data *data= (find_selective_predicates_list_processor_data *) arg; if (use_sampling && used_tables() == data->table->map) { THD *thd= data->table->in_use; COND_STATISTIC *stat; Item ...
0
453,005
static int nft_immediate_offload_verdict(struct nft_offload_ctx *ctx, struct nft_flow_rule *flow, const struct nft_immediate_expr *priv) { struct flow_action_entry *entry; const struct nft_data *data; entry = &flow->rule->action.entries[ctx->num_actions++]; data = &priv->data; switch (data->verdict.c...
0
414,931
static xmlChar * xmlXPathParseNameComplex(xmlXPathParserContextPtr ctxt, int qualified) { xmlChar buf[XML_MAX_NAMELEN + 5]; int len = 0, l; int c; /* * Handler for more complex cases */ c = CUR_CHAR(l); if ((c == ' ') || (c == '>') || (c == '/') || /* accelerators */ (c == '[...
0
450,764
reg_match_visual(void) { pos_T top, bot; linenr_T lnum; colnr_T col; win_T *wp = rex.reg_win == NULL ? curwin : rex.reg_win; int mode; colnr_T start, end; colnr_T start2, end2; colnr_T cols; colnr_T curswant; // Check if the buffer is the current buffer. if (rex.reg_buf ...
0
387,647
static int snd_ctl_add_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, enum snd_ctl_add_mode mode) { int err = -EINVAL; if (! kcontrol) return err; if (snd_BUG_ON(!card || !kcontrol->info)) goto error; down_write(&card->controls_rwsem); err = __snd_ctl_add_replace(card, kcon...
0
369,436
static int io_import_fixed(struct io_kiocb *req, int rw, struct iov_iter *iter, unsigned int issue_flags) { struct io_mapped_ubuf *imu = req->imu; u16 index, buf_index = req->buf_index; if (likely(!imu)) { struct io_ring_ctx *ctx = req->ctx; if (unlikely(buf_index >= ctx->nr_user_bufs)) return -EFAULT...
0
512,496
Item_cache_date(THD *thd) :Item_cache_temporal(thd, &type_handler_newdate) { }
0
438,680
static void *get_a_tx_buf(struct virtproc_info *vrp) { unsigned int len; void *ret; /* support multiple concurrent senders */ mutex_lock(&vrp->tx_lock); /* * either pick the next unused tx buffer * (half of our buffers are used for sending messages) */ if (vrp->last_sbuf < vrp->num_bufs / 2) ret = vrp->...
0
316,997
static int selinux_add_opt(int token, const char *s, void **mnt_opts) { struct selinux_mnt_opts *opts = *mnt_opts; if (token == Opt_seclabel) /* eaten and completely ignored */ return 0; if (!opts) { opts = kzalloc(sizeof(struct selinux_mnt_opts), GFP_KERNEL); if (!opts) return -ENOMEM; *mnt_opts = opts...
0
234,254
display_debug_lines_raw (struct dwarf_section * section, unsigned char * data, unsigned char * end, void * file) { unsigned char *start = section->start; int verbose_view = 0; introduce (section, true); while (data < end) { static DWARF2_Internal_LineInf...
0
413,654
static int fcn_list_legacy(RCore *core, RList *fcns) { RListIter *iter; RAnalFunction *fcn; r_list_foreach (fcns, iter, fcn) { fcn_print_legacy (core, fcn); } r_cons_newline (); return 0; }
0
225,595
GF_Err stbl_box_size(GF_Box *s) { u32 pos=0; GF_SampleTableBox *ptr = (GF_SampleTableBox *)s; gf_isom_check_position(s, (GF_Box *)ptr->SampleDescription, &pos); gf_isom_check_position(s, (GF_Box *)ptr->TimeToSample, &pos); gf_isom_check_position(s, (GF_Box *)ptr->CompositionOffset, &pos); gf_isom_check_position(...
0
203,980
static void mkiss_close(struct tty_struct *tty) { struct mkiss *ax; write_lock_irq(&disc_data_lock); ax = tty->disc_data; tty->disc_data = NULL; write_unlock_irq(&disc_data_lock); if (!ax) return; /* * We have now ensured that nobody can start using ap from now on, but * we have to wait for all existing...
1
463,193
void dupentryatt(struct entryattlist **dst, const struct entryattlist *src) { for ( ; src ; src = src->next) { struct attvaluelist *attvalues = NULL; dupattvalues(&attvalues, src->attvalues); appendentryatt(dst, src->entry, attvalues); } }
0
432,240
static MemTxResult subpage_write(struct uc_struct *uc, void *opaque, hwaddr addr, uint64_t value, unsigned len, MemTxAttrs attrs) { subpage_t *subpage = opaque; uint8_t buf[8]; #if defined(DEBUG_SUBPAGE) printf("%s: subpage %p len %u addr " TARGET_FMT_plx " value...
0
421,379
static void pobject(int d, js_Ast *list) { pc('{'); if (list) { nl(); in(d+1); } while (list) { js_Ast *kv = list->a; assert(list->type == AST_LIST); switch (kv->type) { default: break; case EXP_PROP_VAL: pexpi(d+1, COMMA, kv->a); pc(':'); sp(); pexpi(d+1, COMMA, kv->b); break; case EXP_...
0
225,616
GF_Err edts_box_read(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_array_read(s, bs); }
0
512,649
longlong Item_func_case::int_op() { DBUG_ASSERT(fixed == 1); Item *item= find_item(); longlong res; if (!item) { null_value=1; return 0; } res=item->val_int(); null_value=item->null_value; return res; }
0
232,305
GF_Err gf_isom_box_dump(void *ptr, FILE * trace) { GF_Box *a = (GF_Box *) ptr; if (!a) { gf_fprintf(trace, "<!--ERROR: NULL Box Found-->\n"); return GF_OK; } if (!a->registry) { GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[isom] trying to dump box %s not registered\n", gf_4cc_to_str(a->type) )); return GF_IS...
0
234,812
static void check_raid56_incompat_flag(struct btrfs_fs_info *info, u64 type) { if (!(type & BTRFS_BLOCK_GROUP_RAID56_MASK)) return; btrfs_set_fs_incompat(info, RAID56); }
0
226,278
GF_Err nmhd_box_read(GF_Box *s, GF_BitStream *bs) { return GF_OK; }
0
242,956
static int ssl_check_record_type( uint8_t record_type ) { if( record_type != MBEDTLS_SSL_MSG_HANDSHAKE && record_type != MBEDTLS_SSL_MSG_ALERT && record_type != MBEDTLS_SSL_MSG_CHANGE_CIPHER_SPEC && record_type != MBEDTLS_SSL_MSG_APPLICATION_DATA ) { return( MBEDTLS_ERR_SSL_INVAL...
0
247,735
TEST_P(SslSocketTest, RsaPrivateKeyProviderMultiCertSuccess) { const std::string client_ctx_yaml = absl::StrCat(R"EOF( common_tls_context: tls_params: tls_minimum_protocol_version: TLSv1_2 tls_maximum_protocol_version: TLSv1_2 cipher_suites: - ECDHE-ECDSA-AES128-GCM-SHA256 ...
0
230,276
njs_array_iterator_call(njs_vm_t *vm, njs_iterator_args_t *args, const njs_value_t *entry, uint32_t n) { njs_value_t arguments[3]; /* GC: array elt, array */ arguments[0] = *entry; njs_set_number(&arguments[1], n); arguments[2] = *args->value; return njs_function_call(vm, args->function,...
0
244,302
void dOps_box_del(GF_Box *s) { GF_OpusSpecificBox *ptr = (GF_OpusSpecificBox *)s; if (ptr) gf_free(ptr); }
0
512,273
bool agg_arg_charsets_for_comparison(DTCollation &c, Item **items, uint nitems, int item_sep= 1) { return Type_std_attributes:: agg_arg_charsets_for_comparison(c, func_name(), items, nitems, item_sep); }
0
506,442
mech_rpa_auth_continue(struct auth_request *auth_request, const unsigned char *data, size_t data_size) { struct rpa_auth_request *request = (struct rpa_auth_request *)auth_request; switch (request->phase) { case 0: mech_rpa_auth_phase1(auth_request, data, data_size); break; case 1: mech_rpa_auth_p...
0
436,126
static int io_unlinkat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) { struct io_unlink *un = &req->unlink; const char __user *fname; if (unlikely(req->ctx->flags & IORING_SETUP_IOPOLL)) return -EINVAL; if (sqe->ioprio || sqe->off || sqe->len || sqe->buf_index) return -EINVAL; if (unlikely...
0
238,579
static int set_callee_state(struct bpf_verifier_env *env, struct bpf_func_state *caller, struct bpf_func_state *callee, int insn_idx) { int i; /* copy r1 - r5 args that callee can access. The copy includes parent * pointers, which connects us up to the liveness chain */ for (i = BPF_REG_1; i <= B...
0
254,894
DocumentSource::GetNextResult DocumentSourceGroup::getNextStandard() { // Not spilled, and not streaming. if (_groups->empty()) return GetNextResult::makeEOF(); Document out = makeDocument(groupsIterator->first, groupsIterator->second, pExpCtx->needsMerge); if (++groupsIterator == _groups->end...
0
226,032
GF_Err uuid_box_size(GF_Box *s) { GF_UnknownUUIDBox*ptr = (GF_UnknownUUIDBox*)s; ptr->size += ptr->dataSize; return GF_OK; }
0
257,704
static handler_t wstunnel_create_env(gw_handler_ctx *gwhctx) { handler_ctx *hctx = (handler_ctx *)gwhctx; request_st * const r = hctx->gw.r; handler_t rc; if (0 == r->reqbody_length || r->http_version > HTTP_VERSION_1_1) { http_response_upgrade_read_body_unknown(r); chunkqueue_append_chu...
0
225,447
static int vidioc_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub) { switch (sub->type) { case V4L2_EVENT_CTRL: return v4l2_ctrl_subscribe_event(fh, sub); } return -EINVAL; }
0
326,620
archive_write_disk_set_skip_file(struct archive *_a, la_int64_t d, la_int64_t i) { struct archive_write_disk *a = (struct archive_write_disk *)_a; archive_check_magic(&a->archive, ARCHIVE_WRITE_DISK_MAGIC, ARCHIVE_STATE_ANY, "archive_write_disk_set_skip_file"); a->skip_file_set = 1; a->skip_file_dev = d; a->s...
0
393,524
static SQInteger obj_clear(HSQUIRRELVM v) { return SQ_SUCCEEDED(sq_clear(v,-1)) ? 1 : SQ_ERROR; }
0
366,233
int may_umount(struct vfsmount *mnt) { int ret = 1; down_read(&namespace_sem); lock_mount_hash(); if (propagate_mount_busy(real_mount(mnt), 2)) ret = 0; unlock_mount_hash(); up_read(&namespace_sem); return ret; }
0
281,137
static inline struct dst_entry *xfrm_dst_lookup(struct xfrm_state *x, int tos, int oif, xfrm_address_t *prev_saddr, xfrm_address_t *prev_daddr, int family) { struct net *net = xs_net(x); xfrm_address_t *saddr = &x->props.saddr; xfrm_address_t *daddr = &x->id.daddr; struct dst_entry *dst; i...
0
384,878
dos_expandpath( garray_T *gap, char_u *path, int wildoff, int flags, // EW_* flags int didstar) // expanded "**" once already { char_u *buf; char_u *path_end; char_u *p, *s, *e; int start_len = gap->ga_len; char_u *pat; regmatch_T regmatch; int starts_with_dot; ...
0
218,979
Status ConstantFolding::MaterializeReductionIndices( NodeDef* node, const GraphProperties& properties) { if (node->input_size() < 2) { return Status::OK(); } const NodeDef* indices = node_map_->GetNode(node->input(1)); if (!indices || IsReallyConstant(*indices)) { // The reduction indices are alread...
0
241,071
static int _lockfile(int mode, int *fdp, pid_t *locked_by) { struct flock lock; int fd, rv; /* After reboot the directory may not yet exist. * Try to create it, but ignore errors. */ if (strncmp(cl.lockfile, BOOTH_RUN_DIR, strlen(BOOTH_RUN_DIR)) == 0) (void)mkdir(BOOTH_RUN_DIR, 0775); if (locked_by) ...
0
218,988
float QuantizedTypeMaxAsFloat(DataType data_type) { switch (data_type) { case DT_QINT8: return Eigen::NumTraits<qint8>::highest(); case DT_QUINT8: return Eigen::NumTraits<quint8>::highest(); case DT_QINT16: return Eigen::NumTraits<qint16>::highest(); case DT_QUINT16: return Eig...
0
238,397
njs_function_prototype_create(njs_vm_t *vm, njs_object_prop_t *prop, njs_value_t *value, njs_value_t *setval, njs_value_t *retval) { njs_value_t *proto, proto_value, *cons; njs_object_t *prototype; njs_function_t *function; if (setval == NULL) { prototype = njs_object_alloc(vm); ...
0
226,242
GF_Err dimm_box_size(GF_Box *s) { s->size += 8; return GF_OK; }
0
458,988
http_SetH(struct http *to, unsigned n, const char *header) { assert(n < to->nhd); AN(header); to->hd[n].b = TRUST_ME(header); to->hd[n].e = strchr(to->hd[n].b, '\0'); to->hdf[n] = 0; http_VSLH(to, n); if (n == HTTP_HDR_PROTO) http_Proto(to); }
0
336,113
static netdev_tx_t ip6gre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) { struct ip6_tnl *t = netdev_priv(dev); struct net_device_stats *stats = &t->dev->stats; int ret; if (!ip6_tnl_xmit_ctl(t, &t->parms.laddr, &t->parms.raddr)) goto tx_err; switch (skb->protocol) { case htons(ETH_P_IP): ret = ...
0
310,126
usage(void) { static const char *msg[] = { "Usage: dots_xcurses [options]" ,"" ,"Options:" ," -T TERM override $TERM" #if HAVE_USE_DEFAULT_COLORS ," -d invoke use_default_colors()" #endif #if HAVE_USE_ENV ," -e allow environment $LINES / $COLUMNS" #endif ," -m SIZE set margin (default: 2)" ...
0
440,892
FatalError(const char *f, ...) { va_list args; va_list args2; static Bool beenhere = FALSE; if (beenhere) ErrorFSigSafe("\nFatalError re-entered, aborting\n"); else ErrorFSigSafe("\nFatal server error:\n"); va_start(args, f); /* Make a copy for OsVendorFatalError */ va...
0
292,609
size_t puma_parser_execute(puma_parser *parser, const char *buffer, size_t len, size_t off) { const char *p, *pe; int cs = parser->cs; assert(off <= len && "offset past end of buffer"); p = buffer+off; pe = buffer+len; /* assert(*pe == '\0' && "pointer does not end on NUL"); */ assert((size_t) (pe - p...
0
389,687
eval_option( char_u **arg, typval_T *rettv, // when NULL, only check if option exists int evaluate) { char_u *option_end; long numval; char_u *stringval; getoption_T opt_type; int c; int working = (**arg == '+'); // has("+option") int ret = OK; int scope; // Isol...
0
208,522
dnsc_load_local_data(struct dnsc_env* dnscenv, struct config_file *cfg) { size_t i, j; // Insert 'local-zone: "2.dnscrypt-cert.example.com" deny' if(!cfg_str2list_insert(&cfg->local_zones, strdup(dnscenv->provider_name), strdup("deny"))) { log_err...
1
197,305
PJ_DEF(pj_status_t) pjmedia_rtcp_fb_parse_rpsi( const void *buf, pj_size_t length, pjmedia_rtcp_fb_rpsi *rpsi) { pjmedia_rtcp_common *hdr = (pjmedia_rtcp_common*) buf; pj_uint8_t *p; pj_uint8_t padlen; pj_size_t rpsi_len; PJ_ASSERT_RETURN(buf && rpsi, PJ_EINVAL); PJ_ASSERT_RETURN...
1
205,823
ipf_extract_frags_from_batch(struct ipf *ipf, struct dp_packet_batch *pb, ovs_be16 dl_type, uint16_t zone, long long now, uint32_t hash_basis) { const size_t pb_cnt = dp_packet_batch_size(pb); int pb_idx; /* Index in a packet batch. */ struct dp_pack...
1
218,983
Status ConstantFolding::MaterializeOutputValues( NodeDef* node, const GraphProperties& properties) { const std::vector<OpInfo::TensorProperties>& output = properties.GetOutputProperties(node->name()); if (output.size() != 1 || !output[0].has_value() || !IsFoldable(*node, &properties)) { return S...
0
369,257
static int io_issue_sqe(struct io_kiocb *req, unsigned int issue_flags) { const struct cred *creds = NULL; int ret; if (unlikely(!io_assign_file(req, issue_flags))) return -EBADF; if (unlikely((req->flags & REQ_F_CREDS) && req->creds != current_cred())) creds = override_creds(req->creds); if (!io_op_defs[r...
0
210,203
static void *seq_buf_alloc(unsigned long size) { return kvmalloc(size, GFP_KERNEL_ACCOUNT); }
1
508,334
void Locked_tables_list::mark_table_for_reopen(THD *thd, TABLE *table) { TABLE_SHARE *share= table->s; for (TABLE_LIST *table_list= m_locked_tables; table_list; table_list= table_list->next_global) { if (table_list->table->s == share) table_list->table->internal_set_needs_reopen(true); } /...
0
400,107
UserTerminalRouter::UserTerminalRouter( shared_ptr<PipeSocketHandler> _socketHandler, const SocketEndpoint &_routerEndpoint) : socketHandler(_socketHandler) { serverFd = *(socketHandler->listen(_routerEndpoint).begin()); FATAL_FAIL(::chown(_routerEndpoint.name().c_str(), getuid(), getgid())); FATAL_FA...
0
230,310
njs_array_prototype_iterator_obj(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t kind) { njs_int_t ret; njs_value_t *this; this = njs_argument(args, 0); ret = njs_value_to_object(vm, this); if (njs_slow_path(ret != NJS_OK)) { return ret; } return njs_array_i...
0
242,117
int LuaSettings::l_get_flags(lua_State *L) { NO_MAP_LOCK_REQUIRED; LuaSettings *o = checkobject(L, 1); std::string key = std::string(luaL_checkstring(L, 2)); u32 flags = 0; auto flagdesc = o->m_settings->getFlagDescFallback(key); if (o->m_settings->getFlagStrNoEx(key, flags, flagdesc)) { lua_newtable(L); int...
0
310,077
same_ti_tc(const char *ti, const char *tc, bool * embedded) { bool same = TRUE; double ti_delay = 0.0; double tc_delay = 0.0; const char *ti_last; *embedded = FALSE; ti_last = parse_ti_delay(ti, &ti_delay); tc = parse_tc_delay(tc, &tc_delay); while ((ti < ti_last) && *tc) { if (*ti ==...
0
361,289
stl_load_edge_exact(stl_file *stl, stl_hash_edge *edge, stl_vertex *a, stl_vertex *b) { float diff_x; float diff_y; float diff_z; float max_diff; if (stl->error) return; diff_x = ABS(a->x - b->x); diff_y = ABS(a->y - b->y); diff_z = ABS(a->z - b->z); max_diff = STL_MAX(diff_x, d...
0