idx
int64
func
string
target
int64
398,534
RZ_API void rz_bin_dwarf_line_header_free_file_cache(const RzBinDwarfLineHeader *hdr, RzBinDwarfLineFileCache fnc) { if (!fnc) { return; } for (size_t i = 0; i < hdr->file_names_count; i++) { free(fnc[i]); } free(fnc); }
0
291,793
int rtrs_clt_reconnect_from_sysfs(struct rtrs_clt_path *clt_path) { enum rtrs_clt_state old_state; int err = -EBUSY; bool changed; changed = rtrs_clt_change_state_get_old(clt_path, RTRS_CLT_RECONNECTING, &old_state); if (changed) { clt_path->reconnect_attempts = 0; queue_delayed_work(rtrs_wq, &c...
0
512,481
longlong Item_func_bit_and::val_int() { DBUG_ASSERT(fixed == 1); ulonglong arg1= (ulonglong) args[0]->val_int(); if (args[0]->null_value) { null_value=1; /* purecov: inspected */ return 0; /* purecov: inspected */ } ulonglong arg2= (ulonglong) args[1]->val_int(); if (args[1]->null_value) { n...
0
404,713
SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) { return ksys_dup3(oldfd, newfd, flags); }
0
196,726
njs_array_prototype_sort(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { int64_t i, und, len, nlen, length; njs_int_t ret, fast_path; njs_array_t *array; njs_value_t *this, *comparefn, *start, *strings; njs_array_sort_ctx...
1
233,851
void fmtutil_handle_plist(deark *c, dbuf *f, i64 pos, i64 len, de_finfo *fi, unsigned int flags) { if(de_get_ext_option_bool(c, "extractplist", 0)) { dbuf_create_file_from_slice(f, pos, len, fi?NULL:"plist", fi, DE_CREATEFLAG_IS_AUX); return; } de_run_module_by_id_on_slice(c, "plist", NULL, f, pos, len); }
0
473,833
us_ascii_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc) { if (*p & 0x80) return ONIGENC_CONSTRUCT_MBCLEN_INVALID(); return ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(1); }
0
244,248
GF_Err hnti_box_read(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_array_read(s, bs); }
0
446,410
static void rebase_info1_free(RzDyldRebaseInfo1 *rebase_info) { if (!rebase_info) { return; } free(rebase_info->toc); free(rebase_info->entries); free(rebase_info); }
0
459,029
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); if (u < HTTP_HDR_FIRST) return (0); e = strchr(fm->hd[u].b, ':'); if (e == NULL) return (0); f = http_hdr_flags(fm->hd[u].b, e); return (f != NULL && f->...
0
273,932
static void handle_MLSD(ctrl_t *ctrl, char *arg) { list(ctrl, arg, 3); }
0
273,106
clock_gettime(clockid_t clock_id, struct timespec *tp) { static int clock_init = 0; static clock_serv_t clock; mach_timespec_t mts; int ret; if (! clock_init) { clock_init = 1; if (host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &clock)) abort(); /* unlikely */ } if(! tp) ret...
0
333,086
nfa_regatom(void) { int c; int charclass; int equiclass; int collclass; int got_coll_char; char_u *p; char_u *endp; char_u *old_regparse = regparse; int extra = 0; int emit_range; int negated; int result; int startc = -1; int save_prev_at_start = prev_a...
0
387,581
static int snd_ctl_elem_list_user(struct snd_card *card, struct snd_ctl_elem_list __user *_list) { struct snd_ctl_elem_list list; int err; if (copy_from_user(&list, _list, sizeof(list))) return -EFAULT; err = snd_ctl_elem_list(card, &list); if (err) return err; if (copy_to_user(_list, &list, sizeof(lis...
0
292,218
inbound_cap_ack (server *serv, char *nick, char *extensions, const message_tags_data *tags_data) { EMIT_SIGNAL_TIMESTAMP (XP_TE_CAPACK, serv->server_session, nick, extensions, NULL, NULL, 0, tags_data->timestamp); if (strstr (extensions, "identify-msg") != NULL) { serv->have_idmsg = TRUE; } if...
0
235,251
static bool check_buffer(struct torture_context *tctx, uint8_t *buf, unsigned int seed, int len, const char *location) { int i; srandom(seed); for (i=0;i<len;i++) { uint8_t v = random(); if (buf[i] != v) { torture_fail(tctx, talloc_asprintf(tctx, "Buffer incorrect at %s! ofs=%d buf=0x%x correct=0x%x\n", ...
0
391,670
NTSTATUS smbd_calculate_access_mask(connection_struct *conn, const struct smb_filename *smb_fname, bool use_privs, uint32_t access_mask, uint32_t *access_mask_out) { NTSTATUS status; uint32_t orig_access_mask = access_mask; uint32_t rejected_share_access; /* * Convert GENERIC bits...
0
233,838
int fmtutil_macbitmap_read_colortable(deark *c, dbuf *f, struct fmtutil_macbitmap_info *bi, i64 pos, i64 *bytes_used) { i64 ct_id; u32 ct_flags; i64 ct_size; i64 k, z; u32 s[4]; u8 cr, cg, cb; u32 clr; char tmps[64]; *bytes_used = 0; de_dbg(c, "color table at %"I64_FMT, pos); de_dbg_indent(c, 1); ct_id =...
0
338,238
uint16_t WasmBinaryBuilder::getInt16() { BYN_TRACE("<==\n"); auto ret = uint16_t(getInt8()); ret |= uint16_t(getInt8()) << 8; BYN_TRACE("getInt16: " << ret << "/0x" << std::hex << ret << std::dec << " ==>\n"); return ret; }
0
247,130
static Bool gf_fsess_get_user_pass(void *usr_cbk, const char *site_url, char *usr_name, char *password) { GF_Event evt; GF_FilterSession *fsess = (GF_FilterSession *)usr_cbk; evt.type = GF_EVENT_AUTHORIZATION; evt.auth.site_url = site_url; evt.auth.user = usr_name; evt.auth.password = password; return gf_fs_forw...
0
386,569
void DL_Dxf::addDimLinear(DL_CreationInterface* creationInterface) { DL_DimensionData d = getDimData(); // horizontal / vertical / rotated dimension: DL_DimLinearData dl( // definition point 1 getRealValue(13, 0.0), getRealValue(23, 0.0), getRealValue(33, 0.0), // de...
0
90,874
const GURL& lru_origin() const { return lru_origin_; }
0
455,317
set_bash_input () { /* Make sure the fd from which we are reading input is not in no-delay mode. */ #if defined (BUFFERED_INPUT) if (interactive == 0) sh_unset_nodelay_mode (default_buffered_input); else #endif /* !BUFFERED_INPUT */ sh_unset_nodelay_mode (fileno (stdin)); /* with_input_from_stdin ...
0
275,527
njs_vm_bind(njs_vm_t *vm, const njs_str_t *var_name, const njs_value_t *value, njs_bool_t shared) { njs_int_t ret; njs_object_t *global; njs_lvlhsh_t *hash; njs_object_prop_t *prop; njs_lvlhsh_query_t lhq; prop = njs_object_prop_alloc(vm, &njs_value_undefined, val...
0
463,200
static void annotation_get_fromdb(annotate_state_t *state, struct annotate_entry_list *entry) { const char *mboxname = (state->mailbox ? state->mailbox->name : ""); state->found = 0; annotatemore_findall(mboxname, state->uid, entry->name, 0, &rw_cb, state, 0); if (sta...
0
236,128
GF_Err styl_box_read(GF_Box *s, GF_BitStream *bs) { u32 i; GF_TextStyleBox*ptr = (GF_TextStyleBox*)s; ISOM_DECREASE_SIZE(ptr, 2); ptr->entry_count = gf_bs_read_u16(bs); if (ptr->size / GPP_STYLE_SIZE < ptr->entry_count) return GF_ISOM_INVALID_FILE; if (ptr->entry_count) { ptr->styles = (GF_StyleRecord*)gf_m...
0
294,548
d_lite_friday_p(VALUE self) { get_d1(self); return f_boolcast(m_wday(dat) == 5); }
0
430,396
static int __ip_tun_to_nlattr(struct sk_buff *skb, const struct ip_tunnel_key *output, const void *tun_opts, int swkey_tun_opts_len, unsigned short tun_proto, u8 mode) { if (output->tun_flags & TUNNEL_KEY && nla_put_be64(skb, OVS_TUNNEL_KEY_ATTR_ID, output->tun_id, OVS_TUNNEL_KEY_AT...
0
246,238
inline float randRange(float min, float max) { return min+((float)rand()/(float)RAND_MAX)*(max-min); }
0
264,718
void FindConstantFoldableNodes( const Graph* graph, const ConstantFoldingOptions& opts, std::vector<Node*>* nodes, std::unordered_map<const Node*, gtl::FlatSet<Node*>>* constant_control_deps, std::unordered_map<const Node*, std::vector<Tensor>>* shape_replacement_map) { bool internal_node_inse...
0
462,261
static pj_status_t decode_unknown_attr(pj_pool_t *pool, const pj_uint8_t *buf, const pj_stun_msg_hdr *msghdr, void **p_attr) { pj_stun_unknown_attr *attr; const pj_uint16_t *punk_attr; unsigned i; PJ_UNUSED_ARG(msghdr); attr = PJ_POOL_ZALLOC_T(pool, pj_stun_unkn...
0
294,619
c_valid_start_p(double sg) { if (isnan(sg)) return 0; if (isinf(sg)) return 1; if (sg < REFORM_BEGIN_JD || sg > REFORM_END_JD) return 0; return 1; }
0
498,135
void html_hidden(const char *name, const char *value) { html("<input type='hidden' name='"); html_attr(name); html("' value='"); html_attr(value); html("'/>"); }
0
308,181
static struct fastrpc_session_ctx *fastrpc_session_alloc( struct fastrpc_channel_ctx *cctx) { struct fastrpc_session_ctx *session = NULL; unsigned long flags; int i; spin_lock_irqsave(&cctx->lock, flags); for (i = 0; i < cctx->sesscount; i++) { if (!cctx->session[i].used && cctx->session[i].valid) { cct...
0
512,752
int save_in_field(Field *field_arg, bool no_conversions) { return field_arg->save_in_field_ignore_value(false); }
0
256,999
static void route4_bind_class(void *fh, u32 classid, unsigned long cl, void *q, unsigned long base) { struct route4_filter *f = fh; if (f && f->res.classid == classid) { if (cl) __tcf_bind_filter(q, &f->res, base); else __tcf_unbind_filter(q, &f->res); } }
0
225,780
GF_Box *fiin_box_new() { ISOM_DECL_BOX_ALLOC(FDItemInformationBox, GF_ISOM_BOX_TYPE_FIIN); return (GF_Box *)tmp;
0
329,922
composite_glyphs_via_mask (void *_dst, cairo_operator_t op, cairo_surface_t *_src, int src_x, int src_y, int dst_x, int dst_y, cairo_composite_glyphs_info_t *info) { cairo_scaled_glyph_t *glyph_cache[64]; pixman_image_t *white = _pixman_image_for_c...
0
401,573
static void __init init_std_data(struct entropy_store *r) { int i; ktime_t now = ktime_get_real(); unsigned long rv; mix_pool_bytes(r, &now, sizeof(now)); for (i = r->poolinfo->poolbytes; i > 0; i -= sizeof(rv)) { if (!arch_get_random_seed_long(&rv) && !arch_get_random_long(&rv)) rv = random_get_entrop...
0
222,910
NodeContext* GetNodeContext(const NodeDef* node) { auto it = node_to_context_.find(node); if (it == node_to_context_.end()) { return nullptr; } return &it->second; }
0
437,281
set_optimize_map(regex_t* reg, OptMap* m) { int i; for (i = 0; i < ONIG_CHAR_TABLE_SIZE; i++) reg->map[i] = m->map[i]; reg->optimize = OPTIMIZE_MAP; reg->dmin = m->mmd.min; reg->dmax = m->mmd.max; if (reg->dmin != INFINITE_LEN) { reg->threshold_len = reg->dmin + 1; } }
0
247,549
TEST_P(SslSocketTest, GetNoUriWithDnsSan) { const std::string client_ctx_yaml = R"EOF( common_tls_context: tls_certificates: certificate_chain: filename: "{{ test_rundir }}/test/extensions/transport_sockets/tls/test_data/san_dns_cert.pem" private_key: filename: "{{ test_rundir }}/tes...
0
474,001
mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower, OnigEncoding enc ARG_UNUSED) { const UChar* p = *pp; if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { *lower++ = 's'; *lower = 's'; (*pp)++; return 2; } *lower = O...
0
455,307
history_completion_generator (hint_text, state) const char *hint_text; int state; { static int local_index, len; static const char *text; /* If this is the first call to the generator, then initialize the list of strings to complete over. */ if (state == 0) { if (dabbrev_expand_active)...
0
513,368
calc_group_buffer(JOIN *join,ORDER *group) { uint key_length=0, parts=0, null_parts=0; if (group) join->group= 1; for (; group ; group=group->next) { Item *group_item= *group->item; Field *field= group_item->get_tmp_table_field(); if (field) { enum_field_types type; if ((type= f...
0
259,290
static int64_t get_stream_info_time(MOVFragmentStreamInfo * frag_stream_info) { av_assert0(frag_stream_info); if (frag_stream_info->sidx_pts != AV_NOPTS_VALUE) return frag_stream_info->sidx_pts; if (frag_stream_info->first_tfra_pts != AV_NOPTS_VALUE) return frag_stream_info->first_tfra_pts; ...
0
474,047
fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env) { int r, num; OnigCodePoint c; OnigEncoding enc = env->enc; const OnigSyntaxType* syn = env->syntax; UChar* prev; UChar* p = *src; PFETCH_READY; start: if (PEND) { tok->type = TK_EOT; return tok->type; } tok->type = TK_ST...
0
487,636
asmlinkage long sys_setfsuid(uid_t uid) { int old_fsuid; old_fsuid = current->fsuid; if (security_task_setuid(uid, (uid_t)-1, (uid_t)-1, LSM_SETID_FS)) return old_fsuid; if (uid == current->uid || uid == current->euid || uid == current->suid || uid == current->fsuid || capable(CAP_SETUID)) { if (ui...
0
359,347
DEFUN (clear_bgp_peer_in_prefix_filter, clear_bgp_peer_in_prefix_filter_cmd, "clear bgp (A.B.C.D|X:X::X:X) in prefix-filter", CLEAR_STR BGP_STR "BGP neighbor address to clear\n" "BGP IPv6 neighbor to clear\n" "Soft reconfig inbound update\n" "Push out the existing...
0
335,424
eval_vars( char_u *src, // pointer into commandline char_u *srcstart, // beginning of valid memory for src int *usedlen, // characters after src that are used linenr_T *lnump, // line number for :e command, or NULL char **errormsg, // pointer to error message int *escaped, // return value ha...
0
454,759
static int ismt_access(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { int ret; unsigned long time_left; dma_addr_t dma_addr = 0; /* address of the data buffer */ u8 dma_size = 0; enum dma_data_direction dma_direction ...
0
508,784
static int rr_index(READ_RECORD *info) { int tmp= info->table->file->ha_index_next(info->record); if (tmp) tmp= rr_handle_error(info, tmp); return tmp; }
0
210,273
createRandomCursorExecutor(const CollectionPtr& coll, const boost::intrusive_ptr<ExpressionContext>& expCtx, long long sampleSize, long long numRecords, boost::optional<BucketUnpacker> bucketUnpacker) { Opera...
1
446,401
RZ_API void rz_dyldcache_symbols_from_locsym(RzDyldCache *cache, RzDyldBinImage *bin, RzList *symbols, SetU *hash) { RzDyldLocSym *locsym = cache->locsym; if (!locsym) { return; } if (bin->nlist_start_index >= locsym->nlists_count || bin->nlist_start_index + bin->nlist_count > locsym->nlists_count) { RZ_LOG_...
0
274,872
TEST(ComparisonsTest, GreaterQuantizedSmallRange) { ComparisonOpModel model({TensorType_UINT8, {1, 2, 2, 1}, 0.0, 1.0}, {TensorType_UINT8, {1, 2, 2, 1}, 0.0, 2.0}, TensorType_UINT8, BuiltinOperator_GREATER); model.QuantizeAndPopulate<uint8_t>(model.input1(), {1.0,...
0
436,125
*/ static int io_timeout_remove(struct io_kiocb *req, unsigned int issue_flags) { struct io_timeout_rem *tr = &req->timeout_rem; struct io_ring_ctx *ctx = req->ctx; int ret; spin_lock_irq(&ctx->completion_lock); if (!(req->timeout_rem.flags & IORING_TIMEOUT_UPDATE)) ret = io_timeout_cancel(ctx, tr->addr); els...
0
359,513
DEFUN (no_bgp_log_neighbor_changes, no_bgp_log_neighbor_changes_cmd, "no bgp log-neighbor-changes", NO_STR "BGP specific commands\n" "Log neighbor up/down and reset reason\n") { struct bgp *bgp; bgp = vty->index; bgp_flag_unset (bgp, BGP_FLAG_LOG_NEIGHBOR_CHANGES); return CMD...
0
512,408
virtual void make_send_field(THD *thd, Send_field *field) { orig_item->make_send_field(thd, field); }
0
450,386
static void vnc_zrle_start(VncState *vs) { buffer_reset(&vs->zrle->zrle); /* make the output buffer be the zlib buffer, so we can compress it later */ vs->zrle->tmp = vs->output; vs->output = vs->zrle->zrle; }
0
229,309
std::unique_ptr<cql_server::response> cql_server::connection::make_unavailable_error(int16_t stream, exceptions::exception_code err, sstring msg, db::consistency_level cl, int32_t required, int32_t alive, const tracing::trace_state_ptr& tr_state) const { auto response = std::make_unique<cql_server::response>(stream...
0
462,574
void controller::mark_all_read(unsigned int pos) { if (pos < feeds.size()) { scope_measure m("controller::mark_all_read"); std::lock_guard<std::mutex> feedslock(feeds_mutex); std::shared_ptr<rss_feed> feed = feeds[pos]; if (feed->rssurl().substr(0,6) == "query:") { rsscache->mark_all_read(feed); } else { ...
0
384,770
f_screenpos(typval_T *argvars UNUSED, typval_T *rettv) { dict_T *dict; win_T *wp; pos_T pos; int row = 0; int scol = 0, ccol = 0, ecol = 0; if (rettv_dict_alloc(rettv) != OK) return; dict = rettv->vval.v_dict; if (in_vim9script() && (check_for_number_arg(argvars, 0) == FAIL |...
0
353,162
void SplashOutputDev::endType3Char(GfxState *state) { T3GlyphStack *t3gs; if (t3GlyphStack->cacheTag) { --nestCount; memcpy(t3GlyphStack->cacheData, bitmap->getDataPtr(), t3GlyphStack->cache->glyphSize); delete bitmap; delete splash; bitmap = t3GlyphStack->origBitmap; splash = t3GlyphSt...
0
427,186
static int searchvar (FuncState *fs, TString *n, expdesc *var) { int i; for (i = cast_int(fs->nactvar) - 1; i >= 0; i--) { Vardesc *vd = getlocalvardesc(fs, i); if (eqstr(n, vd->vd.name)) { /* found? */ if (vd->vd.kind == RDKCTC) /* compile-time constant? */ init_exp(var, VCONST, fs->firstlo...
0
218,799
static void XDrawBeveledMatte(Display *display,const XWindowInfo *window_info, const XWidgetInfo *matte_info) { /* Draw matte. */ XDrawBevel(display,window_info,matte_info); XDrawMatte(display,window_info,matte_info); }
0
447,073
long FileIo::read(byte* buf, long rcount) { assert(p_->fp_ != 0); if (p_->switchMode(Impl::opRead) != 0) return 0; return (long)std::fread(buf, 1, rcount, p_->fp_); }
0
254,720
njs_typed_array_prototype_byte_offset(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { size_t byte_offset; njs_value_t *this; njs_typed_array_t *array; this = njs_argument(args, 0); if (!njs_is_typed_array(this) && !njs_is_data_view(this)) { n...
0
346,432
sourcing_a_script(exarg_T *eap) { return (getline_equal(eap->getline, eap->cookie, getsourceline)); }
0
384,294
gs_heap_alloc_byte_array(gs_memory_t * mem, uint num_elements, uint elt_size, client_name_t cname) { ulong lsize = (ulong) num_elements * elt_size; if (lsize != (uint) lsize) return 0; return gs_heap_alloc_bytes(mem, (uint) lsize, cname); }
0
369,283
static int __init io_uring_init(void) { #define __BUILD_BUG_VERIFY_ELEMENT(stype, eoffset, etype, ename) do { \ BUILD_BUG_ON(offsetof(stype, ename) != eoffset); \ BUILD_BUG_ON(sizeof(etype) != sizeof_field(stype, ename)); \ } while (0) #define BUILD_BUG_SQE_ELEM(eoffset, etype, ename) \ __BUILD_BUG_VERIFY_ELEMENT(...
0
270,395
void ok_inflater_free(ok_inflater *inflater) { if (inflater) { ok_png_allocator allocator = inflater->allocator; void *allocator_user_data = inflater->allocator_user_data; allocator.free(allocator_user_data, inflater->buffer); allocator.free(allocator_user_data, inflater->code_length...
0
281,621
void CLASS stretch() { ushort newdim, (*img)[4], *pix0, *pix1; int row, col, c; double rc, frac; if (pixel_aspect == 1) return; #ifdef LIBRAW_LIBRARY_BUILD RUN_CALLBACK(LIBRAW_PROGRESS_STRETCH,0,2); #endif #ifdef DCRAW_VERBOSE if (verbose) fprintf (stderr,_("Stretching the image...\n")); #endif if (pixel...
0
337,796
static void *sctp_addto_param(struct sctp_chunk *chunk, int len, const void *data) { int chunklen = ntohs(chunk->chunk_hdr->length); void *target; target = skb_put(chunk->skb, len); if (data) memcpy(target, data, len); else memset(target, 0, len); /* Adjust the chunk length field. */ chunk->chun...
0
455,323
_cygwin32_check_tmp () { struct stat sb; if (stat ("/tmp", &sb) < 0) internal_warning (_("could not find /tmp, please create!")); else { if (S_ISDIR (sb.st_mode) == 0) internal_warning (_("/tmp must be a valid directory name")); } }
0
246,709
u32 parse_split(char *arg_val, u32 opt) { switch (opt) { case 0://-split split_duration = atof(arg_val); if (split_duration < 0) split_duration = 0; split_size = 0; break; case 1: //-split-rap, -splitr split_duration = -1; split_size = -1; break; case 2: //-split-size, -splits split_size = (u32)atoi...
0
222,573
string Name(int node_index, int output_index) const { if (output_index == 0) { return Name(node_index); } else { return strings::StrCat(Name(node_index), ":", output_index); } }
0
289,328
static int _snd_pcm_hw_param_max(struct snd_pcm_hw_params *params, snd_pcm_hw_param_t var, unsigned int val, int dir) { int changed; int open = 0; if (dir) { if (dir < 0) { open = 1; } else if (dir > 0) { open = 1; val++; } } if (hw_is_mask(var)) { if (val == 0 && open) { snd_mask_non...
0
450,426
static int send_sub_rect(VncState *vs, int x, int y, int w, int h) { uint32_t bg = 0, fg = 0; int colors; int ret = 0; #ifdef CONFIG_VNC_JPEG bool force_jpeg = false; bool allow_jpeg = true; #endif if (!color_count_palette) { color_count_palette = g_malloc(sizeof(VncPalette)); v...
0
231,738
virtual void initializeServerHandshake() { fakeHandshake = new FakeServerHandshake( server->getNonConstConn(), getFizzServerContext()); }
0
439,164
static Image *ReadAAIImage(const ImageInfo *image_info,ExceptionInfo *exception) { Image *image; MagickBooleanType status; register ssize_t x; register PixelPacket *q; register unsigned char *p; size_t height, length, width; ssize_t count, y; unsigned char ...
0
234,250
print_dwarf_view (dwarf_vma value, unsigned num_bytes, int force) { int len; if (!num_bytes) len = 4; else len = num_bytes * 2; assert (value == (unsigned long) value); if (value || force) printf ("v%0*lx ", len - 1, (unsigned long) value); else printf ("%*s", len + 1, ""); }
0
245,178
parse_show_engine_innodb_status(MYSQL *connection) { MYSQL_RES *mysql_result; MYSQL_ROW row; mysql_result = xb_mysql_query(connection, "SHOW ENGINE INNODB STATUS", true); ut_ad(mysql_num_fields(mysql_result) == 3); if ((row = mysql_fetch_row(mysql_result))) { std::stringstream data(row[2]); std::s...
0
276,442
void Compute(OpKernelContext* context) override { // Looks up the resource. core::RefCountPtr<BoostedTreesEnsembleResource> tree_ensemble_resource; OP_REQUIRES_OK(context, LookupResource(context, HandleFromInput(context, 0), &tree_ensemble_resource)); tf_shar...
0
294,612
c_gregorian_last_day_of_month(int y, int m) { assert(m >= 1 && m <= 12); return monthtab[c_gregorian_leap_p(y) ? 1 : 0][m]; }
0
477,946
int qtm_decompress(struct qtm_stream *qtm, off_t out_bytes) { unsigned int frame_start, frame_end, window_posn, match_offset, range; unsigned char *window, *i_ptr, *i_end, *runsrc, *rundest; int i, j, selector, extra, sym, match_length, ret; unsigned short H, L, C, symf; register unsigned int bit_buffer; r...
0
317,260
static void smack_task_getsecid_obj(struct task_struct *p, u32 *secid) { struct smack_known *skp = smk_of_task_struct_obj(p); *secid = skp->smk_secid; }
0
226,957
IRC_PROTOCOL_CALLBACK(error) { char *ptr_args; IRC_PROTOCOL_MIN_ARGS(2); ptr_args = (argv_eol[1][0] == ':') ? argv_eol[1] + 1 : argv_eol[1]; weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer (server, NULL, command, NULL, NULL), date, irc_protocol_tags (command, NULL, ...
0
436,091
static int io_submit_sqe(struct io_ring_ctx *ctx, struct io_kiocb *req, const struct io_uring_sqe *sqe) { struct io_submit_link *link = &ctx->submit_state.link; int ret; ret = io_init_req(ctx, req, sqe); if (unlikely(ret)) { fail_req: if (link->head) { /* fail even hard links since we don't submit */ ...
0
516,250
static void virtio_net_reset(VirtIODevice *vdev) { VirtIONet *n = VIRTIO_NET(vdev); int i; /* Reset back to compatibility mode */ n->promisc = 1; n->allmulti = 0; n->alluni = 0; n->nomulti = 0; n->nouni = 0; n->nobcast = 0; /* multiqueue is disabled by default */ n->curr_que...
0
476,139
static int fill_ext_compat(struct usb_configuration *c, u8 *buf) { int i, count; count = 16; buf += 16; for (i = 0; i < c->next_interface_id; ++i) { struct usb_function *f; int j; f = c->interface[i]; for (j = 0; j < f->os_desc_n; ++j) { struct usb_os_desc *d; if (i != f->os_desc_table[j].if_id) ...
0
312,591
incr_quickfix_busy(void) { quickfix_busy++; }
0
455,311
unset_bash_input (check_zero) int check_zero; { #if defined (BUFFERED_INPUT) if ((check_zero && default_buffered_input >= 0) || (check_zero == 0 && default_buffered_input > 0)) { close_buffered_fd (default_buffered_input); default_buffered_input = bash_input.location.buffered_fd = -1; ...
0
421,381
static void slist(int d, js_Ast *list) { pc('['); while (list) { assert(list->type == AST_LIST); snode(d, list->a); list = list->b; if (list) pc(' '); } pc(']'); }
0
247,339
static int pgpPrtSigParams(pgpTag tag, uint8_t pubkey_algo, const uint8_t *p, const uint8_t *h, size_t hlen, pgpDigParams sigp) { int rc = 1; /* assume failure */ const uint8_t * pend = h + hlen; int i; pgpDigAlg sigalg = pgpSignatureNew(pubkey_algo); for (i = 0; i < sigalg->mpis && pend - p >=...
0
245,693
njs_array_prototype_unshift(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { double idx; int64_t from, to, length; njs_int_t ret; njs_uint_t n; njs_array_t *array, *keys; njs_value_t *this, entry; this = njs_argument(args, 0); length = 0; ...
0
261,188
int MqttClient_Ping_ex(MqttClient *client, MqttPing* ping) { int rc, len; /* Validate required arguments */ if (client == NULL || ping == NULL) { return MQTT_CODE_ERROR_BAD_ARG; } if (ping->stat == MQTT_MSG_BEGIN) { #ifdef WOLFMQTT_MULTITHREAD /* Lock send socket mutex */ ...
0
312,571
qf_parse_get_fields( char_u *linebuf, int linelen, efm_T *fmt_ptr, qffields_T *fields, int qf_multiline, int qf_multiscan, char_u **tail) { regmatch_T regmatch; int status = QF_FAIL; int r; if (qf_multiscan && vim_strchr((char_u *)"OPQ", fmt_ptr->prefix) == NULL) return QF_FAIL; ...
0
326,604
_archive_write_disk_finish_entry(struct archive *_a) { struct archive_write_disk *a = (struct archive_write_disk *)_a; int ret = ARCHIVE_OK; archive_check_magic(&a->archive, ARCHIVE_WRITE_DISK_MAGIC, ARCHIVE_STATE_HEADER | ARCHIVE_STATE_DATA, "archive_write_finish_entry"); if (a->archive.state & ARCHIVE_...
0
337,780
static struct sctp_chunk *sctp_make_op_error_space( const struct sctp_association *asoc, const struct sctp_chunk *chunk, size_t size) { struct sctp_chunk *retval; retval = sctp_make_control(asoc, SCTP_CID_ERROR, 0, sizeof(struct sctp_errhdr) + size, GFP_ATOMIC); if (!retval) goto noda...
0
195,039
void operator()(OpKernelContext* ctx, const Tensor& input, const Tensor& filter, int row_stride, int col_stride, int row_dilation, int col_dilation, const Padding& padding, const std::vector<int64_t>& explicit_paddings, Tensor* output, TensorForm...
1