idx int64 | func string | target int64 |
|---|---|---|
261,920 | njs_string_match_multiple(njs_vm_t *vm, njs_value_t *args,
njs_regexp_pattern_t *pattern)
{
size_t c0, c1;
int32_t size, length;
njs_int_t ret;
njs_utf8_t utf8;
njs_array_t *array;
const u_char *p, *start, *end;
njs_regexp_utf8_t type... | 0 |
272,344 | generate_spc_string(cms_context *cms, SECItem *ssp, char *str, int len)
{
SpcString ss;
memset(&ss, '\0', sizeof (ss));
SECITEM_AllocItem(cms->arena, &ss.unicode, len);
if (len != 0) {
if (!ss.unicode.data)
cnreterr(-1, cms, "could not allocate memory");
memcpy(ss.unicode.data, str, len);
}
ss.unicode.ty... | 0 |
313,830 | nv_exmode(cmdarg_T *cap)
{
// Ignore 'Q' in Visual mode, just give a beep.
if (VIsual_active)
vim_beep(BO_EX);
else if (!checkclearop(cap->oap))
do_exmode(FALSE);
} | 0 |
261,944 | njs_decode_hex_length(const njs_str_t *src, size_t *out_size)
{
if (out_size != NULL) {
*out_size = src->length / 2;
}
return 0;
} | 0 |
273,877 | static void handle_NOOP(ctrl_t *ctrl, char *arg)
{
send_msg(ctrl->sd, "200 NOOP OK.\r\n");
} | 0 |
274,661 | callbacks_zoom_in_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
render_zoom_display (ZOOM_IN, 0, 0, 0);
} | 0 |
427,228 | static void mainfunc (LexState *ls, FuncState *fs) {
BlockCnt bl;
Upvaldesc *env;
open_func(ls, fs, &bl);
setvararg(fs, 0); /* main function is always declared vararg */
env = allocupvalue(fs); /* ...set environment upvalue */
env->instack = 1;
env->idx = 0;
env->kind = VDKREG;
env->name = ls->envn;... | 0 |
238,785 | save_re_pat(int idx, char_u *pat, int magic)
{
if (spats[idx].pat != pat)
{
vim_free(spats[idx].pat);
spats[idx].pat = vim_strsave(pat);
spats[idx].magic = magic;
spats[idx].no_scs = no_smartcase;
last_idx = idx;
#ifdef FEAT_SEARCH_EXTRA
// If 'hlsearch' set and search pat changed: need redraw.
if (p_hls... | 0 |
225,649 | GF_Err mdia_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem)
{
GF_MediaBox *ptr = (GF_MediaBox *)s;
switch(a->type) {
case GF_ISOM_BOX_TYPE_MDHD:
BOX_FIELD_ASSIGN(mediaHeader, GF_MediaHeaderBox)
return GF_OK;
case GF_ISOM_BOX_TYPE_HDLR:
BOX_FIELD_ASSIGN(handler, GF_HandlerBox)
return GF_OK;
case GF_ISOM_B... | 0 |
482,540 | findRuleName(const CharsString *name, const TranslationTableHeader *table) {
const RuleName *ruleName = table->ruleNames;
while (ruleName) {
if ((name->length == ruleName->length) &&
(memcmp(&name->chars[0], ruleName->name, CHARSIZE * name->length) == 0))
return ruleName->ruleOffset;
ruleName = ruleName->n... | 0 |
436,144 | static struct io_kiocb *io_alloc_req(struct io_ring_ctx *ctx)
{
struct io_submit_state *state = &ctx->submit_state;
BUILD_BUG_ON(ARRAY_SIZE(state->reqs) < IO_REQ_ALLOC_BATCH);
if (!state->free_reqs) {
gfp_t gfp = GFP_KERNEL | __GFP_NOWARN;
int ret, i;
if (io_flush_cached_reqs(ctx))
goto got_req;
ret =... | 0 |
489,149 | static sctp_disposition_t sctp_sf_violation_chunk(
const struct sctp_endpoint *ep,
const struct sctp_association *asoc,
const sctp_subtype_t type,
void *arg,
sctp_cmd_seq_t *commands)
{
static const char err_str[]="The following chunk violates protocol:";
if (!asoc)
ret... | 0 |
225,680 | void dmed_box_del(GF_Box *s)
{
gf_free((GF_DMEDBox *)s);
} | 0 |
294,387 | datetime_s_commercial(int argc, VALUE *argv, VALUE klass)
{
VALUE vy, vw, vd, vh, vmin, vs, vof, vsg, y, fr, fr2, ret;
int w, d, h, min, s, rof;
double sg;
rb_scan_args(argc, argv, "08", &vy, &vw, &vd, &vh, &vmin, &vs, &vof, &vsg);
y = INT2FIX(-4712);
w = 1;
d = 1;
h = min = s = 0;
... | 0 |
259,215 | static int mov_read_stsz(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
unsigned int i, entries, sample_size, field_size, num_bytes;
GetBitContext gb;
unsigned char* buf;
int ret;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc... | 0 |
369,957 | static struct dentry *proc_map_files_lookup(struct inode *dir,
struct dentry *dentry, struct nameidata *nd)
{
unsigned long vm_start, vm_end;
struct vm_area_struct *vma;
struct task_struct *task;
struct dentry *result;
struct mm_struct *mm;
result = ERR_PTR(-EACCES);
if (!capable(CAP_SYS_ADMIN))
goto out;
... | 0 |
226,438 | Status GetNextInternal(IteratorContext* ctx,
std::vector<Tensor>* out_tensors,
bool* end_of_sequence) override {
mutex_lock l(mu_);
if (i_ == num_elements_) {
*end_of_sequence = true;
return Status::OK();
}
out_tensors->c... | 0 |
359,211 | static size_t bpf_ringbuf_rec_pg_off(struct bpf_ringbuf *rb,
struct bpf_ringbuf_hdr *hdr)
{
return ((void *)hdr - (void *)rb) >> PAGE_SHIFT;
} | 0 |
369,901 | static int tid_fd_revalidate(struct dentry *dentry, struct nameidata *nd)
{
struct inode *inode;
struct task_struct *task;
int fd;
struct files_struct *files;
const struct cred *cred;
if (nd && nd->flags & LOOKUP_RCU)
return -ECHILD;
inode = dentry->d_inode;
task = get_proc_task(inode);
fd = proc_fd(inode)... | 0 |
261,438 | static int decode_significant_coeff_flag(thread_context* tctx,
int xC,int yC,
const uint8_t* coded_sub_block_flag,
int sbWidth,
int cIdx,
int scanIdx)
{
logtrace(LogSlice,"# significant_coeff_flag (xC:%d yC:%d sbWidth:%d cIdx:%d scanIdx:%d)\n",
xC,yC,sbWidth,cIdx,scanIdx);
... | 0 |
218,826 | static void XSetMatteColor(Display *display,const XWindowInfo *window_info,
const MagickStatusType raised)
{
if (window_info->depth == 1)
{
/*
Monochrome window.
*/
if (raised)
(void) XSetForeground(display,window_info->widget_context,
XWhitePixel(display,window_info-... | 0 |
204,138 | static void write_response(ESPState *s)
{
uint32_t n;
trace_esp_write_response(s->status);
fifo8_reset(&s->fifo);
esp_fifo_push(s, s->status);
esp_fifo_push(s, 0);
if (s->dma) {
if (s->dma_memory_write) {
s->dma_memory_write(s->dma_opaque,
(... | 1 |
405,384 | static struct xfrm_policy *xfrm_migrate_policy_find(const struct xfrm_selector *sel,
u8 dir, u8 type, struct net *net, u32 if_id)
{
struct xfrm_policy *pol, *ret = NULL;
struct hlist_head *chain;
u32 priority = ~0U;
spin_lock_bh(&net->xfrm.xfrm_policy_lock);
chain = policy_hash_direct(net, &sel->daddr, ... | 0 |
313,865 | nv_ident(cmdarg_T *cap)
{
char_u *ptr = NULL;
char_u *buf;
unsigned buflen;
char_u *newbuf;
char_u *p;
char_u *kp; // value of 'keywordprg'
int kp_help; // 'keywordprg' is ":he"
int kp_ex; // 'keywordprg' starts with ":"
int n = 0; // init for GCC
int cmdchar;
int g_c... | 0 |
299,895 | read_named_list(tree_node **anchorp, int *numberp, int max, uschar *s,
uschar *tname)
{
BOOL forcecache = FALSE;
uschar *ss;
tree_node *t;
namedlist_block *nb = store_get(sizeof(namedlist_block));
if (Ustrncmp(s, "_cache", 6) == 0)
{
forcecache = TRUE;
s += 6;
}
if (!isspace(*s))
log_write(0, LOG_PANIC_DI... | 0 |
473,933 | onigenc_mbn_is_mbc_ambiguous(OnigEncoding enc, OnigCaseFoldType flag,
const UChar** pp ARG_UNUSED, const UChar* end ARG_UNUSED)
{
const UChar* p = *pp;
if (ONIGENC_IS_MBC_ASCII(p)) {
(*pp)++;
return ONIGENC_IS_ASCII_CODE_CASE_AMBIG(*p);
}
(*pp) += enclen(enc, p);
return ... | 0 |
436,111 | static bool io_flush_cached_reqs(struct io_ring_ctx *ctx)
{
struct io_submit_state *state = &ctx->submit_state;
struct io_comp_state *cs = &state->comp;
int nr;
/*
* If we have more than a batch's worth of requests in our IRQ side
* locked cache, grab the lock and move them over to our submission
* side cach... | 0 |
393,481 | static SQInteger base_seterrorhandler(HSQUIRRELVM v)
{
sq_seterrorhandler(v);
return 0;
} | 0 |
226,142 | void rely_box_del(GF_Box *s)
{
GF_RelyHintBox *rely = (GF_RelyHintBox *)s;
gf_free(rely);
} | 0 |
261,431 | static int decode_merge_idx(thread_context* tctx)
{
logtrace(LogSlice,"# merge_idx\n");
if (tctx->shdr->MaxNumMergeCand <= 1) {
logtrace(LogSymbols,"$1 merge_idx=%d\n",0);
return 0;
}
// TU coding, first bin is CABAC, remaining are bypass.
// cMax = MaxNumMergeCand-1
int idx = decode_CABAC_bit(&t... | 0 |
321,739 | static long aspeed_lpc_ctrl_ioctl(struct file *file, unsigned int cmd,
unsigned long param)
{
struct aspeed_lpc_ctrl *lpc_ctrl = file_aspeed_lpc_ctrl(file);
struct device *dev = file->private_data;
void __user *p = (void __user *)param;
struct aspeed_lpc_ctrl_mapping map;
u32 addr;
u32 size;
long rc;
if (cop... | 0 |
313,742 | check_visual_highlight(void)
{
static int did_check = FALSE;
if (full_screen)
{
if (!did_check && HL_ATTR(HLF_V) == 0)
msg(_("Warning: terminal cannot highlight"));
did_check = TRUE;
}
} | 0 |
417,054 | PeakAutoAdjustFilter() :
mixerShift(0),
masterVolume(256),
lastPeakValue(0)
{
} | 0 |
253,619 | smb2_copychunk_range(const unsigned int xid,
struct cifsFileInfo *srcfile,
struct cifsFileInfo *trgtfile, u64 src_off,
u64 len, u64 dest_off)
{
int rc;
unsigned int ret_data_len;
struct copychunk_ioctl *pcchunk;
struct copychunk_ioctl_rsp *retbuf = NULL;
struct cifs_tcon *tcon;
int chunks_copied = 0;
bo... | 0 |
205,630 | static int io_rw_init_file(struct io_kiocb *req, fmode_t mode)
{
struct kiocb *kiocb = &req->rw.kiocb;
struct io_ring_ctx *ctx = req->ctx;
struct file *file = req->file;
int ret;
if (unlikely(!file || !(file->f_mode & mode)))
return -EBADF;
if (!io_req_ffs_set(req))
req->flags |= io_file_get_flags(file) << ... | 1 |
486,790 | static inline uint64_t rx_desc_get_buffer(CadenceGEMState *s, uint32_t *desc)
{
uint64_t ret = desc[0] & ~0x3UL;
if (s->regs[GEM_DMACFG] & GEM_DMACFG_ADDR_64B) {
ret |= (uint64_t)desc[2] << 32;
}
return ret;
} | 0 |
343,320 | static int checkvalidaddr(const struct sockaddr_storage * const addr)
{
if (addr == NULL) {
return 0;
}
/* Some versions of MacOS X have broken IN* macros */
#ifdef __APPLE_CC__
return 1;
#endif
if (STORAGE_FAMILY(*addr) == AF_INET6) {
if (IN6_IS_ADDR_MULTICAST(&STORAGE_SIN_ADDR6_NF_... | 0 |
440,872 | LogFilePrep(const char *fname, const char *backup, const char *idstring)
{
char *logFileName = NULL;
/* the format string below is controlled by the user,
this code should never be called with elevated privileges */
if (asprintf(&logFileName, fname, idstring) == -1)
FatalError("Cannot alloca... | 0 |
310,302 | dirserv_get_routerdescs(smartlist_t *descs_out, const char *key,
const char **msg)
{
*msg = NULL;
if (!strcmp(key, "/tor/server/all")) {
routerlist_t *rl = router_get_routerlist();
SMARTLIST_FOREACH(rl->routers, routerinfo_t *, r,
smartlist_add(descs_out, &(r->... | 0 |
301,370 | static int vfswrap_rename(vfs_handle_struct *handle,
const struct smb_filename *smb_fname_src,
const struct smb_filename *smb_fname_dst)
{
int result = -1;
START_PROFILE(syscall_rename);
if (smb_fname_src->stream_name || smb_fname_dst->stream_name) {
errno = ENOENT;
goto out;
}
result = rename(smb... | 0 |
238,487 | static inline u32 vlog_alignment(u32 pos)
{
return round_up(max(pos + BPF_LOG_MIN_ALIGNMENT / 2, BPF_LOG_ALIGNMENT),
BPF_LOG_MIN_ALIGNMENT) - pos - 1;
} | 0 |
281,106 | static struct xfrm_dst *xfrm_create_dummy_bundle(struct net *net,
struct xfrm_flo *xflo,
const struct flowi *fl,
int num_xfrms,
u16 family)
{
int err;
struct net_device *dev;
struct dst_entry *dst;
struct dst_entry *dst1;
struct xfrm_dst *xdst;
xdst = xfrm_alloc_dst(net, family);
if ... | 0 |
398,532 | RZ_API const char *rz_bin_dwarf_get_attr_name(ut64 attr_code) {
if (attr_code < RZ_ARRAY_SIZE(dwarf_attr_encodings)) {
return dwarf_attr_encodings[attr_code];
}
// the below codes are much sparser, so putting them in an array would require a lot of
// unused memory
switch (attr_code) {
case DW_AT_lo_user:
ret... | 0 |
387,582 | int snd_ctl_enum_info(struct snd_ctl_elem_info *info, unsigned int channels,
unsigned int items, const char *const names[])
{
info->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
info->count = channels;
info->value.enumerated.items = items;
if (!items)
return 0;
if (info->value.enumerated.item >= items)
info->... | 0 |
270,364 | static bool ok_png_read_header(ok_png_decoder *decoder, uint32_t chunk_length) {
ok_png *png = decoder->png;
if (chunk_length != 13) {
ok_png_error(png, OK_PNG_ERROR_INVALID, "Invalid IHDR chunk length");
return false;
}
uint8_t chunk_data[13];
if (!ok_read(decoder, chunk_data, sizeo... | 0 |
277,493 | MOBI_RET mobi_parse_indx(const MOBIPdbRecord *indx_record, MOBIIndx *indx, MOBITagx *tagx, MOBIOrdt *ordt) {
if (indx_record == NULL || indx == NULL || tagx == NULL || ordt == NULL) {
debug_print("%s", "index structure not initialized\n");
return MOBI_INIT_FAILED;
}
MOBI_RET ret = MOBI_SUCCE... | 0 |
234,132 | fetch_indirect_string (dwarf_vma offset)
{
struct dwarf_section *section = &debug_displays [str].section;
const unsigned char * ret;
if (section->start == NULL)
return (const unsigned char *) _("<no .debug_str section>");
if (offset >= section->size)
{
warn (_("DW_FORM_strp offset too big: 0x%s\... | 0 |
90,205 | virtual bool cellular_connecting() const {
return cellular_ ? cellular_->connecting() : false;
}
| 0 |
261,758 | string RtmpProtocol::get_C1_digest(const uint8_t *ptr,char **digestPos){
/* 764bytes digest结构
offset: 4bytes
random-data: (offset)bytes
digest-data: 32bytes
random-data: (764-4-offset-32)bytes
*/
int offset = 0;
for (int i = 0; i < C1_OFFSET_SIZE; ++i) {
offset += ptr[i];
}
... | 0 |
222,523 | string FunctionLibraryDefinition::FindGradientHelper(const string& func) const {
return gtl::FindWithDefault(func_grad_, func, "");
} | 0 |
208,654 | PHP_MINIT_FUNCTION(snmp)
{
netsnmp_log_handler *logh;
zend_class_entry ce, cex;
le_snmp_session = zend_register_list_destructors_ex(php_snmp_session_destructor, NULL, PHP_SNMP_SESSION_RES_NAME, module_number);
init_snmp("snmpapp");
#ifdef NETSNMP_DS_LIB_DONT_PERSIST_STATE
/* Prevent update of the snmpapp.conf f... | 1 |
234,157 | check_uvalue (const unsigned char * start,
dwarf_vma uvalue,
const unsigned char * end)
{
dwarf_vma max_uvalue = end - start;
/* See PR 17512: file: 008-103549-0.001:0.1.
and PR 24829 for examples of where these tests are triggered. */
if (uvalue > max_uvalue)
{
warn (_(... | 0 |
462,563 | void controller::save_feed(std::shared_ptr<rss_feed> feed, unsigned int pos) {
if (!feed->is_empty()) {
LOG(level::DEBUG, "controller::save_feed: feed is nonempty, saving");
rsscache->externalize_rssfeed(feed, ign.matches_resetunread(feed->rssurl()));
LOG(level::DEBUG, "controller::save_feed: after externalize_r... | 0 |
247,706 | TEST_P(SslSocketTest, FailedClientCertificateDefaultExpirationVerification) {
envoy::config::listener::v3::Listener listener;
envoy::extensions::transport_sockets::tls::v3::UpstreamTlsContext client;
configureServerAndExpiredClientCertificate(listener, client, /*server_config=*/{});
TestUtilOptionsV2 test_opt... | 0 |
231,790 | TEST_F(QuicServerTransportTest, TestClientAddressChanges) {
auto qLogger = std::make_shared<FileQLogger>(VantagePoint::Server);
server->getNonConstConn().qLogger = qLogger;
StreamId streamId = 4;
clientAddr = folly::SocketAddress("127.0.0.1", 2000);
auto data = IOBuf::copyBuffer("data");
EXPECT_THROW(
... | 0 |
366,335 | static void mnt_free_id(struct mount *mnt)
{
ida_free(&mnt_id_ida, mnt->mnt_id);
} | 0 |
355,634 | typval2string(typval_T *tv, int convert)
{
garray_T ga;
char_u *retval;
#ifdef FEAT_FLOAT
char_u numbuf[NUMBUFLEN];
#endif
if (convert && tv->v_type == VAR_LIST)
{
ga_init2(&ga, sizeof(char), 80);
if (tv->vval.v_list != NULL)
{
list_join(&ga, tv->vval.v_list, (char_u *)"\n", TRUE, FALSE, 0)... | 0 |
405,325 | xfrm_policy_inexact_insert_node(struct net *net,
struct rb_root *root,
xfrm_address_t *addr,
u16 family, u8 prefixlen, u8 dir)
{
struct xfrm_pol_inexact_node *cached = NULL;
struct rb_node **p, *parent = NULL;
struct xfrm_pol_inexact_node *node;
p = &root->rb_node;
while (*p) {
int delta;
parent ... | 0 |
463,122 | static void annotation_get_freespace_percent_most(annotate_state_t *state,
struct annotate_entry_list *entry)
{
uint64_t avail = 0;
uint64_t total = 0;
struct buf value = BUF_INITIALIZER;
(void) partlist_local_find_freespace_most(1, &avail, &total, NULL, NULL);
buf_printf(&valu... | 0 |
247,710 | const std::vector<std::string>& expectedLocalUri() const { return expected_local_uri_; } | 0 |
238,643 | static void do_refine_retval_range(struct bpf_reg_state *regs, int ret_type,
int func_id,
struct bpf_call_arg_meta *meta)
{
struct bpf_reg_state *ret_reg = ®s[BPF_REG_0];
if (ret_type != RET_INTEGER ||
(func_id != BPF_FUNC_get_stack &&
func_id != BPF_FUNC_get_task_stack &&
func_id !... | 0 |
450,826 | void st21nfca_se_init(struct nfc_hci_dev *hdev)
{
struct st21nfca_hci_info *info = nfc_hci_get_clientdata(hdev);
init_completion(&info->se_info.req_completion);
/* initialize timers */
timer_setup(&info->se_info.bwi_timer, st21nfca_se_wt_timeout, 0);
info->se_info.bwi_active = false;
timer_setup(&info->se_info.... | 0 |
517,432 | static void print_alerts(HttpResponse res, Mail_T s) {
for (Mail_T r = s; r; r = r->next) {
StringBuffer_append(res->outputbuffer,
"<tr class='stripe'><td>Alert mail to</td>"
"<td>%s</td></tr>", r->to ? r->to : "");
... | 0 |
238,328 | static struct digest_algo *digest_algo_get_by_algo(enum hash_algo algo)
{
struct digest_algo *d = NULL;
struct digest_algo *tmp;
int priority = -1;
list_for_each_entry(tmp, &digests, list) {
if (tmp->base.algo != algo)
continue;
if (tmp->base.priority <= priority)
continue;
d = tmp;
priority = tmp-... | 0 |
436,069 |
static int io_register_iowq_aff(struct io_ring_ctx *ctx, void __user *arg,
unsigned len)
{
struct io_uring_task *tctx = current->io_uring;
cpumask_var_t new_mask;
int ret;
if (!tctx || !tctx->io_wq)
return -EINVAL;
if (!alloc_cpumask_var(&new_mask, GFP_KERNEL))
return -ENOMEM;
cpumask_clear(new_mask);... | 0 |
206,676 | update_topline(void)
{
long line_count;
int halfheight;
int n;
linenr_T old_topline;
#ifdef FEAT_DIFF
int old_topfill;
#endif
#ifdef FEAT_FOLDING
linenr_T lnum;
#endif
int check_topline = FALSE;
int check_botline = FALSE;
long *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_... | 1 |
445,956 | fr_window_unmap (GtkWidget *widget)
{
FrWindow *window = FR_WINDOW (widget);
GtkSortType order;
int column_id;
if (gtk_tree_sortable_get_sort_column_id (GTK_TREE_SORTABLE (window->priv->list_store),
&column_id,
&order))
{
g_settings_set_enum (window->priv->settings_listing, PREF_LIS... | 0 |
498,155 | const char *cgit_loginurl(void)
{
static const char *login_url;
if (!login_url)
login_url = fmtalloc("%s?p=login", cgit_rooturl());
return login_url;
} | 0 |
265,459 | static int sqfs_get_lregfile_info(struct squashfs_lreg_inode *lreg,
struct squashfs_file_info *finfo,
struct squashfs_fragment_block_entry *fentry,
__le32 blksz)
{
int datablk_count = 0, ret;
finfo->size = get_unaligned_le64(&lreg->file_size);
finfo->offset = get_unaligned_le32(&lreg->offset);
fin... | 0 |
229,177 | static void virtio_serial_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass);
QLIST_INIT(&vserdevices.devices);
dc->props = virtio_serial_properties;
set... | 0 |
256,169 | ALWAYS_INLINE void MulAdd3Way128(const Packet a1, const Packet a2,
const Packet a3, const float** inp1,
const float** inp2, const float** inp3,
float** out) {
if (kNumOperands == 8) {
FourMulAdd3Way(a1, a2, a3, inp1... | 0 |
294,697 | test_unit_v2v(VALUE i,
VALUE (* conv1)(VALUE),
VALUE (* conv2)(VALUE))
{
VALUE c, o;
c = (*conv1)(i);
o = (*conv2)(c);
return f_eqeq_p(o, i);
} | 0 |
225,681 | #ifndef GPAC_DISABLE_ISOM_WRITE
static u32 sgpd_size_entry(u32 grouping_type, void *entry)
{
switch (grouping_type) {
case GF_ISOM_SAMPLE_GROUP_ROLL:
case GF_ISOM_SAMPLE_GROUP_PROL:
return 2;
case GF_ISOM_SAMPLE_GROUP_TELE:
case GF_ISOM_SAMPLE_GROUP_RAP:
case GF_ISOM_SAMPLE_GROUP_SAP:
case GF_ISOM_SAMPLE_GROUP... | 0 |
359,456 | bgp_write_rsclient_summary (struct vty *vty, struct peer *rsclient,
afi_t afi, safi_t safi)
{
char timebuf[BGP_UPTIME_LEN];
char rmbuf[14];
const char *rmname;
struct peer *peer;
struct listnode *node, *nnode;
int len;
int count = 0;
if (CHECK_FLAG (rsclient->sflags, PEER_STATUS_GROUP))
{
... | 0 |
252,315 | static bool hufBuildDecTable(const long long *hcode, // i : encoding table
int im, // i : min index in hcode
int iM, // i : max index in hcode
HufDec *hdecod) // o: (allocated by caller)
// de... | 0 |
336,659 | static void reds_late_initialization(RedsState *reds)
{
// do only once
if (reds->late_initialization_done) {
return;
}
// create stream channels for streaming devices
for (auto dev: reds->char_devices) {
auto stream_dev = dynamic_cast<StreamDevice*>(dev.get());
if (stream_d... | 0 |
220,100 | nfs4_file_open(struct inode *inode, struct file *filp)
{
struct nfs_open_context *ctx;
struct dentry *dentry = file_dentry(filp);
struct dentry *parent = NULL;
struct inode *dir;
unsigned openflags = filp->f_flags;
struct iattr attr;
int err;
/*
* If no cached dentry exists or if it's negative, NFSv4 handled... | 0 |
244,145 | GF_Box *jp2h_box_new()
{
ISOM_DECL_BOX_ALLOC(GF_J2KHeaderBox, GF_ISOM_BOX_TYPE_JP2H);
return (GF_Box *)tmp;
} | 0 |
366,267 | static void __touch_mnt_namespace(struct mnt_namespace *ns)
{
if (ns && ns->event != event) {
ns->event = event;
wake_up_interruptible(&ns->poll);
}
} | 0 |
226,042 | void dref_box_del(GF_Box *s)
{
GF_DataReferenceBox *ptr = (GF_DataReferenceBox *) s;
if (ptr == NULL) return;
gf_free(ptr);
} | 0 |
274,870 | TEST(ComparisonsTest, GreaterBroadcastTwoD) {
ComparisonOpModel model({1, 1, 2, 4}, {1, 1, 1, 4}, TensorType_INT32,
BuiltinOperator_GREATER);
model.PopulateTensor<int>(model.input1(), {-1, 9, 7, 3, 2, 4, 2, 8});
model.PopulateTensor<int>(model.input2(), {7, 1, 2, 4});
model.Invoke();
... | 0 |
459,207 | tcf_get_next_proto(struct tcf_chain *chain, struct tcf_proto *tp)
{
struct tcf_proto *tp_next = __tcf_get_next_proto(chain, tp);
if (tp)
tcf_proto_put(tp, true, NULL);
return tp_next;
} | 0 |
313,745 | nv_home(cmdarg_T *cap)
{
// CTRL-HOME is like "gg"
if (mod_mask & MOD_MASK_CTRL)
nv_goto(cap);
else
{
cap->count0 = 1;
nv_pipe(cap);
}
ins_at_eol = FALSE; // Don't move cursor past eol (only necessary in a
// one-character line).
} | 0 |
488,376 | static inline unsigned long zap_pud_range(struct mmu_gather *tlb,
struct vm_area_struct *vma, pgd_t *pgd,
unsigned long addr, unsigned long end,
long *zap_work, struct zap_details *details)
{
pud_t *pud;
unsigned long next;
pud = pud_offset(pgd, addr);
do {
next = pud_addr_end(addr, end);
if (pud_n... | 0 |
231,526 | update_map (char * const mapping, const char * const map_file)
{
const size_t map_len = strlen (mapping);
const int fd = xopen (map_file, O_WRONLY, 0);
xwrite (fd, mapping, map_len);
xclose (fd);
} | 0 |
261,963 | njs_decode_utf8(njs_str_t *dst, const njs_str_t *src)
{
njs_unicode_decode_t ctx;
njs_utf8_decode_init(&ctx);
(void) njs_utf8_stream_encode(&ctx, src->start, src->start + src->length,
dst->start, 1, 0);
} | 0 |
226,436 | const DataTypeVector& output_dtypes() const override { return dtypes_; } | 0 |
242,667 | dissect_header_lens_v1(tvbuff_t *tvb, int offset, proto_tree *tree, int encoding, int * const *hf_indexes)
{
int param_count;
proto_item *ti;
proto_tree *len_tree;
for (param_count = 0; hf_indexes[param_count]; param_count++);
ti = proto_tree_add_item(tree, hf_se_param_lens, tvb, offset, param_cou... | 0 |
386,578 | void DL_Dxf::writeVertex(DL_WriterA& dw,
const DL_VertexData& data) {
if (version==DL_VERSION_2000) {
dw.dxfReal(10, data.x);
dw.dxfReal(20, data.y);
if (fabs(data.bulge)>1.0e-10) {
dw.dxfReal(42, data.bulge);
}
} else {
dw.entity("V... | 0 |
512,843 | void Item_equal::merge_into_list(THD *thd, List<Item_equal> *list,
bool save_merged,
bool only_intersected)
{
Item_equal *item;
List_iterator<Item_equal> it(*list);
Item_equal *merge_into= NULL;
while((item= it++))
{
if (!merge_into)
{
... | 0 |
462,275 | PJ_DEF(pj_status_t) pj_stun_msg_add_uint64_attr(pj_pool_t *pool,
pj_stun_msg *msg,
int attr_type,
const pj_timestamp *value)
{
pj_stun_uint64_attr *attr = NULL;
pj_status_t status;
status = pj_stun_uint64_attr_create(pool, attr_type, value, &attr);
if (status ... | 0 |
326,121 | regmbc(int c)
{
if (!has_mbyte && c > 0xff)
return;
if (regcode == JUST_CALC_SIZE)
regsize += (*mb_char2len)(c);
else
regcode += (*mb_char2bytes)(c, regcode);
} | 0 |
413,837 | static void print_nest_host_error_on(stringStream* ss, Klass* ref_klass, Klass* sel_klass) {
assert(ref_klass->is_instance_klass(), "must be");
assert(sel_klass->is_instance_klass(), "must be");
InstanceKlass* ref_ik = InstanceKlass::cast(ref_klass);
InstanceKlass* sel_ik = InstanceKlass::cast(sel_klass);
con... | 0 |
222,915 | Status UpdateOutputShapesUsingAnnotatedInformation(const NodeDef& node,
NodeContext* c) const {
const auto& attr = node.attr();
if (attr.count(kOutputSame) == 0 || !attr.at(kOutputSame).b() ||
attr.count(kOutputShapes) == 0)
return Status::OK(... | 0 |
413,703 | static void print_hint_h_format(HintNode *node) {
switch (node->type) {
case HINT_NODE_ADDR: {
const RAnalAddrHintRecord *record;
r_vector_foreach (node->addr_hints, record) {
switch (record->type) {
case R_ANAL_ADDR_HINT_TYPE_IMMBASE:
r_cons_printf (" immbase=%d", record->immbase);
break;
case R... | 0 |
387,840 | oop InstanceKlass::init_lock() const {
// return the init lock from the mirror
oop lock = java_lang_Class::init_lock(java_mirror());
// Prevent reordering with any access of initialization state
OrderAccess::loadload();
assert((oop)lock != NULL || !is_not_initialized(), // initialized or in_error state
... | 0 |
346,470 | ex_scriptencoding(exarg_T *eap)
{
source_cookie_T *sp;
char_u *name;
if (!sourcing_a_script(eap))
{
emsg(_(e_scriptencoding_used_outside_of_sourced_file));
return;
}
if (*eap->arg != NUL)
{
name = enc_canonize(eap->arg);
if (name == NULL) // out of memory
return;
}
else
... | 0 |
225,487 | Status CheckFaninIsRegular(const TensorId& fanin, ErrorHandler handler) {
if (!IsTensorIdRegular(fanin)) {
return handler(absl::Substitute("fanin '$0' must be a regular tensor id",
fanin.ToString()));
}
return Status::OK();
} | 0 |
417,064 | void PlayerGeneric::lastPattern()
{
if (player)
player->lastPattern();
} | 0 |
513,094 | Item_func_nullif::int_op()
{
DBUG_ASSERT(fixed == 1);
longlong value;
if (!compare())
{
null_value=1;
return 0;
}
value= args[2]->val_int();
null_value= args[2]->null_value;
return value;
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.