summaryrefslogtreecommitdiff
path: root/lib/libm/noieee_src/n_support.c
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2013-03-28 18:09:39 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2013-03-28 18:09:39 +0000
commit14238d14e00f4a71f79e75ce67e273c6c19ae841 (patch)
tree96e59e4d578c3e6cd56b77bcef7408afed0e4212 /lib/libm/noieee_src/n_support.c
parent082441c0c4b4a60860a60b78b9f451526c393600 (diff)
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/libm/noieee_src/n_support.c')
-rw-r--r--lib/libm/noieee_src/n_support.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libm/noieee_src/n_support.c b/lib/libm/noieee_src/n_support.c
index 92ba473aa58..b61047d7094 100644
--- a/lib/libm/noieee_src/n_support.c
+++ b/lib/libm/noieee_src/n_support.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_support.c,v 1.21 2013/01/13 03:44:59 martynas Exp $ */
+/* $OpenBSD: n_support.c,v 1.22 2013/03/28 18:09:38 martynas Exp $ */
/* $NetBSD: n_support.c,v 1.1 1995/10/10 23:37:06 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -116,7 +116,7 @@ scalbn(double x, int N)
return(x);
}
-__weak_alias(scalbnl, scalbn);
+__strong_alias(scalbnl, scalbn);
double
copysign(double x, double y)
@@ -132,7 +132,7 @@ copysign(double x, double y)
return(x);
}
-__weak_alias(copysignl, copysign);
+__strong_alias(copysignl, copysign);
double
logb(double x)
@@ -157,7 +157,7 @@ logb(double x)
#endif /* defined(__vax__) */
}
-__weak_alias(logbl, logb);
+__strong_alias(logbl, logb);
double
remainder(double x, double p)
@@ -308,7 +308,7 @@ sqrt(double x)
end: return(scalbn(q,n));
}
-__weak_alias(sqrtl, sqrt);
+__strong_alias(sqrtl, sqrt);
#if 0
/* REMAINDER(X,Y)