[vlc-devel] [PATCH 04/25] cpu: add CPU feature masking
Rémi Denis-Courmont
remi at remlab.net
Tue Apr 14 16:41:34 CEST 2020
Le tiistaina 14. huhtikuuta 2020, 17.33.54 EEST Thomas Guillem a écrit :
> 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
That's probably passable to test that the pure C code return correct results.
But if you want to measure, you really should fix the compiler flags up-front.
--
Rémi Denis-Courmont
Ville neuve de Tapiola, République d´Uusimaa
More information about the vlc-devel
mailing list