svn commit: r193429 - projects/clangbsd/lib/msun/src

[ Available lists | Index of svn-src-projects | Month of Jun 2009 | Week of 4 Jun 2009 | Raw email | View thread | Wrap long lines | Reply ]
From
Ed Schouten <ed@FreeBSD.org>
Date
4 Jun 2009 06:27:53
Subject
svn commit: r193429 - projects/clangbsd/lib/msun/src
Message-ID
200906040627.n546RrC5079700@svn.freebsd.org


[ Hide this part ]
Author: ed
Date: Thu Jun 4 06:27:53 2009
New Revision: 193429
URL: http://svn.freebsd.org/changeset/base/193429

Log:
Allow us to build msun's inline asm with Clang!

Discussed with: Christoph Mallon

Modified:
projects/clangbsd/lib/msun/src/math_private.h

Modified: projects/clangbsd/lib/msun/src/math_private.h
==============================================================================
--- projects/clangbsd/lib/msun/src/math_private.h Thu Jun 4 05:20:46 2009 (r193428)
+++ projects/clangbsd/lib/msun/src/math_private.h Thu Jun 4 06:27:53 2009 (r193429)
@@ -252,7 +252,7 @@ cpackl(long double x, long double y)
}
#endif /* _COMPLEX_H */

-#if defined(__GNUCLIKE_ASM) && !defined(__clang__)
+#ifdef __GNUCLIKE_ASM

/* Asm versions of some functions. */

@@ -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
@@ -280,7 +280,7 @@ irint(double x)
#define HAVE_EFFICIENT_IRINT
#endif

-#endif /* __GNUCLIKE_ASM && !__clang__ */
+#endif /* __GNUCLIKE_ASM */

/*
* ieee style elementary functions


Elapsed time: 0.078 seconds