svn commit: r233030 - projects/arm_eabi/lib/libc/arm/gen

Andrew Turner andrew at FreeBSD.org
Fri Mar 16 11:17:37 UTC 2012


Author: andrew
Date: Fri Mar 16 11:17:36 2012
New Revision: 233030
URL: http://svn.freebsd.org/changeset/base/233030

Log:
  We use the compiler-rt softfloat library. It always rounds to nearest.

Modified:
  projects/arm_eabi/lib/libc/arm/gen/flt_rounds.c

Modified: projects/arm_eabi/lib/libc/arm/gen/flt_rounds.c
==============================================================================
--- projects/arm_eabi/lib/libc/arm/gen/flt_rounds.c	Fri Mar 16 11:00:55 2012	(r233029)
+++ projects/arm_eabi/lib/libc/arm/gen/flt_rounds.c	Fri Mar 16 11:17:36 2012	(r233030)
@@ -30,15 +30,22 @@ __FBSDID("$FreeBSD$");
 #include <fenv.h>
 #include <float.h>
 
+#ifndef __ARM_EABI__
 #include "softfloat-for-gcc.h"
 #include "milieu.h"
 #include "softfloat.h"
+#endif
 
 int
 __flt_rounds(void)
 {
 
-#ifndef ARM_HARD_FLOAT
+#ifdef __ARM_EABI__
+	/*
+	 * We use compiler-rt which uses round to nearest.
+	 */
+	return (1);
+#elif !defined(ARM_HARD_FLOAT)
 	/*
 	 * Translate our rounding modes to the unnamed
 	 * manifest constants required by C99 et. al.


More information about the svn-src-projects mailing list