Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm On alpha compile the math library with dynamic roun...



details:   https://anonhg.NetBSD.org/src/rev/f75d88baa587
branches:  trunk
changeset: 777915:f75d88baa587
user:      njoly <njoly%NetBSD.org@localhost>
date:      Fri Mar 09 08:03:53 2012 +0000

description:
On alpha compile the math library with dynamic rounding mode instead
of fixed normal IEEE rounding mode. This makes function that depends on
the current rounding mode, such as rint(3), just work.

diffstat:

 lib/libm/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r a61d0861c137 -r f75d88baa587 lib/libm/Makefile
--- a/lib/libm/Makefile Fri Mar 09 00:14:16 2012 +0000
+++ b/lib/libm/Makefile Fri Mar 09 08:03:53 2012 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.120 2011/09/17 10:51:52 jruoho Exp $
+#  $NetBSD: Makefile,v 1.121 2012/03/09 08:03:53 njoly Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -117,6 +117,10 @@
 .PATH: ${.CURDIR}/src
 .PATH: ${.CURDIR}/noieee_src
 
+.if (${MACHINE_ARCH} == "alpha")
+CFLAGS+= -mfp-rounding-mode=d
+.endif
+
 .if (${MACHINE_ARCH} != "vax")
 CPPFLAGS+= -D_MULTI_LIBM -D_POSIX_MODE
 # XXX noieee libm is gross



Home | Main Index | Thread Index | Old Index