idx
int64
func
string
target
int64
359,214
BPF_CALL_3(bpf_ringbuf_reserve, struct bpf_map *, map, u64, size, u64, flags) { struct bpf_ringbuf_map *rb_map; if (unlikely(flags)) return 0; rb_map = container_of(map, struct bpf_ringbuf_map, map); return (unsigned long)__bpf_ringbuf_reserve(rb_map->rb, size); }
0
230,617
void derive_zero_motion_vector_candidates(const slice_segment_header* shdr, PBMotion* out_mergeCandList, int* inout_numCurrMergeCand, int maxCandidates) { logtrace(LogMotion,"derive_zero_motio...
0
197,824
static GF_Err BM_ParseGlobalQuantizer(GF_BifsDecoder *codec, GF_BitStream *bs, GF_List *com_list) { GF_Node *node; GF_Command *com; GF_CommandField *inf; node = gf_bifs_dec_node(codec, bs, NDT_SFWorldNode); if (!node) return GF_NON_COMPLIANT_BITSTREAM; /*reset global QP*/ if (codec->scenegraph->global_qp) { g...
1
199,159
static int snd_pcm_oss_sync(struct snd_pcm_oss_file *pcm_oss_file) { int err = 0; unsigned int saved_f_flags; struct snd_pcm_substream *substream; struct snd_pcm_runtime *runtime; snd_pcm_format_t format; unsigned long width; size_t size; substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK]; if (subst...
1
225,879
GF_Box *fdsa_box_new() { ISOM_DECL_BOX_ALLOC(GF_HintSample, GF_ISOM_BOX_TYPE_FDSA); if (!tmp) return NULL; tmp->packetTable = gf_list_new(); tmp->hint_subtype = GF_ISOM_BOX_TYPE_FDP_STSD; return (GF_Box*)tmp;
0
291,831
static void rtrs_clt_remove_path_from_arr(struct rtrs_clt_path *clt_path) { struct rtrs_clt_sess *clt = clt_path->clt; struct rtrs_clt_path *next; bool wait_for_grace = false; int cpu; mutex_lock(&clt->paths_mutex); list_del_rcu(&clt_path->s.entry); /* Make sure everybody observes path removal. */ synchronize...
0
437,703
static u64 ns_to_pulse_clocks(u32 ns) { u64 clocks; u32 rem; clocks = CX23888_IR_REFCLK_FREQ / 1000000 * (u64) ns; /* millicycles */ rem = do_div(clocks, 1000); /* /1000 = cycles */ if (rem >= 1000 / 2) clocks++; return clocks; }
0
231,062
BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) { BaseType_t xEntryTimeSet = pdFALSE; TimeOut_t xTimeOut; Queue_t * const pxQueue = xQueue; /* Check the pointer is not NULL. */ configASSERT...
0
231,534
getcwd_nothrow (char *buf, size_t size) { char *result; TRY_MSVC_INVAL { result = _getcwd (buf, size); } CATCH_MSVC_INVAL { result = NULL; errno = ERANGE; } DONE_MSVC_INVAL; return result; }
0
509,558
int ha_maria::extra_opt(enum ha_extra_function operation, ulong cache_size) { if ((specialflag & SPECIAL_SAFE_MODE) && operation == HA_EXTRA_WRITE_CACHE) return 0; return maria_extra(file, operation, (void*) &cache_size); }
0
301,380
static DIR *vfswrap_fdopendir(vfs_handle_struct *handle, files_struct *fsp, const char *mask, uint32 attr) { DIR *result; START_PROFILE(syscall_fdopendir); result = sys_fdopendir(fsp->fh->fd); END_PROFILE(syscall_fdopendir); return result; }
0
293,542
PJ_DEF(void) pj_cis_del_str( pj_cis_t *cis, const char *str) { while (*str) { PJ_CIS_CLR(cis, *str); ++str; } }
0
307,831
void ciEnv::cache_jvmti_state() { VM_ENTRY_MARK; // Get Jvmti capabilities under lock to get consistant values. MutexLocker mu(JvmtiThreadState_lock); _jvmti_can_hotswap_or_post_breakpoint = JvmtiExport::can_hotswap_or_post_breakpoint(); _jvmti_can_access_local_variables = JvmtiExport::can_access_local_va...
0
259,611
void HierarchicalBitmapRequester::Push8Lines(UBYTE c) { int cnt; ULONG y = m_pulY[c]; // for(cnt = 0;cnt < 8 && y < m_pulHeight[c];cnt++) { assert(m_ppEncodingMCU[cnt | (c << 3)]); m_pLargestScale->PushLine(m_ppEncodingMCU[cnt | (c << 3)],c); m_ppEncodingMCU[cnt | (c << 3)] = NULL; y++; } m...
0
383,372
gdImageColorExact (gdImagePtr im, int r, int g, int b) { return gdImageColorExactAlpha (im, r, g, b, gdAlphaOpaque); }
0
247,100
void *gf_filter_claim_opengl_provider(GF_Filter *filter) { return NULL; }
0
359,290
DEFUN (no_neighbor_strict_capability, no_neighbor_strict_capability_cmd, NO_NEIGHBOR_CMD "strict-capability-match", NO_STR NEIGHBOR_STR NEIGHBOR_ADDR_STR "Strict capability negotiation match\n") { return peer_flag_unset_vty (vty, argv[0], PEER_FLAG_STRICT_CAP_MATCH); }
0
219,966
int callback_glewlwyd_set_client_module (const struct _u_request * request, struct _u_response * response, void * client_data) { struct config_elements * config = (struct config_elements *)client_data; json_t * j_module, * j_module_valid, * j_search_module; j_search_module = get_client_module(config, u_map_get...
0
359,498
DEFUN (clear_ip_bgp_all_ipv4_soft_out, clear_ip_bgp_all_ipv4_soft_out_cmd, "clear ip bgp * ipv4 (unicast|multicast) soft out", CLEAR_STR IP_STR BGP_STR "Clear all peers\n" "Address family\n" "Address Family modifier\n" "Address Family modifier\n" "So...
0
259,714
static int validate_certificate_from_root(json_t * j_params, gnutls_x509_crt_t cert_leaf, cbor_item_t * x5c_array) { int ret = G_ERROR_NOT_FOUND, res; unsigned int result; gnutls_datum_t cert_dat = {NULL, 0}, issuer_dat = {NULL, 0}; gnutls_x509_trust_list_t tlist = NULL; gnutls_x509_crt_t cert_x509[cbor_array...
0
359,350
DEFUN (neighbor_passive, neighbor_passive_cmd, NEIGHBOR_CMD2 "passive", NEIGHBOR_STR NEIGHBOR_ADDR_STR2 "Don't send open messages to this neighbor\n") { return peer_flag_set_vty (vty, argv[0], PEER_FLAG_PASSIVE); }
0
222,902
bool HasAnyUnknownDimensions(const TensorShapeProto& proto) { if (proto.unknown_rank()) { return true; } for (const auto& dim : proto.dim()) { if (dim.size() < 0) { return true; } } return false; }
0
248,332
DLLIMPORT double cfg_opt_getnfloat(cfg_opt_t *opt, unsigned int index) { if (!opt || opt->type != CFGT_FLOAT) { errno = EINVAL; return 0; } if (opt->values && index < opt->nvalues) return opt->values[index]->fpnumber; if (opt->simple_value.fpnumber) return *opt->simple_value.fpnumber; return 0; }
0
294,615
d_lite_initialize(int argc, VALUE *argv, VALUE self) { VALUE jd, vjd, vdf, sf, vsf, vof, vsg; int df, of; double sg; rb_check_frozen(self); rb_scan_args(argc, argv, "05", &vjd, &vdf, &vsf, &vof, &vsg); jd = INT2FIX(0); df = 0; sf = INT2FIX(0); of = 0; sg = DEFAULT_SG; swi...
0
225,656
GF_Box *paen_box_new() { ISOM_DECL_BOX_ALLOC(FDPartitionEntryBox, GF_ISOM_BOX_TYPE_PAEN); return (GF_Box *)tmp;
0
387,615
static int __snd_ctl_elem_info(struct snd_card *card, struct snd_kcontrol *kctl, struct snd_ctl_elem_info *info, struct snd_ctl_file *ctl) { struct snd_kcontrol_volatile *vd; unsigned int index_offset; int result; #ifdef CONFIG_SND_DEBUG info->access = 0; #endif result = snd_power_re...
0
224,537
Status SparseReduceShapeFn(InferenceContext* c) { // Input 0: input_indices // Input 1: input_values // Input 2: input_shape // Input 3: reduction_axes // Attr: keep_dims bool keep_dims = false; TF_RETURN_IF_ERROR(c->GetAttr("keep_dims", &keep_dims)); const Tensor* shape_tensor = c->input_tensor(2); ...
0
430,426
static int set_action_to_attr(const struct nlattr *a, struct sk_buff *skb) { const struct nlattr *ovs_key = nla_data(a); int key_type = nla_type(ovs_key); struct nlattr *start; int err; switch (key_type) { case OVS_KEY_ATTR_TUNNEL_INFO: { struct ovs_tunnel_info *ovs_tun = nla_data(ovs_key); struct ip_tunnel_...
0
294,657
c_julian_to_yday(int y, int m, int d) { assert(m >= 1 && m <= 12); return yeartab[c_julian_leap_p(y) ? 1 : 0][m] + d; }
0
424,901
iwl_trans_pcie_dump_pointers(struct iwl_trans *trans, struct iwl_fw_error_dump_fw_mon *fw_mon_data) { u32 base, base_high, write_ptr, write_ptr_val, wrap_cnt; if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { base = DBGC_CUR_DBGBUF_BASE_ADDR_LSB; base_high = DBGC_CUR_DBGBUF_BASE_ADDR_MSB;...
0
463,183
HIDDEN int annotate_state_set_message(annotate_state_t *state, struct mailbox *mailbox, unsigned int uid) { return annotate_state_set_scope(state, NULL, mailbox, uid); }
0
247,167
static void gf_fs_print_not_connected_filters(GF_FilterSession *fsess, GF_List *filters_done, Bool ignore_sinks) { u32 i, count; Bool has_unconnected=GF_FALSE; count=gf_list_count(fsess->filters); for (i=0; i<count; i++) { GF_Filter *f = gf_list_get(fsess->filters, i); //only dump not connected ones if (f->nu...
0
245,712
static int read_request_line (struct conn_s *connptr) { ssize_t len; retry: len = readline (connptr->client_fd, &connptr->request_line); if (len <= 0) { log_message (LOG_ERR, "read_request_line: Client (file descriptor: %d) " ...
0
275,964
uECC_VLI_API int uECC_generate_random_int(uECC_word_t *random, const uECC_word_t *top, wordcount_t num_words) { uECC_word_t mask = (uECC_word_t)-1; uECC_word_t tries; bitcount_t num_bits = uECC_vli_numBits(top, num_words); ...
0
352,937
deliveryMethodValidate( Syntax *syntax, struct berval *val ) { #undef LENOF #define LENOF(s) (sizeof(s)-1) struct berval tmp = *val; /* * DeliveryMethod = pdm *( WSP DOLLAR WSP DeliveryMethod ) * pdm = "any" / "mhs" / "physical" / "telex" / "teletex" / * "g3fax" / "g4fax" / "ia5" / "videotex" / "telephone...
0
220,934
static void mpgviddmx_check_dur(GF_Filter *filter, GF_MPGVidDmxCtx *ctx) { FILE *stream; GF_BitStream *bs; GF_M4VParser *vparser; GF_M4VDecSpecInfo dsi; GF_Err e; u64 duration, cur_dur, rate; const GF_PropertyValue *p; if (!ctx->opid || ctx->timescale || ctx->file_loaded) return; if (ctx->index<=0) { ctx->...
0
389,671
check_for_list_or_dict_arg(typval_T *args, int idx) { if (args[idx].v_type != VAR_LIST && args[idx].v_type != VAR_DICT) { semsg(_(e_list_or_dict_required_for_argument_nr), idx + 1); return FAIL; } return OK; }
0
276,960
WriteAc4Header(AP4_ByteStream& output, unsigned int frame_size) { unsigned char bits[7]; bits[0] = 0xac; bits[1] = 0x40; bits[2] = 0xff; bits[3] = 0xff; bits[4] = (frame_size>>16)&0xFF; bits[5] = (frame_size>>8 )&0xFF; bits[6] = (frame_size )&0xFF; return outp...
0
373,529
ipf_addr_hash_add(uint32_t hash, const union ipf_addr *addr) { BUILD_ASSERT_DECL(sizeof *addr % 4 == 0); return hash_add_bytes32(hash, (const uint32_t *) addr, sizeof *addr); }
0
513,359
void optimize_wo_join_buffering(JOIN *join, uint first_tab, uint last_tab, table_map last_remaining_tables, bool first_alt, uint no_jbuf_before, double *outer_rec_count, double *reopt_cost) { double cost, rec_count; ta...
0
385,865
static int may_delete(struct inode *dir,struct dentry *victim,int isdir) { int error; if (!victim->d_inode) return -ENOENT; BUG_ON(victim->d_parent->d_inode != dir); audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE); error = inode_permission(dir, MAY_WRITE | MAY_EXEC); if (error) return error; if (I...
0
482,482
lou_getEmphClasses(const char *tableList) { const char *names[MAX_EMPH_CLASSES + 1]; unsigned int count = 0; const TranslationTableHeader *table = _lou_getTranslationTable(tableList); if (!table) return NULL; while (count < MAX_EMPH_CLASSES) { char const *name = table->emphClassNames[count]; if (!name) break;...
0
500,090
kssl_ctx_free(KSSL_CTX *kssl_ctx) { if (kssl_ctx == NULL) return kssl_ctx; if (kssl_ctx->key) OPENSSL_cleanse(kssl_ctx->key, kssl_ctx->length); if (kssl_ctx->key) kssl_free(kssl_ctx->key); if (kssl_ctx->client_princ) kssl_free(kssl_ctx->client_princ); if (kssl_ctx->service_host) kssl...
0
221,630
DynamicBroadcastInDimOpLowering::DynamicBroadcastInDimOpLowering( MLIRContext* ctx) : Base(ctx) {}
0
234,778
int btrfs_cancel_balance(struct btrfs_fs_info *fs_info) { mutex_lock(&fs_info->balance_mutex); if (!fs_info->balance_ctl) { mutex_unlock(&fs_info->balance_mutex); return -ENOTCONN; } /* * A paused balance with the item stored on disk can be resumed at * mount time if the mount is read-write. Otherwise it's...
0
442,790
convert_from_network(char *buffer, size_t length) { CURLcode rc; /* translate from the network encoding to the host encoding */ char *input_ptr, *output_ptr; size_t in_bytes, out_bytes; /* open an iconv conversion descriptor if necessary */ if(inbound_cd == (iconv_t)-1) { inbound_cd = iconv_open(CURL_...
0
484,050
START_TEST(SecureChannel_sendAsymmetricOPNMessage_SecurityModeSign) { // Configure our channel correctly for OPN messages and setup dummy message UA_OpenSecureChannelResponse dummyResponse; createDummyResponse(&dummyResponse); testChannel.securityMode = UA_MESSAGESECURITYMODE_SIGN; UA_StatusCode re...
0
195,328
char *gf_text_get_utf8_line(char *szLine, u32 lineSize, FILE *txt_in, s32 unicode_type) { u32 i, j, len; char *sOK; char szLineConv[1024]; unsigned short *sptr; memset(szLine, 0, sizeof(char)*lineSize); sOK = gf_fgets(szLine, lineSize, txt_in); if (!sOK) return NULL; if (unicode_type<=1) { j=0; len = (u32)...
1
442,826
static void help(void) { int i; static const char * const helptext[]={ "Usage: curl [options...] <url>", "Options: (H) means HTTP/HTTPS only, (F) means FTP only", " -a/--append Append to target file when uploading (F)", " -A/--user-agent <string> User-Agent to send to server (H)", " --...
0
301,482
sug_compare(const void *s1, const void *s2) { suggest_T *p1 = (suggest_T *)s1; suggest_T *p2 = (suggest_T *)s2; int n = p1->st_score - p2->st_score; if (n == 0) { n = p1->st_altscore - p2->st_altscore; if (n == 0) n = STRICMP(p1->st_word, p2->st_word); } return n; }
0
238,433
static int copy_func_state(struct bpf_func_state *dst, const struct bpf_func_state *src) { int err; memcpy(dst, src, offsetof(struct bpf_func_state, acquired_refs)); err = copy_reference_state(dst, src); if (err) return err; return copy_stack_state(dst, src); }
0
234,844
static int btrfs_free_stale_devices(const char *path, struct btrfs_device *skip_device) { struct btrfs_fs_devices *fs_devices, *tmp_fs_devices; struct btrfs_device *device, *tmp_device; int ret = 0; if (path) ret = -ENOENT; list_for_each_entry_safe(fs_devices, tmp_fs_devices, &fs_uuids, fs_list) { ...
0
274,860
TEST(ComparisonsTest, QuantizedInt8LessEqualWithBroadcast) { const float kMin = -127.f; const float kMax = 127.f; std::vector<std::vector<int>> test_shapes = { {6}, {2, 3}, {2, 1, 3}, {1, 3, 1, 2}}; for (int i = 0; i < test_shapes.size(); ++i) { ComparisonOpModel model({TensorType_INT8, test_shapes[i]...
0
442,572
static unsigned long __get_clean_virt(RedMemSlotInfo *info, QXLPHYSICAL addr) { return addr & info->memslot_clean_virt_mask; }
0
317,174
static void selinux_nf_ip_exit(void) { pr_debug("SELinux: Unregistering netfilter hooks\n"); unregister_pernet_subsys(&selinux_net_ops); }
0
261,447
static void read_cross_comp_pred(thread_context* tctx, int cIdxMinus1) { int log2_res_scale_abs_plus1 = decode_log2_res_scale_abs_plus1(tctx,cIdxMinus1); int ResScaleVal; if (log2_res_scale_abs_plus1 != 0) { int res_scale_sign_flag = decode_res_scale_sign_flag(tctx,cIdxMinus1); ResScaleVal = 1 << (log2_...
0
424,522
static PresentationContext* PresentationContext_new(VideoClientContext* video, BYTE PresentationId, UINT32 x, UINT32 y, UINT32 width, UINT32 height) { size_t s; VideoClientContextPriv* priv = video->priv; PresentationContext* ret; s = width * height * 4ULL; if (s...
0
310,083
drv_hwlabel(TERMINAL_CONTROL_BLOCK * TCB, int labnum, char *text) { SCREEN *sp = TCB->csp; AssertTCB(); if (labnum > 0 && labnum <= num_labels) { NCURSES_PUTP2("plab_norm", TPARM_2(plab_norm, labnum, text)); } }
0
389,743
check_for_blob_arg(typval_T *args, int idx) { if (args[idx].v_type != VAR_BLOB) { semsg(_(e_blob_required_for_argument_nr), idx + 1); return FAIL; } return OK; }
0
513,213
plugin_ref plugin_lock(THD *thd, plugin_ref ptr) { LEX *lex= thd ? thd->lex : 0; plugin_ref rc; DBUG_ENTER("plugin_lock"); #ifdef DBUG_OFF /* In optimized builds we don't do reference counting for built-in (plugin->plugin_dl == 0) plugins. Note that we access plugin->plugin_dl outside of LOCK_plug...
0
364,738
set_tagstack(win_T *wp, dict_T *d, int action) { dictitem_T *di; list_T *l = NULL; #ifdef FEAT_EVAL // not allowed to alter the tag stack entries from inside tagfunc if (tfu_in_use) { emsg(_(e_cannot_modify_tag_stack_within_tagfunc)); return FAIL; } #endif if ((di = dict_find(d, (char_u ...
0
308,174
static void fastrpc_dma_buf_detatch(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) { struct fastrpc_dma_buf_attachment *a = attachment->priv; struct fastrpc_buf *buffer = dmabuf->priv; mutex_lock(&buffer->lock); list_del(&a->node); mutex_unlock(&buffer->lock); sg_free_table(&a->sgt); kfr...
0
226,112
GF_Err stts_box_read(GF_Box *s, GF_BitStream *bs) { u32 i; GF_TimeToSampleBox *ptr = (GF_TimeToSampleBox *)s; #ifndef GPAC_DISABLE_ISOM_WRITE ptr->w_LastDTS = 0; #endif ISOM_DECREASE_SIZE(ptr, 4); ptr->nb_entries = gf_bs_read_u32(bs); if (ptr->size / 8 < ptr->nb_entries || (u64)ptr->nb_entries > (u64)SIZE_MAX/s...
0
224,535
Status MaxPoolV2Shape(shape_inference::InferenceContext* c, int num_inputs) { string data_format_str; TensorFormat data_format; Status s = c->GetAttr("data_format", &data_format_str); if (s.ok()) { FormatFromString(data_format_str, &data_format); } else { data_format = FORMAT_NHWC; } const int ra...
0
246,452
static inline RPVector *parse_vec(RBinWasmObj *bin, ut64 bound, ParseEntryFcn parse_entry, RPVectorFree free_entry) { RBuffer *buf = bin->buf; ut32 count; if (!consume_u32_r (buf, bound, &count)) { return NULL; } RPVector *vec = r_pvector_new (free_entry); if (vec) { r_pvector_reserve (vec, count); ut32 i...
0
252,320
static mz_bool mz_zip_writer_create_local_dir_header( mz_zip_archive *pZip, mz_uint8 *pDst, mz_uint16 filename_size, mz_uint16 extra_size, mz_uint64 uncomp_size, mz_uint64 comp_size, mz_uint32 uncomp_crc32, mz_uint16 method, mz_uint16 bit_flags, mz_uint16 dos_time, mz_uint16 dos_date) { (void)pZip; ...
0
220,807
int GetOutputSize(int max_seen, int max_length, int min_length) { return max_length > 0 ? max_length : std::max((max_seen + 1), min_length); }
0
200,287
static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen) { struct sock *sk = sock->sk; struct net *net = sock_net(sk); struct tipc_sock *tsk = tipc_sk(sk); struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name; long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT); struct list_head...
1
242,937
int mbedtls_ssl_read( mbedtls_ssl_context *ssl, unsigned char *buf, size_t len ) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; size_t n; if( ssl == NULL || ssl->conf == NULL ) return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA ); MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> read" ) ); #if defined(MBEDTLS_SSL_PRO...
0
242,642
void isor_reader_release_sample(ISOMChannel *ch) { if (ch->sample) ch->au_seq_num++; ch->sample = NULL; ch->sai_buffer_size = 0; }
0
246,462
static void wasm_custom_name_local_free(RBinWasmCustomNameLocalName *name) { if (name) { r_id_storage_free (name->names); R_FREE (name); } }
0
242,961
static int ssl_write_real( mbedtls_ssl_context *ssl, const unsigned char *buf, size_t len ) { int ret = mbedtls_ssl_get_max_out_record_payload( ssl ); const size_t max_len = (size_t) ret; if( ret < 0 ) { MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ssl_get_max_out_record_payloa...
0
247,574
void setExpectedServerStats(const std::string& expected_server_stats) { expected_server_stats_ = expected_server_stats; }
0
313,565
__acquires(rose_route_list_lock) { struct rose_route *rose_route; int i = 1; spin_lock_bh(&rose_route_list_lock); if (*pos == 0) return SEQ_START_TOKEN; for (rose_route = rose_route_list; rose_route && i < *pos; rose_route = rose_route->next, ++i); return (i == *pos) ? rose_route : NULL; }
0
195,274
bool ConstantFolding::MulConvPushDown(GraphDef* optimized_graph, NodeDef* node, const GraphProperties& properties) { // Push down multiplication on ConvND. // * ConvND // / \ / \ // ...
1
252,307
static void swap2(unsigned short *val) { #ifdef MINIZ_LITTLE_ENDIAN (void)val; #else unsigned short tmp = *val; unsigned char *dst = reinterpret_cast<unsigned char *>(val); unsigned char *src = reinterpret_cast<unsigned char *>(&tmp); dst[0] = src[1]; dst[1] = src[0]; #endif }
0
387,578
static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, struct snd_ctl_tlv __user *buf, int op_flag) { struct snd_ctl_tlv header; unsigned int __user *container; unsigned int container_size; struct snd_kcontrol *kctl; struct snd_ctl_elem_id id; struct snd_kcontrol_volatile *vd...
0
313,848
clear_showcmd(void) { if (!p_sc) return; if (VIsual_active && !char_avail()) { int cursor_bot = LT_POS(VIsual, curwin->w_cursor); long lines; colnr_T leftcol, rightcol; linenr_T top, bot; // Show the size of the Visual area. if (cursor_bot) { top = VIsual.lnum; bot = curwin->w_cursor....
0
309,880
init_color(NCURSES_COLOR_T color, NCURSES_COLOR_T r, NCURSES_COLOR_T g, NCURSES_COLOR_T b) { return NCURSES_SP_NAME(init_color) (CURRENT_SCREEN, color, r, g, b); }
0
276,899
static int do_i2c(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { struct cmd_tbl *c; #ifdef CONFIG_NEEDS_MANUAL_RELOC i2c_reloc(); #endif if (argc < 2) return CMD_RET_USAGE; /* Strip off leading 'i2c' command argument */ argc--; argv++; c = find_cmd_tbl(argv[0], &cmd_i2c_sub[0], ARRAY_SIZE...
0
505,656
static int smtp_command_parse_identifier(struct smtp_command_parser *parser) { const unsigned char *p; /* The commands themselves are alphabetic characters. */ p = parser->cur + parser->state.poff; i_assert(p <= parser->end); while (p < parser->end && i_isalpha(*p)) p++; if ((p - parser->cur) > SMTP_COMMAND_...
0
224,219
R_API int r_io_bank_write_to_submap_at(RIO *io, const ut32 bankid, ut64 addr, const ut8 *buf, int len) { RIOBank *bank = r_io_bank_get (io, bankid); r_return_val_if_fail (io && bank, -1); if (!len) { return 0; } RRBNode *node; if (bank->last_used && r_io_submap_contain (((RIOSubMap *)bank->last_used->data), add...
0
310,137
decode_xterm_SGR1006(SCREEN *sp, MEVENT * eventp) { SGR_DATA data; bool result = FALSE; if (read_SGR(sp, &data)) { int b = data.params[0]; int b3 = 1 + (b & 3); int wheel = ((b & 64) == 64); if (b >= 132) { b3 = MAX_BUTTONS + 1; } else if (b >= 128) { b3 = (b - 120); /* buttons 8-11 */ } el...
0
90,150
virtual bool GetWifiAccessPoints(WifiAccessPointVector* result) { return false; }
0
474,094
utf16le_mbc_enc_len(const UChar* p, const OnigUChar* e, OnigEncoding enc ARG_UNUSED) { int len = (int)(e - p); UChar byte; if (len < 2) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(1); byte = p[1]; if (!UTF16_IS_SURROGATE(byte)) { return ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(2); } if (UTF16_IS_SURR...
0
427,214
static void forstat (LexState *ls, int line) { /* forstat -> FOR (fornum | forlist) END */ FuncState *fs = ls->fs; TString *varname; BlockCnt bl; enterblock(fs, &bl, 1); /* scope for loop and control variables */ luaX_next(ls); /* skip 'for' */ varname = str_checkname(ls); /* first variable name */ s...
0
465,847
static int nfcmrvl_nci_fw_download(struct nci_dev *ndev, const char *firmware_name) { return nfcmrvl_fw_dnld_start(ndev, firmware_name); }
0
389,693
typval_tostring(typval_T *arg, int quotes) { char_u *tofree; char_u numbuf[NUMBUFLEN]; char_u *ret = NULL; if (arg == NULL) return vim_strsave((char_u *)"(does not exist)"); if (!quotes && arg->v_type == VAR_STRING) { ret = vim_strsave(arg->vval.v_string == NULL ? (char_u *)"" : arg->...
0
353,150
void SplashOutputDev::updateStrokeOverprint(GfxState *state) { splash->setStrokeOverprint(state->getStrokeOverprint()); }
0
332,396
skip_comment( char_u *line, int process, int include_space, int *is_comment) { char_u *comment_flags = NULL; int lead_len; int leader_offset = get_last_leader_offset(line, &comment_flags); *is_comment = FALSE; if (leader_offset != -1) { // Let's check whe...
0
317,191
static __init void init_smack_known_list(void) { /* * Initialize rule list locks */ mutex_init(&smack_known_huh.smk_rules_lock); mutex_init(&smack_known_hat.smk_rules_lock); mutex_init(&smack_known_floor.smk_rules_lock); mutex_init(&smack_known_star.smk_rules_lock); mutex_init(&smack_known_web.smk_rules_lock)...
0
294,427
date_s_commercial(int argc, VALUE *argv, VALUE klass) { VALUE vy, vw, vd, vsg, y, fr, fr2, ret; int w, d; double sg; rb_scan_args(argc, argv, "04", &vy, &vw, &vd, &vsg); y = INT2FIX(-4712); w = 1; d = 1; fr2 = INT2FIX(0); sg = DEFAULT_SG; switch (argc) { case 4: val2sg(...
0
331,792
Q_GUI_EXPORT QPainterPath qt_painterPathFromVectorPath(const QVectorPath &path) { const qreal *points = path.points(); const QPainterPath::ElementType *types = path.elements(); QPainterPath p; if (types) { int id = 0; for (int i=0; i<path.elementCount(); ++i) { switch(types[...
0
256,155
TensorInfoCache() : lock(), entries() {}
0
255,937
Status ShapeRefiner::AddNodeInternal( const Node* node, shape_inference::InferenceContext* outer_context) { // Create the inference context for this node with the existing input shapes. std::unique_ptr<InferenceContext> ic(new InferenceContext( graph_def_version_, node->def(), node->op_def(), std::v...
0
328,844
R_API void r_bin_java_print_float_cp_summary(RBinJavaCPTypeObj *obj) { ut8 *b = NULL; if (!obj) { eprintf ("Attempting to print an invalid RBinJavaCPTypeObj* Double.\n"); return; } b = obj->info.cp_float.bytes.raw; printf ("Float ConstantPool Type (%d) ", obj->metas->ord); printf (" Offset: 0x%08"PFMT64x ""...
0
225,030
PQfreeCancel(PGcancel *cancel) { if (cancel) free(cancel); }
0
281,058
int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) { const struct xfrm_policy *p; struct xfrm_policy *np; int i, ret = 0; rcu_read_lock(); for (i = 0; i < 2; i++) { p = rcu_dereference(osk->sk_policy[i]); if (p) { np = clone_policy(p, i); if (unlikely(!np)) { ret = -ENOMEM; brea...
0
259,233
static int mov_read_glbl(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; int ret; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; if ((uint64_t)atom.size > (1<<30)) return AVERROR_INVALIDDATA; if (atom.size >= 10) { // Broke...
0
512,321
longlong Item_func_like::val_int() { DBUG_ASSERT(fixed == 1); DBUG_ASSERT(escape != ESCAPE_NOT_INITIALIZED); String* res= args[0]->val_str(&cmp_value1); if (args[0]->null_value) { null_value=1; return 0; } String* res2= args[1]->val_str(&cmp_value2); if (args[1]->null_value) { null_value=1...
0