idx
int64
func
string
target
int64
509,968
prepare_JPEGTables(TIFF* tif) { JPEGState* sp = JState(tif); /* Initialize quant tables for current quality setting */ if (!TIFFjpeg_set_quality(sp, sp->jpegquality, FALSE)) return (0); /* Mark only the tables we want for output */ /* NB: chrominance tables are currently used only with YCbCr */ if (!TIFFjpeg_s...
0
211,813
void RenderWidgetHostViewAura::ScrollOffsetChanged() { aura::Window* root = window_->GetRootWindow(); if (!root) return; aura::client::CursorClient* cursor_client = aura::client::GetCursorClient(root); if (cursor_client && !cursor_client->IsCursorVisible()) cursor_client->DisableMouseEvents(); }
0
295,396
check_symlinks(struct archive_write_disk *a) { struct archive_string error_string; int error_number; int rc; archive_string_init(&error_string); rc = check_symlinks_fsobj(a->name, &error_number, &error_string, a->flags); if (rc != ARCHIVE_OK) { archive_set_error(&a->archive, error_number, "%s", error_string.s);...
0
130,874
int enc_untrusted_fsetxattr(int fd, const char *name, const void *value, size_t size, int flags) { return EnsureInitializedAndDispatchSyscall(asylo::system_call::kSYS_fsetxattr, fd, name, value, size, flags); }
0
319,802
static void dss_sp_scale_vector(int32_t *vec, int bits, int size) { int i; if (bits < 0) for (i = 0; i < size; i++) vec[i] = vec[i] >> -bits; else for (i = 0; i < size; i++) vec[i] = vec[i] << bits; }
1
108,771
*/ static int wddx_stack_destroy(wddx_stack *stack) { register int i; if (stack->elements) { for (i = 0; i < stack->top; i++) { if (Z_TYPE(((st_entry *)stack->elements[i])->data) != IS_UNDEF && ((st_entry *)stack->elements[i])->type != ST_FIELD) { zval_ptr_dtor(&((st_entry *)stack->elements[i])->data)...
0
35,418
poly_overabove(PG_FUNCTION_ARGS) { POLYGON *polya = PG_GETARG_POLYGON_P(0); POLYGON *polyb = PG_GETARG_POLYGON_P(1); bool result; result = polya->boundbox.low.y >= polyb->boundbox.low.y; /* * Avoid leaking memory for toasted inputs ... needed for rtree indexes */ PG_FREE_IF_COPY(polya, 0); PG_FREE_I...
0
182,060
mux_master_control_cleanup_cb(int cid, void *unused) { Channel *sc, *c = channel_by_id(cid); debug3("%s: entering for channel %d", __func__, cid); if (c == NULL) fatal("%s: channel_by_id(%i) == NULL", __func__, cid); if (c->remote_id != -1) { if ((sc = channel_by_id(c->remote_id)) == NULL) fatal("%s: channe...
0
148,831
void msre_engine_reqbody_processor_register(msre_engine *engine, const char *name, void *fn_init, void *fn_process, void *fn_complete) { msre_reqbody_processor_metadata *metadata = (msre_reqbody_processor_metadata *)apr_pcalloc(engine->mp, sizeof(msre_reqbody_processor_metadata)); if (m...
0
12,521
void HostPortAllocatorSession::SendSessionRequest(const std::string& host, int port) { GURL url("https://" + host + ":" + base::IntToString(port) + GetSessionRequestUrl() + "&sn=1"); scoped_ptr<UrlFetcher> url_fetcher(new UrlFetcher(url, UrlFetcher::GE...
1
306,608
int jemalloc_purge() { return 0; }
0
235,806
void ExtensionPrefs::DeleteExtensionPrefs(const std::string& extension_id) { extension_pref_value_map_->UnregisterExtension(extension_id); content_settings_store_->UnregisterExtension(extension_id); DictionaryPrefUpdate update(prefs_, kExtensionsPref); DictionaryValue* dict = update.Get(); if (dict->HasKey(ex...
0
444,079
TEST_F(HttpConnectionManagerImplTest, StartAndFinishSpanNormalFlowEgressDecoratorPropagateFalse) { setup(false, ""); envoy::type::v3::FractionalPercent percent1; percent1.set_numerator(100); envoy::type::v3::FractionalPercent percent2; percent2.set_numerator(10000); percent2.set_denominator(envoy::type::v3:...
0
20,635
static int32_t U_CALLCONV uprv_copyArray64 ( const UDataSwapper * ds , const void * inData , int32_t length , void * outData , UErrorCode * pErrorCode ) { if ( pErrorCode == NULL || U_FAILURE ( * pErrorCode ) ) { return 0 ; } if ( ds == NULL || inData == NULL || length < 0 || ( length & 7 ) != 0 || outData == NULL ...
0
140,594
QPDF::resolve(int objid, int generation) { // Check object cache before checking xref table. This allows us // to insert things into the object cache that don't actually // exist in the file. QPDFObjGen og(objid, generation); if (this->m->resolving.count(og)) { // This can happen if an ...
0
133,818
void xen_netbk_queue_tx_skb(struct xenvif *vif, struct sk_buff *skb) { struct xen_netbk *netbk = vif->netbk; skb_queue_tail(&netbk->rx_queue, skb); xen_netbk_kick_thread(netbk); }
0
336,090
int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) { int pqindex, lowquant; int status; int mbmodetab, imvtab, icbptab, twomvbptab, fourmvbptab; /* useful only for debugging */ int field_mode, fcm; v->numref = 0; v->p_frame_skipped = 0; if (v->second_field...
1
139,577
static int git_tcp_connect_sock(char *host, int flags) { struct strbuf error_message = STRBUF_INIT; int sockfd = -1; const char *port = STR(DEFAULT_GIT_PORT); char *ep; struct hostent *he; struct sockaddr_in sa; char **ap; unsigned int nport; int cnt; get_host_and_port(&host, &port); if (flags & CONNECT_VE...
0
354,402
static int put_compat_statfs64(struct compat_statfs64 __user *ubuf, struct kstatfs *kbuf) { if (sizeof ubuf->f_blocks == 4) { if ((kbuf->f_blocks | kbuf->f_bfree | kbuf->f_bavail) & 0xffffffff00000000ULL) return -EOVERFLOW; /* f_files and f_ffree may be -1; it's okay * to stuff that into 32 bits */ i...
0
106,177
void preproc_clean_run(void) { int max_pids=32769; int start_pid = 100; // extract real max_pids FILE *fp = fopen("/proc/sys/kernel/pid_max", "r"); if (fp) { int val; if (fscanf(fp, "%d", &val) == 1) { if (val > 4194304) // this is the max value supported on 64 bit Linux kernels val = 4194304; if (va...
0
23,290
static UBool CnvExtAddTable ( NewConverter * cnvData , UCMTable * table , UConverterStaticData * staticData ) { CnvExtData * extData ; if ( table -> unicodeMask & UCNV_HAS_SURROGATES ) { fprintf ( stderr , "error: contains mappings for surrogate code points\n" ) ; return FALSE ; } staticData -> conversionType = U...
0
45,115
static void f2fs_dio_submit_bio(struct bio *bio, struct inode *inode, loff_t file_offset) { struct f2fs_private_dio *dio; bool write = (bio_op(bio) == REQ_OP_WRITE); dio = f2fs_kzalloc(F2FS_I_SB(inode), sizeof(struct f2fs_private_dio), GFP_NOFS); if (!dio) goto out; dio->inode = inode; dio->orig_end...
0
159,851
double ytr( image_desc_t *im, double value) { static double pixie; double yval; if (isnan(value)) { if (!im->logarithmic) pixie = (double) im->ysize / (im->maxval - im->minval); else pixie = (double) im->ysize / (log10(im->maxval) - log10(i...
0
228,793
void Browser::MoveContents(TabContents* source, const gfx::Rect& pos) { if ((type() & TYPE_POPUP) == 0) { NOTREACHED() << "moving invalid browser type"; return; } window_->SetBounds(pos); }
0
396,213
int stop_lru_maintainer_thread(void) { int ret; pthread_mutex_lock(&lru_maintainer_lock); /* LRU thread is a sleep loop, will die on its own */ do_run_lru_maintainer_thread = 0; pthread_mutex_unlock(&lru_maintainer_lock); if ((ret = pthread_join(lru_maintainer_tid, NULL)) != 0) { fprintf...
0
306,662
DECLARESepPutFunc(putRGBseparate16bittile) { uint16 *wr = (uint16*) r; uint16 *wg = (uint16*) g; uint16 *wb = (uint16*) b; (void) img; (void) y; (void) a; for( ; h > 0; --h) { for (x = 0; x < w; x++) *cp++ = PACK(img->Bitdepth16To8[*wr++], img->Bitdepth16To8[*wg++], img->Bitdepth16To8[*wb++]); ...
0
464,766
static void v4l_print_ext_controls(const void *arg, bool write_only) { const struct v4l2_ext_controls *p = arg; int i; pr_cont("which=0x%x, count=%d, error_idx=%d, request_fd=%d", p->which, p->count, p->error_idx, p->request_fd); for (i = 0; i < p->count; i++) { unsigned int id = p->controls[i].id; const ch...
0
205,091
CStarter::ShutdownFast( void ) { bool jobRunning = false; UserProc *job; dprintf(D_ALWAYS, "ShutdownFast all jobs.\n"); if ( this->deferral_tid != -1 ) { this->removeDeferredJobs(); } m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { if ( job->ShutdownFast() ) { m_job_list.DeleteCurrent...
0
208,663
void CairoImageOutputDev::drawMaskedImage(GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, Stream *maskStr, int maskWidth, int maskHeight, GBool maskInvert) { cairo_t *cr; cairo_surface_t *surface; double x1, y1, x2, y2; double *ctm...
0
87,354
int nfc_genl_fw_download_done(struct nfc_dev *dev, const char *firmware_name, u32 result) { struct sk_buff *msg; void *hdr; msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); if (!msg) return -ENOMEM; hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, NFC_CMD_FW_DOWNLOAD); if (!hdr) goto free_msg...
0
200,404
WallpaperManagerBrowserTest() : controller_(NULL), local_state_(NULL) { }
0
311,770
void Clipboard::WriteWebSmartPaste() { InsertMapping(kMimeTypeWebkitSmartPaste, NULL, 0); }
0
286,507
limit_bandwidth (wgint bytes, struct ptimer *timer) { double delta_t = ptimer_read (timer) - limit_data.chunk_start; double expected; limit_data.chunk_bytes += bytes; /* Calculate the amount of time we expect downloading the chunk should take. If in reality it took less time, sleep to compensate fo...
0
233,550
static int aesni_cbc_hmac_sha256_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t len) { EVP_AES_HMAC_SHA256 *key = data(ctx); unsigned int l; size_t plen = key->payload_length, iv = 0, /* explicit...
0
118,386
static unsigned long xen_get_debugreg(int reg) { return HYPERVISOR_get_debugreg(reg); }
0
324,758
static uint16_t pci_req_id_cache_extract(PCIReqIDCache *cache) { uint8_t bus_n; uint16_t result; switch (cache->type) { case PCI_REQ_ID_BDF: result = pci_get_bdf(cache->dev); break; case PCI_REQ_ID_SECONDARY_BUS: bus_n = pci_bus_num(cache->dev->bus); resul...
0
419,165
format_defaults_winlink(struct format_tree *ft, struct winlink *wl) { struct client *c = ft->c; struct session *s = wl->session; struct window *w = wl->window; int flag; u_int ox, oy, sx, sy; if (ft->w == NULL) ft->w = wl->window; ft->wl = wl; format_defaults_window(ft, w); if (c != NULL) { flag = t...
0
469,430
void udp_detach(struct socket *so) { so->slirp->cb->unregister_poll_fd(so->s, so->slirp->opaque); closesocket(so->s); sofree(so); }
0
440,381
PS_SERIALIZER_DECODE_FUNC(php_binary) /* {{{ */ { const char *p; const char *endptr = val + vallen; int namelen; zend_string *name; php_unserialize_data_t var_hash; zval *current, rv; PHP_VAR_UNSERIALIZE_INIT(var_hash); for (p = val; p < endptr; ) { namelen = ((unsigned char)(*p)) & (~PS_BIN_UNDEF); if (...
0
172,213
static void coin_cleanup(void* c) { uivector_cleanup(&((Coin*)c)->symbols); }
0
205,402
native_handle* Parcel::readNativeHandle() const { int numFds, numInts; status_t err; err = readInt32(&numFds); if (err != NO_ERROR) return 0; err = readInt32(&numInts); if (err != NO_ERROR) return 0; native_handle* h = native_handle_create(numFds, numInts); if (!h) { return 0; } for (int i=0 ; err...
0
40,490
ASC_setPresentationAddresses(T_ASC_Parameters * params, const char* callingPresentationAddress, const char* calledPresentationAddress) { if (callingPresentationAddress) OFStandard::strlcpy(params->DULparams.callingPresentationAddress, ...
0
238,839
png_get_rows(png_structp png_ptr, png_infop info_ptr) { if (png_ptr != NULL && info_ptr != NULL) return(info_ptr->row_pointers); else return(0); }
0
275,543
PHP_FUNCTION(openssl_x509_fingerprint) { X509 *cert; zval **zcert; long certresource; zend_bool raw_output = 0; char *method = "sha1"; int method_len; char *fingerprint; int fingerprint_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|sb", &zcert, &method, &method_len, &raw_output) == FAILURE) { ...
0
315,215
virtual bool ShouldRemoveSelectOnChange() const { return false; }
0
157,559
static ZIPARCHIVE_METHOD(renameName) { struct zip *intern; zval *self = getThis(); struct zip_stat sb; char *name, *new_name; size_t name_len, new_name_len; if (!self) { RETURN_FALSE; } ZIP_FROM_OBJECT(intern, self); if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &name, &name_len, &new_name, &new_name_l...
0
78,050
userauth_pubkey(Authctxt *authctxt) { Identity *id; int sent = 0; while ((id = TAILQ_FIRST(&authctxt->keys))) { if (id->tried++) return (0); /* move key to the end of the queue */ TAILQ_REMOVE(&authctxt->keys, id, next); TAILQ_INSERT_TAIL(&authctxt->keys, id, next); /* * send a test message if we ha...
0
30,676
static void remap_codebooks ( RoqContext * enc , RoqTempdata * tempData ) { int i , j , idx = 0 ; for ( i = 0 ; i < MAX_CBS_4x4 ; i ++ ) { if ( tempData -> codebooks . usedCB4 [ i ] ) { tempData -> i2f4 [ i ] = idx ; tempData -> f2i4 [ idx ] = i ; for ( j = 0 ; j < 4 ; j ++ ) tempData -> codebooks . usedCB2 [...
0
171,506
status_t ProCamera2Client::getCameraInfo(int cameraId, /*out*/ camera_metadata** info) { if (cameraId != mCameraId) { return INVALID_OPERATION; } Mutex::Autolock icl(mBinderSerializationLock); if (!mDevice.get()) return DEAD_OBJECT; CameraMetadata deviceInfo = mDevice-...
0
293,923
static unsigned int comedi_poll(struct file *file, poll_table * wait) { unsigned int mask = 0; const unsigned minor = iminor(file->f_dentry->d_inode); struct comedi_device_file_info *dev_file_info = comedi_get_device_file_info(minor); struct comedi_device *dev = dev_file_info->device; struct comedi_subdevice ...
0
159,870
static inline void set_page_pfmemalloc(struct page *page) { page->index = -1UL; }
0
71,582
static int vcpu_enter_guest(struct kvm_vcpu *vcpu) { int r; bool req_int_win = dm_request_for_irq_injection(vcpu) && kvm_cpu_accept_dm_intr(vcpu); fastpath_t exit_fastpath; bool req_immediate_exit = false; /* Forbid vmenter if vcpu dirty ring is soft-full */ if (unlikely(vcpu->kvm->dirty_ring_size && ...
0
303,837
size_t node_def_count() const override { return graph_def_.node().size(); }
0
194,455
void AudioRendererHost::OnCreateStream( int stream_id, const media::AudioParameters& params, int input_channels) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); // media::AudioParameters is validated in the deserializer. if (input_channels < 0 || input_channels > media::limits::kMaxChannels ...
0
284,325
int ssl3_get_server_hello(SSL *s) { STACK_OF(SSL_CIPHER) *sk; const SSL_CIPHER *c; CERT *ct = s->cert; unsigned char *p,*d; int i,al=SSL_AD_INTERNAL_ERROR,ok; unsigned int j; long n; #ifndef OPENSSL_NO_COMP SSL_COMP *comp; #endif /* Hello verify request and/or server hello version may not * match so set fir...
0
219,980
void TabStripModel::RemoveObserver(TabStripModelObserver* observer) { observers_.RemoveObserver(observer); }
0
313,181
static void WriteBodyHTMLTable( SQLHSTMT hStmt ) { SQLINTEGER nCol = 0; SQLSMALLINT nColumns = 0; SQLLEN nIndicator = 0; SQLTCHAR szColumnValue[MAX_DATA_WIDTH+1]; SQLRETURN nReturn ...
0
178,556
static int adev_open(const hw_module_t* module, const char* name, hw_device_t** device) { struct a2dp_audio_device *adev; int ret; INFO(" adev_open in A2dp_hw module"); FNLOG(); if (strcmp(name, AUDIO_HARDWARE_INTERFACE) != 0) { ERROR("interface %s not matching [%s]", name, AUDIO_HARDWARE_INTERFA...
0
37,628
void fsck_set_msg_types(struct fsck_options *options, const char *values) { char *buf = xstrdup(values), *to_free = buf; int done = 0; while (!done) { int len = strcspn(buf, " ,|"), equal; done = !buf[len]; if (!len) { buf++; continue; } buf[len] = '\0'; for (equal = 0; equal < len && buf...
0
499,200
static void hevc_await_progress(HEVCContext *s, HEVCFrame *ref, const Mv *mv, int y0, int height) { int y = (mv->y >> 2) + y0 + height + 9; ff_thread_await_progress(&ref->tf, y, 0); }
0
380,940
static CURLcode parse_url_login(struct SessionHandle *data, struct connectdata *conn, char **user, char **passwd, char **options) { CURLcode result = CURLE_OK; char *userp = NULL; char *passwdp = NULL; char *optionsp = NULL; /* At this point, we...
0
106,551
file_printedlen(const struct magic_set *ms) { return ms->o.buf == NULL ? 0 : strlen(ms->o.buf); }
0
69,749
static void *sysvipc_proc_next(struct seq_file *s, void *it, loff_t *pos) { struct ipc_proc_iter *iter = s->private; struct ipc_proc_iface *iface = iter->iface; struct kern_ipc_perm *ipc = it; /* If we had an ipc id locked before, unlock it */ if (ipc && ipc != SEQ_START_TOKEN) ipc_unlock(ipc); return sysvipc...
0
33,238
md_analyze_inlines(MD_CTX* ctx, const MD_LINE* lines, int n_lines, int table_mode) { int ret; /* Reset the previously collected stack of marks. */ ctx->n_marks = 0; /* Collect all marks. */ MD_CHECK(md_collect_marks(ctx, lines, n_lines, table_mode)); /* We analyze marks in few groups to handl...
0
89,238
static void find_good_pkt_pointers(struct bpf_verifier_state *vstate, struct bpf_reg_state *dst_reg, enum bpf_reg_type type, bool range_right_open) { u16 new_range; int i; if (dst_reg->off < 0 || (dst_reg->off == 0 && range_right_open)) /* This doesn't give us any range */ return; if...
0
11,045
std::string SanitizeFrontendPath(const std::string& path) { for (size_t i = 0; i < path.length(); i++) { if (path[i] != '/' && path[i] != '-' && path[i] != '_' && path[i] != '.' && path[i] != '@' && !(path[i] >= '0' && path[i] <= '9') && !(path[i] >= 'a' && path[i] <= 'z') && !(pat...
1
31,390
HeaderTableRecord::HeaderTableRecord(const char *n) : name(n), id(HdrType::BAD_HDR), type(HdrFieldType::ftInvalid), list(false), request(false), reply(false), hopbyhop(false), denied304(false) {}
0
40,965
QPDFWriter::writeStringNoQDF(std::string const& str) { if (! this->qdf_mode) { writeString(str); } }
0
299,729
static void dtls1_set_handshake_header(SSL *s, int htype, unsigned long len) { unsigned char *p = (unsigned char *)s->init_buf->data; dtls1_set_message_header(s, p, htype, len, 0, len); s->init_num = (int)len + DTLS1_HM_HEADER_LENGTH; s->init_off = 0; /* Buffer the message to handle re-xmits */ dtls1_buffer_mess...
0
411,699
CImg<T>& _load_pandore(std::FILE *const file, const char *const filename) { #define __cimg_load_pandore_case(nbdim,nwidth,nheight,ndepth,ndim,stype) \ cimg::fread(dims,nbdim,nfile); \ if (endian) cimg::invert_endianness(dims,nbdim); \ assign(nwidth,nheight,ndepth,ndim); \ const size...
0
43,023
static void io_free_file_tables(struct io_file_table *table) { kvfree(table->files); table->files = NULL;
0
121,140
int snd_ctl_unregister_ioctl(snd_kctl_ioctl_func_t fcn) { return _snd_ctl_unregister_ioctl(fcn, &snd_control_ioctls); }
0
317,079
RenderFrameHost* WebContentsImpl::GetFocusedFrameIncludingInnerWebContents() { WebContentsImpl* contents = this; FrameTreeNode* focused_node = contents->frame_tree_.GetFocusedFrame(); if (!focused_node) return nullptr; while (true) { contents = contents->node_.GetInnerWebContentsInFrame(focused_node)...
0
23,235
char * add_var ( struct ctl_var * * kv , u_long size , u_short def ) { u_short c ; struct ctl_var * k ; char * buf ; c = count_var ( * kv ) ; * kv = erealloc ( * kv , ( c + 2 ) * sizeof ( * * kv ) ) ; k = * kv ; buf = emalloc ( size ) ; k [ c ] . code = c ; k [ c ] . text = buf ; k [ c ] . flags = def ; k [ ...
0
274,687
void add_map_inc_bl(epoch_t e, bufferlist& bl) { return service.add_map_inc_bl(e, bl); }
0
280,624
void PrintPreviewDataService::RemoveEntry( void PrintPreviewDataService::RemoveEntry(int32 preview_ui_id) { data_store_map_.erase(preview_ui_id); }
0
268,923
static u16 llcp_tlv_wks(u8 *tlv) { return llcp_tlv16(tlv, LLCP_TLV_WKS); }
0
439,913
ipmi_lan_set_vlan_id(struct ipmi_intf *intf, uint8_t chan, char *string) { struct lan_param *p; uint8_t data[2]; int rc = -1; if (!string) { /* request to disable VLAN */ lprintf(LOG_DEBUG, "Get current VLAN ID from BMC."); p = get_lan_param(intf, chan, IPMI_LANP_VLAN_ID); if (p && p->data && p->data_len > ...
0
513,757
napi_status napi_get_named_property(napi_env env, napi_value object, const char* utf8name, napi_value* result) { NAPI_PREAMBLE(env); CHECK_ARG(env, result); v8::Local<v8::Context> context = env->context();...
0
114,742
static int sctp_listen_start(struct sock *sk, int backlog) { struct sctp_sock *sp = sctp_sk(sk); struct sctp_endpoint *ep = sp->ep; struct crypto_hash *tfm = NULL; char alg[32]; /* Allocate HMAC for generating cookie. */ if (!sp->hmac && sp->sctp_hmac_alg) { sprintf(alg, "hmac(%s)", sp->sctp_hmac_alg); tfm =...
0
386,363
PHP_FUNCTION(xsl_xsltprocessor_get_parameter) { zval *id; int name_len = 0, namespace_len = 0; char *name, *namespace; zval **value; xsl_object *intern; DOM_GET_THIS(id); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &namespace, &namespace_len, &name, &name_len) == FAILURE) { RETURN_FALSE; } i...
0
405,470
void zone_pcp_reset(struct zone *zone) { unsigned long flags; int cpu; struct per_cpu_pageset *pset; /* avoid races with drain_pages() */ local_irq_save(flags); if (zone->pageset != &boot_pageset) { for_each_online_cpu(cpu) { pset = per_cpu_ptr(zone->pageset, cpu); drain_zonestat(zone, pset); } free...
0
453,652
postalAddressValidate( Syntax *syntax, struct berval *in ) { struct berval bv = *in; ber_len_t c; for ( c = 0; c < in->bv_len; c++ ) { if ( in->bv_val[c] == '\\' ) { c++; if ( strncasecmp( &in->bv_val[c], "24", STRLENOF( "24" ) ) != 0 && strncasecmp( &in->bv_val[c], "5C", STRLENOF( "5C" ) ) != 0 ) ...
0
150,405
Buf EncryptedWriteRecordLayer::getBufToEncrypt(folly::IOBufQueue& queue) const { if (queue.front()->length() > maxRecord_) { return queue.splitAtMost(maxRecord_); } else if (queue.front()->length() >= desiredMinRecord_) { return queue.pop_front(); } else { return queue.splitAtMost(desiredMinRecord_); ...
0
1,245
static int vc1_decode_p_mb ( VC1Context * v ) { MpegEncContext * s = & v -> s ; GetBitContext * gb = & s -> gb ; int i , j ; int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ; int cbp ; int mqdiff , mquant ; int ttmb = v -> ttfrm ; int mb_has_coeffs = 1 ; int dmv_x , dmv_y ; int index , index1 ; int val ,...
1
311,947
ecc_generate (const gcry_sexp_t genparms, gcry_sexp_t *r_skey) { gpg_err_code_t rc; unsigned int nbits; elliptic_curve_t E; ECC_secret_key sk; gcry_mpi_t Gx = NULL; gcry_mpi_t Gy = NULL; gcry_mpi_t Qx = NULL; gcry_mpi_t Qy = NULL; char *curve_name = NULL; gcry_sexp_t l1; mpi_ec_t ctx = NULL; gcr...
0
287,658
static int find_high_bit(unsigned int x) { int i; for(i=31;i>=0;i--) { if(x&(1<<i)) return i; } return 0; }
1
195,390
bool RenderViewImpl::Send(IPC::Message* message) { return RenderWidget::Send(message); }
0
467,665
Client::noteMoreBodyDataAvailable(BodyPipe::Pointer bp) { #if USE_ADAPTATION if (adaptedBodySource == bp) { handleMoreAdaptedBodyAvailable(); return; } #endif if (requestBodySource == bp) handleMoreRequestBodyAvailable(); }
0
338,650
dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum, enum dshowDeviceType devtype, enum dshowSourceFilterType sourcetype, IBaseFilter **pfilter) { struct dshow_ctx *ctx = avctx->priv_data; IBaseFilter *device_filter = NULL; IEnumMoniker *classenum = NULL; IMonik...
0
398,179
get_eventloop_weight(self) VALUE self; { return rb_ary_new3(2, INT2NUM(event_loop_max), INT2NUM(no_event_tick)); }
0
8,113
void Compute(OpKernelContext* ctx) override { const Tensor& input_0 = ctx->input(0); const Tensor& input_1 = ctx->input(1); const Device& eigen_device = ctx->eigen_device<Device>(); bool error = false; bool* const error_ptr = Functor::has_errors ? &error : nullptr; // NOTE: Handle three simpl...
1
116,644
int Jsi_HexStr(const uchar *data, int len, Jsi_DString *dStr, bool decode) { int olen = (decode?(len/2+1):(len*2+1)); Jsi_DSSetLength(dStr, olen); if (!decode) return jsi_FromHexStr((const char*)data, (uchar*)Jsi_DSValue(dStr)); jsi_ToHexStr((const uchar*)data, len, Jsi_DSValue(dStr)); retur...
0
275,358
void DownloadItemImpl::DestinationError( DownloadInterruptReason reason, int64_t bytes_so_far, std::unique_ptr<crypto::SecureHash> secure_hash) { DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(state_ == TARGET_PENDING_INTERNAL || state_ == IN_PROGRESS_INTERNAL); DVLOG(20) << __func__ << "(...
0
146,274
megasas_fire_cmd_xscale(struct megasas_instance *instance, dma_addr_t frame_phys_addr, u32 frame_count, struct megasas_register_set __iomem *regs) { unsigned long flags; spin_lock_irqsave(&instance->hba_lock, flags); writel((frame_phys_addr >> 3)|(frame_count), &(regs)->inbound_queue_port); spin_unlo...
0
252,444
nfs4_check_delegmode(struct nfs4_delegation *dp, int flags) { if ((flags & WR_STATE) && (dp->dl_type == NFS4_OPEN_DELEGATE_READ)) return nfserr_openmode; else return nfs_ok; }
0
461,721
EXPORT_SYMBOL_GPL(iscsi_session_event); static int iscsi_if_create_session(struct iscsi_internal *priv, struct iscsi_endpoint *ep, struct iscsi_uevent *ev, pid_t pid, uint32_t initial_cmdsn, uint16_t cmds_max, uint16_t queue_depth) { struct iscsi_transport *transport = priv->iscsi_transport; struct iscsi_cl...
0
501,603
TEST_F(HttpHealthCheckerImplTest, ServiceNameMismatch) { setupServiceNameValidationHC("locations"); EXPECT_CALL(event_logger_, logUnhealthy(_, _, _, true)); EXPECT_CALL(runtime_.snapshot_, featureEnabled("health_check.verify_cluster", 100)) .WillOnce(Return(true)); EXPECT_CALL(*this, onHostStatus(_, Heal...
0
399,607
static void apply_wqattrs_commit(struct apply_wqattrs_ctx *ctx) { int node; /* all pwqs have been created successfully, let's install'em */ mutex_lock(&ctx->wq->mutex); copy_workqueue_attrs(ctx->wq->unbound_attrs, ctx->attrs); /* save the previous pwq and install the new one */ for_each_node(node) ctx->pwq_t...
0
279,099
void RenderView::OnSetDOMUIProperty(const std::string& name, const std::string& value) { DCHECK(BindingsPolicy::is_dom_ui_enabled(enabled_bindings_)); dom_ui_bindings_.SetProperty(name, value); }
0