util: Cleanup u_cpu_detect, build. Support X86_64 and detect SSE4.1 too.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 29 Sep 2009 12:25:08 +0000 (13:25 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 29 Sep 2009 12:59:16 +0000 (13:59 +0100)
commita81fb2a0d2c9a94fa362705edd1281fa7699d093
tree76cef41b41721b15e100a706ec7f6832b2c9a0ef
parent8210abb113462c781a8f3ffee3406493c108a2f0
util: Cleanup u_cpu_detect, build. Support X86_64 and detect SSE4.1 too.

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.
src/gallium/auxiliary/util/Makefile
src/gallium/auxiliary/util/SConscript
src/gallium/auxiliary/util/u_cpu_detect.c
src/gallium/auxiliary/util/u_cpu_detect.h