summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/isnormal.c
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2013-03-28 18:09:38 +0000
committermartynas <martynas@openbsd.org>2013-03-28 18:09:38 +0000
commit2fbf033e009bb5c4db92160700ec03c25f292728 (patch)
tree9aef21f59264f48d8d9ffa3618aef7e19a65c105 /lib/libc/gen/isnormal.c
parentAdd STRONG_ALIAS macros to be used from assembly code in libc and (diff)
downloadwireguard-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/isnormal.c')
-rw-r--r--lib/libc/gen/isnormal.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/libc/gen/isnormal.c b/lib/libc/gen/isnormal.c
index 19a43263c79..13d04f2a1be 100644
--- a/lib/libc/gen/isnormal.c
+++ b/lib/libc/gen/isnormal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isnormal.c,v 1.6 2012/12/05 23:19:59 deraadt Exp $ */
+/* $OpenBSD: isnormal.c,v 1.7 2013/03/28 18:09:38 martynas Exp $ */
/*
* Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org>
*
@@ -15,8 +15,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* LINTLIBRARY */
-
#include <sys/types.h>
#include <machine/ieee.h>
#include <float.h>
@@ -39,10 +37,5 @@ __isnormalf(float f)
}
#if LDBL_MANT_DIG == 53
-#ifdef lint
-/* PROTOLIB1 */
-int __isnormall(long double);
-#else /* lint */
-__weak_alias(__isnormall, __isnormal);
-#endif /* lint */
+__strong_alias(__isnormall, __isnormal);
#endif /* LDBL_MANT_DIG == 53 */