summaryrefslogtreecommitdiff
path: root/lib/libc/gen/frexp.c
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-12-09 20:32:07 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-12-09 20:32:07 +0000
commitaaed5b099da331dec541f18ab4d6107d19a7a42d (patch)
tree0bf6e70e1e122799d8ebcbe30ed8c6fd6d72b68e /lib/libc/gen/frexp.c
parentc59845ec3f1de5043f41f9512104f71073999f02 (diff)
ditto frexpl and ldexpl
Diffstat (limited to 'lib/libc/gen/frexp.c')
-rw-r--r--lib/libc/gen/frexp.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/gen/frexp.c b/lib/libc/gen/frexp.c
index 737611a52f9..230edd8e20a 100644
--- a/lib/libc/gen/frexp.c
+++ b/lib/libc/gen/frexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frexp.c,v 1.2 2005/08/08 08:05:34 espie Exp $ */
+/* $OpenBSD: frexp.c,v 1.3 2008/12/09 20:32:06 martynas Exp $ */
/*-
* Copyright (c) 2004 David Schultz <das@FreeBSD.ORG>
@@ -29,7 +29,9 @@
*/
#include <sys/types.h>
+#include <machine/cdefs.h>
#include <machine/ieee.h>
+#include <float.h>
#include <math.h>
double
@@ -64,3 +66,9 @@ frexp(double v, int *ex)
}
return (u.v);
}
+
+#if LDBL_MANT_DIG == 53
+#ifdef __weak_alias
+__weak_alias(frexpl, frexp);
+#endif /* __weak_alias */
+#endif /* LDBL_MANT_DIG == 53 */