summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/gen/fpsetround.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-07-22 06:46:17 +0000
committerpeter <peter@FreeBSD.org>2003-07-22 06:46:17 +0000
commitfe3ce16f0fe94ba5f002c366432709542e11a77a (patch)
tree54c1922aa3558a19fdc92693c9fe3747f50bc77e /lib/libc/amd64/gen/fpsetround.c
parent576883ab15b9902dfcdc6865ad0cb986fd4841d0 (diff)
downloadFreeBSD-src-fe3ce16f0fe94ba5f002c366432709542e11a77a.zip
FreeBSD-src-fe3ce16f0fe94ba5f002c366432709542e11a77a.tar.gz
Instantiate explicit callable versions of the machine/ieeefp.h inlines
for the use of non-GCC compilers and C++ code.
Diffstat (limited to 'lib/libc/amd64/gen/fpsetround.c')
-rw-r--r--lib/libc/amd64/gen/fpsetround.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/amd64/gen/fpsetround.c b/lib/libc/amd64/gen/fpsetround.c
new file mode 100644
index 0000000..6f13367
--- /dev/null
+++ b/lib/libc/amd64/gen/fpsetround.c
@@ -0,0 +1,8 @@
+/* $FreeBSD$ */
+#define __IEEEFP_NOINLINES__ 1
+#include <ieeefp.h>
+
+fp_rnd_t fpsetround(fp_rnd_t m)
+{
+ return (__fpsetround(m));
+}
OpenPOWER on IntegriCloud