Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm Separate the NetBSD-specific fenv functions from th...



details:   https://anonhg.NetBSD.org/src/rev/cad7c6cbf966
branches:  trunk
changeset: 845962:cad7c6cbf966
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 26 17:57:20 2019 +0000

description:
Separate the NetBSD-specific fenv functions from the standard ones.
No functional change.

diffstat:

 lib/libm/arch/m68k/fenv.c |  12 +++++++-----
 lib/libm/src/namespace.h  |   9 +++++----
 2 files changed, 12 insertions(+), 9 deletions(-)

diffs (76 lines):

diff -r 271ddfcb0b2d -r cad7c6cbf966 lib/libm/arch/m68k/fenv.c
--- a/lib/libm/arch/m68k/fenv.c Sat Oct 26 17:51:49 2019 +0000
+++ b/lib/libm/arch/m68k/fenv.c Sat Oct 26 17:57:20 2019 +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 2019/10/26 17:57:20 christos Exp $        */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #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 2019/10/26 17:57:20 christos Exp $");
 
 #include "namespace.h"
 
@@ -38,10 +38,7 @@
 
 #ifdef __weak_alias
 __weak_alias(feclearexcept,_feclearexcept)
-__weak_alias(fedisableexcept,_fedisableexcept)
-__weak_alias(feenableexcept,_feenableexcept)
 __weak_alias(fegetenv,_fegetenv)
-__weak_alias(fegetexcept,_fegetexcept)
 __weak_alias(fegetexceptflag,_fegetexceptflag)
 __weak_alias(fegetround,_fegetround)
 __weak_alias(feholdexcept,_feholdexcept)
@@ -51,6 +48,10 @@
 __weak_alias(fesetround,_fesetround)
 __weak_alias(fetestexcept,_fetestexcept)
 __weak_alias(feupdateenv,_feupdateenv)
+
+__weak_alias(fedisableexcept,_fedisableexcept)
+__weak_alias(feenableexcept,_feenableexcept)
+__weak_alias(fegetexcept,_fegetexcept)
 #endif
 
 #if defined(__GNUC_GNU_INLINE__) && !defined(__lint__)
@@ -68,6 +69,7 @@
 extern inline int feholdexcept(fenv_t *__envp);
 extern inline int fesetenv(const fenv_t *__envp);
 extern inline int feupdateenv(const fenv_t *__envp);
+
 extern inline int feenableexcept(int __excepts);
 extern inline int fedisableexcept(int __excepts);
 extern inline int fegetexcept(void);
diff -r 271ddfcb0b2d -r cad7c6cbf966 lib/libm/src/namespace.h
--- a/lib/libm/src/namespace.h  Sat Oct 26 17:51:49 2019 +0000
+++ b/lib/libm/src/namespace.h  Sat Oct 26 17:57:20 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.14 2017/03/22 23:11:09 chs Exp $ */
+/* $NetBSD: namespace.h,v 1.15 2019/10/26 17:57:20 christos Exp $ */
 
 #define atan2 _atan2
 #define atan2f _atan2f
@@ -75,10 +75,7 @@
 #define erfcl  _erfcl
 
 #define feclearexcept _feclearexcept
-#define fedisableexcept _fedisableexcept
-#define feenableexcept _feenableexcept
 #define fegetenv _fegetenv
-#define fegetexcept _fegetexcept
 #define fegetexceptflag _fegetexceptflag
 #define fegetround _fegetround
 #define feholdexcept _feholdexcept
@@ -88,3 +85,7 @@
 #define fesetround _fesetround
 #define fetestexcept _fetestexcept
 #define feupdateenv _feupdateenv
+
+#define fedisableexcept _fedisableexcept
+#define feenableexcept _feenableexcept
+#define fegetexcept _fegetexcept



Home | Main Index | Thread Index | Old Index