mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 20:43:41 +01:00
Remove weak reference construct from fenv code.
I grepped through the FreeBSD source tree and for me, it seems to be totally unclear why these two specific functions are weak references. Such a construct is commonly used by FreeBSD's threading library (libthr) to override certain functions, but I can't find any traces of that. Just use the function name directly. This fixes a compiler warning as well (-Wmissing-prototypes).
This commit is contained in:
parent
89ac4d4c8c
commit
42177873f8
2 changed files with 4 additions and 10 deletions
|
@ -128,7 +128,7 @@ feupdateenv(const fenv_t *envp)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
__feenableexcept(int mask)
|
feenableexcept(int mask)
|
||||||
{
|
{
|
||||||
uint32_t mxcsr, omask;
|
uint32_t mxcsr, omask;
|
||||||
uint16_t control;
|
uint16_t control;
|
||||||
|
@ -145,7 +145,7 @@ __feenableexcept(int mask)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
__fedisableexcept(int mask)
|
fedisableexcept(int mask)
|
||||||
{
|
{
|
||||||
uint32_t mxcsr, omask;
|
uint32_t mxcsr, omask;
|
||||||
uint16_t control;
|
uint16_t control;
|
||||||
|
@ -160,6 +160,3 @@ __fedisableexcept(int mask)
|
||||||
__ldmxcsr(mxcsr);
|
__ldmxcsr(mxcsr);
|
||||||
return (omask);
|
return (omask);
|
||||||
}
|
}
|
||||||
|
|
||||||
__weak_reference(__feenableexcept, feenableexcept);
|
|
||||||
__weak_reference(__fedisableexcept, fedisableexcept);
|
|
||||||
|
|
|
@ -182,7 +182,7 @@ feupdateenv(const fenv_t *envp)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
__feenableexcept(int mask)
|
feenableexcept(int mask)
|
||||||
{
|
{
|
||||||
uint32_t mxcsr, omask;
|
uint32_t mxcsr, omask;
|
||||||
uint16_t control;
|
uint16_t control;
|
||||||
|
@ -204,7 +204,7 @@ __feenableexcept(int mask)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
__fedisableexcept(int mask)
|
fedisableexcept(int mask)
|
||||||
{
|
{
|
||||||
uint32_t mxcsr, omask;
|
uint32_t mxcsr, omask;
|
||||||
uint16_t control;
|
uint16_t control;
|
||||||
|
@ -224,6 +224,3 @@ __fedisableexcept(int mask)
|
||||||
}
|
}
|
||||||
return (omask);
|
return (omask);
|
||||||
}
|
}
|
||||||
|
|
||||||
__weak_reference(__feenableexcept, feenableexcept);
|
|
||||||
__weak_reference(__fedisableexcept, fedisableexcept);
|
|
||||||
|
|
Loading…
Reference in a new issue