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
This commit is contained in:
Warner Losh 2023-11-19 20:48:30 -07:00
parent 8ae4bb9398
commit 1b681154f5

View file

@ -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);