Ejemplo n.º 1
0
//#pragma GCC push_options
//#pragma GCC optimize ("O0")
void
evas_common_op_sse3_test(void)
{
#ifdef BUILD_SSE3
   DATA32 s[64] = {0x11883399}, d[64] = {0xff88cc33};
   
   s[0] = rand(); d[1] = rand();
   _op_blend_pas_dp_sse3(s, NULL, 0, d, 64);
   evas_common_cpu_end_opt();
#endif   
}
Ejemplo n.º 2
0
static void
eng_output_redraws_next_update_push(void *data, void *surface, int x, int y, int w, int h)
{
    Render_Engine *re;

    re = (Render_Engine *)data;
#ifdef BUILD_PIPE_RENDER
    evas_common_pipe_map4_begin(surface);
#endif
    evas_software_ddraw_outbuf_push_updated_region(re->ob, surface, x, y, w, h);
    evas_software_ddraw_outbuf_free_region_for_update(re->ob, surface);
    evas_common_cpu_end_opt();
}
Ejemplo n.º 3
0
EAPI void
evas_common_cpu_init(void)
{
    static int called = 0;

    if (called) return;
    called = 1;
#ifdef BUILD_MMX
    cpu_feature_mask |= CPU_FEATURE_MMX *
                        evas_common_cpu_feature_test(evas_common_cpu_mmx_test);
    evas_common_cpu_end_opt();
    if (getenv("EVAS_CPU_NO_MMX"))
        cpu_feature_mask &= ~CPU_FEATURE_MMX;
    cpu_feature_mask |= CPU_FEATURE_MMX2 *
                        evas_common_cpu_feature_test(evas_common_cpu_mmx2_test);
    evas_common_cpu_end_opt();
    if (getenv("EVAS_CPU_NO_MMX2"))
        cpu_feature_mask &= ~CPU_FEATURE_MMX2;
#ifdef BUILD_SSE
    cpu_feature_mask |= CPU_FEATURE_SSE *
                        evas_common_cpu_feature_test(evas_common_cpu_sse_test);
    evas_common_cpu_end_opt();
    if (getenv("EVAS_CPU_NO_SSE"))
        cpu_feature_mask &= ~CPU_FEATURE_SSE;
#endif /* BUILD_SSE */
#endif /* BUILD_MMX */
#ifdef __POWERPC__
#ifdef __VEC__
    cpu_feature_mask |= CPU_FEATURE_ALTIVEC *
                        evas_common_cpu_feature_test(evas_common_cpu_altivec_test);
    evas_common_cpu_end_opt();
    if (getenv("EVAS_CPU_NO_ALTIVEC"))
        cpu_feature_mask &= ~CPU_FEATURE_ALTIVEC;
#endif /* __VEC__ */
#endif /* __POWERPC__ */
#ifdef __SPARC__
    cpu_feature_mask |= CPU_FEATURE_VIS *
                        evas_common_cpu_feature_test(evas_common_cpu_vis_test);
    evas_common_cpu_end_opt();
    if (getenv("EVAS_CPU_NO_VIS"))
        cpu_feature_mask &= ~CPU_FEATURE_VIS;
#endif /* __SPARC__ */
#if defined(__ARM_ARCH__)
#ifdef BUILD_NEON
    cpu_feature_mask |= CPU_FEATURE_NEON *
                        evas_common_cpu_feature_test(evas_common_cpu_neon_test);
    evas_common_cpu_end_opt();
    if (getenv("EVAS_CPU_NO_NEON"))
        cpu_feature_mask &= ~CPU_FEATURE_NEON;
#endif
#endif
}