idx
int64
func
string
target
int64
208,115
static int xemaclite_of_probe(struct platform_device *ofdev) { struct resource *res; struct net_device *ndev = NULL; struct net_local *lp = NULL; struct device *dev = &ofdev->dev; int rc = 0; dev_info(dev, "Device Tree Probing\n"); /* Create an ethernet device instance */ ndev = alloc_etherdev(sizeof(struct ...
1
462,433
lstnActivity(ptcplstn_t *pLstn) { int newSock = -1; prop_t *peerName; prop_t *peerIP; rsRetVal localRet; DEFiRet; DBGPRINTF("imptcp: new connection on listen socket %d\n", pLstn->sock); while(glbl.GetGlobalInputTermState() == 0) { localRet = AcceptConnReq(pLstn, &newSock, &peerName, &peerIP); if(localRet ==...
0
344,813
lowercase(char *s) { for (; *s; s++) *s = tolower((u_char)*s); }
0
234,717
int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, fmode_t flags, void *holder) { int ret; lockdep_assert_held(&uuid_mutex); /* * The device_list_mutex cannot be taken here in case opening the * underlying device takes further locks like open_mutex. * * We also don't need the lock here as ...
0
226,045
void mp4s_box_del(GF_Box *s) { GF_MPEGSampleEntryBox *ptr = (GF_MPEGSampleEntryBox *)s; if (ptr == NULL) return; gf_isom_sample_entry_predestroy((GF_SampleEntryBox *)s); if (ptr->slc) gf_odf_desc_del((GF_Descriptor *)ptr->slc); gf_free(ptr); }
0
212,144
MOBI_RET mobi_parse_huffdic(const MOBIData *m, MOBIHuffCdic *huffcdic) { MOBI_RET ret; const size_t offset = mobi_get_kf8offset(m); if (m->mh == NULL || m->mh->huff_rec_index == NULL || m->mh->huff_rec_count == NULL) { debug_print("%s", "HUFF/CDIC records metadata not found in MOBI header\n"); ...
1
310,301
dirserv_get_routerdesc_fingerprints(smartlist_t *fps_out, const char *key, const char **msg, int for_unencrypted_conn, int is_extrainfo) { int by_id = 1; *msg = NULL; if (!strcmp(key, "all")) { routerlist_t *rl = router_get_routerlist();...
0
236,139
GF_Box *gppc_box_new() { //default type is amr but overwritten by box constructor ISOM_DECL_BOX_ALLOC(GF_3GPPConfigBox, GF_ISOM_BOX_TYPE_DAMR); return (GF_Box *)tmp; }
0
242,648
GF_Err isoffin_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove) { const GF_PropertyValue *prop; ISOMReader *read = gf_filter_get_udta(filter); if (is_remove) { isoffin_disconnect(read); return GF_OK; } //check if we have a file path; if not, this is a pure stream of boxes (no local file ca...
0
413,648
R_API bool r_core_anal_bb_seek(RCore *core, ut64 addr) { ut64 bbaddr = r_anal_get_bbaddr (core->anal, addr); if (bbaddr != UT64_MAX) { r_core_seek (core, bbaddr, false); return true; } return false; }
0
219,960
int callback_glewlwyd_get_user_middleware_module (const struct _u_request * request, struct _u_response * response, void * user_middleware_data) { struct config_elements * config = (struct config_elements *)user_middleware_data; json_t * j_module; j_module = get_user_middleware_module(config, u_map_get(request...
0
462,279
PJ_DEF(pj_status_t) pj_stun_msg_add_string_attr(pj_pool_t *pool, pj_stun_msg *msg, int attr_type, const pj_str_t *value) { pj_stun_string_attr *attr = NULL; pj_status_t status; status = pj_stun_string_attr_create(pool, attr_type, value, &attr); if (status != PJ_SUCCESS) return...
0
197,142
void Compute(OpKernelContext* ctx) override { const Tensor& input = ctx->input(0); const Tensor& input_min_range = ctx->input(1); const Tensor& input_max_range = ctx->input(2); int num_slices = 1; if (axis_ > -1) { num_slices = input.dim_size(axis_); } const TensorShape& minmax_sha...
1
450,821
readdir_result_type (struct readdir_result d) { #if defined _DIRENT_HAVE_D_TYPE || defined HAVE_STRUCT_DIRENT_D_TYPE # define D_TYPE_TO_RESULT(source) (source)->d_type, return d.type; #else # define D_TYPE_TO_RESULT(source) return DT_UNKNOWN; #endif }
0
161,841
int64 ClientUsageTracker::GetCachedHostUsage(const std::string& host) { int64 ClientUsageTracker::GetCachedHostUsage(const std::string& host) const { HostUsageMap::const_iterator found = cached_usage_.find(host); if (found == cached_usage_.end()) return 0; int64 usage = 0; const UsageMap& map = found->s...
0
517,443
static void do_home_process(HttpResponse res) { char buf[STRLEN]; boolean_t on = true; boolean_t header = true; for (Service_T s = servicelist_conf; s; s = s->next_conf) { if (s->type != Service_Process) continue; if (header) ...
0
353,189
void SplashOutputDev::setSoftMask(GfxState *state, const double *bbox, bool alpha, Function *transferFunc, GfxColor *backdropColor) { SplashBitmap *softMask, *tBitmap; Splash *tSplash; SplashTransparencyGroup *transpGroup; SplashColor color; SplashColorPtr p; GfxGray gray; GfxRGB rgb; #ifdef S...
0
226,953
IRC_PROTOCOL_CALLBACK(whowas_nick_msg) { IRC_PROTOCOL_MIN_ARGS(5); weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer ( server, argv[3], command, "whowas", NULL), date, irc_protocol_tags (command, "irc_numeric", NULL, NULL), "%s%s[%s%s%s] %s%s", weech...
0
274,846
std::vector<bool> GetOutput() { return ExtractVector<bool>(output_); }
0
508,362
bool Alter_table_prelocking_strategy:: handle_view(THD *thd, Query_tables_list *prelocking_ctx, TABLE_LIST *table_list, bool *need_prelocking) { return FALSE; }
0
262,084
static void AddRangeStats(const int start_instance, const int end_instance, const int start_feature_dim, const int end_feature_dim, StatsPartitionMap* stats_map, const TTypes<float>::ConstMatrix& gradients, ...
0
300,814
int tipc_nl_sk_walk(struct sk_buff *skb, struct netlink_callback *cb, int (*skb_handler)(struct sk_buff *skb, struct netlink_callback *cb, struct tipc_sock *tsk)) { struct rhashtable_iter *iter = (void *)cb->args[4]; struct tipc_sock *tsk; int err; rhashtable_walk_start(iter); while ((...
0
482,505
getCharForDots(widechar d, const DisplayTableHeader *table) { CharDotsMapping *cdPtr; const TranslationTableOffset bucket = table->dotsToChar[_lou_charHash(d)]; TranslationTableOffset offset = bucket; while (offset) { cdPtr = (CharDotsMapping *)&table->ruleArea[offset]; if (cdPtr->lookFor == d) return cdPtr; ...
0
234,720
static void init_alloc_chunk_ctl(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl) { int index = btrfs_bg_flags_to_raid_index(ctl->type); ctl->sub_stripes = btrfs_raid_array[index].sub_stripes; ctl->dev_stripes = btrfs_raid_array[index].dev_stripes; ctl->devs_max = btrfs_raid_array[index].devs...
0
387,870
void JNIid::verify(Klass* holder) { int first_field_offset = InstanceMirrorKlass::offset_of_static_fields(); int end_field_offset; end_field_offset = first_field_offset + (InstanceKlass::cast(holder)->static_field_size() * wordSize); JNIid* current = this; while (current != NULL) { guarantee(current->ho...
0
500,641
int sftp_close(sftp_file file){ int err = SSH_NO_ERROR; SAFE_FREE(file->name); if (file->handle){ err = sftp_handle_close(file->sftp,file->handle); ssh_string_free(file->handle); } /* FIXME: check server response and implement errno */ SAFE_FREE(file); return err; }
0
101,660
bool WebProcessProxy::checkURLReceivedFromWebProcess(const String& urlString) { return checkURLReceivedFromWebProcess(KURL(KURL(), urlString)); }
0
487,619
void kernel_shutdown_prepare(enum system_states state) { blocking_notifier_call_chain(&reboot_notifier_list, (state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL); system_state = state; device_shutdown(); }
0
384,894
vim_strnsize(char_u *s, int len) { int size = 0; while (*s != NUL && --len >= 0) if (has_mbyte) { int l = (*mb_ptr2len)(s); size += ptr2cells(s); s += l; len -= l - 1; } else size += byte2cells(*s++); return size; }
0
512,893
Item_ref_null_helper(THD *thd, Name_resolution_context *context_arg, Item_in_subselect* master, Item **item, const char *table_name_arg, const LEX_CSTRING *field_name_arg): Item_ref(thd, context_arg, item, table_name_arg, field_name_arg), owner(master) {}
0
417,112
PlayerBase* PlayerGeneric::getPreferredPlayer(XModule* module) const { switch (getPreferredPlayerType(module)) { #ifndef MILKYTRACKER case PlayerBase::PlayerType_FAR: return new PlayerFAR(frequency); case PlayerBase::PlayerType_IT: return new PlayerIT(frequency); #endif case PlayerBase::PlayerType_Generic...
0
473,836
euctw_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
312,560
efmpat_to_regpat( char_u *efmpat, char_u *regpat, efm_T *efminfo, int idx, int round) { char_u *srcptr; if (efminfo->addr[idx]) { // Each errorformat pattern can occur only once semsg(_(e_too_many_chr_in_format_string), *efmpat); return NULL; } if ((idx && idx < FMT_PATTERN_R && vim_strch...
0
274,721
static double line_length(double x0, double y0, double x1, double y1) { double dx = x0 - x1; double dy = y0 - y1; return hypot(dx, dy); }
0
90,215
virtual bool ethernet_enabled() const { return enabled_devices_ & (1 << TYPE_ETHERNET); }
0
225,914
GF_Err tmax_box_read(GF_Box *s, GF_BitStream *bs) { GF_TMAXBox *ptr = (GF_TMAXBox *)s; ISOM_DECREASE_SIZE(ptr, 4) ptr->maxTime = gf_bs_read_u32(bs); return GF_OK; }
0
338,046
void WasmBinaryWriter::writeInlineBuffer(const char* data, size_t size) { o << U32LEB(size); writeData(data, size); }
0
236,117
GF_Err ftab_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 i; GF_FontTableBox *ptr = (GF_FontTableBox *)s; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_u16(bs, ptr->entry_count); for (i=0; i<ptr->entry_count; i++) { gf_bs_write_u16(bs, ptr->fonts[i].fontID); if (ptr->fonts[i].fon...
0
365,626
_asn1_check_identifier (asn1_node node) { asn1_node p, p2; char name2[ASN1_MAX_NAME_SIZE * 2 + 2]; if (node == NULL) return ASN1_ELEMENT_NOT_FOUND; p = node; while (p) { if (p->value && type_field (p->type) == ASN1_ETYPE_IDENTIFIER) { _asn1_str_cpy (name2, sizeof (name2), node->name); _...
0
229,276
std::unique_ptr<cql_server::response> cql_server::connection::make_ready(int16_t stream, const tracing::trace_state_ptr& tr_state) const { return std::make_unique<cql_server::response>(stream, cql_binary_opcode::READY, tr_state); }
0
203,902
get_one_sourceline(source_cookie_T *sp) { garray_T ga; int len; int c; char_u *buf; #ifdef USE_CRNL int has_cr; // CR-LF found #endif int have_read = FALSE; // use a growarray to store the sourced line ga_init2(&ga, 1, 250); // Loop until there is a finished line (or end...
1
264,668
static GF_Err BM_ParseMultipleIndexedReplace(GF_BifsDecoder *codec, GF_BitStream *bs, GF_List *com_list) { u32 ID, ind, field_ind, NumBits, lenpos, lennum, count; GF_Node *node; GF_Err e; GF_Command *com; GF_CommandField *inf; GF_FieldInfo field; ID = 1 + gf_bs_read_int(bs, codec->info->config.NodeIDBits); nod...
0
294,466
test_weeknum(int from, int to, int f, double sg) { int j; fprintf(stderr, "test_weeknum: %d...%d (%d) - %.0f\n", from, to, to - from, sg); for (j = from; j <= to; j++) { int y, w, d, rj, ns; c_jd_to_weeknum(j, f, sg, &y, &w, &d); c_weeknum_to_jd(y, w, d, f, sg, &rj, &ns); if (j != rj) { fpri...
0
484,769
static void xennet_destroy_queues(struct netfront_info *info) { unsigned int i; for (i = 0; i < info->netdev->real_num_tx_queues; i++) { struct netfront_queue *queue = &info->queues[i]; if (netif_running(info->netdev)) napi_disable(&queue->napi); netif_napi_del(&queue->napi); } kfree(info->queues); inf...
0
411,892
extrainfo_parse_entry_from_string(const char *s, const char *end, int cache_copy, struct digest_ri_map_t *routermap) { extrainfo_t *extrainfo = NULL; char digest[128]; smartlist_t *tokens = NULL; directory_token_t *tok; crypto_pk_env_t *key = NULL; routerinfo_t *router = NULL; m...
0
225,374
static int vidioc_s_ctrl(struct file *file, void *fh, struct v4l2_control *c) { struct v4l2_loopback_device *dev = v4l2loopback_getdevice(file); return v4l2loopback_set_ctrl(dev, c->id, c->value); }
0
244,238
GF_Err sidx_box_read(GF_Box *s,GF_BitStream *bs) { u32 i; GF_SegmentIndexBox *ptr = (GF_SegmentIndexBox*) s; ISOM_DECREASE_SIZE(ptr, 8); ptr->reference_ID = gf_bs_read_u32(bs); ptr->timescale = gf_bs_read_u32(bs); if (ptr->version==0) { ISOM_DECREASE_SIZE(ptr, 8); ptr->earliest_presentation_time = gf_bs_rea...
0
349,891
int hw_atl_utils_get_mac_permanent(struct aq_hw_s *self, u8 *mac) { u32 mac_addr[2]; u32 efuse_addr; int err = 0; u32 h = 0U; u32 l = 0U; if (!aq_hw_read_reg(self, HW_ATL_UCP_0X370_REG)) { unsigned int ucp_0x370 = 0; unsigned int rnd = 0; get_random_bytes(&rnd, sizeof(unsigned int)); ucp_0x370 =...
0
257,004
static int __init init_route4(void) { return register_tcf_proto_ops(&cls_route4_ops); }
0
242,665
static inline const gchar *format_param_str(tvbuff_t *tvb, int offset, int len) { char *param_str; param_str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, len, ENC_UTF_8|ENC_NA); if (len < 2) { return param_str; } return format_text_chr(wmem_packet_scope(), param_str, len - 1, ' '...
0
206,670
negotiate_handshake_newstyle_options (void) { GET_CONN; struct nbd_new_option new_option; size_t nr_options; bool list_seen = false; uint64_t version; uint32_t option; uint32_t optlen; struct nbd_export_name_option_reply handshake_finish; const char *optname; uint64_t exportsize; struct backend *b...
1
400,740
static void pipe_advance(struct iov_iter *i, size_t size) { struct pipe_inode_info *pipe = i->pipe; if (size) { struct pipe_buffer *buf; unsigned int p_mask = pipe->ring_size - 1; unsigned int i_head = i->head; size_t off = i->iov_offset, left = size; if (off) /* make it relative to the beginning of buffer...
0
517,447
static void print_service_rules_fsflags(HttpResponse res, Service_T s) { for (FsFlag_T l = s->fsflaglist; l; l = l->next) { StringBuffer_append(res->outputbuffer, "<tr class='rule'><td>Filesystem flags</td><td>"); Util_printRule(res->outputbuffer, l->action, "If changed"); ...
0
90,207
virtual bool cellular_enabled() const { return enabled_devices_ & (1 << TYPE_CELLULAR); }
0
437,725
static inline u16 ns_to_clock_divider(unsigned int ns) { return count_to_clock_divider( DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000)); }
0
356,685
template <class T> T* Statement::Bind(const Napi::CallbackInfo& info, int start, int last) { Napi::Env env = info.Env(); Napi::HandleScope scope(env); if (last < 0) last = info.Length(); Napi::Function callback; if (last > start && info[last - 1].IsFunction()) { callback = info[last - 1].As...
0
343,209
static unsigned int open_max(void) { long z; if ((z = (long) sysconf(_SC_OPEN_MAX)) < 0L) { perror("_SC_OPEN_MAX"); _EXIT(EXIT_FAILURE); } return (unsigned int) z; }
0
275,507
njs_vm_array_length(njs_vm_t *vm, njs_value_t *value, int64_t *length) { if (njs_fast_path(njs_is_array(value))) { *length = njs_array(value)->length; } return njs_object_length(vm, value, length); }
0
220,400
ary_subseq(mrb_state *mrb, struct RArray *a, mrb_int beg, mrb_int len) { struct RArray *b; if (!ARY_SHARED_P(a) && len <= ARY_SHIFT_SHARED_MIN) { return mrb_ary_new_from_values(mrb, len, ARY_PTR(a)+beg); } ary_make_shared(mrb, a); b = MRB_OBJ_ALLOC(mrb, MRB_TT_ARRAY, mrb->array_class); b->as.heap.ptr ...
0
473,922
gbk_mbc_to_code(const UChar* p, const UChar* end, OnigEncoding enc) { return onigenc_mbn_mbc_to_code(enc, p, end); }
0
196,629
void ComputeAsync(OpKernelContext* context, DoneCallback done) final { const Tensor& input = context->input(0); const Tensor& rhs = context->input(1); const int ndims = input.dims(); const int64 n = input.dim_size(ndims - 1); const int64 nrhs = rhs.dim_size(ndims - 1); // Validate inputs. ...
1
366,286
void __detach_mounts(struct dentry *dentry) { struct mountpoint *mp; struct mount *mnt; namespace_lock(); lock_mount_hash(); mp = lookup_mountpoint(dentry); if (!mp) goto out_unlock; event++; while (!hlist_empty(&mp->m_list)) { mnt = hlist_entry(mp->m_list.first, struct mount, mnt_mp_list); if (mnt->mnt...
0
341,818
zstring(i_ctx_t *i_ctx_p) { os_ptr op = osp; byte *sbody; uint size; check_type(*op, t_integer); if (op->value.intval < 0 ) return_error(gs_error_rangecheck); if (op->value.intval > max_string_size ) return_error(gs_error_limitcheck); /* to match Distiller */ size = op->valu...
0
432,726
static void draw_stroke_color_rgb( wmfAPI* API, const wmfRGB* rgb ) { PixelWand *stroke_color; stroke_color=NewPixelWand(); PixelSetRedQuantum(stroke_color,ScaleCharToQuantum(rgb->r)); PixelSetGreenQuantum(stroke_color,ScaleCharToQuantum(rgb->g)); PixelSetBlueQuantum(stroke_color,ScaleCharToQuantum(rgb->...
0
224,193
gen_values(codegen_scope *s, node *t, int val, int limit) { int n = 0; int first = 1; int slimit = GEN_VAL_STACK_MAX; if (limit == 0) limit = GEN_LIT_ARY_MAX; if (cursp() >= slimit) slimit = INT16_MAX; if (!val) { while (t) { codegen(s, t->car, NOVAL); n++; t = t->cdr; } retu...
0
236,162
void dlay_box_del(GF_Box *s) { gf_free(s); }
0
225,628
GF_Err pdin_box_size(GF_Box *s) { GF_ProgressiveDownloadBox *ptr = (GF_ProgressiveDownloadBox *)s; ptr->size += 8*ptr->count; return GF_OK;
0
512,447
bool pushable_cond_checker_for_subquery(uchar *arg) { return excl_dep_on_in_subq_left_part((Item_in_subselect *)arg); }
0
238,588
static int check_atomic(struct bpf_verifier_env *env, int insn_idx, struct bpf_insn *insn) { int load_reg; int err; switch (insn->imm) { case BPF_ADD: case BPF_ADD | BPF_FETCH: case BPF_AND: case BPF_AND | BPF_FETCH: case BPF_OR: case BPF_OR | BPF_FETCH: case BPF_XOR: case BPF_XOR | BPF_FETCH: case BPF_XCH...
0
359,295
DEFUN (neighbor_set_peer_group, neighbor_set_peer_group_cmd, NEIGHBOR_CMD "peer-group WORD", NEIGHBOR_STR NEIGHBOR_ADDR_STR "Member of the peer-group\n" "peer-group name\n") { int ret; as_t as; union sockunion su; struct bgp *bgp; struct peer_group *group; bgp = vt...
0
101,674
void WebProcessProxy::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::MessageDecoder& decoder) { if (m_messageReceiverMap.dispatchMessage(connection, messageID, decoder)) return; if (m_context->dispatchMessage(connection, messageID, decoder)) return; ...
0
462,259
static void* clone_uint64_attr(pj_pool_t *pool, const void *src) { pj_stun_uint64_attr *dst = PJ_POOL_ALLOC_T(pool, pj_stun_uint64_attr); pj_memcpy(dst, src, sizeof(pj_stun_uint64_attr)); return (void*)dst; }
0
355,631
check_can_index(typval_T *rettv, int evaluate, int verbose) { switch (rettv->v_type) { case VAR_FUNC: case VAR_PARTIAL: if (verbose) emsg(_(e_cannot_index_a_funcref)); return FAIL; case VAR_FLOAT: #ifdef FEAT_FLOAT if (verbose) emsg(_(e_using_float_as_string)); return FAIL; #endif ca...
0
310,016
reset_flush(void) { if (my_file != 0) fflush(my_file); }
0
317,024
static struct inode_security_struct *inode_security_rcu(struct inode *inode, bool rcu) { int error; error = __inode_security_revalidate(inode, NULL, !rcu); if (error) return ERR_PTR(error); return selinux_inode(inode); }
0
262,074
static void AddInstanceStatsToMap( const int32_t instance, const int32_t feature_dim, const int32_t bucket_id, const int32_t logits_dims, const int32_t stats_dims, StatsPartitionMap* stats_map, const TTypes<float>::ConstMatrix& gradients, const TTypes<float>::ConstMatrix& hessians, const TTypes<int3...
0
390,592
ProcXkbSetDebuggingFlags(ClientPtr client) { CARD32 newFlags,newCtrls,extraLength; xkbSetDebuggingFlagsReply rep; int rc; REQUEST(xkbSetDebuggingFlagsReq); REQUEST_AT_LEAST_SIZE(xkbSetDebuggingFlagsReq); rc = XaceHook(XACE_SERVER_ACCESS, client, DixDebugAccess); if (rc != Success) return rc; ...
0
400,767
static ssize_t iter_xarray_get_pages(struct iov_iter *i, struct page **pages, size_t maxsize, unsigned maxpages, size_t *_start_offset) { unsigned nr, offset; pgoff_t index, count; size_t size = maxsize, actual; loff_t pos; if (!size || !maxpages) return 0; pos = i->xarray_start + i->iov_off...
0
293,771
static ut64 r_ptr(ut8 *buf, RKernelCacheObj *obj) { ut64 decorated_addr = r_read_le64 (buf); return K_PPTR (decorated_addr); }
0
508,771
void free_cache(READ_RECORD *info) { if (info->cache) { my_free_lock(info->cache); info->cache=0; } }
0
484,791
static int xennet_create_page_pool(struct netfront_queue *queue) { int err; struct page_pool_params pp_params = { .order = 0, .flags = 0, .pool_size = NET_RX_RING_SIZE, .nid = NUMA_NO_NODE, .dev = &queue->info->netdev->dev, .offset = XDP_PACKET_HEADROOM, .max_len = XEN_PAGE_SIZE - XDP_PACKET_HEADROOM, ...
0
195,023
void Compute(OpKernelContext* context) override { const Tensor* input_indices; const Tensor* input_values; const Tensor* input_shape; SparseTensorsMap* map; OP_REQUIRES_OK(context, context->input("sparse_indices", &input_indices)); OP_REQUIRES_OK(context, context->input("sparse_values", &inpu...
1
314,751
cdf_print_property_name(char *buf, size_t bufsiz, uint32_t p) { size_t i; for (i = 0; i < __arraycount(vn); i++) if (vn[i].v == p) return snprintf(buf, bufsiz, "%s", vn[i].n); return snprintf(buf, bufsiz, "0x%x", p); }
0
372,872
static void irda_connect_confirm(void *instance, void *sap, struct qos_info *qos, __u32 max_sdu_size, __u8 max_header_size, struct sk_buff *skb) { struct irda_sock *self; struct sock *sk; self = instance; IRDA_DEBUG(2, "%s(%p)\n", __func__, self); sk = instance; if (sk == NULL) { dev_kfree_skb...
0
446,423
static void populate_cache_headers(RzDyldCache *cache) { cache->n_hdr = 0; RzList *hdrs = rz_list_newf(NULL); if (!hdrs) { return; } cache_hdr_t *h; ut64 offsets[MAX_N_HDR]; ut64 offset = 0; do { offsets[cache->n_hdr] = offset; h = read_cache_header(cache->buf, offset); if (!h) { break; } rz_lis...
0
473,929
is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED) { if (code < 256) return ENC_IS_ISO_8859_6_CTYPE(code, ctype); else return FALSE; }
0
236,194
void gpp_write_rgba(GF_BitStream *bs, u32 col) { gf_bs_write_u8(bs, (col>>16) & 0xFF); gf_bs_write_u8(bs, (col>>8) & 0xFF); gf_bs_write_u8(bs, (col) & 0xFF); gf_bs_write_u8(bs, (col>>24) & 0xFF); }
0
222,863
Status GraphProperties::AnnotateOutputShapes(GraphDef* output_graph_def) const { *output_graph_def = item_.graph; for (int i = 0; i < output_graph_def->node_size(); i++) { auto node = output_graph_def->mutable_node(i); AttrValue attr_output_shape; auto tensor_properties = GetOutputProperties(node->name(...
0
361,306
stl_which_vertices_to_change(stl_file *stl, stl_hash_edge *edge_a, stl_hash_edge *edge_b, int *facet1, int *vertex1, int *facet2, int *vertex2, stl_vertex *new_vertex1, stl_vertex *new_vertex2) { int v1a; /* pair 1, facet a */ ...
0
293,769
static int kexts_sort_vaddr_func(const void *a, const void *b) { RKext *A = (RKext *) a; RKext *B = (RKext *) b; int vaddr_compare = A->vaddr - B->vaddr; if (vaddr_compare == 0) { return A->text_range.size - B->text_range.size; } return vaddr_compare; }
0
432,158
auto buildProjectionForPushdown(const DepsTracker& deps, Pipeline* pipeline, bool allowExpressions) { auto&& sources = pipeline->getSources(); // Short-circuit if the pipeline is empty: there is no projection and nothing to push down. if (sour...
0
234,223
regname (unsigned int regno, int name_only_p) { static char reg[64]; const char *name = NULL; if (dwarf_regnames_lookup_func != NULL) name = dwarf_regnames_lookup_func (regno); if (name != NULL) { if (name_only_p) return name; snprintf (reg, sizeof (reg), "r%d (%s)", regno, name); } ...
0
383,373
gdImageBrushApply (gdImagePtr im, int x, int y) { int lx, ly; int hy, hx; int x1, y1, x2, y2; int srcx, srcy; if (!im->brush) { return; } hy = gdImageSY (im->brush) / 2; y1 = y - hy; y2 = y1 + gdImageSY (im->brush); hx = gdImageSX (im->brush) / 2; x1 = x - hx; x2 = x1 + gdImageSX (im->brush); srcy = 0;...
0
317,222
static int smack_inode_alloc_security(struct inode *inode) { struct smack_known *skp = smk_of_current(); init_inode_smack(inode, skp); return 0; }
0
294,528
d_lite_s_alloc_complex(VALUE klass) { return d_complex_new_internal(klass, INT2FIX(0), 0, 0, INT2FIX(0), 0, DEFAULT_SG, 0, 0, 0, 0, 0, 0, HAVE_JD | HAVE_DF); }
0
90,161
NetworkLibraryImpl() : network_manager_monitor_(NULL), data_plan_monitor_(NULL), ethernet_(NULL), wifi_(NULL), cellular_(NULL), available_devices_(0), enabled_devices_(0), connected_devices_(0), offline_mode_(false) { if (EnsureCrosLoaded()) { ...
0
417,115
const char* PlayerGeneric::getCurrentAudioDriverName() const { if (mixer) return mixer->getCurrentAudioDriverName(); return audioDriverName; }
0
513,289
test_if_cheaper_ordering(const JOIN_TAB *tab, ORDER *order, TABLE *table, key_map usable_keys, int ref_key, ha_rows select_limit_arg, int *new_key, int *new_key_direction, ha_rows *new_select_limit, uint *new_used_key_p...
0
246,647
static void naludmx_enqueue_or_dispatch(GF_NALUDmxCtx *ctx, GF_FilterPacket *n_pck, Bool flush_ref) { //TODO: we are dispatching frames in "negctts mode", ie we may have DTS>CTS //need to signal this for consumers using DTS (eg MPEG-2 TS) if (flush_ref && ctx->pck_queue && ctx->poc_diff) { u32 dts_inc=0; s32 las...
0
415,187
has_option (const char *line, const char *name) { const char *s; int n = strlen (name); s = strstr (line, name); return (s && (s == line || spacep (s-1)) && (!s[n] || spacep (s+n))); }
0