Source-Changes-HG archive

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

[src/trunk]: src/lib/libm/src copysignl is also needed for PowerPC's double-d...



details:   https://anonhg.NetBSD.org/src/rev/88986a166472
branches:  trunk
changeset: 338210:88986a166472
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu May 14 19:26:12 2015 +0000

description:
copysignl is also needed for PowerPC's double-double format, so special
case that. Functional support was added earlier, but not enabled.

diffstat:

 lib/libm/src/s_copysign.c  |  4 ++--
 lib/libm/src/s_copysignl.c |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r fd5bcc1e9a7d -r 88986a166472 lib/libm/src/s_copysign.c
--- a/lib/libm/src/s_copysign.c Thu May 14 17:35:54 2015 +0000
+++ b/lib/libm/src/s_copysign.c Thu May 14 19:26:12 2015 +0000
@@ -12,7 +12,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: s_copysign.c,v 1.12 2014/11/14 14:53:17 joerg Exp $");
+__RCSID("$NetBSD: s_copysign.c,v 1.13 2015/05/14 19:26:12 joerg Exp $");
 #endif
 
 /*
@@ -24,7 +24,7 @@
 #include "math.h"
 #include "math_private.h"
 
-#ifndef __HAVE_LONG_DOUBLE
+#if !defined(__HAVE_LONG_DOUBLE) && !defined(__HAVE_IBM_LONGDOUBLE)
 __strong_alias(_copysignl, copysign)
 __weak_alias(copysignl, copysign)
 #endif
diff -r fd5bcc1e9a7d -r 88986a166472 lib/libm/src/s_copysignl.c
--- a/lib/libm/src/s_copysignl.c        Thu May 14 17:35:54 2015 +0000
+++ b/lib/libm/src/s_copysignl.c        Thu May 14 19:26:12 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_copysignl.c,v 1.4 2014/11/14 14:53:17 joerg Exp $    */
+/*     $NetBSD: s_copysignl.c,v 1.5 2015/05/14 19:26:12 joerg Exp $    */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,13 +26,13 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_copysignl.c,v 1.4 2014/11/14 14:53:17 joerg Exp $");
+__RCSID("$NetBSD: s_copysignl.c,v 1.5 2015/05/14 19:26:12 joerg Exp $");
 #include "namespace.h"
 
 #include <math.h>
 #include <machine/ieee.h>
 
-#ifdef __HAVE_LONG_DOUBLE
+#if defined(__HAVE_LONG_DOUBLE) || defined(__HAVE_IBM_LONGDOUBLE)
 
 #ifdef __weak_alias
 __weak_alias(copysignl, _copysignl)
@@ -69,4 +69,4 @@
        return ux.ldblu_ld;
 }
 #endif
-#endif /* __HAVE_LONG_DOUBLE */
+#endif /* __HAVE_LONG_DOUBLE || __HAVE_IBM_LONGDOUBLE */



Home | Main Index | Thread Index | Old Index