diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-05-19 16:36:01 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-05-20 05:21:41 -0700 |
commit | 4e21cb95e206dddf049dec12f7d4e25a79d60e05 (patch) | |
tree | dbc1e8bdaa09c87a1c17e9d54ee08c4f4d157d48 /sysdeps/ieee754 | |
parent | 2be3352f0b1ebaa39596393fffe1062275186669 (diff) | |
download | glibc-4e21cb95e206dddf049dec12f7d4e25a79d60e05.tar.gz glibc-4e21cb95e206dddf049dec12f7d4e25a79d60e05.tar.xz glibc-4e21cb95e206dddf049dec12f7d4e25a79d60e05.zip |
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>
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_nearbyint.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/flt-32/s_nearbyintf.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/ieee754/dbl-64/s_nearbyint.c b/sysdeps/ieee754/dbl-64/s_nearbyint.c index 08fe517b83..606002d680 100644 --- a/sysdeps/ieee754/dbl-64/s_nearbyint.c +++ b/sysdeps/ieee754/dbl-64/s_nearbyint.c @@ -72,4 +72,6 @@ __nearbyint (double x) return t; #endif /* ! USE_NEARBYINT_BUILTIN */ } +#ifndef __nearbyint libm_alias_double (__nearbyint, nearbyint) +#endif diff --git a/sysdeps/ieee754/flt-32/s_nearbyintf.c b/sysdeps/ieee754/flt-32/s_nearbyintf.c index b270749f4c..5dd0e8f8af 100644 --- a/sysdeps/ieee754/flt-32/s_nearbyintf.c +++ b/sysdeps/ieee754/flt-32/s_nearbyintf.c @@ -68,4 +68,6 @@ __nearbyintf (float x) return t; #endif /* ! USE_NEARBYINT_BUILTIN */ } +#ifndef __nearbyintf libm_alias_float (__nearbyint, nearbyint) +#endif |