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

Ed Schouten ed at FreeBSD.org
Thu Jun 4 06:27:53 UTC 2009


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


More information about the svn-src-projects mailing list