Module Name: src
Committed By: martin
Date: Tue Oct 15 06:19:27 UTC 2024
Modified Files:
src/lib/libm/src [netbsd-10]: s_nexttowardf.c
Log Message:
Additionally pull up following revision(s) (requested by rin in ticket #963):
lib/libm/src/s_nexttowardf.c: revision 1.5
libm/s_nexttowardf.c: Handle __HAVE_LONG_DOUBLE, LDBL_IMPLICIT_NBIT.
We should arrange to just have LDBL_NBIT unconditionally defined in the
appropriate MD header file, and make LDBL_IMPLICIT_NBIT an alias for
LDBL_NBIT==0. But for now this will do.
To generate a diff of this commit:
cvs rdiff -u -r1.3.44.1 -r1.3.44.2 src/lib/libm/src/s_nexttowardf.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/s_nexttowardf.c
diff -u src/lib/libm/src/s_nexttowardf.c:1.3.44.1 src/lib/libm/src/s_nexttowardf.c:1.3.44.2
--- src/lib/libm/src/s_nexttowardf.c:1.3.44.1 Mon Oct 14 15:41:30 2024
+++ src/lib/libm/src/s_nexttowardf.c Tue Oct 15 06:19:27 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: s_nexttowardf.c,v 1.3.44.1 2024/10/14 15:41:30 martin Exp $ */
+/* $NetBSD: s_nexttowardf.c,v 1.3.44.2 2024/10/15 06:19:27 martin Exp $ */
/*
* ====================================================
@@ -15,7 +15,7 @@
#if 0
__FBSDID("$FreeBSD: src/lib/msun/src/s_nexttowardf.c,v 1.3 2011/02/10 07:38:38 das Exp $");
#else
-__RCSID("$NetBSD: s_nexttowardf.c,v 1.3.44.1 2024/10/14 15:41:30 martin Exp $");
+__RCSID("$NetBSD: s_nexttowardf.c,v 1.3.44.2 2024/10/15 06:19:27 martin Exp $");
#endif
#include <string.h>
@@ -42,6 +42,14 @@ __RCSID("$NetBSD: s_nexttowardf.c,v 1.3.
#define LDBL_NBIT 0
#endif
+/*
+ * XXX We should arrange to define LDBL_NBIT unconditionally in the
+ * appropriate MD header file.
+ */
+#ifdef LDBL_IMPLICIT_NBIT
+#define LDBL_NBIT 0
+#endif
+
float
nexttowardf(float x, long double y)
{