summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_cpu_detect.c
AgeCommit message (Collapse)Author
2009-11-17gallium/util: replace //-style commentsBrian Paul
2009-10-28util: Drop return value from cpuid().José Fonseca
2009-10-28util: Fix cpuid on MSVC.José Fonseca
2009-10-22util: Set cpu endianness too.José Fonseca
2009-10-21gallium/util: fix cpu detection on ppcMarc Dietrich
As we are compiling with -D_BSD_SOURCE, sigjmp_buf and siglongjmp should be replaced by the non-sig functions (see man 3 setjmp). Tested on linux/cell.
2009-10-14util: Fix cpu detection on Windows. Cleanup.José Fonseca
2009-10-09util: Force ESI register for cpuid's ebx result.José Fonseca
Fixes a segfault and better code. Unfortunately using an arbitrary register ("=r") causes the gcc to abort when the code is optimized saying it can't satisfy the constraint. Setting seems to do the trick.
2009-10-05util: Improve the cpuid assembly.José Fonseca
No need to save ebx on 64bit. Use just xchgl. Refer to gcc's cpuid.h header. Thanks to Uros Bizjak for pointing this out.
2009-10-04util: Fix cpuid invocation for x86_64.José Fonseca
2009-09-29util: Cleanup u_cpu_detect, build. Support X86_64 and detect SSE4.1 too.José Fonseca
I was waiting for the need to use this code to arise, and it finally came. I've tested building this on Linux and Windows, both x86 and x64_64. But it might break other platforms. Please bear with me and help me fix it. Many thanks to Dennis Smit who submitted this, and Eric Anholt whose work this was based on.
2008-03-10gallium: Import Dennis Smit cpu detection code.José Fonseca
It still needs a slight code massasing to integrate with the rest of gallium (namely mapping the OS_* ARCH_* defines), but I'm commiting anyway so that it is available to be used when somebody needs it.