unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
64,168
0
grub_fshelp_find_file (const char *path, grub_fshelp_node_t rootnode, grub_fshelp_node_t *foundnode, int (*iterate_dir) (grub_fshelp_node_t dir, int (*hook) (const char *filename, enum grub_fshelp_filetype filetype, grub_fshelp_node_t node, void *closure), ...
6,400
53,880
0
acpi_os_write_memory(acpi_physical_address phys_addr, u64 value, u32 width) { void __iomem *virt_addr; unsigned int size = width / 8; bool unmap = false; rcu_read_lock(); virt_addr = acpi_map_vaddr_lookup(phys_addr, size); if (!virt_addr) { rcu_read_unlock(); virt_addr = acpi_os_ioremap(phys_addr, size); i...
6,401
186,953
1
bool AppCacheDatabase::FindEntriesForCache(int64_t cache_id, std::vector<EntryRecord>* records) { DCHECK(records && records->empty()); if (!LazyOpen(kDontCreate)) return false; static const char kSql[] = "SELECT cache_id, url, flags, response_id, response_size FROM Entries" " WHERE cache_id = ?"; sql::Statemen...
6,402
69,661
0
entry_guard_add_bridge_to_sample(guard_selection_t *gs, const bridge_info_t *bridge) { const uint8_t *id_digest = bridge_get_rsa_id_digest(bridge); const tor_addr_port_t *addrport = bridge_get_addr_port(bridge); tor_assert(addrport); /* make sure that the guard is not already ...
6,403
37,750
0
static int emulate_on_interception(struct vcpu_svm *svm) { return emulate_instruction(&svm->vcpu, 0) == EMULATE_DONE; }
6,404
36,212
0
static void *m_start(struct seq_file *m, loff_t *pos) { struct proc_mounts *p = proc_mounts(m); down_read(&namespace_sem); if (p->cached_event == p->ns->event) { void *v = p->cached_mount; if (*pos == p->cached_index) return v; if (*pos == p->cached_index + 1) { v = seq_list_next(v, &p->ns->list, &p->ca...
6,405
129,707
0
ResourcePtr<RawResource> ResourceFetcher::fetchRawResource(FetchRequest& request) { return toRawResource(requestResource(Resource::Raw, request)); }
6,406
64,198
0
AP_DECLARE(const char *) ap_get_server_name(request_rec *r) { conn_rec *conn = r->connection; core_dir_config *d; const char *retval; d = (core_dir_config *)ap_get_core_module_config(r->per_dir_config); switch (d->use_canonical_name) { case USE_CANONICAL_NAME_ON: retval = r->se...
6,407
170,012
0
xsltTemplateParamsCleanup(xsltTransformContextPtr ctxt) { xsltStackElemPtr param; for (; ctxt->varsNr > ctxt->varsBase; ctxt->varsNr--) { param = ctxt->varsTab[ctxt->varsNr -1]; /* * Free xsl:param items. * xsl:with-param items will have a level of -1 or -2. */ if (param->level >= 0) { xsltFreeStack...
6,408
118,995
0
void WebContentsImpl::OnRequestPpapiBrokerPermission( int routing_id, const GURL& url, const base::FilePath& plugin_path) { if (!delegate_) { OnPpapiBrokerPermissionResult(routing_id, false); return; } if (!delegate_->RequestPpapiBrokerPermission( this, url, plugin_path, base::Bin...
6,409
173,324
0
type_message(struct file *file, png_uint_32 type, const char *what) /* Error message for a chunk; the chunk name comes from 'type' */ { if (file->global->errors) { fputs(file->file_name, stderr); type_sep(stderr); type_name(type, stderr); type_sep(stderr); fputs(what, stderr); put...
6,410
181,352
1
static void svc_rdma_destroy_maps(struct svcxprt_rdma *xprt) { while (!list_empty(&xprt->sc_maps)) { struct svc_rdma_req_map *map; map = list_first_entry(&xprt->sc_maps, struct svc_rdma_req_map, free); list_del(&map->free); kfree(map); } }
6,411
72,175
0
mm_answer_gss_checkmic(int sock, Buffer *m) { gss_buffer_desc gssbuf, mic; OM_uint32 ret; u_int len; if (!options.gss_authentication) fatal("%s: GSSAPI authentication not enabled", __func__); gssbuf.value = buffer_get_string(m, &len); gssbuf.length = len; mic.value = buffer_get_string(m, &len); mic.length =...
6,412
177,604
0
ExternalFrameBufferMD5Test() : DecoderTest(GET_PARAM(::libvpx_test::kCodecFactoryParam)), md5_file_(NULL), num_buffers_(0) {}
6,413
11,985
0
int dtls1_write_bytes(SSL *s, int type, const void *buf, int len) { int i; OPENSSL_assert(len <= SSL3_RT_MAX_PLAIN_LENGTH); s->rwstate = SSL_NOTHING; i = do_dtls1_write(s, type, buf, len, 0); return i; }
6,414
61,994
0
ikev1_n_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len, const u_char *ep, uint32_t phase _U_, uint32_t doi0 _U_, uint32_t proto0 _U_, int depth _U_) { const struct ikev1_pl_n *p; struct ikev1_pl_n n; const u_char *cp; const u_char *ep2; uint32_t do...
6,415
93,414
0
static int netdev_adjacent_sysfs_add(struct net_device *dev, struct net_device *adj_dev, struct list_head *dev_list) { char linkname[IFNAMSIZ+7]; sprintf(linkname, dev_list == &dev->adj_list.upper ? "upper_%s" : "lower_%s", adj_dev->name); return sysfs_create_link(&(dev->dev.kobj), &(adj_dev->de...
6,416
41,366
0
int kvm_arch_vcpu_reset(struct kvm_vcpu *vcpu) { vcpu->arch.nmi_pending = false; vcpu->arch.nmi_injected = false; vcpu->arch.switch_db_regs = 0; memset(vcpu->arch.db, 0, sizeof(vcpu->arch.db)); vcpu->arch.dr6 = DR6_FIXED_1; vcpu->arch.dr7 = DR7_FIXED_1; kvm_make_request(KVM_REQ_EVENT, vcpu); vcpu->arch.apf.ms...
6,417
92,199
0
static void set_sig_seg(struct mlx5_rwqe_sig *sig, int size) { sig->signature = calc_sig(sig, size); }
6,418
66,451
0
static void cp2112_gpio_poll_callback(struct work_struct *work) { struct cp2112_device *dev = container_of(work, struct cp2112_device, gpio_poll_worker.work); struct irq_data *d; u8 gpio_mask; u8 virqs = (u8)dev->irq_mask; u32 irq_type; int irq, virq, ret; ret = cp2112_gpio_get_all(&dev->gc); if (ret ==...
6,419
181,412
1
nfssvc_decode_writeargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_writeargs *args) { unsigned int len, hdr, dlen; struct kvec *head = rqstp->rq_arg.head; int v; p = decode_fh(p, &args->fh); if (!p) return 0; p++; /* beginoffset */ args->offset = ntohl(*p++); /* offset */ p++; /* totalcount *...
6,420
24,880
0
static void *s_start(struct seq_file *m, loff_t *pos) { loff_t n = *pos; down_read(&slub_lock); if (!n) print_slabinfo_header(m); return seq_list_start(&slab_caches, *pos); }
6,421
135,743
0
AtomicString GetInputModeAttribute(Element* element) { if (!element) return AtomicString(); bool query_attribute = false; if (isHTMLInputElement(*element)) { query_attribute = toHTMLInputElement(*element).SupportsInputModeAttribute(); } else if (isHTMLTextAreaElement(*element)) { query_attribute = ...
6,422
16,009
0
bool xmp_files_can_put_xmp_cstr(XmpFilePtr xf, const char* xmp_packet, size_t len) { CHECK_PTR(xf, false); RESET_ERROR; SXMPFiles *txf = reinterpret_cast<SXMPFiles*>(xf); bool result = false; try { result = txf->CanPutXMP(xmp_packet, len); } catch(const XMP_Error & e) { set_error(e); return f...
6,423
154,067
0
void GLES2DecoderImpl::DoSetReadbackBufferShadowAllocationINTERNAL( GLuint buffer_id, GLuint shm_id, GLuint shm_offset, GLuint size) { static const char kFunctionName[] = "glSetBufferShadowAllocationINTERNAL"; scoped_refptr<Buffer> buffer = buffer_manager()->GetBuffer(buffer_id); if (!buffer) { ...
6,424
21,216
0
static void copy_user_gigantic_page(struct page *dst, struct page *src, unsigned long addr, struct vm_area_struct *vma, unsigned int pages_per_huge_page) { int i; struct page *dst_base = dst; struct page *src_base = src; for (i = 0; i < pages_per_huge_page; ) { cond_resched(); copy_user...
6,425
163,006
0
void ResetMaxCapacityBytes(size_t max_capacity_bytes) { max_capacity_bytes_ = max_capacity_bytes; Initialize(); }
6,426
46,996
0
static int lrw_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct serpent_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); be128 buf[SERPENT_AVX2_PARALLEL_BLOCKS]; struct crypt_priv crypt_ctx = { .ctx = &ctx->serpent_ctx, .fpu_enabled = fa...
6,427
167,740
0
void WebRuntimeFeatures::EnableOrientationEvent(bool enable) { RuntimeEnabledFeatures::SetOrientationEventEnabled(enable); }
6,428
180,297
1
void gdImageCopyMerge (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h, int pct) { int c, dc; int x, y; int tox, toy; int ncR, ncG, ncB; toy = dstY; for (y = srcY; y < (srcY + h); y++) { tox = dstX; for (x = srcX; x < (srcX + w); x++) { int nc; c = gdImageGetPi...
6,429
63,495
0
static void test_hash_module() { uint8_t blob[] = {0x61, 0x62, 0x63, 0x64, 0x65}; assert_true_rule_blob( "import \"hash\" \ rule test { \ condition: \ hash.md5(0, filesize) == \ \"ab56b4d92b40713acc5af89985d4b786\" \ and \ hash.md5(1, filesize) == \ ...
6,430
139,031
0
void run() { if (!m_loader) return; ExecutionContext& context = m_loader->element()->document(); InspectorInstrumentation::AsyncTask asyncTask(&context, this); if (m_scriptState->contextIsValid()) { ScriptState::Scope scope(m_scriptState.get()); m_loader->doUpdateFromElement(m_should...
6,431
106,688
0
static void compositionToUnderlines(const Vector<DWORD>& clauses, const Vector<BYTE>& attributes, Vector<CompositionUnderline>& underlines) { if (clauses.isEmpty()) { underlines.clear(); return; } size_t numBoundaries = clauses.size() - 1; underlines.resize(numBoundaries); for (un...
6,432
88,778
0
static void Process_ipfix_templates(exporter_ipfix_domain_t *exporter, void *flowset_header, uint32_t size_left, FlowSource_t *fs) { ipfix_template_record_t *ipfix_template_record; void *DataPtr; uint32_t count; size_left -= 4; // subtract message header DataPtr = flowset_header + 4; ipfix_template_record = (i...
6,433
55,818
0
static int show_numa_map(struct seq_file *m, void *v, int is_pid) { struct numa_maps_private *numa_priv = m->private; struct proc_maps_private *proc_priv = &numa_priv->proc_maps; struct vm_area_struct *vma = v; struct numa_maps *md = &numa_priv->md; struct file *file = vma->vm_file; struct mm_struct *mm = vma->vm...
6,434
68,313
0
static void ctx_sched_out(struct perf_event_context *ctx, struct perf_cpu_context *cpuctx, enum event_type_t event_type) { int is_active = ctx->is_active; struct perf_event *event; lockdep_assert_held(&ctx->lock); if (likely(!ctx->nr_events)) { /* * See __perf_remove_from_context(). */ WARN_ON...
6,435
114,678
0
void MediaStreamImpl::OnVideoDeviceFailed(const std::string& label, int index) { DCHECK(CalledOnValidThread()); DVLOG(1) << "MediaStreamImpl::OnVideoDeviceFailed(" << label << ", " << index << ")"; NOTIMPLEMENTED(); }
6,436
140,722
0
void GLES2DecoderImpl::DoBlitFramebufferCHROMIUM( GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { DCHECK(!ShouldDeferReads() && !ShouldDeferDraws()); if (!CheckBoundFramebuffersValid("glBlitFramebufferCHROMIUM")) ...
6,437
116,754
0
void MockRenderThread::WidgetRestored() { }
6,438
143,300
0
ViewportDescription Document::viewportDescription() const { ViewportDescription appliedViewportDescription = m_viewportDescription; bool viewportMetaEnabled = settings() && settings()->viewportMetaEnabled(); if (m_legacyViewportDescription.type != ViewportDescription::UserAgentStyleSheet && viewportMetaEnab...
6,439
70,101
0
static OPJ_BOOL opj_pi_next_lrcp(opj_pi_iterator_t * pi) { opj_pi_comp_t *comp = NULL; opj_pi_resolution_t *res = NULL; OPJ_UINT32 index = 0; if (!pi->first) { comp = &pi->comps[pi->compno]; res = &comp->resolutions[pi->resno]; goto LABEL_SKIP; } else { pi->first = 0...
6,440
176,725
0
void acquire_object(const sp<ProcessState>& proc, const flat_binder_object& obj, const void* who, size_t* outAshmemSize) { switch (obj.type) { case BINDER_TYPE_BINDER: if (obj.binder) { LOG_REFS("Parcel %p acquiring reference on local %p", who, obj.cookie); reinterpret_cast<IBinder*>(obj.cookie)->i...
6,441
85,862
0
static void clone_endio(struct bio *bio) { blk_status_t error = bio->bi_status; struct dm_target_io *tio = container_of(bio, struct dm_target_io, clone); struct dm_io *io = tio->io; struct mapped_device *md = tio->io->md; dm_endio_fn endio = tio->ti->type->end_io; if (unlikely(error == BLK_STS_TARGET)) { if (b...
6,442
144,215
0
void LockContentsView::RemoveUser(bool is_primary) { if (Shell::Get()->login_screen_controller()->IsAuthenticating()) return; LoginBigUserView* to_remove = is_primary ? primary_big_view_ : opt_secondary_big_view_; DCHECK(to_remove->GetCurrentUser()->can_remove); AccountId user = to_remove->GetCurrent...
6,443
62,226
0
isis_print_mt_port_cap_subtlv(netdissect_options *ndo, const uint8_t *tptr, int len) { int stlv_type, stlv_len; const struct isis_subtlv_spb_mcid *subtlv_spb_mcid; int i; while (len > 2) { ND_TCHECK2(*tptr, 2); stlv_type = *(tptr++); stlv_len = *(tptr++); /* fi...
6,444
22,950
0
static int nfs4_reclaim_locks(struct nfs4_state *state, const struct nfs4_state_recovery_ops *ops) { struct inode *inode = state->inode; struct nfs_inode *nfsi = NFS_I(inode); struct file_lock *fl; int status = 0; down_write(&nfsi->rwsem); for (fl = inode->i_flock; fl != NULL; fl = fl->fl_next) { if (!(fl->fl_...
6,445
43,680
0
static int pick_link(struct nameidata *nd, struct path *link, struct inode *inode, unsigned seq) { int error; struct saved *last; if (unlikely(nd->total_link_count++ >= MAXSYMLINKS)) { path_to_nameidata(link, nd); return -ELOOP; } if (!(nd->flags & LOOKUP_RCU)) { if (link->mnt == nd->path.mnt) mntg...
6,446
135,760
0
void InputMethodController::SetCompositionFromExistingText( const Vector<CompositionUnderline>& underlines, unsigned composition_start, unsigned composition_end) { Element* editable = GetFrame() .Selection() .ComputeVisibleSelectionInDOMTreeDeprecated() ...
6,447
56,821
0
int usb_port_resume(struct usb_device *udev, pm_message_t msg) { struct usb_hub *hub = usb_hub_to_struct_hub(udev->parent); struct usb_port *port_dev = hub->ports[udev->portnum - 1]; int port1 = udev->portnum; int status; u16 portchange, portstatus; if (!test_and_set_bit(port1, hub->child_usage_bits)) { st...
6,448
71,500
0
ModuleExport void UnregisterDIBImage(void) { (void) UnregisterMagickInfo("DIB"); }
6,449
159,168
0
void DownloadItemImpl::MarkAsComplete() { DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(AllDataSaved()); destination_info_.end_time = base::Time::Now(); TransitionTo(COMPLETE_INTERNAL); UpdateObservers(); }
6,450
73,223
0
static int jpc_poc_dumpparms(jpc_ms_t *ms, FILE *out) { jpc_poc_t *poc = &ms->parms.poc; jpc_pocpchg_t *pchg; int pchgno; for (pchgno = 0, pchg = poc->pchgs; pchgno < poc->numpchgs; ++pchgno, ++pchg) { fprintf(out, "po[%d] = %d; ", pchgno, pchg->prgord); fprintf(out, "cs[%d] = %d; ce[%d] = %d; ", pchgno,...
6,451
61,687
0
static void opj_tcd_code_block_enc_deallocate(opj_tcd_precinct_t * p_precinct) { OPJ_UINT32 cblkno, l_nb_code_blocks; opj_tcd_cblk_enc_t * l_code_block = p_precinct->cblks.enc; if (l_code_block) { l_nb_code_blocks = p_precinct->block_size / sizeof(opj_tcd_cblk_enc_t); for (cblkno = 0; cblk...
6,452
103,366
0
BrowserFrameGtk::BrowserFrameGtk(BrowserFrame* browser_frame, BrowserView* browser_view) : views::NativeWidgetGtk(browser_frame), browser_view_(browser_view) { set_focus_on_creation(false); }
6,453
31,073
0
static inline int rtnl_vfinfo_size(const struct net_device *dev, u32 ext_filter_mask) { if (dev->dev.parent && dev_is_pci(dev->dev.parent) && (ext_filter_mask & RTEXT_FILTER_VF)) { int num_vfs = dev_num_vf(dev->dev.parent); size_t size = nla_total_size(sizeof(struct nlattr)); size += nla_total_size(n...
6,454
157,708
0
void WakeUp() { if (loop_) loop_->Quit(); }
6,455
168,542
0
static inline BOOLEAN guid_eq(const GUID *guid1, const GUID *guid2) { if ((guid1 != NULL) && (guid2 != NULL)) { return (memcmp(guid1, guid2, sizeof(GUID)) == 0); } return false; }
6,456
49,701
0
static int diskstats_open(struct inode *inode, struct file *file) { return seq_open(file, &diskstats_op); }
6,457
171,628
0
static int adev_dump(const audio_hw_device_t *device, int fd) { UNUSED(device); UNUSED(fd); FNLOG(); return 0; }
6,458
168,106
0
void AutocompleteSuggestionsReturned( const std::vector<base::string16>& result) { autofill_manager_->autocomplete_history_manager_->SendSuggestions(&result); }
6,459
845
0
GBool ArthurOutputDev::beginType3Char(GfxState *state, double x, double y, double dx, double dy, CharCode code, Unicode *u, int uLen) { return gFalse; }
6,460
86,634
0
void blk_insert_flush(struct request *rq) { struct request_queue *q = rq->q; unsigned int fflags = q->flush_flags; /* may change, cache */ unsigned int policy = blk_flush_policy(fflags, rq); struct blk_flush_queue *fq = blk_get_flush_queue(q, rq->mq_ctx); /* * @policy now records what operations need to be done...
6,461
181,821
1
monitor_init(void) { struct ssh *ssh = active_state; /* XXX * struct monitor *mon; mon = xcalloc(1, sizeof(*mon)); monitor_openfds(mon, 1); /* Used to share zlib space across processes * if (options.compression) { mon->m_zback = mm_create(NULL, MM_MEMSIZE); mon->m_zlib = mm_create(mon->m_zback, 20 * MM_MEMSI...
6,462
127,456
0
void FileAPIMessageFilter::OnWrite( int request_id, const GURL& path, const GURL& blob_url, int64 offset) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); if (!request_context_) { NOTREACHED(); return; } FileSystemURL url(path); base::PlatformFileError error; if (!HasPermiss...
6,463
87,106
0
CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count) { size_t i = 0; cJSON *n = NULL; cJSON *p = NULL; cJSON *a = NULL; if ((count < 0) || (numbers == NULL)) { return NULL; } a = cJSON_CreateArray(); for(i = 0; a && (i < (size_t)count); i++) { ...
6,464
39,472
0
static inline void yam_rx_flag(struct net_device *dev, struct yam_port *yp) { if (yp->dcd && yp->rx_len >= 3 && yp->rx_len < YAM_MAX_FRAME) { int pkt_len = yp->rx_len - 2 + 1; /* -CRC + kiss */ struct sk_buff *skb; if ((yp->rx_crch & yp->rx_crcl) != 0xFF) { /* Bad crc */ } else { if (!(skb = dev_alloc_s...
6,465
30,516
0
static void nr_info_stop(struct seq_file *seq, void *v) { spin_unlock_bh(&nr_list_lock); }
6,466
91,097
0
static int rtnl_net_dumpid(struct sk_buff *skb, struct netlink_callback *cb) { struct rtnl_net_dump_cb net_cb = { .tgt_net = sock_net(skb->sk), .skb = skb, .fillargs = { .portid = NETLINK_CB(cb->skb).portid, .seq = cb->nlh->nlmsg_seq, .flags = NLM_F_MULTI, .cmd = RTM_NEWNSID, }, .idx = 0, .s_id...
6,467
117,445
0
WebGLId WebGraphicsContext3DCommandBufferImpl::getPlatformTextureId() { return context_->GetParentTextureId(); }
6,468
57,848
0
static inline int writer_trylock(struct ld_semaphore *sem) { /* only wake this writer if the active part of the count can be * transitioned from 0 -> 1 */ long count = ldsem_atomic_update(LDSEM_ACTIVE_BIAS, sem); do { if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) return 1; if (ldsem_cmpxchg(&count...
6,469
149,096
0
static int codeTriggerProgram( Parse *pParse, /* The parser context */ TriggerStep *pStepList, /* List of statements inside the trigger body */ int orconf /* Conflict algorithm. (OE_Abort, etc) */ ){ TriggerStep *pStep; Vdbe *v = pParse->pVdbe; sqlite3 *db = pParse->db; asse...
6,470
125,459
0
void RunGetFileCallbackHelper(const GetFileCallback& callback, GDataFileError* error, FilePath* file_path, std::string* mime_type, GDataFileType* file_type) { DCHECK(error); DCHECK(file_path); D...
6,471
153,605
0
GLES2Implementation::DeferErrorCallbacks::DeferErrorCallbacks( GLES2Implementation* gles2_implementation) : gles2_implementation_(gles2_implementation) { DCHECK_EQ(false, gles2_implementation_->deferring_error_callbacks_); gles2_implementation_->deferring_error_callbacks_ = true; }
6,472
79,108
0
process_principals(struct ssh *ssh, FILE *f, const char *file, const struct sshkey_cert *cert, struct sshauthopt **authoptsp) { char loc[256], *line = NULL, *cp, *ep; size_t linesize = 0; u_long linenum = 0; u_int found_principal = 0; if (authoptsp != NULL) *authoptsp = NULL; while (getline(&line, &linesi...
6,473
1,357
0
static inline struct nfs_inode *nfsi(struct inode *inode) { return container_of(inode, struct nfs_inode, inode); }
6,474
179,245
1
static int key_notify_policy_flush(const struct km_event *c) { struct sk_buff *skb_out; struct sadb_msg *hdr; skb_out = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_ATOMIC); if (!skb_out) return -ENOBUFS; hdr = (struct sadb_msg *) skb_put(skb_out, sizeof(struct sadb_msg)); hdr->sadb_msg_type = SADB_X_SPDFLUSH; ...
6,475
27,489
0
static int ipgre_header_parse(const struct sk_buff *skb, unsigned char *haddr) { struct iphdr *iph = (struct iphdr *) skb_mac_header(skb); memcpy(haddr, &iph->saddr, 4); return 4; }
6,476
146,052
0
void WebGL2RenderingContextBase::bufferData( GLenum target, MaybeShared<DOMArrayBufferView> src_data, GLenum usage, GLuint src_offset, GLuint length) { if (isContextLost()) return; void* sub_base_address = nullptr; long long sub_byte_length = 0; if (!ValidateSubSourceAndGetData(src_data....
6,477
181,499
1
tgs_make_reply(krb5_context context, krb5_kdc_configuration *config, KDC_REQ_BODY *b, krb5_const_principal tgt_name, const EncTicketPart *tgt, const krb5_keyblock *replykey, int rk_is_subkey, const EncryptionKey *serverkey, const krb5_keyblock *sessionkey, krb5_kvno kvno, AuthorizationData *auth_data, hdb_entry_ex *ser...
6,478
81,757
0
static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb) { s->avctx->profile = get_bits(gb, 4); s->avctx->level = get_bits(gb, 4); if (s->avctx->profile == 0 && s->avctx->level == 8) { s->avctx->level = 0; } return 0; }
6,479
121,155
0
void HTMLInputElement::handleBlurEvent() { m_inputType->handleBlurEvent(); }
6,480
29,974
0
static int br_mdb_add_group(struct net_bridge *br, struct net_bridge_port *port, struct br_ip *group, unsigned char state) { struct net_bridge_mdb_entry *mp; struct net_bridge_port_group *p; struct net_bridge_port_group __rcu **pp; struct net_bridge_mdb_htable *mdb; int err; mdb = mlock_dereference(br->md...
6,481
73,384
0
MagickExport MagickBooleanType IsMonochromeImage(const Image *image, ExceptionInfo *exception) { assert(image != (Image *) NULL); assert(image->signature == MagickSignature); if (image->type == BilevelType) return(MagickTrue); return(MagickFalse); }
6,482
14,372
0
static double bessel(double x) { double v = 1; double lastv = 0; double t = 1; int i; x = x * x / 4; for (i = 1; v != lastv; i++) { lastv = v; t *= x / (i * i); v += t; } return v; }
6,483
20,954
0
static inline void clear_TF(struct kernel_vm86_regs *regs) { regs->pt.flags &= ~X86_EFLAGS_TF; }
6,484
27,194
0
int id_create(void *ptr) { static int id = 0; id_link(++id, ptr); return id; }
6,485
164,122
0
bool AppCacheDatabase::LazyOpen(bool create_if_needed) { if (db_) return true; if (is_disabled_) return false; bool use_in_memory_db = db_file_path_.empty(); if (!create_if_needed && (use_in_memory_db || !base::PathExists(db_file_path_))) { return false; } db_.reset(new sql::Database); ...
6,486
82,545
0
static ALWAYS_INLINE void jslSingleChar() { lex->tk = (unsigned char)lex->currCh; jslGetNextCh(); }
6,487
181,337
1
int svc_rdma_recvfrom(struct svc_rqst *rqstp) { struct svc_xprt *xprt = rqstp->rq_xprt; struct svcxprt_rdma *rdma_xprt = container_of(xprt, struct svcxprt_rdma, sc_xprt); struct svc_rdma_op_ctxt *ctxt = NULL; struct rpcrdma_msg *rmsgp; int ret = 0; dprintk("svcrdma: rqstp=%p\n", rqstp); spin_lock(&rdma_xprt->sc_rq_dt...
6,488
160,197
0
void PDFiumEngine::AppendBlankPages(int num_pages) { DCHECK_NE(num_pages, 0); if (!doc_) return; selection_.clear(); pending_pages_.clear(); while (pages_.size() > 1) { pages_.pop_back(); FPDFPage_Delete(doc_, pages_.size()); } std::vector<pp::Rect> page_rects; pp::Size page_size = GetPa...
6,489
29,342
0
void kvm_make_scan_ioapic_request(struct kvm *kvm) { make_all_cpus_request(kvm, KVM_REQ_SCAN_IOAPIC); }
6,490
100,618
0
VoiceInteractionIcon() : Layer(ui::LAYER_NOT_DRAWN) { set_name("VoiceInteractionOverlay:ICON_LAYER"); SetBounds(gfx::Rect(0, 0, kIconInitSizeDip, kIconInitSizeDip)); SetFillsBoundsOpaquely(false); SetMasksToBounds(false); InitMoleculeShape(); }
6,491
117,996
0
v8::Local<v8::Context> V8Proxy::mainWorldContext(Frame* frame) { V8Proxy* proxy = retrieve(frame); if (!proxy) return v8::Local<v8::Context>(); return proxy->mainWorldContext(); }
6,492
89,630
0
setupM (gcry_cipher_hd_t c) { #if defined(GCM_USE_INTEL_PCLMUL) || defined(GCM_USE_ARM_PMULL) unsigned int features = _gcry_get_hw_features (); #endif if (0) ; #ifdef GCM_USE_INTEL_PCLMUL else if (features & HWF_INTEL_PCLMUL) { c->u_mode.gcm.ghash_fn = _gcry_ghash_intel_pclmul; _gcry_ghash_se...
6,493
55,481
0
int __sched _cond_resched(void) { if (should_resched(0)) { preempt_schedule_common(); return 1; } return 0; }
6,494
90,080
0
size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel) { DEBUGLOG(4, "ZSTD_initCStream"); return ZSTD_initCStream_srcSize(zcs, compressionLevel, ZSTD_CONTENTSIZE_UNKNOWN); }
6,495
110,340
0
void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar, bool overlay) { if (ppp_scrollbar_ != NULL) { ppp_scrollbar_->OverlayChanged(plugin_->pp_instance(), scrollbar.pp_resource(), PP_FromBool(overlay)); } }
6,496
111,601
0
void TestLoadMetadataFromCache() { file_system_->LoadRootFeedFromCache( false, // load_from_server FilePath(FILE_PATH_LITERAL("drive")), base::Bind(&GDataFileSystemTest::OnExpectToFindEntry, FilePath(FILE_PATH_LITERAL("drive")))); BrowserThread::GetBlockingPool()...
6,497
97,264
0
virtual void call(XMLTokenizer* tokenizer) { tokenizer->characters(s, len); }
6,498
5,021
0
int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) { EVP_PKEY *ktmp = NULL, *ktmp2; int i, j; if ((pkey != NULL) && !EVP_PKEY_missing_parameters(pkey)) return 1; for (i = 0; i < sk_X509_num(chain); i++) { ktmp = X509_get_pubkey(sk_X509_value(chain, i)); if (k...
6,499