summaryrefslogtreecommitdiff
path: root/lib/libc/arch/powerpc/gen/fabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/powerpc/gen/fabs.c')
-rw-r--r--lib/libc/arch/powerpc/gen/fabs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/arch/powerpc/gen/fabs.c b/lib/libc/arch/powerpc/gen/fabs.c
index e34dfdf7b2b..7fdcf7295a5 100644
--- a/lib/libc/arch/powerpc/gen/fabs.c
+++ b/lib/libc/arch/powerpc/gen/fabs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.c,v 1.2 2002/06/17 19:15:46 deraadt Exp $ */
+/* $OpenBSD: fabs.c,v 1.3 2008/12/09 20:21:06 martynas Exp $ */
/*
* Copyright (c) 2002 Theo de Raadt
@@ -25,6 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <machine/cdefs.h>
#include <math.h>
double
@@ -33,3 +34,5 @@ fabs(double x)
__asm__ __volatile("fabs %0,%1" : "=f"(x) : "f"(x));
return (x);
}
+
+__weak_alias(fabsl, fabs);