Date: Fri, 16 Mar 2012 11:17:37 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r233030 - projects/arm_eabi/lib/libc/arm/gen Message-ID: <201203161117.q2GBHbpW015484@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203161117.q2GBHbpW015484>