idx
int64
func
string
target
int64
417,203
format_SET_VLAN_VID(const struct ofpact_vlan_vid *a, struct ds *s) { ds_put_format(s, "%s%s:%s%"PRIu16, colors.param, a->push_vlan_if_needed ? "mod_vlan_vid" : "set_vlan_vid", colors.end, a->vlan_vid); }
0
255,036
Status GetDeviceForInput(const EagerOperation& op, const EagerContext& ctx, TensorHandle* tensor_handle, Device** result) { Device* cpu_device = ctx.HostCPU(); string device_name; if (tensor_handle->Type() != TensorHandle::LOCAL) { Device* device = tensor_handle->device(); device_...
1
464,977
static inline void *ResizeBlock(void *block,size_t size) { void *memory; if (block == (void *) NULL) return(AcquireBlock(size)); memory=AcquireBlock(size); if (memory == (void *) NULL) return((void *) NULL); if (size <= (SizeOfBlock(block)-sizeof(size_t))) (void) memcpy(memory,block,size); ...
0
416,909
static int rtnl_dump_ifinfo(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); struct net *tgt_net = net; int h, s_h; int idx = 0, s_idx; struct net_device *dev; struct hlist_head *head; struct nlattr *tb[IFLA_MAX+1]; u32 ext_filter_mask = 0; const struct rtnl_link_ops *ki...
0
125,029
static i40e_status i40e_del_macvlan_filter(struct i40e_hw *hw, u16 seid, const u8 *macaddr, int *aq_err) { struct i40e_aqc_remove_macvlan_element_data element; i40e_status status; memset(&element, 0, sizeof(element)); ether_addr_copy(element.mac_addr, macaddr); element.vlan_tag = 0; element.flags = I40E_...
0
295,381
static long sock_do_ioctl(struct net *net, struct socket *sock, unsigned int cmd, unsigned long arg) { int err; void __user *argp = (void __user *)arg; err = sock->ops->ioctl(sock, cmd, arg); /* * If this ioctl is unknown try to hand it down * to the NIC driver. */ if (err != -ENOIOCTLCMD) return er...
0
151,389
static void __exit ecryptfs_exit(void) { int rc; rc = ecryptfs_destroy_crypto(); if (rc) printk(KERN_ERR "Failure whilst attempting to destroy crypto; " "rc = [%d]\n", rc); ecryptfs_release_messaging(); ecryptfs_destroy_kthread(); do_sysfs_unregistration(); unregister_filesystem(&ecryptfs_fs_type); ...
0
181,030
void ChromePasswordManagerClient::ShowPasswordGenerationPopup( password_manager::ContentPasswordManagerDriver* driver, const autofill::password_generation::PasswordGenerationUIData& ui_data, bool is_manually_triggered) { DCHECK(driver); gfx::RectF element_bounds_in_top_frame_space = TransformToRoo...
0
205,227
base::TimeDelta GetWakeUpDuration() { int duration_ms; if (!base::StringToInt(base::GetFieldTrialParamValue(kWakeUpThrottlingTrial, kWakeUpDurationParam), &duration_ms)) return kDefaultWakeUpDuration; return base::TimeDelta::FromM...
0
489,453
static JSValue js_sys_crc32(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) { const u8 *data; size_t data_size; if (!argc) return GF_JS_EXCEPTION(ctx); if (JS_IsString(argv[0])) { u32 crc=0; const char *str = JS_ToCString(ctx, argv[0]); if (str) { crc = gf_crc_32(str, (u32) strlen(str...
0
430,505
httpRead2(http_t *http, /* I - HTTP connection */ char *buffer, /* I - Buffer for data */ size_t length) /* I - Maximum number of bytes */ { ssize_t bytes; /* Bytes read */ #ifdef HAVE_LIBZ DEBUG_printf(("httpRead2(http=%p, buffer=%p, length=" CUPS_LLFMT ") coding=%d data_encoding=%d data_rem...
0
412,627
pk_transaction_remove_packages (PkTransaction *transaction, GVariant *params, GDBusMethodInvocation *context) { gboolean ret; guint length; gchar **package_ids; gboolean allow_deps; gboolean autoremove; PkBitfield transaction_flags; _cleanup_error_free_ GError *error = NULL; _cleanup_free_ gchar *packag...
0
120,769
OpContext(TfLiteContext* context, TfLiteNode* node) { input = GetInput(context, node, 0); ref = GetInput(context, node, 1); }
0
227,466
copy_xml(xmlNode * src) { xmlDoc *doc = xmlNewDoc((const xmlChar *)"1.0"); xmlNode *copy = xmlDocCopyNode(src, doc, 1); xmlDocSetRootElement(doc, copy); xmlSetTreeDoc(copy, doc); return copy; }
0
511,315
getpattern (value, quoted, expandpat) char *value; int quoted, expandpat; { char *pat, *tword; WORD_LIST *l; #if 0 int i; #endif /* There is a problem here: how to handle single or double quotes in the pattern string when the whole expression is between double quotes? POSIX.2 says that encl...
0
326,383
static int pick_formats(AVFilterGraph *graph) { int i, j, ret; int change; do{ change = 0; for (i = 0; i < graph->filter_count; i++) { AVFilterContext *filter = graph->filters[i]; if (filter->nb_inputs){ for (j = 0; j < filter->nb_inputs; j+...
0
77,143
int IniSection::setValue (const YCPPath&p,const YCPValue&in,int what, int depth) { string k = ip->changeCase (p->component_str (depth)); // Find the matching sections. // If we need to recurse, choose one, creating if necessary // Otherwise set all the matching values // creating and deleting if th...
0
337,937
static void cris_alu(DisasContext *dc, int op, TCGv d, TCGv op_a, TCGv op_b, int size) { TCGv tmp; int writeback; writeback = 1; if (op == CC_OP_BOUND || op == CC_OP_BTST) tmp = tcg_temp_local_new(TCG_TYPE_TL); else tmp = tcg_temp_new(TCG_TYPE_TL); if (op == CC_OP_CMP) { writeback...
1
229,181
void IPCThreadState::decWeakHandle(int32_t handle) { LOG_REMOTEREFS("IPCThreadState::decWeakHandle(%d)\n", handle); mOut.writeInt32(BC_DECREFS); mOut.writeInt32(handle); }
0
162,165
default_class_from_mono_type (MonoType *type) { switch (type->type) { case MONO_TYPE_OBJECT: return mono_defaults.object_class; case MONO_TYPE_VOID: return mono_defaults.void_class; case MONO_TYPE_BOOLEAN: return mono_defaults.boolean_class; case MONO_TYPE_CHAR: return mono_defaults.char_class; case MONO_...
0
384,162
Status readCString( StringData* out ) { const void* x = memchr( _buffer + _position, 0, _maxLength - _position ); if ( !x ) return makeError("no end of c-string", _idElem); uint64_t len = static_cast<uint64_t>( static_cast<const char*>(x) -...
0
311,728
const char *sc_get_version(void) { return sc_version; }
0
436,366
euckr_mbc_to_code(const UChar* p, const UChar* end) { return onigenc_mbn_mbc_to_code(ONIG_ENCODING_EUC_KR, p, end); }
0
398,640
gst_aac_parse_check_adts_frame (GstAacParse * aacparse, const guint8 * data, const guint avail, gboolean drain, guint * framesize, guint * needed_data) { guint crc_size; *needed_data = 0; /* Absolute minimum to perform the ADTS syncword, layer and sampling frequency tests */ if (G_UNLIKELY (avail...
0
195,934
void OnSyntheticGestureCompleted(SyntheticGesture::Result result) { EXPECT_EQ(SyntheticGesture::GESTURE_FINISHED, result); gesture_run_loop_->Quit(); }
0
328,486
static AVIOContext * wtvfile_open_sector(int first_sector, uint64_t length, int depth, AVFormatContext *s) { AVIOContext *pb; WtvFile *wf; uint8_t *buffer; if (seek_by_sector(s->pb, first_sector, 0) < 0) return NULL; wf = av_mallocz(sizeof(WtvFile)); if (!wf) return ...
0
39,741
static struct kwajd_stream *lzh_init(struct mspack_system *sys, struct mspack_file *in, struct mspack_file *out) { struct kwajd_stream *lzh; if (!sys || !in || !out) return NULL; if (!(lzh = (struct kwajd_stream *) sys->alloc(sys, sizeof(struct kwajd_stream)))) return NULL; lzh->sys = sys; ...
0
302,515
bool ethereum_getStandardERC20Amount(const EthereumSignTx *msg, void **tx_out_amount) { const ExchangeType *exchange = &msg->exchange_type; size_t size = exchange->signed_exchange_response.responseV2.deposit_amount.size; if (32 < size) return false; // Make sure the v...
0
307,081
PDFiumEngine::SelectionChangeInvalidator::SelectionChangeInvalidator( PDFiumEngine* engine) : engine_(engine), previous_origin_(engine_->GetVisibleRect().point()), old_selections_(GetVisibleSelections()) {}
0
142,380
static GF_ISOSAPType sap_type_from_nal_type(u8 nal_type) { switch (nal_type) { case GF_HEVC_NALU_SLICE_CRA: return SAP_TYPE_3; case GF_HEVC_NALU_SLICE_IDR_N_LP: case GF_HEVC_NALU_SLICE_BLA_N_LP: return SAP_TYPE_1; case GF_HEVC_NALU_SLICE_IDR_W_DLP: case GF_HEVC_NALU_SLICE_BLA_W_DLP: case GF_HEVC_NALU_SLICE_B...
0
167,101
ZEND_API int zend_update_static_property_double(zend_class_entry *scope, const char *name, int name_length, double value TSRMLS_DC) /* {{{ */ { zval *tmp; ALLOC_ZVAL(tmp); Z_UNSET_ISREF_P(tmp); Z_SET_REFCOUNT_P(tmp, 0); ZVAL_DOUBLE(tmp, value); return zend_update_static_property(scope, name, name_length, tmp TSR...
0
8,488
psf_fwrite (const void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf) { sf_count_t total = 0 ; ssize_t count ; if (psf->virtual_io) return psf->vio.write (ptr, bytes*items, psf->vio_user_data) / bytes ; items *= bytes ; /* Do this check after the multiplication above. */ if (items <= 0) return 0...
1
347,556
static Token *tokenize(char *line) { char c, *p = line; enum pp_token_type type; Token *list = NULL; Token *t, **tail = &list; while (*line) { p = line; if (*p == '%') { p++; if (*p == '+' && !nasm_isdigit(p[1])) { p++; type = ...
1
322,582
int nbd_client_session_co_readv(NbdClientSession *client, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { int offset = 0; int ret; while (nb_sectors > NBD_MAX_SECTORS) { ret = nbd_co_readv_1(client, sector_num, NBD_MAX_SECTORS, qiov, offset); ...
0
496,515
std::string index(Vertex_iterator v) const { return VI(v,verbose); }
0
38,439
static boolean ReadComment(j_decompress_ptr jpeg_info) { ErrorManager *error_manager; ExceptionInfo *exception; Image *image; register unsigned char *p; register ssize_t i; size_t length; StringInfo *comment; /* Determine length of comment. */ error_manager=(Er...
0
462,757
TEST_F(QueryPlannerTest, NoMutationsForCollscan) { params.options = QueryPlannerParams::KEEP_MUTATIONS; runQuery(fromjson("")); assertSolutionExists("{cscan: {dir: 1}}"); }
0
479,384
CImg<Tuchar> get_RGBtoCMY() const { return CImg<Tfloat>(*this,false).RGBtoCMY(); }
0
91,695
void MainWindow::setPreviewScale(int scale) { LOG_DEBUG() << scale; switch (scale) { case 360: ui->actionPreview360->setChecked(true); break; case 540: ui->actionPreview540->setChecked(true); break; case 720: ui->actionPreview720->setChecked(true); bre...
0
38,041
void mg_unhex(const char *buf, size_t len, unsigned char *to) { size_t i; for (i = 0; i < len; i += 2) { to[i >> 1] = (unsigned char) mg_unhexn(&buf[i], 2); } }
0
47,980
static void xfrm_byidx_resize(struct net *net, int total) { unsigned int hmask = net->xfrm.policy_idx_hmask; unsigned int nhashmask = xfrm_new_hash_mask(hmask); unsigned int nsize = (nhashmask + 1) * sizeof(struct hlist_head); struct hlist_head *oidx = net->xfrm.policy_byidx; struct hlist_head *nidx = xfrm_hash_al...
0
298,733
sockaddr_getport(struct sockaddr *sa) { if (sa->sa_family == AF_INET) { return ntohs(((struct sockaddr_in *)sa)->sin_port); } else if (sa->sa_family == AF_INET6) { return ntohs(((struct sockaddr_in6 *)sa)->sin6_port); } else { return 0; } }
0
311,031
jsonb_to_recordset(PG_FUNCTION_ARGS) { return populate_recordset_worker(fcinfo, "jsonb_to_recordset", false); }
0
410,906
static int bufsize_v4l2_create(struct v4l2_create_buffers32 __user *up, u32 *size) { if (!access_ok(VERIFY_READ, up, sizeof(*up))) return -EFAULT; return __bufsize_v4l2_format(&up->format, size); }
0
447,297
struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, struct dx_entry *entries, int levels) { unsigned blocksize = dir->i_sb->s_blocksize; unsigned count = dx_get_count(entries), names = 0, space = 0, i; unsigned bcount = 0; struct buffer_head *bh; printk("%i indexed blocks...\n", cou...
0
19,650
static void send_version_response ( int fd , version_ack_t ack , uint32_t payload , int userid , struct query * q ) { char out [ 9 ] ; switch ( ack ) { case VERSION_ACK : strncpy ( out , "VACK" , sizeof ( out ) ) ; break ; case VERSION_NACK : strncpy ( out , "VNAK" , sizeof ( out ) ) ; break ; case VERSION_FULL ...
0
208,843
void InputMethodIMM32::OnDidChangeFocusedClient(TextInputClient* focused_before, TextInputClient* focused) { if (IsWindowFocused(focused)) { OnTextInputTypeChanged(focused); UpdateIMEState(); OnCaretBoundsChanged(focused); } }
0
30,771
static gboolean gtkui_connections_scroll ( gpointer data ) { gint * type = data ; if ( type == NULL ) return FALSE ; if ( * type == 1 && textview1 && endmark1 && textview2 && endmark2 ) { gtk_text_view_scroll_to_mark ( GTK_TEXT_VIEW ( textview1 ) , endmark1 , 0 , FALSE , 0 , 0 ) ; gtk_text_view_scroll_to_mark ( GT...
0
498,765
smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, struct kstatfs *buf) { struct smb2_query_info_rsp *rsp; struct smb2_fs_full_size_info *info = NULL; struct kvec rsp_iov = {NULL, 0}; int buftype = CIFS_NO_BUFFER; int rc; rc = smb2_query_info_compound(xid, tcon, "",...
0
350,820
read_yin_list(struct lys_module *module, struct lys_node *parent, struct lyxml_elem *yin, int options, struct unres_schema *unres) { struct ly_ctx *ctx = module->ctx; struct lys_node *retval, *node; struct lys_node_list *list; struct lyxml_elem *sub, *next, root, uniq; int r; int c...
1
64,297
GF_Err cslg_box_size(GF_Box *s) { GF_CompositionToDecodeBox *ptr = (GF_CompositionToDecodeBox *)s; ptr->size += 20; return GF_OK; }
0
177,817
void Wait(size_t number_of_messages) { while (intercepted_messages_.size() < number_of_messages) { loop_.reset(new base::RunLoop); loop_->Run(); } }
0
47,642
gid_t enc_untrusted_getgid() { return EnsureInitializedAndDispatchSyscall(asylo::system_call::kSYS_getgid); }
0
273,332
free_global () { xfree(clamd_local); xfree(clamd_ip); xfree(clamd_port); xfree(clamd_curr_ip); xfree(redirect_url); if (patterns != NULL) { while (pattc > 0) { pattc--; regfree(&patterns[pattc].regexv); xfree(patterns[pattc].pattern); } free(patterns); patterns = NULL; ...
0
187,732
static int wifi_get_multicast_id(wifi_handle handle, const char *name, const char *group) { GetMulticastIdCommand cmd(handle, name, group); int res = cmd.requestResponse(); if (res < 0) return res; else return cmd.getId(); }
0
217,191
void WebGLRenderingContextBase::Reshape(int width, int height) { if (isContextLost()) return; GLint buffer = 0; if (IsWebGL2OrHigher()) { ContextGL()->GetIntegerv(GL_PIXEL_UNPACK_BUFFER_BINDING, &buffer); if (buffer) { ContextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); } } GLint max_s...
0
72,992
SCTP_STATIC int sctp_bind(struct sock *sk, struct sockaddr *addr, int addr_len) { int retval = 0; sctp_lock_sock(sk); SCTP_DEBUG_PRINTK("sctp_bind(sk: %p, addr: %p, addr_len: %d)\n", sk, addr, addr_len); /* Disallow binding twice. */ if (!sctp_sk(sk)->ep->base.bind_addr.port) retval = sctp_do_bind(sk, (u...
0
114,330
static void claim_allocations(int cpu, struct sched_domain *sd) { struct sd_data *sdd = sd->private; WARN_ON_ONCE(*per_cpu_ptr(sdd->sd, cpu) != sd); *per_cpu_ptr(sdd->sd, cpu) = NULL; if (atomic_read(&(*per_cpu_ptr(sdd->sg, cpu))->ref)) *per_cpu_ptr(sdd->sg, cpu) = NULL; if (atomic_read(&(*per_cpu_ptr(sdd->sg...
0
293,045
bool Socket::writeChunk( char *buffout, int len, int timeout){ std::stringstream stm; stm << std::hex << len; std::string hexs (stm.str()); //int lw; hexs += "\r\n"; #ifdef NETDEBUG std::cerr << thread_id << "writeChunk size=" << hexs << std::endl; #endif if(writeString(hexs.c_str()) && wri...
0
20,337
static int dissect_h225_Endpoint ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h225_Endpoint , Endpoint_sequence ) ; return offset ; }
0
99,582
build_history_completion_array () { register int i, j; HIST_ENTRY **hlist; char **tokens; /* First, clear out the current dynamic history completion list. */ if (harry_size) { strvec_dispose (history_completion_array); history_completion_array = (char **)NULL; harry_size = 0; harr...
0
149,036
static int __init set_init_cxt(void) { struct cred *cred = (struct cred *)current->real_cred; struct aa_task_cxt *cxt; cxt = aa_alloc_task_context(GFP_KERNEL); if (!cxt) return -ENOMEM; cxt->profile = aa_get_profile(root_ns->unconfined); cred_cxt(cred) = cxt; return 0; }
0
450,472
static void nfs4_setclientid_done(struct rpc_task *task, void *calldata) { struct nfs4_setclientid *sc = calldata; if (task->tk_status == 0) sc->sc_cred = get_rpccred(task->tk_rqstp->rq_cred); }
0
422,618
ews_backend_child_added (ECollectionBackend *backend, ESource *child_source) { ESource *collection_source; const gchar *extension_name; gboolean is_mail = FALSE; collection_source = e_backend_get_source (E_BACKEND (backend)); extension_name = E_SOURCE_EXTENSION_MAIL_ACCOUNT; is_mail |= ...
0
503,887
Http::Status ConnectionImpl::dispatch(Buffer::Instance& data) { // Add self to the Dispatcher's tracked object stack. ScopeTrackerScopeState scope(this, connection_.dispatcher()); ENVOY_CONN_LOG(trace, "parsing {} bytes", connection_, data.length()); // Make sure that dispatching_ is set to false after dispatch...
0
166,705
static char** Sys_ConcatenateFileLists( char **list0, char **list1 ) { int totalLength = 0; char** cat = NULL, **dst, **src; totalLength += Sys_CountFileList(list0); totalLength += Sys_CountFileList(list1); /* Create new list. */ dst = cat = Z_Malloc( ( totalLength + 1 ) * sizeof( char* ) ); /* Copy over list...
0
480,178
static void sortGlobResult(glob_t *result, size_t prefix_len, const char *dformat) { /* TODO */ }
0
12,103
PHP_METHOD(Phar, addFromString) { char *localname, *cont_str; size_t localname_len, cont_len; PHAR_ARCHIVE_OBJECT(); if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &localname, &localname_len, &cont_str, &cont_len) == FAILURE) { return; } phar_add_file(&(phar_obj->archiv...
1
62,334
xfs_da_grow_inode_int( struct xfs_da_args *args, xfs_fileoff_t *bno, int count) { struct xfs_trans *tp = args->trans; struct xfs_inode *dp = args->dp; int w = args->whichfork; xfs_drfsbno_t nblks = dp->i_d.di_nblocks; struct xfs_bmbt_irec map, *mapp; int nmap, error, got, i, mapi; /* * Find a spot ...
0
213,991
static int share_access_to_flags(u32 share_access) { return share_access == NFS4_SHARE_ACCESS_READ ? RD_STATE : WR_STATE; }
0
400,013
void launch_descriptor_downloads(int purpose, smartlist_t *downloadable, const routerstatus_t *source, time_t now) { const or_options_t *options = get_options(); const char *descname; const int fetch_microdesc = (purpose == DIR_PURPOSE_FETCH_MICRODESC); in...
0
104,609
MONGO_EXPORT void bson_iterator_code_scope( const bson_iterator *i, bson *scope ) { if ( bson_iterator_type( i ) == BSON_CODEWSCOPE ) { int code_len; bson_little_endian32( &code_len, bson_iterator_value( i )+4 ); bson_init_data( scope, ( void * )( bson_iterator_value( i )+8+code_len ) ); ...
0
338,387
int check_intra_pred8x8_mode_emuedge(int mode, int mb_x, int mb_y) { switch (mode) { case DC_PRED8x8: return check_dc_pred8x8_mode(mode, mb_x, mb_y); case VERT_PRED8x8: return !mb_y ? DC_127_PRED8x8 : mode; case HOR_PRED8x8: return !mb_x ? DC_129_PRED8x8 : mode; case...
1
334,047
rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t rtp_seq, int flags) { int seq = 1, res; AVIOContext pb; if (!rdt->rmctx) return AVERROR(EINVAL); if...
1
381,430
cmd_getattr (assuan_context_t ctx, char *line) { ctrl_t ctrl = assuan_get_pointer (ctx); int rc; const char *keyword; if ((rc = open_card (ctrl, NULL))) return rc; keyword = line; for (; *line && !spacep (line); line++) ; if (*line) *line++ = 0; /* (We ignore any garbage for now.) */ ...
0
379,531
static int ZEND_FASTCALL ZEND_SEND_VAR_SPEC_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); if ((opline->extended_value == ZEND_DO_FCALL_BY_NAME) && ARG_SHOULD_BE_SENT_BY_REF(EX(fbc), opline->op2.u.opline_num)) { return ZEND_SEND_REF_SPEC_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU); } ...
0
244,788
static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttr...
0
48,483
int update_dataps() { struct timeval tv; struct AP_info *ap_cur; struct NA_info *na_cur; int sec, usec, diff, ps; float pause; gettimeofday(&tv, NULL); ap_cur = G.ap_end; while( ap_cur != NULL ) { sec = (tv.tv_sec - ap_cur->tv.tv_sec); usec = (tv.tv_usec - ap_cur->...
0
290,269
int ff_h263_decode_mba ( MpegEncContext * s ) { int i , mb_pos ; for ( i = 0 ; i < 6 ; i ++ ) { if ( s -> mb_num - 1 <= ff_mba_max [ i ] ) break ; } mb_pos = get_bits ( & s -> gb , ff_mba_length [ i ] ) ; s -> mb_x = mb_pos % s -> mb_width ; s -> mb_y = mb_pos / s -> mb_width ; return mb_pos ; }
0
494,020
TinyGLTF() : bin_data_(nullptr), bin_size_(0), is_binary_(false) {}
0
138,266
netsnmp_init_mib_internals(void) { register struct tok *tp; register int b, i; int max_modc; if (tree_head) return; /* * Set up hash list of pre-defined tokens */ memset(buckets, 0, sizeof(buckets)); for (tp = tokens; tp->name; tp++) { tp->hash = na...
0
465,837
static void fuse_sb_defaults(struct super_block *sb) { sb->s_magic = FUSE_SUPER_MAGIC; sb->s_op = &fuse_super_operations; sb->s_xattr = fuse_xattr_handlers; sb->s_maxbytes = MAX_LFS_FILESIZE; sb->s_time_gran = 1; sb->s_export_op = &fuse_export_operations; sb->s_iflags |= SB_I_IMA_UNVERIFIABLE_SIGNATURE; if (sb-...
0
304,207
void _single_copy_from_wide( SQLCHAR *out, LPCWSTR in, int len ) { while ( len >= 0 ) { *out = *in; out++; in++; len --; } }
0
480,514
void DL_Dxf::addLayer(DL_CreationInterface* creationInterface) { // correct some invalid attributes for layers: attrib = creationInterface->getAttributes(); if (attrib.getColor()==256 || attrib.getColor()==0) { attrib.setColor(7); } if (attrib.getWidth()<0) { attrib.setWidth(1); ...
0
226,659
void GetLocalFileSizeOnBlockingPool(const FilePath& local_file, GDataFileError* error, int64* file_size) { DCHECK(error); DCHECK(file_size); *file_size = 0; *error = file_util::GetFileSize(local_file, file_size) ? GDATA_FILE_OK : ...
0
249,602
int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); // Removes gtest-specific args. CommandLine::Init(argc, argv); CommandLine* cmd_line = CommandLine::ForCurrentProcess(); DCHECK(cmd_line); CommandLine::SwitchMap switches = cmd_line->GetSwitches(); for (CommandLine::SwitchMap::const_...
0
302,569
**/ static const CImg<Tuchar>& flag_LUT256() { static CImg<Tuchar> colormap; cimg::mutex(8); if (!colormap) { colormap.assign(1,4,1,3,(T)0); colormap[0] = colormap[1] = colormap[5] = colormap[9] = colormap[10] = 255; colormap.resize(1,256,1,3,0,2); } cimg::m...
0
361,013
is_user_switch_enabled (GSWindow *window) { return window->priv->user_switch_enabled; }
0
263,735
static inline void write_gdt_entry(struct desc_struct *dt, int entry, void *desc, int type) { PVOP_VCALL4(cpu.write_gdt_entry, dt, entry, desc, type); }
0
27,746
static inline uint32_t vmsvga_fifo_read ( struct vmsvga_state_s * s ) { return le32_to_cpu ( vmsvga_fifo_read_raw ( s ) ) ; }
0
211,589
static int __gup_device_huge(unsigned long pfn, unsigned long addr, unsigned long end, struct page **pages, int *nr) { int nr_start = *nr; struct dev_pagemap *pgmap = NULL; do { struct page *page = pfn_to_page(pfn); pgmap = get_dev_pagemap(pfn, pgmap); if (unlikely(!pgmap)) { undo_dev_pagemap(nr, nr_sta...
0
371,297
uint8_t* ZRtp::getSasHash() { return sasHash; }
0
177,068
int equalizer_get_center_frequency(equalizer_context_t *context __unused, int32_t band) { ALOGV("%s: band: %d", __func__, band); return (equalizer_band_freq_range[band][0] + equalizer_band_freq_range[band][1]) / 2; }
0
16,884
static TRBCCode xhci_disable_ep ( XHCIState * xhci , unsigned int slotid , unsigned int epid ) { XHCISlot * slot ; XHCIEPContext * epctx ; trace_usb_xhci_ep_disable ( slotid , epid ) ; assert ( slotid >= 1 && slotid <= xhci -> numslots ) ; assert ( epid >= 1 && epid <= 31 ) ; slot = & xhci -> slots [ slotid - 1 ]...
0
510,728
bool ha_partition::setup_engine_array(MEM_ROOT *mem_root) { uint i; uchar *buff; handlerton **engine_array; DBUG_ASSERT(!m_file); DBUG_ENTER("ha_partition::setup_engine_array"); engine_array= (handlerton **) my_alloca(m_tot_parts * sizeof(handlerton*)); if (!engine_array) DBUG_RETURN(true); buff= ...
0
457,007
static int io_fadvise(struct io_kiocb *req, struct io_kiocb **nxt, bool force_nonblock) { struct io_fadvise *fa = &req->fadvise; int ret; if (force_nonblock) { switch (fa->advice) { case POSIX_FADV_NORMAL: case POSIX_FADV_RANDOM: case POSIX_FADV_SEQUENTIAL: break; default: return -EAGAIN; ...
0
403,718
PHP_FUNCTION( msgfmt_parse ) { char *source; size_t source_len; MSG_FORMAT_METHOD_INIT_VARS; /* Parse parameters. */ if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "Os", &object, MessageFormatter_ce_ptr, &source, &source_len ) == FAILURE ) { intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR, ...
0
148,496
PJ_DEF(int) pj_scan_stricmp( pj_scanner *scanner, const char *s, int len) { if (scanner->curptr + len > scanner->end) { pj_scan_syntax_err(scanner); return -1; } return pj_ansi_strnicmp(scanner->curptr, s, len); }
0
426,707
int main(int argc, char **argv) { const char *host = (argc > 1) ? argv[1] : ""; const char *port = (argc > 2) ? argv[2] : "amqp"; int err; broker_t b = {0}; b.proactor = pn_proactor(); queues_init(&b.queues); b.container_id = argv[0]; b.threads = 4; b.ssl_domain = pn_ssl_domain(PN_SSL_MODE_SERVER); ...
0
78,645
static void load_vmcs12_host_state(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) { struct kvm_segment seg; u32 entry_failure_code; if (vmcs12->vm_exit_controls & VM_EXIT_LOAD_IA32_EFER) vcpu->arch.efer = vmcs12->host_ia32_efer; else if (vmcs12->vm_exit_controls & VM_EXIT_HOST_ADDR_SPACE_SIZE) vcpu->arch...
0