idx
int64
func
string
target
int64
438,645
static u32 *emit_lri(u32 *batch, const struct lri *lri, unsigned int count) { GEM_BUG_ON(!count || count > 63); *batch++ = MI_LOAD_REGISTER_IMM(count); do { *batch++ = i915_mmio_reg_offset(lri->reg); *batch++ = lri->value; } while (lri++, --count); *batch++ = MI_NOOP; return batch; }
0
432,880
filter_can_trim (struct backend *b, struct connection *conn) { struct backend_filter *f = container_of (b, struct backend_filter, backend); void *handle = connection_get_handle (conn, b->i); struct b_conn nxdata = { .b = b->next, .conn = conn }; if (f->filter.can_trim) return f->filter.can_trim (&next_ops,...
0
199,657
size_t ZSTD_estimateCStreamSize_usingCParams(ZSTD_compressionParameters cParams) { ZSTD_CCtx_params const params = ZSTD_makeCCtxParamsFromCParams(cParams); return ZSTD_estimateCStreamSize_usingCCtxParams(&params); }
0
65,224
static void sctp_v4_ecn_capable(struct sock *sk) { INET_ECN_xmit(sk); }
0
438,005
long Track::GetNumber() const { return m_info.number; }
0
118,159
int ssl3_get_next_proto(SSL *s) { int ok; int proto_len, padding_len; long n; const unsigned char *p; /* Clients cannot send a NextProtocol message if we didn't see the * extension in their ClientHello */ if (!s->s3->next_proto_neg_seen) { SSLerr(SSL_F_SSL3_GET_NEXT_PROTO,SSL_R_GOT_NEXT_PROTO_WITHOUT_EXTE...
0
606
static void optimize_b ( MACROBLOCK * mb , int ib , int type , ENTROPY_CONTEXT * a , ENTROPY_CONTEXT * l ) { BLOCK * b ; BLOCKD * d ; vp8_token_state tokens [ 17 ] [ 2 ] ; unsigned best_mask [ 2 ] ; const short * dequant_ptr ; const short * coeff_ptr ; short * qcoeff_ptr ; short * dqcoeff_ptr ; int eob ; int ...
1
205,146
DragController::DragController(Page* page) : page_(page), document_under_mouse_(nullptr), drag_initiator_(nullptr), file_input_element_under_mouse_(nullptr), document_is_handling_drag_(false), drag_destination_action_(kDragDestinationActionNone), did_initiate_drag_(false) {}
0
424,207
static int assess_restrict_namespaces( const struct security_assessor *a, const struct security_info *info, const void *data, uint64_t *ret_badness, char **ret_description) { assert(ret_badness); assert(ret_description); ...
0
253,656
void ChromeWebContentsDelegateAndroid::FindReply( WebContents* web_contents, int request_id, int number_of_matches, const gfx::Rect& selection_rect, int active_match_ordinal, bool final_update) { if (!notification_registrar_.IsRegistered(this, chrome::NOTIFICATION_FIND_RESULT_AVAILABLE, ...
0
307,115
cf2_free_instance( void* ptr ) { CF2_Font font = (CF2_Font)ptr; if ( font ) { FT_Memory memory = font->memory; (void)memory; } }
0
235,669
void HTMLInputElement::UpdateType() { DCHECK(input_type_); DCHECK(input_type_view_); const AtomicString& new_type_name = InputType::NormalizeTypeName(FastGetAttribute(typeAttr)); if (input_type_->FormControlType() == new_type_name) return; InputType* new_type = InputType::Create(*this, new_type_na...
0
498,952
static int esilbreak_reg_write(RzAnalysisEsil *esil, const char *name, ut64 *val) { if (!esil) { return 0; } RzAnalysis *analysis = esil->analysis; EsilBreakCtx *ctx = esil->user; RzAnalysisOp *op = ctx->op; RzCore *core = analysis->coreb.core; handle_var_stack_access(esil, *val, RZ_ANALYSIS_VAR_ACCESS_TYPE_PT...
0
509,636
static void test_bug3796() { MYSQL_STMT *stmt; MYSQL_BIND my_bind[1]; const char *concat_arg0= "concat_with_"; enum { OUT_BUFF_SIZE= 30 }; char out_buff[OUT_BUFF_SIZE]; char canonical_buff[OUT_BUFF_SIZE]; ulong out_length; const char *stmt_text; int rc; myheader("test_bug3796"); /* Create and fi...
0
442,492
const SecretSchema *docker_get_schema(void) { static const SecretSchema docker_schema = { "io.docker.Credentials", SECRET_SCHEMA_NONE, { { "label", SECRET_SCHEMA_ATTRIBUTE_STRING }, { "server", SECRET_SCHEMA_ATTRIBUTE_STRING }, { "username", SECRET_SCHEMA_ATTRIBUTE_STRING }, { "docker_cli", SECRET_S...
0
340,547
int page_unprotect(target_ulong address, unsigned long pc, void *puc) { unsigned int page_index, prot, pindex; PageDesc *p, *p1; target_ulong host_start, host_end, addr; /* Technically this isn't safe inside a signal handler. However we know this only ever happens in a synchronous SEGV h...
0
513,856
static UINT cliprdr_server_packet_send(CliprdrServerPrivate* cliprdr, wStream* s) { UINT rc; size_t pos, size; BOOL status; UINT32 dataLen; UINT32 written; pos = Stream_GetPosition(s); if ((pos < 8) || (pos > UINT32_MAX)) { rc = ERROR_NO_DATA; goto fail; } dataLen = (UINT32)(pos - 8); Stream_SetPosition...
0
105,711
static ssize_t yurex_write(struct file *file, const char __user *user_buffer, size_t count, loff_t *ppos) { struct usb_yurex *dev; int i, set = 0, retval = 0; char buffer[16]; char *data = buffer; unsigned long long c, c2 = 0; signed long timeout = 0; DEFINE_WAIT(wait); count = min(sizeof(buffer), count)...
0
344,495
_fr_window_ask_overwrite_dialog (OverwriteData *odata) { if ((odata->edata->overwrite == FR_OVERWRITE_ASK) && (odata->current_file != NULL)) { const char *base_name; GFile *destination; base_name = _g_path_get_relative_basename ((char *) odata->current_file->data, odata->edata->base_dir, odata->edata->junk...
1
74,803
static inline void RENAME(hcscale_fast)(SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) { int32_t *filterPos = c->hChrFilterPos; int16_t *filter = c->h...
0
326,026
static int dvbsub_parse_region_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { DVBSubContext *ctx = avctx->priv_data; const uint8_t *buf_end = buf + buf_size; int region_id, object_id; int av_unused version; DVBSubRegion *region; DVBSubOb...
1
347,158
static bool fbo_check_config(const char *cfgstring, char **reason) { char *options; char *path; int fd; tcmu_dbg("check: cfgstring %s\n", cfgstring); options = strchr(cfgstring, '/'); if (!options) { if (asprintf(reason, "Invalid cfgstring") == -1) *reason = NULL; return false; } options += 1; /* get pa...
1
15,274
static subpicture_t * spu_new_buffer ( decoder_t * p_dec , const subpicture_updater_t * p_updater ) { decoder_owner_sys_t * p_owner = p_dec -> p_owner ; vout_thread_t * p_vout = NULL ; subpicture_t * p_subpic ; int i_attempts = 30 ; while ( i_attempts -- ) { if ( DecoderIsExitRequested ( p_dec ) || p_dec -> b_err...
0
348,068
int main(void) { test_syslog_parse_identifier("pidu[111]: xxx", "pidu", "111", 11); test_syslog_parse_identifier("pidu: xxx", "pidu", NULL, 6); test_syslog_parse_identifier("pidu xxx", NULL, NULL, 0); return 0; }
1
374,026
xps_lookup_font(xps_document *doc, char *name) { xps_font_cache *cache; for (cache = doc->font_table; cache; cache = cache->next) if (!xps_strcasecmp(cache->name, name)) return fz_keep_font(doc->ctx, cache->font); return NULL; }
0
96,210
static void emitline(JF, js_Ast *node) { F->lastline = node->line; }
0
435,486
EXPORTED int meth_propfind(struct transaction_t *txn, void *params) { struct meth_params *fparams = (struct meth_params *) params; int ret = 0, r; const char **hdr; unsigned depth; xmlDocPtr indoc = NULL, outdoc = NULL; xmlNodePtr root, cur = NULL, props = NULL; xmlNsPtr ns[NUM_NAMESPACE]; ...
0
100,946
static void cmd_anal_class_method(RCore *core, const char *input) { RAnalClassErr err = R_ANAL_CLASS_ERR_SUCCESS; char c = input[0]; switch (c) { case ' ': // "acm" case '-': // "acm-" case 'n': { // "acmn" const char *str = r_str_trim_head_ro (input + 1); if (!*str) { eprintf ("No class name given.\n"); ...
0
505,517
const char *CRYPTO_get_lock_name(int type) { if (type < 0) return("dynamic"); else if (type < CRYPTO_NUM_LOCKS) return(lock_names[type]); else if (type-CRYPTO_NUM_LOCKS > sk_OPENSSL_STRING_num(app_locks)) return("ERROR"); else return(sk_OPENSSL_STRING_value(app_locks,type-CRYPTO_NUM_LOCKS)); }
0
299,104
void HuffmanDecoder::Initialize(const unsigned int *codeBits, unsigned int nCodes) { // the Huffman codes are represented in 3 ways in this code: // // 1. most significant code bit (i.e. top of code tree) in the least significant bit position // 2. most significant code bit (i.e. top of code tree) in the most ...
0
441,290
AWSBrowserUploadAbstractor::get_auth_data(const req_state* const s) const { if (s->auth.s3_postobj_creds.x_amz_algorithm == AWS4_HMAC_SHA256_STR) { ldpp_dout(s, 0) << "Signature verification algorithm AWS v4" << " (AWS4-HMAC-SHA256)" << dendl; return get_auth_data_v4(s); } else { ld...
0
227,250
void LayerWebKitThread::removeAll(Vector<RefPtr<LayerWebKitThread> >& vector) { if (!vector.size()) return; while (vector.size()) { RefPtr<LayerWebKitThread> layer = vector[0].get(); ASSERT(layer->superlayer() == this); layer->removeFromSuperlayer(); } setNeedsCommit();...
0
367,406
static void selinux_shm_free_security(struct shmid_kernel *shp) { ipc_free_security(&shp->shm_perm); }
0
173,877
static int vrend_decode_set_constant_buffer(struct vrend_decode_ctx *ctx, uint16_t length) { uint32_t shader; uint32_t index; int nc = (length - 2); if (length < 2) return EINVAL; shader = get_buf_entry(ctx, VIRGL_SET_CONSTANT_BUFFER_SHADER_TYPE); index = get_buf_entry(ctx, VIRGL_SET_CONSTANT_...
0
245,149
bool OmniboxViewViews::OnMousePressed(const ui::MouseEvent& event) { select_all_on_mouse_release_ = (event.IsOnlyLeftMouseButton() || event.IsOnlyRightMouseButton()) && (!HasFocus() || (model()->focus_state() == OMNIBOX_FOCUS_INVISIBLE)); if (select_all_on_mouse_release_) { model()->SetCaretVisibili...
0
515,142
static void epsf_gencode(GVJ_t * job, node_t * n) { obj_state_t *obj = job->obj; epsf_t *desc; int doMap = (obj->url || obj->explicit_tooltip); desc = (epsf_t *) (ND_shape_info(n)); if (!desc) return; if (doMap && !(job->flags & EMIT_CLUSTERS_LAST)) gvrender_begin_anchor(job, obj->u...
0
387,107
static bool vmxnet_tx_pkt_rebuild_payload(struct VmxnetTxPkt *pkt) { size_t payload_len = iov_size(pkt->raw, pkt->raw_frags) - pkt->hdr_len; pkt->payload_frags = iov_copy(&pkt->vec[VMXNET_TX_PKT_PL_START_FRAG], pkt->max_payload_frags, pkt->raw, pk...
0
306,691
int CServer::Run() { // m_PrintCBIndex = Console()->RegisterPrintCallback(g_Config.m_ConsoleOutputLevel, SendRconLineAuthed, this); // load map if(!LoadMap(g_Config.m_SvMap)) { dbg_msg("server", "failed to load map. mapname='%s'", g_Config.m_SvMap); return -1; } // start server NETADDR BindAddr; if(g_Con...
0
29,421
static int cmp_hpel ( MpegEncContext * s , const int x , const int y , const int subx , const int suby , const int size , const int h , int ref_index , int src_index , me_cmp_func cmp_func , me_cmp_func chroma_cmp_func , const int flags ) { if ( flags & FLAG_DIRECT ) { return cmp_direct_inline ( s , x , y , subx , su...
0
483,673
void device_set_of_node_from_dev(struct device *dev, const struct device *dev2) { of_node_put(dev->of_node); dev->of_node = of_node_get(dev2->of_node); dev->of_node_reused = true; }
0
169,240
void Layer::SetClipParent(Layer* ancestor) { DCHECK(IsPropertyChangeAllowed()); if (clip_parent_ == ancestor) return; if (clip_parent_) clip_parent_->RemoveClipChild(this); clip_parent_ = ancestor; if (clip_parent_) clip_parent_->AddClipChild(this); SetNeedsCommit(); }
0
22,385
void xmlCleanupGlobals ( void ) { if ( xmlThrDefMutex != NULL ) { xmlFreeMutex ( xmlThrDefMutex ) ; xmlThrDefMutex = NULL ; } __xmlGlobalInitMutexDestroy ( ) ; }
0
169,530
PHP_METHOD(snmp, set) { php_snmp(INTERNAL_FUNCTION_PARAM_PASSTHRU, SNMP_CMD_SET, (-1)); }
0
264,133
wait_for_completion_interruptible_timeout(struct completion *x, unsigned long timeout) { return wait_for_common(x, timeout, TASK_INTERRUPTIBLE); }
0
210,654
LayoutUnit LayoutBlockFlow::clearFloatsIfNeeded(LayoutBox& child, MarginInfo& marginInfo, LayoutUnit oldTopPosMargin, LayoutUnit oldTopNegMargin, LayoutUnit yPos, bool childIsSelfCollapsing, bool childDiscardMargin) { LayoutUnit heightIncrease = getClearDelta(&child, yPos); marginInfo.setLastChildIsSelfCollapsi...
0
394,911
static void network_init_gcrypt (void) /* {{{ */ { gcry_error_t err; /* http://lists.gnupg.org/pipermail/gcrypt-devel/2003-August/000458.html * Because you can't know in a library whether another library has * already initialized the library */ if (gcry_control (GCRYCTL_ANY_INITIALIZATION_P)) return; ...
0
144,237
person_set_color(person_t* person, color_t mask) { person->mask = mask; }
0
7,566
static int DecodeBasicOcspResponse(byte* source, word32* ioIndex, OcspResponse* resp, word32 size, void* cm, void* heap, int noVerify) { int length; word32 idx = *ioIndex; word32 end_index; int ret; int sigLength; WOLFSSL_ENTER("DecodeBasicOcspResponse"); (void)heap; ...
1
56,867
int __read_etc_hosts_r( parser_t * parser, const char *name, int type, enum etc_hosts_action action, struct hostent *result_buf, char *buf, size_t buflen, struct hostent **result, int *h_errnop) { char **tok = NULL; struct in_addr *h_addr0 = NULL; const size_t aliaslen = INADDROFF + #ifdef __UCLIBC_H...
0
501,936
static int dns_common_sort_zones(struct ldb_message **m1, struct ldb_message **m2) { const char *n1, *n2; size_t l1, l2; n1 = ldb_msg_find_attr_as_string(*m1, "name", NULL); n2 = ldb_msg_find_attr_as_string(*m2, "name", NULL); if (n1 == NULL || n2 == NULL) { if (n1 != NULL) { return -1; } else if (n2 != NU...
0
53,573
check_METER(const struct ofpact_meter *a, const struct ofpact_check_params *cp OVS_UNUSED) { uint32_t mid = a->meter_id; return mid == 0 || mid > OFPM13_MAX ? OFPERR_OFPMMFC_INVALID_METER : 0; }
0
387,136
static void vmxnet3_pre_save(void *opaque) { VMXNET3State *s = opaque; s->mcast_list_buff_size = s->mcast_list_len * sizeof(MACAddr); }
0
283,120
const BlockEntry* Cluster::GetEntry(const Track* pTrack, long long time_ns) const { assert(pTrack); if (m_pSegment == NULL) // this is the special EOS cluster return pTrack->GetEOS(); const BlockEntry* pResult = pTrack->GetEOS(); long index = 0; for (;;) { if (index >= m_entries_count) { lon...
0
419,707
static int make_filename(const char *context[_CONTEXT_MAX], char **ret) { _cleanup_free_ char *c = NULL, *u = NULL, *p = NULL, *t = NULL; sd_id128_t boot = {}; int r; assert(context); c = filename_escape(context[CONTEXT_COMM]); if (!c) return -ENOMEM; ...
0
309,526
InputHandler::ScrollStatus LayerTreeHostImpl::RootScrollBegin( ScrollState* scroll_state, InputHandler::ScrollInputType type) { TRACE_EVENT0("cc", "LayerTreeHostImpl::RootScrollBegin"); ClearCurrentlyScrollingNode(); return ScrollBeginImpl(scroll_state, OuterViewportScrollNode(), type); }
0
284,038
Response EmulationHandler::ClearGeolocationOverride() { if (!GetWebContents()) return Response::InternalError(); auto* geolocation_context = GetWebContents()->GetGeolocationContext(); geolocation_context->ClearOverride(); return Response::OK(); }
0
136,309
static int_fast32_t pgx_getword(jas_stream_t *in, bool bigendian, int prec) { uint_fast32_t val; int i; int j; int c; int wordsize; wordsize = (prec + 7) / 8; if (prec > 32) { goto error; } val = 0; for (i = 0; i < wordsize; ++i) { if ((c = jas_stream_getc(in)) == EOF) { goto error; } j = bigend...
0
34,875
static struct nfc_llcp_sock *nfc_llcp_sock_get_sn(struct nfc_llcp_local *local, u8 *sn, size_t sn_len) { struct nfc_llcp_sock *llcp_sock; llcp_sock = nfc_llcp_sock_from_sn(local, sn, sn_len); if (llcp_sock == NULL) return NULL; sock_hold(&llcp_sock->sk); return llcp_sock; }
0
6,034
NOEXPORT char *pgsql_server(CLI *c, SERVICE_OPTIONS *opt, const PHASE phase) { uint8_t buffer[8], ssl_ok[1]={'S'}; (void)opt; /* squash the unused parameter warning */ if(phase!=PROTOCOL_EARLY) return NULL; memset(buffer, 0, sizeof buffer); s_read(c, c->local_rfd.fd, buffer, sizeof buffer);...
1
54,031
static BOOL rdp_write_brush_capability_set(wStream* s, const rdpSettings* settings) { size_t header; if (!Stream_EnsureRemainingCapacity(s, 32)) return FALSE; header = rdp_capability_set_start(s); if (header > UINT16_MAX) return FALSE; Stream_Write_UINT32(s, settings->BrushSupportLevel); /* brushSupportLevel...
0
448,515
pk11_finalize(void) { pk11_token_t *token, *next; isc_result_t ret; ret = free_all_sessions(); (void) pkcs_C_Finalize(NULL_PTR); token = ISC_LIST_HEAD(tokens); while (token != NULL) { next = ISC_LIST_NEXT(token, link); ISC_LIST_UNLINK(tokens, token, link); if (token == rand_token) rand_token = NULL; i...
0
221,999
void WebContentsImpl::RenderViewCreated(RenderViewHost* render_view_host) { if (!static_cast<RenderViewHostImpl*>(render_view_host)->is_active()) return; if (delegate_) view_->SetOverscrollControllerEnabled(CanOverscrollContent()); NotificationService::current()->Notify( NOTIFICATION_WEB_CONTENTS_...
0
138,681
UpstreamDrainManager& Config::drainManager() { return upstream_drain_manager_slot_->getTyped<UpstreamDrainManager>(); }
0
273,475
static void afiucv_pm_complete(struct device *dev) { #ifdef CONFIG_PM_DEBUG printk(KERN_WARNING "afiucv_pm_complete\n"); #endif }
0
386,944
static int vidioc_g_tuner(struct file *file, void *priv, struct v4l2_tuner *vt) { struct usb_usbvision *usbvision = video_drvdata(file); if (vt->index) /* Only tuner 0 */ return -EINVAL; if (vt->type == V4L2_TUNER_RADIO) strcpy(vt->name, "Radio"); else strcpy(vt->name, "Television"); /* Let clients fil...
0
13,821
void ProfileSyncService::OnExperimentsChanged( const browser_sync::Experiments& experiments) { if (current_experiments.Matches(experiments)) return; if (migrator_.get() && migrator_->state() != browser_sync::BackendMigrator::IDLE) { DVLOG(1) << "Dropping OnExperimentsChanged due to migrator busy....
1
416,533
gx_update_pdf14_compositor(gx_device * pdev, gs_gstate * pgs, const gs_pdf14trans_t * pdf14pct, gs_memory_t * mem ) { pdf14_device *p14dev = (pdf14_device *)pdev; gs_pdf14trans_params_t params = pdf14pct->params; int code = 0; params.idle = pdf14pct->idle; switch (params.pdf14_op) { def...
0
119,699
static int mailimf_unstructured_parse(const char * message, size_t length, size_t * indx, char ** result) { size_t cur_token; int state; size_t begin; size_t terminal; char * str; cur_token = * indx; while (1) { int r; r = mailimf_wsp_parse(message, length, &cur_token); if (r == ...
0
462,237
static void rtl8139_io_writel(void *opaque, uint8_t addr, uint32_t val) { RTL8139State *s = opaque; switch (addr) { case RxMissed: DPRINTF("RxMissed clearing on write\n"); s->RxMissed = 0; break; case TxConfig: rtl8139_TxConfig_write(s, val);...
0
154,999
void nego_set_negotiation_enabled(rdpNego* nego, BOOL NegotiateSecurityLayer) { WLog_DBG(TAG, "Enabling security layer negotiation: %s", NegotiateSecurityLayer ? "TRUE" : "FALSE"); nego->NegotiateSecurityLayer = NegotiateSecurityLayer; }
0
467,846
static void io_free_req_deferred(struct io_kiocb *req) { req->task_work.func = io_put_req_deferred_cb; if (unlikely(io_req_task_work_add(req))) io_req_task_work_add_fallback(req, io_put_req_deferred_cb); }
0
140,891
f_inputdialog(typval_T *argvars, typval_T *rettv) { #if defined(FEAT_GUI_TEXTDIALOG) /* Use a GUI dialog if the GUI is running and 'c' is not in 'guioptions' */ if (gui.in_use && vim_strchr(p_go, GO_CONDIALOG) == NULL) { char_u *message; char_u buf[NUMBUFLEN]; char_u *defstr = (char_u *)""; message = t...
0
182,091
virtual void TearDown() { }
0
241,031
void esp_dma_enable(ESPState *s, int irq, int level) { if (level) { s->dma_enabled = 1; trace_esp_dma_enable(); if (s->dma_cb) { s->dma_cb(s); s->dma_cb = NULL; } } else { trace_esp_dma_disable(); s->dma_enabled = 0; } }
0
427,939
static int caldav_check_precond(struct transaction_t *txn, const void *data, const char *etag, time_t lastmod) { const struct caldav_data *cdata = (const struct caldav_data *) data; const char *stag = cdata ? cdata->sched_tag : NULL; const char **hdr; int precond; /* Do normal WebDAV/HTTP check...
0
397,898
static void check_query_changes(IRC_SERVER_REC *server, const char *nick, const char *address, const char *target) { QUERY_REC *query; if (server_ischannel(SERVER(server), target)) return; query = irc_query_find(server, nick); if (query == NULL) return; if (g_strcmp0(query->name, nick) != 0) { /* uppe...
0
70,159
static Jsi_RC NumberConstructor(Jsi_Interp *interp, Jsi_Value *args, Jsi_Value *_this, Jsi_Value **ret, Jsi_Func *funcPtr) { if (Jsi_FunctionIsConstructor(funcPtr)) { Jsi_Number nv = 0.0; Jsi_Value *v = Jsi_ValueArrayIndex(interp, args, 0); if (v) { Jsi_ValueToNumber(interp, ...
0
8,130
static Variant HHVM_FUNCTION(bcsqrt, const String& operand, int64_t scale /* = -1 */) { if (scale < 0) scale = BCG(bc_precision); bc_num result; bc_init_num(&result); SCOPE_EXIT { bc_free_num(&result); }; php_str2num(&result, (char*)operand.data()); Variant ret; if (bc_s...
1
271,382
static double y2scr_pos(ASS_Renderer *render_priv, double y) { return y * render_priv->orig_height / render_priv->track->PlayResY + render_priv->settings.top_margin; }
0
445,653
static void commitReservation(Buffer::RawSlice* iovecs, uint64_t num_iovecs, OwnedImpl& buffer) { buffer.commit(iovecs, num_iovecs); }
0
246,201
bool Element::rareDataChildrenAffectedByFirstChildRules() const { ASSERT(hasRareData()); return elementRareData()->childrenAffectedByFirstChildRules(); }
0
511,481
expand_string_to_string_internal (string, quoted, func) char *string; int quoted; EXPFUNC *func; { WORD_LIST *list; char *ret; if (string == 0 || *string == '\0') return ((char *)NULL); list = (*func) (string, quoted); if (list) { ret = string_list (list); dispose_words (l...
0
251,156
bool on_tty(void) { /* We check both stdout and stderr, so that situations where pipes on the shell are used are reliably * recognized, regardless if only the output or the errors are piped to some place. Since on_tty() is generally * used to default to a safer, non-interactive, non-color mod...
0
230,953
void LogRendererKillCrashKeys(const GURL& site_url) { static auto* site_url_key = base::debug::AllocateCrashKeyString( "current_site_url", base::debug::CrashKeySize::Size64); base::debug::SetCrashKeyString(site_url_key, site_url.spec()); }
0
226,997
void FetchManager::Loader::PerformNetworkError(const String& message) { Failed(message); }
0
292,141
COMPAT_SYSCALL_DEFINE1(sigpending, compat_old_sigset_t __user *, set32) { sigset_t set; int err = do_sigpending(&set, sizeof(old_sigset_t)); if (err == 0) if (copy_to_user(set32, &set, sizeof(old_sigset_t))) err = -EFAULT; return err; }
0
29,409
static void * Type_Curve_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) { cmsUInt32Number Count ; cmsToneCurve * NewGamma ; * nItems = 0 ; if ( ! _cmsReadUInt32Number ( io , & Count ) ) return NULL ; switch ( Count ) { case 0 : { cmsFloat...
0
374,837
_equalBooleanTest(const BooleanTest *a, const BooleanTest *b) { COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(booltesttype); return true; }
0
261,461
static bool bpf_map_ptr_unpriv(const struct bpf_insn_aux_data *aux) { return aux->map_ptr_state & BPF_MAP_PTR_UNPRIV; }
0
401,999
xmlCopyNotation(xmlNotationPtr nota) { xmlNotationPtr cur; cur = (xmlNotationPtr) xmlMalloc(sizeof(xmlNotation)); if (cur == NULL) { xmlVErrMemory(NULL, "malloc failed"); return(NULL); } if (nota->name != NULL) cur->name = xmlStrdup(nota->name); else cur->name = NULL; if (nota->PublicID...
0
384,266
static xmlNodePtr to_xml_map(encodeTypePtr type, zval *data, int style, xmlNodePtr parent TSRMLS_DC) { xmlNodePtr xmlParam; int i; xmlParam = xmlNewNode(NULL, BAD_CAST("BOGUS")); xmlAddChild(parent, xmlParam); FIND_ZVAL_NULL(data, xmlParam, style); if (Z_TYPE_P(data) == IS_ARRAY) { i = zend_hash_num_elements(...
0
23,836
char * Curl_checkheaders ( const struct connectdata * conn , const char * thisheader ) { struct curl_slist * head ; size_t thislen = strlen ( thisheader ) ; struct Curl_easy * data = conn -> data ; for ( head = data -> set . headers ; head ; head = head -> next ) { if ( Curl_raw_nequal ( head -> data , thisheade...
0
389,124
uint32 fuzzy_distance(const char *s1, unsigned len1, const char *s2, unsigned len2) { uint32 a[MAXPATHLEN], diag, above, left, diag_inc, above_inc, left_inc; int32 cost; unsigned i1, i2; if (!len1 || !len2) { if (!len1) { s1 = s2; len1 = len2; } for (i1 = 0, cost = 0; i1 < len1; i1++) cost += s1[i1]...
0
503,202
TEST_F(OptimizePipeline, ExclusionProjectThenProjectPushDown) { auto pipeline = Pipeline::parse( makeVector(fromjson("{$_internalUnpackBucket: { exclude: [], timeField: 'time'," "metaField: 'myMeta', bucketMaxSpanSeconds: 3600}}"), fromjson("{$project: {myMeta:...
0
195,269
void Browser::OnContentSettingsChange(TabContents* source) { if (source == GetSelectedTabContents()) window_->GetLocationBar()->UpdateContentSettingsIcons(); }
0
267,197
set_arglist(char_u *str) { do_arglist(str, AL_SET, 0, FALSE); }
0
357,413
static struct audit_watch *audit_dupe_watch(struct audit_watch *old) { char *path; struct audit_watch *new; path = kstrdup(old->path, GFP_KERNEL); if (unlikely(!path)) return ERR_PTR(-ENOMEM); new = audit_init_watch(path); if (IS_ERR(new)) { kfree(path); goto out; } new->dev = old->dev; new->ino = old...
0
66,528
static inline char *upcase_string(char *dst, size_t dst_size, const char *src) { int i; for (i = 0; src[i] && i < dst_size-1; i++) dst[i] = av_toupper(src[i]); dst[i] = 0; return dst; }
0
138,414
static int watchdog_nmi_enable(int cpu) { return 0; }
0
426,582
static int exif_process_IFD_TAG(image_info_type *ImageInfo, char *dir_entry, char *offset_base, size_t IFDlength, size_t displacement, int section_index, int ReadNextIFD, tag_table_type tag_table) { size_t length; unsigned int tag, format, components; char *value_ptr, tagname[64], cbuf[32], *outside=NULL; size_t by...
0