Date: Thu, 11 Jun 2009 13:59:51 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r194000 - head/lib/msun/src Message-ID: <200906111359.n5BDxpG0049369@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906111359.n5BDxpG0049369>