diff options
Diffstat (limited to 'lib/libc/gen/frexp.c')
-rw-r--r-- | lib/libc/gen/frexp.c | 10 |
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 */ |