svn commit: r253802 - head/contrib/llvm/tools/clang/lib/Headers
John Baldwin
jhb at freebsd.org
Tue Jul 30 16:18:44 UTC 2013
On Tuesday, July 30, 2013 9:33:51 am Jan Beich wrote:
> Dimitry Andric <dim at FreeBSD.org> writes:
>
> > Author: dim
> > Date: Tue Jul 30 12:33:21 2013
> > New Revision: 253802
> > URL: http://svnweb.freebsd.org/changeset/base/253802
> >
> > Log:
> > Pull in r186696 from upstream clang trunk:
> >
> > This patch implements __get_cpuid_max() as an inline and __cpuid()
> > and __cpuid_count() as macros to be compatible with GCC's cpuid.h.
> [...]
> > +#define bit_SSE41 0x00080000
> > +#define bit_SSE42 0x00100000
>
> GCC's spelling is different
>
> $ fgrep -r bit_SSE4 /usr/local/lib/gcc48/**/
> /usr/local/lib/gcc48/**/cpuid.h:#define bit_SSE4_1 (1 << 19)
> /usr/local/lib/gcc48/**/cpuid.h:#define bit_SSE4_2 (1 << 20)
> /usr/local/lib/gcc48/**/cpuid.h:#define bit_SSE4a (1 << 6)
Note that this was a clean-room implementation, so I based this on the names
in the Intel SDM. I was actually hoping for discussion on the clang lists
perhaps along the lines of not supplying these constants at all, or only a
subset, etc.
--
John Baldwin
More information about the svn-src-all
mailing list