diff options
author | 2013-03-28 18:09:38 +0000 | |
---|---|---|
committer | 2013-03-28 18:09:38 +0000 | |
commit | 2fbf033e009bb5c4db92160700ec03c25f292728 (patch) | |
tree | 9aef21f59264f48d8d9ffa3618aef7e19a65c105 /lib/libc/gen/modf.c | |
parent | Add STRONG_ALIAS macros to be used from assembly code in libc and (diff) | |
download | wireguard-openbsd-2fbf033e009bb5c4db92160700ec03c25f292728.tar.xz wireguard-openbsd-2fbf033e009bb5c4db92160700ec03c25f292728.zip |
Switch libc and libm to use strong aliases rather than weak aliases
where appropriate. Among other things makes the symbols consistent
across all architectures (notably where ldbl mantissa is 53 bits).
While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there
to trick lint into recording the right prototypes for aliased
functions. Most of the work done at the awesome n2k13 hackathon.
Agreed by kettenis@, guenther@, matthew@.
Diffstat (limited to 'lib/libc/gen/modf.c')
-rw-r--r-- | lib/libc/gen/modf.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/libc/gen/modf.c b/lib/libc/gen/modf.c index fde7cd82bab..586ed28a49a 100644 --- a/lib/libc/gen/modf.c +++ b/lib/libc/gen/modf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modf.c,v 1.4 2011/07/08 22:48:19 martynas Exp $ */ +/* $OpenBSD: modf.c,v 1.5 2013/03/28 18:09:38 martynas Exp $ */ /* $NetBSD: modf.c,v 1.1 1995/02/10 17:50:25 cgd Exp $ */ /* @@ -28,8 +28,6 @@ * rights to redistribute these changes. */ -/* LINTLIBRARY */ - #include <sys/types.h> #include <machine/ieee.h> #include <errno.h> @@ -107,10 +105,5 @@ modf(double val, double *iptr) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double frexpl(long double, int *); -#else /* lint */ -__weak_alias(modfl, modf); -#endif /* lint */ +__strong_alias(modfl, modf); #endif /* LDBL_MANT_DIG == 53 */ |