diff options
author | ed <ed@FreeBSD.org> | 2009-06-11 13:59:51 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-06-11 13:59:51 +0000 |
commit | ffdcd121ddeca7a52f425f18a296f020c2508139 (patch) | |
tree | 2835f764eff4dc00da2f41ab82148d6e0a45a078 /lib | |
parent | a3e3d3a465cd39885e3a4f141f7ce4988b3abfc6 (diff) | |
download | FreeBSD-src-ffdcd121ddeca7a52f425f18a296f020c2508139.zip FreeBSD-src-ffdcd121ddeca7a52f425f18a296f020c2508139.tar.gz |
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/
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msun/src/math_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |