idx int64 | func string | target int64 |
|---|---|---|
19,313 | static int noise_motion_thresh ( BLOCK_SIZE bs , int increase_denoising ) {
( void ) bs ;
( void ) increase_denoising ;
return 25 * 25 ;
} | 0 |
21,519 | static inline void tb_hash_remove ( TranslationBlock * * ptb , TranslationBlock * tb ) {
TranslationBlock * tb1 ;
for ( ;
;
) {
tb1 = * ptb ;
if ( tb1 == tb ) {
* ptb = tb1 -> phys_hash_next ;
break ;
}
ptb = & tb1 -> phys_hash_next ;
}
} | 0 |
87,089 | static int init_shdr(ELFOBJ *bin) {
ut32 shdr_size;
ut8 shdr[sizeof (Elf_(Shdr))] = {0};
int i, j, len;
if (!bin || bin->shdr) {
return true;
}
if (!UT32_MUL (&shdr_size, bin->ehdr.e_shnum, sizeof (Elf_(Shdr)))) {
return false;
}
if (shdr_size < 1) {
return false;
}
if (shdr_size > bin->size) {
retur... | 0 |
140,914 | export_pamenv (void)
{
char **env;
/* This is a copy but don't care to free as we exec later anyways. */
env = pam_getenvlist (pamh);
while (env && *env)
{
if (putenv (*env) != 0)
err (EXIT_FAILURE, NULL);
env++;
}
} | 0 |
12,077 | DeviceRequest(
int requesting_process_id,
int requesting_frame_id,
int page_request_id,
bool user_gesture,
MediaStreamRequestType request_type,
const StreamControls& controls,
MediaDeviceSaltAndOrigin salt_and_origin,
DeviceStoppedCallback device_stopped_cb = Dev... | 1 |
103,756 | void BlockCodec::sync1()
{
m_savedPositionNextFrame = m_track->fpos_next_frame;
m_savedNextFrame = m_track->nextfframe;
} | 0 |
54,188 | void __module_get(struct module *module)
{
if (module) {
preempt_disable();
atomic_inc(&module->refcnt);
trace_module_get(module, _RET_IP_);
preempt_enable();
}
} | 0 |
92,149 | RefPtr<PhysicalPage> MemoryManager::allocate_user_physical_page(ShouldZeroFill should_zero_fill)
{
InterruptDisabler disabler;
RefPtr<PhysicalPage> page = find_free_user_physical_page();
if (!page) {
if (m_user_physical_regions.is_empty()) {
kprintf("MM: no user physical regions availab... | 0 |
412,337 | rb_dir_exists_p(VALUE obj, VALUE fname)
{
rb_warning("Dir.exists? is a deprecated name, use Dir.exist? instead");
return rb_file_directory_p(obj, fname);
} | 0 |
466,981 | dnscrypt_pad(uint8_t *buf, const size_t len, const size_t max_len,
const uint8_t *nonce, const uint8_t *secretkey)
{
uint8_t *buf_padding_area = buf + len;
size_t padded_len;
uint32_t rnd;
// no padding
if (max_len < len + DNSCRYPT_MIN_PAD_LEN)
return len;
assert(nonce[cry... | 0 |
387,642 | xz_avail(xz_statep state)
{
lzma_stream *strm = &(state->strm);
if (state->err != LZMA_OK)
return -1;
if (state->eof == 0) {
/* avail_in is size_t, which is not necessary sizeof(unsigned) */
unsigned tmp = strm->avail_in;
if (xz_load(state, state->in, state->size, &tmp) == ... | 0 |
264,913 | explicit ReverseOp(OpKernelConstruction* context) : OpKernel(context) {} | 0 |
177,011 | static char **GetTransformTokens(void *context,const char *text,
int *number_tokens)
{
char
**tokens;
register const char
*p,
*q;
register ssize_t
i;
SVGInfo
*svg_info;
svg_info=(SVGInfo *) context;
*number_tokens=0;
if (text == (const char *) NULL)
return((char **) NULL);
... | 0 |
31,045 | static cmsBool Type_S15Fixed16_Write ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Ptr , cmsUInt32Number nItems ) {
cmsFloat64Number * Value = ( cmsFloat64Number * ) Ptr ;
cmsUInt32Number i ;
for ( i = 0 ;
i < nItems ;
i ++ ) {
if ( ! _cmsWrite15Fixed16Number ( io , Value [ i ] ) ) return F... | 0 |
21,491 | void # ifdef M_DEBUG mpi_debug_free_limb_space ( mpi_ptr_t a , const char * info ) # else mpi_free_limb_space ( mpi_ptr_t a ) # endif {
if ( ! a ) return ;
if ( DBG_MEMORY ) log_debug ( "mpi_free_limb_space of size %lu\n" , ( ulong ) m_size ( a ) * 8 ) ;
# if 0 if ( ! m_is_secure ( a ) ) {
size_t nlimbs = m_size ( ... | 0 |
271,661 | SYSCALL_DEFINE3(tgkill, pid_t, tgid, pid_t, pid, int, sig)
{
/* This is only valid for single tasks */
if (pid <= 0 || tgid <= 0)
return -EINVAL;
return do_tkill(tgid, pid, sig);
} | 0 |
154,233 | TfLiteRegistration* Register_MAX_POOL_2D() {
return Register_MAX_POOL_GENERIC_OPT();
} | 0 |
65,065 | ip6_tnl_unlink(struct ip6_tnl_net *ip6n, struct ip6_tnl *t)
{
struct ip6_tnl **tp;
for (tp = ip6_tnl_bucket(ip6n, &t->parms); *tp; tp = &(*tp)->next) {
if (t == *tp) {
spin_lock_bh(&ip6_tnl_lock);
*tp = t->next;
spin_unlock_bh(&ip6_tnl_lock);
break;
}
}
} | 0 |
319,678 | static inline int num_effective_busses(XilinxSPIPS *s)
{
return (s->regs[R_LQSPI_STS] & LQSPI_CFG_SEP_BUS &&
s->regs[R_LQSPI_STS] & LQSPI_CFG_TWO_MEM) ? s->num_busses : 1;
}
| 0 |
230,747 | int dom_document_preserve_whitespace_read(dom_object *obj, zval **retval TSRMLS_DC)
{
dom_doc_propsptr doc_prop;
ALLOC_ZVAL(*retval);
if (obj->document) {
doc_prop = dom_get_doc_props(obj->document);
ZVAL_BOOL(*retval, doc_prop->preservewhitespace);
} else {
ZVAL_FALSE(*retval);
}
return SUCCESS;
}
| 0 |
499,784 | QPDFWriter::writeTrailer(trailer_e which, int size, bool xref_stream,
qpdf_offset_t prev, int linearization_pass)
{
QPDFObjectHandle trailer = getTrimmedTrailer();
if (! xref_stream)
{
writeString("trailer <<");
}
writeStringQDF("\n");
if (which == t_lin_second)
{
... | 0 |
325,850 | static int net_init_tap_one(const NetdevTapOptions *tap, NetClientState *peer,
const char *model, const char *name,
const char *ifname, const char *script,
const char *downscript, const char *vhostfdname,
... | 0 |
395,909 | _gnutls_session_cert_type_supported(gnutls_session_t session,
gnutls_certificate_type_t cert_type)
{
unsigned i;
unsigned cert_found = 0;
gnutls_certificate_credentials_t cred;
if (session->security_parameters.entity == GNUTLS_SERVER) {
cred = (gnutls_certificate_credentials_t)
_gnutls_get_cred(ses... | 0 |
351,773 | CalendarRegressionTest::runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*par*/ )
{
// if (exec) logln((UnicodeString)"TestSuite NumberFormatRegressionTest");
switch (index) {
CASE(0,test4100311);
CASE(1,test4074758);
CASE(2,test4028518);
CASE(3,test4031502);
... | 1 |
22,867 | static uint64_t xhci_oper_read ( void * ptr , hwaddr reg , unsigned size ) {
XHCIState * xhci = ptr ;
uint32_t ret ;
switch ( reg ) {
case 0x00 : ret = xhci -> usbcmd ;
break ;
case 0x04 : ret = xhci -> usbsts ;
break ;
case 0x08 : ret = 1 ;
break ;
case 0x14 : ret = xhci -> dnctrl ;
break ;
case 0x18 : ret... | 0 |
439,367 | static CURLcode file_disconnect(struct connectdata *conn,
bool dead_connection)
{
struct FILEPROTO *file = conn->data->req.protop;
(void)dead_connection; /* not used */
if(file) {
Curl_safefree(file->freepath);
file->path = NULL;
if(file->fd != -1)
close(file->fd... | 0 |
200,980 | static inline bool migration_bitmap_set_dirty(ram_addr_t addr)
{
bool ret;
int nr = addr >> TARGET_PAGE_BITS;
ret = test_and_set_bit(nr, migration_bitmap);
if (!ret) {
migration_dirty_pages++;
}
return ret;
}
| 0 |
66,124 | int unregister_reboot_notifier(struct notifier_block *nb)
{
return blocking_notifier_chain_unregister(&reboot_notifier_list, nb);
} | 0 |
169,779 | void LogHTMLForm(SavePasswordProgressLogger* logger,
SavePasswordProgressLogger::StringID message_id,
const WebFormElement& form) {
logger->LogHTMLForm(message_id, form.GetName().Utf8(),
GURL(form.Action().Utf8()));
}
| 0 |
247,083 | static void php_zlib_cleanup_ob_gzhandler_mess(TSRMLS_D)
{
if (ZLIBG(ob_gzhandler)) {
deflateEnd(&(ZLIBG(ob_gzhandler)->Z));
php_zlib_output_handler_context_dtor(ZLIBG(ob_gzhandler) TSRMLS_CC);
ZLIBG(ob_gzhandler) = NULL;
}
}
| 0 |
197,839 | void LayerTreeCoordinator::paintContents(const WebCore::GraphicsLayer* graphicsLayer, WebCore::GraphicsContext& graphicsContext, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& clipRect)
{
if (graphicsLayer == m_nonCompositedContentLayer) {
m_webPage->drawRect(graphicsContext, clipRect);
... | 0 |
351,482 | static void vt_disallocate_all(void)
{
struct vc_data *vc[MAX_NR_CONSOLES];
int i;
console_lock();
for (i = 1; i < MAX_NR_CONSOLES; i++)
if (!vt_busy(i))
vc[i] = vc_deallocate(i);
else
vc[i] = NULL;
console_unlock();
for (i = 1; i < MAX_NR_CONSOLES; i++) {
if (vc[i] && i >= MIN_NR_CONSOLES) {
tty... | 1 |
218,711 | void Document::SetTitleElement(Element* title_element) {
if (isSVGSVGElement(documentElement())) {
title_element_ = Traversal<SVGTitleElement>::FirstChild(*documentElement());
} else {
if (title_element_ && title_element_ != title_element)
title_element_ = Traversal<HTMLTitleElement>::FirstWithin(*thi... | 0 |
138,083 | void vmalloc_sync_all(void)
{
unsigned long address;
if (SHARED_KERNEL_PMD)
return;
for (address = VMALLOC_START & PMD_MASK;
address >= TASK_SIZE && address < FIXADDR_TOP;
address += PMD_SIZE) {
struct page *page;
spin_lock(&pgd_lock);
list_for_each_entry(page, &pgd_list, lru) {
spinlock_t ... | 0 |
159,492 | void Pipe::DelayedDelivery::flush()
{
lgeneric_subdout(pipe->msgr->cct, ms, 20) << *pipe << "DelayedDelivery::flush" << dendl;
Mutex::Locker l(delay_lock);
flush_count = delay_queue.size();
delay_cond.Signal();
} | 0 |
458,224 | void OPJ_CALLCONV opj_set_default_encoder_parameters(opj_cparameters_t
*parameters)
{
if (parameters) {
memset(parameters, 0, sizeof(opj_cparameters_t));
/* default coding parameters */
parameters->cp_cinema = OPJ_OFF; /* DEPRECATED */
parameters->rsiz = OPJ_PROFILE_NONE;
... | 0 |
215,929 | void StatusBubbleGtk::SetURL(const GURL& url, const string16& languages) {
url_ = url;
languages_ = languages;
if (url.is_empty() && !status_text_.empty()) {
url_text_ = std::string();
SetStatusTextTo(status_text_);
return;
}
SetStatusTextToURL();
}
| 0 |
197,085 | bool OmniboxViewWin::IsImeComposing() const {
bool ime_composing = false;
HIMC context = ImmGetContext(m_hWnd);
if (context) {
ime_composing = !!ImmGetCompositionString(context, GCS_COMPSTR, NULL, 0);
ImmReleaseContext(m_hWnd, context);
}
return ime_composing;
}
| 0 |
10,050 | net::WebSocket* WebSocketExperimentTask::Context::CreateWebSocket(
const Config& config, net::WebSocketDelegate* delegate) {
URLRequestContextGetter* getter =
Profile::GetDefaultRequestContext();
if (!getter)
return NULL;
net::WebSocket::Request* request(
new net::WebSocket::Request(config.url... | 1 |
170,639 | int validation_checkfp(int count, int argc, char **argv)
{
int result;
checkfp_command command;
checkfp_control control;
command.number[0] = 0;
command.limit = 3;
command.verbose = verbose;
command.ctimes = 0;
command.cmillions = 0;
command.cinvalid = 0;
command.cnoaccept = 0;
while (--ar... | 0 |
160,887 | int CLASS ljpeg_start (struct jhead *jh, int info_only)
{
int c, tag;
ushort len;
uchar data[0x10000];
const uchar *dp;
memset (jh, 0, sizeof *jh);
jh->restart = INT_MAX;
fread (data, 2, 1, ifp);
if (data[1] != 0xd8) return 0;
do {
fread (data, 2, 2, ifp);
tag = data[0] << 8 | data[1];
l... | 0 |
21,598 | rfbClientPtr rfbNewUDPClient ( rfbScreenInfoPtr rfbScreen ) {
return ( ( rfbScreen -> udpClient = rfbNewTCPOrUDPClient ( rfbScreen , rfbScreen -> udpSock , TRUE ) ) ) ;
} | 0 |
317,908 | void SetPageInfoBubbleIdentityInfo(
const PageInfoUI::IdentityInfo& identity_info) {
static_cast<PageInfoBubbleView*>(PageInfoBubbleView::GetPageInfoBubble())
->SetIdentityInfo(identity_info);
}
| 0 |
430,454 | ippGetGroupTag(ipp_attribute_t *attr) /* I - IPP attribute */
{
/*
* Range check input...
*/
if (!attr)
return (IPP_TAG_ZERO);
/*
* Return the group...
*/
return (attr->group_tag);
} | 0 |
331,731 | int bdrv_write_compressed(BlockDriverState *bs, int64_t sector_num,
const uint8_t *buf, int nb_sectors)
{
BlockDriver *drv = bs->drv;
int ret;
if (!drv) {
return -ENOMEDIUM;
}
if (!drv->bdrv_write_compressed) {
return -ENOTSUP;
}
ret = b... | 0 |
70,827 | static PHP_FUNCTION(session_decode)
{
char *str;
int str_len;
if (PS(session_status) == php_session_none) {
RETURN_FALSE;
}
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
return;
}
RETVAL_BOOL(php_session_decode(str, str_len TSRMLS_CC) == SUCCESS);
} | 0 |
95,235 | static struct page *__get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid,
struct page *parent, int start)
{
struct page *page;
int err;
if (!nid)
return ERR_PTR(-ENOENT);
f2fs_bug_on(sbi, check_nid_range(sbi, nid));
repeat:
page = f2fs_grab_cache_page(NODE_MAPPING(sbi), nid, false);
if (!page)
return E... | 0 |
109,573 | void setupConnection() override {} | 0 |
343,504 | int __udp_lib_get_port(struct sock *sk, unsigned short snum,
struct hlist_head udptable[], int *port_rover,
int (*saddr_comp)(const struct sock *sk1,
const struct sock *sk2 ) )
{
struct hlist_node *node;
struct hlist_head *head;
struct sock *sk2;
int error = 1;
write_lock_bh(&udp_has... | 1 |
96,701 | f_funcref(typval_T *argvars, typval_T *rettv)
{
common_function(argvars, rettv, TRUE);
} | 0 |
85,749 | void setContext(Context* context) { contexts_[context->id()] = context; } | 0 |
100,703 | mt_copy(mrb_state *mrb, mt_tbl *t)
{
mt_tbl *t2;
size_t i;
if (t == NULL) return NULL;
if (t->alloc == 0) return NULL;
if (t->size == 0) return NULL;
t2 = mt_new(mrb);
for (i=0; i<t->alloc; i++) {
struct mt_elem *slot = &t->table[i];
if (slot->key) {
mt_put(mrb, t2, slot->key, slot->func_... | 0 |
302,875 | static struct sk_buff *
sch_handle_egress(struct sk_buff *skb, int *ret, struct net_device *dev)
{
struct tcf_proto *cl = rcu_dereference_bh(dev->egress_cl_list);
struct tcf_result cl_res;
if (!cl)
return skb;
/* qdisc_skb_cb(skb)->pkt_len was already set by the caller. */
qdisc_bstats_cpu_update(cl->q, skb);
... | 0 |
160,135 | test_userpass_cookie_check (Test *test,
gconstpointer data)
{
GAsyncResult *result = NULL;
CockpitWebService *service;
CockpitWebService *prev_service;
CockpitCreds *creds;
CockpitCreds *prev_creds;
JsonObject *response = NULL;
GError *error = NULL;
GHashTable *headers;
he... | 0 |
110,725 | static struct ion_handle *ion_handle_get_by_id_nolock(struct ion_client *client,
int id)
{
struct ion_handle *handle;
handle = idr_find(&client->idr, id);
if (handle)
ion_handle_get(handle);
return handle ? handle : ERR_PTR(-EINVAL);
} | 0 |
277,226 | INLINE UWORD32 impeg2d_bit_stream_get(void* pv_ctxt, UWORD32 u4_num_bits)
{
UWORD32 u4_next_bits = impeg2d_bit_stream_nxt(pv_ctxt, u4_num_bits);
impeg2d_bit_stream_flush(pv_ctxt, u4_num_bits);
return(u4_next_bits);
}
| 0 |
278,192 | status_t ATSParser::parseAdaptationField(ABitReader *br, unsigned PID) {
unsigned adaptation_field_length = br->getBits(8);
if (adaptation_field_length > 0) {
if (adaptation_field_length * 8 > br->numBitsLeft()) {
ALOGV("Adaptation field should be included in a single TS packet.");
return ERROR_MALFORM... | 0 |
293,526 | i915_gem_execbuffer_relocate_entry(struct drm_i915_gem_object *obj,
struct eb_objects *eb,
struct drm_i915_gem_relocation_entry *reloc)
{
struct drm_device *dev = obj->base.dev;
struct drm_gem_object *target_obj;
uint32_t target_offset;
int ret = -EINVAL;
/* we've already hold a reference to all val... | 0 |
142,592 | static int fixup_bpf_calls(struct bpf_verifier_env *env)
{
struct bpf_prog *prog = env->prog;
bool expect_blinding = bpf_jit_blinding_enabled(prog);
struct bpf_insn *insn = prog->insnsi;
const struct bpf_func_proto *fn;
const int insn_cnt = prog->len;
const struct bpf_map_ops *ops;
struct bpf_insn_aux_data *aux;... | 0 |
128,738 | PKCS7_ISSUER_AND_SERIAL *PKCS7_get_issuer_and_serial(PKCS7 *p7, int idx)
{
STACK_OF(PKCS7_RECIP_INFO) *rsk;
PKCS7_RECIP_INFO *ri;
int i;
i = OBJ_obj2nid(p7->type);
if (i != NID_pkcs7_signedAndEnveloped)
return NULL;
if (p7->d.signed_and_enveloped == NULL)
return NULL;
rsk = ... | 0 |
199,813 | Response EmulationHandler::SetEmitTouchEventsForMouse(
bool enabled,
Maybe<std::string> configuration) {
touch_emulation_enabled_ = enabled;
touch_emulation_configuration_ = configuration.fromMaybe("");
UpdateTouchEventEmulationState();
return Response::OK();
}
| 0 |
115,332 | static int __init packet_init(void)
{
int rc = proto_register(&packet_proto, 0);
if (rc != 0)
goto out;
sock_register(&packet_family_ops);
register_pernet_subsys(&packet_net_ops);
register_netdevice_notifier(&packet_netdev_notifier);
out:
return rc;
} | 0 |
67,360 | static void dma_cache_maint_page(struct page *page, unsigned long offset,
size_t size, enum dma_data_direction dir,
void (*op)(const void *, size_t, int))
{
unsigned long pfn;
size_t left = size;
pfn = page_to_pfn(page) + offset / PAGE_SIZE;
offset %= PAGE_SIZE;
/*
* A single sg entry may refer to multiple p... | 0 |
138,659 | void httpParseConnectionField(HttpConnection *connection,
char_t *value)
{
char_t *p;
char_t *token;
//Get the first value of the list
token = osStrtok_r(value, ",", &p);
//Parse the comma-separated list
while(token != NULL)
{
//Trim whitespace characters
value = strTrimWhitespace(... | 0 |
372,786 | void CLASS remove_zeroes()
{
unsigned row, col, tot, n, r, c;
#ifdef LIBRAW_LIBRARY_BUILD
RUN_CALLBACK(LIBRAW_PROGRESS_REMOVE_ZEROES,0,2);
#endif
for (row=0; row < height; row++)
for (col=0; col < width; col++)
if (BAYER(row,col) == 0) {
tot = n = 0;
for (r = row-2; r <= row+2; r++)
for (c = col-2... | 0 |
332,546 | static int vdi_co_read(BlockDriverState *bs,
int64_t sector_num, uint8_t *buf, int nb_sectors)
{
BDRVVdiState *s = bs->opaque;
uint32_t bmap_entry;
uint32_t block_index;
uint32_t sector_in_block;
uint32_t n_sectors;
int ret;
logout("\n");
restart:
block_index = sec... | 0 |
135,391 | int sdma_send_txreq(struct sdma_engine *sde,
struct iowait_work *wait,
struct sdma_txreq *tx,
bool pkts_sent)
{
int ret = 0;
u16 tail;
unsigned long flags;
/* user should have supplied entire packet */
if (unlikely(tx->tlen))
return -EINVAL;
tx->wait = iowait_ioww_to_iow(wait);
spin_lock_irq... | 0 |
505,796 | int fips_drbg_cprng_test(DRBG_CTX *dctx, const unsigned char *out)
{
/* No CPRNG in test mode */
if (dctx->xflags & DRBG_FLAG_TEST)
return 1;
/* Check block is valid: should never happen */
if (dctx->lb_valid == 0)
{
FIPSerr(FIPS_F_FIPS_DRBG_CPRNG_TEST, FIPS_R_INTERNAL_ERROR);
fips_set_selftest_fail();
r... | 0 |
194,926 | PHP_FUNCTION(ini_restore)
{
char *varname;
int varname_len;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &varname, &varname_len) == FAILURE) {
return;
}
zend_restore_ini_entry(varname, varname_len+1, PHP_INI_STAGE_RUNTIME);
}
| 0 |
462,070 | void *zcalloc_usable(size_t size, size_t *usable) {
void *ptr = ztrycalloc_usable(size, usable);
if (!ptr) zmalloc_oom_handler(size);
return ptr;
} | 0 |
484,185 | mlx5_tx_burst_single_send(struct mlx5_txq_data *__rte_restrict txq,
struct rte_mbuf **__rte_restrict pkts,
unsigned int pkts_n,
struct mlx5_txq_local *__rte_restrict loc,
unsigned int olx)
{
/*
* Subroutine is the part of mlx5_tx_burst_single()
* and sends single-segment packet with SEND opcode... | 0 |
348,946 | static struct ad5755_platform_data *ad5755_parse_dt(struct device *dev)
{
struct device_node *np = dev->of_node;
struct device_node *pp;
struct ad5755_platform_data *pdata;
unsigned int tmp;
unsigned int tmparray[3];
int devnr, i;
pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
if (!pdata)
return NULL... | 1 |
497,008 | TF_LITE_MICRO_TEST(GatherNd_BatchedIndexingIntoMatrix2) {
// For input_dims[], index_dims[], or output_dims[], element 0 is the
// number of dimensions in that array, not the actual dimension data.
int input_dims[] = {2, 2, 2};
int index_dims[] = {3, 2, 1, 2};
const int32_t index_data[] = {0, 0, 1, 1};
cons... | 0 |
217,150 | MetricsLog::~MetricsLog() {
}
| 0 |
266,793 | FUNC_DECODER(dissector_postgresql)
{
DECLARE_DISP_PTR(ptr);
struct ec_session *s = NULL;
void *ident = NULL;
char tmp[MAX_ASCII_ADDR_LEN];
struct postgresql_status *conn_status;
/* don't complain about unused var */
(void) DECODE_DATA;
(void) DECODE_DATALEN;
(void) DECODED_LEN;
if (F... | 0 |
262,120 | pixSetLowContrast(PIX *pixs1,
PIX *pixs2,
l_int32 mindiff)
{
l_int32 i, j, w, h, d, wpl, val1, val2, found;
l_uint32 *data1, *data2, *line1, *line2;
PROCNAME("pixSetLowContrast");
if (!pixs1 || !pixs2)
return ERROR_INT("pixs1 and pixs2 not both defined"... | 0 |
359,586 | get_tip_for_vpn (NMActiveConnection *active, NMVPNConnectionState state, NMApplet *applet)
{
NMConnectionScope scope;
char *tip = NULL;
const char *path, *id = NULL;
GSList *iter, *list;
scope = nm_active_connection_get_scope (active);
path = nm_active_connection_get_connection (active);
g_return_val_if_fail (p... | 0 |
350,531 | Status explain(OperationContext* opCtx,
const OpMsgRequest& request,
ExplainOptions::Verbosity verbosity,
rpc::ReplyBuilderInterface* result) const override {
std::string dbname = request.getDatabase().toString();
const BSONObj& cmdObj = reque... | 1 |
307,215 | int ShellBrowserMain(const content::MainFunctionParams& parameters) {
bool layout_test_mode =
CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree);
base::ScopedTempDir browser_context_path_for_layout_tests;
if (layout_test_mode) {
CHECK(browser_context_path_for_layout_tests.CreateUniq... | 0 |
301,292 | static int pnm_getsint(jas_stream_t *in, int wordsize, int_fast32_t *val)
{
uint_fast32_t tmpval;
if (pnm_getuint(in, wordsize, &tmpval)) {
return -1;
}
if ((tmpval & (1 << (wordsize - 1))) != 0) {
jas_eprintf("PNM decoder does not fully support signed data\n");
return -1;
}
if (val) {
*val = tmpval;
}
... | 0 |
301,403 | ApcLoadJob(void *handle, int index) : m_handle(handle), m_index(index) {} | 0 |
70,221 | void __ext4_error_inode(struct inode *inode, const char *function,
unsigned int line, ext4_fsblk_t block,
const char *fmt, ...)
{
va_list args;
struct va_format vaf;
struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es;
es->s_last_error_ino = cpu_to_le32(inode->i_ino);
es->s_last_error_block = cpu_to_le... | 0 |
483,997 | int memhp_online_type_from_str(const char *str)
{
int i;
for (i = 0; i < ARRAY_SIZE(online_type_to_str); i++) {
if (sysfs_streq(str, online_type_to_str[i]))
return i;
}
return -EINVAL;
} | 0 |
219,212 | void MediaControlToggleClosedCaptionsButtonElement::defaultEventHandler(
Event* event) {
if (event->type() == EventTypeNames::click) {
if (mediaElement().textTracks()->length() == 1) {
if (mediaElement().textTracks()->hasShowingTracks()) {
mediaControls().disableShowingTextTracks();
} else... | 0 |
121,944 | static inline uint64_t memory_region_shift_write_access(uint64_t *value,
signed shift,
uint64_t mask)
{
uint64_t tmp;
if (shift >= 0) {
tmp = (*value >> shift) & mask;
} else {
tm... | 0 |
321,683 | int cpu_get_dump_info(ArchDumpInfo *info,
const struct GuestPhysBlockList *guest_phys_blocks)
{
PowerPCCPU *cpu = POWERPC_CPU(first_cpu);
PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu);
info->d_machine = PPC_ELF_MACHINE;
info->d_class = ELFCLASS;
if ((*pcc->interr... | 0 |
183,031 | static MagickBooleanType EncodeImage(const ImageInfo *image_info,Image *image,
const size_t data_size)
{
#define MaxCode(number_bits) ((one << (number_bits))-1)
#define MaxHashTable 5003
#define MaxGIFBits 12UL
#define MaxGIFTable (1UL << MaxGIFBits)
#define GIFOutputCode(code) \
{ \
/* \
Emit a code. \
... | 0 |
180,780 | void RenderWidgetHostViewAura::DidCreateNewRendererCompositorFrameSink(
cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink) {
renderer_compositor_frame_sink_ = renderer_compositor_frame_sink;
if (delegated_frame_host_) {
delegated_frame_host_->DidCreateNewRendererCompositorFrameSink(
... | 0 |
311,935 | void BackendIO::DoomAllEntries() {
operation_ = OP_DOOM_ALL;
}
| 0 |
204,401 | void V8Proxy::registerExtension(v8::Extension* extension)
{
registerExtensionWithV8(extension);
staticExtensionsList().append(extension);
}
| 0 |
237,812 | virtual void SetUp() {
UUT_ = GET_PARAM(2);
#if CONFIG_VP9_HIGHBITDEPTH
if (UUT_->use_highbd_ != 0)
mask_ = (1 << UUT_->use_highbd_) - 1;
else
mask_ = 255;
#endif
/* Set up guard blocks for an inner block centered in the outer block */
for (int i = 0; i < kOutputBufferSize; ++i) {
... | 0 |
473,244 | valid_ordinal_p(VALUE y, int d, double sg,
VALUE *nth, int *ry,
int *rd, int *rjd,
int *ns)
{
double style = guess_style(y, sg);
int r;
if (style == 0) {
int jd;
r = c_valid_ordinal_p(FIX2INT(y), d, sg, rd, &jd, ns);
if (!r)
return 0;
decode_jd(INT2FIX(jd), nth, rjd);
if (f_zero_p(*nth))
... | 0 |
86,637 | static int strict_blocks_to_sectors(const char *buf, sector_t *sectors)
{
unsigned long long blocks;
sector_t new;
if (kstrtoull(buf, 10, &blocks) < 0)
return -EINVAL;
if (blocks & 1ULL << (8 * sizeof(blocks) - 1))
return -EINVAL; /* sector conversion overflow */
new = blocks * 2;
if (new != blocks * 2)
... | 0 |
84,053 | PJ_DEF(void) pj_scan_save_state( const pj_scanner *scanner,
pj_scan_state *state)
{
state->curptr = scanner->curptr;
state->line = scanner->line;
state->start_line = scanner->start_line;
} | 0 |
78,899 | static int opfiadd(RAsm *a, ut8 *data, const Opcode *op) {
int l = 0;
switch (op->operands_count) {
case 1:
if ( op->operands[0].type & OT_MEMORY ) {
if ( op->operands[0].type & OT_WORD ) {
data[l++] = 0xde;
data[l++] = 0x00 | op->operands[0].regs[0];
} else if ( op->operands[0].type & OT_DWORD ) {
... | 0 |
86,647 | void CL_AddToLimboChat( const char *str ) {
int len = 0;
char *p;
int i;
cl.limboChatPos = LIMBOCHAT_HEIGHT - 1;
// copy old strings
for ( i = cl.limboChatPos; i > 0; i-- ) {
strcpy( cl.limboChatMsgs[i], cl.limboChatMsgs[i - 1] );
}
// copy new string
p = cl.limboChatMsgs[0];
*p = 0;
while ( *str ) {
... | 0 |
214,753 | gsicc_get_srcprofile(gsicc_colorbuffer_t data_cs,
gs_graphics_type_tag_t graphics_type_tag,
cmm_srcgtag_profile_t *srcgtag_profile,
cmm_profile_t **profile, gsicc_rendering_param_t *render_cond)
{
(*profile) = NULL;
(*render_cond).rendering_intent =... | 0 |
307,450 | void setCanCollapseMarginAfterWithChildren(bool collapse) { m_canCollapseMarginAfterWithChildren = collapse; }
| 0 |
395,653 | int manager_load_unit_prepare(
Manager *m,
const char *name,
const char *path,
sd_bus_error *e,
Unit **_ret) {
Unit *ret;
UnitType t;
int r;
assert(m);
assert(name || path);
/* This will pr... | 0 |
481,597 | static inline struct io_kiocb *io_req_find_next(struct io_kiocb *req)
{
struct io_kiocb *nxt;
/*
* If LINK is set, we have dependent requests in this chain. If we
* didn't fail this request, queue the first one up, moving any other
* dependencies to the next request. In case of failure, fail the rest
* of th... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.