Update math: redirect roundeven function

Redirect target specific roundeven functions for aarch64, ldbl-128ibm
and riscv.
This commit is contained in:
H.J. Lu 2021-06-23 13:29:41 -07:00
parent eb9066203f
commit 3213ed770c
5 changed files with 5 additions and 2 deletions

View File

@ -16,6 +16,7 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#define NO_MATH_REDIRECT
#include <math.h>
#include <libm-alias-double.h>
@ -25,5 +26,4 @@ __roundeven (double x)
asm volatile ("frintn \t%d0, %d1" : "=w" (x) : "w" (x));
return x;
}
hidden_def (__roundeven)
libm_alias_double (__roundeven, roundeven)

View File

@ -16,6 +16,7 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#define NO_MATH_REDIRECT
#include <math.h>
#include <libm-alias-float.h>

View File

@ -17,6 +17,7 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#define NO_MATH_REDIRECT
#include <math.h>
#include <math_private.h>

View File

@ -16,6 +16,7 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#define NO_MATH_REDIRECT
#include <math.h>
#include <fenv_private.h>
#include <libm-alias-double.h>
@ -49,5 +50,4 @@ __roundeven (double x)
return x;
}
hidden_def (__roundeven)
libm_alias_double (__roundeven, roundeven)

View File

@ -16,6 +16,7 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#define NO_MATH_REDIRECT
#include <math.h>
#include <fenv_private.h>
#include <libm-alias-float.h>