Module Name: src
Committed By: ryoon
Date: Sat Jan 27 05:50:42 UTC 2024
Modified Files:
src/lib/libm/src: e_acoshl.c e_acosl.c e_asinl.c e_atanhl.c e_coshl.c
s_asinhl.c s_logl.c s_tanhl.c
Log Message:
Enable asinl, acosl, logl, coshl, tanhl, atanhl, asinhl and acoshl
* Fix pkgsrc/math/py-numpy and pkgsrc/graphics/py-matplotlib, for example.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/e_acoshl.c \
src/lib/libm/src/e_acosl.c src/lib/libm/src/e_asinl.c \
src/lib/libm/src/e_atanhl.c src/lib/libm/src/e_coshl.c \
src/lib/libm/src/s_asinhl.c src/lib/libm/src/s_tanhl.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_logl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libm/src/e_acoshl.c
diff -u src/lib/libm/src/e_acoshl.c:1.1 src/lib/libm/src/e_acoshl.c:1.2
--- src/lib/libm/src/e_acoshl.c:1.1 Sun Jan 21 18:53:17 2024
+++ src/lib/libm/src/e_acoshl.c Sat Jan 27 05:50:42 2024
@@ -16,6 +16,12 @@
#include "namespace.h"
+#include <float.h>
+#include <machine/ieee.h>
+
+#include "math.h"
+#include "math_private.h"
+
#ifdef __HAVE_LONG_DOUBLE
__weak_alias(acoshl, _acoshl)
@@ -26,14 +32,10 @@ __weak_alias(acoshl, _acoshl)
* Bruce D. Evans.
*/
-#include <float.h>
#ifdef __i386__
#include <ieeefp.h>
#endif
-#include "math.h"
-#include "math_private.h"
-
/* EXP_LARGE is the threshold above which we use acosh(x) ~= log(2x). */
#if LDBL_MANT_DIG == 64
#define EXP_LARGE 34
Index: src/lib/libm/src/e_acosl.c
diff -u src/lib/libm/src/e_acosl.c:1.1 src/lib/libm/src/e_acosl.c:1.2
--- src/lib/libm/src/e_acosl.c:1.1 Sun Jan 21 18:53:17 2024
+++ src/lib/libm/src/e_acosl.c Sat Jan 27 05:50:42 2024
@@ -19,6 +19,10 @@
#include "namespace.h"
#include <float.h>
+#include <machine/ieee.h>
+
+#include "math.h"
+#include "math_private.h"
#ifdef __HAVE_LONG_DOUBLE
__weak_alias(acosl, _acosl)
@@ -30,8 +34,6 @@ __weak_alias(acosl, _acosl)
#else
#error "Unsupported long double format"
#endif
-#include "math.h"
-#include "math_private.h"
#ifdef LDBL_IMPLICIT_NBIT
#define LDBL_NBIT 0
Index: src/lib/libm/src/e_asinl.c
diff -u src/lib/libm/src/e_asinl.c:1.1 src/lib/libm/src/e_asinl.c:1.2
--- src/lib/libm/src/e_asinl.c:1.1 Sun Jan 21 18:53:17 2024
+++ src/lib/libm/src/e_asinl.c Sat Jan 27 05:50:42 2024
@@ -19,6 +19,10 @@
#include "namespace.h"
#include <float.h>
+#include <machine/ieee.h>
+
+#include "math.h"
+#include "math_private.h"
#ifdef __HAVE_LONG_DOUBLE
@@ -31,8 +35,6 @@ __weak_alias(asinl, _asinl)
#else
#error "Unsupported long double format"
#endif
-#include "math.h"
-#include "math_private.h"
#ifdef LDBL_IMPLICIT_NBIT
#define LDBL_NBIT 0
Index: src/lib/libm/src/e_atanhl.c
diff -u src/lib/libm/src/e_atanhl.c:1.1 src/lib/libm/src/e_atanhl.c:1.2
--- src/lib/libm/src/e_atanhl.c:1.1 Sun Jan 21 18:53:17 2024
+++ src/lib/libm/src/e_atanhl.c Sat Jan 27 05:50:42 2024
@@ -17,6 +17,10 @@
#include "namespace.h"
#include <float.h>
+#include <machine/ieee.h>
+
+#include "math.h"
+#include "math_private.h"
#ifdef __HAVE_LONG_DOUBLE
__weak_alias(atanhl, _atanhl)
@@ -31,9 +35,6 @@ __weak_alias(atanhl, _atanhl)
#include <ieeefp.h>
#endif
-#include "math.h"
-#include "math_private.h"
-
/* EXP_TINY is the threshold below which we use atanh(x) ~= x. */
#if LDBL_MANT_DIG == 64
#define EXP_TINY -34
Index: src/lib/libm/src/e_coshl.c
diff -u src/lib/libm/src/e_coshl.c:1.1 src/lib/libm/src/e_coshl.c:1.2
--- src/lib/libm/src/e_coshl.c:1.1 Sun Jan 21 18:53:17 2024
+++ src/lib/libm/src/e_coshl.c Sat Jan 27 05:50:42 2024
@@ -24,6 +24,7 @@
__weak_alias(coshl, _coshl)
#ifdef __HAVE_LONG_DOUBLE
+#error SHOULD STOP HERE!!!
#ifdef __i386__
#include <ieeefp.h>
Index: src/lib/libm/src/s_asinhl.c
diff -u src/lib/libm/src/s_asinhl.c:1.1 src/lib/libm/src/s_asinhl.c:1.2
--- src/lib/libm/src/s_asinhl.c:1.1 Sun Jan 21 18:53:18 2024
+++ src/lib/libm/src/s_asinhl.c Sat Jan 27 05:50:42 2024
@@ -16,6 +16,10 @@
#include "namespace.h"
#include <float.h>
+#include <machine/ieee.h>
+
+#include "math.h"
+#include "math_private.h"
#ifdef __HAVE_LONG_DOUBLE
__weak_alias(asinhl, _asinhl)
@@ -31,9 +35,6 @@ __weak_alias(asinhl, _asinhl)
#include <ieeefp.h>
#endif
-#include "math.h"
-#include "math_private.h"
-
/* EXP_LARGE is the threshold above which we use asinh(x) ~= log(2x). */
/* EXP_TINY is the threshold below which we use asinh(x) ~= x. */
#if LDBL_MANT_DIG == 64
Index: src/lib/libm/src/s_tanhl.c
diff -u src/lib/libm/src/s_tanhl.c:1.1 src/lib/libm/src/s_tanhl.c:1.2
--- src/lib/libm/src/s_tanhl.c:1.1 Sun Jan 21 18:53:19 2024
+++ src/lib/libm/src/s_tanhl.c Sat Jan 27 05:50:42 2024
@@ -15,6 +15,10 @@
#include "namespace.h"
#include <float.h>
+#include <machine/ieee.h>
+
+#include "math.h"
+#include "math_private.h"
#ifdef __HAVE_LONG_DOUBLE
__weak_alias(tanhl, _tanhl)
@@ -28,8 +32,6 @@ __weak_alias(tanhl, _tanhl)
#include <ieeefp.h>
#endif
-#include "math.h"
-#include "math_private.h"
#if LDBL_MANT_DIG == 64
#include "../ld80/k_expl.h"
#elif LDBL_MANT_DIG == 113
Index: src/lib/libm/src/s_logl.c
diff -u src/lib/libm/src/s_logl.c:1.2 src/lib/libm/src/s_logl.c:1.3
--- src/lib/libm/src/s_logl.c:1.2 Tue Jan 23 15:45:07 2024
+++ src/lib/libm/src/s_logl.c Sat Jan 27 05:50:42 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: s_logl.c,v 1.2 2024/01/23 15:45:07 christos Exp $ */
+/* $NetBSD: s_logl.c,v 1.3 2024/01/27 05:50:42 ryoon Exp $ */
/*-
* Copyright (c) 2023 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
#if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: s_logl.c,v 1.2 2024/01/23 15:45:07 christos Exp $");
+__RCSID("$NetBSD: s_logl.c,v 1.3 2024/01/27 05:50:42 ryoon Exp $");
#endif
#include "namespace.h"
@@ -38,11 +38,10 @@ __RCSID("$NetBSD: s_logl.c,v 1.2 2024/01
#include <machine/float.h>
#include <machine/ieee.h>
-__weak_alias(logl, log)
-
#ifdef __HAVE_LONG_DOUBLE
#ifdef __weak_alias
+__weak_alias(logl, _logl)
__weak_alias(log10l, _log10l)
__weak_alias(log2l, _log2l)
__weak_alias(log1pl, _log1pl)