idx
int64
func
string
target
int64
139,081
int PE_(r_bin_pe_is_pie)(RBinPEObj* pe) { if (!pe || !pe->nt_headers) { return false; } return HASCHR (IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE); #if 0 BOOL aslr = inh->OptionalHeader.DllCharacteristics & IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE; //TODO: implement dep? BOOL dep = inh->OptionalHeader.DllCharacteristic...
0
141,236
int cdrom_ioctl(struct cdrom_device_info *cdi, struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) { void __user *argp = (void __user *)arg; int ret; /* * Try the generic SCSI command ioctl's first. */ ret = scsi_cmd_blk_ioctl(bdev, mode, cmd, argp); if (ret != -ENOTTY) return re...
0
391,134
static void put_reqs_available(struct kioctx *ctx, unsigned nr) { struct kioctx_cpu *kcpu; unsigned long flags; preempt_disable(); kcpu = this_cpu_ptr(ctx->cpu); local_irq_save(flags); kcpu->reqs_available += nr; while (kcpu->reqs_available >= ctx->req_batch * 2) { kcpu->reqs_available -= ctx->req_batch; ...
0
63,041
(flatpak_dir_log) (FlatpakDir * self, const char *file, int line, const char *func, const char *source, /* overrides self->name */ const char *change, const char *remote, ...
0
17,559
int net_slirp_redir ( const char * redir_str ) { struct slirp_config_str * config ; if ( QTAILQ_EMPTY ( & slirp_stacks ) ) { config = g_malloc ( sizeof ( * config ) ) ; pstrcpy ( config -> str , sizeof ( config -> str ) , redir_str ) ; config -> flags = SLIRP_CFG_HOSTFWD | SLIRP_CFG_LEGACY ; config -> next = slir...
0
76,086
static bool __stratum_send(struct pool *pool, char *s, ssize_t len) { SOCKETTYPE sock = pool->sock; ssize_t ssent = 0; if (opt_protocol) applog(LOG_DEBUG, "SEND: %s", s); strcat(s, "\n"); len++; while (len > 0 ) { struct timeval timeout = {0, 0}; ssize_t sent; fd_set wd; FD_ZERO(&wd); FD_SET(sock,...
0
14,892
static int detect_flash ( const TWO_PASS * twopass , int offset ) { const FIRSTPASS_STATS * const next_frame = read_frame_stats ( twopass , offset ) ; return next_frame != NULL && next_frame -> pcnt_second_ref > next_frame -> pcnt_inter && next_frame -> pcnt_second_ref >= 0.5 ; }
0
99,996
static inline size_t WriteChannelSize(const PSDInfo *psd_info,Image *image, const signed short channel) { ssize_t count; count=WriteBlobMSBSignedShort(image,channel); count+=SetPSDSize(psd_info,image,0); return((size_t) count); }
0
28,123
static void clear_codec_buffers ( WmallDecodeCtx * s ) { int ich , ilms ; memset ( s -> acfilter_coeffs , 0 , sizeof ( s -> acfilter_coeffs ) ) ; memset ( s -> acfilter_prevvalues , 0 , sizeof ( s -> acfilter_prevvalues ) ) ; memset ( s -> lpc_coefs , 0 , sizeof ( s -> lpc_coefs ) ) ; memset ( s -> mclms_coeffs , ...
0
301,974
int loop_register_transfer(struct loop_func_table *funcs) { unsigned int n = funcs->number; if (n >= MAX_LO_CRYPT || xfer_funcs[n]) return -EINVAL; xfer_funcs[n] = funcs; return 0; }
0
349,880
CNF_ReadFile(const char *filename) { FILE *in; char line[2048]; int i; in = fopen(filename, "r"); if (!in) { LOG_FATAL("Could not open configuration file %s : %s", filename, strerror(errno)); return; } DEBUG_LOG("Reading %s", filename); for (i = 1; fgets(line, sizeof(line), in);...
1
118,003
unsigned avcodec_version(void) { // av_assert0(AV_CODEC_ID_V410==164); av_assert0(AV_CODEC_ID_PCM_S8_PLANAR==65563); av_assert0(AV_CODEC_ID_ADPCM_G722==69660); // av_assert0(AV_CODEC_ID_BMV_AUDIO==86071); av_assert0(AV_CODEC_ID_SRT==94216); av_assert0(LIBAVCODEC_VERSION_MICRO >= 100); return...
0
141,718
static void rdma_umap_close(struct vm_area_struct *vma) { struct ib_uverbs_file *ufile = vma->vm_file->private_data; struct rdma_umap_priv *priv = vma->vm_private_data; if (!priv) return; /* * The vma holds a reference on the struct file that created it, which * in turn means that the ib_uverbs_file is guar...
0
190,887
channel_register_fds(Channel *c, int rfd, int wfd, int efd, int extusage, int nonblock, int is_tty) { /* Update the maximum file descriptor value. */ channel_max_fd = MAX(channel_max_fd, rfd); channel_max_fd = MAX(channel_max_fd, wfd); channel_max_fd = MAX(channel_max_fd, efd); if (rfd != -1) fcntl(rfd, F_S...
0
7,140
static void recovery_abort(void) { if (!dry_run) { storage_reset(); } awaiting_character = false; memzero(mnemonic, sizeof(mnemonic)); memzero(cipher, sizeof(cipher)); }
1
215,198
bool MessageLoop::DoIdleWork() { if (ProcessNextDelayedNonNestableTask()) return true; if (run_loop_client_->ShouldQuitWhenIdle()) pump_->Quit(); #if defined(OS_WIN) bool high_res = pending_high_res_tasks_ > 0; if (high_res != in_high_res_mode_) { in_high_res_mode_ = high_res; Time::ActivateHi...
0
33,901
compile_tree_empty_check(Node* node, regex_t* reg, int empty_info, ScanEnv* env) { int r; int saved_num_null_check = reg->num_null_check; if (empty_info != BODY_IS_NOT_EMPTY) { r = add_op(reg, OP_EMPTY_CHECK_START); if (r != 0) return r; COP(reg)->empty_check_start.mem = reg->num_null_check; /* NULL ...
0
66,323
pid_t enc_untrusted_waitpid(pid_t pid, int *status, int options) { int klinux_status; pid_t result = EnsureInitializedAndDispatchSyscall( asylo::system_call::kSYS_wait4, pid, &klinux_status, TokLinuxWaitOption(options), /*rusage=*/nullptr); if (status) { *status = FromkLinuxToNewlibWstatus(klinux...
0
152,090
void lodepng_info_cleanup(LodePNGInfo* info) { lodepng_color_mode_cleanup(&info->color); #ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS LodePNGText_cleanup(info); LodePNGIText_cleanup(info); LodePNGUnknownChunks_cleanup(info); #endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/ }
0
336,217
static CharDriverState *gd_vc_handler(ChardevVC *vc, Error **errp) { ChardevCommon *common = qapi_ChardevVC_base(vc); CharDriverState *chr; chr = qemu_chr_alloc(common, errp); if (!chr) { chr->chr_write = gd_vc_chr_write; chr->chr_set_echo = gd_vc_chr_set_echo; /* Temporary, until gd_vc_vte_...
1
455,913
TEST(OverflowArithmetic, UnsignedSubtractionTests) { using T = uint64_t; static constexpr auto f = polySub; ASSERT(test<T>(f, kMax<T>, 0, kMax<T>)); ASSERT(test<T>(f, kMax<T>, 1, kMax<T> - 1)); ASSERT(test<T>(f, kMax<T>, kMax<T>, 0)); ASSERT(test<T>(f, 0, 0, 0)); ASSERT(test<T>(f, 1, 1, 0));...
0
254,815
hb_unicode_funcs_t * hb_icu_get_unicode_funcs ( void ) { static const hb_unicode_funcs_t _hb_icu_unicode_funcs = { HB_OBJECT_HEADER_STATIC , NULL , true , { # define HB_UNICODE_FUNC_IMPLEMENT ( name ) hb_icu_unicode_ ## name , HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS # undef HB_UNICODE_FUNC_IMPLEMENT } } ; # if U_ICU...
1
98,158
static void show_vma_header_prefix(struct seq_file *m, unsigned long start, unsigned long end, vm_flags_t flags, unsigned long long pgoff, dev_t dev, unsigned long ino) { seq_setwidth(m, 25 + sizeof(void *) * 6 - 1); seq_put_hex_ll(m, NULL, start, 8); seq_put_hex_ll(m, "-", end, 8); seq_putc(m,...
0
338,409
int cpu_breakpoint_insert(CPUState *env, target_ulong pc, int flags, CPUBreakpoint **breakpoint) { #if defined(TARGET_HAS_ICE) CPUBreakpoint *bp; bp = qemu_malloc(sizeof(*bp)); bp->pc = pc; bp->flags = flags; /* keep all GDB-injected breakpoints in front */ ...
0
304,398
static u16 chandef_to_chanspec(struct brcmu_d11inf *d11inf, struct cfg80211_chan_def *ch) { struct brcmu_chan ch_inf; s32 primary_offset; brcmf_dbg(TRACE, "chandef: control %d center %d width %d\n", ch->chan->center_freq, ch->center_freq1, ch->width); ch_inf.chnum = ieee80211_frequency_to_channel(ch-...
0
157,216
rb_fiddle_handle_enable_close(VALUE self) { struct dl_handle *fiddle_handle; TypedData_Get_Struct(self, struct dl_handle, &fiddle_handle_data_type, fiddle_handle); fiddle_handle->enable_close = 1; return Qnil; }
0
81,325
mrb_singleton_class(mrb_state *mrb, mrb_value v) { struct RClass *c = mrb_singleton_class_ptr(mrb, v); if (c == NULL) { mrb_raise(mrb, E_TYPE_ERROR, "can't define singleton"); } return mrb_obj_value(c); }
0
218,938
virtual void didReadDirectory(const WebKit::WebVector<WebKit::WebFileSystemEntry>& entries, bool hasMore) { ASSERT_NOT_REACHED(); delete this; }
0
205,895
int __pte_alloc_kernel(pmd_t *pmd, unsigned long address) { pte_t *new = pte_alloc_one_kernel(&init_mm, address); if (!new) return -ENOMEM; smp_wmb(); /* See comment in __pte_alloc */ spin_lock(&init_mm.page_table_lock); if (likely(pmd_none(*pmd))) { /* Has another populated it ? */ pmd_populate_kernel(&init...
0
338,902
static int cmv_process_header(CmvContext *s, const uint8_t *buf, const uint8_t *buf_end) { int pal_start, pal_count, i, ret; if(buf_end - buf < 16) { av_log(s->avctx, AV_LOG_WARNING, "truncated header\n"); return AVERROR_INVALIDDATA; } s->width = AV_RL16(&buf[4]); s->hei...
0
127,401
unsigned char* lodepng_chunk_data(unsigned char* chunk) { return &chunk[8]; }
0
5,172
int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, struct nlattr **attrs) { struct net *net = sock_net(in_skb->sk); struct crypto_user_alg *p = nlmsg_data(in_nlh); struct crypto_alg *alg; struct sk_buff *skb; struct crypto_dump_info info; int err; if (!null_terminated(p->cru_name) ||...
1
300,507
void spl_array_iterator_key(zval *object, zval *return_value TSRMLS_DC) /* {{{ */ { spl_array_object *intern = (spl_array_object*)zend_object_store_get_object(object TSRMLS_CC); HashTable *aht = spl_array_get_hash_table(intern, 0 TSRMLS_CC); if (spl_array_object_verify_pos(intern, aht TSRMLS_CC) == FAILURE) { ret...
0
270,870
static void caif_ctrl_cb(struct cflayer *layr, enum caif_ctrlcmd flow, int phyid) { struct caifsock *cf_sk = container_of(layr, struct caifsock, layer); switch (flow) { case CAIF_CTRLCMD_FLOW_ON_IND: /* OK from modem to start sending again */ set_tx_flow_on(cf_sk); cf_sk->sk.sk_state_change(&cf_sk->sk)...
0
381,484
my_strusage( int level ) { static char *digests, *pubkeys, *ciphers; static char *ver_gcry, *ver_ksba; const char *p; switch (level) { case 11: p = "@GPGSM@ (@GNUPG@)"; break; case 13: p = VERSION; break; case 17: p = PRINTABLE_OS_NAME; break; case 19: p = _("Please report bugs to <@E...
0
11,989
BrowserActionsContainer::BrowserActionsContainer( Profile* profile, ToolbarView* toolbar) : profile_(profile), toolbar_(toolbar), popup_(NULL), popup_button_(NULL), model_(NULL), resize_gripper_(NULL), chevron_(NULL), suppress_chevron_(false), resize_amount...
1
253,751
void (*SSL_CTX_get_info_callback(SSL_CTX *ctx)) (const SSL *ssl, int type, int val) { return ctx->info_callback; }
0
189,367
ZEND_API const char* zend_resolve_method_name(zend_class_entry *ce, zend_function *f) /* {{{ */ { zend_function *func; HashPosition iterator; HashTable *function_table; if (f->common.type != ZEND_USER_FUNCTION || *(f->op_array.refcount) < 2 || !f->common.scope || !f->common.scope->trait_aliases) { ...
0
185,870
void WebProcessProxy::interactionOccurredWhileUnresponsive(ResponsivenessTimer*) { Vector<RefPtr<WebPageProxy> > pages; copyValuesToVector(m_pageMap, pages); for (size_t i = 0, size = pages.size(); i < size; ++i) pages[i]->interactionOccurredWhileProcessUnresponsive(); }
0
211,761
static int get_extra_state(QEMUFile *f, void *pv, size_t size) { VirtIODevice *vdev = pv; BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); if (!k->load_extra_state) { return -1; } else { return k->load_extra_state(qbus->parent, f); ...
0
102,611
static void test_bug57058() { MYSQL_RES *res; int rc; DBUG_ENTER("test_bug57058"); myheader("test_bug57058"); rc= mysql_query(mysql, "set @@session.long_query_time=0.1"); myquery(rc); DIE_UNLESS(!(mysql->server_status & SERVER_QUERY_WAS_SLOW)); rc= mysql_query(mysql, "select sleep(1)"); myquery(rc...
0
201,273
~LocalSiteCharacteristicsWebContentsObserver() { DCHECK(!writer_); }
0
172,272
SPICE_GNUC_VISIBLE int spice_server_set_agent_copypaste(SpiceServer *s, int enable) { spice_assert(reds == s); agent_copypaste = enable; reds->agent_state.write_filter.copy_paste_enabled = agent_copypaste; reds->agent_state.read_filter.copy_paste_enabled = agent_copypaste; return 0; }
0
102,361
static const char *jsi_TildePath(Jsi_Interp *interp, const char* path, Jsi_DString *dStr) { if (*path != '~') return path; const char *homedir = jsi_GetHomeDir(interp); if (!homedir) return path; Jsi_DSAppend(dStr, homedir, path[1] == '/' ? "" : "/", path+1, NULL); return Jsi_DSValue...
0
73,882
static int tipc_sk_create(struct net *net, struct socket *sock, int protocol, int kern) { const struct proto_ops *ops; struct sock *sk; struct tipc_sock *tsk; struct tipc_msg *msg; /* Validate arguments */ if (unlikely(protocol != 0)) return -EPROTONOSUPPORT; switch (sock->type) { case SOCK_STREAM: o...
0
498,251
static inline bool verify_client_lsn(struct ntfs_log *log, const struct CLIENT_REC *client, u64 lsn) { return lsn >= le64_to_cpu(client->oldest_lsn) && lsn <= le64_to_cpu(log->ra->current_lsn) && lsn; }
0
492,516
void FunctionContextImpl::free_local_allocations() { for (int i = 0; i < _local_allocations.size(); ++i) { _pool->free(_local_allocations[i]); } _local_allocations.clear(); }
0
364,321
static int ISO8859_8ToUTF8 (unsigned char* out, int *outlen, const unsigned char* in, int *inlen) { return ISO8859xToUTF8 (out, outlen, in, inlen, xmlunicodetable_ISO8859_8); }
0
209,218
static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image) { char buffer[MaxTextExtent], cache_filename[MaxTextExtent]; const char *property, *value; MagickBooleanType status; MagickOffsetType offset, scene; register ssize_t i; size_t depth, ...
0
174,481
void NetworkHandler::ContinueInterceptedRequest( const std::string& interception_id, Maybe<std::string> error_reason, Maybe<std::string> base64_raw_response, Maybe<std::string> url, Maybe<std::string> method, Maybe<std::string> post_data, Maybe<protocol::Network::Headers> headers, Maybe...
0
460,713
static char *addr_to_string(const char *format, struct sockaddr_storage *sa, socklen_t salen) { char host[NI_MAXHOST]; char serv[NI_MAXSERV]; int err; if ((err = getnameinfo((struct sockaddr *)sa, salen, host, sizeof(hos...
0
447,387
int sldns_fp2wire_rr_buf(FILE* in, uint8_t* rr, size_t* len, size_t* dname_len, struct sldns_file_parse_state* parse_state) { char line[LDNS_RR_BUF_SIZE+1]; ssize_t size; /* read an entire line in from the file */ if((size = sldns_fget_token_l(in, line, LDNS_PARSE_SKIP_SPACE, LDNS_RR_BUF_SIZE, parse_state?&pars...
0
437,652
PHPAPI char* spl_filesystem_object_get_path(spl_filesystem_object *intern, size_t *len) /* {{{ */ { #ifdef HAVE_GLOB if (intern->type == SPL_FS_DIR) { if (php_stream_is(intern->u.dir.dirp ,&php_glob_stream_ops)) { return php_glob_stream_get_path(intern->u.dir.dirp, 0, len); } } #endif if (len) { *len = inte...
0
512,095
initialize_shell_variables (env, privmode) char **env; int privmode; { char *name, *string, *temp_string; int c, char_index, string_index, string_length, ro; SHELL_VAR *temp_var; create_variable_tables (); for (string_index = 0; string = env[string_index++]; ) { char_index = 0; nam...
0
87,438
panel_set_option(struct parsed_tagarg *arg) { FILE *f = NULL; char *p; Str s = Strnew(), tmp; if (config_file == NULL) { disp_message("There's no config file... config not saved", FALSE); } else { f = fopen(config_file, "wt"); if (f == NULL) { disp_message("Can't write option!", FALSE);...
0
324,620
static bool get_phys_addr_lpae(CPUARMState *env, target_ulong address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot, target_ulong *page_size_ptr, uint32_t *fsr, ...
0
421,628
static inline int u128_cmp(u128_t x, u128_t y) { /* return -1, 0, 1 on sort order */ if(x.h < y.h) return -1; if(x.h > y.h) return 1; if(x.l < y.l) return -1; if(x.l > y.l) return 1; return 0; }
0
63,479
void CLASS setCanonBodyFeatures(unsigned id) { imgdata.lens.makernotes.CamID = id; if ((id == 0x80000001) || // 1D (id == 0x80000174) || // 1D2 (id == 0x80000232) || // 1D2N (id == 0x80000169) || // 1D3 (id == 0x80000281) // 1D4 ) { imgdata.lens.makernotes.CameraFormat = LIBRA...
0
127,758
generate_primary_key_list(MYSQL *mysql, option_string *engine_stmt) { MYSQL_RES *result; MYSQL_ROW row; unsigned long long counter; DBUG_ENTER("generate_primary_key_list"); /* Blackhole is a special case, this allows us to test the upper end of the server during load runs. */ if (opt_only_print...
0
444,289
bool ConnectionManagerImpl::ActiveStreamFilterBase::commonHandleAfterDataCallback( FilterDataStatus status, Buffer::Instance& provided_data, bool& buffer_was_streaming) { if (status == FilterDataStatus::Continue) { if (iteration_state_ == IterationState::StopSingleIteration) { commonHandleBufferData(pr...
0
465,925
BnGeneratePrimeForRSA( bigNum prime, // IN/OUT: points to the BN that will get the // random value UINT32 bits, // IN: number of bits to get UINT32 exponent, // IN: the exponent RAND_STATE *rand // IN: the random...
0
141,828
void CWebServer::Cmd_GetPlanDevices(WebEmSession & session, const request& req, Json::Value &root) { std::string idx = request::findValue(&req, "idx"); if (idx.empty()) return; root["status"] = "OK"; root["title"] = "GetPlanDevices"; std::vector<std::vector<std::string> > result; result = m_s...
0
293,333
static const char* Helper(PyObject* obj, int depth, ConverterState* state, T** buf) { if (TF_PREDICT_FALSE(obj == nullptr)) { return ErrorConverting; } Safe_PyObjectPtr seq = make_safe(PySequence_Fast(obj, "")); if (TF_PREDICT_FALSE(seq == nullptr)) return ErrorRecta...
0
359,386
static inline u32 tcf_auto_prio(struct tcf_proto *tp) { u32 first = TC_H_MAKE(0xC0000000U, 0U); if (tp) first = tp->prio-1; return first; }
0
24,553
static inline bool is_ra ( hb_codepoint_t u ) { for ( unsigned int i = 0 ; i < ARRAY_LENGTH ( ra_chars ) ; i ++ ) if ( u == ra_chars [ i ] ) return true ; return false ; }
0
309,969
void WebPluginDelegateProxy::UpdateGeometry(const gfx::Rect& window_rect, const gfx::Rect& clip_rect) { if (window_rect.width() < 0 || window_rect.width() > (1<<15) || window_rect.height() < 0 || window_rect.height() > (1<<15) || window_rect.width() * window_re...
0
208,621
void ThreadHeap::VerifyMarking() { for (int i = 0; i < BlinkGC::kNumberOfArenas; ++i) { arenas_[i]->VerifyMarking(); } }
0
223,932
bool Layer::Update(ResourceUpdateQueue* queue, const OcclusionTracker<Layer>* occlusion) { DCHECK(layer_tree_host_); DCHECK_EQ(layer_tree_host_->source_frame_number(), paint_properties_.source_frame_number) << "SavePaintProperties must be called for any layer that is painted."; ...
0
201,471
void LocalDOMWindow::DocumentWasClosed() { DispatchWindowLoadEvent(); EnqueuePageshowEvent(kPageshowEventNotPersisted); if (pending_state_object_) EnqueuePopstateEvent(std::move(pending_state_object_)); }
0
447,939
_XimProtoDestroyIC( XIC xic) { Xic ic = (Xic)xic; Xim im = (Xim)ic->core.im; CARD32 buf32[BUFSIZE/4]; CARD8 *buf = (CARD8 *)buf32; CARD16 *buf_s = (CARD16 *)&buf[XIM_HEADER_SIZE]; INT16 len; CARD32 reply32[BUFSIZE/4]; char *reply = (char *)reply32; XPointer preply; ...
0
70,757
static void MagickPNGErrorHandler(png_struct *ping,png_const_charp message) { ExceptionInfo *exception; Image *image; PNGErrorInfo *error_info; error_info=(PNGErrorInfo *) png_get_error_ptr(ping); image=error_info->image; exception=error_info->exception; (void) LogMagickEvent(CoderEvent,Ge...
0
308,642
void Instance::CreateHorizontalScrollbar() { if (h_scrollbar_.get()) return; h_scrollbar_.reset(new pp::Scrollbar_Dev(this, false)); }
0
448,844
template_mark_fill_rect(int w, int h, byte *gs_restrict dst_ptr, byte *gs_restrict src, int num_comp, int num_spots, int first_blend_spot, byte src_alpha, int rowstride, int planestride, bool additive, pdf14_device *pdev, gs_blend_mode_t blend_mode, bool overprint, gx_color_index drawn_com...
0
284,342
WebContentsViewDelegate* ContentBrowserClient::GetWebContentsViewDelegate( WebContents* web_contents) { return NULL; }
0
346,206
http_splitheader(struct http *hp, int req) { char *p, *q, **hh; int n; char buf[20]; CHECK_OBJ_NOTNULL(hp, HTTP_MAGIC); if (req) { memset(hp->req, 0, sizeof hp->req); hh = hp->req; } else { memset(hp->resp, 0, sizeof hp->resp); hh = hp->resp; } n = 0; p = hp->rxbuf; /* REQ/PROTO */ while (vct_islw...
1
181,973
fbStore_b5g6r5 (FbBits *bits, const CARD32 *values, int x, int width, miIndexedPtr indexed) { int i; CARD16 *pixel = ((CARD16 *) bits) + x; for (i = 0; i < width; ++i) { Split(READ(values + i)); WRITE(pixel++, ((b << 8) & 0xf800) | ((g << 3) & 0x07e0) | ((r >> 3) )); ...
0
252,767
void Con_Close( void ) { if ( !com_cl_running->integer ) { return; } Field_Clear( &g_consoleField ); Con_ClearNotify(); Key_SetCatcher( Key_GetCatcher( ) & ~KEYCATCH_CONSOLE ); con.finalFrac = 0; // none visible con.displayFrac = 0; }
0
210,032
xsltGetNamespace(xsltTransformContextPtr ctxt, xmlNodePtr cur, xmlNsPtr ns, xmlNodePtr out) { if (ns == NULL) return(NULL); #ifdef XSLT_REFACTORED /* * Namespace exclusion and ns-aliasing is performed at * compilation-time in the refactored code. * Additionally, aliasing is not intended...
0
221,008
explicit FindAdapter(Plugin* plugin) : pp::Find_Dev(plugin), plugin_(plugin) { BrowserPpp* proxy = plugin_->ppapi_proxy(); CHECK(proxy != NULL); ppp_find_ = static_cast<const PPP_Find_Dev*>( proxy->GetPluginInterface(PPP_FIND_DEV_INTERFACE)); }
0
214,418
FakeRemoteGattService* FakeCentral::GetFakeRemoteGattService( const std::string& peripheral_address, const std::string& service_id) const { FakePeripheral* fake_peripheral = GetFakePeripheral(peripheral_address); if (fake_peripheral == nullptr) { return nullptr; } return static_cast<FakeRemoteGattS...
0
172,082
_bdf_list_ensure( _bdf_list_t* list, unsigned long num_items ) /* same as _bdf_list_t.used */ { FT_Error error = BDF_Err_Ok; if ( num_items > list->size ) { unsigned long oldsize = list->size; /* same as _bdf_list_t.size */ unsigned long newsize = oldsize + ( olds...
0
191,931
static void ByteStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { TestObject* impl = V8TestObject::ToImpl(info.Holder()); V8SetReturnValueString(info, impl->byteStringMethod(), info.GetIsolate()); }
0
309,421
PHP_FUNCTION(pg_num_fields) { php_pgsql_get_result_info(INTERNAL_FUNCTION_PARAM_PASSTHRU,PHP_PG_NUM_FIELDS); }
0
57,693
void str_to_file(const char *fname, char *str, int size) { str_to_file2(fname, str, size, FALSE); }
0
476,478
static int xattr_map_client(const struct lo_data *lo, const char *client_name, char **out_name) { size_t i; for (i = 0; i < lo->xattr_map_nentries; i++) { const XattrMapEntry *cur_entry = lo->xattr_map_list + i; if ((cur_entry->flags & XATTR_MAP_FLAG_CLIENT) && ...
0
116,403
x86_Init(struct _7zip *zip) { zip->bcj_state = 0; zip->bcj_prevPosT = (size_t)0 - 1; zip->bcj_prevMask = 0; zip->bcj_ip = 5; }
0
78,158
static int sctp_setsockopt_autoclose(struct sock *sk, char __user *optval, unsigned int optlen) { struct sctp_sock *sp = sctp_sk(sk); /* Applicable to UDP-style socket only */ if (sctp_style(sk, TCP)) return -EOPNOTSUPP; if (optlen != sizeof(int)) return -EINVAL; if (copy_from_user(&sp->autoclose, op...
0
271,525
int ext4_change_inode_journal_flag(struct inode *inode, int val) { journal_t *journal; handle_t *handle; int err; /* * We have to be very careful here: changing a data block's * journaling status dynamically is dangerous. If we write a * data block to the journal, change the status and then delete * that ...
0
216,578
void _WM_do_control_channel_expression(struct _mdi *mdi, struct _event_data *data) { uint8_t ch = data->channel; MIDI_EVENT_DEBUG(__FUNCTION__,ch, data->data.value); mdi->channel[ch].expression = data->data.value; _WM_AdjustChannelVolumes(mdi, ch); }
0
215,217
isofile_add_entry(struct iso9660 *iso9660, struct isofile *file) { file->allnext = NULL; *iso9660->all_file_list.last = file; iso9660->all_file_list.last = &(file->allnext); }
0
173,505
ClampScrollableAreas() { for (auto& scrollable_area : NeedsClampList()) scrollable_area->ClampScrollOffsetAfterOverflowChange(); NeedsClampList().clear(); }
0
389,737
static inline bool cpu_watchpoint_address_matches(CPUWatchpoint *wp, vaddr addr, vaddr len) { /* We know the lengths are non-zero, but a little caution is * required to avoid errors in the case where the range e...
0
235,206
void FileSystemOperationRunner::OnCopyProgress( const OperationID id, const CopyProgressCallback& callback, FileSystemOperation::CopyProgressType type, const FileSystemURL& source_url, const FileSystemURL& dest_url, int64_t size) { if (is_beginning_operation_) { base::ThreadTaskRunnerHandl...
0
96,363
int inet_release(struct socket *sock) { struct sock *sk = sock->sk; if (sk) { long timeout; sock_rps_reset_flow(sk); /* Applications forget to leave groups before exiting */ ip_mc_drop_socket(sk); /* If linger is set, we don't return until the close * is complete. Otherwise we return immediately. Th...
0
69,715
void setHandshakeKeys() { conn_.handshakeWriteCipher = createNoOpAead(); conn_.handshakeWriteHeaderCipher = createNoOpHeaderCipher(); handshakeReadCipher_ = createNoOpAead(); handshakeReadHeaderCipher_ = createNoOpHeaderCipher(); }
0
163,389
bool AwContents::OnReceivedHttpAuthRequest(const JavaRef<jobject>& handler, const std::string& host, const std::string& realm) { DCHECK_CURRENTLY_ON(BrowserThread::UI); JNIEnv* env = AttachCurrentThread(); ScopedJavaLocalRef<job...
0
324,210
int av_picture_crop(AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int top_band, int left_band) { int y_shift; int x_shift; if (pix_fmt < 0 || pix_fmt >= PIX_FMT_NB) return -1; y_shift = av_pix_fmt_descriptors[pix_fmt].log2_chroma_h; x_shift =...
0
452,338
static gboolean si_io_channel_cb(GIOChannel *source, GIOCondition condition, gpointer data) { active_session = session_info_get_active_session(session_info); update_active_session_connection(NULL); return G_SOURCE_CONTINUE; }
0
463,041
NamespaceString IDLParserErrorContext::parseNSCollectionRequired(StringData dbName, const BSONElement& element) { const bool isUUID = (element.canonicalType() == canonicalizeBSONType(mongo::BinData) && element.binDataType() ==...
0
57,526
QString Display::sessionType() const { return m_displayServer->sessionType(); }
0