idx
int64
func
string
target
int64
317,182
static int selinux_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts) { return cred_has_capability(cred, cap, opts, ns == &init_user_ns); }
0
294,558
d_lite_zone(VALUE self) { get_d1(self); return m_zone(dat); }
0
270,381
static bool ok_read(ok_png_decoder *decoder, uint8_t *buffer, size_t length) { if (decoder->input.read(decoder->input_user_data, buffer, length) == length) { return true; } else { ok_png_error(decoder->png, OK_PNG_ERROR_IO, "Read error: error calling input function."); return false; ...
0
209,968
static int formatIPTCfromBuffer(Image *ofile, char *s, ssize_t len) { char temp[MaxTextExtent]; unsigned int foundiptc, tagsfound; unsigned char recnum, dataset; unsigned char *readable, *str; ssize_t tagindx, taglen; int i, tagcount = (int) (sizeof(tags) / s...
1
259,198
static int mov_read_enda(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int little_endian = avio_rb16(pb) & 0xFF; av_log(c->fc, AV_LOG_TRACE, "enda %d\n", little_endian); if (little_endian == 1) set_last_stream_little_endian(c->fc); return 0; }
0
405,352
static int xfrm_bundle_ok(struct xfrm_dst *first) { struct xfrm_dst *bundle[XFRM_MAX_DEPTH]; struct dst_entry *dst = &first->u.dst; struct xfrm_dst *xdst; int start_from, nr; u32 mtu; if (!dst_check(xfrm_dst_path(dst), ((struct xfrm_dst *)dst)->path_cookie) || (dst->dev && !netif_running(dst->dev))) retur...
0
226,284
GF_Err dOps_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_OpusSpecificBox *ptr = (GF_OpusSpecificBox *)s; if (!s) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_u8(bs, ptr->version); gf_bs_write_u8(bs, ptr->OutputChannelCount); gf_bs_write_u16(bs, ptr->PreSkip); ...
0
225,750
GF_Err trpy_box_read(GF_Box *s, GF_BitStream *bs) { GF_TRPYBox *ptr = (GF_TRPYBox *)s; ISOM_DECREASE_SIZE(ptr, 8); ptr->nbBytes = gf_bs_read_u64(bs); return GF_OK; }
0
245,450
cipush(mrb_state *mrb, mrb_int push_stacks, uint8_t cci, struct RClass *target_class, const struct RProc *proc, mrb_sym mid, uint8_t argc) { struct mrb_context *c = mrb->c; mrb_callinfo *ci = c->ci; if (ci + 1 == c->ciend) { ptrdiff_t size = ci - c->cibase; if (size > MRB_CALL_LEVEL_MAX) { ...
0
418,797
get_pseudo_mouse_code( int button, // eg MOUSE_LEFT int is_click, int is_drag) { int i; for (i = 0; mouse_table[i].pseudo_code; i++) if (button == mouse_table[i].button && is_click == mouse_table[i].is_click && is_drag == mouse_table[i].is_drag) { #ifdef FEAT_GUI //...
0
383,352
gdImageArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e, int color) { if( (s%360)==(e%360) ){ gdImageEllipse(im, cx, cy, w, h, color); } else { gdImageFilledArc (im, cx, cy, w, h, s, e, color, gdNoFill); } }
0
473,823
gb18030_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED) { return GB18030_MAP[*s] == C1 ? TRUE : FALSE; }
0
326,602
cleanup_pathname_fsobj(char *path, int *a_eno, struct archive_string *a_estr, int flags) { char *dest, *src; char separator = '\0'; dest = src = path; if (*src == '\0') { fsobj_error(a_eno, a_estr, ARCHIVE_ERRNO_MISC, "Invalid empty ", "pathname"); return (ARCHIVE_FAILED); } #if defined(__CYGWIN__)...
0
430,423
static int validate_and_copy_clone(struct net *net, const struct nlattr *attr, const struct sw_flow_key *key, struct sw_flow_actions **sfa, __be16 eth_type, __be16 vlan_tci, u32 mpls_label_count, bool log, bool last) { int start, err; u32 exec; if (nla_len(attr) && nla_len(attr) <...
0
513,287
void JOIN_TAB::cleanup() { DBUG_ENTER("JOIN_TAB::cleanup"); DBUG_PRINT("enter", ("tab: %p table %s.%s", this, (table ? table->s->db.str : "?"), (table ? table->s->table_name.str : "?"))); delete select; select= 0; delete quick; quick= ...
0
336,691
SPICE_GNUC_VISIBLE int spice_server_migrate_start(SpiceServer *reds) { spice_debug("trace"); if (!reds->config->mig_spice) { return -1; } return 0; }
0
317,186
static int selinux_bpf_map(struct bpf_map *map, fmode_t fmode) { u32 sid = current_sid(); struct bpf_security_struct *bpfsec; bpfsec = map->security; return avc_has_perm(&selinux_state, sid, bpfsec->sid, SECCLASS_BPF, bpf_map_fmode_to_av(fmode), NULL); }
0
238,478
static void scalar32_min_max_or(struct bpf_reg_state *dst_reg, struct bpf_reg_state *src_reg) { bool src_known = tnum_subreg_is_const(src_reg->var_off); bool dst_known = tnum_subreg_is_const(dst_reg->var_off); struct tnum var32_off = tnum_subreg(dst_reg->var_off); s32 smin_val = src_reg->s32_min_value; u32 umi...
0
208,525
cmdline_insert_reg(int *gotesc UNUSED) { int i; int c; #ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; // disallow scrolling here #endif putcmdline('"', TRUE); ++no_mapping; ++allow_keys; i = c = plain_vgetc(); // CTRL-R <char> if (i == Ctrl_O) i = Ctrl_R; // CTRL-R CTRL-O == CTRL-R CT...
1
513,298
bool dbug_user_var_equals_int(THD *thd, const char *name, int value) { user_var_entry *var; LEX_STRING varname= {(char*)name, strlen(name)}; if ((var= get_variable(&thd->user_vars, varname, FALSE))) { bool null_value; longlong var_value= var->val_int(&null_value); if (!null_value && var_value == val...
0
328,836
R_API RBinJavaAttrInfo *r_bin_java_bootstrap_methods_attr_new(RBinJavaObj *bin, ut8 *buffer, ut64 sz, ut64 buf_offset) { ut32 i = 0; RBinJavaBootStrapMethod *bsm = NULL; ut64 offset = 0; RBinJavaAttrInfo *attr = r_bin_java_default_attr_new (bin, buffer, sz, buf_offset); offset += 6; if (attr) { attr->type = R_B...
0
261,430
const char* part_mode_name(enum PartMode pm) { switch (pm) { case PART_2Nx2N: return "2Nx2N"; case PART_2NxN: return "2NxN"; case PART_Nx2N: return "Nx2N"; case PART_NxN: return "NxN"; case PART_2NxnU: return "2NxnU"; case PART_2NxnD: return "2NxnD"; case PART_nLx2N: return "nLx2N"; case PART_nRx2...
0
292,169
void CallInfo::set_handle(Klass* resolved_klass, const methodHandle& resolved_method, Handle resolved_appendix, Handle resolved_method_type, TRAPS) { if (resolved_method.is_null()) { THROW_MSG(vmSymbols::java_lang_InternalError(), "reso...
0
505,463
static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) { EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); switch(type) { case EVP_CTRL_INIT: if (actx == NULL) actx = ctx->cipher_data = OPENSSL_zalloc(sizeof(*act...
0
294,606
date_to_datetime(VALUE self) { get_d1a(self); if (simple_dat_p(adat)) { VALUE new = d_lite_s_alloc_simple(cDateTime); { get_d1b(new); bdat->s = adat->s; return new; } } else { VALUE new = d_lite_s_alloc_complex(cDateTime); { get_d1b(new); bdat->c = adat->c; bdat->c.df...
0
90,135
virtual CellularNetwork* FindCellularNetworkByPath( const std::string& path) { return NULL; }
0
282,853
static int rsi_mgmt_pkt_to_core(struct rsi_common *common, u8 *msg, s32 msg_len) { struct rsi_hw *adapter = common->priv; struct ieee80211_tx_info *info; struct skb_info *rx_params; u8 pad_bytes = msg[4]; struct sk_buff *skb; if (!adapter->sc_nvifs) return -ENOLINK; msg_len -= pad_bytes; if (msg_len...
0
336,536
static void reds_accept(int fd, int event, void *data) { RedsState *reds = (RedsState*) data; int socket; if ((socket = accept(fd, NULL, 0)) == -1) { spice_warning("accept failed, %s", strerror(errno)); return; } if (spice_server_add_client(reds, socket, 0) < 0) { socket_cl...
0
462,406
for(i = 0 ; i < modpblk.nParams ; ++i) { if(!pvals[i].bUsed) continue; if(!strcmp(modpblk.descr[i].name, "threads")) { loadModConf->wrkrMax = (int) pvals[i].val.d.n; } else if(!strcmp(modpblk.descr[i].name, "processOnPoller")) { loadModConf->bProcessOnPoller = (int) pvals[i].val.d.n; } else { dbgpr...
0
427,189
static void fixforjump (FuncState *fs, int pc, int dest, int back) { Instruction *jmp = &fs->f->code[pc]; int offset = dest - (pc + 1); if (back) offset = -offset; if (l_unlikely(offset > MAXARG_Bx)) luaX_syntaxerror(fs->ls, "control structure too long"); SETARG_Bx(*jmp, offset); }
0
421,378
void jsP_dumpsyntax(js_State *J, js_Ast *prog, int dominify) { minify = dominify; if (prog) { if (prog->type == AST_LIST) pstmlist(-1, prog); else { pstm(0, prog); nl(); } } if (minify > 1) putchar('\n'); }
0
317,090
static int __init selinux_enabled_setup(char *str) { unsigned long enabled; if (!kstrtoul(str, 0, &enabled)) selinux_enabled_boot = enabled ? 1 : 0; return 1; }
0
317,158
static int selinux_task_getscheduler(struct task_struct *p) { return avc_has_perm(&selinux_state, current_sid(), task_sid_obj(p), SECCLASS_PROCESS, PROCESS__GETSCHED, NULL); }
0
344,798
strdelimw(char **s) { return strdelim_internal(s, 0); }
0
328,890
R_API RBinJavaObj *r_bin_java_new_buf(RBuffer *buf, ut64 loadaddr, Sdb *kv) { RBinJavaObj *bin = R_NEW0 (RBinJavaObj); if (!bin) { return NULL; } ut64 tmpsz; const ut8 *tmp = r_buf_data (buf, &tmpsz); if (!r_bin_java_new_bin (bin, loadaddr, kv, tmp, tmpsz)) { return r_bin_java_free (bin); } return bin; }
0
252,318
tinfl_status tinfl_decompress(tinfl_decompressor *r, const mz_uint8 *pIn_buf_next, size_t *pIn_buf_size, mz_uint8 *pOut_buf_start, mz_uint8 *pOut_buf_next, size_t *pOut_buf_size, const mz_uint32 decom...
0
359,617
bgp_str2route_type (int afi, const char *str) { if (! str) return 0; if (afi == AFI_IP) { if (strncmp (str, "k", 1) == 0) return ZEBRA_ROUTE_KERNEL; else if (strncmp (str, "c", 1) == 0) return ZEBRA_ROUTE_CONNECT; else if (strncmp (str, "s", 1) == 0) return ZEBRA_ROUTE_STATIC; el...
0
224,185
explicit MapStageOp(OpKernelConstruction* ctx) : OpKernel(ctx) {}
0
289,292
static int snd_interval_refine_set(struct snd_interval *i, unsigned int val) { struct snd_interval t; t.empty = 0; t.min = t.max = val; t.openmin = t.openmax = 0; t.integer = 1; return snd_interval_refine(i, &t); }
0
365,614
_asn1_add_static_node (unsigned int type) { list_type *listElement; asn1_node punt; punt = calloc (1, sizeof (struct asn1_node_st)); if (punt == NULL) return NULL; listElement = malloc (sizeof (list_type)); if (listElement == NULL) { free (punt); return NULL; } listElement->node...
0
90,148
std::string Network::GetStateString() const { switch (state_) { case STATE_UNKNOWN: return l10n_util::GetStringUTF8(IDS_CHROMEOS_NETWORK_STATE_UNKNOWN); case STATE_IDLE: return l10n_util::GetStringUTF8(IDS_CHROMEOS_NETWORK_STATE_IDLE); case STATE_CARRIER: return l10n_util::GetStringUTF8(...
0
384,895
vim_fnamencmp(char_u *x, char_u *y, size_t len) { #ifdef BACKSLASH_IN_FILENAME char_u *px = x; char_u *py = y; int cx = NUL; int cy = NUL; while (len > 0) { cx = PTR2CHAR(px); cy = PTR2CHAR(py); if (cx == NUL || cy == NUL || ((p_fic ? MB_TOLOWER(cx) != MB_TOLOWER(cy) : cx != cy) && ...
0
427,795
static void sev_clflush_pages(struct page *pages[], unsigned long npages) { uint8_t *page_virtual; unsigned long i; if (this_cpu_has(X86_FEATURE_SME_COHERENT) || npages == 0 || pages == NULL) return; for (i = 0; i < npages; i++) { page_virtual = kmap_atomic(pages[i]); clflush_cache_range(page_virtual, ...
0
312,433
jump_to_help_window(qf_info_T *qi, int newwin, int *opened_window) { win_T *wp; int flags; if (cmdmod.cmod_tab != 0 || newwin) wp = NULL; else wp = qf_find_help_win(); if (wp != NULL && wp->w_buffer->b_nwindows > 0) win_enter(wp, TRUE); else { // Split off help window; put it at far to...
0
508,401
bool close_cached_tables(THD *thd, TABLE_LIST *tables, bool wait_for_refresh, ulong timeout) { bool result= FALSE; struct timespec abstime; tdc_version_t refresh_version; DBUG_ENTER("close_cached_tables"); DBUG_ASSERT(thd || (!wait_for_refresh && !tables)); refresh_version= tdc_inc...
0
338,133
void WasmBinaryBuilder::visitLocalSet(LocalSet* curr, uint8_t code) { BYN_TRACE("zz node: Set|LocalTee\n"); requireFunctionContext("local.set outside of function"); curr->index = getAbsoluteLocalIndex(getU32LEB()); if (curr->index >= currFunction->getNumLocals()) { throwError("bad local.set index"); } c...
0
498,106
void cgit_stats_link(const char *name, const char *title, const char *class, const char *head, const char *path) { reporevlink("stats", name, title, class, head, NULL, path); }
0
208,912
getcmdline_int( int firstc, long count UNUSED, // only used for incremental search int indent, // indent for inside conditionals int clear_ccline) // clear ccline first { static int depth = 0; // call depth int c; int i; int j; int gotesc = FALSE; // TRUE when <ESC> just...
1
333,058
nfa_save_listids(nfa_regprog_T *prog, int *list) { int i; nfa_state_T *p; // Order in the list is reverse, it's a bit faster that way. p = &prog->state[0]; for (i = prog->nstate; --i >= 0; ) { list[i] = p->lastlist[1]; p->lastlist[1] = 0; ++p; } }
0
240,295
set_execreg_lastc(int lastc) { execreg_lastc = lastc; }
0
226,311
void trep_box_del(GF_Box *s) { GF_TrackExtensionPropertiesBox *ptr = (GF_TrackExtensionPropertiesBox *)s; if (ptr == NULL) return; gf_free(ptr);
0
291,769
static int alloc_permits(struct rtrs_clt_sess *clt) { unsigned int chunk_bits; int err, i; clt->permits_map = kcalloc(BITS_TO_LONGS(clt->queue_depth), sizeof(long), GFP_KERNEL); if (!clt->permits_map) { err = -ENOMEM; goto out_err; } clt->permits = kcalloc(clt->queue_depth, permit_size(clt), GFP_KERNE...
0
197,518
void Compute(OpKernelContext* ctx) override { const Tensor& gradient = ctx->input(0); const Tensor& input = ctx->input(1); Tensor* input_backprop = nullptr; OP_REQUIRES_OK(ctx, ctx->allocate_output(0, input.shape(), &input_backprop)); OP_REQUIRES( ctx, axis_ >= -1, ...
1
395,091
update_finish(void) { if (redraw_cmdline || redraw_mode) showmode(); # ifdef FEAT_SEARCH_EXTRA end_search_hl(); # endif after_updating_screen(TRUE); # ifdef FEAT_GUI // Redraw the cursor and update the scrollbars when all screen updating is // done. if (gui.in_use) { out_flush_cursor(FA...
0
256,163
void do_on_all_threads(const DeviceBase::CpuWorkerThreads* thread_pool, const F& f) { int num_threads = thread_pool->num_threads; if (num_threads == 0) { LOG(FATAL) << "Have 0 threads in thread pool"; } else if (num_threads == 1) { f(0); } else { BlockingCounter counter(num_th...
0
359,417
DEFUN (bgp_confederation_peers, bgp_confederation_peers_cmd, "bgp confederation peers .<1-65535>", "BGP specific commands\n" "AS confederation parameters\n" "Peer ASs in BGP confederation\n" AS_STR) { struct bgp *bgp; as_t as; int i; bgp = vty->index; for (i = 0; i ...
0
259,220
static int can_seek_to_key_sample(AVStream *st, int sample, int64_t requested_pts) { MOVStreamContext *sc = st->priv_data; FFStream *const sti = ffstream(st); int64_t key_sample_dts, key_sample_pts; if (st->codecpar->codec_id != AV_CODEC_ID_HEVC) return 1; if (sample >= sc->sample_offsets_...
0
210,620
static struct rpmsg_device *rpmsg_virtio_add_ctrl_dev(struct virtio_device *vdev) { struct virtproc_info *vrp = vdev->priv; struct virtio_rpmsg_channel *vch; struct rpmsg_device *rpdev_ctrl; int err = 0; vch = kzalloc(sizeof(*vch), GFP_KERNEL); if (!vch) return ERR_PTR(-ENOMEM); /* Link the channel to the vr...
1
225,823
void fpar_box_del(GF_Box *s) { FilePartitionBox *ptr = (FilePartitionBox *)s; if (ptr == NULL) return; if (ptr->scheme_specific_info) gf_free(ptr->scheme_specific_info); if (ptr->entries) gf_free(ptr->entries); gf_free(ptr);
0
513,286
Field *Item::create_field_for_schema(THD *thd, TABLE *table) { if (field_type() == MYSQL_TYPE_VARCHAR) { Field *field; if (max_length > MAX_FIELD_VARCHARLENGTH) field= new Field_blob(max_length, maybe_null, name, collation.collation); else field= new Field_varstring(max_length, maybe_null, n...
0
219,958
int callback_glewlwyd_user_delete_profile (const struct _u_request * request, struct _u_response * response, void * user_data) { struct config_elements * config = (struct config_elements *)user_data; int ret = G_OK; const char * username = json_string_value(json_object_get((json_t *)response->shared_data, "userna...
0
427,802
static int sev_launch_update_vmsa(struct kvm *kvm, struct kvm_sev_cmd *argp) { struct kvm_vcpu *vcpu; int i, ret; if (!sev_es_guest(kvm)) return -ENOTTY; kvm_for_each_vcpu(i, vcpu, kvm) { ret = mutex_lock_killable(&vcpu->mutex); if (ret) return ret; ret = __sev_launch_update_vmsa(kvm, vcpu, &argp->err...
0
225,388
static int vidioc_s_std(struct file *file, void *fh, v4l2_std_id *_std) { v4l2_std_id req_std = 0, supported_std = 0; const v4l2_std_id all_std = V4L2_STD_ALL, no_std = 0; if (_std) { req_std = *_std; *_std = all_std; } /* we support everything in V4L2_STD_ALL, but not more... */ supported_std = (all_std & ...
0
246,745
void PrintGeneralUsage() { u32 i=0; gf_sys_format_help(helpout, help_flags, "# General Options\n" "MP4Box is a multimedia packager, with a vast number of functionalities: conversion, splitting, hinting, dumping, DASH-ing, encryption, transcoding and others.\n" "MP4Box provides a large set of options, classified b...
0
230,393
PJ_DEF(pj_xml_node*) pj_xml_find_rec( const pj_xml_node *parent, const pj_str_t *name, const void *data, pj_bool_t (*match)(const pj_xml_node*, const void*)) { const pj_xml_node *node = (const pj_xml_node *)parent->node_head.next; if (!name && !match) return NULL; ...
0
328,945
R_API void r_bin_java_get_field_json_definition(RBinJavaObj *bin, RBinJavaField *fm_type, PJ *pj) { r_bin_java_get_fm_type_definition_json (bin, fm_type, pj, 0); }
0
270,115
inline TfLiteStatus Quantize(TfLiteContext* context, float scale, int32_t zero_point, float f, int32_t& q) { const float tmp = TfLiteRound(f / scale); const bool no_integer_overflow_from_quantization = (tmp >= static_cast<float>(std::numeric_limits<int32_t>::min()) && tmp <...
0
454,746
static void ismt_remove(struct pci_dev *pdev) { struct ismt_priv *priv = pci_get_drvdata(pdev); i2c_del_adapter(&priv->adapter); }
0
222,514
std::vector<string> FunctionLibraryDefinition::ListFunctionNames() const { std::vector<string> function_names; tf_shared_lock l(mu_); function_names.reserve(function_defs_.size()); for (const auto& it : function_defs_) { function_names.emplace_back(it.first); } return function_names; }
0
336,517
void reds_marshall_migrate_data(RedsState *reds, SpiceMarshaller *m) { SpiceMigrateDataMain mig_data; RedCharDeviceVDIPort *agent_dev = reds->agent_dev.get(); SpiceMarshaller *m2; memset(&mig_data, 0, sizeof(mig_data)); spice_marshaller_add_uint32(m, SPICE_MIGRATE_DATA_MAIN_MAGIC); spice_marsha...
0
238,651
int bpf_check_attach_target(struct bpf_verifier_log *log, const struct bpf_prog *prog, const struct bpf_prog *tgt_prog, u32 btf_id, struct bpf_attach_target_info *tgt_info) { bool prog_extension = prog->type == BPF_PROG_TYPE_EXT; const char prefix[] = "btf_trace_"; int ret = 0, subprog = ...
0
294,534
d_lite_prev_year(int argc, VALUE *argv, VALUE self) { VALUE n; rb_scan_args(argc, argv, "01", &n); if (argc < 1) n = INT2FIX(1); return d_lite_lshift(self, f_mul(n, INT2FIX(12))); }
0
218,775
MagickExport void XListBrowserWidget(Display *display,XWindows *windows, XWindowInfo *window_info,const char *const *list,const char *action, const char *query,char *reply) { #define CancelButtonText "Cancel" char primary_selection[MaxTextExtent]; int x; int i; static MagickStatusType m...
0
500,639
static sftp_ext sftp_ext_new(void) { sftp_ext ext; ext = malloc(sizeof(struct sftp_ext_struct)); if (ext == NULL) { return NULL; } ZERO_STRUCTP(ext); return ext; }
0
225,601
GF_Err audio_sample_entry_box_size(GF_Box *s) { u32 pos=0; GF_MPEGAudioSampleEntryBox *ptr = (GF_MPEGAudioSampleEntryBox *)s; gf_isom_audio_sample_entry_size((GF_AudioSampleEntryBox*)s); if (ptr->qtff_mode) return GF_OK; gf_isom_check_position(s, (GF_Box *)ptr->esd, &pos); gf_isom_check_position(s, (GF_Box *)p...
0
509,560
int ha_maria::rename_table(const char *from, const char *to) { THD *thd= current_thd; (void) translog_log_debug_info(0, LOGREC_DEBUG_INFO_QUERY, (uchar*) thd->query(), thd->query_length()); return maria_rename(from, to); }
0
234,876
static int read_user_chunk_callback(png_struct *ping, png_unknown_chunkp chunk) { Image *image; /* The unknown chunk structure contains the chunk data: png_byte name[5]; png_byte *data; png_size_t size; Note that libpng has already taken care of the CRC handling. Returns one of the ...
0
344,238
l_sinline int LTnum (const TValue *l, const TValue *r) { lua_assert(ttisnumber(l) && ttisnumber(r)); if (ttisinteger(l)) { lua_Integer li = ivalue(l); if (ttisinteger(r)) return li < ivalue(r); /* both are integers */ else /* 'l' is int and 'r' is float */ return LTintfloat(li, fltvalue(r)...
0
195,668
gen_values(codegen_scope *s, node *t, int val, int limit) { int n = 0; int first = 1; int slimit = GEN_VAL_STACK_MAX; if (limit == 0) limit = GEN_LIT_ARY_MAX; if (cursp() >= slimit) slimit = INT16_MAX; if (!val) { while (t) { codegen(s, t->car, NOVAL); n++; t = t->cdr; } retu...
1
336,520
static RedsMigTargetClient* reds_mig_target_client_find(RedsState *reds, RedClient *client) { GList *l; for (l = reds->mig_target_clients; l != NULL; l = l->next) { RedsMigTargetClient *mig_client = (RedsMigTargetClient*) l->data; if (mig_client->client == client) { return mig_clie...
0
512,888
bool Item_func_in::list_contains_null() { Item **arg,**arg_end; for (arg= args + 1, arg_end= args+arg_count; arg != arg_end ; arg++) { if ((*arg)->null_inside()) return 1; } return 0; }
0
319,421
static inline MagickBooleanType IsFloatDefined(const float value) { union { unsigned int unsigned_value; double float_value; } quantum; quantum.unsigned_value=0U; quantum.float_value=value; if (quantum.unsigned_value == 0U) return(MagickFalse); return(MagickTrue); }
0
513,205
static int item_val_int(struct st_mysql_value *value, long long *buf) { Item *item= ((st_item_value_holder*)value)->item; *buf= item->val_int(); if (item->is_null()) return 1; return 0; }
0
513,005
bool fix_fields_if_needed_for_bool(THD *thd, Item **ref) { return fix_fields_if_needed_for_scalar(thd, ref); }
0
240,275
getreg_wrap_one_line(char_u *s, int flags) { if (flags & GREG_LIST) { list_T *list = list_alloc(); if (list != NULL) { if (list_append_string(list, NULL, -1) == FAIL) { list_free(list); return NULL; } list->lv_first->li_tv.vval.v_string = s; } return (char_u *)list; } retur...
0
312,542
ex_cclose(exarg_T *eap) { win_T *win = NULL; qf_info_T *qi; if ((qi = qf_cmd_get_stack(eap, FALSE)) == NULL) return; // Find existing quickfix window and close it. win = qf_find_win(qi); if (win != NULL) win_close(win, FALSE); }
0
226,102
void sgpd_del_entry(u32 grouping_type, void *entry) { switch (grouping_type) { case GF_ISOM_SAMPLE_GROUP_SYNC: case GF_ISOM_SAMPLE_GROUP_ROLL: case GF_ISOM_SAMPLE_GROUP_PROL: case GF_ISOM_SAMPLE_GROUP_RAP: case GF_ISOM_SAMPLE_GROUP_TELE: case GF_ISOM_SAMPLE_GROUP_SAP: gf_free(entry); return; case GF_ISOM_S...
0
246,494
static bool append_rets(RStrBuf *sb, RBinWasmTypeVec *rets) { bool ret = true; if (!rets->count) { ret &= r_strbuf_append (sb, "nil"); } else if (rets->count == 1) { ret &= r_strbuf_append (sb, r_bin_wasm_valuetype_to_string (rets->types[0])); } else { ret &= strbuf_append_type_vec (sb, rets); } return ret;...
0
313,847
nv_Undo(cmdarg_T *cap) { // In Visual mode and typing "gUU" triggers an operator if (cap->oap->op_type == OP_UPPER || VIsual_active) { // translate "gUU" to "gUgU" cap->cmdchar = 'g'; cap->nchar = 'U'; nv_operator(cap); } else if (!checkclearopq(cap->oap)) { u_undoline(); curwin->w_set_cur...
0
516,253
static void failover_add_primary(VirtIONet *n, Error **errp) { Error *err = NULL; QemuOpts *opts; char *id; DeviceState *dev = failover_find_primary_device(n); if (dev) { return; } id = failover_find_primary_device_id(n); if (!id) { error_setg(errp, "Primary device not ...
0
276,902
static uint get_alen(char *arg, uint default_len) { uint j; uint alen; alen = default_len; for (j = 0; j < 8; j++) { if (arg[j] == '.') { alen = arg[j+1] - '0'; break; } else if (arg[j] == '\0') break; } return alen; }
0
246,646
static void naludmx_finalize_au_flags(GF_NALUDmxCtx *ctx) { u64 ts; Bool is_rap = GF_FALSE; if (!ctx->first_pck_in_au) return; if (ctx->au_sap) { gf_filter_pck_set_sap(ctx->first_pck_in_au, ctx->au_sap); if ((ctx->au_sap == GF_FILTER_SAP_1) || ctx->au_sap2_poc_reset) { ctx->dts_last_IDR = gf_filter_pck_ge...
0
417,133
void PlayerGeneric::setPatternPos(mp_uint32 pos, mp_uint32 row/* = 0*/, bool resetChannels/* = true*/, bool resetFXMemory/* = true*/) { if (player) player->setPatternPos(pos, row, resetChannels, resetFXMemory); }
0
391,648
NTSTATUS change_dir_owner_to_parent(connection_struct *conn, const char *inherit_from_dir, const char *fname, SMB_STRUCT_STAT *psbuf) { struct smb_filename *smb_fname_parent; struct smb_filename *smb_fname_cwd = NULL; char *saved_dir = NULL; TALLOC_CTX *ctx = talloc_tos(); NTSTATUS...
0
276,972
SampleEncrypter::Create(const AP4_UI08* key, const AP4_UI08* iv, SampleEncrypter*& encrypter) { encrypter = NULL; AP4_BlockCipher* block_cipher = NULL; AP4_Result result = AP4_DefaultBlockCipherFactory::Instance.CreateCipher(AP4_BlockCipher::AES_128, ...
0
314,468
static bool FNAME(gpte_changed)(struct kvm_vcpu *vcpu, struct guest_walker *gw, int level) { pt_element_t curr_pte; gpa_t base_gpa, pte_gpa = gw->pte_gpa[level - 1]; u64 mask; int r, index; if (level == PG_LEVEL_4K) { mask = PTE_PREFETCH_NUM * sizeof(pt_element_t) - 1; base_gpa = pte_gpa & ~mask; index ...
0
261,886
njs_string_prototype_to_lower_case(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { size_t size, length; u_char *p; uint32_t code; njs_int_t ret; const u_char *s, *end; njs_string_prop_t string; ret = njs_string_o...
0
275,939
uECC_VLI_API void uECC_vli_bytesToNative(uECC_word_t *native, const uint8_t *bytes, int num_bytes) { wordcount_t i; uECC_vli_clear(native, (num_bytes + (uECC_WORD_SIZE - 1)) / uECC_WORD_SIZE); for (i = 0; i < num_bytes; ++i) {...
0
512,713
const Type_handler *type_handler() const { return Type_handler::blob_type_handler(max_length); }
0
424,979
static u32 iwl_trans_pcie_dump_rbs(struct iwl_trans *trans, struct iwl_fw_error_dump_data **data, int allocated_rb_nums) { struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); int max_len = PAGE_SIZE << trans_pcie->rx_page_order; /* Dump RBs is supported only for pre-9000 devices (1 que...
0