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:
parent
be7def1fe3
commit
a4f326ddd5
@ -262,7 +262,7 @@ irint(double x)
|
|||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
asm("cvtsd2si %1,%0" : "=r" (n) : "Y" (x));
|
asm("cvtsd2si %1,%0" : "=r" (n) : "x" (x));
|
||||||
return (n);
|
return (n);
|
||||||
}
|
}
|
||||||
#define HAVE_EFFICIENT_IRINT
|
#define HAVE_EFFICIENT_IRINT
|
||||||
|
Loading…
Reference in New Issue
Block a user