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/
This commit is contained in:
Ed Schouten 2009-06-11 13:59:51 +00:00
parent be7def1fe3
commit a4f326ddd5

View File

@ -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