diff options
Diffstat (limited to 'lib/libc/arch/hppa/gen/fpgetround.c')
-rw-r--r-- | lib/libc/arch/hppa/gen/fpgetround.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/arch/hppa/gen/fpgetround.c b/lib/libc/arch/hppa/gen/fpgetround.c index 8ec62343404..e84297f58cb 100644 --- a/lib/libc/arch/hppa/gen/fpgetround.c +++ b/lib/libc/arch/hppa/gen/fpgetround.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpgetround.c,v 1.4 2014/04/18 15:09:52 guenther Exp $ */ +/* $OpenBSD: fpgetround.c,v 1.5 2016/07/26 19:07:09 guenther Exp $ */ /* * Written by Miodrag Vallat. Public domain @@ -8,10 +8,11 @@ #include <ieeefp.h> fp_rnd -fpgetround() +fpgetround(void) { u_int64_t fpsr; __asm__ volatile("fstd %%fr0,0(%1)" : "=m" (fpsr) : "r" (&fpsr)); return ((fpsr >> 41) & 0x3); } +DEF_WEAK(fpgetround); |