idx
int64
func
string
target
int64
230,611
void mc_luma(const base_context* ctx, const seq_parameter_set* sps, int mv_x, int mv_y, int xP,int yP, int16_t* out, int out_stride, const pixel_t* ref, int ref_stride, int nPbW, int nPbH, int bitDepth_L) { int xFracL = mv_x & 3; int yFracL = mv_y & 3...
0
242,935
void mbedtls_ssl_transform_free( mbedtls_ssl_transform *transform ) { if( transform == NULL ) return; #if defined(MBEDTLS_ZLIB_SUPPORT) deflateEnd( &transform->ctx_deflate ); inflateEnd( &transform->ctx_inflate ); #endif mbedtls_cipher_free( &transform->cipher_ctx_enc ); mbedtls_cipher_fre...
0
317,233
static int __inode_security_revalidate(struct inode *inode, struct dentry *dentry, bool may_sleep) { struct inode_security_struct *isec = selinux_inode(inode); might_sleep_if(may_sleep); if (selinux_initialized(&selinux_state) && isec->initialized != LABEL_INITIALIZED) { if (!may_sleep...
0
361,750
int em28xx_tuner_callback(void *ptr, int component, int command, int arg) { struct em28xx_i2c_bus *i2c_bus = ptr; struct em28xx *dev = i2c_bus->dev; int rc = 0; if (dev->tuner_type != TUNER_XC2028 && dev->tuner_type != TUNER_XC5000) return 0; if (command != XC2028_TUNER_RESET && command != XC5000_TUNER_RESET) ...
0
336,683
SPICE_GNUC_VISIBLE void spice_server_set_seamless_migration(SpiceServer *reds, int enable) { /* seamless migration is not supported with multiple clients */ reds->seamless_migration_enabled = enable && !reds->allow_multiple_clients; spice_debug("seamless migration enabled=%d", enable); }
0
254,887
StringMap<boost::intrusive_ptr<Expression>> DocumentSourceGroup::getIdFields() const { if (_idFieldNames.empty()) { invariant(_idExpressions.size() == 1); return {{"_id", _idExpressions[0]}}; } else { invariant(_idFieldNames.size() == _idExpressions.size()); StringMap<boost::intr...
0
225,007
parseServiceFile(const char *serviceFile, const char *service, PQconninfoOption *options, PQExpBuffer errorMessage, bool *group_found) { int result = 0, linenr = 0, i; FILE *f; char *line; char buf[1024]; *group_found = false; f = fopen(serviceFile, "r"); if (f == NULL) { ...
0
269,941
static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception) { Image *image, *image2=NULL, *rotated_image; register Quantum *q; unsigned int status; MATHeader MATLAB_HDR; size_t size; size_t CellType; QuantumInfo *quantum_info; ImageInfo *clone_info; int i; ssize_t ldblk; ...
0
225,810
void gen_sample_entry_box_del(GF_Box *s) { GF_SampleEntryBox *ptr = (GF_SampleEntryBox *)s; if (ptr == NULL) return; gf_isom_sample_entry_predestroy((GF_SampleEntryBox *)s); gf_free(ptr); }
0
196,885
void Compute(OpKernelContext* ctx) override { const Tensor& input = ctx->input(kInputTensorIndex); const Tensor& input_min = ctx->input(kInputMinIndex); const Tensor& input_max = ctx->input(kInputMaxIndex); const size_t depth = input_max.NumElements(); OP_REQUIRES( ctx, input_min.dim_size...
1
424,534
static const char* video_command_name(BYTE cmd) { switch (cmd) { case TSMM_START_PRESENTATION: return "start"; case TSMM_STOP_PRESENTATION: return "stop"; default: return "<unknown>"; } }
0
446,091
static int hulusb_set_channel(struct ieee802154_hw *hw, u8 page, u8 channel) { int rc; int rssi_base_val; struct atusb *lp = hw->priv; if (channel == 0) rc = atusb_write_subreg(lp, SR_SUB_MODE, 0); else rc = atusb_write_subreg(lp, SR_SUB_MODE, 1); if (rc < 0) return rc; if (page == 0) { rc = atusb_wri...
0
279,902
ex_oldfiles(exarg_T *eap UNUSED) { list_T *l = get_vim_var_list(VV_OLDFILES); listitem_T *li; int nr = 0; char_u *fname; if (l == NULL) msg(_("No old files")); else { msg_start(); msg_scroll = TRUE; for (li = l->lv_first; li != NULL && !got_int; li = li->li_next) { ++nr; fna...
0
234,243
process_debug_info (struct dwarf_section * section, void *file, enum dwarf_section_display_enum abbrev_sec, bool do_loc, bool do_types) { unsigned char *start = section->start; unsigned char *end = start + section->size; unsigned char *section_begin; unsigned int unit; unsigned int num...
0
242,609
void Compute(OpKernelContext* ctx) override { Buffer* buf = nullptr; OP_REQUIRES_OK(ctx, GetBuffer(ctx, def(), &buf)); core::ScopedUnref scope(buf); Buffer::Tuple tuple; tuple.reserve(ctx->num_inputs()); for (int i = 0; i < ctx->num_inputs(); ++i) { tuple.push_back(ctx->input(i)); } ...
0
459,400
do_tag( char_u *tag, // tag (pattern) to jump to int type, int count, int forceit, // :ta with ! int verbose) // print "tag not found" message { taggy_T *tagstack = curwin->w_tagstack; int tagstackidx = curwin->w_tagstackidx; int tagstacklen = curwin->w_tagstacklen; int cur_m...
0
437,712
static inline u16 ns_to_lpf_count(unsigned int ns) { return count_to_lpf_count( DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000)); }
0
312,493
win_set_loclist(win_T *wp, qf_info_T *qi) { wp->w_llist = qi; qi->qf_refcount++; }
0
317,098
static int selinux_task_setpgid(struct task_struct *p, pid_t pgid) { return avc_has_perm(&selinux_state, current_sid(), task_sid_obj(p), SECCLASS_PROCESS, PROCESS__SETPGID, NULL); }
0
261,925
njs_string_split_part_add(njs_vm_t *vm, njs_array_t *array, njs_utf8_t utf8, const u_char *start, size_t size) { ssize_t length; length = njs_string_calc_length(utf8, start, size); return njs_array_string_add(vm, array, start, size, length); }
0
309,873
default_fg(NCURSES_SP_DCL0) { return (SP_PARM != 0) ? SP_PARM->_default_fg : COLOR_WHITE; }
0
421,372
static void pvar(int d, js_Ast *var) { assert(var->type == EXP_VAR); pexp(d, var->a); if (var->b) { sp(); pc('='); sp(); pexp(d, var->b); } }
0
221,477
add_dconf_key_to_keyfile (GKeyFile *keyfile, DConfClient *client, const char *key, DConfReadFlags flags) { g_autofree char *group = g_path_get_dirname (key); g_autofree char *k = g_path_get_basename (key); GVariant *value = dc...
0
242,965
int mbedtls_ssl_get_record_expansion( const mbedtls_ssl_context *ssl ) { size_t transform_expansion = 0; const mbedtls_ssl_transform *transform = ssl->transform_out; unsigned block_size; size_t out_hdr_len = mbedtls_ssl_out_hdr_len( ssl ); if( transform == NULL ) return( (int) out_hdr_len ...
0
224,168
std::size_t operator()(const Tensor& key) const { return std::hash<int64_t>{}(key.scalar<int64_t>()()); }
0
443,707
utf16be_mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end, UChar* fold) { const UChar* p = *pp; if (ONIGENC_IS_ASCII_CODE(*(p+1)) && *p == 0) { p++; #ifdef USE_UNICODE_CASE_FOLD_TURKISH_AZERI if ((flag & ONIGENC_CASE_FOLD_TURKISH_AZERI) != 0) { if (*p == 0x49) { ...
0
437,384
recursive_call_check(Node* node) { int r; switch (NODE_TYPE(node)) { case NODE_LIST: case NODE_ALT: r = 0; do { r |= recursive_call_check(NODE_CAR(node)); } while (IS_NOT_NULL(node = NODE_CDR(node))); break; case NODE_ANCHOR: if (! ANCHOR_HAS_BODY(ANCHOR_(node))) { r = 0; ...
0
445,889
archive_extraction_ready_for_convertion_cb (GObject *source_object, GAsyncResult *result, gpointer user_data) { ConvertData *cdata = user_data; FrWindow *window = cdata->window; GList *list; GError *error = NULL; if (! fr_archive_operation_finish (FR_ARCHIVE (source_objec...
0
198,239
static int check_passwd(unsigned char *passwd, size_t length) { struct digest *d = NULL; unsigned char *passwd1_sum; unsigned char *passwd2_sum; int ret = 0; int hash_len; if (IS_ENABLED(CONFIG_PASSWD_CRYPTO_PBKDF2)) { hash_len = PBKDF2_LENGTH; } else { d = digest_alloc(PASSWD_SUM); if (!d) { pr_err("N...
1
317,027
static int selinux_socket_unix_may_send(struct socket *sock, struct socket *other) { struct sk_security_struct *ssec = sock->sk->sk_security; struct sk_security_struct *osec = other->sk->sk_security; struct common_audit_data ad; struct lsm_network_audit net = {0,}; ad.type = LSM_AUDIT_DATA_NET; ad.u.net = &...
0
352,942
utcTimeValidate( Syntax *syntax, struct berval *in ) { int parts[9]; return check_time_syntax(in, 1, parts, NULL); }
0
234,731
int btrfs_rm_device(struct btrfs_fs_info *fs_info, const char *device_path, u64 devid) { struct btrfs_device *device; struct btrfs_fs_devices *cur_devices; struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; u64 num_devices; int ret = 0; mutex_lock(&uuid_mutex); num_devices = btrfs_num_devices(fs_...
0
310,138
_nc_mouse_resume(SCREEN *sp) /* re-connect to mouse -- called by doupdate() after shellout */ { TR(MY_TRACE, ("_nc_mouse_resume() called")); switch (sp->_mouse_type) { case M_XTERM: /* xterm: re-enable reporting */ if (sp->_mouse_mask) mouse_activate(sp, TRUE); break; #if USE_GPM_SUPPORT case ...
0
445,957
fr_archive_libarchive_init (FrArchiveLibarchive *self) { FrArchive *base = FR_ARCHIVE (self); self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, FR_TYPE_ARCHIVE_LIBARCHIVE, FrArchiveLibarchivePrivate); base->propAddCanReplace = TRUE; base->propAddCanUpdate = TRUE; base->propAddCanStoreFolders = TRUE; base->propAdd...
0
225,934
void payt_box_del(GF_Box *s) { GF_PAYTBox *payt = (GF_PAYTBox *)s; if (payt->payloadString) gf_free(payt->payloadString); gf_free(payt); }
0
432,326
static void breakpoint_invalidate(CPUState *cpu, target_ulong pc) { /* * There may not be a virtual to physical translation for the pc * right now, but there may exist cached TB for this pc. * Flush the whole TB cache to force re-translation of such TBs. * This is heavyweight, but we're debuggin...
0
353,209
T3FontCache::T3FontCache(const Ref *fontIDA, double m11A, double m12A, double m21A, double m22A, int glyphXA, int glyphYA, int glyphWA, int glyphHA, bool validBBoxA, bool aa) { fontID = *fontIDA; m11 = m11A; m12 = m12A; m21 = m21A; m22 = m22A; glyphX = glyphXA; glyphY = glyphYA; glyphW = gl...
0
195,768
void Compute(OpKernelContext* context) override { // Only create one, if one does not exist already. Report status for all // other exceptions. If one already exists, it unrefs the new one. // An epsilon value of zero could cause performance issues and is therefore, // disallowed. const Tensor* ep...
1
349,274
static void read_fragment(unsigned int fragment, long long *start_block, int *size) { TRACE("read_fragment: reading fragment %d\n", fragment); struct squashfs_fragment_entry *fragment_entry; fragment_entry = &fragment_table[fragment]; *start_block = fragment_entry->start_block; *size = fragment_entry->size; }
0
225,082
defaultNoticeReceiver(void *arg, const PGresult *res) { (void) arg; /* not used */ if (res->noticeHooks.noticeProc != NULL) res->noticeHooks.noticeProc(res->noticeHooks.noticeProcArg, PQresultErrorMessage(res)); }
0
210,555
vhost_backend_cleanup(struct virtio_net *dev) { if (dev->mem) { free_mem_region(dev); rte_free(dev->mem); dev->mem = NULL; } free(dev->guest_pages); dev->guest_pages = NULL; if (dev->log_addr) { munmap((void *)(uintptr_t)dev->log_addr, dev->log_size); dev->log_addr = 0; } if (dev->slave_req_fd >= 0)...
1
219,007
bool ConstantFolding::ReplaceReductionWithIdentity(NodeDef* node) const { // Replace the reduction node with an identity node, that can be further // optimized by other passes. DataType output_type; if (node->attr().count("T") != 0) { output_type = node->attr().at("T").type(); } else if (IsAny(*node) || I...
0
233,941
DepsTracker::State DocumentSourceUnionWith::getDependencies(DepsTracker* deps) const { // Since the $unionWith stage is a simple passthrough, we *could* report SEE_NEXT here in an // attempt to get a covered plan for the base collection. The ideal solution would involve // pushing down any dependencies to t...
0
237,891
lsquic_qeh_cleanup (struct qpack_enc_hdl *qeh) { if (qeh->qeh_flags & QEH_INITIALIZED) { LSQ_DEBUG("cleanup"); if (qeh->qeh_exp_rec) qeh_log_and_clean_exp_rec(qeh); lsqpack_enc_cleanup(&qeh->qeh_encoder); lsquic_frab_list_cleanup(&qeh->qeh_fral); memset(qeh, 0...
0
345,141
static void pxa3xx_gcu_init_debug_timer(struct pxa3xx_gcu_priv *priv) { /* init the timer structure */ debug_timer_priv = priv; timer_setup(&pxa3xx_gcu_debug_timer, pxa3xx_gcu_debug_timedout, 0); pxa3xx_gcu_debug_timedout(NULL); }
0
227,007
irc_protocol_nick_address (struct t_irc_server *server, int server_message, struct t_irc_nick *nick, const char *nickname, const char *address) { static char string[1024]; string[0] = '\0'; if (nick...
0
459,167
static void tcf_proto_signal_destroying(struct tcf_chain *chain, struct tcf_proto *tp) { struct tcf_block *block = chain->block; mutex_lock(&block->proto_destroy_lock); hash_add_rcu(block->proto_destroy_ht, &tp->destroy_ht_node, destroy_obj_hashfn(tp)); mutex_unlock(&block->proto_destroy_lock); }
0
512,927
Item_cache_timestamp(THD *thd) :Item_cache(thd, &type_handler_timestamp2) { }
0
386,604
void DL_Dxf::addBlock(DL_CreationInterface* creationInterface) { std::string name = getStringValue(2, ""); if (name.length()==0) { return; } DL_BlockData d( // Name: name, // flags: getIntValue(70, 0), // base point: getRealValue(10, 0.0), ...
0
273,096
two_str_hash(const char *a, const char *b) { char hashbuf[2048]; int64_t hash; int i; int ret; ret = snprintf(hashbuf, sizeof(hashbuf), "%s==%s", (a) ? a : "", (b) ? b : ""); if (ret < 0 || ret == sizeof(hashbuf)) { DPRINTF(E_LOG, L_MISC, "Buffer too large to calculate hash: '%s==%s'\n", a, b); ...
0
225,764
GF_Err cprt_box_size(GF_Box *s) { GF_CopyrightBox *ptr = (GF_CopyrightBox *)s; ptr->size += 2; if (ptr->notice) ptr->size += strlen(ptr->notice) + 1; return GF_OK; }
0
259,209
static int mov_read_meta(MOVContext *c, AVIOContext *pb, MOVAtom atom) { while (atom.size > 8) { uint32_t tag; if (avio_feof(pb)) return AVERROR_EOF; tag = avio_rl32(pb); atom.size -= 4; if (tag == MKTAG('h','d','l','r')) { int ret; avio_se...
0
416,357
finish_incsearch_highlighting( int gotesc, incsearch_state_T *is_state, int call_update_screen) { if (is_state->did_incsearch) { is_state->did_incsearch = FALSE; if (gotesc) curwin->w_cursor = is_state->save_cursor; else { if (!EQUAL_POS(is_state->save_cursor, is_state->search_start)) { ...
0
269,310
static inline int get_symbol2(RangeCoder *c, uint8_t *state, int log2){ int i; int r= log2>=0 ? 1<<log2 : 1; int v=0; av_assert2(log2>=-4); while(log2<28 && get_rac(c, state+4+log2)){ v+= r; log2++; if(log2>0) r+=r; } for(i=log2-1; i>=0; i--){ v+= get_rac(c...
0
389,689
check_for_opt_buffer_arg(typval_T *args, int idx) { return (args[idx].v_type == VAR_UNKNOWN || check_for_buffer_arg(args, idx)); }
0
256,416
PJ_DEF(pj_status_t) pjmedia_rtcp_fb_build_nack( pjmedia_rtcp_session *session, void *buf, pj_size_t *length, unsigned nack_cnt, const pjmedia_rtcp_fb_nack nack[]) { pjmedia_rtcp_fb_common *hdr; pj_uint8_t *p; unsigned len, i; PJ_ASSERT_RETURN(session && buf && length && nack_cn...
0
432,273
static void flatview_destroy(FlatView *view) { if (view->dispatch) { address_space_dispatch_free(view->dispatch); } g_free(view->ranges); g_free(view); }
0
230,380
static pj_xml_attr *alloc_attr( pj_pool_t *pool ) { return PJ_POOL_ZALLOC_T(pool, pj_xml_attr); }
0
307,841
ciMethod* ciEnv::get_method_by_index_impl(constantPoolHandle cpool, int index, Bytecodes::Code bc, ciInstanceKlass* accessor) { if (bc == Bytecodes::_invokedynamic) { ConstantPoolCacheEntry* cpce = cpool->invokedynamic_cp_cache_en...
0
225,971
GF_Err ihdr_box_size(GF_Box *s) { s->size += 14; return GF_OK;
0
513,124
static st_plugin_int *plugin_insert_or_reuse(struct st_plugin_int *plugin) { uint i; struct st_plugin_int *tmp; DBUG_ENTER("plugin_insert_or_reuse"); for (i= 0; i < plugin_array.elements; i++) { tmp= *dynamic_element(&plugin_array, i, struct st_plugin_int **); if (tmp->state == PLUGIN_IS_FREED) { ...
0
387,839
bool InstanceKlass::can_be_primary_super_slow() const { if (is_interface()) return false; else return Klass::can_be_primary_super_slow(); }
0
359,500
DEFUN (no_neighbor_ebgp_multihop, no_neighbor_ebgp_multihop_cmd, NO_NEIGHBOR_CMD2 "ebgp-multihop", NO_STR NEIGHBOR_STR NEIGHBOR_ADDR_STR2 "Allow EBGP neighbors not on directly connected networks\n") { return peer_ebgp_multihop_unset_vty (vty, argv[0]); }
0
411,910
router_append_dirobj_signature(char *buf, size_t buf_len, const char *digest, size_t digest_len, crypto_pk_env_t *private_key) { char *signature; size_t i, keysize; int siglen; keysize = crypto_pk_keysize(private_key); signature = tor_malloc(keysize); siglen = crypto_pk_priva...
0
312,438
qf_cmd_get_stack(exarg_T *eap, int print_emsg) { qf_info_T *qi = &ql_info; if (is_loclist_cmd(eap->cmdidx)) { qi = GET_LOC_LIST(curwin); if (qi == NULL) { if (print_emsg) emsg(_(e_no_location_list)); return NULL; } } return qi; }
0
90,859
void GetUsageAndQuota(const GURL& origin, StorageType type) { quota_status_ = kQuotaStatusUnknown; usage_ = -1; quota_ = -1; quota_manager_->GetUsageAndQuota(origin, type, callback_factory_.NewCallback( &QuotaManagerTest::DidGetUsageAndQuota)); }
0
310,258
directory_set_dirty(void) { time_t now = time(NULL); int set_v1_dirty=0; /* Regenerate stubs only every 8 hours. * XXXX It would be nice to generate less often, but these are just * stubs: it doesn't matter. */ #define STUB_REGENERATE_INTERVAL (8*60*60) if (!the_directory || !the_runningrouters.dir) ...
0
432,257
static void mmio_write_wrapper(struct uc_struct *uc, void *opaque, hwaddr addr, uint64_t data, unsigned size) { mmio_cbs* cbs = (mmio_cbs*)opaque; // We have to care about 32bit target. addr = addr & ( (target_ulong)(-1) ); if (cbs->write) { cbs->write(uc, addr, size, data, cbs->user_data_w...
0
473,894
cp949_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc ARG_UNUSED) { int firstbyte = *p++; state_t s = trans[0][firstbyte]; #define RETURN(n) \ return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n) : \ ONIGENC_CONSTRUCT_MBCLEN_INVALID() if (s < 0) RETURN(1); if (p =...
0
244,179
GF_Box *st3d_box_new() { ISOM_DECL_BOX_ALLOC(GF_Stereo3DBox, GF_ISOM_BOX_TYPE_ST3D); return (GF_Box *)tmp; }
0
473,821
onigenc_unicode_get_case_fold_codes_by_str(OnigEncoding enc, OnigCaseFoldType flag, const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) { int n, i, j, k, len; OnigCodePoint code, codes[3]; CodePointList3 *to, *z3; CodePointList2 *z2; if (CaseFoldInited == 0) init_case_fold_table()...
0
448,535
static int bgp_route_refresh_receive(struct peer *peer, bgp_size_t size) { iana_afi_t pkt_afi; afi_t afi; iana_safi_t pkt_safi; safi_t safi; struct stream *s; struct peer_af *paf; struct update_group *updgrp; struct peer *updgrp_peer; uint8_t subtype; bool force_update = false; bgp_size_t msg_length = size...
0
405,350
static struct xfrm_dst *xfrm_bundle_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir, struct xfrm_flo *xflo, u32 if_id) { struct xfrm_policy *pols[XFRM_POLICY_TYPE_MAX]; int num_pols = 0, num_xfrms = 0, err; struct xfrm_dst *xdst; /* Resolve policies to use if we couldn't ...
0
257,454
void AutoParallel::AddSharedNodes(GraphDef* graph) { string prefix = strings::StrCat(kAutoParallelPrefix, "-Replica-", 0); for (const auto& node : shared_nodes_) { auto new_node = graph->add_node(); *new_node = *all_nodes_[node]; for (int i = 0; i < new_node->input_size(); i++) { if (NotSharedNode...
0
196,621
mrb_remove_method(mrb_state *mrb, struct RClass *c, mrb_sym mid) { mt_tbl *h; MRB_CLASS_ORIGIN(c); h = c->mt; if (h && mt_del(mrb, h, mid)) return; mrb_name_error(mrb, mid, "method '%n' not defined in %C", mid, c); }
1
473,838
count_collision(const struct st_hash_type *type) { collision.all++; if (type == &type_numhash) { collision.num++; } else if (type == &type_strhash) { collision.strcase++; } else if (type == &type_strcasehash) { collision.str++; } }
0
252,417
static MZ_FORCEINLINE mz_bool mz_zip_array_push_back(mz_zip_archive *pZip, mz_zip_array *pArray, const void *pElements, size_t n) { size_t orig_size = pArray->...
0
516,243
static uint16_t virtio_net_handle_rss(VirtIONet *n, struct iovec *iov, unsigned int iov_cnt, bool do_rss) { VirtIODevice *vdev = VIRTIO_DEVICE(n); struct virtio_net_rss_config cfg; size_t s, off...
0
328,928
static void delete_obj(RBinJavaCPTypeObj *obj) { if (obj && obj->metas && obj->metas->type_info) { RBinJavaCPTypeMetas *ti = obj->metas->type_info; if (ti && ti->allocs && ti->allocs->delete_obj) { ti->allocs->delete_obj (obj); } } }
0
424,532
static void VideoClientContextPriv_free(VideoClientContextPriv* priv) { EnterCriticalSection(&priv->framesLock); while (Queue_Count(priv->frames)) { VideoFrame* frame = Queue_Dequeue(priv->frames); if (frame) VideoFrame_free(&frame); } Queue_Free(priv->frames); LeaveCriticalSection(&priv->framesLock); D...
0
225,426
static int vidioc_streamon(struct file *file, void *fh, enum v4l2_buf_type type) { struct v4l2_loopback_device *dev; struct v4l2_loopback_opener *opener; MARK(); dev = v4l2loopback_getdevice(file); opener = fh_to_opener(fh); switch (type) { case V4L2_BUF_TYPE_VIDEO_OUTPUT: if (!dev->ready_for_capture) { i...
0
278,260
tabstop_at(colnr_T col, int ts, int *vts) { int tabcount; colnr_T tabcol = 0; int t; int tab_size = 0; if (vts == 0 || vts[0] == 0) return ts; tabcount = vts[0]; for (t = 1; t <= tabcount; ++t) { tabcol += vts[t]; if (tabcol > col) { tab_size = vts[t]; break; } } ...
0
369,945
static struct mm_struct *__check_mem_permission(struct task_struct *task) { struct mm_struct *mm; mm = get_task_mm(task); if (!mm) return ERR_PTR(-EINVAL); /* * A task can always look at itself, in case it chooses * to use system calls instead of load instructions. */ if (task == current) return mm; ...
0
438,662
static int virtio_rpmsg_release_channel(struct rpmsg_device *rpdev, struct rpmsg_channel_info *chinfo) { struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); struct virtproc_info *vrp = vch->vrp; return rpmsg_unregister_device(&vrp->vdev->dev, chinfo); }
0
255,081
Eigen::VectorXd ompl::geometric::VFRRT::getNewDirection(const base::State *qnear, const base::State *qrand) { // Set vrand to be the normalized vector from qnear to qrand Eigen::VectorXd vrand(vfdim_); for (unsigned int i = 0; i < vfdim_; i++) vrand[i] = *si_->getStateSpace()->getValueAddressAtIndex...
0
253,716
static int ccp_copy_to_sb(struct ccp_cmd_queue *cmd_q, struct ccp_dm_workarea *wa, u32 jobid, u32 sb, u32 byte_swap) { return ccp_copy_to_from_sb(cmd_q, wa, jobid, sb, byte_swap, false); }
0
90,233
CellularNetwork::~CellularNetwork() { }
0
507,764
ECPKPARAMETERS *EC_GROUP_get_ecpkparameters(const EC_GROUP *group, ECPKPARAMETERS *params) { int ok = 1, tmp; ECPKPARAMETERS *ret = params; if (ret == NULL) { if ((ret = ECPKPARAMETERS_new()) == NULL) { ECerr(EC_F_EC_GROUP_GET_ECPKPARAMETERS, ...
0
310,267
generate_runningrouters(void) { char *s=NULL; char digest[DIGEST_LEN]; char published[ISO_TIME_LEN+1]; size_t len; crypto_pk_env_t *private_key = get_server_identity_key(); char *identity_pkey; /* Identity key, DER64-encoded. */ size_t identity_pkey_len; if (crypto_pk_write_public_key_to_string(private...
0
393,462
static SQInteger class_getattributes(HSQUIRRELVM v) { return SQ_SUCCEEDED(sq_getattributes(v,-2))?1:SQ_ERROR; }
0
353,121
void SplashOutputDev::updateFont(GfxState * /*state*/) { needFontUpdate = true; }
0
383,307
gdImageCreateTrueColor (int sx, int sy) { int i; gdImagePtr im; im = (gdImage *) gdMalloc (sizeof (gdImage)); memset (im, 0, sizeof (gdImage)); im->tpixels = (int **) gdMalloc (sizeof (int *) * sy); im->polyInts = 0; im->polyAllocated = 0; im->brush = 0; im->tile = 0; im->style = 0; for (i = 0; (i...
0
326,600
cleanup_pathname_win(char *path) { wchar_t wc; char *p; size_t alen, l; int mb, complete, utf8; alen = 0; mb = 0; complete = 1; utf8 = (strcmp(nl_langinfo(CODESET), "UTF-8") == 0)? 1: 0; for (p = path; *p != '\0'; p++) { ++alen; if (*p == '\\') { /* If previous byte is smaller than 128, * this is n...
0
247,117
GF_Err gf_fs_post_user_task(GF_FilterSession *fsess, Bool (*task_execute) (GF_FilterSession *fsess, void *callback, u32 *reschedule_ms), void *udta_callback, const char *log_name) { GF_UserTask *utask; char *_log_name; if (!fsess || !task_execute) return GF_BAD_PARAM; GF_SAFEALLOC(utask, GF_UserTask); if (!utask) ...
0
512,354
static inline int cmp_longs (longlong a_val, longlong b_val) { return a_val < b_val ? -1 : a_val == b_val ? 0 : 1; }
0
336,137
static int ip6gre_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) { struct ip6_tnl *nt; struct net *net = dev_net(dev); struct ip6gre_net *ign = net_generic(net, ip6gre_net_id); struct ip_tunnel_encap ipencap; int err; nt = netdev_priv(dev); if (ip6gre_netlink_...
0
236,191
GF_Err href_box_size(GF_Box *s) { GF_TextHyperTextBox*ptr = (GF_TextHyperTextBox*)s; s->size += 6; if (ptr->URL) s->size += strlen(ptr->URL); if (ptr->URL_hint) s->size += strlen(ptr->URL_hint); return GF_OK; }
0
242,582
relocate_coff (PE_COFF_LOADER_IMAGE_CONTEXT *context, EFI_IMAGE_SECTION_HEADER *Section, void *orig, void *data) { EFI_IMAGE_BASE_RELOCATION *RelocBase, *RelocBaseEnd; UINT64 Adjust; UINT16 *Reloc, *RelocEnd; char *Fixup, *FixupBase; UINT16 *Fixup16; UINT32 *Fixup32; UINT64 *Fixup64; int size = ...
0
344,821
get_u32(const void *vp) { const u_char *p = (const u_char *)vp; u_int32_t v; v = (u_int32_t)p[0] << 24; v |= (u_int32_t)p[1] << 16; v |= (u_int32_t)p[2] << 8; v |= (u_int32_t)p[3]; return (v); }
0
216,701
static enum TIFFReadDirEntryErr TIFFReadDirEntryArrayWithLimit( TIFF* tif, TIFFDirEntry* direntry, uint32* count, uint32 desttypesize, void** value, uint64 maxcount) { int typesize; uint32 datasize; void* data; uint64 target_count64; typesize=TIFFDataWidth(direntry->tdir_type); target_count...
1