Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4295
Modified Files: Tag: devel_0_38 m_simd_sse_gcc.c Log Message: allow building with -fPIC
Index: m_simd_sse_gcc.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/m_simd_sse_gcc.c,v retrieving revision 1.1.4.13 retrieving revision 1.1.4.14 diff -C2 -d -r1.1.4.13 -r1.1.4.14 *** m_simd_sse_gcc.c 6 May 2005 09:40:07 -0000 1.1.4.13 --- m_simd_sse_gcc.c 22 Jun 2005 18:42:58 -0000 1.1.4.14 *************** *** 950,955 **** int simd_runtime_check() { ! unsigned int eax, edx; ! __asm__("cpuid" : "=a"(eax),"=d"(edx) : "a" (1): "bx", "cx"); return (0x2000000 & edx); } --- 950,958 ---- int simd_runtime_check() { ! unsigned int eax, ebx, ecx, edx; ! __asm__("push %%ebx \n" /* ebx might be used as PIC register :-( */ ! "cpuid \n" ! "pop %%ebx \n" ! : "=a"(eax),"=d"(edx) : "a" (1): "cx"); return (0x2000000 & edx); }