[vlc-devel] [PATCH] Detect AVX-enabled processors

Jean-Baptiste Kempf jb at videolan.org
Fri Dec 9 17:08:02 CET 2011


On Fri, Dec 09, 2011 at 06:02:07PM +0200, Rémi Denis-Courmont wrote :
> Side topic... I think those fork/SIGILL tests are not really good idea. fork() 
> can (and seems to) cause problems with libraries using pthread_atfork().
> 
> Besides, I don't really understand why we have those tests. A number of 
> libraries just check for CPUID, including some libraries used by VLC. I wonder 
> how this test can fail? Can the OS block those instructions, or can it block 
> the MMX and/or SSE registers?

>From what I understand, we need to have the OS support to get access to
the YMM registers.

Best regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list