Module Name: src Committed By: chs Date: Thu Mar 23 18:27:29 UTC 2017
Modified Files: src/lib/libm/arch/ia64: fenv.c src/sys/arch/ia64/include: fenv.h Log Message: expose the BSD/linux fenv extensions in libm on ia64 too. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/libm/arch/ia64/fenv.c cvs rdiff -u -r1.1 -r1.2 src/sys/arch/ia64/include/fenv.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libm/arch/ia64/fenv.c diff -u src/lib/libm/arch/ia64/fenv.c:1.2 src/lib/libm/arch/ia64/fenv.c:1.3 --- src/lib/libm/arch/ia64/fenv.c:1.2 Wed Mar 22 23:11:08 2017 +++ src/lib/libm/arch/ia64/fenv.c Thu Mar 23 18:27:29 2017 @@ -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 <d...@freebsd.org> @@ -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 fesetround(int __round 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 Index: src/sys/arch/ia64/include/fenv.h diff -u src/sys/arch/ia64/include/fenv.h:1.1 src/sys/arch/ia64/include/fenv.h:1.2 --- src/sys/arch/ia64/include/fenv.h:1.1 Thu Feb 23 02:03:27 2017 +++ src/sys/arch/ia64/include/fenv.h Thu Mar 23 18:27:29 2017 @@ -208,9 +208,7 @@ int feupdateenv(const fenv_t *__envp); #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 @@ feenableexcept(int __mask) return (~__oldfpsr & FE_ALL_EXCEPT); } -static inline int +__fenv_static inline int fedisableexcept(int __mask) { fenv_t __newfpsr, __oldfpsr; @@ -232,7 +230,7 @@ fedisableexcept(int __mask) return (~__oldfpsr & FE_ALL_EXCEPT); } -static inline int +__fenv_static inline int fegetexcept(void) { fenv_t __fpsr;