LibM: Mark compilation-unit-only functions as static

This enables a nice warning in case a function becomes dead code.
This commit is contained in:
Ben Wiederhake 2020-08-11 00:09:43 +02:00 committed by Andreas Kling
parent f2f0c22052
commit 7cb2b344c0
Notes: sideshowbarker 2024-07-19 03:42:24 +09:00

View file

@ -155,7 +155,7 @@ double tanh(double x) NOEXCEPT
return (plusX - minusX) / (plusX + minusX);
}
double ampsin(double angle) NOEXCEPT
static double ampsin(double angle) NOEXCEPT
{
double looped_angle = fmod(M_PI + angle, M_TAU) - M_PI;
double looped_angle_squared = looped_angle * looped_angle;
@ -536,5 +536,4 @@ double erfc(double x) NOEXCEPT
{
return 1 - erf(x);
}
}