idx
int64
func
string
target
int64
255,739
static void create_layer_surface(struct swaylock_surface *surface) { struct swaylock_state *state = surface->state; surface->image = select_image(state, surface); surface->surface = wl_compositor_create_surface(state->compositor); assert(surface->surface); surface->child = wl_compositor_create_surface(state->co...
1
386,417
*/ void xmlXPathCountFunction(xmlXPathParserContextPtr ctxt, int nargs) { xmlXPathObjectPtr cur; CHECK_ARITY(1); if ((ctxt->value == NULL) || ((ctxt->value->type != XPATH_NODESET) && (ctxt->value->type != XPATH_XSLT_TREE))) XP_ERROR(XPATH_INVALID_TYPE); cur = valuePop(ctxt); if ((cur == NULL)...
0
217,250
void RenderWidgetHostViewAura::DetachFromInputMethod() { ui::InputMethod* input_method = GetInputMethod(); if (input_method && input_method->GetTextInputClient() == this) input_method->SetFocusedTextInputClient(NULL); }
0
19,085
static void vdpau_h264_set_reference_frames ( AVCodecContext * avctx ) { H264Context * const h = avctx -> priv_data ; AVVDPAUContext * hwctx = avctx -> hwaccel_context ; VdpPictureInfoH264 * info = & hwctx -> info . h264 ; int list ; VdpReferenceFrameH264 * rf = & info -> referenceFrames [ 0 ] ; # define H264_RF_...
0
85,450
static int32_t modplugresamplingmode_to_filterlength(int mode) { if(mode<0){ return 1; } switch(mode){ case MODPLUG_RESAMPLE_NEAREST: return 1; break; case MODPLUG_RESAMPLE_LINEAR: return 2; break; case MODPLUG_RESAMPLE_SPLINE: return 4; break; case MODPLUG_RESAMPLE_FIR: return 8; break; } return 8; }
0
25,684
void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) { int i ; for ( i = 0 ; i < 4 ; ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ; \ } sadMxN ( 64 , 64 ) sadMxNxK ( ...
0
186,408
static struct sc_card_driver *sc_get_driver(void) { struct sc_card_driver *iso_drv = sc_get_iso7816_driver(); setcos_ops = *iso_drv->ops; setcos_ops.match_card = setcos_match_card; setcos_ops.init = setcos_init; if (iso_ops == NULL) iso_ops = iso_drv->ops; setcos_ops.create_file = setcos_create_file; setcos_o...
0
103,650
void ConnectionManagerImpl::onIdleTimeout() { ENVOY_CONN_LOG(debug, "idle timeout", read_callbacks_->connection()); stats_.named_.downstream_cx_idle_timeout_.inc(); if (!codec_) { // No need to delay close after flushing since an idle timeout has already fired. Attempt to // write out buffered data one la...
0
15,194
int vp9_bigdia_search ( const MACROBLOCK * x , MV * ref_mv , int search_param , int sad_per_bit , int do_init_search , int * sad_list , const vp9_variance_fn_ptr_t * vfp , int use_mvcost , const MV * center_mv , MV * best_mv ) { static const int bigdia_num_candidates [ MAX_PATTERN_SCALES ] = { 4 , 8 , 8 , 8 , 8 , 8 ,...
0
283,427
nfsd4_putfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_putfh *putfh) { fh_put(&cstate->current_fh); cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen; memcpy(&cstate->current_fh.fh_handle.fh_base, putfh->pf_fhval, putfh->pf_fhlen); return fh_verify(rqstp, &cstate->cu...
0
9,299
void DevToolsSession::ReceivedBadMessage() { MojoConnectionDestroyed(); if (process_) { bad_message::ReceivedBadMessage( process_, bad_message::RFH_INCONSISTENT_DEVTOOLS_MESSAGE); } }
1
285,854
uint32_t BpMemoryHeap::getOffset() const { assertMapped(); return mOffset; }
0
522,353
void next_row() { if (move) { /* Our cursor is pointing at the first row that was a peer of the previous current row. Or, it was the first row in the partition. */ if (cursor.fetch()) return; // todo: need the following check ? if (!peer_tracker.compare...
0
63,415
static int load_module(struct load_info *info, const char __user *uargs, int flags) { struct module *mod; long err = 0; char *after_dashes; /* * Do the signature check (if any) first. All that * the signature check needs is info->len, it does * not need any of the section info. That can be * set u...
0
28,083
static SchroFrame * CreateSchroFrameFromInputPic ( encoder_t * p_enc , picture_t * p_pic ) { encoder_sys_t * p_sys = p_enc -> p_sys ; SchroFrame * p_schroframe = schro_frame_new ( ) ; struct enc_picture_free_t * p_free ; if ( ! p_schroframe ) return NULL ; if ( ! p_pic ) return NULL ; p_schroframe -> format = SCH...
0
348,352
void base64_encode_xmlrpc(struct buffer_st *b, const char *source, int length) { int i, hiteof = 0; int offset = 0; int olen; olen = 0; buffer_new(b); /* Fill dtable with character encodings. */ for (i = 0; i < 26; i++) { dtable[i] = 'A' + i; dtable[26 + i] = 'a' + i; } for (i = 0; i < 10...
1
185,285
bool DevToolsDataSource::ShouldAddContentSecurityPolicy() const { return false; }
0
103,252
int snd_seq_kernel_client_ctl(int clientid, unsigned int cmd, void *arg) { const struct ioctl_handler *handler; struct snd_seq_client *client; client = clientptr(clientid); if (client == NULL) return -ENXIO; for (handler = ioctl_handlers; handler->cmd > 0; ++handler) { if (handler->cmd == cmd) return hand...
0
220,685
void VerifyPrintPreviewCancelled(bool did_cancel) { bool print_preview_cancelled = (render_thread_->sink().GetUniqueMessageMatching( PrintHostMsg_PrintPreviewCancelled::ID) != NULL); EXPECT_EQ(did_cancel, print_preview_cancelled); }
0
303,880
void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, int oif, u32 mark, u8 protocol, int flow_flags) { const struct iphdr *iph = (const struct iphdr *) skb->data; struct flowi4 fl4; struct rtable *rt; if (!mark) mark = IP4_REPLY_MARK(net, skb->mark); __build_flow_key(&fl4, NULL, iph, oi...
0
469,177
void xfrm_flowi_addr_get(const struct flowi *fl, xfrm_address_t *saddr, xfrm_address_t *daddr, unsigned short family) { switch(family) { case AF_INET: memcpy(&saddr->a4, &fl->u.ip4.saddr, sizeof(saddr->a4)); memcpy(&daddr->a4, &fl->u.ip4.daddr, sizeof(daddr->a4)); break; case AF_INET6: saddr->in6 = f...
0
138,156
pmcraid_init_ioadls(struct pmcraid_cmd *cmd, int sgcount) { struct pmcraid_ioadl_desc *ioadl; struct pmcraid_ioarcb *ioarcb = &cmd->ioa_cb->ioarcb; int ioadl_count = 0; if (ioarcb->add_cmd_param_length) ioadl_count = DIV_ROUND_UP(ioarcb->add_cmd_param_length, 16); ioarcb->ioadl_length = sizeof(struct pmcraid_...
0
248,570
static bool AllDescendantsAreComplete(Frame* frame) { if (!frame) return true; for (Frame* child = frame->Tree().FirstChild(); child; child = child->Tree().TraverseNext(frame)) { if (child->IsLoading()) return false; } return true; }
0
376,777
HInstruction* HGraphBuilder::PreProcessCall(Instruction* call) { int count = call->argument_count(); ZoneList<HValue*> arguments(count, zone()); for (int i = 0; i < count; ++i) { arguments.Add(Pop(), zone()); } while (!arguments.is_empty()) { AddInstruction(new(zone()) HPushArgument(arguments.RemoveL...
0
53,317
static size_t ssl_rsa_key_len( void *ctx ) { return ( (rsa_context *) ctx )->len; }
0
415,933
gs_deviceinitialmatrix(gx_device * dev, gs_matrix * pmat) { fill_dev_proc(dev, get_initial_matrix, gx_default_get_initial_matrix); (*dev_proc(dev, get_initial_matrix)) (dev, pmat); }
0
501,873
static bool replmd_recyclebin_enabled(struct ldb_module *module) { bool enabled = false; struct replmd_private *replmd_private = talloc_get_type_abort(ldb_module_get_private(module), struct replmd_private); /* * only lookup the recycle-bin state once per replication, then cache * the result. This ca...
0
344,642
FileDescriptor connectToHelperAgent() { TRACE_POINT(); FileDescriptor conn; try { conn = connectToUnixServer(agentsStarter.getRequestSocketFilename()); writeExact(conn, agentsStarter.getRequestSocketPassword()); } catch (const SystemException &e) { if (e.code() == EPIPE || e.code() == ECONNREFUSED ...
1
322,004
unsigned ff_els_decode_unsigned(ElsDecCtx *ctx, ElsUnsignedRung *ur) { int i, n, r, bit; ElsRungNode *rung_node; if (ctx->err) return 0; /* decode unary prefix */ for (n = 0; n < ELS_EXPGOLOMB_LEN + 1; n++) if (ff_els_decode_bit(ctx, &ur->prefix_rung[n])) bre...
1
118,385
rend_service_poison_new_single_onion_dir(const rend_service_t *s, const or_options_t* options) { /* Passing a NULL service is a bug */ if (BUG(!s)) { return -1; } /* We must only poison directories if we're in Single Onion mode */ tor_assert(rend_service_non_anony...
0
250,237
static int update_stream_output_window(h2o_http2_stream_t *stream, ssize_t delta) { ssize_t cur = h2o_http2_window_get_window(&stream->output_window); if (h2o_http2_window_update(&stream->output_window, delta) != 0) return -1; if (cur <= 0 && h2o_http2_window_get_window(&stream->output_window) > 0 &...
0
361,890
bool Server::unregisterUserDB(int id) { if (id <= 0) return false; QMap<int, QString> info = getRegistration(id); if (info.isEmpty()) return false; qhUserIDCache.remove(info.value(ServerDB::User_Name)); qhUserNameCache.remove(id); int res = -2; emit unregisterUserSig(res, id); if (res == 0) { return f...
0
253,996
choose_kex(struct kex *k, char *client, char *server) { const struct kexalg *kexalg; k->name = match_list(client, server, NULL); debug("kex: algorithm: %s", k->name ? k->name : "(no match)"); if (k->name == NULL) return SSH_ERR_NO_KEX_ALG_MATCH; if ((kexalg = kex_alg_by_name(k->name)) == NULL) return SSH_ERR...
0
408,326
string_rfind(PyStringObject *self, PyObject *args) { Py_ssize_t result = string_find_internal(self, args, -1); if (result == -2) return NULL; return PyInt_FromSsize_t(result); }
0
426,648
static ssize_t process_output_ssl( pn_transport_t *transport, unsigned int layer, char *buffer, size_t max_len) { pni_ssl_t *ssl = transport->ssl; if (!ssl) return PN_EOS; if (ssl->ssl == NULL && init_ssl_socket(transport, ssl)) return PN_EOS; ssize_t written = 0; bool work_pending; do { work_pending ...
0
320,690
static void e1000_reset(void *opaque) { E1000State *d = opaque; qemu_del_timer(d->autoneg_timer); memset(d->phy_reg, 0, sizeof d->phy_reg); memmove(d->phy_reg, phy_reg_init, sizeof phy_reg_init); memset(d->mac_reg, 0, sizeof d->mac_reg); memmove(d->mac_reg, mac_reg_init, sizeof mac_re...
1
467,806
static int io_poll_double_wake(struct wait_queue_entry *wait, unsigned mode, int sync, void *key) { struct io_kiocb *req = wait->private; struct io_poll_iocb *poll = io_poll_get_single(req); __poll_t mask = key_to_poll(key); /* for instances that support it check for an event match first: */ if (mask &...
0
383,349
checksum( byte *p, unsigned n ) { u16 a; for(a=0; n; n-- ) a += *p++; return a; }
0
67,316
SWFInput_getSInt16(SWFInput input) { int num = SWFInput_getChar(input); num += SWFInput_getChar(input) * 256; return num; }
0
397,172
tta_type_find (GstTypeFind * tf, gpointer unused) { const guint8 *data = gst_type_find_peek (tf, 0, 3); if (data) { if (memcmp (data, "TTA", 3) == 0) { gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, TTA_CAPS); return; } } }
0
98,318
create_unpeer_node( address_node *addr ) { unpeer_node * my_node; u_int u; char * pch; my_node = emalloc_zero(sizeof(*my_node)); /* * From the parser's perspective an association ID fits into * its generic T_String definition of a name/address "address". * We treat all valid 16-bit numbers as associati...
0
258,524
static void exsltObjectTypeFunction ( xmlXPathParserContextPtr ctxt , int nargs ) { xmlXPathObjectPtr obj , ret ; if ( nargs != 1 ) { xmlXPathSetArityError ( ctxt ) ; return ; } obj = valuePop ( ctxt ) ; switch ( obj -> type ) { case XPATH_STRING : ret = xmlXPathNewCString ( "string" ) ; break ; case XPATH_NU...
0
453,597
fill_boxes (void *_dst, cairo_operator_t op, const cairo_color_t *color, cairo_boxes_t *boxes) { cairo_image_surface_t *dst = _dst; struct _cairo_boxes_chunk *chunk; uint32_t pixel; int i; TRACE ((stderr, "%s x %d\n", __FUNCTION__, boxes->num_boxes)); if (fill_reduces_to_sourc...
0
136,067
static long snd_seq_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { struct snd_seq_client *client = file->private_data; /* To use kernel stack for ioctl data. */ union { int pversion; int client_id; struct snd_seq_system_info system_info; struct snd_seq_running_info running_info; struc...
0
141,981
void NumberFormatTest::TestFormatCurrencyPlural() { UErrorCode status = U_ZERO_ERROR; Locale locale = Locale::createCanonical("en_US"); NumberFormat *fmt = NumberFormat::createInstance(locale, UNUM_CURRENCY_PLURAL, status); if (U_FAILURE(status)) { dataerrln("Error creating NumberFormat - %s", u...
0
168,257
smp_fetch_url(const struct arg *args, struct sample *smp, const char *kw, void *private) { struct http_txn *txn; CHECK_HTTP_MESSAGE_FIRST(); txn = smp->strm->txn; smp->data.type = SMP_T_STR; smp->data.u.str.len = txn->req.sl.rq.u_l; smp->data.u.str.str = txn->req.chn->buf->p + txn->req.sl.rq.u; smp->flags = SM...
0
215,145
GLvoid StubGLDrawElements(GLenum mode, GLsizei count, GLenum type, const void* indices) { glDrawElements(mode, count, type, indices); }
0
475,739
static int nf_tables_delflowtable(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) { const struct nfgenmsg *nfmsg = nlmsg_data(info->nlh); struct netlink_ext_ack *extack = info->extack; u8 genmask = nft_genmask_next(info->net); int family = nfmsg->nfgen_family; stru...
0
138,595
void *UntrustedCacheMalloc::Malloc(size_t size) { // Don't access UnturstedCacheMalloc if not running on normal heap, otherwise // it will cause error when UntrustedCacheMalloc tries to free the memory on // the normal heap. if (is_destroyed_ || (size > kPoolEntrySize) || GetSwitchedHeapNext()) { return pri...
0
159,976
string_heap_init (MonoDynamicStream *sh) { sh->index = 0; sh->alloc_size = 4096; sh->data = g_malloc (4096); sh->hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); string_heap_insert (sh, ""); }
0
201,635
BrowserLauncherItemController::~BrowserLauncherItemController() { tab_model_->RemoveObserver(this); window_->RemoveObserver(this); if (launcher_id() > 0) launcher_controller()->CloseLauncherItem(launcher_id()); }
0
37,535
BasicStringRef( const std::experimental::basic_string_view<Char, std::char_traits<Char>> &s) : data_(s.data()), size_(s.size()) {}
0
141,189
PJ_DEF(pj_xml_attr*) pj_xml_find_attr( const pj_xml_node *node, const pj_str_t *name, const pj_str_t *value) { const pj_xml_attr *attr = node->attr_head.next; while (attr != (void*)&node->attr_head) { if (pj_stricmp(&attr->name, name)==0) { if (value) { if (pj_stricmp(&attr->value...
0
41,334
static int32_t next_hfs_char(const char **in, size_t *len) { while (*len) { int32_t codepoint; int cp_len = git__utf8_iterate((const uint8_t *)(*in), (int)(*len), &codepoint); if (cp_len < 0) return -1; (*in) += cp_len; (*len) -= cp_len; /* these code points are ignored completely */ switch (codepoi...
0
347,093
QPDFObjectHandle::parseInternal(PointerHolder<InputSource> input, std::string const& object_description, QPDFTokenizer& tokenizer, bool& empty, StringDecrypter* decrypter, QPDF* context, bool ...
1
140,767
set_last_insert(int c) { char_u *s; vim_free(last_insert); last_insert = alloc(MB_MAXBYTES * 3 + 5); if (last_insert != NULL) { s = last_insert; // Use the CTRL-V only when entering a special char if (c < ' ' || c == DEL) *s++ = Ctrl_V; s = add_char2buf(c, s); *s++ = ESC; *s++ = NUL; la...
0
70,218
static void xmlrpc_append_char_encode(mowgli_string_t *s, const char *s1) { long unsigned int i; unsigned char c; char buf2[15]; if ((!(s1) || (*(s1) == '\0'))) { return; } for (i = 0; s1[i] != '\0'; i++) { c = s1[i]; if (c > 127) { snprintf(buf2, sizeof buf2, "&#%d;", c); s->append(s, buf2, str...
0
30,518
static tmsize_t _tiffWriteProc ( thandle_t fd , void * buf , tmsize_t size ) { uint8 * ma ; uint64 mb ; DWORD n ; DWORD o ; tmsize_t p ; ma = ( uint8 * ) buf ; mb = size ; p = 0 ; while ( mb > 0 ) { n = 0x80000000UL ; if ( ( uint64 ) n > mb ) n = ( DWORD ) mb ; if ( ! WriteFile ( fd , ( LPVOID ) ma , n , & ...
0
471,754
void quicklistInsertAfter(quicklist *quicklist, quicklistEntry *entry, void *value, const size_t sz) { _quicklistInsert(quicklist, entry, value, sz, 1); }
0
148,419
bool HHVM_FUNCTION(imagejpeg, const Resource& image, const String& filename /* = null_string */, int64_t quality /* = -1 */) { return _php_image_output_ctx(image, filename, quality, -1, PHP_GDIMG_TYPE_JPG, "JPEG", (void (*)())gdImageJpegCtx); }
0
135,089
static Image *ReadGROUP4Image(const ImageInfo *image_info, ExceptionInfo *exception) { char filename[MaxTextExtent]; FILE *file; Image *image; ImageInfo *read_info; int c, unique_file; MagickBooleanType status; size_t length; ssize_t offset, strip_offset;...
0
411,821
zzip_mem_entry_find_extra_block(ZZIP_MEM_ENTRY * entry, short datatype, zzip_size_t blocksize) { int i = 2; while (1) { char* ext = (char*)( entry->zz_ext[i] ); char* ext_end = ext + entry->zz_extlen[i]; if (ext) { /* * Make sure that * 1) the extra block hea...
0
115,344
TestUtilOptions& setExpectNoCert() { expect_no_cert_ = true; return *this; }
0
269,594
ip4ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info) { int rel_msg = 0; u8 rel_type = type; u8 rel_code = code; __u32 rel_info = ntohl(info); int err; struct sk_buff *skb2; struct iphdr *eiph; struct flowi fl; struct rtable *rt; err = ip6_tnl_err(skb, IPP...
0
130,825
removable(char_u *name) { char_u *p; char_u part[51]; int retval = FALSE; size_t n; name = home_replace_save(NULL, name); if (name != NULL) { for (p = p_viminfo; *p; ) { copy_option_part(&p, part, 51, ", "); if (part[0] == 'r') { n = STRLEN(part + 1); if (MB_STRN...
0
372,701
void CLASS phase_one_flat_field (int is_float, int nc) { ushort head[8]; unsigned wide, y, x, c, rend, cend, row, col; float *mrow, num, mult[4]; read_shorts (head, 8); wide = head[2] / head[4]; mrow = (float *) calloc (nc*wide, sizeof *mrow); merror (mrow, "phase_one_flat_field()"); for (y=0; y < head...
0
475,894
void nft_data_release(const struct nft_data *data, enum nft_data_types type) { if (type < NFT_DATA_VERDICT) return; switch (type) { case NFT_DATA_VERDICT: return nft_verdict_uninit(data); default: WARN_ON(1); } }
0
210,592
void HostCache::OnNetworkChange() { ++network_changes_; }
0
378,384
sdap_initgr_store_user_memberships(struct sdap_initgr_nested_state *state) { errno_t ret; int tret; const char *orig_dn; char **sysdb_parent_name_list = NULL; char **ldap_parent_name_list = NULL; int nparents; struct sysdb_attrs **ldap_parentlist; struct ldb_message_element *el; in...
0
165,703
void webkitWebViewBaseInitializeFullScreenClient(WebKitWebViewBase* webkitWebViewBase, const WKFullScreenClientGtk* wkClient) { webkitWebViewBase->priv->fullScreenClient.initialize(wkClient); }
0
237,600
static void virtio_net_instance_init(Object *obj) { VirtIONet *n = VIRTIO_NET(obj); /* * The default config_size is sizeof(struct virtio_net_config). * Can be overriden with virtio_net_set_config_size. */ n->config_size = sizeof(struct virtio_net_config); }
0
208,196
void IPCThreadState::blockUntilThreadAvailable() { pthread_mutex_lock(&mProcess->mThreadCountLock); while (mProcess->mExecutingThreadsCount >= mProcess->mMaxThreads) { ALOGW("Waiting for thread to be free. mExecutingThreadsCount=%lu mMaxThreads=%lu\n", static_cast<unsigned long>(mProcess->mExecutingThread...
0
302,802
static inline void paravirt_release_pte(unsigned long pfn) { PVOP_VCALL1(mmu.release_pte, pfn); }
0
210,594
void Element::unregisterNamedFlowContentNode() { if (RuntimeEnabledFeatures::cssRegionsEnabled() && inNamedFlow() && document()->renderView()) document()->renderView()->flowThreadController()->unregisterNamedFlowContentNode(this); }
0
6,308
ConnectClientToUnixSock(const char *sockFile) { #ifdef WIN32 rfbClientErr("Windows doesn't support UNIX sockets\n"); return -1; #else int sock; struct sockaddr_un addr; addr.sun_family = AF_UNIX; strcpy(addr.sun_path, sockFile); sock = socket(AF_UNIX, SOCK_STREAM, 0); if (sock < 0) { rfbClientErr("...
1
200,083
static void addBitsToStream(size_t* bitpointer, ucvector* bitstream, unsigned value, size_t nbits) { size_t i; for(i = 0; i < nbits; i++) addBitToStream(bitpointer, bitstream, (unsigned char)((value >> i) & 1)); }
0
90,914
void VariableUnserializer::addSleepingObject(const Object& o) { m_sleepingObjects.emplace_back(o); }
0
205,258
static MegasasCmd *megasas_enqueue_frame(MegasasState *s, hwaddr frame, uint64_t context, int count) { PCIDevice *pcid = PCI_DEVICE(s); MegasasCmd *cmd = NULL; int frame_size = MFI_FRAME_SIZE * 16; hwaddr frame_size_p = frame_size; unsigned long index; index = 0; while (index < s->fw_cm...
0
231,783
SPL_METHOD(FilesystemIterator, __construct) { spl_filesystem_object_construct(INTERNAL_FUNCTION_PARAM_PASSTHRU, DIT_CTOR_FLAGS | SPL_FILE_DIR_SKIPDOTS); }
0
469,953
pa2la(UINT8 *out, const UINT8 *in, int xsize, const UINT8 *palette) { int x; /* FIXME: precalculate greyscale palette? */ for (x = 0; x < xsize; x++, in += 4, out += 4) { out[0] = out[1] = out[2] = L(&palette[in[0] * 4]) / 1000; out[3] = in[3]; } }
0
104,483
sector_t bmap(struct inode *inode, sector_t block) { sector_t res = 0; if (inode->i_mapping->a_ops->bmap) res = inode->i_mapping->a_ops->bmap(inode->i_mapping, block); return res; }
0
105,325
void megaraid_sas_kill_hba(struct megasas_instance *instance) { /* Set critical error to block I/O & ioctls in case caller didn't */ atomic_set(&instance->adprecovery, MEGASAS_HW_CRITICAL_ERROR); /* Wait 1 second to ensure IO or ioctls in build have posted */ msleep(1000); if ((instance->pdev->device == PCI_DEVICE...
0
468,953
static int __kvm_write_guest_page(struct kvm *kvm, struct kvm_memory_slot *memslot, gfn_t gfn, const void *data, int offset, int len) { int r; unsigned long addr; addr = gfn_to_hva_memslot(memslot, gfn); if (kvm_is_error_hva(addr)) return -EFAULT; r = __copy_to_user((void __user *)addr + offs...
0
50,302
would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': ...
0
138,286
explicit BoostedTreesPredictOp(OpKernelConstruction* const context) : OpKernel(context) { OP_REQUIRES_OK(context, context->GetAttr("num_bucketized_features", &num_bucketized_features_)); OP_REQUIRES_OK(context, context->GetAttr("logits_dime...
0
243,351
void HostNPScriptObject::OnSignallingConnected(SignalStrategy* signal_strategy, const std::string& full_jid) { }
0
420,249
initIoQ(void) { DEFiRet; CHKiConcCtrl(pthread_mutex_init(&io_q.mut, NULL)); CHKiConcCtrl(pthread_cond_init(&io_q.wakeup_worker, NULL)); STAILQ_INIT(&io_q.q); io_q.sz = 0; io_q.ctrMaxSz = 0; /* TODO: discuss this and fix potential concurrent read/write issues */ CHKiRet(statsobj.Construct(&io_q.stats)); CHKiRet(...
0
3,290
static plist_t parse_bin_node(struct bplist_data *bplist, const char** object) { uint16_t type = 0; uint64_t size = 0; if (!object) return NULL; type = (**object) & BPLIST_MASK; size = (**object) & BPLIST_FILL; (*object)++; if (size == BPLIST_FILL) { switch (type) { ...
1
317,222
void RenderWidgetHostImpl::StartInputEventAckTimeout(TimeDelta delay) { if (!input_event_ack_timeout_) return; input_event_ack_timeout_->Start(delay); input_event_ack_start_time_ = clock_->NowTicks(); }
0
112,336
spell_valid_case( int wordflags, // flags for the checked word. int treeflags) // flags for the word in the spell tree { return ((wordflags == WF_ALLCAP && (treeflags & WF_FIXCAP) == 0) || ((treeflags & (WF_ALLCAP | WF_KEEPCAP)) == 0 && ((treeflags & WF_ONECAP) == 0 || (wordfl...
0
72,245
cdf_tole2(uint16_t sv) { return CDF_TOLE2(sv); }
0
40,046
static void cqspi_config_baudrate_div(struct cqspi_st *cqspi) { const unsigned int ref_clk_hz = cqspi->master_ref_clk_hz; void __iomem *reg_base = cqspi->iobase; u32 reg, div; /* Recalculate the baudrate divisor based on QSPI specification. */ div = DIV_ROUND_UP(ref_clk_hz, 2 * cqspi->sclk) - 1; reg = readl(reg...
0
436,089
mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower) { const UChar* p = *pp; if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { *lower++ = 's'; *lower = 's'; (*pp)++; return 2; } *lower = ENC_ISO_8859_15_TO_LOWER_CASE(...
0
176,589
void AutoFillManager::OnInfoBarClosed(bool should_save) { if (should_save) personal_data_->SaveImportedCreditCard(); UploadFormData(); }
0
455,389
TEST_F(QueryPlannerTest, SparseIndexCannotSupportEqualsNull) { addIndex(BSON("i" << 1), false, // multikey true // sparse ); runQuery(fromjson("{i: {$eq: null}}")); assertHasOnlyCollscan(); }
0
307,883
void RenderFrameImpl::FocusedNodeChanged(const WebNode& node) { FOR_EACH_OBSERVER(RenderFrameObserver, observers_, FocusedNodeChanged(node)); }
0
20,974
void mime_hdr_describe ( HdrHeapObjImpl * raw , bool recurse ) { MIMEFieldBlockImpl * fblock ; MIMEHdrImpl * obj = ( MIMEHdrImpl * ) raw ; Debug ( "http" , "\n\t[PBITS: 0x%08X%08X, SLACC: 0x%04X%04X%04X%04X, HEADBLK: %p, TAILBLK: %p]" , ( uint32_t ) ( ( obj -> m_presence_bits >> 32 ) & ( TOK_64_CONST ( 0xFFFFFFFF ) ...
0
217,289
int SSLClientSocketOpenSSL::DoPayloadRead() { crypto::OpenSSLErrStackTracer err_tracer(FROM_HERE); int rv; if (pending_read_error_ != kNoPendingReadResult) { rv = pending_read_error_; pending_read_error_ = kNoPendingReadResult; if (rv == 0) { net_log_.AddByteTransferEvent(NetLog::TYPE_SSL_SOCKE...
0
272,262
static void task_ctx_sched_out(struct perf_cpu_context *cpuctx, struct perf_event_context *ctx, enum event_type_t event_type) { if (!cpuctx->task_ctx) return; if (WARN_ON_ONCE(ctx != cpuctx->task_ctx)) return; ctx_sched_out(ctx, cpuctx, event_type); }
0
125,552
static int __net_init tcpv6_net_init(struct net *net) { return inet_ctl_sock_create(&net->ipv6.tcp_sk, PF_INET6, SOCK_RAW, IPPROTO_TCP, net); }
0