summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/modf.c
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2011-07-08 22:48:19 +0000
committermartynas <martynas@openbsd.org>2011-07-08 22:48:19 +0000
commitca462540d40c3982a5de9c37ef04e7556443efe7 (patch)
treea8e4978497bd4820ee7cf994f5d2548d893024e3 /lib/libc/gen/modf.c
parentRevert. (diff)
downloadwireguard-openbsd-ca462540d40c3982a5de9c37ef04e7556443efe7.tar.xz
wireguard-openbsd-ca462540d40c3982a5de9c37ef04e7556443efe7.zip
Alias modfl to modf. This goes together with the previous bump.
Diffstat (limited to 'lib/libc/gen/modf.c')
-rw-r--r--lib/libc/gen/modf.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libc/gen/modf.c b/lib/libc/gen/modf.c
index 24effd38045..fde7cd82bab 100644
--- a/lib/libc/gen/modf.c
+++ b/lib/libc/gen/modf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: modf.c,v 1.3 2011/07/08 22:28:33 martynas Exp $ */
+/* $OpenBSD: modf.c,v 1.4 2011/07/08 22:48:19 martynas Exp $ */
/* $NetBSD: modf.c,v 1.1 1995/02/10 17:50:25 cgd Exp $ */
/*
@@ -28,9 +28,12 @@
* rights to redistribute these changes.
*/
+/* LINTLIBRARY */
+
#include <sys/types.h>
#include <machine/ieee.h>
#include <errno.h>
+#include <float.h>
#include <math.h>
/*
@@ -102,3 +105,12 @@ modf(double val, double *iptr)
u.s.dbl_sign = v.s.dbl_sign;
return (u.v);
}
+
+#if LDBL_MANT_DIG == 53
+#ifdef lint
+/* PROTOLIB1 */
+long double frexpl(long double, int *);
+#else /* lint */
+__weak_alias(modfl, modf);
+#endif /* lint */
+#endif /* LDBL_MANT_DIG == 53 */