Module Name: src Committed By: riastradh Date: Sun May 5 14:06:47 UTC 2024
Modified Files: src/lib/libm/src: s_nexttowardf.c Log Message: 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.4 -r1.5 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.4 src/lib/libm/src/s_nexttowardf.c:1.5 --- src/lib/libm/src/s_nexttowardf.c:1.4 Sun May 5 11:38:03 2024 +++ src/lib/libm/src/s_nexttowardf.c Sun May 5 14:06:47 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: s_nexttowardf.c,v 1.4 2024/05/05 11:38:03 riastradh Exp $ */ +/* $NetBSD: s_nexttowardf.c,v 1.5 2024/05/05 14:06:47 riastradh 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.4 2024/05/05 11:38:03 riastradh Exp $"); +__RCSID("$NetBSD: s_nexttowardf.c,v 1.5 2024/05/05 14:06:47 riastradh Exp $"); #endif #include <string.h> @@ -42,6 +42,14 @@ __RCSID("$NetBSD: s_nexttowardf.c,v 1.4 #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) {