unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
8,052
0
static int vnc_update_stats(VncDisplay *vd, struct timeval * tv) { int width = pixman_image_get_width(vd->guest.fb); int height = pixman_image_get_height(vd->guest.fb); int x, y; struct timeval res; int has_dirty = 0; for (y = 0; y < height; y += VNC_STAT_RECT) { for (x = 0; x < width;...
100
149,182
0
gfx::Size ScaleSizeToFitView(const gfx::Size& size, const gfx::Size& view_size) { if ((size.width() > view_size.width() || size.height() > view_size.height()) || (size.width() < view_size.width() && size.height() < view_size.height())) { const float scale = ...
101
61,530
0
static size_t WritePSDChannel(const PSDInfo *psd_info, const ImageInfo *image_info,Image *image,Image *next_image, const QuantumType quantum_type, unsigned char *compact_pixels, MagickOffsetType size_offset,const MagickBooleanType separate) { int y; MagickBooleanType monochrome; QuantumInfo *q...
102
179,598
1
PHP_FUNCTION(imageconvolution) { zval *SIM, *hash_matrix; zval **var = NULL, **var2 = NULL; gdImagePtr im_src = NULL; double div, offset; int nelem, i, j, res; float matrix[3][3] = {{0,0,0}, {0,0,0}, {0,0,0}}; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "radd", &SIM, &hash_matrix, &div, &offset) == FAILURE) {...
103
98,708
0
NPError WebPluginDelegatePepper::DeviceAudioInitializeContext( const NPDeviceContextAudioConfig* config, NPDeviceContextAudio* context) { if (!render_view_) { return NPERR_GENERIC_ERROR; } scoped_ptr<AudioDeviceContext> audio(new AudioDeviceContext()); NPError status = audio->Initialize(render_vie...
104
145,106
0
int frameCount() { return m_frameCount; }
105
19,217
0
static int netlink_broadcast_deliver(struct sock *sk, struct sk_buff *skb) { struct netlink_sock *nlk = nlk_sk(sk); if (atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf && !test_bit(0, &nlk->state)) { skb_set_owner_r(skb, sk); __netlink_sendskb(sk, skb); return atomic_read(&sk->sk_rmem_alloc) > (sk->sk_rc...
106
131,840
0
static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); v8SetReturnValueUnsigned(info, imp->unsignedShortAttribute()); }
107
183,848
1
void ExtensionTtsController::Stop() { if (current_utterance_ && !current_utterance_->extension_id().empty()) { current_utterance_->profile()->GetExtensionEventRouter()-> DispatchEventToExtension( current_utterance_->extension_id(), events::kOnStop, "[]", cur...
108
95,501
0
void Field_CompletePlayerName( const char **names, int nameCount ) { qboolean whitespace; matchCount = 0; shortestMatch[ 0 ] = 0; if( nameCount <= 0 ) return; Name_PlayerNameCompletion( names, nameCount, FindMatches ); if( completionString[0] == '\0' ) { Com_PlayerNameToFieldString( shortestMatch, sizeof...
109
55,021
0
static void mark_tree_contents_uninteresting(struct tree *tree) { struct tree_desc desc; struct name_entry entry; struct object *obj = &tree->object; if (!has_object_file(&obj->oid)) return; if (parse_tree(tree) < 0) die("bad tree %s", oid_to_hex(&obj->oid)); init_tree_desc(&desc, tree->buffer, tree->size);...
110
90,832
0
u32 gf_rand() { return rand(); }
111
17,978
0
ssh_packet_connection_is_on_socket(struct ssh *ssh) { struct session_state *state = ssh->state; struct sockaddr_storage from, to; socklen_t fromlen, tolen; if (state->connection_in == -1 || state->connection_out == -1) return 0; /* filedescriptors in and out are the same, so it's a socket */ if (state->connec...
112
175,094
0
void SoundPool::setVolume(int channelID, float leftVolume, float rightVolume) { Mutex::Autolock lock(&mLock); SoundChannel* channel = findChannel(channelID); if (channel) { channel->setVolume(leftVolume, rightVolume); } }
113
11,427
0
fbFetchPixel_x1b5g5r5 (const FbBits *bits, int offset, miIndexedPtr indexed) { CARD32 pixel = READ((CARD16 *) bits + offset); CARD32 r,g,b; b = ((pixel & 0x7c00) | ((pixel & 0x7000) >> 5)) >> 7; g = ((pixel & 0x03e0) | ((pixel & 0x0380) >> 5)) << 6; r = ((pixel & 0x001c) | ((pixel & 0x001f) << 5)...
114
65,295
0
nfs3svc_encode_wccstat(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_attrstat *resp) { p = encode_wcc_data(rqstp, p, &resp->fh); return xdr_ressize_check(rqstp, p); }
115
139,445
0
static bool ExecuteMakeTextWritingDirectionLeftToRight(LocalFrame& frame, Event*, EditorCommandSource, const String&) { MutableStylePropertySet* style = ...
116
27,479
0
static int ipgre_close(struct net_device *dev) { struct ip_tunnel *t = netdev_priv(dev); if (ipv4_is_multicast(t->parms.iph.daddr) && t->mlink) { struct in_device *in_dev; in_dev = inetdev_by_index(dev_net(dev), t->mlink); if (in_dev) { ip_mc_dec_group(in_dev, t->parms.iph.daddr); in_dev_put(in_dev); }...
117
117,440
0
void WebGraphicsContext3DCommandBufferImpl::OnMemoryAllocationChanged( const GpuMemoryAllocation& allocation) { if (memory_allocation_changed_callback_) memory_allocation_changed_callback_->onMemoryAllocationChanged( allocation.gpu_resource_size_in_bytes); }
118
161,491
0
TargetHandler::Throttle::WillProcessResponse() { if (!target_handler_) return PROCEED; agent_host_ = target_handler_->auto_attacher_.AutoAttachToFrame(navigation_handle()); if (!agent_host_.get()) return PROCEED; target_handler_->auto_attached_sessions_[agent_host_.get()]->SetThrottle( this)...
119
180,915
1
SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *, infop, int, options, struct rusage __user *, ru) { struct rusage r; struct waitid_info info = {.status = 0}; long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL); int signo = 0; if (err > 0) { signo = SIGCHLD; err = 0; } if (!e...
120
120,384
0
bool swipe_down() const { return swipe_down_; }
121
168,086
0
void SelectRightNameType(const ServerFieldTypeSet& old_types, ServerFieldTypeSet* new_types, bool is_credit_card) { ServerFieldTypeSet upload_types; if (old_types.count(NAME_FIRST) && old_types.count(CREDIT_CARD_NAME_FIRST)) { if (is_credit_card) { new_typ...
122
152,976
0
void PDFiumEngine::Form_DisplayCaret(FPDF_FORMFILLINFO* param, FPDF_PAGE page, FPDF_BOOL visible, double left, double top, double right...
123
40,966
0
struct lh_entry* lh_table_lookup_entry(struct lh_table *t, const void *k) { unsigned long h = t->hash_fn(k); unsigned long n = h % t->size; int count = 0; t->lookups++; while( count < t->size ) { if(t->table[n].k == LH_EMPTY) return NULL; if(t->table[n].k != LH_FREED && t->equal_fn(t->table[n].k, k)) ret...
124
7,613
0
static void cirrus_write_bitblt(CirrusVGAState * s, unsigned reg_value) { unsigned old_value; old_value = s->vga.gr[0x31]; s->vga.gr[0x31] = reg_value; if (((old_value & CIRRUS_BLT_RESET) != 0) && ((reg_value & CIRRUS_BLT_RESET) == 0)) { cirrus_bitblt_reset(s); } else if (((old_value & CIRRUS_BL...
125
169,485
0
void NetworkThrottleManagerImpl::RecomputeOutstanding() { base::TimeTicks now(tick_clock_->NowTicks()); base::TimeDelta age_horizon(base::TimeDelta::FromMilliseconds(( kMedianLifetimeMultiple * lifetime_median_estimate_.current_estimate()))); while (!outstanding_throttles_.empty()) { ThrottleImpl* throt...
126
109,569
0
bool Document::allowExecutingScripts(Node* node) { if (!frame() && !import()) return false; if (!node->document().frame() && !node->document().import()) return false; if (!contextDocument().get()->frame()->script()->canExecuteScripts(AboutToExecuteScript)) return false; return tr...
127
20,660
0
static int dm_request_for_irq_injection(struct kvm_vcpu *vcpu) { return (!irqchip_in_kernel(vcpu->kvm) && !kvm_cpu_has_interrupt(vcpu) && vcpu->run->request_interrupt_window && kvm_arch_interrupt_allowed(vcpu)); }
128
180,750
1
void *arm_dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs) { pgprot_t prot = __get_dma_pgprot(attrs, pgprot_kernel); void *memory; if (dma_alloc_from_coherent(dev, size, handle, &memory)) return memory; return __dma_alloc(dev, size, handle, gfp, prot, false, __builti...
129
178,176
1
gray_render_span( int y, int count, const FT_Span* spans, PWorker worker ) { unsigned char* p; FT_Bitmap* map = &worker->target; /* first of all, compute the scanline offset */ p = (unsigned char*)map->buffer - y * map->pitch; if ( map->pitch >= 0 ) p += ( map->rows - 1 ) ...
130
64,602
0
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 '\\': if (*++yyp != '\\') ...
131
139,028
0
LayoutImageResource* ImageLoader::layoutImageResource() { LayoutObject* layoutObject = m_element->layoutObject(); if (!layoutObject) return 0; if (layoutObject->isImage() && !static_cast<LayoutImage*>(layoutObject)->isGeneratedContent()) return toLayoutImage(layoutObject)->imageResource(); if (...
132
113,319
0
ACTION(DeleteDataBuffer) { delete[] arg0->memory_pointer; }
133
112,086
0
SyncManager::SyncInternal::HandleTransactionEndingChangeEvent( const ImmutableWriteTransactionInfo& write_transaction_info, syncable::BaseTransaction* trans) { if (!change_delegate_ || ChangeBuffersAreEmpty()) return ModelTypeSet(); ReadTransaction read_trans(GetUserShare(), trans); Mode...
134
73,383
0
MagickExport MagickBooleanType IsGrayImage(const Image *image, ExceptionInfo *exception) { assert(image != (Image *) NULL); assert(image->signature == MagickSignature); if ((image->type == BilevelType) || (image->type == GrayscaleType) || (image->type == GrayscaleMatteType)) return(MagickTrue); retu...
135
2,202
0
void FoFiType1C::buildEncoding() { char buf[256]; int nCodes, nRanges, encFormat; int pos, c, sid, nLeft, nSups, i, j; if (topDict.encodingOffset == 0) { encoding = (char **)fofiType1StandardEncoding; } else if (topDict.encodingOffset == 1) { encoding = (char **)fofiType1ExpertEncoding; } else { ...
136
14,533
0
static inline void pcnet_tmd_load(PCNetState *s, struct pcnet_TMD *tmd, hwaddr addr) { if (!BCR_SSIZE32(s)) { struct { uint32_t tbadr; int16_t length; int16_t status; } xda; s->phys_mem_read(s->dma_opaque, addr, (void *)&xda, siz...
137
45,276
0
static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, struct extent_buffer *parent, int parent_slot, struct extent_buffer **cow_ret, u64 search_start, u64 empty_size) { struct btrfs_disk_key disk_key; struct ...
138
37,947
0
int kvm_iommu_map_guest(struct kvm *kvm) { int r; if (!iommu_present(&pci_bus_type)) { printk(KERN_ERR "%s: iommu not found\n", __func__); return -ENODEV; } mutex_lock(&kvm->slots_lock); kvm->arch.iommu_domain = iommu_domain_alloc(&pci_bus_type); if (!kvm->arch.iommu_domain) { r = -ENOMEM; goto out_unl...
139
53,653
0
static inline __u64 dccp_v6_init_sequence(struct sk_buff *skb) { return secure_dccpv6_sequence_number(ipv6_hdr(skb)->daddr.s6_addr32, ipv6_hdr(skb)->saddr.s6_addr32, dccp_hdr(skb)->dccph_dport, dccp_hdr(skb)->dccph_sport ); }
140
55,846
0
void __do_SAK(struct tty_struct *tty) { #ifdef TTY_SOFT_SAK tty_hangup(tty); #else struct task_struct *g, *p; struct pid *session; int i; if (!tty) return; session = tty->session; tty_ldisc_flush(tty); tty_driver_flush_buffer(tty); read_lock(&tasklist_lock); /* Kill the entire session */ do_each_pid_t...
141
182,834
1
static void parse_cfg(int flags, int argc, const char **argv, cfg_t *cfg) { int i; memset(cfg, 0, sizeof(cfg_t)); cfg->debug_file = stderr; for (i = 0; i < argc; i++) { if (strncmp(argv[i], "max_devices=", 12) == 0) sscanf(argv[i], "max_devices=%u", &cfg->max_devs); if (strcmp(argv[i], "manual") == 0) cfg->manual = 1;...
142
111,307
0
void WebPagePrivate::resetScales() { TransformationMatrix identity; *m_transformationMatrix = identity; m_initialScale = m_webSettings->initialScale() > 0 ? m_webSettings->initialScale() : -1.0; m_minimumScale = -1.0; m_maximumScale = -1.0; updateViewportSize(); }
143
106,665
0
void WebPageProxy::validateCommandCallback(const String& commandName, bool isEnabled, int state, uint64_t callbackID) { RefPtr<ValidateCommandCallback> callback = m_validateCommandCallbacks.take(callbackID); if (!callback) { return; } callback->performCallbackWithReturnValue(commandName.impl(),...
144
104,242
0
void RTCPeerConnection::didGenerateIceCandidate(PassRefPtr<RTCIceCandidateDescriptor> iceCandidateDescriptor) { ASSERT(scriptExecutionContext()->isContextThread()); if (!iceCandidateDescriptor) dispatchEvent(RTCIceCandidateEvent::create(false, false, 0)); else { RefPtr<RTCIceCandidate> iceCa...
145
60,145
0
R_API void *r_bin_free(RBin *bin) { if (!bin) { return NULL; } if (bin->io_owned) { r_io_free (bin->iob.io); } bin->file = NULL; free (bin->force); free (bin->srcdir); r_list_free (bin->binfiles); r_list_free (bin->binxtrs); r_list_free (bin->plugins); sdb_free (bin->sdb); r_id_pool_free (bin->file_ids)...
146
160,408
0
void NormalPageArena::updateRemainingAllocationSize() { if (m_lastRemainingAllocationSize > remainingAllocationSize()) { getThreadState()->increaseAllocatedObjectSize( m_lastRemainingAllocationSize - remainingAllocationSize()); m_lastRemainingAllocationSize = remainingAllocationSize(); } ASSERT(m_...
147
88,590
0
static void load_creator(FILE *fp, pdf_t *pdf) { int i, buf_idx; char c, *buf, obj_id_buf[32] = {0}; long start; size_t sz; start = ftell(fp); /* For each PDF version */ for (i=0; i<pdf->n_xrefs; ++i) { if (!pdf->xrefs[i].version) continue; /* Find tra...
148
119,789
0
void NavigationControllerImpl::InsertOrReplaceEntry(NavigationEntryImpl* entry, bool replace) { DCHECK(entry->GetTransitionType() != PAGE_TRANSITION_AUTO_SUBFRAME); const NavigationEntryImpl* const pending_entry = (pending_entry_index_ == -1) ? pe...
149
75,959
0
get_vrrp_instance(const char *ifname, int vrid, int family) { element e; vrrp_t *vrrp; if (LIST_ISEMPTY(vrrp_data->vrrp)) return NULL; for (e = LIST_HEAD(vrrp_data->vrrp); e; ELEMENT_NEXT(e)) { vrrp = ELEMENT_DATA(e); if (vrrp->vrid == vrid && vrrp->family == family && !valid_path_cmp(IF_BASE_I...
150
44,056
0
getXpathResult(xmlXPathObjectPtr xpathObj, int index) { xmlNode *match = NULL; int max = numXpathResults(xpathObj); CRM_CHECK(index >= 0, return NULL); CRM_CHECK(xpathObj != NULL, return NULL); if (index >= max) { crm_err("Requested index %d of only %d items", index, max); return N...
151
120,749
0
void BaseMultipleFieldsDateAndTimeInputType::valueAttributeChanged() { if (!element()->hasDirtyValue()) updateInnerTextValue(); }
152
182,307
1
static int compile_search(struct Context *ctx, const struct Pattern *pat, struct Buffer *buf) { if (do_search(pat, 0) == 0) return 0; if (pat->not) mutt_buffer_addstr(buf, "NOT "); if (pat->child) { int clauses; clauses = do_search(pat->child, 1); if (clauses > 0) { const struct Pattern *clause = pat->child; mutt_b...
153
659
0
check_data_region (struct tar_sparse_file *file, size_t i) { off_t size_left; if (!lseek_or_error (file, file->stat_info->sparse_map[i].offset)) return false; rdsize); return false; }
154
56,595
0
int ext4_mark_inode_dirty(handle_t *handle, struct inode *inode) { struct ext4_iloc iloc; struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); static unsigned int mnt_count; int err, ret; might_sleep(); trace_ext4_mark_inode_dirty(inode, _RET_IP_); err = ext4_reserve_inode_write(handle, inode, &iloc); if (ext4_han...
155
73,576
0
static MagickBooleanType ReadPSDChannelRLE(Image *image,const PSDInfo *psd_info, const ssize_t type,MagickOffsetType *offsets,ExceptionInfo *exception) { MagickBooleanType status; size_t length, row_size; ssize_t count, y; unsigned char *compact_pixels, *pixels; if (image->de...
156
70,527
0
static int ext4_enable_quotas(struct super_block *sb) { int type, err = 0; unsigned long qf_inums[EXT4_MAXQUOTAS] = { le32_to_cpu(EXT4_SB(sb)->s_es->s_usr_quota_inum), le32_to_cpu(EXT4_SB(sb)->s_es->s_grp_quota_inum), le32_to_cpu(EXT4_SB(sb)->s_es->s_prj_quota_inum) }; bool quota_mopt[EXT4_MAXQUOTAS] = { te...
157
121,399
0
void DevToolsWindow::DispatchOnEmbedder(const std::string& message) { std::string method; base::ListValue empty_params; base::ListValue* params = &empty_params; base::DictionaryValue* dict = NULL; scoped_ptr<base::Value> parsed_message(base::JSONReader::Read(message)); if (!parsed_message || !parsed_...
158
31,221
0
static int crypto_grab_nivaead(struct crypto_aead_spawn *spawn, const char *name, u32 type, u32 mask) { struct crypto_alg *alg; int err; type &= ~(CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV); type |= CRYPTO_ALG_TYPE_AEAD; mask |= CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV; alg = crypto_alg_mod_lookup(name, ...
159
58,741
0
static int tioccons(struct file *file) { if (!capable(CAP_SYS_ADMIN)) return -EPERM; if (file->f_op->write == redirected_tty_write) { struct file *f; spin_lock(&redirect_lock); f = redirect; redirect = NULL; spin_unlock(&redirect_lock); if (f) fput(f); return 0; } spin_lock(&redirect_lock); if (...
160
33,056
0
static int sctp_setsockopt_maxburst(struct sock *sk, char __user *optval, unsigned int optlen) { struct sctp_assoc_value params; struct sctp_sock *sp; struct sctp_association *asoc; int val; int assoc_id = 0; if (optlen == sizeof(int)) { pr_warn("Use of int in max_burst socket option deprecated...
161
109,600
0
PassRefPtr<CDATASection> Document::createCDATASection(const String& data, ExceptionState& es) { if (isHTMLDocument()) { es.throwUninformativeAndGenericDOMException(NotSupportedError); return 0; } if (data.find("]]>") != WTF::kNotFound) { es.throwDOMException(InvalidCharacterError, "S...
162
40,686
0
static inline int __sock_sendmsg_nosec(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t size) { struct sock_iocb *si = kiocb_to_siocb(iocb); si->sock = sock; si->scm = NULL; si->msg = msg; si->size = size; return sock->ops->sendmsg(iocb, sock, msg, size); }
163
86,822
0
static inline int compare(const char *s1, const char *s2, int l1, int l2) { register const unsigned char *p1 = (const unsigned char *) s1; register const unsigned char *p2 = (const unsigned char *) s2; register const unsigned char *e1 = p1 + l1, *e2 = p2 + l2; int c1, c2; while (p1 < e1 && p2 < e2)...
164
40,262
0
mISDN_sock_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len) { struct sock *sk = sock->sk; struct sk_buff *skb; int err = -ENOMEM; struct sockaddr_mISDN *maddr; if (*debug & DEBUG_SOCKET) printk(KERN_DEBUG "%s: len %d flags %x ch %d proto %x\n", __func__, (int)le...
165
4,744
0
user_register_extensions (User *user) { static const GDBusInterfaceVTable vtable = { user_extension_method_call, NULL /* get_property */, NULL /* set_property */ }; GHashTable *extensions; GHashTableIter iter; gpointer iface; ...
166
185,247
1
bool UnprivilegedProcessDelegate::CreateConnectedIpcChannel( const std::string& channel_name, IPC::Listener* delegate, ScopedHandle* client_out, scoped_ptr<IPC::ChannelProxy>* server_out) { // Create the server end of the channel. scoped_ptr<IPC::ChannelProxy> server; if (!CreateIpcChannel(channel...
167
37,728
0
static void pit_set_gate(struct kvm *kvm, int channel, u32 val) { struct kvm_kpit_channel_state *c = &kvm->arch.vpit->pit_state.channels[channel]; WARN_ON(!mutex_is_locked(&kvm->arch.vpit->pit_state.lock)); switch (c->mode) { default: case 0: case 4: /* XXX: just disable/enable counting */ break; case 1:...
168
129,654
0
FloatPoint AffineTransform::mapPoint(const FloatPoint& point) const { double x2, y2; map(point.x(), point.y(), x2, y2); return FloatPoint(narrowPrecisionToFloat(x2), narrowPrecisionToFloat(y2)); }
169
26,781
0
static int nl80211_valid_4addr(struct cfg80211_registered_device *rdev, struct net_device *netdev, u8 use_4addr, enum nl80211_iftype iftype) { if (!use_4addr) { if (netdev && (netdev->priv_flags & IFF_BRIDGE_PORT)) return -EBUSY; return 0; } switch (iftype) { case NL80211_IFTYPE_AP_VLAN:...
170
135,548
0
void DispatchInputEvent(Element* target, InputEvent::InputType input_type, const String& data, InputEvent::EventIsComposing is_composing) { if (!RuntimeEnabledFeatures::InputEventEnabled()) return; if (!target) return; InputEvent* inp...
171
22,411
0
static void detach_destroy_domains(const struct cpumask *cpu_map) { /* Save because hotplug lock held. */ static DECLARE_BITMAP(tmpmask, CONFIG_NR_CPUS); int i; for_each_cpu(i, cpu_map) cpu_attach_domain(NULL, &def_root_domain, i); synchronize_sched(); arch_destroy_sched_domains(cpu_map, to_cpumask(tmpmask)); ...
172
180,229
1
SPL_METHOD(SplFileObject, next) { spl_filesystem_object *intern = (spl_filesystem_object*)zend_object_store_get_object(getThis() TSRMLS_CC); if (zend_parse_parameters_none() == FAILURE) { return; } spl_filesystem_file_free_line(intern TSRMLS_CC); if (SPL_HAS_FLAG(intern->flags, SPL_FILE_OBJECT_READ_AHEAD)...
173
140,502
0
int HttpProxyClientSocket::DoGenerateAuthToken() { next_state_ = STATE_GENERATE_AUTH_TOKEN_COMPLETE; return auth_->MaybeGenerateAuthToken(&request_, io_callback_, net_log_); }
174
128,681
0
bool PowerOverlayEnabled() { return base::CommandLine::ForCurrentProcess()->HasSwitch( ::switches::kEnablePowerOverlay); }
175
75,374
0
static int opaam(RAsm *a, ut8 *data, const Opcode *op) { int l = 0; int immediate = op->operands[0].immediate * op->operands[0].sign; data[l++] = 0xd4; if (immediate == 0) { data[l++] = 0x0a; } else if (immediate < 256 && immediate > -129) { data[l++] = immediate; } return l; }
176
73,421
0
ossl_cipher_set_auth_tag(VALUE self, VALUE vtag) { EVP_CIPHER_CTX *ctx; unsigned char *tag; int tag_len; StringValue(vtag); tag = (unsigned char *) RSTRING_PTR(vtag); tag_len = RSTRING_LENINT(vtag); GetCipher(self, ctx); if (!(EVP_CIPHER_CTX_flags(ctx) & EVP_CIPH_FLAG_AEAD_CIPHER)) os...
177
153,647
0
void GLES2Implementation::GenBuffersHelper(GLsizei /* n */, const GLuint* /* buffers */) {}
178
115,909
0
Eina_Bool ewk_frame_feed_mouse_up(Evas_Object* ewkFrame, const Evas_Event_Mouse_Up* upEvent) { EWK_FRAME_SD_GET_OR_RETURN(ewkFrame, smartData, false); EINA_SAFETY_ON_NULL_RETURN_VAL(smartData->frame, false); EINA_SAFETY_ON_NULL_RETURN_VAL(upEvent, false); WebCore::FrameView* view = smartData->frame->vi...
179
118,430
0
void RenderFrameImpl::OnCompositorFrameSwapped(const IPC::Message& message) { FrameMsg_CompositorFrameSwapped::Param param; if (!FrameMsg_CompositorFrameSwapped::Read(&message, &param)) return; scoped_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame); param.a.frame.AssignTo(frame.get()); if (!compo...
180
183,705
1
PrintingContextCairo::PrintingContextCairo(const std::string& app_locale) #if defined(OS_CHROMEOS) : PrintingContext(app_locale) { #else : PrintingContext(app_locale), print_dialog_(NULL) { #endif } PrintingContextCairo::~PrintingContextCairo() { ReleaseContext(); #if !defined(OS_CHROMEOS) if (print...
181
49,163
0
static unsigned int fanout_demux_qm(struct packet_fanout *f, struct sk_buff *skb, unsigned int num) { return skb_get_queue_mapping(skb) % num; }
182
99,014
0
void* WebGraphicsContext3DDefaultImpl::mapBufferSubDataCHROMIUM(unsigned target, int offset, int size, unsigned access) { return 0; }
183
113,275
0
void PanelBrowserView::AnimationEnded(const ui::Animation* animation) { panel_->manager()->OnPanelAnimationEnded(panel_.get()); }
184
152,898
0
bool ImageBitmap::isAccelerated() const { return m_image && (m_image->isTextureBacked() || m_image->hasMailbox()); }
185
95,273
0
static void xfer_cleanup(struct xfer_header *xfer) { struct xfer_item *item, *next; /* remove items */ item = xfer->items; while (item) { next = item->next; mboxlist_entry_free(&item->mbentry); free(item); item = next; } xfer->items = NULL; free(xfer->topart...
186
134,499
0
gfx::Size WebContentsViewAura::GetMaximumSize() const { return gfx::Size(); }
187
154,714
0
error::Error GLES2DecoderPassthroughImpl::DoGetTranslatedShaderSourceANGLE( GLuint shader, std::string* source) { CheckErrorCallbackState(); GLuint service_id = GetShaderServiceID(shader, resources_); GLint translated_source_length = 0; api()->glGetShaderivFn(service_id, GL_TRANSLATED_SHADER_SOURCE_LENG...
188
119,189
0
static void replaceCharsetInMediaType(String& mediaType, const String& charsetValue) { unsigned int pos = 0, len = 0; findCharsetInMediaType(mediaType, pos, len); if (!len) { return; } while (len) { mediaType.replace(pos, len, charsetValue); unsigned int start = pos + char...
189
24,356
0
int test_set_oom_score_adj(int new_val) { struct sighand_struct *sighand = current->sighand; int old_val; spin_lock_irq(&sighand->siglock); old_val = current->signal->oom_score_adj; if (new_val != old_val) { if (new_val == OOM_SCORE_ADJ_MIN) atomic_inc(&current->mm->oom_disable_count); else if (old_val == ...
190
182,073
1
static MagickBooleanType ReadDXT5(Image *image, DDSInfo *dds_info, ExceptionInfo *exception) { DDSColors colors; ssize_t j, y; MagickSizeType alpha_bits; PixelPacket *q; register ssize_t i, x; unsigned char a0, a1; size_t alpha, bits, code, alpha_code; unsigned short c0, c1; for (y = 0; y < (ssize_t) dds_info->...
191
140,576
0
int SpdyProxyClientSocket::Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback) { DCHECK(write_callback_.is_null()); if (next_state_ != STATE_OPEN) return ERR_SOCKET_NOT_CONNECTED; DCHECK(spdy_stream_.get()); spdy_stream_->SendData(buf, buf_len, MORE_DATA_T...
192
126,463
0
void TabContentsContainerGtk::Init() { floating_.Own(gtk_floating_container_new()); gtk_widget_set_name(floating_.get(), "chrome-tab-contents-container"); g_signal_connect(floating_.get(), "focus", G_CALLBACK(OnFocusThunk), this); expanded_ = gtk_expanded_container_new(); gtk_container_add(GTK_CONTAINER(flo...
193
4,448
0
PHP_RSHUTDOWN_FUNCTION(phar) /* {{{ */ { int i; PHAR_GLOBALS->request_ends = 1; if (PHAR_GLOBALS->request_init) { phar_release_functions(TSRMLS_C); zend_hash_destroy(&(PHAR_GLOBALS->phar_alias_map)); PHAR_GLOBALS->phar_alias_map.arBuckets = NULL; zend_hash_destroy(&(PHAR_GLOBALS->phar_fname_map)); PHAR_...
194
123,870
0
void RenderViewImpl::InstrumentDidBeginFrame() { if (!webview()) return; if (!webview()->devToolsAgent()) return; webview()->devToolsAgent()->didComposite(); }
195
37,391
0
static int __mmu_unsync_walk(struct kvm_mmu_page *sp, struct kvm_mmu_pages *pvec) { int i, ret, nr_unsync_leaf = 0; for_each_set_bit(i, sp->unsync_child_bitmap, 512) { struct kvm_mmu_page *child; u64 ent = sp->spt[i]; if (!is_shadow_present_pte(ent) || is_large_pte(ent)) goto clear_child_bitmap; c...
196
17,931
0
PHPAPI php_stream *_php_stream_temp_create(int mode, size_t max_memory_usage STREAMS_DC TSRMLS_DC) { php_stream_temp_data *self; php_stream *stream; self = ecalloc(1, sizeof(*self)); self->smax = max_memory_usage; self->mode = mode; self->meta = NULL; stream = php_stream_alloc_rel(&php_stream_temp_ops, self, 0,...
197
135,862
0
void TextTrack::AddListOfCues( HeapVector<Member<TextTrackCue>>& list_of_new_cues) { TextTrackCueList* cues = EnsureTextTrackCueList(); for (auto& new_cue : list_of_new_cues) { new_cue->SetTrack(this); cues->Add(new_cue); } if (GetCueTimeline() && mode() != DisabledKeyword()) GetCueTimeline()-...
198
175,730
0
IHEVCD_ERROR_T ihevcd_parse_pps(codec_t *ps_codec) { IHEVCD_ERROR_T ret = (IHEVCD_ERROR_T)IHEVCD_SUCCESS; WORD32 value; WORD32 pps_id; pps_t *ps_pps; sps_t *ps_sps; bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; if(0 == ps_codec->i4_sps_done) return IHEVCD_INVALID_HEADER; UEV_PARSE("pic_...
199