summaryrefslogtreecommitdiff
path: root/lib/libc/arch/m88k
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-07-26 19:07:10 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-07-26 19:07:10 +0000
commit7be1b07afad34d8e30960b2ba4ef0345981de096 (patch)
tree3bce595df93e3d0c9100618218c9ccfb59b154b7 /lib/libc/arch/m88k
parentd9f6c851eb9fb66fff25d6f2669cd86def7a5363 (diff)
Wrap fpgetround() so internal calls to it (seen on arm, powerpc, and sh)
go direct instead of through the PLT. ok millert@ kettenis@
Diffstat (limited to 'lib/libc/arch/m88k')
-rw-r--r--lib/libc/arch/m88k/gen/fpgetround.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/arch/m88k/gen/fpgetround.c b/lib/libc/arch/m88k/gen/fpgetround.c
index ca59bb78ac7..bbd59ddf5fd 100644
--- a/lib/libc/arch/m88k/gen/fpgetround.c
+++ b/lib/libc/arch/m88k/gen/fpgetround.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpgetround.c,v 1.4 2013/01/05 11:20:55 miod Exp $ */
+/* $OpenBSD: fpgetround.c,v 1.5 2016/07/26 19:07:09 guenther Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@@ -9,10 +9,11 @@
#include <ieeefp.h>
fp_rnd
-fpgetround()
+fpgetround(void)
{
int x;
__asm__ volatile ("fldcr %0, %%fcr63" : "=r" (x));
return (x >> 14) & 0x03;
}
+DEF_WEAK(fpgetround);