Source-Changes-HG archive

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

[src/trunk]: src/lib/libm/src Use namespace.h. Don't redefine scalblnl on 64b...



details:   https://anonhg.NetBSD.org/src/rev/22924a8f1a7f
branches:  trunk
changeset: 786369:22924a8f1a7f
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Apr 27 16:43:13 2013 +0000

description:
Use namespace.h. Don't redefine scalblnl on 64bit platforms.

diffstat:

 lib/libm/src/s_scalbln.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r d1145ab2cc37 -r 22924a8f1a7f lib/libm/src/s_scalbln.c
--- a/lib/libm/src/s_scalbln.c  Sat Apr 27 16:32:56 2013 +0000
+++ b/lib/libm/src/s_scalbln.c  Sat Apr 27 16:43:13 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_scalbln.c,v 1.2 2013/02/11 01:47:04 christos Exp $   */
+/*     $NetBSD: s_scalbln.c,v 1.3 2013/04/27 16:43:13 joerg Exp $      */
 
 /*-
  * Copyright (c) 2004 David Schultz <das%FreeBSD.ORG@localhost>
@@ -30,12 +30,15 @@
 #if 0
 __FBSDID("$FreeBSD: src/lib/msun/src/s_scalbln.c,v 1.2 2005/03/07 04:57:50 das Exp $");
 #else
-__RCSID("$NetBSD: s_scalbln.c,v 1.2 2013/02/11 01:47:04 christos Exp $");
+__RCSID("$NetBSD: s_scalbln.c,v 1.3 2013/04/27 16:43:13 joerg Exp $");
 #endif
 
+#include "namespace.h"
+
 #include <limits.h>
 #include <math.h>
 
+__weak_alias(scalbln, _scalbln)
 double
 scalbln (double x, long n)
 {
@@ -51,6 +54,7 @@
        return (scalbn(x, in));
 }
 
+__weak_alias(scalblnf, _scalblnf)
 float
 scalblnf (float x, long n)
 {
@@ -66,6 +70,9 @@
        return (scalbnf(x, in));
 }
 
+#ifndef _LP64
+__weak_alias(scalblnl, _scalblnl)
+
 long double
 scalblnl (long double x, long n)
 {
@@ -80,3 +87,4 @@
        }
        return (scalbnl(x, (int)n));
 }
+#endif



Home | Main Index | Thread Index | Old Index