diff options
Diffstat (limited to 'lib/libc/arch/hppa64/gen/fabs.c')
-rw-r--r-- | lib/libc/arch/hppa64/gen/fabs.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libc/arch/hppa64/gen/fabs.c b/lib/libc/arch/hppa64/gen/fabs.c new file mode 100644 index 00000000000..2a31ff0b12c --- /dev/null +++ b/lib/libc/arch/hppa64/gen/fabs.c @@ -0,0 +1,13 @@ +/* $OpenBSD: fabs.c,v 1.3 2011/07/08 22:28:33 martynas Exp $ */ + +/* + * Written by Miodrag Vallat. Public domain + */ + +double +fabs(double val) +{ + + __asm__ __volatile__("fabs,dbl %0,%0" : "+f" (val)); + return (val); +} |