hash int64 -9,197,960,073,880,366,000 9,199,363,627B | project stringclasses 2
values | size int64 2 5.68k | label int64 0 1 | functionSource stringlengths 31 235k |
|---|---|---|---|---|
-8,620,097,311,326,519,000 | chrome | 35 | 0 | err_status_t srtp_stream_clone ( const srtp_stream_ctx_t * stream_template , uint32_t ssrc , srtp_stream_ctx_t * * str_ptr ) {
err_status_t status ;
srtp_stream_ctx_t * str ;
debug_print ( mod_srtp , "cloning stream (SSRC: 0x%08x)" , ssrc ) ;
str = ( srtp_stream_ctx_t * ) crypto_alloc ( sizeof ( srtp_stream_ctx_t )... |
-7,990,991,774,694,156,000 | debian | 24 | 1 | static void vp3_draw_horiz_band ( Vp3DecodeContext * s , int y ) {
int h , cy , i ;
int offset [ AV_NUM_DATA_POINTERS ] ;
if ( HAVE_THREADS && s -> avctx -> active_thread_type & FF_THREAD_FRAME ) {
int y_flipped = s -> flipped_image ? s -> avctx -> height - y : y ;
ff_thread_report_progress ( & s -> current_frame ... |
1,760,449,185,745,615,400 | debian | 3 | 0 | TSVConn TSHttpConnect ( sockaddr const * addr ) {
return TSHttpConnectWithPluginId ( addr , "plugin" , 0 ) ;
} |
-4,106,680,724,983,639,000 | chrome | 15 | 1 | static void sbr_qmf_analysis ( AVFloatDSPContext * dsp , FFTContext * mdct , SBRDSPContext * sbrdsp , const float * in , float * x , float z [ 320 ] , float W [ 2 ] [ 32 ] [ 32 ] [ 2 ] , int buf_idx ) {
int i ;
memcpy ( x , x + 1024 , ( 320 - 32 ) * sizeof ( x [ 0 ] ) ) ;
memcpy ( x + 288 , in , 1024 * sizeof ( x [ ... |
-3,889,154,245,145,552,000 | debian | 15 | 0 | static void parse_cat_blob ( const char * p ) {
struct object_entry * oe = oe ;
unsigned char sha1 [ 20 ] ;
if ( * p == ':' ) {
oe = find_mark ( parse_mark_ref_eol ( p ) ) ;
if ( ! oe ) die ( "Unknown mark: %s" , command_buf . buf ) ;
hashcpy ( sha1 , oe -> idx . sha1 ) ;
}
else {
if ( get_sha1_hex ( p , sha1 ... |
1,353,431,100,313,404,400 | chrome | 15 | 0 | static int tile_worker_hook ( TileWorkerData * const tile_data , const TileInfo * const tile ) {
int mi_row , mi_col ;
for ( mi_row = tile -> mi_row_start ;
mi_row < tile -> mi_row_end ;
mi_row += MI_BLOCK_SIZE ) {
vp9_zero ( tile_data -> xd . left_context ) ;
vp9_zero ( tile_data -> xd . left_seg_context ) ;
fo... |
7,320,640,583,188,909,000 | debian | 21 | 1 | static int remoteStreamHandleWriteData ( struct qemud_client * client , struct qemud_client_stream * stream , struct qemud_client_message * msg ) {
remote_error rerr ;
int ret ;
VIR_DEBUG ( "stream=%p proc=%d serial=%d len=%d offset=%d" , stream , msg -> hdr . proc , msg -> hdr . serial , msg -> bufferLength , msg -... |
-2,723,830,976,796,502,500 | chrome | 5 | 0 | static vpx_codec_err_t ctrl_set_static_thresh ( vpx_codec_alg_priv_t * ctx , va_list args ) {
struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;
extra_cfg . static_thresh = CAST ( VP8E_SET_STATIC_THRESHOLD , args ) ;
return update_extra_cfg ( ctx , & extra_cfg ) ;
} |
1,223,258,652,239,369,200 | debian | 14 | 0 | static inline void spl_filesystem_object_get_file_name ( spl_filesystem_object * intern TSRMLS_DC ) {
char slash = SPL_HAS_FLAG ( intern -> flags , SPL_FILE_DIR_UNIXPATHS ) ? '/' : DEFAULT_SLASH ;
switch ( intern -> type ) {
case SPL_FS_INFO : case SPL_FS_FILE : if ( ! intern -> file_name ) {
php_error_docref ( NUL... |
927,123,821,003,322,000 | chrome | 4 | 0 | IN_PROC_BROWSER_TEST_F ( SessionRestorePageLoadMetricsBrowserTest , NoSessionRestore ) {
ui_test_utils : : NavigateToURL ( browser ( ) , GetTestURL ( ) ) ;
ExpectFirstPaintMetricsTotalCount ( 0 ) ;
} |
6,871,081,691,104,220,000 | debian | 30 | 0 | static void fill_scaling_lists ( struct dxva_context * ctx , const H264Context * h , DXVA_Qmatrix_H264 * qm ) {
unsigned i , j ;
memset ( qm , 0 , sizeof ( * qm ) ) ;
if ( ctx -> workaround & FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG ) {
for ( i = 0 ;
i < 6 ;
i ++ ) for ( j = 0 ;
j < 16 ;
j ++ ) qm -> bScalingLis... |
9,175,972,616,340,456,000 | debian | 17 | 0 | static char * * create_argv_help ( const char * path , const char * command , const char * subcommand ) {
char * * req_argv = NULL ;
const char * program ;
if ( subcommand == NULL ) req_argv = xcalloc ( 3 , sizeof ( char * ) ) ;
else req_argv = xcalloc ( 4 , sizeof ( char * ) ) ;
program = strrchr ( path , '/' ) ;... |
-6,126,432,314,261,452,000 | debian | 4 | 0 | int gs_flushpage ( gs_gstate * pgs ) {
gx_device * dev = gs_currentdevice ( pgs ) ;
return ( * dev_proc ( dev , sync_output ) ) ( dev ) ;
} |
1,760,449,185,745,615,400 | debian | 5 | 0 | TSMimeParser TSMimeParserCreate ( void ) {
TSMimeParser parser = reinterpret_cast < TSMimeParser > ( ats_malloc ( sizeof ( MIMEParser ) ) ) ;
mime_parser_init ( ( MIMEParser * ) parser ) ;
return parser ;
} |
-6,231,193,035,097,910,000 | debian | 25 | 0 | int ASN1_BIT_STRING_set_bit ( ASN1_BIT_STRING * a , int n , int value ) {
int w , v , iv ;
unsigned char * c ;
w = n / 8 ;
v = 1 << ( 7 - ( n & 0x07 ) ) ;
iv = ~ v ;
if ( ! value ) v = 0 ;
if ( a == NULL ) return 0 ;
a -> flags &= ~ ( ASN1_STRING_FLAG_BITS_LEFT | 0x07 ) ;
if ( ( a -> length < ( w + 1 ) ) || ( ... |
-3,889,154,245,145,552,000 | debian | 8 | 0 | static uintmax_t parse_mark_ref_space ( const char * * p ) {
uintmax_t mark ;
char * end ;
mark = parse_mark_ref ( * p , & end ) ;
if ( * end ++ != ' ' ) die ( "Missing space after mark: %s" , command_buf . buf ) ;
* p = end ;
return mark ;
} |
7,092,216,800,726,730,000 | debian | 4 | 0 | int dissect_h245_TransportAddress ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_TransportAddress , TransportAddress_choice , NULL ) ;
return offset ;
} |
-910,422,676,404,244,100 | debian | 8 | 0 | static inline void loco_update_rice_param ( RICEContext * r , int val ) {
r -> sum += val ;
r -> count ++ ;
if ( r -> count == 16 ) {
r -> sum >>= 1 ;
r -> count >>= 1 ;
}
} |
-2,504,372,172,279,755,000 | debian | 18 | 0 | static int mimic_decode_update_thread_context ( AVCodecContext * avctx , const AVCodecContext * avctx_from ) {
MimicContext * dst = avctx -> priv_data , * src = avctx_from -> priv_data ;
int i , ret ;
if ( avctx == avctx_from ) return 0 ;
dst -> cur_index = src -> next_cur_index ;
dst -> prev_index = src -> next_p... |
-7,855,974,557,509,681,000 | debian | 12 | 0 | Oid get_range_subtype ( Oid rangeOid ) {
HeapTuple tp ;
tp = SearchSysCache1 ( RANGETYPE , ObjectIdGetDatum ( rangeOid ) ) ;
if ( HeapTupleIsValid ( tp ) ) {
Form_pg_range rngtup = ( Form_pg_range ) GETSTRUCT ( tp ) ;
Oid result ;
result = rngtup -> rngsubtype ;
ReleaseSysCache ( tp ) ;
return result ;
}
else... |
-6,024,601,983,167,899,000 | debian | 10 | 0 | static void cancel_activate_callback ( gpointer callback_data ) {
ActivateParameters * parameters = callback_data ;
parameters -> timed_wait_active = FALSE ;
g_cancellable_cancel ( parameters -> cancellable ) ;
if ( parameters -> files_handle ) {
nautilus_file_list_cancel_call_when_ready ( parameters -> files_hand... |
6,667,142,528,452,942,000 | debian | 14 | 0 | static char * getTableName ( int reset ) {
static MYSQL_RES * res = NULL ;
MYSQL_ROW row ;
if ( ! res ) {
if ( ! ( res = mysql_list_tables ( mysql , NullS ) ) ) return ( NULL ) ;
}
if ( ( row = mysql_fetch_row ( res ) ) ) return ( ( char * ) row [ 0 ] ) ;
if ( reset ) mysql_data_seek ( res , 0 ) ;
else {
mysql... |
-398,565,394,354,770,750 | debian | 6 | 0 | static void ohci_async_cancel_device ( OHCIState * ohci , USBDevice * dev ) {
if ( ohci -> async_td && usb_packet_is_inflight ( & ohci -> usb_packet ) && ohci -> usb_packet . ep -> dev == dev ) {
usb_cancel_packet ( & ohci -> usb_packet ) ;
ohci -> async_td = 0 ;
}
} |
1,223,258,652,239,369,200 | debian | 10 | 1 | SPL_METHOD ( SplFileObject , fgets ) {
spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;
if ( zend_parse_parameters_none ( ) == FAILURE ) {
return ;
}
if ( spl_filesystem_file_read ( intern , 0 TSRMLS_CC ) == FAILURE ) {
RETURN_FALSE ;
}
RETURN... |
-6,704,066,512,670,389,000 | debian | 13 | 0 | static int lookup_uname_helper ( struct cpio * cpio , const char * * name , id_t id ) {
struct passwd * pwent ;
( void ) cpio ;
errno = 0 ;
pwent = getpwuid ( ( uid_t ) id ) ;
if ( pwent == NULL ) {
* name = NULL ;
if ( errno != 0 && errno != ENOENT ) lafe_warnc ( errno , "getpwuid(%s) failed" , cpio_i64toa ( ( ... |
9,118,387,177,353,442,000 | debian | 42 | 0 | void web_server_callback ( http_parser_t * parser , INOUT http_message_t * req , SOCKINFO * info ) {
int ret ;
int timeout = - 1 ;
enum resp_type rtype = 0 ;
membuffer headers ;
membuffer filename ;
struct xml_alias_t xmldoc ;
struct SendInstruction RespInstr ;
RespInstr . IsVirtualFile = 0 ;
RespInstr . IsChu... |
-341,028,540,041,678,100 | debian | 17 | 0 | static u_long getkeyid ( const char * keyprompt ) {
int c ;
FILE * fi ;
char pbuf [ 20 ] ;
size_t i ;
size_t ilim ;
# ifndef SYS_WINNT if ( ( fi = fdopen ( open ( "/dev/tty" , 2 ) , "r" ) ) == NULL ) # else if ( ( fi = _fdopen ( open ( "CONIN$" , _O_TEXT ) , "r" ) ) == NULL ) # endif fi = stdin ;
else setbuf ( f... |
5,045,872,831,385,413,000 | debian | 27 | 0 | static bluetooth_uuid_t get_service_uuid_from_handle ( packet_info * pinfo , guint32 handle , bluetooth_data_t * bluetooth_data ) {
wmem_tree_key_t key [ 4 ] ;
guint32 frame_number ;
handle_data_t * handle_data ;
wmem_tree_t * sub_wmemtree ;
bluetooth_uuid_t uuid ;
memset ( & uuid , 0 , sizeof uuid ) ;
frame_num... |
-2,928,324,134,072,492,500 | debian | 54 | 0 | static int iax2_calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * iax2_info ) {
voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;
GList * list ;
voip_calls_info_t * callsinfo = NULL ;
address * phone ;
const iax2_info_t * ii = ( const iax2_info_t * ) iax2_info ;
i... |
-7,670,127,399,145,951,000 | debian | 4 | 0 | op_array_table * get_op_array ( const gs_memory_t * mem , int size ) {
gs_main_instance * minst = get_minst_from_memory ( mem ) ;
return op_index_op_array_table ( minst -> i_ctx_p , size ) ;
} |
8,445,816,931,248,660,000 | debian | 18 | 0 | static void spl_ptr_llist_unshift ( spl_ptr_llist * llist , void * data TSRMLS_DC ) {
spl_ptr_llist_element * elem = emalloc ( sizeof ( spl_ptr_llist_element ) ) ;
elem -> data = data ;
elem -> rc = 1 ;
elem -> prev = NULL ;
elem -> next = llist -> head ;
if ( llist -> head ) {
llist -> head -> prev = elem ;
}
... |
-4,960,438,251,319,819,000 | chrome | 10 | 0 | static void set_first_pass_params ( VP9_COMP * cpi ) {
VP9_COMMON * const cm = & cpi -> common ;
if ( ! cpi -> refresh_alt_ref_frame && ( cm -> current_video_frame == 0 || ( cpi -> frame_flags & FRAMEFLAGS_KEY ) ) ) {
cm -> frame_type = KEY_FRAME ;
}
else {
cm -> frame_type = INTER_FRAME ;
}
cpi -> rc . frames_... |
7,549,435,794,356,072,000 | debian | 4 | 0 | static VALUE ossl_asn1_ ## klass ( int argc , VALUE * argv , VALUE self ) \ {
return rb_funcall3 ( cASN1 ## klass , rb_intern ( "new" ) , argc , argv ) ;
}
OSSL_ASN1_IMPL_FACTORY_METHOD ( Boolean ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Integer ) OSSL_ASN1_IMPL_FACTORY_METHOD ( Enumerated ) OSSL_ASN1_IMPL_FACTORY_METHOD ( ... |
-938,099,838,013,462,900 | debian | 4 | 0 | static void parse_context_init ( SchroParseUnitContext * parse_ctx , const uint8_t * buf , int buf_size ) {
parse_ctx -> buf = buf ;
parse_ctx -> buf_size = buf_size ;
} |
8,849,962,823,026,424,000 | debian | 11 | 1 | static gboolean qio_channel_websock_source_check ( GSource * source ) {
QIOChannelWebsockSource * wsource = ( QIOChannelWebsockSource * ) source ;
GIOCondition cond = 0 ;
if ( wsource -> wioc -> rawinput . offset || wsource -> wioc -> io_eof ) {
cond |= G_IO_IN ;
}
if ( wsource -> wioc -> rawoutput . offset < QIO... |
-6,107,005,761,225,945,000 | debian | 5 | 0 | static int php_is_file_ok ( const cwd_state * state ) {
struct stat buf ;
if ( php_sys_stat ( state -> cwd , & buf ) == 0 && S_ISREG ( buf . st_mode ) ) return ( 0 ) ;
return ( 1 ) ;
} |
-1,711,362,334,384,181,200 | chrome | 40 | 0 | const hb_shaper_pair_t * _hb_shapers_get ( void ) {
retry : hb_shaper_pair_t * shapers = ( hb_shaper_pair_t * ) hb_atomic_ptr_get ( & static_shapers ) ;
if ( unlikely ( ! shapers ) ) {
char * env = getenv ( "HB_SHAPER_LIST" ) ;
if ( ! env || ! * env ) {
( void ) hb_atomic_ptr_cmpexch ( & static_shapers , NULL , & ... |
7,092,216,800,726,730,000 | debian | 4 | 0 | static int dissect_h245_OCTET_STRING_SIZE_16 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 16 , 16 , FALSE , NULL ) ;
return offset ;
} |
8,461,782,184,979,846,000 | chrome | 21 | 0 | TEST_F ( ProtocolHandlerRegistryTest , TestSilentlyRegisterHandler ) {
ProtocolHandler ph1 = CreateProtocolHandler ( "test" , GURL ( "http://test/1/%s" ) ) ;
ProtocolHandler ph2 = CreateProtocolHandler ( "test" , GURL ( "http://test/2/%s" ) ) ;
ProtocolHandler ph3 = CreateProtocolHandler ( "ignore" , GURL ( "http://... |
8,693,230,691,624,197,000 | chrome | 13 | 0 | IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , OnChangeSplitWithNoOTRProfile ) {
PrefService * prefs = profile_ -> GetPrefs ( ) ;
prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , true ) ;
extensions : : ResultCatcher catcher ;
ExtensionTestMessageListener loaded_incognito_test_listener ( "incognito ... |
5,357,882,892,791,796,000 | debian | 11 | 0 | static inline uint32_t e1000e_ring_free_descr_num ( E1000ECore * core , const E1000E_RingInfo * r ) {
trace_e1000e_ring_free_space ( r -> idx , core -> mac [ r -> dlen ] , core -> mac [ r -> dh ] , core -> mac [ r -> dt ] ) ;
if ( core -> mac [ r -> dh ] <= core -> mac [ r -> dt ] ) {
return core -> mac [ r -> dt ] ... |
-3,740,862,514,502,467,000 | debian | 18 | 0 | static FILE * checkdupstoredtable ( SplineFont * sf , uint32 tag , int * len , struct alltabs * all , int me ) {
int i ;
struct ttf_table * tab = SFFindTable ( sf , tag ) , * test ;
if ( tab == NULL ) {
* len = 0 ;
return ( NULL ) ;
}
for ( i = 0 ;
i < me ;
++ i ) {
test = SFFindTable ( all [ i ] . sf , tag )... |
7,037,573,792,123,851,000 | debian | 3 | 0 | static PHP_NAMED_FUNCTION ( zif_zip_entry_compressionmethod ) {
php_zip_entry_get_info ( INTERNAL_FUNCTION_PARAM_PASSTHRU , 3 ) ;
} |
-2,723,830,976,796,502,500 | chrome | 5 | 0 | static vpx_codec_err_t ctrl_set_noise_sensitivity ( vpx_codec_alg_priv_t * ctx , va_list args ) {
struct vp9_extracfg extra_cfg = ctx -> extra_cfg ;
extra_cfg . noise_sensitivity = CAST ( VP9E_SET_NOISE_SENSITIVITY , args ) ;
return update_extra_cfg ( ctx , & extra_cfg ) ;
} |
-2,943,582,541,244,388,000 | chrome | 36 | 0 | unsigned int vp9_sub_pixel_avg_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse , const uint8_t * second_pred ) {
uint16_t fdata3 [ ( H + 1 ) * W ] ;
uint8_t temp2 [ H * W ] ;
DECLARE_ALIGNED_ARRAY ( 16 , uint... |
6,030,508,190,585,699,000 | debian | 236 | 1 | static int flic_decode_frame_8BPP ( AVCodecContext * avctx , void * data , int * got_frame , const uint8_t * buf , int buf_size ) {
FlicDecodeContext * s = avctx -> priv_data ;
GetByteContext g2 ;
int stream_ptr_after_color_chunk ;
int pixel_ptr ;
int palette_ptr ;
unsigned char palette_idx1 ;
unsigned char pale... |
1,760,449,185,745,615,400 | debian | 3 | 0 | const char * TSRedirectUrlGet ( TSHttpTxn txnp , int * url_len_ptr ) {
return TSHttpTxnRedirectUrlGet ( txnp , url_len_ptr ) ;
} |
3,599,206,110,384,554,500 | debian | 27 | 0 | int PEM_write_bio_ ## name ( BIO * bp , type * x ) ;
# define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ;
# define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int ... |
-6,228,844,445,714,760,000 | debian | 8 | 0 | static int fts_parser_script_deinit ( struct fts_parser * _parser ) {
struct script_fts_parser * parser = ( struct script_fts_parser * ) _parser ;
int ret = parser -> failed ? - 1 : 0 ;
if ( close ( parser -> fd ) < 0 ) i_error ( "close(%s) failed: %m" , parser -> path ) ;
i_free ( parser -> path ) ;
i_free ( pars... |
-8,178,805,850,432,685,000 | debian | 49 | 0 | static gboolean dissect_iwarp_mpa ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data ) {
tvbuff_t * next_tvb = NULL ;
conversation_t * conversation = NULL ;
mpa_state_t * state = NULL ;
struct tcpinfo * tcpinfo ;
guint8 endpoint = 3 ;
guint16 ulpdu_length = 0 ;
if ( data == NULL ) return FA... |
-5,300,415,683,778,647,000 | chrome | 3 | 0 | IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , ExtensionBubbleAnchoredToAppMenuWithOtherAction ) {
TestBubbleAnchoredToAppMenuWithOtherAction ( ) ;
} |
-6,552,851,419,396,579,000 | debian | 22 | 0 | static int SpoolssReplyOpenPrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {
dcerpc_call_value * dcv = ( dcerpc_call_value * ) di -> call_data ;
e_ctx_hnd policy_hnd ;
proto_item * hnd_item ;
guint32 status ;
offset = dissect_nt_policy_hnd ... |
-769,658,847,024,738,700 | debian | 8 | 0 | static gpgme_error_t add_io_cb ( engine_uiserver_t uiserver , iocb_data_t * iocbd , gpgme_io_cb_t handler ) {
gpgme_error_t err ;
TRACE_BEG2 ( DEBUG_ENGINE , "engine-uiserver:add_io_cb" , uiserver , "fd %d, dir %d" , iocbd -> fd , iocbd -> dir ) ;
err = ( * uiserver -> io_cbs . add ) ( uiserver -> io_cbs . add_priv ... |
8,849,962,823,026,424,000 | debian | 12 | 0 | static void qio_channel_websock_write_close ( QIOChannelWebsock * ioc , uint16_t code , const char * reason ) {
buffer_reserve ( & ioc -> rawoutput , 2 + ( reason ? strlen ( reason ) : 0 ) ) ;
* ( uint16_t * ) ( ioc -> rawoutput . buffer + ioc -> rawoutput . offset ) = cpu_to_be16 ( code ) ;
ioc -> rawoutput . offse... |
5,045,872,831,385,413,000 | debian | 17 | 0 | static void col_append_info_by_handle ( packet_info * pinfo , guint16 handle , bluetooth_data_t * bluetooth_data ) {
bluetooth_uuid_t service_uuid ;
bluetooth_uuid_t characteristic_uuid ;
bluetooth_uuid_t uuid ;
service_uuid = get_service_uuid_from_handle ( pinfo , handle , bluetooth_data ) ;
characteristic_uuid =... |
-5,511,323,081,862,746,000 | debian | 55 | 1 | static void process_packet_data ( struct wtap_pkthdr * phdr , Buffer * target , guint8 * buffer , gint len , k12_t * k12 ) {
guint32 type ;
guint buffer_offset ;
guint64 ts ;
guint32 length ;
guint32 extra_len ;
guint32 src_id ;
k12_src_desc_t * src_desc ;
phdr -> rec_type = REC_TYPE_PACKET ;
phdr -> presence_... |
-5,361,762,812,461,355,000 | chrome | 123 | 0 | static void U_CALLCONV UConverter_fromUnicode_CompoundText_OFFSETS ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {
UConverter * cnv = args -> converter ;
uint8_t * target = ( uint8_t * ) args -> target ;
const uint8_t * targetLimit = ( const uint8_t * ) args -> targetLimit ;
const UChar * source = args ->... |
3,919,646,340,804,521,500 | debian | 7 | 0 | static int name_cmp_len ( const char * name ) {
int i ;
for ( i = 0 ;
name [ i ] && name [ i ] != '\n' && name [ i ] != '/' ;
i ++ ) ;
return i ;
} |
-2,064,332,158,282,087,200 | debian | 10 | 0 | static int astream_open_output ( struct attachment_istream * astream ) {
int fd ;
i_assert ( astream -> part . temp_fd == - 1 ) ;
fd = astream -> set . open_temp_fd ( astream -> context ) ;
if ( fd == - 1 ) return - 1 ;
astream -> part . temp_fd = fd ;
astream -> part . temp_output = o_stream_create_fd ( fd , 0 ,... |
4,600,167,735,237,264,400 | chrome | 76 | 1 | static uint8_t checkBaseExtUnicode ( UCMStates * baseStates , UCMTable * base , UCMTable * ext , UBool moveToExt , UBool intersectBase ) {
UCMapping * mb , * me , * mbLimit , * meLimit ;
int32_t cmp ;
uint8_t result ;
mb = base -> mappings ;
mbLimit = mb + base -> mappingsLength ;
me = ext -> mappings ;
meLimit ... |
-8,178,805,850,432,685,000 | debian | 12 | 0 | static guint32 number_of_markers ( mpa_state_t * state , struct tcpinfo * tcpinfo , guint8 endpoint ) {
guint32 size ;
guint32 offset ;
size = fpdu_total_length ( tcpinfo ) ;
offset = get_first_marker_offset ( state , tcpinfo , endpoint ) ;
if ( offset < size ) {
return ( ( size - offset ) / MPA_MARKER_INTERVAL )... |
8,461,782,184,979,846,000 | chrome | 6 | 0 | TEST_F ( ProtocolHandlerRegistryTest , IgnoreProtocolHandler ) {
registry ( ) -> OnIgnoreRegisterProtocolHandler ( test_protocol_handler ( ) ) ;
ASSERT_TRUE ( registry ( ) -> IsIgnored ( test_protocol_handler ( ) ) ) ;
registry ( ) -> RemoveIgnoredHandler ( test_protocol_handler ( ) ) ;
ASSERT_FALSE ( registry ( ) ... |
252,275,190,935,145,020 | debian | 6 | 0 | void vp9_read_frame_size ( struct vp9_read_bit_buffer * rb , int * width , int * height ) {
const int w = vp9_rb_read_literal ( rb , 16 ) + 1 ;
const int h = vp9_rb_read_literal ( rb , 16 ) + 1 ;
* width = w ;
* height = h ;
} |
-7,334,302,271,653,595,000 | debian | 9 | 0 | static uint ms_to_precision ( uint ms ) {
uint cut , precision ;
for ( cut = 10 , precision = 6 ;
precision > 0 ;
cut *= 10 , precision -- ) {
if ( ms % cut ) return precision ;
}
return 0 ;
} |
-1,381,237,731,082,039,300 | debian | 14 | 0 | static gboolean ngsniffer_seek_read ( wtap * wth , gint64 seek_off , struct wtap_pkthdr * phdr , Buffer * buf , int * err , gchar * * err_info ) {
int ret ;
if ( ! ng_file_seek_rand ( wth , seek_off , err , err_info ) ) return FALSE ;
ret = ngsniffer_process_record ( wth , TRUE , NULL , phdr , buf , err , err_info )... |
-5,493,081,488,206,620,000 | debian | 8 | 0 | static const char * cmd_audit_log_parts ( cmd_parms * cmd , void * _dcfg , const char * p1 ) {
directory_config * dcfg = _dcfg ;
if ( is_valid_parts_specification ( ( char * ) p1 ) != 1 ) {
return apr_psprintf ( cmd -> pool , "Invalid parts specification for SecAuditLogParts: %s" , p1 ) ;
}
dcfg -> auditlog_parts ... |
7,191,899,184,788,440,000 | debian | 34 | 0 | static COMMANDS * find_command ( char * name ) {
uint len ;
char * end ;
DBUG_ENTER ( "find_command" ) ;
DBUG_ASSERT ( name != NULL ) ;
DBUG_PRINT ( "enter" , ( "name: '%s'" , name ) ) ;
while ( my_isspace ( charset_info , * name ) ) name ++ ;
if ( ( ! real_binary_mode && strstr ( name , "\\g" ) ) || ( strstr ( ... |
5,045,872,831,385,413,000 | debian | 6 | 0 | static gpointer btatt_handle_value ( packet_info * pinfo ) {
guint16 * value_data ;
value_data = ( guint16 * ) p_get_proto_data ( pinfo -> pool , pinfo , proto_btatt , PROTO_DATA_BTATT_HANDLE ) ;
if ( value_data ) return GUINT_TO_POINTER ( ( gulong ) * value_data ) ;
return NULL ;
} |
7,092,216,800,726,730,000 | debian | 4 | 0 | static int dissect_h245_IS11172VideoMode ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_IS11172VideoMode , IS11172VideoMode_sequence ) ;
return offset ;
} |
1,535,921,111,212,871,000 | debian | 37 | 0 | int remoteSendStreamData ( struct qemud_client * client , struct qemud_client_stream * stream , const char * data , unsigned int len ) {
struct qemud_client_message * msg ;
XDR xdr ;
VIR_DEBUG ( "client=%p stream=%p data=%p len=%d" , client , stream , data , len ) ;
if ( VIR_ALLOC ( msg ) < 0 ) {
return - 1 ;
}
... |
6,600,620,671,673,715,000 | debian | 10 | 0 | static byte * i_alloc_byte_array ( gs_memory_t * mem , uint num_elements , uint elt_size , client_name_t cname ) {
gs_ref_memory_t * const imem = ( gs_ref_memory_t * ) mem ;
obj_header_t * obj ;
ulong lsize ;
# ifdef MEMENTO if ( Memento_failThisEvent ( ) ) return NULL ;
# endif if ( alloc_array_check_size ( num_e... |
7,651,945,086,108,393,000 | debian | 10 | 0 | int qemuMonitorJSONSetLink ( qemuMonitorPtr mon , const char * name , enum virDomainNetInterfaceLinkState state ) {
int ret ;
virJSONValuePtr reply = NULL ;
virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( "set_link" , "s:name" , name , "b:up" , state != VIR_DOMAIN_NET_INTERFACE_LINK_STATE_DOWN , NULL ) ;
if ( ! ... |
5,366,785,327,268,799,000 | chrome | 3 | 0 | IN_PROC_BROWSER_TEST_F ( MimeHandlerViewTest , EmbeddedDataUrlLong ) {
RunTest ( "test_embedded_data_url_long.html" ) ;
} |
-6,220,838,201,187,559,000 | debian | 24 | 1 | static char * unescape_word ( struct Curl_easy * data , const char * inputbuff ) {
char * newp ;
char * dictp ;
char * ptr ;
int len ;
char ch ;
int olen = 0 ;
newp = curl_easy_unescape ( data , inputbuff , 0 , & len ) ;
if ( ! newp ) return NULL ;
dictp = malloc ( ( ( size_t ) len ) * 2 + 1 ) ;
if ( dictp ) ... |
2,776,415,072,272,421,400 | debian | 8 | 0 | static void erase_screen ( AVCodecContext * avctx ) {
AnsiContext * s = avctx -> priv_data ;
int i ;
for ( i = 0 ;
i < avctx -> height ;
i ++ ) memset ( s -> frame -> data [ 0 ] + i * s -> frame -> linesize [ 0 ] , DEFAULT_BG_COLOR , avctx -> width ) ;
s -> x = s -> y = 0 ;
} |
1,743,019,814,289,113,000 | debian | 19 | 0 | void ff_h264_direct_dist_scale_factor ( H264Context * const h ) {
const int poc = h -> cur_pic_ptr -> field_poc [ h -> picture_structure == PICT_BOTTOM_FIELD ] ;
const int poc1 = h -> ref_list [ 1 ] [ 0 ] . poc ;
int i , field ;
if ( FRAME_MBAFF ) for ( field = 0 ;
field < 2 ;
field ++ ) {
const int poc = h -> c... |
8,415,334,249,344,417,000 | debian | 62 | 0 | static gint dissect_u3v_descriptors ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree , void * data _U_ ) {
guint8 type ;
gint offset = 0 ;
proto_item * ti ;
proto_tree * sub_tree ;
guint32 version ;
if ( tvb_reported_length ( tvb ) < 2 ) {
return 0 ;
}
type = tvb_get_guint8 ( tvb , 1 ) ;
if ( ty... |
-2,928,324,134,072,492,500 | debian | 293 | 0 | static int unistim_calls_packet ( void * ptr _U_ , packet_info * pinfo , epan_dissect_t * edt _U_ , const void * unistim_info ) {
voip_calls_tapinfo_t * tapinfo = & the_tapinfo_struct ;
voip_calls_info_t * tmp_listinfo ;
voip_calls_info_t * callsinfo = NULL ;
unistim_info_t * tmp_unistim_info = NULL ;
GList * list... |
6,336,384,260,629,386,000 | debian | 14 | 0 | static void dissect_zcl_groups_add_group_or_if_identifying ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) {
guint attr_uint ;
guint8 * attr_string ;
proto_tree_add_item ( tree , hf_zbee_zcl_groups_group_id , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ;
* offset += 2 ;
attr_uint = tvb_get_guint8 ( tvb , * of... |
2,125,998,987,781,803,300 | debian | 14 | 0 | static int ReadDiracPictureNumber ( uint32_t * p_picnum , block_t * p_block ) {
uint32_t u_pos = 4 ;
while ( u_pos + 13 < p_block -> i_buffer ) {
if ( p_block -> p_buffer [ u_pos ] & 0x08 ) {
* p_picnum = GetDWBE ( p_block -> p_buffer + u_pos + 9 ) ;
return 1 ;
}
uint32_t u_npo = GetDWBE ( p_block -> p_buffer + ... |
-9,197,960,073,880,366,000 | debian | 8 | 0 | static int file_eofer ( Gif_Reader * grr ) {
int c = getc ( grr -> f ) ;
if ( c == EOF ) return 1 ;
else {
ungetc ( c , grr -> f ) ;
return 0 ;
}
} |
7,749,168,290,238,235,000 | debian | 21 | 0 | static int test_random_numbers ( xd3_stream * stream , int ignore ) {
usize_t i ;
usize_t sum = 0 ;
usize_t mean = 50 ;
usize_t n_rounds = 1000000 ;
double average , error ;
double allowed_error = 0.1 ;
mt_init ( & static_mtrand , 0x9f73f7fe ) ;
for ( i = 0 ;
i < n_rounds ;
i += 1 ) {
sum += mt_exp_rand ( me... |
-7,042,392,412,001,533,000 | debian | 3 | 0 | void pdf_map_range_to_range ( fz_context * ctx , pdf_cmap * cmap , unsigned int low , unsigned int high , int out ) {
add_range ( ctx , cmap , low , high , out , 1 , 0 ) ;
} |
6,302,861,533,225,985,000 | debian | 2 | 0 | static void pxa2xx_fir_event ( void * opaque , int event ) {
} |
-8,589,152,252,830,018,000 | debian | 56 | 0 | static int kwajd_extract ( struct mskwaj_decompressor * base , struct mskwajd_header * hdr , const char * filename ) {
struct mskwaj_decompressor_p * self = ( struct mskwaj_decompressor_p * ) base ;
struct mspack_system * sys ;
struct mspack_file * fh , * outfh ;
if ( ! self ) return MSPACK_ERR_ARGS ;
if ( ! hdr )... |
3,649,198,920,984,613,400 | debian | 12 | 0 | static inline void vmsvga_update_rect_flush ( struct vmsvga_state_s * s ) {
struct vmsvga_rect_s * rect ;
if ( s -> invalidated ) {
s -> redraw_fifo_first = s -> redraw_fifo_last ;
return ;
}
while ( s -> redraw_fifo_first != s -> redraw_fifo_last ) {
rect = & s -> redraw_fifo [ s -> redraw_fifo_first ++ ] ;
s ... |
6,080,147,530,626,246,000 | debian | 202 | 0 | static int vc1_decode_p_mb ( VC1Context * v ) {
MpegEncContext * s = & v -> s ;
GetBitContext * gb = & s -> gb ;
int i , j ;
int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;
int cbp ;
int mqdiff , mquant ;
int ttmb = v -> ttfrm ;
int mb_has_coeffs = 1 ;
int dmv_x , dmv_y ;
int index , index1 ;
int val ,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.