idx
int64
func
string
target
int64
205,231
void SetIdealBoundsFromPositions(const std::vector<int>& positions) { if (static_cast<size_t>(GetTabCount()) != positions.size()) return; for (int i = 0; i < GetTabCount(); ++i) { gfx::Rect bounds(ideal_bounds(i)); bounds.set_x(positions[i]); tab_strip_->tabs_.set_ideal_bounds(i, boun...
0
459,545
dissect_kafka_offsets_response_topic(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version) { proto_item *ti; proto_tree *subtree; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_topic, &ti, "Topic"); off...
0
347,292
void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum) { struct map_struct *buf; OFF_T i, len = st_p->st_size; md_context m; int32 remainder; int fd; memset(sum, 0, MAX_DIGEST_LEN); fd = do_open(fname, O_RDONLY, 0); if (fd == -1) return; buf = map_file(fd, len, MAX_MAP_SIZE, CSUM_CHUNK)...
1
375,020
generateClonedIndexStmt(CreateStmtContext *cxt, Relation source_idx, const AttrNumber *attmap, int attmap_length) { Oid source_relid = RelationGetRelid(source_idx); Form_pg_attribute *attrs = RelationGetDescr(source_idx)->attrs; HeapTuple ht_idxrel; HeapTuple ht_idx; Form_pg_class idxrelrec; Form_pg_index...
0
199,158
static int t_fromb64(unsigned char *a, const char *src) { char *loc; int i, j; int size; while (*src && (*src == ' ' || *src == '\t' || *src == '\n')) ++src; size = strlen(src); i = 0; while (i < size) { loc = strchr(b64table, src[i]); if (loc == (char *)0) ...
0
316,143
void HTMLMediaElement::DidMoveToNewDocument(Document& old_document) { BLINK_MEDIA_LOG << "didMoveToNewDocument(" << (void*)this << ")"; load_timer_.MoveToNewTaskRunner( GetDocument().GetTaskRunner(TaskType::kInternalMedia)); progress_event_timer_.MoveToNewTaskRunner( GetDocument().GetTaskRunner(TaskT...
0
75,706
CString CAuthBase::GetRemoteIP() const { if (m_pSock) return m_pSock->GetRemoteIP(); return ""; }
0
206,353
void webViewEnterFullscreen(WebKitWebView* webView, Node* node) { if (!node->hasTagName(HTMLNames::videoTag)) return; #if ENABLE(VIDEO) HTMLMediaElement* videoElement = static_cast<HTMLMediaElement*>(node); WebKitWebViewPrivate* priv = webView->priv; if (priv->fullscreenVideoController) ...
0
325,041
static void xen_pci_passthrough_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->realize = xen_pt_realize; k->exit = xen_pt_unregister_device; k->config_read = xen_pt_pci_read_config; k->config_write = xe...
1
95,357
uint32_t millis(void) { return (((uint32_t)TIM6->CNT) + (__90_ms * 90)); }
0
360,677
_g_key_file_save_to_gfile (GKeyFile *key_file, GFile *file, GError **error) { char *data; gsize len; data = g_key_file_to_data (key_file, &len, error); if (data == NULL) { return FALSE; } if (!g_file_replace_contents (file, data, len, NULL, FALSE, G_FILE_CREATE_NON...
0
341,887
static void RENAME(yuv2rgb565_1)(SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *bguf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y) { const int16_t *ubuf0 = ubu...
1
499,292
static int acl_check_spn(TALLOC_CTX *mem_ctx, struct ldb_module *module, struct ldb_request *req, const struct ldb_message_element *el, struct security_descriptor *sd, struct dom_sid *sid, const struct dsdb_attribute *attr, const struct dsdb_class *objectclass) { int ret; unsigned int i; ...
0
32,879
void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget, u64 nodeid, u64 nlookup) { struct fuse_iqueue *fiq = &fc->iq; forget->forget_one.nodeid = nodeid; forget->forget_one.nlookup = nlookup; spin_lock(&fiq->waitq.lock); if (fiq->connected) { fiq->forget_list_tail->next = forget;...
0
8,822
static void jsiDumpInstr(Jsi_Interp *interp, jsi_Pstate *ps, Jsi_Value *_this, jsi_TryList *trylist, jsi_OpCode *ip, Jsi_OpCodes *opcodes) { int i; char buf[200]; jsi_code_decode(interp, ip, ip - opcodes->codes, buf, sizeof(buf)); Jsi_Printf(interp, jsi_Stderr, "%p: %-30.200s : THIS=%s, STACK=[", ip...
1
299,111
validate_keywords(asdl_seq *keywords) { Py_ssize_t i; for (i = 0; i < asdl_seq_LEN(keywords); i++) if (!validate_expr(((keyword_ty)asdl_seq_GET(keywords, i))->value, Load)) return 0; return 1; }
0
190,871
WebPluginDelegatePepper::~WebPluginDelegatePepper() { DestroyInstance(); }
0
371,403
ZrtpPacketCommit* ZRtp::prepareCommit(ZrtpPacketHello *hello, uint32_t* errMsg) { // Save data before detailed checks - may aid in analysing problems peerClientId.assign((char*)hello->getClientId(), ZRTP_WORD_SIZE * 4); memcpy(peerHelloVersion, hello->getVersion(), ZRTP_WORD_SIZE); peerHelloVersion[ZRT...
0
66,492
template<typename t> CImg<T>& solve(const CImg<t>& A) { if (_depth!=1 || _spectrum!=1 || _height!=A._height || A._depth!=1 || A._spectrum!=1) throw CImgArgumentException(_cimg_instance "solve(): Instance and specified matrix (%u,%u,%u,%u,%p) have " ...
0
92,378
static struct snd_seq_client_port *get_client_port(struct snd_seq_addr *addr, struct snd_seq_client **cp) { struct snd_seq_client_port *p; *cp = snd_seq_client_use_ptr(addr->client); if (*cp) { p = snd_seq_port_use_ptr(*cp, addr->port); if (! p) { snd_seq_client_unlock(*cp); *cp = NULL; } retu...
0
125,967
TEST_F(TestDelegate, TestCopyFromBuffer) { delegate_ = std::unique_ptr<SimpleDelegate>(new SimpleDelegate({0, 1, 2})); TfLiteDelegate* delegate = delegate_->get_tf_lite_delegate(); interpreter_->ModifyGraphWithDelegate(delegate); constexpr int kOutputTensorIndex = 3; TfLiteTensor* tensor = interpreter_->tens...
0
390,208
Parameters& Security::use_parms() { return parms_; }
0
448,659
tiff_set_cmyk_fields(gx_device_printer *pdev, TIFF *tif, short bits_per_sample, uint16 compression, long max_strip_size) { TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_sample); TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_SEPARATED); ...
0
407,720
ldns_rdf2buffer_str_period(ldns_buffer *output, const ldns_rdf *rdf) { /* period is the number of seconds */ if (ldns_rdf_size(rdf) != 4) { return LDNS_STATUS_WIRE_RDATA_ERR; } ldns_buffer_printf(output, "%u", ldns_read_uint32(ldns_rdf_data(rdf))); return ldns_buffer_status(output); }
0
293,160
static int qrtr_tun_send(struct qrtr_endpoint *ep, struct sk_buff *skb) { struct qrtr_tun *tun = container_of(ep, struct qrtr_tun, ep); skb_queue_tail(&tun->queue, skb); /* wake up any blocking processes, waiting for new data */ wake_up_interruptible(&tun->readq); return 0; }
0
133,430
void jbd2_journal_lock_updates(journal_t *journal) { jbd2_might_wait_for_commit(journal); write_lock(&journal->j_state_lock); ++journal->j_barrier_count; /* Wait until there are no reserved handles */ if (atomic_read(&journal->j_reserved_credits)) { write_unlock(&journal->j_state_lock); wait_event(journal->j...
0
322,531
static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size, AVSubtitle *sub) { DVBSubContext *ctx = avctx->priv_data; DVBSubDisplayDefinition *display_def = ctx->display_definition; DVBSubRegion *region; DVBSubRegionDisplay...
1
492,034
int LibRaw::unpack(void) { CHECK_ORDER_HIGH(LIBRAW_PROGRESS_LOAD_RAW); CHECK_ORDER_LOW(LIBRAW_PROGRESS_IDENTIFY); try { if(!libraw_internal_data.internal_data.input) return LIBRAW_INPUT_CLOSED; RUN_CALLBACK(LIBRAW_PROGRESS_LOAD_RAW,0,2); if (O.shot_select >= P1.raw_count) return LIBRAW_R...
0
392,585
gdAlphaOverlayColor( int src, int dst, int max ) { /* this function implements the algorithm * * for dst[rgb] < 0.5, * c[rgb] = 2.src[rgb].dst[rgb] * and for dst[rgb] > 0.5, * c[rgb] = -2.src[rgb].dst[rgb] + 2.dst[rgb] + 2.src[rgb] - 1 * */ dst = dst << 1; if( dst > max ) { /* in the "light"...
0
47,316
static Jsi_RC CDataInfoCmd(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this, Jsi_Value **ret, Jsi_Func *funcPtr) { UdcGet(cd, _this, funcPtr); Jsi_StructSpec *sl = cd->sl; Jsi_DString dStr= {}; const char *sptr = Jsi_DSPrintf(&dStr, "{struct:\"%s\", label:\"%s\"}", sl-...
0
434,840
filter_show_space(fz_context *ctx, pdf_filter_processor *p, float tadj) { filter_gstate *gstate = p->gstate; pdf_font_desc *fontdesc = gstate->pending.text.font; if (fontdesc->wmode == 0) p->tos.tm = fz_pre_translate(p->tos.tm, tadj * gstate->pending.text.scale, 0); else p->tos.tm = fz_pre_translate(p->tos.tm,...
0
367,161
static int cap_inode_getxattr(struct dentry *dentry, const char *name) { return 0; }
0
458,554
zone_limit_update(struct conntrack *ct, int32_t zone, uint32_t limit) { int err = 0; ovs_mutex_lock(&ct->ct_lock); struct zone_limit *zl = zone_limit_lookup(ct, zone); if (zl) { zl->czl.limit = limit; VLOG_INFO("Changed zone limit of %u for zone %d", limit, zone); } else { er...
0
188,717
ProcFreeGC(ClientPtr client) { GC *pGC; int rc; REQUEST(xResourceReq); REQUEST_SIZE_MATCH(xResourceReq); rc = dixLookupGC(&pGC, stuff->id, client, DixDestroyAccess); if (rc != Success) return rc; FreeResource(stuff->id, RT_NONE); return Success; }
0
237,332
bool HTMLButtonElement::isInteractiveContent() const { return true; }
0
220,630
explicit InterceptAndCancelDidCommitProvisionalLoad(WebContents* web_contents) : DidCommitProvisionalLoadInterceptor(web_contents) {}
0
321,422
xilinx_axienet_data_stream_push(StreamSlave *obj, uint8_t *buf, size_t size, uint32_t *hdr) { XilinxAXIEnetStreamSlave *ds = XILINX_AXI_ENET_DATA_STREAM(obj); XilinxAXIEnet *s = ds->enet; /* TX enable ? */ if (!(s->tc & TC_TX)) { return size; } ...
0
62,471
eexec_line(unsigned char *line, int line_len) { int cs_start_len = strlen(cs_start); int pos; int first_space; int digits; int cut_newline = 0; /* append this data to the end of `save' if necessary */ if (save_len) { append_save(line, line_len); line = save; line_len = save_len; ...
0
262,821
static void yam_set_uart(struct net_device *dev) { struct yam_port *yp = netdev_priv(dev); int divisor = 115200 / yp->baudrate; outb(0, IER(dev->base_addr)); outb(LCR_DLAB | LCR_BIT8, LCR(dev->base_addr)); outb(divisor, DLL(dev->base_addr)); outb(0, DLM(dev->base_addr)); outb(LCR_BIT8, LCR(dev->base_addr)); ou...
0
123,175
static Jsi_RC freeFuncsTbl(Jsi_Interp *interp, Jsi_HashEntry *hPtr, void *ptr) { Jsi_Func *func = (Jsi_Func *)ptr; if (!func) return JSI_OK; SIGASSERT(func,FUNC); func->hPtr = NULL; jsi_FuncFree(interp, func); return JSI_OK; }
0
81,299
static uint get_table_structure(char *table, char *db, char *table_type, char *ignore_flag) { my_bool init=0, write_data, complete_insert; my_ulonglong num_fields; char *result_table, *opt_quoted_table; const char *insert_option; char name_buff[NAME_LEN+3],table_b...
0
5,965
void ACSequentialScan::DecodeBlock(LONG *block, LONG &prevdc,LONG &prevdiff, UBYTE small,UBYTE large,UBYTE kx,UBYTE dc,UBYTE ac) { // DC coding if (m_ucScanStart == 0 && m_bResidual == false) { LONG diff; struct QMContextSet::DCContextZer...
1
487,632
void ElectronRenderFrameObserver::CreateIsolatedWorldContext() { auto* frame = render_frame_->GetWebFrame(); blink::WebIsolatedWorldInfo info; // This maps to the name shown in the context combo box in the Console tab // of the dev tools. info.human_readable_name = blink::WebString::FromUTF8("Electron I...
0
170,211
on_error(void *user_data, Evas_Object *webview, void *event_info) { Eina_Strbuf* buffer; const Ewk_Error *error = (const Ewk_Error *)event_info; /* This is a cancellation, do not display the error page */ if (ewk_error_cancellation_get(error)) return; buffer = eina_strbuf_new(); eina_s...
0
142,495
static int pix_abs16_y2_c(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) { int s, i; uint8_t *pix3 = pix2 + line_size; s = 0; for(i=0;i<h;i++) { s += abs(pix1[0] - avg2(pix2[0], pix3[0])); s += abs(pix1[1] - avg2(pix2[1], pix3[1])); s += abs(pix1[2] - avg2(pix2[2],...
0
489,327
GF_Err dmax_box_dump(GF_Box *a, FILE * trace) { GF_DMAXBox *p; p = (GF_DMAXBox *)a; gf_isom_box_dump_start(a, "MaxPacketDurationBox", trace); gf_fprintf(trace, "MaximumDuration=\"%d\">\n", p->maxDur); gf_isom_box_dump_done("MaxPacketDurationBox", a, trace); return GF_OK; }
0
168,625
void FakeCentral::IsNotifying(const std::string& characteristic_id, const std::string& service_id, const std::string& peripheral_address, IsNotifyingCallback callback) { FakeRemoteGattCharacteristic* fake_remote_gatt_characteris...
0
496,991
TF_LITE_MICRO_TEST(GatherNd_BatchedIndexingIntoRank3Tensor4) { // For input_dims[], index_dims[], or output_dims[], element 0 is the // number of dimensions in that array, not the actual dimension data. int input_dims[] = {3, 3, 2, 3}; int index_dims[] = {3, 2, 2, 3}; const int32_t index_data[] = {0, 0, 1, 1,...
0
369,326
static char *sanitize_path(const char *path) { char *p; if (!path) return NULL; p = canonicalize_path_restricted(path); if (!p) err(MOUNT_EX_USAGE, "%s", path); return p; }
0
35,838
pixGetOuterBorderPta(PIX *pixs, BOX *box) { l_int32 allzero, x, y; BOX *boxt; CCBORD *ccb; PTA *ptaloc, *ptad; PROCNAME("pixGetOuterBorderPta"); if (!pixs) return (PTA *)ERROR_PTR("pixs not defined", procName, NULL); if (pixGetDepth(pixs) != 1) return (PTA ...
0
208,135
void WebContentsImpl::RendererUnresponsive( RenderWidgetHostImpl* render_widget_host, base::RepeatingClosure hang_monitor_restarter) { for (auto& observer : observers_) observer.OnRendererUnresponsive(render_widget_host->GetProcess()); if (ShouldIgnoreUnresponsiveRenderer()) return; if (!render_...
0
399,645
static void mark_work_canceling(struct work_struct *work) { unsigned long pool_id = get_work_pool_id(work); pool_id <<= WORK_OFFQ_POOL_SHIFT; set_work_data(work, pool_id | WORK_OFFQ_CANCELING, WORK_STRUCT_PENDING); }
0
296,640
BOOL security_encrypt(BYTE* data, int length, rdpRdp* rdp) { if (rdp->encrypt_use_count >= 4096) { security_key_update(rdp->encrypt_key, rdp->encrypt_update_key, rdp->rc4_key_len); crypto_rc4_free(rdp->rc4_encrypt_key); rdp->rc4_encrypt_key = crypto_rc4_init(rdp->encrypt_key, rdp->rc4_key_len); rdp->encrypt_u...
0
264,710
static void jas_icclut16_destroy(jas_iccattrval_t *attrval) { jas_icclut16_t *lut16 = &attrval->data.lut16; if (lut16->clut) { jas_free(lut16->clut); lut16->clut = 0; } if (lut16->intabs) { jas_free(lut16->intabs); lut16->intabs = 0; } if (lut16->intabsbuf) { jas_free(lut16->intabsbuf); lut16->intabsb...
0
3,768
bumpserialno(void) { ++serialno; }
1
156,026
cmp_func_intel (const void *elem1, const void *elem2) { return cmp_func ((const unsigned char *) elem1, (const unsigned char *) elem2, EXIF_BYTE_ORDER_INTEL); }
0
517,247
double val_real() { return (double)val_int(); }
0
216,261
bool RenderViewImpl::IsEditableNode(const WebNode& node) const { if (node.isNull()) return false; if (node.isContentEditable()) return true; if (node.isElementNode()) { const WebElement& element = node.toConst<WebElement>(); if (element.isTextFormControlElement()) return true; for (un...
0
300,288
one_function_arg( char_u *arg, garray_T *newargs, garray_T *argtypes, int types_optional, evalarg_T *evalarg, int is_vararg, int skip) { char_u *p = arg; char_u *arg_copy = NULL; int is_underscore = FALSE; while (ASCII_ISALNUM(*p) || *p == '_') ++p; if (arg == p || ...
0
230,343
virtual void DoSetUp() { RenderViewImplTest::SetUp(); }
0
424,675
addToLibpath(const char *dir, BOOLEAN isPrepend) { #if defined(AIXPPC) || defined(J9ZOS390) char *oldPath, *newPath; int rc, newSize; #if defined(J9ZOS390) char *putenvPath; int putenvSize; #endif oldPath = getenv("LIBPATH"); #ifdef DEBUG printf("\nLIBPATH before = %s\n", oldPath ? oldPath : "<empty>"); #endif ...
0
50,548
inline void writeS8( S8 s) { writeU8((U8)s); }
0
517,156
bool agg_arg_charsets_for_comparison(CHARSET_INFO **cs, Item **a, Item **b) { DTCollation tmp; if (tmp.set((*a)->collation, (*b)->collation, MY_COLL_CMP_CONV) || tmp.derivation == DERIVATION_NONE) { my_error(ER_CANT_AGGREGATE_2COLLATIONS,MYF(0), (*a)->collation.collation->na...
0
155,462
inline void BroadcastAddFivefold(const ArithmeticParams& params, const RuntimeShape& unswitched_input1_shape, const float* unswitched_input1_data, const RuntimeShape& unswitched_input2_shape, ...
0
362,914
static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb, int copied_early) { __skb_unlink(skb, &sk->sk_receive_queue); __kfree_skb(skb); }
0
178,329
static int ecp_check_pubkey_sw( const mbedtls_ecp_group *grp, const mbedtls_ecp_point *pt ) { int ret; mbedtls_mpi YY, RHS; /* pt coordinates must be normalized for our checks */ if( mbedtls_mpi_cmp_int( &pt->X, 0 ) < 0 || mbedtls_mpi_cmp_int( &pt->Y, 0 ) < 0 || mbedtls_mpi_cmp_mpi( &pt...
0
345,534
htmlParseComment(htmlParserCtxtPtr ctxt) { xmlChar *buf = NULL; int len; int size = HTML_PARSER_BUFFER_SIZE; int q, ql; int r, rl; int cur, l; xmlParserInputState state; /* * Check that there is a comment right here. */ if ((RAW != '<') || (NXT(1) != '!') || (NXT(2...
1
289,416
void raw6_icmp_error ( struct sk_buff * skb , int nexthdr , u8 type , u8 code , int inner_offset , __be32 info ) { struct sock * sk ; int hash ; struct in6_addr * saddr , * daddr ; struct net * net ; hash = nexthdr & ( RAW_HTABLE_SIZE - 1 ) ; read_lock ( & raw_v6_hashinfo . lock ) ; sk = sk_head ( & raw_v6_hashi...
0
512,506
int setup_tests(void) { app_data_index = RAND_DRBG_get_ex_new_index(0L, NULL, NULL, NULL, NULL); ADD_ALL_TESTS(test_kats, OSSL_NELEM(drbg_test)); ADD_ALL_TESTS(test_error_checks, OSSL_NELEM(drbg_test)); ADD_TEST(test_rand_drbg_reseed); ADD_TEST(test_rand_seed); ADD_TEST(test_rand_add); #if defi...
0
162,162
explicit C_handle_write(AsyncConnectionRef c): conn(c) {}
0
345,035
_asn1_get_octet_string (asn1_node node, const unsigned char *der, unsigned der_len, int *len) { int len2, len3, counter, tot_len, indefinite; counter = 0; if (*(der - 1) & ASN1_CLASS_STRUCTURED) { tot_len = 0; indefinite = asn1_get_length_der (der, der_len, &len3); if (indefinite < -1) re...
1
347,468
static void sig_chatnet_read(IRC_CHATNET_REC *rec, CONFIG_NODE *node) { if (!IS_IRC_CHATNET(rec)) return; rec->usermode = g_strdup(config_node_get_str(node, "usermode", NULL)); rec->max_cmds_at_once = config_node_get_int(node, "cmdmax", 0); rec->cmd_queue_speed = config_node_get_int(node, "cmdspeed", 0); rec->...
1
170,359
xsltGetKey(xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *nameURI, const xmlChar *value) { xmlNodeSetPtr ret; xsltKeyTablePtr table; int init_table = 0; if ((ctxt == NULL) || (name == NULL) || (value == NULL) || (ctxt->document == NULL)) return(NULL); #ifdef WITH_XSLT_DEBUG_KE...
0
94,889
static void nfs4_state_start_reclaim_reboot(struct nfs_client *clp) { /* Mark all delegations for reclaim */ nfs_delegation_mark_reclaim(clp); nfs4_state_mark_reclaim_helper(clp, nfs4_state_mark_reclaim_reboot); }
0
123,393
void address_space_destroy(AddressSpace *as) { MemoryRegion *root = as->root; /* Flush out anything from MemoryListeners listening in on this */ memory_region_transaction_begin(); as->root = NULL; memory_region_transaction_commit(root); QTAILQ_REMOVE(&as->uc->address_spaces, as, address_spaces_...
0
77,601
static void xen_machine_power_off(void) { do_kernel_power_off(); xen_reboot(SHUTDOWN_poweroff); }
0
230,562
transit_hash_alloc (void *p) { /* Transit structure is already allocated. */ return p; }
0
195,417
bool RenderWidgetHostViewAura::HasHitTestMask() const { return false; }
0
71,012
void nntp_hcache_update(struct NntpData *nntp_data, header_cache_t *hc) { char buf[16]; bool old = false; void *hdata = NULL; anum_t first = 0, last = 0; if (!hc) return; /* fetch previous values of first and last */ hdata = mutt_hcache_fetch_raw(hc, "index", 5); if (hdata) { mutt_debug(2, "...
0
318,207
error::Error GLES2DecoderImpl::HandleDestroyStreamTextureCHROMIUM( uint32 immediate_data_size, const gles2::DestroyStreamTextureCHROMIUM& c) { GLuint client_id = c.texture; TextureManager::TextureInfo* info = texture_manager()->GetTextureInfo(client_id); if (info && info->IsStreamTexture()) { if...
0
200,121
bool WebView::shouldInitializeTrackPointHack() { static bool shouldCreateScrollbars; static bool hasRunTrackPointCheck; if (hasRunTrackPointCheck) return shouldCreateScrollbars; hasRunTrackPointCheck = true; const wchar_t* trackPointKeys[] = { L"Software\\Lenovo\\TrackPoint", ...
0
378,917
int LZ4_loadDict (void* LZ4_dict, const char* dictionary, int dictSize) { LZ4_stream_t_internal* dict = (LZ4_stream_t_internal*) LZ4_dict; const BYTE* p = (const BYTE*)dictionary; const BYTE* const dictEnd = p + dictSize; const BYTE* base; LZ4_STATIC_ASSERT(LZ4_STREAMSIZE >= sizeof(LZ4_stream_t_int...
0
519,120
void Field_num::make_send_field(Send_field *field) { Field::make_send_field(field); field->decimals= dec; }
0
435,309
static int ws_echo(struct buf *inbuf, struct buf *outbuf, struct buf *logbuf __attribute__((unused)), void **rock __attribute__((unused))) { buf_init_ro(outbuf, buf_base(inbuf), buf_len(inbuf)); return 0; }
0
323,767
static void sd_set_status(SDState *sd) { switch (sd->state) { case sd_inactive_state: sd->mode = sd_inactive; break; case sd_idle_state: case sd_ready_state: case sd_identification_state: sd->mode = sd_card_identification_mode; break; case sd_standb...
0
358,299
static void fixup_rmode_irq(struct vcpu_vmx *vmx) { vmx->rmode.irq.pending = 0; if (kvm_rip_read(&vmx->vcpu) + 1 != vmx->rmode.irq.rip) return; kvm_rip_write(&vmx->vcpu, vmx->rmode.irq.rip); if (vmx->idt_vectoring_info & VECTORING_INFO_VALID_MASK) { vmx->idt_vectoring_info &= ~VECTORING_INFO_TYPE_MASK; vmx->i...
0
349,041
static int report_block(struct dquot *dquot, unsigned int blk, char *bitmap, int (*process_dquot) (struct dquot *, void *), void *data) { struct qtree_mem_dqinfo *info = &dquot->dq_h->qh_info.u.v2_mdqi.dqi_qtree; dqbuf_t buf = getdqbuf(); struct qt_disk_dqdbheader *dh; char *ddata; int entries, i; if (!...
1
86,742
cupsdAcceptClient(cupsd_listener_t *lis)/* I - Listener socket */ { const char *hostname; /* Hostname of client */ char name[256]; /* Hostname of client */ int count; /* Count of connections on a host */ cupsd_client_t *con, /* New client pointer */ *tempcon; /* Temporary client pointer */ socklen_t...
0
260,930
static unsigned long get_seg_limit(struct pt_regs *regs, int seg_reg_idx) { struct desc_struct desc; unsigned long limit; short sel; sel = get_segment_selector(regs, seg_reg_idx); if (sel < 0) return 0; if (user_64bit_mode(regs) || v8086_mode(regs)) return -1L; if (!sel) return 0; if (!get_desc(&desc,...
0
242,069
BrowserTabStripController::BrowserTabStripController(Browser* browser, TabStripModel* model) : model_(model), tabstrip_(NULL), browser_(browser), hover_tab_selector_(model) { model_->AddObserver(this); local_pref_registrar_.Init(g_browser_p...
0
469,356
__be16 xfrm_flowi_dport(const struct flowi *fl, const union flowi_uli *uli) { __be16 port; switch(fl->flowi_proto) { case IPPROTO_TCP: case IPPROTO_UDP: case IPPROTO_UDPLITE: case IPPROTO_SCTP: port = uli->ports.dport; break; case IPPROTO_ICMP: case IPPROTO_ICMPV6: port = htons(uli->icmpt.code); break; ...
0
263,849
wakeup_preempt_entity(struct sched_entity *curr, struct sched_entity *se) { s64 gran, vdiff = curr->vruntime - se->vruntime; if (vdiff <= 0) return -1; gran = wakeup_gran(se); if (vdiff > gran) return 1; return 0; }
0
26,468
static int remaining_bits ( WMAProDecodeCtx * s , GetBitContext * gb ) { return s -> buf_bit_size - get_bits_count ( gb ) ; }
0
301,066
static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) { struct vcpu_svm *svm = to_svm(vcpu); #ifdef CONFIG_X86_64 if (vcpu->arch.efer & EFER_LME) { if (!is_paging(vcpu) && (cr0 & X86_CR0_PG)) { vcpu->arch.efer |= EFER_LMA; svm->vmcb->save.efer |= EFER_LMA | EFER_LME; } if (is_paging(vcpu) &&...
0
28,385
static void update_unicast_addr ( unicast_addr_t * req_addr , unicast_addr_t * ack_addr ) { if ( ack_addr -> addr . type != AT_NONE && ack_addr -> port != 0 ) { memcpy ( req_addr -> addr_buf , ack_addr -> addr_buf , sizeof ( req_addr -> addr_buf ) ) ; SET_ADDRESS ( & req_addr -> addr , ack_addr -> addr . type , ack_...
0
398,205
lib_eventloop_main_core(args) VALUE args; { struct evloop_params *params = (struct evloop_params *)args; check_rootwidget_flag = params->check_root; Tcl_CreateEventSource(rbtk_EventSetupProc, rbtk_EventCheckProc, (ClientData)args); if (lib_eventloop_core(params->check_root, ...
0
174,496
bool PaintController::CacheIsAllInvalid() const { DCHECK(!RuntimeEnabledFeatures::SlimmingPaintV2Enabled()); return current_paint_artifact_.IsEmpty() && current_cache_generation_.GetPaintInvalidationReason() != PaintInvalidationReason::kNone; }
0
521,334
my_bool mark_changed(int, const struct my_option *opt, char *) { if (opt->app_type) { sys_var *var= (sys_var*) opt->app_type; var->value_origin= sys_var::CONFIG; } return 0; }
0
36,197
GF_Err edts_box_read(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_array_read(s, bs); }
0
331,055
static SocketAddressLegacy *sd_server_config(QDict *options, Error **errp) { QDict *server = NULL; QObject *crumpled_server = NULL; Visitor *iv = NULL; SocketAddress *saddr_flat = NULL; SocketAddressLegacy *saddr = NULL; Error *local_err = NULL; qdict_extract_subqdict(options, &ser...
0