svn commit: r194000 - head/lib/msun/src
Ed Schouten
ed at FreeBSD.org
Thu Jun 11 13:59:52 UTC 2009
Author: ed
Date: Thu Jun 11 13:59:51 2009
New Revision: 194000
URL: http://svn.freebsd.org/changeset/base/194000
Log:
Use the documented machine constraint for SSE registers.
The amd64-specific bits of msun use an undocumented constraint, which is
less likely to be supported by other compilers (such as Clang). Change
the code to use a more common machine constraint.
Obtained from: /projects/clangbsd/
Modified:
head/lib/msun/src/math_private.h
Modified: head/lib/msun/src/math_private.h
==============================================================================
--- head/lib/msun/src/math_private.h Thu Jun 11 13:07:42 2009 (r193999)
+++ head/lib/msun/src/math_private.h Thu Jun 11 13:59:51 2009 (r194000)
@@ -262,7 +262,7 @@ irint(double x)
{
int n;
- asm("cvtsd2si %1,%0" : "=r" (n) : "Y" (x));
+ asm("cvtsd2si %1,%0" : "=r" (n) : "x" (x));
return (n);
}
#define HAVE_EFFICIENT_IRINT
More information about the svn-src-all
mailing list