diff options
author | 2008-12-09 20:32:06 +0000 | |
---|---|---|
committer | 2008-12-09 20:32:06 +0000 | |
commit | cfbd74e7bb52785420a434dfbc3fb1dcca44ed0f (patch) | |
tree | 3c3e4caca7159af9e2763949468ed56e72de9f62 /lib/libc/gen/frexp.c | |
parent | alias fabsl to fabs on these archs (diff) | |
download | wireguard-openbsd-cfbd74e7bb52785420a434dfbc3fb1dcca44ed0f.tar.xz wireguard-openbsd-cfbd74e7bb52785420a434dfbc3fb1dcca44ed0f.zip |
ditto frexpl and ldexpl
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 */ |