idx
int64
func
string
target
int64
307,863
ciInstance* ciEnv::ClassCastException_instance() { if (_ClassCastException_instance == NULL) { _ClassCastException_instance = get_or_create_exception(_ClassCastException_handle, vmSymbols::java_lang_ClassCastException()); } return _ClassCastException_instance; }
0
359,664
DEFUN (no_neighbor_route_map, no_neighbor_route_map_cmd, NO_NEIGHBOR_CMD2 "route-map WORD (in|out|import|export)", NO_STR NEIGHBOR_STR NEIGHBOR_ADDR_STR2 "Apply route map to neighbor\n" "Name of route map\n" "Apply map to incoming routes\n" "Apply map to ou...
0
344,747
monotime_ts(struct timespec *ts) { struct timeval tv; #if defined(HAVE_CLOCK_GETTIME) && (defined(CLOCK_BOOTTIME) || \ defined(CLOCK_MONOTONIC) || defined(CLOCK_REALTIME)) static int gettime_failed = 0; if (!gettime_failed) { # ifdef CLOCK_BOOTTIME if (clock_gettime(CLOCK_BOOTTIME, ts) == 0) return; # endi...
0
488,431
static int fallback_migrate_page(struct address_space *mapping, struct page *newpage, struct page *page) { if (PageDirty(page)) return writeout(mapping, page); /* * Buffers may be managed in a filesystem specific way. * We must have no buffers or drop them. */ if (PagePrivate(page) && !try_to_release_...
0
285,147
static void __free_resource_entry(void *entry) { r_ne_resource_entry *en = (r_ne_resource_entry *)entry; free (en->name); free (en); }
0
211,842
change_indent( int type, int amount, int round, int replaced, // replaced character, put on replace stack int call_changed_bytes) // call changed_bytes() { int vcol; int last_vcol; int insstart_less; // reduction for Insstart.col int new_cursor_col; int i; char_u *...
1
220,221
AttrValue* Node::AddAttrHelper(const std::string& name) { MaybeCopyOnWrite(); return &((*props_->node_def.mutable_attr())[name]); }
0
336,598
static void reds_cleanup_net(SpiceServer *reds) { if (reds->listen_socket != -1) { red_watch_remove(reds->listen_watch); if (reds->config->spice_listen_socket_fd != reds->listen_socket) { socket_close(reds->listen_socket); } reds->listen_watch = NULL; reds->listen_socket...
0
197,242
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { const auto* params = reinterpret_cast<TfLiteSVDFParams*>(node->builtin_data); OpData* op_data = reinterpret_cast<OpData*>(node->user_data); int scratch_tensor_index = op_data->scratch_tensor_index; // Check we have all the inputs and outputs we n...
1
451,884
static int jpc_enc_encodemainbody(jpc_enc_t *enc) { int tileno; jpc_sot_t *sot; jpc_enc_tcmpt_t *comp; jpc_enc_tcmpt_t *endcomps; jpc_enc_band_t *band; jpc_enc_band_t *endbands; jpc_enc_rlvl_t *lvl; unsigned rlvlno; jpc_qcc_t *qcc; jpc_cod_t *cod; int adjust; int absbandno; long tilehdrlen; long tilelen; ...
0
257,003
static void route4_delete_filter_work(struct work_struct *work) { struct route4_filter *f = container_of(to_rcu_work(work), struct route4_filter, rwork); rtnl_lock(); __route4_delete_filter(f); rtnl_unlock(); }
0
244,112
GF_Err jp2h_box_read(GF_Box *s,GF_BitStream *bs) { return gf_isom_box_array_read(s, bs); }
0
436,056
static int __io_uring_add_tctx_node(struct io_ring_ctx *ctx) { struct io_uring_task *tctx = current->io_uring; struct io_tctx_node *node; int ret; if (unlikely(!tctx)) { ret = io_uring_alloc_task_context(current, ctx); if (unlikely(ret)) return ret; tctx = current->io_uring; } if (!xa_load(&tctx->xa, (...
0
253,529
smb2_get_credits_field(struct TCP_Server_Info *server, const int optype) { switch (optype) { case CIFS_ECHO_OP: return &server->echo_credits; case CIFS_OBREAK_OP: return &server->oplock_credits; default: return &server->credits; } }
0
338,220
Type WasmBinaryBuilder::getType() { return getType(getS32LEB()); }
0
383,378
int gdImageNegate(gdImagePtr src) { int x, y; int r,g,b,a; int new_pxl, pxl; typedef int (*FuncPtr)(gdImagePtr, int, int); FuncPtr f; if (src==NULL) { return 0; } f = GET_PIXEL_FUNCTION(src); for (y=0; y<src->sy; ++y) { for (x=0; x<src->sx; ++x) { pxl = f (src, x, y); r = gdImageRed(src, pxl);...
0
512,503
Tmp_field_src() :m_field(0), m_default_field(0), m_item_result_field(0) { }
0
225,056
PQsocket(const PGconn *conn) { if (!conn) return -1; return (conn->sock != PGINVALID_SOCKET) ? conn->sock : -1; }
0
513,030
Item_args(THD *thd, Item *a, Item *b, Item *c, Item *d, Item* e) { arg_count= 5; if (likely((args= (Item**) thd_alloc(thd, sizeof(Item*) * 5)))) { arg_count= 5; args[0]= a; args[1]= b; args[2]= c; args[3]= d; args[4]= e; } }
0
339,711
(Bigint *a, int *e) #endif { ULong *xa, *xa0, w, y, z; int k; _double d; #ifdef VAX ULong d0, d1; #else #define d0 word0(d) #define d1 word1(d) #endif xa0 = a->x; xa = xa0 + a->wds; y = *--xa; #ifdef DEBUG if (!y) Bug("zero y in b2d"); #endif k = hi0bits(y); *e = 32 - k; #ifdef Pack_32 if (k < Ebits) { d0...
0
232,355
GF_Err GetMediaTime(GF_TrackBox *trak, Bool force_non_empty, u64 movieTime, u64 *MediaTime, s64 *SegmentStartTime, s64 *MediaOffset, u8 *useEdit, u64 *next_edit_start_plus_one) { #if 0 GF_Err e; u32 sampleNumber, prevSampleNumber; u64 firstDTS; #endif u32 i, count; Bool last_is_empty = 0; u64 time, lastSampleTime...
0
312,424
qf_get_nth_valid_entry(qf_list_T *qfl, int n, int fdo) { qfline_T *qfp; int i, eidx; int prev_fnum = 0; // check if the list has valid errors if (!qf_list_has_valid_entries(qfl)) return 1; eidx = 0; FOR_ALL_QFL_ITEMS(qfl, qfp, i) { if (qfp->qf_valid) { if (fdo) { if (q...
0
216,812
int setup_tests(void) { ADD_ALL_TESTS(call_run_cert, OSSL_NELEM(name_fns)); return 1; }
1
346,435
script_autoload( char_u *name, int reload) // load script again when already loaded { char_u *p; char_u *scriptname, *tofree; int ret = FALSE; int i; int ret_sid; // If the name starts with "<SNR>123_" then "123" is the script ID. if (name[0] == K_SPECIAL && name[1] == KS_EX...
0
442,818
output_expected(const char* url, const char* uploadfile) { if(!uploadfile) return TRUE; /* download */ if(checkprefix("http://", url) || checkprefix("https://", url)) return TRUE; /* HTTP(S) upload */ return FALSE; /* non-HTTP upload, probably no output should be expected */ }
0
512,623
Item *grouping_field_transformer_for_where(THD *thd, uchar *arg) { return convert_to_basic_const_item(thd); }
0
292,244
find_unused_session (server *serv) { session *sess; GSList *list = sess_list; while (list) { sess = (session *) list->data; if (sess->type == SESS_CHANNEL && sess->channel[0] == 0 && sess->server == serv) { if (sess->waitchannel[0] == 0) return sess; } list = list->next; } return NULL; }
0
255,030
static int adts_write_header(AVFormatContext *s) { ADTSContext *adts = s->priv_data; if (adts->id3v2tag) ff_id3v2_write_simple(s, 4, ID3v2_DEFAULT_MAGIC); return 0; }
0
207,071
DeepTiledInputFile::initialize () { if (_data->partNumber == -1) if (_data->header.type() != DEEPTILE) throw IEX_NAMESPACE::ArgExc ("Expected a deep tiled file but the file is not deep tiled."); if(_data->header.version()!=1) { THROW(IEX_NAMESPACE::ArgExc, "Version " << _data->heade...
1
270,397
static bool ok_inflater_compressed_block(ok_inflater *inflater) { const bool is_fixed = inflater->state == OK_INFLATER_STATE_READING_FIXED_COMPRESSED_BLOCK; const ok_inflater_huffman_tree *literal_tree = (is_fixed ? inflater->fixed_literal_huffman : inflater->literal_huffman); const ok_inflater_huff...
0
508,785
int rr_sequential(READ_RECORD *info) { int tmp; while ((tmp= info->table->file->ha_rnd_next(info->record))) { /* rnd_next can return RECORD_DELETED for MyISAM when one thread is reading and another deleting without locks. */ if (info->thd->killed || (tmp != HA_ERR_RECORD_DELETED)) { ...
0
263,501
static void sco_conn_del(struct hci_conn *hcon, int err) { struct sco_conn *conn = hcon->sco_data; struct sock *sk; if (!conn) return; BT_DBG("hcon %p conn %p, err %d", hcon, conn, err); /* Kill socket */ sco_conn_lock(conn); sk = conn->sk; sco_conn_unlock(conn); if (sk) { sock_hold(sk); lock_sock(sk...
0
220,454
static bool Run(OpKernelContext* ctx, const Tensor& input, const Tensor& filter, int batch, int input_rows, int input_cols, int in_depth, int filter_rows, int filter_cols, int pad_rows, int pad_cols, int out_rows, int /*out_cols*/, int /*out_dept...
0
310,313
dirserv_router_get_status(const routerinfo_t *router, const char **msg) { char d[DIGEST_LEN]; if (crypto_pk_get_digest(router->identity_pkey, d)) { log_warn(LD_BUG,"Error computing fingerprint"); if (msg) *msg = "Bug: Error computing fingerprint"; return FP_REJECT; } return dirserv_get_statu...
0
513,014
Item *remove_item_direct_ref() { return (*ref)->remove_item_direct_ref(); }
0
488,399
copy_one_pte(struct mm_struct *dst_mm, struct mm_struct *src_mm, pte_t *dst_pte, pte_t *src_pte, struct vm_area_struct *vma, unsigned long addr, int *rss) { unsigned long vm_flags = vma->vm_flags; pte_t pte = *src_pte; struct page *page; /* pte contains position in swap or file, so copy. */ if (unlikely(!pte_...
0
309,982
main(void) { printf("This program requires the wide-ncurses library\n"); ExitProgram(EXIT_FAILURE); }
0
253,610
fill_transform_hdr(struct smb2_transform_hdr *tr_hdr, unsigned int orig_len, struct smb_rqst *old_rq, __le16 cipher_type) { struct smb2_hdr *shdr = (struct smb2_hdr *)old_rq->rq_iov[0].iov_base; memset(tr_hdr, 0, sizeof(struct smb2_transform_hdr)); tr_hdr->ProtocolId = SMB2_TRANSFORM_PROTO_NUM; tr_hdr->Ori...
0
522,335
static int64_t GetFilSiz(GmfMshSct *msh) { int64_t CurPos, EndPos = 0; if(msh->typ & Bin) { #ifdef WITH_GMF_AIO CurPos = lseek(msh->FilDes, 0, 1); EndPos = lseek(msh->FilDes, 0, 2); lseek(msh->FilDes, (off_t)CurPos, 0); #else CurPos = MYFTELL(msh->hdl); if(MYFSEEK(msh->hdl, 0, S...
0
233,870
*/ static void php_wddx_serialize_unset(wddx_packet *packet) { php_wddx_add_chunk_static(packet, WDDX_NULL);
0
223,412
static void set_private_data_ptrs(compiler_common *common, int *private_data_start, PCRE2_SPTR ccend) { PCRE2_SPTR cc = common->start; PCRE2_SPTR alternative; PCRE2_SPTR end = NULL; int private_data_ptr = *private_data_start; int space, size, bracketlen; BOOL repeat_check = TRUE; while (cc < ccend) { space = 0; ...
0
313,814
nv_hat(cmdarg_T *cap) { if (!checkclearopq(cap->oap)) (void)buflist_getfile((int)cap->count0, (linenr_T)0, GETF_SETMARK|GETF_ALT, FALSE); }
0
261,218
int wm_SemInit(wm_Sem *s){ /* dispatch_release() fails hard, with Trace/BPT trap signal, if the * sem's internal count is less than the value passed in with * dispatch_semaphore_create(). work around this by initing * with 0, then incrementing it afterwards. */ *...
0
224,184
void Compute(OpKernelContext* ctx) override { StagingMap<Ordered>* map = nullptr; OP_REQUIRES_OK(ctx, GetStagingMap(ctx, def(), &map)); core::ScopedUnref scope(map); // Allocate size output tensor Tensor* size = nullptr; OP_REQUIRES_OK(ctx, ctx->allocate_output(0, TensorShape({}), &size)); ...
0
276,989
virtual AP4_Result ReadPartial(void* , AP4_Size, AP4_Size&) { return AP4_ERROR_NOT_SUPPORTED; }
0
222,884
std::size_t operator()(const Handle& h) const { return h.Handle(); }
0
254,897
intrusive_ptr<Expression> parseIdExpression(const intrusive_ptr<ExpressionContext>& expCtx, BSONElement groupField, const VariablesParseState& vps) { if (groupField.type() == Object) { // {_id: {}} is treated as grouping...
0
226,325
GF_Err trun_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i; GF_TrackFragmentRunBox *ptr = (GF_TrackFragmentRunBox *) s; if (!s) return GF_BAD_PARAM; #ifdef GF_ENABLE_CTRN if (ptr->use_ctrn) return ctrn_box_write(s, bs); #endif e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_u32(b...
0
249,979
static GF_Err WriteMoovAndMeta(GF_ISOFile *movie, GF_List *writers, GF_BitStream *bs) { u32 i; TrackWriter *writer; GF_Err e; GF_Box *stco; GF_SampleToChunkBox *stsc; if (movie->meta) { //write the moov box... e = gf_isom_box_size((GF_Box *)movie->meta); if (e) return e; e = gf_isom_box_write((GF_Box *)m...
0
415,206
cmd_getinfo (assuan_context_t ctx, char *line) { int rc = 0; if (!strcmp (line, "version")) { const char *s = VERSION; rc = assuan_send_data (ctx, s, strlen (s)); } else if (!strcmp (line, "pid")) { char numbuf[50]; snprintf (numbuf, sizeof numbuf, "%lu", (unsigned long)getpi...
0
274,712
check_align_files_possibility (gerbv_selection_info_t *sel_info) { gerbv_fileinfo_t **f = mainProject->file; GtkMenuItem **menu_items = (GtkMenuItem **) screen.win.curEditAlingItem; gerbv_selection_item_t si[2]; int id[2] = {-1, -1}; int i; /* If has two objects, then can do files aligning */ if (selection_leng...
0
289,248
static int __init alsa_pcm_oss_init(void) { int i; int err; /* check device map table */ for (i = 0; i < SNDRV_CARDS; i++) { if (dsp_map[i] < 0 || dsp_map[i] >= SNDRV_PCM_DEVICES) { pr_err("ALSA: pcm_oss: invalid dsp_map[%d] = %d\n", i, dsp_map[i]); dsp_map[i] = 0; } if (adsp_map[i] < 0 || adsp_...
0
243,004
int mbedtls_ssl_parse_change_cipher_spec( mbedtls_ssl_context *ssl ) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> parse change cipher spec" ) ); if( ( ret = mbedtls_ssl_read_record( ssl, 1 ) ) != 0 ) { MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ssl_read_record", r...
0
219,022
void ConstantFolding::ReplaceDivisionOfOnesByReciprocal(NodeDef* node, GraphDef* graph) { node->set_op("Reciprocal"); node->mutable_input()->SwapElements(0, 1); const string ctrl_dep = AddControlDependency(node->input(1), graph, node_map_.get()); nod...
0
273,879
static int close_data_connection(ctrl_t *ctrl) { int ret = 0; DBG("Closing data connection ..."); /* PASV server listening socket */ if (ctrl->data_listen_sd > 0) { shutdown(ctrl->data_listen_sd, SHUT_RDWR); close(ctrl->data_listen_sd); ctrl->data_listen_sd = -1; ret++; } /* PASV client socket */ if (...
0
289,295
static int snd_interval_refine_min(struct snd_interval *i, unsigned int min, int openmin) { int changed = 0; if (i->min < min) { i->min = min; i->openmin = openmin; changed = 1; } else if (i->min == min && !i->openmin && openmin) { i->openmin = 1; changed = 1; } if (i->integer) { if (i->openmin) { i...
0
344,809
get_rdomain(int fd) { #if defined(HAVE_SYS_GET_RDOMAIN) return sys_get_rdomain(fd); #elif defined(__OpenBSD__) int rtable; char *ret; socklen_t len = sizeof(rtable); if (getsockopt(fd, SOL_SOCKET, SO_RTABLE, &rtable, &len) == -1) { error("Failed to get routing domain for fd %d: %s", fd, strerror(errno)); ...
0
225,724
GF_Err stsz_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i; GF_SampleSizeBox *ptr = (GF_SampleSizeBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; //in both versions this is still valid if (ptr->type == GF_ISOM_BOX_TYPE_STSZ) { gf_bs_write_u32(bs, ptr->sampleSize); } else { gf_bs_writ...
0
409,449
scroll_region_reset(void) { OUT_STR(tgoto((char *)T_CS, (int)Rows - 1, 0)); if (*T_CSV != NUL) OUT_STR(tgoto((char *)T_CSV, (int)Columns - 1, 0)); screen_start(); // don't know where cursor is now }
0
509,501
bool ha_maria::auto_repair(int error) const { /* Always auto-repair moved tables (error == HA_ERR_OLD_FILE) */ return ((MY_TEST(maria_recover_options & HA_RECOVER_ANY) && error == HA_ERR_CRASHED_ON_USAGE) || error == HA_ERR_OLD_FILE); }
0
424,950
void iwl_trans_pcie_dump_regs(struct iwl_trans *trans) { #define PCI_DUMP_SIZE 352 #define PCI_MEM_DUMP_SIZE 64 #define PCI_PARENT_DUMP_SIZE 524 #define PREFIX_LEN 32 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); struct pci_dev *pdev = trans_pcie->pci_dev; u32 i, pos, alloc_size, *ptr, *buf;...
0
336,807
lprn_is_black(gx_device_printer * pdev, int r, int h, int bx) { gx_device_lprn *const lprn = (gx_device_lprn *) pdev; int bh = lprn->nBh; int bpl = gdev_mem_bytes_per_scan_line(pdev); int x, y, y0; byte *p; int maxY = lprn->BlockLine / lprn->nBh * lprn->nBh; y0 = (r + h - bh) % maxY; f...
0
513,071
bool Arg_comparator::set_cmp_func_int() { THD *thd= current_thd; func= is_owner_equal_func() ? &Arg_comparator::compare_e_int : &Arg_comparator::compare_int_signed; if ((*a)->field_type() == MYSQL_TYPE_YEAR && (*b)->field_type() == MYSQL_TYPE_YEAR) { func= is_owner_equa...
0
522,336
char *GmfReadByteFlow(int64_t MshIdx, int *NmbByt) { int cod, *WrdTab; size_t i, NmbWrd; GmfMshSct *msh = (GmfMshSct *)MshIdx; // Read and allocate the number of 4-byte words in the byteflow if(!(NmbWrd = GmfStatKwd(MshIdx, GmfByteFlow))) return(NULL); if(!(WrdTab = malloc(NmbWr...
0
245,146
Status ModelWeights::Initialize(OpKernelContext* const context) { OpInputList sparse_indices_inputs; TF_RETURN_IF_ERROR( context->input_list("sparse_indices", &sparse_indices_inputs)); OpInputList sparse_weights_inputs; TF_RETURN_IF_ERROR( context->input_list("sparse_weights", &sparse_weights_inputs...
0
301,414
static int vfswrap_lchown(vfs_handle_struct *handle, const char *path, uid_t uid, gid_t gid) { int result; START_PROFILE(syscall_lchown); result = lchown(path, uid, gid); END_PROFILE(syscall_lchown); return result; }
0
383,947
cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info, size_t count, const uint64_t clsid[2]) { size_t i; cdf_timestamp_t tp; struct timespec ts; char buf[64]; const char *str = NULL; const char *s; int len; if (!NOTMIME(ms)) ...
0
95,909
void AppendUninstallCommandLineFlags(const InstallerState& installer_state, const Product& product, CommandLine* uninstall_cmd) { DCHECK(uninstall_cmd); uninstall_cmd->AppendSwitch(installer::switches::kUninstall); product.AppendUninstall...
0
317,348
static int selinux_task_getioprio(struct task_struct *p) { return avc_has_perm(&selinux_state, current_sid(), task_sid_obj(p), SECCLASS_PROCESS, PROCESS__GETSCHED, NULL); }
0
197,499
GF_Err BD_DecMFFieldVec(GF_BifsDecoder * codec, GF_BitStream *bs, GF_Node *node, GF_FieldInfo *field, Bool is_mem_com) { GF_Err e; u32 NbBits, nbFields; u32 i; GF_ChildNodeItem *last; u8 qp_local, qp_on, initial_qp; GF_FieldInfo sffield; memset(&sffield, 0, sizeof(GF_FieldInfo)); sffield.fieldIndex = field->fi...
1
307,846
ciKlass* ciEnv::get_klass_by_index(constantPoolHandle cpool, int index, bool& is_accessible, ciInstanceKlass* accessor) { GUARDED_VM_ENTRY(return get_klass_by_index_impl(cpool, index, is_accessible, accessor);) }
0
379,703
R_API void r_anal_function_vars_cache_fini(RAnalFcnVarsCache *cache) { if (!cache) { return; } r_list_free (cache->bvars); r_list_free (cache->rvars); r_list_free (cache->svars); }
0
459,010
http_findhdr(const struct http *hp, unsigned l, const char *hdr) { unsigned u; for (u = HTTP_HDR_FIRST; u < hp->nhd; u++) { Tcheck(hp->hd[u]); if (hp->hd[u].e < hp->hd[u].b + l + 1) continue; if (hp->hd[u].b[l] != ':') continue; if (!http_hdr_at(hdr, hp->hd[u].b, l)) continue; return (u); } retu...
0
247,355
pgpArmor pgpReadPkts(const char * fn, uint8_t ** pkt, size_t * pktlen) { uint8_t * b = NULL; ssize_t blen; pgpArmor ec = PGPARMOR_ERR_NO_BEGIN_PGP; /* XXX assume failure */ int rc = rpmioSlurp(fn, &b, &blen); if (rc == 0 && b != NULL && blen > 0) { ec = decodePkts(b, pkt, pktlen); } free(b)...
0
317,042
static int selinux_mmap_file(struct file *file, unsigned long reqprot, unsigned long prot, unsigned long flags) { struct common_audit_data ad; int rc; if (file) { ad.type = LSM_AUDIT_DATA_FILE; ad.u.file = file; rc = inode_has_perm(current_cred(), file_inode(file), FILE__MAP, &ad); if (rc) ...
0
230,381
PJ_DEF(pj_xml_node*) pj_xml_clone( pj_pool_t *pool, const pj_xml_node *rhs) { pj_xml_node *node; const pj_xml_attr *r_attr; const pj_xml_node *child; node = alloc_node(pool); pj_strdup(pool, &node->name, &rhs->name); pj_strdup(pool, &node->content, &rhs->content); /* Clone all attributes ...
0
359,665
DEFUN (show_ip_bgp_community_info, show_ip_bgp_community_info_cmd, "show ip bgp community-info", SHOW_STR IP_STR BGP_STR "List all bgp community information\n") { vty_out (vty, "Address Refcnt Community%s", VTY_NEWLINE); hash_iterate (community_hash (), (void (*) (stru...
0
238,632
void bpf_free_kfunc_btf_tab(struct bpf_kfunc_btf_tab *tab) { if (!tab) return; while (tab->nr_descs--) { module_put(tab->descs[tab->nr_descs].module); btf_put(tab->descs[tab->nr_descs].btf); } kfree(tab); }
0
513,345
static void clear_tables(JOIN *join) { /* must clear only the non-const tables, as const tables are not re-calculated. */ for (uint i= 0 ; i < join->table_count ; i++) { if (!(join->table[i]->map & join->const_table_map)) mark_as_null_row(join->table[i]); // All fields are NULL } }
0
386,530
void DL_Dxf::writeKnot(DL_WriterA& dw, const DL_KnotData& data) { dw.dxfReal(40, data.k); }
0
488,354
static void remove_anon_migration_ptes(struct page *old, struct page *new) { struct anon_vma *anon_vma; struct vm_area_struct *vma; unsigned long mapping; mapping = (unsigned long)new->mapping; if (!mapping || (mapping & PAGE_MAPPING_ANON) == 0) return; /* * We hold the mmap_sem lock. So no need to call pa...
0
225,938
GF_Box *tfhd_box_new() { ISOM_DECL_BOX_ALLOC(GF_TrackFragmentHeaderBox, GF_ISOM_BOX_TYPE_TFHD); //NO FLAGS SET BY DEFAULT return (GF_Box *)tmp; }
0
331,763
void QPaintEngineEx::drawLines(const QLineF *lines, int lineCount) { int elementCount = lineCount << 1; while (elementCount > 0) { int count = qMin(elementCount, 32); QVectorPath path((const qreal *) lines, count, qpaintengineex_line_types_16, QVectorPath::LinesHint); ...
0
294,604
d_complex_new_internal(VALUE klass, VALUE nth, int jd, int df, VALUE sf, int of, double sg, int y, int m, int d, int h, int min, int s, unsigned flags) { struct ComplexDateData *dat; VALUE obj; obj = TypedData_Make_Struct(klass, struct ComplexDateData, ...
0
274,767
static int ntfs_attr_fill_hole(ntfs_attr *na, s64 count, s64 *ofs, runlist_element **rl, VCN *update_from) { s64 to_write; s64 need; ntfs_volume *vol = na->ni->vol; int eo, ret = -1; runlist *rlc; LCN lcn_seek_from = -1; VCN cur_vcn, from_vcn; if (na->ni->mft_no == FILE_Bitmap) { /* * Filling a...
0
446,079
static void atusb_xmit_complete(struct urb *urb) { dev_dbg(&urb->dev->dev, "atusb_xmit urb completed"); }
0
309,850
compare_part(const char *part, const char *full) { const char *next_part; const char *next_full; unsigned used_full = 0; unsigned used_delay = 0; while (*part != 0) { if (*part != *full) { used_full = 0; break; } /* * Adjust the return-value to allow the rare case of * string...
0
387,803
void InstanceKlass::collect_statistics(KlassSizeStats *sz) const { Klass::collect_statistics(sz); sz->_inst_size = wordSize * size_helper(); sz->_vtab_bytes = wordSize * vtable_length(); sz->_itab_bytes = wordSize * itable_length(); sz->_nonstatic_oopmap_bytes = wordSize * nonstatic_oop_map_size(); int n...
0
235,655
static void copy_rr(pj_pool_t *pool, pj_dns_parsed_rr *dst, const pj_dns_parsed_rr *src, unsigned *nametable_count, pj_str_t nametable[]) { pj_memcpy(dst, src, sizeof(*src)); apply_name_table(nametable_count, nametable, &src->name, pool, &dst->name); if (src->data) { dst->data = pj_pool_...
0
338,235
void WasmBinaryBuilder::visitBlock(Block* curr) { BYN_TRACE("zz node: Block\n"); startControlFlow(curr); // special-case Block and de-recurse nested blocks in their first position, as // that is a common pattern that can be very highly nested. std::vector<Block*> stack; while (1) { curr->type = getType(...
0
442,817
static void free_config_fields(struct Configurable *config) { if(config->random_file) free(config->random_file); if(config->egd_file) free(config->egd_file); if(config->trace_dump) free(config->trace_dump); if(config->cipher_list) free(config->cipher_list); if(config->userpwd) free(config-...
0
484,044
START_TEST(SecureChannel_sendAsymmetricOPNMessage_withoutConnection) { UA_OpenSecureChannelResponse dummyResponse; createDummyResponse(&dummyResponse); testChannel.securityMode = UA_MESSAGESECURITYMODE_NONE; // Remove connection to provoke error UA_Connection_detachSecureChannel(testChannel.connect...
0
293,778
static void symbols_from_stubs(RList *ret, HtPP *kernel_syms_by_addr, RKernelCacheObj *obj, RBinFile *bf, RKext *kext, int ordinal) { RStubsInfo *stubs_info = get_stubs_info(kext->mach0, kext->range.offset, obj); if (!stubs_info) { return; } ut64 stubs_cursor = stubs_info->stubs.offset; ut64 stubs_end = stubs_cu...
0
294,573
test_civil(int from, int to, double sg) { int j; fprintf(stderr, "test_civil: %d...%d (%d) - %.0f\n", from, to, to - from, sg); for (j = from; j <= to; j++) { int y, m, d, rj, ns; c_jd_to_civil(j, sg, &y, &m, &d); c_civil_to_jd(y, m, d, sg, &rj, &ns); if (j != rj) { fprintf(stderr, "%d != %d...
0
317,135
static void smack_cred_transfer(struct cred *new, const struct cred *old) { struct task_smack *old_tsp = smack_cred(old); struct task_smack *new_tsp = smack_cred(new); new_tsp->smk_task = old_tsp->smk_task; new_tsp->smk_forked = old_tsp->smk_task; mutex_init(&new_tsp->smk_rules_lock); INIT_LIST_HEAD(&new_tsp->sm...
0
400,731
size_t csum_and_copy_from_iter(void *addr, size_t bytes, __wsum *csum, struct iov_iter *i) { __wsum sum, next; sum = *csum; if (unlikely(iov_iter_is_pipe(i) || iov_iter_is_discard(i))) { WARN_ON(1); return 0; } iterate_and_advance(i, bytes, base, len, off, ({ next = csum_and_copy_from_user(base, ad...
0
474,049
murmur(st_index_t h, st_index_t k, int r) { const st_index_t m = MurmurMagic; #if MURMUR == 1 h += k; h *= m; h ^= h >> r; #elif MURMUR == 2 k *= m; k ^= k >> r; k *= m; h *= m; h ^= k; #endif return h; }
0
194,963
static MagickBooleanType GetEXIFProperty(const Image *image, const char *property) { #define MaxDirectoryStack 16 #define EXIF_DELIMITER "\n" #define EXIF_NUM_FORMATS 12 #define EXIF_FMT_BYTE 1 #define EXIF_FMT_STRING 2 #define EXIF_FMT_USHORT 3 #define EXIF_FMT_ULONG 4 #define EXIF_FMT_URATIONAL 5 #define EX...
1
314,510
static void parse_connection_info(pj_scanner *scanner, pjmedia_sdp_conn *conn, volatile parse_context *ctx) { ctx->last_error = PJMEDIA_SDP_EINCONN; /* c= */ pj_scan_advance_n(scanner, 2, SKIP_WS); /* network-type */ pj_scan_get_until_ch(scanner, ' ', &conn->net_type); pj_scan_get_char(s...
0
217,176
static void do_viewlog(HttpRequest req, HttpResponse res) { if (is_readonly(req)) { send_error(req, res, SC_FORBIDDEN, "You do not have sufficient privileges to access this page"); return; } do_head(res, "_viewlog", "View log", 100); if ((Run.flags & Run_L...
1