diff options
Diffstat (limited to 'lib/libc/arch/hppa/gen/fabs.c')
-rw-r--r-- | lib/libc/arch/hppa/gen/fabs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/arch/hppa/gen/fabs.c b/lib/libc/arch/hppa/gen/fabs.c index 88cfb3c39ca..ac0479fd84b 100644 --- a/lib/libc/arch/hppa/gen/fabs.c +++ b/lib/libc/arch/hppa/gen/fabs.c @@ -1,9 +1,11 @@ -/* $OpenBSD: fabs.c,v 1.3 2002/10/21 18:41:05 mickey Exp $ */ +/* $OpenBSD: fabs.c,v 1.4 2008/12/09 20:21:06 martynas Exp $ */ /* * Written by Miodrag Vallat. Public domain */ +#include <machine/cdefs.h> + double fabs(double val) { @@ -11,3 +13,5 @@ fabs(double val) __asm__ __volatile__("fabs,dbl %0,%0" : "+f" (val)); return (val); } + +__weak_alias(fabsl, fabs); |