text stringlengths 70 26.5k | label class label 2
classes | embedding listlengths 768 768 |
|---|---|---|
static inline void dv_decode_video_segment(DVVideoContext *s,
const uint8_t *buf_ptr1,
const uint16_t *mb_pos_ptr)
{
int quant, dc, dct_mode, class1, j;
int mb_index, mb_x, mb_y, v, last_index;
int y_stride, i;
... | 11 | [
-0.4326793849468231,
-0.037005167454481125,
0.2797364890575409,
0.14229848980903625,
-0.6826686263084412,
-0.43652093410491943,
-0.04995863884687424,
0.16424135863780975,
0.3859812617301941,
0.3915989398956299,
-0.15960100293159485,
1.115562915802002,
-0.1446315348148346,
-0.35619699954986... |
static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
AVCodecParserContext *pc, AVPacket *pkt)
{
int num, den, presentation_delayed, delay, i;
int64_t offset;
if (s->flags & AVFMT_FLAG_NOFILLIN)
return;
if((s->flags & AVFMT_FLAG_IGNDTS) && pkt... | 11 | [
-0.33978110551834106,
0.10022483021020889,
0.3266172707080841,
0.0981217622756958,
-0.5036623477935791,
-0.5268767476081848,
-0.06742125749588013,
0.2009662687778473,
0.43939080834388733,
0.3914797902107239,
-0.2553061842918396,
1.1011075973510742,
-0.352486789226532,
-0.11215776205062866,... |
static void coroutine_fn bdrv_flush_co_entry(void *opaque)
{
RwCo *rwco = opaque;
rwco->ret = bdrv_co_flush(rwco->bs);
}
| 00 | [
0.04079414904117584,
0.1797715425491333,
0.16318710148334503,
-0.36527347564697266,
0.34970521926879883,
0.11170625686645508,
0.12941096723079681,
0.036001067608594894,
0.5170232057571411,
0.24904543161392212,
0.010814651846885681,
-0.02228201925754547,
-0.1648387610912323,
-0.140015333890... |
static int get_phys_addr_lpae(CPUARMState *env, target_ulong address,
int access_type, int is_user,
hwaddr *phys_ptr, int *prot,
target_ulong *page_size_ptr)
{
CPUState *cs = CPU(arm_env_get_cpu(env));
/* Read an LPA... | 11 | [
-0.46407437324523926,
-0.024662867188453674,
0.25947999954223633,
0.16018253564834595,
-0.7066195011138916,
-0.4759388267993927,
-0.06521356105804443,
0.13209936022758484,
0.42870181798934937,
0.4620783030986786,
-0.08450271189212799,
1.1101481914520264,
-0.19190484285354614,
-0.1305423676... |
static void nvdimm_build_fit_buffer(NvdimmFitBuffer *fit_buf)
{
qemu_mutex_lock(&fit_buf->lock);
g_array_free(fit_buf->fit, true);
fit_buf->fit = nvdimm_build_device_structure();
fit_buf->dirty = true;
qemu_mutex_unlock(&fit_buf->lock);
}
| 00 | [
-0.09725464135408401,
0.004869523458182812,
0.2621731758117676,
0.10548253357410431,
0.8872084617614746,
0.019671596586704254,
0.26376840472221375,
0.15896016359329224,
0.09684538841247559,
0.0969000905752182,
0.14416244626045227,
-0.17343859374523163,
0.06197390332818031,
0.19699263572692... |
static void bdrv_qed_refresh_limits(BlockDriverState *bs, Error **errp)
{
BDRVQEDState *s = bs->opaque;
bs->bl.write_zeroes_alignment = s->header.cluster_size >> BDRV_SECTOR_BITS;
}
| 00 | [
0.19019359350204468,
0.0695972666144371,
0.17754805088043213,
-0.08531112968921661,
0.40094536542892456,
0.07484406977891922,
0.2617577910423279,
0.01509370282292366,
0.14638113975524902,
0.10266895592212677,
0.007521805353462696,
-0.06084971874952316,
0.14816156029701233,
-0.1705271005630... |
static int svq1_decode_delta_block(MpegEncContext *s, GetBitContext *bitbuf,
uint8_t *current, uint8_t *previous,
int pitch, svq1_pmv *motion, int x, int y)
{
uint32_t block_type;
int result = 0;
/* get block type */
block_ty... | 00 | [
-0.4586654305458069,
0.1263469159603119,
0.3252466917037964,
0.12715508043766022,
-0.7504303455352783,
-0.6444380879402161,
-0.061604730784893036,
0.21246282756328583,
0.6075505018234253,
0.4756777286529541,
-0.1766330897808075,
1.091029167175293,
-0.2567470073699951,
-0.14309316873550415,... |
static void x86_cpu_initfn(Object *obj)
{
CPUState *cs = CPU(obj);
X86CPU *cpu = X86_CPU(obj);
X86CPUClass *xcc = X86_CPU_GET_CLASS(obj);
CPUX86State *env = &cpu->env;
FeatureWord w;
cs->env_ptr = env;
cpu_exec_init(cs, &error_abort);
object_property_add(obj, "family", "int"... | 00 | [
-0.43249884247779846,
0.09891900420188904,
0.22739839553833008,
0.10102379322052002,
-0.6793620586395264,
-0.5100234746932983,
-0.04652395099401474,
0.1916860193014145,
0.3894954025745392,
0.42847582697868347,
-0.10650484263896942,
1.2138473987579346,
-0.16174939274787903,
-0.1921673715114... |
static inline int ff_mpeg4_pred_dc(MpegEncContext * s, int n, int level, int *dir_ptr, int encoding)
{
int a, b, c, wrap, pred, scale, ret;
int16_t *dc_val;
/* find prediction */
if (n < 4) {
scale = s->y_dc_scale;
} else {
scale = s->c_dc_scale;
}
if(IS_3IV1)
... | 00 | [
-0.3702733516693115,
0.09451736509799957,
0.33031973242759705,
0.29433465003967285,
-0.6246907114982605,
-0.5360074639320374,
-0.09808725863695145,
0.19281572103500366,
0.36945006251335144,
0.40347394347190857,
-0.10139097273349762,
1.2216932773590088,
-0.3058992624282837,
-0.0907489582896... |
static int read_mv_component(VP56RangeCoder *c, const uint8_t *p)
{
int bit, x = 0;
if (vp56_rac_get_prob_branchy(c, p[0])) {
int i;
for (i = 0; i < 3; i++)
x += vp56_rac_get_prob(c, p[9 + i]) << i;
for (i = 9; i > 3; i--)
x += vp56_rac_get_prob(c, p[9... | 11 | [
-0.3822622299194336,
0.0203410591930151,
0.2903444170951843,
0.16639092564582825,
-0.7073057889938354,
-0.4860152006149292,
-0.10976812988519669,
0.1442859023809433,
0.36510372161865234,
0.3620331585407257,
-0.024013318121433258,
1.0295333862304688,
-0.231196790933609,
0.11120570451021194,... |
static struct addrinfo *inet_parse_connect_opts(QemuOpts *opts, Error **errp)
{
struct addrinfo ai, *res;
int rc;
const char *addr;
const char *port;
memset(&ai, 0, sizeof(ai));
ai.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;
ai.ai_family = PF_UNSPEC;
ai.ai_socktype = SOCK_STREA... | 11 | [
-0.3353402614593506,
0.02961946837604046,
0.3181363046169281,
0.15802615880966187,
-0.35875576734542847,
-0.6498872637748718,
0.0638650432229042,
0.2745688259601593,
0.36920166015625,
0.3376436233520508,
-0.041126005351543427,
1.004488229751587,
-0.32429689168930054,
-0.03506612032651901,
... |
static void close_connection(HTTPContext *c)
{
HTTPContext **cp, *c1;
int i, nb_streams;
AVFormatContext *ctx;
URLContext *h;
AVStream *st;
/* remove connection from list */
cp = &first_http_ctx;
while ((*cp) != NULL) {
c1 = *cp;
if (c1 == c) {
*... | 00 | [
-0.3667426109313965,
0.06557358056306839,
0.3358584940433502,
0.11218252032995224,
-0.6966050267219543,
-0.5121617317199707,
-0.09433923661708832,
0.2025146484375,
0.4812713861465454,
0.38496220111846924,
-0.09747657179832458,
1.2068166732788086,
-0.280375599861145,
-0.04793894663453102,
... |
static AVStream *add_av_stream1(FFStream *stream, AVCodecContext *codec, int copy)
{
AVStream *fst;
fst = av_mallocz(sizeof(AVStream));
if (!fst)
return NULL;
if (copy) {
fst->codec= avcodec_alloc_context();
memcpy(fst->codec, codec, sizeof(AVCodecContext));
if... | 00 | [
-0.403215616941452,
0.037931159138679504,
0.2869164049625397,
0.07664649188518524,
-0.5962265133857727,
-0.5582112669944763,
-0.02143976092338562,
0.17107996344566345,
0.39460286498069763,
0.3449416756629944,
-0.10113762319087982,
1.0090646743774414,
-0.24570097029209137,
-0.15651036798954... |
void ppc_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf,
int flags)
{
#define RGPL 4
#define RFPL 4
PowerPCCPU *cpu = POWERPC_CPU(cs);
CPUPPCState *env = &cpu->env;
int i;
cpu_fprintf(f, "NIP " TARGET_FMT_lx " LR " TARGET_FMT_lx " CTR "
... | 11 | [
-0.3048454523086548,
-0.05849755182862282,
0.253861665725708,
0.29277825355529785,
-0.46307939291000366,
-0.5324548482894897,
0.0412554107606411,
0.19446465373039246,
0.3995257019996643,
0.2946549952030182,
-0.12061797827482224,
1.2375338077545166,
-0.10941986739635468,
-0.1142981424927711... |
static void to_meta_with_crop(AVCodecContext *avctx, AVFrame *p, int *dest)
{
int blockx, blocky, x, y;
int luma = 0;
int height = FFMIN(avctx->height, C64YRES);
int width = FFMIN(avctx->width , C64XRES);
uint8_t *src = p->data[0];
for (blocky = 0; blocky < C64YRES; blocky += 8) {
... | 00 | [
-0.4238361716270447,
0.11876265704631805,
0.2917693257331848,
0.1355258673429489,
-0.7105230093002319,
-0.6030213832855225,
-0.15687158703804016,
0.12524285912513733,
0.48880845308303833,
0.43785056471824646,
-0.15998324751853943,
1.0768110752105713,
-0.27778127789497375,
-0.20862258970737... |
static void common_unbind(struct common *c)
{
xen_be_unbind_evtchn(&c->xendev);
if (c->page) {
munmap(c->page, XC_PAGE_SIZE);
c->page = NULL;
}
}
| 11 | [
0.08438454568386078,
-0.08549854159355164,
0.08104730397462845,
0.0935480147600174,
0.5268145203590393,
-0.15558360517024994,
0.2430722862482071,
0.22861164808273315,
0.19561025500297546,
0.005144110880792141,
0.15330004692077637,
0.013408011756837368,
-0.3147308826446533,
-0.1959953606128... |
void OPPROTO op_addl_EDI_T0(void)
{
EDI = (uint32_t)(EDI + T0);
}
| 00 | [
-0.002621100749820471,
-0.28212714195251465,
0.2144547402858734,
0.14804121851921082,
-0.33429551124572754,
-0.3223222494125366,
0.2701565623283386,
0.22753140330314636,
-0.09671522676944733,
0.11566324532032013,
-0.345037579536438,
-0.16478458046913147,
-0.41102302074432373,
-0.2414190918... |
static int mpegts_init(AVFormatContext *s)
{
MpegTSWrite *ts = s->priv_data;
MpegTSWriteStream *ts_st;
MpegTSService *service;
AVStream *st, *pcr_st = NULL;
AVDictionaryEntry *title, *provider;
int i, j;
const char *service_name;
const char *provider_name;
int *pids;
i... | 11 | [
-0.33329764008522034,
0.03869522362947464,
0.3023034930229187,
0.28726866841316223,
-0.4549947679042816,
-0.46657347679138184,
0.03227510303258896,
0.2444860190153122,
0.34751999378204346,
0.29830116033554077,
-0.06217584013938904,
1.093916416168213,
-0.2816025912761688,
-0.105616033077239... |
static int svq1_decode_frame(AVCodecContext *avctx, void *data,
int *data_size, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MpegEncContext *s = avctx->priv_data;
uint8_t *current, *previous;
int result, i, x, y, width, h... | 00 | [
-0.37887540459632874,
-0.04748952388763428,
0.32990533113479614,
0.17851056158542633,
-0.516907811164856,
-0.530461311340332,
0.01360570453107357,
0.18577440083026886,
0.4146536588668823,
0.32465600967407227,
-0.1309342384338379,
1.1897220611572266,
-0.22298896312713623,
-0.121687814593315... |
int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt)
{
int ret, flush = 0;
ret = check_packet(s, pkt);
if (ret < 0)
goto fail;
if (pkt) {
AVStream *st = s->streams[pkt->stream_index];
//FIXME/XXX/HACK drop zero sized packets
if (st->codec->code... | 00 | [
-0.323458194732666,
-0.007099326234310865,
0.3199140727519989,
0.18810561299324036,
-0.4544205665588379,
-0.6577187776565552,
-0.008792576380074024,
0.15076817572116852,
0.4289626479148865,
0.36193227767944336,
-0.137863889336586,
1.076249361038208,
-0.28873834013938904,
-0.046960927546024... |
static void dbdma_cmdptr_save(DBDMA_channel *ch)
{
DBDMA_DPRINTF("dbdma_cmdptr_save 0x%08x\n",
be32_to_cpu(ch->regs[DBDMA_CMDPTR_LO]));
DBDMA_DPRINTF("xfer_status 0x%08x res_count 0x%04x\n",
le16_to_cpu(ch->current.xfer_status),
le16_to_cpu(ch->current... | 00 | [
-0.13857269287109375,
-0.11386674642562866,
0.3447328805923462,
0.10556679964065552,
0.01812107302248478,
-0.2667565941810608,
0.07543079555034637,
0.03166778385639191,
0.1461036205291748,
0.11055487394332886,
-0.018883809447288513,
0.6457305550575256,
-0.09562838077545166,
0.3048728704452... |
void bdrv_img_create(const char *filename, const char *fmt,
const char *base_filename, const char *base_fmt,
char *options, uint64_t img_size, int flags,
Error **errp, bool quiet)
{
QEMUOptionParameter *param = NULL, *create_options = NULL;
QE... | 00 | [
-0.41869810223579407,
0.07344227284193039,
0.3311976492404938,
0.15443870425224304,
-0.7215384840965271,
-0.5235864520072937,
-0.1168244481086731,
0.23103639483451843,
0.5349917411804199,
0.42468687891960144,
-0.14908534288406372,
1.104748249053955,
-0.21251341700553894,
-0.268780529499053... |
static inline void RENAME(rgb32to16)(const uint8_t *src, uint8_t *dst, unsigned src_size)
{
const uint8_t *s = src;
const uint8_t *end;
#ifdef HAVE_MMX
const uint8_t *mm_end;
#endif
uint16_t *d = (uint16_t *)dst;
end = s + src_size;
#ifdef HAVE_MMX
mm_end = end - 15;
#if 1 //is faster only if multiplie... | 11 | [
-0.36977002024650574,
0.07525797933340073,
0.2276717871427536,
0.14114615321159363,
0.1344323605298996,
-0.1955241560935974,
0.005788069684058428,
0.109209805727005,
0.15800069272518158,
0.31153690814971924,
-0.21016156673431396,
1.0210731029510498,
-0.14682212471961975,
-0.416889607906341... |
BdrvNextIterator *bdrv_next(BdrvNextIterator *it, BlockDriverState **bs)
{
if (!it) {
it = g_new(BdrvNextIterator, 1);
*it = (BdrvNextIterator) {
.phase = BDRV_NEXT_BACKEND_ROOTS,
};
}
/* First, return all root nodes of BlockBackends. In order to avoid
* r... | 11 | [
-0.36815008521080017,
0.06627333909273148,
0.3910248875617981,
0.10034770518541336,
-0.6077910661697388,
-0.5129091143608093,
-0.05491234362125397,
0.25215426087379456,
0.38538676500320435,
0.3739356994628906,
-0.21372701227664948,
1.0800225734710693,
-0.19078058004379272,
-0.0557400956749... |
get_pointer_coordinates(int *x, int *y, Display *dpy, AVFormatContext *s1)
{
Window mrootwindow, childwindow;
int dummy;
mrootwindow = DefaultRootWindow(dpy);
if (XQueryPointer(dpy, mrootwindow, &mrootwindow, &childwindow,
x, y, &dummy, &dummy, (unsigned int*)&dummy)) {
... | 00 | [
0.0405212864279747,
0.16356712579727173,
0.24800056219100952,
-0.0553293377161026,
0.22638282179832458,
-0.031102057546377182,
0.12018133699893951,
0.16648709774017334,
0.3918565511703491,
0.12215330451726913,
-0.11986230313777924,
0.3034017086029053,
-0.09277792274951935,
0.01625380478799... |
static int32_t ide_nop_int32(IDEDMA *dma, int x)
{
return 0;
}
| 11 | [
0.058874789625406265,
-0.057299673557281494,
0.023435959592461586,
-0.18270482122898102,
0.3564811050891876,
0.08055027574300766,
0.19881966710090637,
0.17562642693519592,
0.4435863196849823,
0.12451394647359848,
-0.07034748792648315,
0.05671611428260803,
-0.03274733945727348,
-0.163583964... |
static void *qpa_thread_in (void *arg)
{
PAVoiceIn *pa = arg;
HWVoiceIn *hw = &pa->hw;
int threshold;
threshold = conf.divisor ? hw->samples / conf.divisor : 0;
if (audio_pt_lock (&pa->pt, AUDIO_FUNC)) {
return NULL;
}
for (;;) {
int incr, to_grab, wpos;
... | 00 | [
-0.4199615716934204,
0.02608088031411171,
0.33126676082611084,
0.12966397404670715,
-0.7885820865631104,
-0.6864982843399048,
-0.125412255525589,
0.15825194120407104,
0.4457482099533081,
0.3157092034816742,
-0.005699499510228634,
1.1317003965377808,
-0.31153756380081177,
0.0803438127040863... |
static void cirrus_mem_writeb_mode4and5_16bpp(CirrusVGAState * s,
unsigned mode,
unsigned offset,
uint32_t mem_value)
{
int x;
unsigned val = mem_value;
uint8_t *dst;
dst = s->vram_ptr + offset;
for (x = 0; x < 8; x++) {
if (val & 0x80) {
*dst = s-... | 11 | [
-0.24552184343338013,
0.11549536138772964,
0.09788526594638824,
0.043529998511075974,
-0.1735299527645111,
0.052014682441949844,
0.06596153974533081,
0.12351563572883606,
0.19000022113323212,
0.15107247233390808,
-0.13405220210552216,
0.822128415107727,
-0.07597164064645767,
0.005141651257... |
sPAPROptionVector *spapr_ovec_new(void)
{
sPAPROptionVector *ov;
ov = g_new0(sPAPROptionVector, 1);
ov->bitmap = bitmap_new(OV_MAXBITS);
return ov;
} | 11 | [
0.21697816252708435,
-0.06418043375015259,
0.19159826636314392,
0.040775321424007416,
1.036130666732788,
-0.1334151327610016,
0.4927951991558075,
0.28062549233436584,
0.061057694256305695,
-0.20693473517894745,
-0.0720607116818428,
0.15398207306861877,
0.023102855309844017,
0.3447391986846... |
DVDemuxContext* avpriv_dv_init_demux(AVFormatContext *s)
{
DVDemuxContext *c;
c = av_mallocz(sizeof(DVDemuxContext));
if (!c)
return NULL;
c->vst = avformat_new_stream(s, NULL);
if (!c->vst) {
av_free(c);
return NULL;
}
c->sys = NULL;
c->fctx = ... | 00 | [
-0.19488757848739624,
-0.020162025466561317,
0.13247480988502502,
0.02529190480709076,
-0.22231414914131165,
-0.5198800563812256,
0.19194132089614868,
0.3171035051345825,
0.3809475600719452,
0.14887559413909912,
0.046979501843452454,
0.9387592077255249,
-0.14287739992141724,
0.103343844413... |
tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr)
{
tcg_target_ulong next_tb = 0;
tci_reg[TCG_AREG0] = (tcg_target_ulong)env;
assert(tb_ptr);
for (;;) {
#if defined(GETPC)
tci_tb_ptr = (uintptr_t)tb_ptr;
#endif
TCGOpcode opc = tb_ptr[0];
#if !defined(NDE... | 00 | [
-0.4649617075920105,
-0.08558546751737595,
0.18872839212417603,
0.09461522102355957,
-0.7005234956741333,
-0.3460630774497986,
-0.020061295479536057,
0.08612339198589325,
0.2880854606628418,
0.33964723348617554,
-0.16648176312446594,
1.1084702014923096,
-0.21524354815483093,
-0.26974135637... |
static int ehci_state_fetchitd(EHCIState *ehci, int async)
{
uint32_t entry;
EHCIitd itd;
assert(!async);
entry = ehci_get_fetch_addr(ehci, async);
get_dwords(NLPTR_GET(entry),(uint32_t *) &itd,
sizeof(EHCIitd) >> 2);
ehci_trace_itd(ehci, entry, &itd);
if (ehci_... | 00 | [
-0.2439788430929184,
0.07263454794883728,
0.16616593301296234,
0.01584634743630886,
0.20718613266944885,
-0.5239046812057495,
0.07053882628679276,
0.24761039018630981,
0.38773220777511597,
0.03911275044083595,
-0.10819672793149948,
0.7755946516990662,
0.00541131105273962,
0.037316083908081... |
static float pvq_band_cost(CeltPVQ *pvq, CeltFrame *f, OpusRangeCoder *rc, int band,
float *bits, float lambda)
{
int i, b = 0;
uint32_t cm[2] = { (1 << f->blocks) - 1, (1 << f->blocks) - 1 };
const int band_size = ff_celt_freq_range[band] << f->size;
float buf[176 * 2],... | 11 | [
-0.4460129737854004,
-0.023548180237412453,
0.2734282612800598,
0.1950991153717041,
-0.5485548973083496,
-0.47833138704299927,
-0.049211494624614716,
0.18987327814102173,
0.29711970686912537,
0.35921522974967957,
-0.1136823296546936,
1.120847463607788,
-0.17923235893249512,
-0.270065009593... |
static int opt_output_file(const char *opt, const char *filename)
{
AVFormatContext *oc;
int i, err;
AVOutputFormat *file_oformat;
OutputStream *ost;
InputStream *ist;
if (!strcmp(filename, "-"))
filename = "pipe:";
err = avformat_alloc_output_context2(&oc, NULL, last_a... | 00 | [
-0.3771992325782776,
-0.027083903551101685,
0.319949746131897,
0.15469053387641907,
-0.4974329471588135,
-0.5276699066162109,
0.042726367712020874,
0.2515909671783447,
0.40289753675460815,
0.37693485617637634,
-0.1563536524772644,
1.1590418815612793,
-0.25603386759757996,
-0.09748991578817... |
static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
{
AVFilterLink *outlink = inlink->dst->outputs[0];
AVFilterBufferRef *outpicref = NULL;
int ret = 0;
if (inpicref->perms & AV_PERM_PRESERVE) {
outpicref = ff_get_video_buffer(outlink, AV_PERM_WRITE,
... | 00 | [
-0.3778408169746399,
0.041935618966817856,
0.2855738401412964,
0.05558489263057709,
-0.5740301012992859,
-0.6520196795463562,
-0.004273266531527042,
0.2719336152076721,
0.42267143726348877,
0.36834827065467834,
-0.13130062818527222,
1.0158747434616089,
-0.24401788413524628,
-0.238621771335... |
int ff_tak_decode_frame_header(AVCodecContext *avctx, GetBitContext *gb,
TAKStreamInfo *ti, int log_level_offset)
{
if (get_bits(gb, TAK_FRAME_HEADER_SYNC_ID_BITS) != TAK_FRAME_HEADER_SYNC_ID) {
av_log(avctx, AV_LOG_ERROR + log_level_offset, "missing sync id\n");
... | 00 | [
-0.4551457464694977,
0.0638728141784668,
0.35798609256744385,
0.03417368233203888,
-0.7082341909408569,
-0.664656400680542,
-0.07263626158237457,
0.2925419211387634,
0.5068069696426392,
0.4488888680934906,
-0.15209358930587769,
1.1622564792633057,
-0.3552180230617523,
-0.24310055375099182,... |
static void find_peaks(DCAEncContext *c)
{
int band, ch;
for (band = 0; band < 32; band++)
for (ch = 0; ch < c->fullband_channels; ch++) {
int sample;
int32_t m = 0;
for (sample = 0; sample < SUBBAND_SAMPLES; sample++) {
int32_t s = abs(c->... | 00 | [
-0.42464518547058105,
-0.031223027035593987,
0.2957666516304016,
0.10471892356872559,
-0.49875932931900024,
-0.4982549548149109,
-0.033937565982341766,
0.16518592834472656,
0.40781086683273315,
0.30471205711364746,
-0.011012695729732513,
0.9851104617118835,
-0.2093479186296463,
0.043504782... |
static NetSocketState *net_socket_fd_init_stream(VLANState *vlan,
const char *model,
const char *name,
int fd, int is_connected)
{
NetSocketState *s;
s = qemu_... | 11 | [
-0.32501041889190674,
0.025539163500070572,
0.2830834984779358,
0.1038532629609108,
-0.3170015811920166,
-0.5370086431503296,
-0.026420429348945618,
0.2043686807155609,
0.5140632390975952,
0.38107654452323914,
-0.19739605486392975,
1.0588327646255493,
-0.1624526083469391,
0.066967770457267... |
static void vp6_build_huff_tree(VP56Context *s, uint8_t coeff_model[],
const uint8_t *map, unsigned size, VLC *vlc)
{
Node nodes[2*size], *tmp = &nodes[size];
int a, b, i;
/* first compute probabilities from model */
tmp[0].count = 256;
for (i=0; i<size-1; i+... | 11 | [
-0.26910510659217834,
-0.12105001509189606,
0.18993791937828064,
0.13241629302501678,
-0.25710245966911316,
-0.34929943084716797,
0.08689513057470322,
0.1580542027950287,
0.37362736463546753,
0.10139015316963196,
-0.1476292610168457,
0.9262423515319824,
-0.18111971020698547,
0.203508168458... |
int dyngen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf,
const uint8_t *searched_pc)
{
return tcg_gen_code_common(s, gen_code_buf, 1, searched_pc);
}
| 11 | [
-0.08776458352804184,
-0.10280308127403259,
0.04878699779510498,
-0.09407788515090942,
0.42915311455726624,
-0.05199122801423073,
0.4301201105117798,
0.22030988335609436,
0.5916413068771362,
-0.006947242189198732,
0.14443229138851166,
0.4843180775642395,
-0.005770028103142977,
0.0953869149... |
qemu_irq *mcf_intc_init(MemoryRegion *sysmem,
target_phys_addr_t base,
CPUM68KState *env)
{
mcf_intc_state *s;
s = g_malloc0(sizeof(mcf_intc_state));
s->env = env;
mcf_intc_reset(s);
memory_region_init_io(&s->iomem, &mcf_intc_ops, s, "mcf",... | 00 | [
-0.25245726108551025,
0.21105872094631195,
0.060101404786109924,
0.09901852905750275,
0.45324793457984924,
-0.5230780243873596,
0.0947532057762146,
0.2594835162162781,
0.30405494570732117,
0.06022744998335838,
0.09051912277936935,
1.1683743000030518,
-0.03398910537362099,
0.102708637714385... |
static void dec_sru(DisasContext *dc)
{
if (dc->format == OP_FMT_RI) {
LOG_DIS("srui r%d, r%d, %d\n", dc->r1, dc->r0, dc->imm5);
} else {
LOG_DIS("sru r%d, r%d, r%d\n", dc->r2, dc->r0, dc->r1);
}
if (dc->format == OP_FMT_RI) {
if (!(dc->features & LM32_FEATURE_SHIFT) &&... | 00 | [
-0.4555705785751343,
-0.02528824843466282,
0.3015010356903076,
0.19374915957450867,
-0.7107647061347961,
-0.5491653680801392,
-0.03613260015845299,
0.18569232523441315,
0.3904378414154053,
0.3814607262611389,
-0.12293680012226105,
1.2237308025360107,
-0.256672203540802,
-0.0622699856758117... |
static void pnv_chip_realize(DeviceState *dev, Error **errp)
{
PnvChip *chip = PNV_CHIP(dev);
Error *error = NULL;
PnvChipClass *pcc = PNV_CHIP_GET_CLASS(chip);
char *typename = pnv_core_typename(pcc->cpu_model);
size_t typesize = object_type_get_instance_size(typename);
int i, core_hwid;
if... | 11 | [
-0.44107067584991455,
-0.011261402629315853,
0.2541939318180084,
0.1559096872806549,
-0.48332321643829346,
-0.3749597668647766,
-0.011533938348293304,
0.18710944056510925,
0.3049766421318054,
0.3944736421108246,
-0.1414790004491806,
1.2176649570465088,
-0.16843697428703308,
-0.099618814885... |
void virtio_scsi_dataplane_notify(VirtIODevice *vdev, VirtIOSCSIReq *req)
{
if (virtio_should_notify(vdev, req->vq)) {
event_notifier_set(virtio_queue_get_guest_notifier(req->vq));
}
}
| 11 | [
-0.0698789730668068,
0.0825863629579544,
0.052632931619882584,
-0.04148630052804947,
0.25506624579429626,
-0.11121059209108353,
0.24362027645111084,
0.16393935680389404,
0.3568628132343292,
0.24355459213256836,
-0.13029421865940094,
0.18157878518104553,
-0.228450745344162,
-0.2257860153913... |
static int decode_pce(AVCodecContext *avctx, MPEG4AudioConfig *m4ac,
uint8_t (*layout_map)[3],
GetBitContext *gb)
{
int num_front, num_side, num_back, num_lfe, num_assoc_data, num_cc, sampling_index;
int comment_len;
int tags;
skip_bits(gb, 2); // ob... | 11 | [
-0.4296547770500183,
0.06610273569822311,
0.2851308286190033,
0.11285185813903809,
-0.627684473991394,
-0.5759369134902954,
0.02874167263507843,
0.25219297409057617,
0.478338360786438,
0.398124635219574,
-0.18912997841835022,
1.119577169418335,
-0.3004986643791199,
-0.2747690677642822,
1... |
int do_netdev_add(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
QemuOpts *opts;
int res;
opts = qemu_opts_from_qdict(&qemu_netdev_opts, qdict);
if (!opts) {
return -1;
res = net_client_init(mon, opts, 1);
return res; | 11 | [
0.15741172432899475,
-0.08561129122972488,
0.17628291249275208,
-0.2934221625328064,
0.6875342130661011,
0.1743532419204712,
0.11015592515468597,
-0.0008499451214447618,
0.5240333080291748,
0.2517024874687195,
0.1884060800075531,
0.2702154219150543,
0.009857754223048687,
0.3297487497329712... |
void do_405_check_ov (void)
{
if (likely(((T1 ^ T2) >> 31) || !((T0 ^ T2) >> 31))) {
xer_ov = 0;
} else {
xer_ov = 1;
xer_so = 1;
}
}
| 11 | [
0.15820781886577606,
-0.1338036209344864,
0.07540172338485718,
0.11197710037231445,
-0.06445537507534027,
0.21496735513210297,
0.30073875188827515,
0.030436720699071884,
0.3064742386341095,
-0.12593358755111694,
0.1012958288192749,
-0.14243388175964355,
0.2366165965795517,
0.75421321392059... |
av_cold void ff_sws_init_input_funcs(SwsContext *c)
{
enum PixelFormat srcFormat = c->srcFormat;
c->chrToYV12 = NULL;
switch(srcFormat) {
case PIX_FMT_YUYV422 : c->chrToYV12 = yuy2ToUV_c; break;
case PIX_FMT_UYVY422 : c->chrToYV12 = uyvyToUV_c; break;
case PIX_FMT_NV12 ... | 11 | [
-0.43993079662323,
0.25812670588493347,
0.3893792927265167,
-0.2267318218946457,
-0.7899962067604065,
-0.7192932367324829,
-0.16366586089134216,
0.17353582382202148,
0.5239413976669312,
0.5956727266311646,
-0.1923290640115738,
0.9477969408035278,
-0.4547789990901947,
-0.17066293954849243,
... |
static int test_vector_dmac_scalar(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp,
const double *v1, const double *src0, double scale)
{
LOCAL_ALIGNED(32, double, cdst, [LEN]);
LOCAL_ALIGNED(32, double, odst, [LEN]);
int ret;
memcpy(cdst, v1, LEN * sizeof(*v1... | 00 | [
-0.2974214255809784,
0.1410607099533081,
0.24707967042922974,
-0.01902497373521328,
-0.2777516841888428,
-0.6188663244247437,
0.09705891460180283,
0.20758718252182007,
0.30435168743133545,
0.1308189034461975,
-0.04375051334500313,
0.970475435256958,
-0.025740690529346466,
0.083616882562637... |
static uint32_t apic_mem_readb(void *opaque, target_phys_addr_t addr)
{
return 0;
}
| 00 | [
0.02927241660654545,
-0.22378963232040405,
0.14900775253772736,
-0.046216800808906555,
0.39148229360580444,
0.10154218971729279,
0.2840767502784729,
0.16484364867210388,
0.20529070496559143,
-0.003112781560048461,
0.056668974459171295,
0.1101631298661232,
0.1126369908452034,
0.124980822205... |
int opt_default(const char *opt, const char *arg){
int type;
const AVOption *o= NULL;
int opt_types[]={AV_OPT_FLAG_VIDEO_PARAM, AV_OPT_FLAG_AUDIO_PARAM, 0, AV_OPT_FLAG_SUBTITLE_PARAM, 0};
for(type=0; type<CODEC_TYPE_NB; type++){
const AVOption *o2 = av_find_opt(avctx_opts[0], opt, NULL, o... | 00 | [
-0.41585803031921387,
0.05099313706159592,
0.2892637252807617,
0.13807812333106995,
-0.7265875339508057,
-0.4580361843109131,
-0.02098090387880802,
0.15762092173099518,
0.3523518443107605,
0.3368613123893738,
-0.020870812237262726,
1.1692867279052734,
-0.3150632679462433,
-0.11069242656230... |
static av_cold int bfi_decode_init(AVCodecContext *avctx)
{
BFIContext *bfi = avctx->priv_data;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
bfi->dst = av_mallocz(avctx->width * avctx->height);
return 0;
} | 11 | [
0.04488353058695793,
-0.054853975772857666,
0.0033966696355491877,
-0.2270510047674179,
0.4452629089355469,
0.13829243183135986,
0.3281053900718689,
0.2949436902999878,
0.2482684701681137,
-0.004071136470884085,
0.16829460859298706,
0.4725695550441742,
0.280644029378891,
0.4674920439720154... |
void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
{
// Common optimizations whether Altivec is available or not
switch (check_dcbzl_effect()) {
case 32:
c->clear_blocks = clear_blocks_dcbz32_ppc;
break;
case 128:
c->clear_blocks = clear_blocks_dcbz128_ppc;
break;
defaul... | 00 | [
-0.45801204442977905,
0.16390898823738098,
0.270290732383728,
-0.07498104870319366,
-0.6072959303855896,
-0.7350499629974365,
-0.049234937876462936,
0.2145686000585556,
0.3302483856678009,
0.4645392894744873,
-0.12448130548000336,
0.9754296541213989,
-0.2551223039627075,
-0.221122115850448... |
void qmp_guest_shutdown(bool has_mode, const char *mode, Error **err)
{
UINT shutdown_flag = EWX_FORCE;
slog("guest-shutdown called, mode: %s", mode);
if (!has_mode || strcmp(mode, "powerdown") == 0) {
shutdown_flag |= EWX_POWEROFF;
} else if (strcmp(mode, "halt") == 0) {
shut... | 11 | [
-0.3816198706626892,
0.07871187478303909,
0.3331587314605713,
0.0799637883901596,
-0.15942052006721497,
-0.6763249635696411,
0.06814833730459213,
0.27036428451538086,
0.449493944644928,
0.36268380284309387,
-0.12095481157302856,
0.8900083303451538,
-0.31373000144958496,
0.01502873841673135... |
static void test_io_channel_unix(bool async)
{
SocketAddress *listen_addr = g_new0(SocketAddress, 1);
SocketAddress *connect_addr = g_new0(SocketAddress, 1);
#define TEST_SOCKET "test-io-channel-socket.sock"
listen_addr->type = SOCKET_ADDRESS_KIND_UNIX;
listen_addr->u.q_unix = g_new0(UnixSocketA... | 00 | [
-0.3019808828830719,
-0.01315165963023901,
0.14598889648914337,
-0.137872576713562,
0.00611982773989439,
-0.43078187108039856,
0.21847563982009888,
0.29455745220184326,
0.14233741164207458,
0.29450035095214844,
-0.12818069756031036,
0.7528181076049805,
-0.063193678855896,
-0.02398669160902... |
ssize_t v9fs_list_xattr(FsContext *ctx, const char *path,
void *value, size_t vsize)
{
ssize_t size = 0;
char *buffer;
void *ovalue = value;
XattrOperations *xops;
char *orig_value, *orig_value_start;
ssize_t xattr_len, parsed_len = 0, attr_len;
/* Get the ... | 11 | [
-0.4006481468677521,
0.016902878880500793,
0.3175825774669647,
0.12386251986026764,
-0.7298792600631714,
-0.425876259803772,
-0.10540707409381866,
0.21134650707244873,
0.38339266180992126,
0.41191184520721436,
-0.15523870289325714,
1.157823085784912,
-0.22026389837265015,
-0.21887676417827... |
static void numa_node_parse(NumaNodeOptions *node, QemuOpts *opts, Error **errp)
{
uint16_t nodenr;
uint16List *cpus = NULL;
if (node->has_nodeid) {
nodenr = node->nodeid;
} else {
nodenr = nb_numa_nodes;
}
if (nodenr >= MAX_NODES) {
error_setg(errp, "Max nu... | 00 | [
-0.404829204082489,
0.03067394532263279,
0.3716563582420349,
0.07863840460777283,
-0.6030051708221436,
-0.5816289186477661,
-0.05096513032913208,
0.2838394045829773,
0.4075106382369995,
0.425027459859848,
-0.23726868629455566,
1.0944608449935913,
-0.29790979623794556,
-0.2131764441728592,
... |
static av_always_inline void h264_filter_mb_fast_internal(const H264Context *h,
H264SliceContext *sl,
int mb_x, int mb_y,
uint8_t *img_y,
... | 00 | [
-0.3788362145423889,
0.08810363709926605,
0.15206201374530792,
0.23920634388923645,
-1.0407090187072754,
-0.49848780035972595,
-0.22826948761940002,
0.15740452706813812,
0.7219942808151245,
0.627824604511261,
-0.20226603746414185,
1.1457737684249878,
-0.15387603640556335,
-0.12911462783813... |
static void vp8_decode_mb_row_no_filter(AVCodecContext *avctx, void *tdata,
int jobnr, int threadnr)
{
decode_mb_row_no_filter(avctx, tdata, jobnr, threadnr, 0);
}
| 11 | [
-0.25384193658828735,
-0.13723790645599365,
0.3144921660423279,
0.1044619083404541,
0.6848000884056091,
0.06468292325735092,
0.4890485405921936,
0.08684314787387848,
0.4343246817588806,
0.09918200969696045,
0.008214659988880157,
-0.024567842483520508,
0.06605471670627594,
0.331552922725677... |
static int nprobe(AVFormatContext *s, uint8_t *enc_header, int size, const uint8_t *n_val)
{
OMAContext *oc = s->priv_data;
uint32_t pos, taglen, datalen;
struct AVDES av_des;
if (!enc_header || !n_val)
return -1;
pos = OMA_ENC_HEADER_SIZE + oc->k_size;
if (!memcmp(&enc_heade... | 00 | [
-0.36579376459121704,
-0.03899841383099556,
0.34383541345596313,
0.17178434133529663,
-0.6232720613479614,
-0.5635184049606323,
0.05454819276928902,
0.25482049584388733,
0.38133886456489563,
0.3607879877090454,
-0.0782162994146347,
1.0755548477172852,
-0.2537345886230469,
-0.03382812067866... |
static void cpu_openrisc_load_kernel(ram_addr_t ram_size,
const char *kernel_filename,
OpenRISCCPU *cpu)
{
long kernel_size;
uint64_t elf_entry;
hwaddr entry;
if (kernel_filename && !qtest_enabled()) {
kernel_siz... | 00 | [
-0.5270859599113464,
0.03254804015159607,
0.2614983320236206,
0.09977032244205475,
-0.9167177677154541,
-0.5992536544799805,
-0.10349158197641373,
0.20545566082000732,
0.651917576789856,
0.4957340657711029,
-0.22189664840698242,
1.163231372833252,
-0.2105468511581421,
-0.14229243993759155,... |
static int hda_audio_post_load(void *opaque, int version)
{
HDAAudioState *a = opaque;
HDAAudioStream *st;
int i;
dprint(a, 1, "%s\n", __FUNCTION__);
if (version == 1) {
/* assume running_compat[] is for output streams */
for (i = 0; i < ARRAY_SIZE(a->running_compat); i++)
... | 00 | [
-0.33071169257164,
-0.060594864189624786,
0.22483617067337036,
0.13222481310367584,
-0.20067910850048065,
-0.3352287709712982,
0.07050634175539017,
0.28070852160453796,
0.34522294998168945,
0.13994581997394562,
0.030156299471855164,
0.8576832413673401,
-0.0806698128581047,
0.19077345728874... |
static void iothread_complete(UserCreatable *obj, Error **errp)
{
Error *local_error = NULL;
IOThread *iothread = IOTHREAD(obj);
iothread->stopping = false;
iothread->thread_id = -1;
iothread->ctx = aio_context_new(&local_error);
if (!iothread->ctx) {
error_propagate(errp, loca... | 00 | [
-0.33621126413345337,
0.05895432457327843,
0.4092788100242615,
0.13746605813503265,
-0.3214380741119385,
-0.5662243366241455,
0.13320474326610565,
0.2896207571029663,
0.4322342574596405,
0.3110603392124176,
-0.22046566009521484,
1.1050586700439453,
-0.2350328415632248,
0.002641348633915186... |
static void coroutine_fn backup_run(void *opaque)
{
BackupBlockJob *job = opaque;
BackupCompleteData *data;
BlockDriverState *bs = job->common.bs;
BlockDriverState *target = job->target;
BlockdevOnError on_target_error = job->on_target_error;
NotifierWithReturn before_write = {
.... | 11 | [
-0.37717193365097046,
0.010052927769720554,
0.3319151997566223,
0.17651411890983582,
-0.528511106967926,
-0.4957280158996582,
0.06702788174152374,
0.15450173616409302,
0.3210689127445221,
0.32680249214172363,
-0.12128075957298279,
1.2030694484710693,
-0.18703854084014893,
-0.13207365572452... |
QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops)
{
QEMUFile *f;
f = g_malloc0(sizeof(QEMUFile));
f->opaque = opaque;
f->ops = ops;
return f;
}
| 11 | [
0.13338503241539001,
-0.09090222418308258,
0.1377280354499817,
-0.18958884477615356,
0.36259782314300537,
0.18368500471115112,
0.18663643300533295,
0.227124884724617,
0.26312142610549927,
0.14861303567886353,
0.07236998528242111,
0.13192766904830933,
-0.10580809414386749,
0.105783104896545... |
static always_inline target_phys_addr_t get_pgaddr (target_phys_addr_t sdr1,
int sdr_sh,
target_phys_addr_t hash,
target_phys_addr_t mask)
{
return (sdr1 &... | 11 | [
-0.2707253396511078,
0.03558206558227539,
-0.012943538837134838,
0.0476013645529747,
-0.03451366722583771,
-0.05295979231595993,
0.01541087031364441,
0.08375489711761475,
0.5469121336936951,
0.18270865082740784,
-0.32970115542411804,
0.8702480792999268,
0.1122247651219368,
0.17173525691032... |
void ff_avg_dirac_pixels16_sse2(uint8_t *dst, const uint8_t *src[5], int stride, int h)
{
if (h&3)
ff_avg_dirac_pixels16_c(dst, src, stride, h);
else
ff_avg_pixels16_sse2(dst, src[0], stride, h);
}
| 00 | [
0.0274265855550766,
0.18139487504959106,
0.23606005311012268,
-0.3751911222934723,
0.5982168912887573,
0.013969141989946365,
0.27074378728866577,
0.07745206356048584,
0.22282399237155914,
-0.0872717946767807,
0.17936626076698303,
0.24151259660720825,
0.3408505320549011,
0.43681150674819946... |
static inline void gen_movs(DisasContext *s, int ot)
{
gen_string_movl_A0_ESI(s);
gen_op_ld_T0_A0(ot + s->mem_index);
gen_string_movl_A0_EDI(s);
gen_op_st_T0_A0(ot + s->mem_index);
gen_op_movl_T0_Dshift[ot]();
#ifdef TARGET_X86_64
if (s->aflag == 2) {
gen_op_addq_ESI_T0();
... | 00 | [
-0.24020196497440338,
-0.19739609956741333,
0.3780263662338257,
-0.10095450282096863,
-0.22845754027366638,
-0.3103896379470825,
0.14306485652923584,
0.3340260982513428,
0.3443987965583801,
0.2275935262441635,
-0.0188595000654459,
0.7843124866485596,
-0.16129696369171143,
0.219965025782585... |
static void img_copy(uint8_t *dst, int dst_wrap,
uint8_t *src, int src_wrap,
int width, int height)
{
for(;height > 0; height--) {
memcpy(dst, src, width);
dst += dst_wrap;
src += src_wrap;
}
}
| 00 | [
-0.025056838989257812,
-0.20544980466365814,
0.17492711544036865,
0.12450069189071655,
0.23102974891662598,
-0.0593833364546299,
0.07275763899087906,
0.2281617373228073,
0.1138104498386383,
-0.003872599685564637,
-0.18308702111244202,
0.004826799035072327,
-0.033802758902311325,
0.28278952... |
DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)
{
const char *buf;
const char *file = NULL;
char devname[128];
const char *serial;
const char *mediastr = "";
BlockInterfaceType type;
enum { MEDIA_DISK, MEDIA_CDROM } media;
int bus_id, unit_id;
int cyls, heads, se... | 11 | [
-0.26875850558280945,
0.07133375853300095,
0.18297865986824036,
0.2452051043510437,
-0.4598824083805084,
-0.42696118354797363,
0.03612595051527023,
0.07440203428268433,
0.20326051115989685,
0.21155591309070587,
0.03343456611037254,
1.0189963579177856,
-0.21445488929748535,
-0.2644819319248... |
static int sdl_init_out (HWVoiceOut *hw, audsettings_t *as)
{
SDLVoiceOut *sdl = (SDLVoiceOut *) hw;
SDLAudioState *s = &glob_sdl;
SDL_AudioSpec req, obt;
int shift;
int endianess;
int err;
audfmt_e effective_fmt;
audsettings_t obt_as;
shift <<= as->nchannels == 2;
... | 00 | [
-0.40810614824295044,
0.048743609338998795,
0.3653445541858673,
0.06957811117172241,
-0.6335422992706299,
-0.5400772094726562,
-0.025243408977985382,
0.28691720962524414,
0.4096260964870453,
0.36473479866981506,
-0.06275063753128052,
1.03480863571167,
-0.2767719626426697,
-0.13239759206771... |
yuv2mono_2_c_template(SwsContext *c, const int16_t *buf[2],
const int16_t *ubuf[2], const int16_t *vbuf[2],
const int16_t *abuf[2], uint8_t *dest, int dstW,
int yalpha, int uvalpha, int y,
enum PixelFormat target)
{
const ... | 11 | [
-0.40282702445983887,
-0.01002003438770771,
0.24682067334651947,
0.2628284692764282,
-0.6848334074020386,
-0.5178921222686768,
-0.10787607729434967,
0.15841183066368103,
0.4750756621360779,
0.3490877151489258,
0.014419888146221638,
1.1936380863189697,
-0.2736853063106537,
-0.18747183680534... |
void ff_rtp_send_h264(AVFormatContext *s1, const uint8_t *buf1, int size)
{
const uint8_t *r, *end = buf1 + size;
RTPMuxContext *s = s1->priv_data;
s->timestamp = s->cur_timestamp;
s->buf_ptr = s->buf;
if (s->nal_length_size)
r = ff_avc_mp4_find_startcode(buf1, end, s->nal_length_... | 11 | [
-0.3969773054122925,
-0.03486674651503563,
0.3039698004722595,
0.13919423520565033,
-0.7118162512779236,
-0.47861558198928833,
-0.022450841963291168,
0.18386471271514893,
0.3402753472328186,
0.37416011095046997,
-0.06701365858316422,
1.1743323802947998,
-0.2184654176235199,
-0.064319767057... |
static av_cold int movie_common_init(AVFilterContext *ctx)
{
MovieContext *movie = ctx->priv;
AVInputFormat *iformat = NULL;
int64_t timestamp;
int nb_streams, ret, i;
char default_streams[16], *stream_specs, *spec, *cursor;
char name[16];
AVStream *st;
if (!*movie->file_name)... | 00 | [
-0.36721813678741455,
-0.003287479281425476,
0.3309776186943054,
0.20956017076969147,
-0.47204285860061646,
-0.6175464391708374,
0.01899947039783001,
0.28005003929138184,
0.4001578986644745,
0.36613938212394714,
-0.1635437160730362,
1.0402286052703857,
-0.23473870754241943,
-0.098938032984... |
int32 floatx80_to_int32_round_to_zero( floatx80 a STATUS_PARAM )
{
flag aSign;
int32 aExp, shiftCount;
uint64_t aSig, savedASig;
int32 z;
aSig = extractFloatx80Frac( a );
aExp = extractFloatx80Exp( a );
aSign = extractFloatx80Sign( a );
if ( 0x401E < aExp ) {
if ( ( a... | 11 | [
-0.3167556822299957,
0.0843997597694397,
0.3179994225502014,
0.08752400428056717,
-0.36995619535446167,
-0.2601391673088074,
-0.06651603430509567,
0.19327443838119507,
0.42340022325515747,
0.3344065546989441,
-0.15143880248069763,
1.0054931640625,
-0.23043735325336456,
-0.14298532903194427... |
static int v4l2_read_header(AVFormatContext *s1)
{
struct video_data *s = s1->priv_data;
AVStream *st;
int res = 0;
uint32_t desired_format;
enum AVCodecID codec_id = AV_CODEC_ID_NONE;
enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE;
struct v4l2_input input = { 0 };
st = avformat... | 11 | [
-0.3517639935016632,
-0.035236380994319916,
0.29662972688674927,
0.18035739660263062,
-0.5003465414047241,
-0.5594906210899353,
0.10065071284770966,
0.1798083484172821,
0.31698349118232727,
0.327349454164505,
0.01332891546189785,
1.1631007194519043,
-0.2578783929347992,
-0.1273240000009536... |
static void uart_write(void *opaque, target_phys_addr_t addr, uint64_t value,
unsigned size)
{
MilkymistUartState *s = opaque;
unsigned char ch = value;
trace_milkymist_uart_memory_write(addr, value);
addr >>= 2;
switch (addr) {
case R_RXTX:
if (s->chr... | 00 | [
-0.3655936121940613,
0.016017019748687744,
0.26500317454338074,
0.12104363739490509,
-0.30745771527290344,
-0.6548929214477539,
0.03758786991238594,
0.16871421039104462,
0.37582284212112427,
0.36043623089790344,
-0.15115976333618164,
1.0338914394378662,
-0.25966590642929077,
0.004684477113... |
static int ppce500_load_device_tree(MachineState *machine,
PPCE500Params *params,
hwaddr addr,
hwaddr initrd_base,
hwaddr initrd_size,
... | 11 | [
-0.44385629892349243,
0.07530070841312408,
0.17724326252937317,
0.12923209369182587,
-0.8382026553153992,
-0.486564040184021,
-0.16688501834869385,
0.2155737280845642,
0.4986823499202728,
0.5012632012367249,
-0.1988278031349182,
1.1632499694824219,
-0.19273312389850616,
-0.1374703645706176... |
static int oss_init_in (HWVoiceIn *hw, struct audsettings *as)
{
OSSVoiceIn *oss = (OSSVoiceIn *) hw;
struct oss_params req, obt;
int endianness;
int err;
int fd;
audfmt_e effective_fmt;
struct audsettings obt_as;
oss->fd = -1;
req.fmt = aud_to_ossfmt (as->fmt, as->endi... | 11 | [
-0.37372055649757385,
0.0934615284204483,
0.39463913440704346,
-0.0015801992267370224,
-0.677683413028717,
-0.5633980631828308,
-0.03362136334180832,
0.2858198285102844,
0.4175718426704407,
0.35471466183662415,
-0.08235642313957214,
1.060227870941162,
-0.28099119663238525,
-0.1158602684736... |
static void ttafilter_init(TTAContext *s, TTAFilter *c, int32_t shift) {
memset(c, 0, sizeof(TTAFilter));
if (s->pass) {
int i;
for (i = 0; i < 8; i++)
c->qm[i] = sign_extend(s->crc_pass[i], 8);
}
c->shift = shift;
c->round = shift_1[shift-1];
// c->round = 1 <... | 00 | [
-0.024264277890324593,
-0.2204711139202118,
0.20410875976085663,
0.3918139636516571,
0.26132622361183167,
-0.13580691814422607,
0.21688304841518402,
0.3641814589500427,
0.09611229598522186,
-0.0829414427280426,
0.03972216695547104,
0.33723652362823486,
-0.21317921578884125,
0.2050386071205... |
int img_pad(AVPicture *dst, const AVPicture *src, int height, int width,
int pix_fmt, int padtop, int padbottom, int padleft, int padright,
int *color)
{
uint8_t *optr, *iptr;
int y_shift;
int x_shift;
int yheight;
int i, y;
if (pix_fmt < 0 || pix_fmt >= PIX_FM... | 00 | [
-0.46515321731567383,
0.05912948027253151,
0.3527486324310303,
0.11671330034732819,
-0.744962215423584,
-0.5857957601547241,
-0.1316671371459961,
0.21340490877628326,
0.5535164475440979,
0.4640375077724457,
-0.16146841645240784,
0.9901543855667114,
-0.3098653554916382,
-0.12016864866018295... |
void usb_generic_async_ctrl_complete(USBDevice *s, USBPacket *p)
{
if (p->len < 0) {
s->setup_state = SETUP_STATE_IDLE;
}
switch (s->setup_state) {
case SETUP_STATE_SETUP:
if (p->len < s->setup_len) {
s->setup_len = p->len;
}
s->setup_state = SETUP... | 11 | [
-0.2642165720462799,
-0.00632296921685338,
0.3775854706764221,
0.028074100613594055,
-0.007380306255072355,
-0.4690825939178467,
0.1107388436794281,
0.3847332298755646,
0.45266810059547424,
0.26369088888168335,
0.06635323166847229,
0.5823031663894653,
-0.15636387467384338,
0.41077178716659... |
static always_inline void gen_intermediate_code_internal (CPUState *env,
TranslationBlock *tb,
int search_pc)
{
DisasContext ctx, *ctxp = &ctx;
opc_handler_t **table, *handler;
target_ul... | 00 | [
-0.39760690927505493,
0.040299028158187866,
0.2599807381629944,
0.14166727662086487,
-0.7230677008628845,
-0.41926977038383484,
-0.0616254061460495,
0.16983133554458618,
0.4444783627986908,
0.49701598286628723,
-0.19927069544792175,
1.0609941482543945,
-0.22407282888889313,
-0.222318291664... |
static int vnc_start_vencrypt_handshake(VncState *vs)
{
int ret;
if ((ret = gnutls_handshake(vs->tls.session)) < 0) {
if (!gnutls_error_is_fatal(ret)) {
VNC_DEBUG("Handshake interrupted (blocking)\n");
if (!gnutls_record_get_direction(vs->tls.session))
qemu_s... | 11 | [
-0.4262514114379883,
0.031402651220560074,
0.34070056676864624,
0.10522155463695526,
-0.6783128976821899,
-0.7495765089988708,
-0.04107972979545593,
0.15035074949264526,
0.379520058631897,
0.33708858489990234,
-0.10365888476371765,
1.2596275806427002,
-0.2992798089981079,
-0.00156268663704... |
static int targa_decode_rle(AVCodecContext *avctx, TargaContext *s, const uint8_t *src, int src_size, uint8_t *dst, int w, int h, int stride, int bpp)
{
int i, x, y;
int depth = (bpp + 1) >> 3;
int type, count;
int diff;
const uint8_t *src_end = src + src_size;
diff = stride - w * depth... | 00 | [
-0.4202791154384613,
0.04169373959302902,
0.3159075379371643,
0.205546036362648,
-0.6195723414421082,
-0.6996073126792908,
-0.10362027585506439,
0.17082884907722473,
0.3991551399230957,
0.41570213437080383,
-0.1651662290096283,
1.0991986989974976,
-0.29466843605041504,
-0.1020619124174118,... |
static int bit_allocation(IMCContext *q, IMCChannel *chctx,
int stream_format_code, int freebits, int flag)
{
int i, j;
const float limit = -1.e20;
float highest = 0.0;
int indx;
int t1 = 0;
int t2 = 1;
float summa = 0.0;
int iacc = 0;
int summer = 0;
in... | 11 | [
-0.4163532853126526,
0.0638684555888176,
0.22912684082984924,
0.222770094871521,
-0.6488924026489258,
-0.37926584482192993,
-0.08801751583814621,
0.16138851642608643,
0.37495970726013184,
0.3508026897907257,
-0.16752737760543823,
0.90407395362854,
-0.19860415160655975,
-0.24112403392791748... |
int net_init_netmap(const NetClientOptions *opts,
const char *name, NetClientState *peer, Error **errp)
{
const NetdevNetmapOptions *netmap_opts = opts->u.netmap;
struct nm_desc *nmd;
NetClientState *nc;
Error *err = NULL;
NetmapState *s;
nmd = netmap_open(netmap_op... | 00 | [
-0.20717710256576538,
0.011133594438433647,
0.32158929109573364,
0.11170771718025208,
-0.11183911561965942,
-0.33474457263946533,
0.014554822817444801,
0.2541351318359375,
0.30864590406417847,
0.24646282196044922,
-0.03243693709373474,
0.8948195576667786,
-0.12988826632499695,
-0.013306772... |
static void vc1_extract_headers(AVCodecParserContext *s, AVCodecContext *avctx,
const uint8_t *buf, int buf_size)
{
VC1ParseContext *vpc = s->priv_data;
GetBitContext gb;
const uint8_t *start, *end, *next;
uint8_t *buf2 = av_mallocz(buf_size + FF_INPUT_BUFFER_PADDIN... | 00 | [
-0.4145902991294861,
-0.03665538877248764,
0.3110719621181488,
0.21319003403186798,
-0.6960543990135193,
-0.5837751030921936,
-0.07169614732265472,
0.1730726808309555,
0.3464406132698059,
0.34596875309944153,
-0.08467218279838562,
1.1988602876663208,
-0.24416512250900269,
-0.19933989644050... |
static int check_pow_970 (CPUPPCState *env)
{
if (env->spr[SPR_HID0] & 0x00600000)
return 1;
return 0;
}
| 00 | [
0.0622604563832283,
-0.12350481003522873,
0.2555166482925415,
-0.23202064633369446,
0.5166895985603333,
-0.2614867091178894,
0.11839063465595245,
0.3556023836135864,
0.32238084077835083,
0.03207395225763321,
-0.18168388307094574,
0.25052592158317566,
-0.2168814241886139,
0.1242502629756927... |
static void qxl_spice_destroy_surface_wait(PCIQXLDevice *qxl, uint32_t id,
qxl_async_io async)
{
if (async) {
#if SPICE_INTERFACE_QXL_MINOR < 1
abort();
#else
spice_qxl_destroy_surface_async(&qxl->ssd.qxl, id,
... | 00 | [
-0.35666969418525696,
-0.16280829906463623,
0.1773616373538971,
0.1405787467956543,
-0.12297020107507706,
-0.12990647554397583,
0.31922757625579834,
-0.0719791129231453,
0.34893155097961426,
0.22438713908195496,
0.09897220134735107,
0.8517330288887024,
-0.0916101485490799,
0.34616380929946... |
int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx,
uint8_t *buf, int buf_size,
const short *samples)
{
AVPacket pkt;
AVFrame *frame;
int ret, samples_size, got_packet;
av_init_packet(&pkt)... | 11 | [
-0.47105857729911804,
0.030099790543317795,
0.273603618144989,
0.14157716929912567,
-0.761800229549408,
-0.644544243812561,
-0.019666166976094246,
0.15549132227897644,
0.5771026611328125,
0.4697510600090027,
-0.1600513458251953,
1.1906931400299072,
-0.2593404948711395,
-0.11303922533988953... |
static void spitz_gpio_setup(PXA2xxState *cpu, int slots)
{
qemu_irq lcd_hsync;
/*
* Bad hack: We toggle the LCD hsync GPIO on every GPIO status
* read to satisfy broken guests that poll-wait for hsync.
* Simulating a real hsync event would be less practical and
* wouldn't guarantee t... | 11 | [
-0.4156390428543091,
0.07001593708992004,
0.3305814266204834,
0.022532399743795395,
-0.6308649182319641,
-0.5806572437286377,
-0.003226481843739748,
0.1937391310930252,
0.35135895013809204,
0.3903389573097229,
-0.06554749608039856,
1.1667453050613403,
-0.21382424235343933,
-0.1567663848400... |
void virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *conf,
VirtIOBlockDataPlane **dataplane,
Error **errp)
{
VirtIOBlockDataPlane *s;
Error *local_err = NULL;
BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));
... | 11 | [
-0.3897732198238373,
0.08482526987791061,
0.3383033573627472,
0.15355385839939117,
-0.575127124786377,
-0.5971002578735352,
-0.018200555816292763,
0.19803591072559357,
0.4995480179786682,
0.45035314559936523,
-0.1922418624162674,
1.1090394258499146,
-0.24530066549777985,
-0.093776464462280... |
static void continue_send(IPMIBmcExtern *ibe)
{
if (ibe->outlen == 0) {
goto check_reset;
}
send:
ibe->outpos += qemu_chr_fe_write(ibe->chr, ibe->outbuf + ibe->outpos,
ibe->outlen - ibe->outpos);
if (ibe->outpos < ibe->outlen) {
/* Not fully... | 11 | [
-0.39071691036224365,
0.13533306121826172,
0.3511807918548584,
0.21006059646606445,
-0.7614113092422485,
-0.7147125601768494,
-0.13428372144699097,
0.15641014277935028,
0.4906505048274994,
0.38750404119491577,
-0.15721923112869263,
1.0960736274719238,
-0.34039008617401123,
-0.1716032624244... |
static void vvfat_refresh_limits(BlockDriverState *bs, Error **errp)
{
bs->request_alignment = BDRV_SECTOR_SIZE; /* No sub-sector I/O supported */
}
| 00 | [
0.23980748653411865,
0.11797405779361725,
0.153505340218544,
-0.3480408191680908,
0.40092647075653076,
0.0031901623588055372,
0.24407634139060974,
-0.2129071056842804,
0.26180699467658997,
0.2742399275302887,
0.018108641728758812,
-0.13723449409008026,
0.15352876484394073,
-0.2135138213634... |
static int update_streams_from_subdemuxer(AVFormatContext *s, struct playlist *pls)
{
while (pls->n_main_streams < pls->ctx->nb_streams) {
int ist_idx = pls->n_main_streams;
AVStream *st = avformat_new_stream(s, NULL);
AVStream *ist = pls->ctx->streams[ist_idx];
if (!st)
... | 00 | [
-0.17243528366088867,
0.18511468172073364,
0.19916094839572906,
0.16373682022094727,
0.06160832196474075,
-0.49761641025543213,
0.1335008591413498,
0.3765592873096466,
0.1910851001739502,
0.08773422241210938,
0.055197637528181076,
0.9516636729240417,
-0.11077667772769928,
0.175690367817878... |
static int nut_read_close(AVFormatContext *s)
{
NUTContext *nut = s->priv_data;
av_freep(&nut->time_base);
av_freep(&nut->stream);
return 0;
} | 11 | [
-0.03274185210466385,
-0.12039715051651001,
0.2472234070301056,
0.007690911181271076,
0.7549434900283813,
-0.37849053740501404,
0.1285729706287384,
0.578238844871521,
0.028259098529815674,
-0.03072246164083481,
-0.022387240082025528,
-0.21902477741241455,
-0.1949009895324707,
-0.2052677422... |
static inline int mxf_read_utf16_string(AVIOContext *pb, int size, char** str, int be)
{
int ret;
size_t buf_size;
if (size < 0)
return AVERROR(EINVAL);
buf_size = size + size / 2 + 1;
*str = av_malloc(buf_size);
if (!*str)
return AVERROR(ENOMEM);
if (be)
... | 11 | [
-0.19383054971694946,
0.09261064231395721,
0.24593859910964966,
0.03034333884716034,
0.04356753081083298,
-0.48263245820999146,
-0.044146522879600525,
0.24645449221134186,
0.31775689125061035,
0.11049975454807281,
-0.06839311122894287,
0.6349883675575256,
0.12853167951107025,
0.31425440311... |
static void spapr_cpu_core_unrealizefn(DeviceState *dev, Error **errp)
{
sPAPRCPUCore *sc = SPAPR_CPU_CORE(OBJECT(dev));
sPAPRCPUCoreClass *scc = SPAPR_CPU_CORE_GET_CLASS(OBJECT(dev));
size_t size = object_type_get_instance_size(scc->cpu_type);
CPUCore *cc = CPU_CORE(dev);
int i;
for (i... | 00 | [
-0.2556053698062897,
-0.06881053745746613,
0.2475394308567047,
0.17043188214302063,
-0.015812955796718597,
-0.09664122015237808,
0.10172909498214722,
0.2358350157737732,
0.1989080309867859,
0.1738683581352234,
0.051008522510528564,
0.7753926515579224,
0.0277487151324749,
0.1771113872528076... |
static uint64_t e1000_io_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
E1000State *s = opaque;
(void)s;
return 0;
}
| 00 | [
-0.035768553614616394,
-0.2384447306394577,
-0.12935540080070496,
-0.24451148509979248,
0.709896445274353,
0.17394307255744934,
0.4544866681098938,
0.17608590424060822,
0.2038908302783966,
-0.4042224586009979,
-0.021938754245638847,
0.015499778091907501,
0.21150600910186768,
0.566759169101... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.