Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src expose the BSD/linux fenv extensions in libm on ia64 too.
details: https://anonhg.NetBSD.org/src/rev/2f4b5902ee7f
branches: trunk
changeset: 352271:2f4b5902ee7f
user: chs <chs%NetBSD.org@localhost>
date: Thu Mar 23 18:27:29 2017 +0000
description:
expose the BSD/linux fenv extensions in libm on ia64 too.
diffstat:
lib/libm/arch/ia64/fenv.c | 7 +++++--
sys/arch/ia64/include/fenv.h | 8 +++-----
2 files changed, 8 insertions(+), 7 deletions(-)
diffs (60 lines):
diff -r f40532c9a928 -r 2f4b5902ee7f lib/libm/arch/ia64/fenv.c
--- a/lib/libm/arch/ia64/fenv.c Thu Mar 23 18:26:03 2017 +0000
+++ b/lib/libm/arch/ia64/fenv.c Thu Mar 23 18:27:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.c,v 1.2 2017/03/22 23:11:08 chs Exp $ */
+/* $NetBSD: fenv.c,v 1.3 2017/03/23 18:27:29 chs Exp $ */
/*-
* Copyright (c) 2004 David Schultz <das%FreeBSD.ORG@localhost>
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: fenv.c,v 1.2 2017/03/22 23:11:08 chs Exp $");
+__RCSID("$NetBSD: fenv.c,v 1.3 2017/03/23 18:27:29 chs Exp $");
#include "namespace.h"
@@ -69,6 +69,9 @@
extern inline int fegetenv(fenv_t *__envp);
extern inline int feholdexcept(fenv_t *__envp);
extern inline int fesetenv(const fenv_t *__envp);
+extern inline int feenableexcept(int __excepts);
+extern inline int fedisableexcept(int __excepts);
+extern inline int fegetexcept(void);
/*
* It doesn't pay to inline feupdateenv() because it includes one of
diff -r f40532c9a928 -r 2f4b5902ee7f sys/arch/ia64/include/fenv.h
--- a/sys/arch/ia64/include/fenv.h Thu Mar 23 18:26:03 2017 +0000
+++ b/sys/arch/ia64/include/fenv.h Thu Mar 23 18:27:29 2017 +0000
@@ -208,9 +208,7 @@
#if defined(_NETBSD_SOURCE) || defined(_GNU_SOURCE)
-/* We currently provide no external definitions of the functions below. */
-
-static inline int
+__fenv_static inline int
feenableexcept(int __mask)
{
fenv_t __newfpsr, __oldfpsr;
@@ -221,7 +219,7 @@
return (~__oldfpsr & FE_ALL_EXCEPT);
}
-static inline int
+__fenv_static inline int
fedisableexcept(int __mask)
{
fenv_t __newfpsr, __oldfpsr;
@@ -232,7 +230,7 @@
return (~__oldfpsr & FE_ALL_EXCEPT);
}
-static inline int
+__fenv_static inline int
fegetexcept(void)
{
fenv_t __fpsr;
Home |
Main Index |
Thread Index |
Old Index