Bug#823672: ITP: sse-support -- prevent installation on processors without required support

2016-05-09 Thread Jakub Wilk
* Peter Colberg , 2016-05-09, 13:33: /* SSE2 */ #include static int check_sse2() { unsigned int eax = 0, ebx = 0, ecx = 0, edx = 0; __get_cpuid(1, , , , ); return edx & bit_SSE2 ? 1 : 0; } You can use __builtin_cpu_supports("sse2") instead of manually playing with

Bug#823672: ITP: sse-support -- prevent installation on processors without required support

2016-05-09 Thread Peter Colberg
On Sat, May 07, 2016 at 02:37:42PM +0200, Adam Borowski wrote: > Detection is done via a "boom instruction" rather than grep /proc/cpuinfo, > because of qemu and /proc-less chroots. For the dsfmt package I figured out how to detect at run-time SSE2 (i386) and Altivec (powerpc) without resorting

Bug#823672: ITP: sse-support -- prevent installation on processors without required support

2016-05-07 Thread Adam Borowski
Package: wnpp Severity: wishlist Owner: Adam Borowski > > It might be also good to make a "sse2-support" package as mentioned in > > the thread Gert linked to to reduce duplication of such detection logic. > > Please say so if you think this is a good idea. > > Saying "so".