From ffdcd121ddeca7a52f425f18a296f020c2508139 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 11 Jun 2009 13:59:51 +0000 Subject: 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/ --- lib/msun/src/math_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/msun') diff --git a/lib/msun/src/math_private.h b/lib/msun/src/math_private.h index 2d88da1..10c92f4 100644 --- a/lib/msun/src/math_private.h +++ b/lib/msun/src/math_private.h @@ -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 -- cgit v1.1