git: 1b681154f5e9 - main - math: Move to const instead of __const
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 Nov 2023 03:57:56 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=1b681154f5e9c212822d7bfa6e3c399bb36bed47
commit 1b681154f5e9c212822d7bfa6e3c399bb36bed47
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-11-20 03:48:30 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-11-20 03:55:57 +0000
math: Move to const instead of __const
There's no reason to use the __const construct here. This is a left-over
from supporting K&R and ANSI compilers in the original Sun msun. All
other K&R crutches have been removed. Remove these as well. There's no
semantic difference. And there's already several others in math.h.
Sponsored by: Netflix
---
lib/msun/src/math.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h
index 8e72beb757f8..f1acfda8d7e8 100644
--- a/lib/msun/src/math.h
+++ b/lib/msun/src/math.h
@@ -183,21 +183,21 @@ int __signbitf(float) __pure2;
int __signbitl(long double) __pure2;
static __inline int
-__inline_isnan(__const double __x)
+__inline_isnan(const double __x)
{
return (__x != __x);
}
static __inline int
-__inline_isnanf(__const float __x)
+__inline_isnanf(const float __x)
{
return (__x != __x);
}
static __inline int
-__inline_isnanl(__const long double __x)
+__inline_isnanl(const long double __x)
{
return (__x != __x);