[vlc-devel] [PATCH 04/25] cpu: add CPU feature masking

Thomas Guillem thomas at gllm.fr
Tue Apr 14 16:33:54 CEST 2020


FYI, this is what I did in copy.c to test with optims disabled:

#ifdef COPY_TEST_NOOPTIM
# undef vlc_CPU_SSE4_1
# define vlc_CPU_SSE4_1() (0)
# undef vlc_CPU_SSE3
# define vlc_CPU_SSE3() (0)
# undef vlc_CPU_SSSE3
# define vlc_CPU_SSSE3() (0)
# undef vlc_CPU_SSE2
# define vlc_CPU_SSE2() (0)
#endif

On Tue, Apr 14, 2020, at 16:01, Rémi Denis-Courmont wrote:
> Le tiistaina 14. huhtikuuta 2020, 13.40.15 EEST Victorien Le Couviour--Tuffet a 
> écrit :
> > This is allows to temporarily mask a CPU feature.
> > It can for example be useful for testing a function with several
> > underlying SIMD implementations.
> > 
> > It adds vlc_CPU_mask and vlc_CPU_unmask to the core API.
> 
> This is neither thread-safe nor compatible with the pure/constant attributes, 
> which really should be set on vlc_CPU() (In fact, I thought they already were, 
> though it seems they are not).
> 
> -- 
> Rémi Denis-Courmont
> Tapiolan uusi kaupunki, Uudenmaan tasavalta
> 
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list