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..12233d1e44e --- /dev/null +++ b/lib/libc/arch/hppa64/gen/fabs.c @@ -0,0 +1,13 @@ +/* $OpenBSD: fabs.c,v 1.1 2005/04/01 10:54:27 mickey Exp $ */ + +/* + * Written by Miodrag Vallat. Public domain + */ + +double +fabs(double val) +{ + + __asm__ __volatile__("fabs,dbl %0,%0" : "+f" (val)); + return (val); +} |