nearbyint: Don't define alias when used in IFUNC [BZ #31759]

Fix BZ #31759 by not defining nearbyint aliases when used in IFUNC.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
This commit is contained in:
H.J. Lu 2024-05-19 16:36:01 -07:00
parent 2be3352f0b
commit 4e21cb95e2
2 changed files with 4 additions and 0 deletions

View File

@ -72,4 +72,6 @@ __nearbyint (double x)
return t;
#endif /* ! USE_NEARBYINT_BUILTIN */
}
#ifndef __nearbyint
libm_alias_double (__nearbyint, nearbyint)
#endif

View File

@ -68,4 +68,6 @@ __nearbyintf (float x)
return t;
#endif /* ! USE_NEARBYINT_BUILTIN */
}
#ifndef __nearbyintf
libm_alias_float (__nearbyint, nearbyint)
#endif