unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
60,339
0
handle_new(int use, const char *name, int fd, int flags, DIR *dirp) { int i; if (first_unused_handle == -1) { if (num_handles + 1 <= num_handles) return -1; num_handles++; handles = xreallocarray(handles, num_handles, sizeof(Handle)); handle_unused(num_handles - 1); } i = first_unused_handle; first_un...
14,100
39,382
0
static void floppy_shutdown(struct work_struct *arg) { unsigned long flags; if (initialized) show_floppy(); cancel_activity(); flags = claim_dma_lock(); fd_disable_dma(); release_dma_lock(flags); /* avoid dma going to a random drive after shutdown */ if (initialized) DPRINT("floppy timeout called\n"); ...
14,101
41,205
0
tcp_sacktag_write_queue(struct sock *sk, const struct sk_buff *ack_skb, u32 prior_snd_una) { const struct inet_connection_sock *icsk = inet_csk(sk); struct tcp_sock *tp = tcp_sk(sk); const unsigned char *ptr = (skb_transport_header(ack_skb) + TCP_SKB_CB(ack_skb)->sacked); struct tcp_sack_block_wire *sp_w...
14,102
89,511
0
SWFShape_getFills(SWFShape shape, SWFFillStyle** fills, int* nFills) { *fills = shape->fills; *nFills = shape->nFills; }
14,103
179,626
1
static __always_inline int __do_follow_link(struct path *path, struct nameidata *nd) { int error; void *cookie; struct dentry *dentry = path->dentry; touch_atime(path->mnt, dentry); nd_set_link(nd, NULL); if (path->mnt != nd->path.mnt) { path_to_nameidata(path, nd); dget(dentry); } mntget(path->mnt); ...
14,104
135,932
0
static void collectChildrenAndRemoveFromOldParent(Node& node, NodeVector& nodes, ExceptionState& exceptionState) { if (node.isDocumentFragment()) { DocumentFragment& fragment = toDocumentFragment(node); getChildNodes(fragment, nodes); fragment.removeChildren(); return; } node...
14,105
137,712
0
bool PrintViewManagerBase::RenderAllMissingPagesNow() { if (!print_job_.get() || !print_job_->is_job_pending()) return false; if (!web_contents() || !web_contents()->GetRenderViewHost() || !web_contents()->GetRenderViewHost()->IsRenderViewLive()) { return false; } if (print_job_->document(...
14,106
138,887
0
void WallpaperManager::InitializeRegisteredDeviceWallpaper() { if (user_manager::UserManager::Get()->IsUserLoggedIn()) return; bool disable_boot_animation = GetCommandLine()->HasSwitch(switches::kDisableBootAnimation); bool show_users = true; bool result = CrosSettings::Get()->GetBoolean( kAcco...
14,107
181,268
1
MagickExport Image *CloneImage(const Image *image,const size_t columns, const size_t rows,const MagickBooleanType detach,ExceptionInfo *exception) { double scale; Image *clone_image; size_t length; /* Clone the image. */ assert(image != (const Image *) NULL); assert(image->signature == MagickSignature); if (image->d...
14,108
44,974
0
xfs_attr_rmtval_copyout( struct xfs_mount *mp, struct xfs_buf *bp, xfs_ino_t ino, int *offset, int *valuelen, __uint8_t **dst) { char *src = bp->b_addr; xfs_daddr_t bno = bp->b_bn; int len = BBTOB(bp->b_length); ASSERT(len >= XFS_LBSIZE(mp)); while (len > 0 && *valuelen > 0) { int hdr_size = 0; int...
14,109
27,265
0
static void insert_to_mm_slots_hash(struct mm_struct *mm, struct mm_slot *mm_slot) { struct hlist_head *bucket; bucket = &mm_slots_hash[hash_ptr(mm, MM_SLOTS_HASH_SHIFT)]; mm_slot->mm = mm; hlist_add_head(&mm_slot->link, bucket); }
14,110
144,528
0
base::TimeTicks WebContentsImpl::GetLastActiveTime() const { return last_active_time_; }
14,111
103,827
0
void RenderView::OnScriptEvalRequest(const string16& frame_xpath, const string16& jscript, int id, bool notify_result) { EvaluateScript(frame_xpath, jscript, id, notify_result); }
14,112
12,438
0
static char *spl_object_storage_get_hash(spl_SplObjectStorage *intern, zval *this, zval *obj, int *hash_len_ptr TSRMLS_DC) { if (intern->fptr_get_hash) { zval *rv; zend_call_method_with_1_params(&this, intern->std.ce, &intern->fptr_get_hash, "getHash", &rv, obj); if (rv) { if (Z_TYPE_P(rv) == IS_STRING) { ...
14,113
60,744
0
pkinit_fini_pkinit_oids(pkinit_plg_crypto_context ctx) { if (ctx == NULL) return; ASN1_OBJECT_free(ctx->id_pkinit_san); ASN1_OBJECT_free(ctx->id_pkinit_authData); ASN1_OBJECT_free(ctx->id_pkinit_DHKeyData); ASN1_OBJECT_free(ctx->id_pkinit_rkeyData); ASN1_OBJECT_free(ctx->id_pkinit_KPClie...
14,114
158,474
0
bool context_menu_request_received() const { return context_menu_request_received_; }
14,115
186,432
1
std::string SanitizeRevision(const std::string& revision) { for (size_t i = 0; i < revision.length(); i++) { if (!(revision[i] == '@' && i == 0) && !(revision[i] >= '0' && revision[i] <= '9') && !(revision[i] >= 'a' && revision[i] <= 'z') && !(revision[i] >= 'A' && revision[i] <= 'Z')) { ...
14,116
49,700
0
void disk_unblock_events(struct gendisk *disk) { if (disk->ev) __disk_unblock_events(disk, false); }
14,117
111,170
0
void WebPage::goToBackForwardEntry(BackForwardId id) { HistoryItem* item = historyItemFromBackForwardId(id); ASSERT(item); d->m_page->goToItem(item, FrameLoadTypeIndexedBackForward); }
14,118
86,375
0
u32 hugetlb_fault_mutex_hash(struct hstate *h, struct mm_struct *mm, struct vm_area_struct *vma, struct address_space *mapping, pgoff_t idx, unsigned long address) { return 0; }
14,119
100,979
0
static void texImage2DResourceSafe(size_t width, size_t height) { const int pixelSize = 4; // RGBA OwnArrayPtr<unsigned char> zero; if (width && height) { unsigned int size = width * height * pixelSize; zero = adoptArrayPtr(new unsigned char[size]); memset(zero.get(), 0, size); }...
14,120
86,620
0
void fpm_stdio_child_use_pipes(struct fpm_child_s *child) /* {{{ */ { if (child->wp->config->catch_workers_output) { dup2(fd_stdout[1], STDOUT_FILENO); dup2(fd_stderr[1], STDERR_FILENO); close(fd_stdout[0]); close(fd_stdout[1]); close(fd_stderr[0]); close(fd_stderr[1]); } else { /* stdout of parent is alway...
14,121
24,715
0
mktime(const unsigned int year0, const unsigned int mon0, const unsigned int day, const unsigned int hour, const unsigned int min, const unsigned int sec) { unsigned int mon = mon0, year = year0; /* 1..12 -> 11,12,1..10 */ if (0 >= (int) (mon -= 2)) { mon += 12; /* Puts Feb last since it has leap da...
14,122
149,313
0
void DatabaseImpl::RemoveObservers(const std::vector<int32_t>& observers) { idb_runner_->PostTask(FROM_HERE, base::Bind(&IDBThreadHelper::RemoveObservers, base::Unretained(helper_), observers)); }
14,123
51,952
0
SpoolssEnumPrinters_q(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep _U_) { guint32 level, flags; dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data; static const int * hf_flags[] = { &hf_enumprinters_flags_network, &hf_enumprinters_flags_shared, &h...
14,124
35,654
0
handle_annotation(struct magic_set *ms, struct magic *m) { if (ms->flags & MAGIC_APPLE) { if (file_printf(ms, "%.8s", m->apple) == -1) return -1; return 1; } if ((ms->flags & MAGIC_MIME_TYPE) && m->mimetype[0]) { if (file_printf(ms, "%s", m->mimetype) == -1) return -1; return 1; } return 0; }
14,125
109,023
0
void RenderViewImpl::Repaint(const gfx::Size& size) { OnMsgRepaint(size); }
14,126
174,933
0
Camera2Client::~Camera2Client() { ATRACE_CALL(); ALOGV("~Camera2Client"); mDestructionStarted = true; disconnect(); ALOGI("Camera %d: Closed", mCameraId); }
14,127
81,847
0
int wc_X963_KDF(enum wc_HashType type, const byte* secret, word32 secretSz, const byte* sinfo, word32 sinfoSz, byte* out, word32 outSz) { int ret, i; int digestSz, copySz; int remaining = outSz; byte* outIdx; byte counter[4]; byte tmp[WC_MAX_DIGEST_SIZE]; #ifdef WOLFSSL_SMALL_...
14,128
132,252
0
void RenderFrameImpl::OnStop() { DCHECK(frame_); frame_->stopLoading(); if (!frame_->parent()) FOR_EACH_OBSERVER(RenderViewObserver, render_view_->observers_, OnStop()); FOR_EACH_OBSERVER(RenderFrameObserver, observers_, OnStop()); }
14,129
186,760
1
void ServiceWorkerDevToolsAgentHost::AttachSession(DevToolsSession* session) { if (state_ == WORKER_READY) { if (sessions().size() == 1) { BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, base::BindOnce(&SetDevToolsAttachedOnIO, context_weak_, version_id_, true)); } // RenderProcessHost should not be null here...
14,130
150,429
0
int bounds_change_count() const { return bounds_change_count_; }
14,131
128,750
0
ScriptPromise ReadableStream::cancelInternal(ScriptState* scriptState, ScriptValue reason) { setIsDisturbed(); closeInternal(); return m_source->cancelSource(scriptState, reason).then(ConstUndefined::create(scriptState)); }
14,132
7,745
0
TT_Set_MM_Blend( TT_Face face, FT_UInt num_coords, FT_Fixed* coords ) { FT_Error error = TT_Err_Ok; GX_Blend blend; FT_MM_Var* mmvar; FT_UInt i; FT_Memory memory = face->root.memory; enum { mcvt_retain, mcvt_modify, ...
14,133
34,258
0
struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, int name_len, int mod) { int ret; struct btrfs_key key; int ins_len = mod < 0 ? -1 : 0; int cow = mod != 0; key.object...
14,134
161,328
0
Response NetworkHandler::EmulateNetworkConditions( bool offline, double latency, double download_throughput, double upload_throughput, Maybe<protocol::Network::ConnectionType>) { network::mojom::NetworkConditionsPtr network_conditions; bool throttling_enabled = offline || latency > 0 || download...
14,135
153,427
0
bool TabStrip::IsLastVisibleTab(const Tab* tab) const { return GetLastVisibleTab() == tab; }
14,136
179,618
1
cdf_file_summary_info(struct magic_set *ms, const cdf_header_t *h, const cdf_stream_t *sst, const uint64_t clsid[2]) { cdf_summary_info_header_t si; cdf_property_info_t *info; size_t count; int m; if (cdf_unpack_summary_info(sst, h, &si, &info, &count) == -1) return -1; if (NOTMIME(ms)) { const char *str; if (fi...
14,137
165,618
0
String Location::hostname() const { return DOMURLUtilsReadOnly::hostname(Url()); }
14,138
6,063
0
e1000e_set_ics(E1000ECore *core, int index, uint32_t val) { trace_e1000e_irq_write_ics(val); e1000e_set_interrupt_cause(core, val); }
14,139
144,451
0
void WebContentsImpl::CreateBrowserPluginEmbedderIfNecessary() { if (browser_plugin_embedder_) return; browser_plugin_embedder_.reset(BrowserPluginEmbedder::Create(this)); }
14,140
37,856
0
static unsigned long svm_get_rflags(struct kvm_vcpu *vcpu) { return to_svm(vcpu)->vmcb->save.rflags; }
14,141
14,946
0
ProcAllocColorPlanes(ClientPtr client) { ColormapPtr pcmp; int rc; REQUEST(xAllocColorPlanesReq); REQUEST_SIZE_MATCH(xAllocColorPlanesReq); rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, RT_COLORMAP, client, DixAddAccess); if (rc == Success) { ...
14,142
23,694
0
void bond_change_active_slave(struct bonding *bond, struct slave *new_active) { struct slave *old_active = bond->curr_active_slave; if (old_active == new_active) return; if (new_active) { new_active->jiffies = jiffies; if (new_active->link == BOND_LINK_BACK) { if (USES_PRIMARY(bond->params.mode)) { p...
14,143
4,109
0
static inline int imgCoordMungeUpper(SplashCoord x) { return splashFloor(x) + 1; }
14,144
19,531
0
static int udf_load_partdesc(struct super_block *sb, sector_t block) { struct buffer_head *bh; struct partitionDesc *p; struct udf_part_map *map; struct udf_sb_info *sbi = UDF_SB(sb); int i, type1_idx; uint16_t partitionNumber; uint16_t ident; int ret = 0; bh = udf_read_tagged(sb, block, block, &ident); if (...
14,145
161,215
0
static bool SniffForHTML(const char* content, size_t size, bool* have_enough_content, std::string* result) { *have_enough_content &= TruncateSize(512, &size); const char* const end = content + size; const char* pos; for (pos = content; ...
14,146
152,284
0
void RenderFrameImpl::DidObserveLoadingBehavior( blink::WebLoadingBehaviorFlag behavior) { for (auto& observer : observers_) observer.DidObserveLoadingBehavior(behavior); }
14,147
60,975
0
nautilus_directory_remove_file_monitors (NautilusDirectory *directory, NautilusFile *file) { GList *result, **list, *node, *next; Monitor *monitor; g_assert (NAUTILUS_IS_DIRECTORY (directory)); g_assert (NAUTILUS_IS_FILE (file)); g_assert (file->details...
14,148
6,188
0
int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) { int al, i, j, ret; unsigned int n; SSL3_RECORD *rr; void (*cb) (const SSL *ssl, int type2, int val) = NULL; if (s->s3->rbuf.buf == NULL) /* Not initialized yet */ if (!ssl3_setup_read_buffer(s)) retur...
14,149
142,972
0
void HTMLMediaElement::setVolume(double vol, ExceptionState& exception_state) { BLINK_MEDIA_LOG << "setVolume(" << (void*)this << ", " << vol << ")"; if (volume_ == vol) return; if (vol < 0.0f || vol > 1.0f) { exception_state.ThrowDOMException( DOMExceptionCode::kIndexSizeError, Exceptio...
14,150
124,518
0
LayoutUnit RenderBlock::collapsedMarginBeforeForChild(const RenderBox* child) const { if (!child->isWritingModeRoot()) return child->collapsedMarginBefore(); if (child->isHorizontalWritingMode() == isHorizontalWritingMode()) return child->collapsedMarginAfter(); return marginBeforeForChild...
14,151
27,692
0
ebt_dev_check(const char *entry, const struct net_device *device) { int i = 0; const char *devname; if (*entry == '\0') return 0; if (!device) return 1; devname = device->name; /* 1 is the wildcard token */ while (entry[i] != '\0' && entry[i] != 1 && entry[i] == devname[i]) i++; return (devname[i] != ent...
14,152
97,199
0
void WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad() { WebDataSourceImpl* ds = webframe_->GetProvisionalDataSourceImpl(); if (!ds) { NOTREACHED() << "Got a server redirect when there is no provisional DS"; return; } if (ds->request().isNull()) return; DCHECK(ds->hasRed...
14,153
172,202
0
virtual void TearDown() { semaphore_free(semaphore); AlarmTestHarness::TearDown(); }
14,154
111,879
0
void ProfileSyncService::GetDataTypeControllerStates( browser_sync::DataTypeController::StateMap* state_map) const { for (browser_sync::DataTypeController::TypeMap::const_iterator iter = data_type_controllers_.begin(); iter != data_type_controllers_.end(); ++iter) (*state_map)[iter->first]...
14,155
84,058
0
u32 _ilog_(u32 v) { u32 ret=0; while(v) { ret++; v>>=1; } return(ret); }
14,156
101,197
0
int64 BuildCommitCommand::GetLastPosition() { return std::numeric_limits<int64>::max(); }
14,157
94,902
0
static int __init usbnet_init(void) { /* Compiler should optimize this out. */ BUILD_BUG_ON( FIELD_SIZEOF(struct sk_buff, cb) < sizeof(struct skb_data)); eth_random_addr(node_id); return 0; }
14,158
186,408
1
PageInfoUI::GetSecurityDescription(const IdentityInfo& identity_info) const { std::unique_ptr<PageInfoUI::SecurityDescription> security_description( new PageInfoUI::SecurityDescription()); switch (identity_info.safe_browsing_status) { case PageInfo::SAFE_BROWSING_STATUS_NONE: break; case PageInfo::SAFE...
14,159
119,513
0
static int computeOffset(WebCore::RenderObject* renderer, int x, int y) { return WebCore::VisiblePosition(renderer->positionForPoint(WebCore::LayoutPoint(x, y))).deepEquivalent().computeOffsetInContainerNode(); }
14,160
40,867
0
void *hashtable_iter_next(hashtable_t *hashtable, void *iter) { list_t *list = (list_t *)iter; if(list->next == &hashtable->list) return NULL; return list->next; }
14,161
44,171
0
size_t iov_iter_single_seg_count(const struct iov_iter *i) { const struct iovec *iov = i->iov; if (i->nr_segs == 1) return i->count; else return min(i->count, iov->iov_len - i->iov_offset); }
14,162
52,854
0
static ssize_t ucma_listen(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) { struct rdma_ucm_listen cmd; struct ucma_context *ctx; int ret; if (copy_from_user(&cmd, inbuf, sizeof(cmd))) return -EFAULT; ctx = ucma_get_ctx(file, cmd.id); if (IS_ERR(ctx)) return PTR_ERR(ctx); ...
14,163
102,033
0
void GraphicsSurface::platformUnlock() { }
14,164
183,039
1
static int cx24116_send_diseqc_msg(struct dvb_frontend *fe, struct dvb_diseqc_master_cmd *d) { struct cx24116_state *state = fe->demodulator_priv; int i, ret; /* Dump DiSEqC message */ if (debug) { printk(KERN_INFO "cx24116: %s(", __func__); for (i = 0 ; i < d->msg_len ;) { printk(KERN_INFO "0x%02x", d->msg[i]); if (+...
14,165
130,298
0
void OSExchangeDataProviderWin::SetFileContents( const base::FilePath& filename, const std::string& file_contents) { STGMEDIUM* storage = GetStorageForFileDescriptor(filename); data_->contents_.push_back(new DataObjectImpl::StoredDataInfo( Clipboard::GetFileDescriptorFormatType().ToFormatEtc(), storag...
14,166
50,298
0
void mndp_broadcast() { struct mt_packet pdata; struct utsname s_uname; struct net_interface *interface; unsigned int uptime; #if defined(__APPLE__) int mib[] = {CTL_KERN, KERN_BOOTTIME}; struct timeval boottime; size_t tv_size = sizeof(boottime); if (sysctl(mib, sizeof(mib)/sizeof(mib[0]), &boottime, &tv_size,...
14,167
158,273
0
void RenderWidgetHostImpl::ForwardWheelEvent( const WebMouseWheelEvent& wheel_event) { ForwardWheelEventWithLatencyInfo(wheel_event, ui::LatencyInfo(ui::SourceEventType::WHEEL)); }
14,168
124,515
0
RenderBlock* RenderBlock::clone() const { RenderBlock* cloneBlock; if (isAnonymousBlock()) { cloneBlock = createAnonymousBlock(); cloneBlock->setChildrenInline(childrenInline()); } else { RenderObject* cloneRenderer = toElement(node())->createRenderer(style()); cloneBlock...
14,169
43,983
0
__xml_acl_free(void *data) { if(data) { xml_acl_t *acl = data; free(acl->xpath); free(acl); } }
14,170
177,926
1
gst_vorbis_tag_add_coverart (GstTagList * tags, const gchar * img_data_base64, gint base64_len) { GstBuffer *img; guchar *img_data; gsize img_len; guint save = 0; gint state = 0; if (base64_len < 2) goto not_enough_data; img_data = g_try_malloc0 (base64_len * 3 / 4); if (img_data == NULL) goto alloc_failed;...
14,171
163,113
0
void BlobStorageContext::RunOnConstructionBegin( const std::string& uuid, const BlobStatusCallback& done) { BlobEntry* entry = registry_.GetEntry(uuid); DCHECK(entry); if (entry->status() == BlobStatus::PENDING_CONSTRUCTION) { entry->building_state_->build_started_callbacks.push_back(done); return...
14,172
55,638
0
u64 scheduler_tick_max_deferment(void) { struct rq *rq = this_rq(); unsigned long next, now = READ_ONCE(jiffies); next = rq->last_sched_tick + HZ; if (time_before_eq(next, now)) return 0; return jiffies_to_nsecs(next - now); }
14,173
62,175
0
void ClrFormatPromptHook(void) { UnhookWinEvent(fp_weh); fp_weh = NULL; }
14,174
142,773
0
void HTMLMediaElement::DeferredLoadTimerFired(TimerBase*) { SetShouldDelayLoadEvent(false); if (deferred_load_state_ == kExecuteOnStopDelayingLoadEventTask) { ExecuteDeferredLoad(); return; } DCHECK_EQ(deferred_load_state_, kWaitingForStopDelayingLoadEventTask); deferred_load_state_ = kWaitingForTrig...
14,175
169,693
0
void V8ValueConverterImpl::SetFunctionAllowed(bool val) { function_allowed_ = val; }
14,176
85,669
0
static void fill_tso_desc(struct hnae_ring *ring, void *priv, int size, dma_addr_t dma, int frag_end, int buf_num, enum hns_desc_type type, int mtu) { int frag_buf_num; int sizeoflast; int k; frag_buf_num = (size + BD_MAX_SEND_SIZE - 1) / BD_MAX_SEND_SIZE; sizeoflast = size % BD_MAX_SEND_SIZE; sizeofla...
14,177
9,620
0
PHPAPI int php_get_session_var(char *name, size_t namelen, zval ***state_var TSRMLS_DC) /* {{{ */ { int ret = FAILURE; IF_SESSION_VARS() { ret = zend_hash_find(Z_ARRVAL_P(PS(http_session_vars)), name, namelen + 1, (void **) state_var); } return ret; } /* }}} */
14,178
166,878
0
void Performance::AddPaintTiming(PerformancePaintTiming::PaintType type, TimeTicks start_time) { if (!RuntimeEnabledFeatures::PerformancePaintTimingEnabled()) return; PerformanceEntry* entry = new PerformancePaintTiming( type, MonotonicTimeToDOMHighResTimeStamp(start_time...
14,179
116,175
0
void SocketStreamDispatcherHost::ContinueSSLRequest( const content::GlobalRequestID& id) { int socket_id = id.request_id; DVLOG(1) << "SocketStreamDispatcherHost::ContinueSSLRequest socket_id=" << socket_id; DCHECK_NE(content::kNoSocketId, socket_id); SocketStreamHost* socket_stream_host = hosts_...
14,180
135,987
0
const GURL& GetLastUrl() { download_run_loop_.Run(); return last_url_; }
14,181
47,455
0
static int padlock_sha256_final(struct shash_desc *desc, u8 *out) { u8 buf[4]; return padlock_sha256_finup(desc, buf, 0, out); }
14,182
82,235
0
int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr, int __user *upeer_addrlen, int flags) { struct socket *sock, *newsock; struct file *newfile; int err, len, newfd, fput_needed; struct sockaddr_storage address; if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) return -EINVAL; if (SOCK_NONBLOCK !...
14,183
159,554
0
void Document::AdjustFloatQuadsForScrollAndAbsoluteZoom( Vector<FloatQuad>& quads, const LayoutObject& layout_object) const { if (!View()) return; LayoutRect visible_content_rect(View()->VisibleContentRect()); for (size_t i = 0; i < quads.size(); ++i) { quads[i].Move(-FloatSize(visible_content_re...
14,184
146,394
0
ImageBitmap* WebGLRenderingContextBase::TransferToImageBitmapBase( ScriptState* script_state) { WebFeature feature = WebFeature::kOffscreenCanvasTransferToImageBitmapWebGL; UseCounter::Count(ExecutionContext::From(script_state), feature); if (!GetDrawingBuffer()) return nullptr; return ImageBitmap::Crea...
14,185
38,210
0
static long futex_wait_restart(struct restart_block *restart) { u32 __user *uaddr = restart->futex.uaddr; ktime_t t, *tp = NULL; if (restart->futex.flags & FLAGS_HAS_TIMEOUT) { t.tv64 = restart->futex.time; tp = &t; } restart->fn = do_no_restart_syscall; return (long)futex_wait(uaddr, restart->futex.flags, ...
14,186
167,981
0
void LocalFrame::SetPrinting(bool printing, bool use_printing_layout, const FloatSize& page_size, const FloatSize& original_page_size, float maximum_shrink_ratio) { ResourceCacheValidationSuppressor val...
14,187
58,850
0
static int snd_timer_stop1(struct snd_timer_instance *timeri, bool stop) { struct snd_timer *timer; int result = 0; unsigned long flags; timer = timeri->timer; if (!timer) return -EINVAL; spin_lock_irqsave(&timer->lock, flags); if (!(timeri->flags & (SNDRV_TIMER_IFLG_RUNNING | SNDRV_TIMER_IFLG_START...
14,188
175,649
0
SoftMPEG4Encoder::SoftMPEG4Encoder( const char *name, const OMX_CALLBACKTYPE *callbacks, OMX_PTR appData, OMX_COMPONENTTYPE **component) : SoftVideoEncoderOMXComponent(name, callbacks, appData, component), mEncodeMode(COMBINE_MODE_WITH_ERR_RES), mVideoWidth(176), mVideoHeigh...
14,189
13,736
0
ZEND_API int add_index_resource(zval *arg, ulong index, int r) /* {{{ */ { zval *tmp; MAKE_STD_ZVAL(tmp); ZVAL_RESOURCE(tmp, r); return zend_hash_index_update(Z_ARRVAL_P(arg), index, (void *) &tmp, sizeof(zval *), NULL); } /* }}} */
14,190
166,404
0
bool GLES2Util::IsUnsignedIntegerFormat(uint32_t internal_format) { switch (internal_format) { case GL_R8UI: case GL_R16UI: case GL_R32UI: case GL_RG8UI: case GL_RG16UI: case GL_RG32UI: case GL_RGB8UI: case GL_RGB16UI: case GL_RGB32UI: case GL_RGBA8UI: case GL_RGB10_A2UI: ...
14,191
135,640
0
const SelectionInDOMTree& FrameSelection::GetSelectionInDOMTree() const { return selection_editor_->GetSelectionInDOMTree(); }
14,192
97,954
0
void RenderView::OnFillPasswordForm( const webkit_glue::PasswordFormFillData& form_data) { #if defined(WEBKIT_BUG_41283_IS_FIXED) password_autocomplete_manager_.ReceivedPasswordFormFillData(webview(), form_data); #else webkit_glue::FillPasswordForm(t...
14,193
91,501
0
static int gifPutWord(int w, gdIOCtx *out) { /* Byte order is little-endian */ gdPutC(w & 0xFF, out); gdPutC((w >> 8) & 0xFF, out); return 0; }
14,194
62,597
0
init_servarray(netdissect_options *ndo) { struct servent *sv; register struct hnamemem *table; register int i; char buf[sizeof("0000000000")]; while ((sv = getservent()) != NULL) { int port = ntohs(sv->s_port); i = port & (HASHNAMESIZE-1); if (strcmp(sv->s_proto, "tcp") == 0) table = &tporttable[i]; el...
14,195
90,234
0
int ipmi_std_irq_setup(struct si_sm_io *io) { int rv; if (!io->irq) return 0; rv = request_irq(io->irq, ipmi_si_irq_handler, IRQF_SHARED, DEVICE_NAME, io->irq_handler_data); if (rv) { dev_warn(io->dev, "%s unable to claim interrupt %d," " running polled\n", DEVICE_NAME, io->irq); io-...
14,196
160,965
0
void ChromeClientImpl::HandleKeyboardEventOnTextField( HTMLInputElement& input_element, KeyboardEvent& event) { if (auto* fill_client = AutofillClientFromFrame(input_element.GetDocument().GetFrame())) { fill_client->TextFieldDidReceiveKeyDown(WebInputElement(&input_element), ...
14,197
81,957
0
static void findHotKeys(void) { redisReply *keys, *reply; unsigned long long counters[HOTKEYS_SAMPLE] = {0}; sds hotkeys[HOTKEYS_SAMPLE] = {NULL}; unsigned long long sampled = 0, total_keys, *freqs = NULL, it = 0; unsigned int arrsize = 0, i, k; double pct; /* Total keys pre scanning */ ...
14,198
21,481
0
renew_parental_timestamps(struct dentry *direntry) { /* BB check if there is a way to get the kernel to do this or if we really need this */ do { direntry->d_time = jiffies; direntry = direntry->d_parent; } while (!IS_ROOT(direntry)); }
14,199