SHARED-FILES: Adjust core-math entries

And remove duplicate info on each file wrt glibc changes.  Also
add the core-math git repository link.
Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
Adhemerval Zanella 2025-08-25 13:38:20 -03:00
parent b5d88fa6c3
commit 10ca44f1cc
1 changed files with 60 additions and 133 deletions

View File

@ -229,136 +229,63 @@ tzdata:
# This is yearistype.sh in the parent project # This is yearistype.sh in the parent project
timezone/yearistype timezone/yearistype
# The following files are shared with the CORE-MATH project # The following files are imported from the CORE-MATH project, with
sysdeps/ieee754/flt-32/e_gammaf_r.c # adjustments made to follow glibc code style, to utilize internal error
(file src/binary32/tgamma/tgammaf.c in CORE-MATH) # handling functions, and to implement minor fixes for ABIs with
Instructions to merge new versions: # FLT_EVAL_METHOD equal to 2 (i386). Additionally, extra optimizations
- change the function name from cr_tgammaf to __ieee754_gammaf_r # are applied to share the internal data table across different
- add "int *signgamp" as 2nd argument and add at the beginning: # implementations.
if (signgamp != NULL) *signgamp = 1; #
- remove the errno stuff (this is done by the wrapper) # The project is distribute here:
- replace 0x1p127f * 0x1p127f by math_narrow_eval (x * 0x1p127f) # https://gitlab.inria.fr/core-math/core-math/
- replace 0x1p-127f * sgn[k&1] by math_narrow_eval (0x1p-127f * sgn[k&1]) core-math:
- add libm_alias_finite (__ieee754_gammaf_r, __gammaf_r) at the end # src/binary32/acos/acosf.c, revision 56dd347
sysdeps/ieee754/flt-32/s_exp10m1f.c sysdeps/ieee754/flt-32/e_acosf.c
(file src/binary32/exp10m1/exp10m1f.c in CORE-MATH) # src/binary32/acosh/acoshf.c, revision d0b9ddd
- The code was adapted to use glibc code style and internal sysdeps/ieee754/flt-32/e_acoshf.c
functions to handle errno, overflow, and underflow. # file src/binary32/cosh/coshf.c, revision de59ecfb
sysdeps/ieee754/flt-32/s_exp2m1f.c sysdeps/ieee754/flt-32/e_coshf.c
(file src/binary32/exp2m1/exp2m1f.c in CORE-MATH) # src/binary32/tgamma/tgammaf.c, revision a48e352
- The code was adapted to use glibc code style and internal sysdeps/ieee754/flt-32/e_gammaf_r.c
functions to handle errno, overflow, and underflow. # src/binary32/lgamma/lgammaf.c, revision bc385c2
sysdeps/ieee754/flt-32/s_expm1f.c sysdeps/ieee754/flt-32/e_lgammaf_r.c
(file src/binary32/expm1/expm1f.c in CORE-MATH) # src/binary32/log10/log10f.c, revision bc385c2
- The code was adapted to use glibc code style and internal sysdeps/ieee754/flt-32/e_log10f.c
functions to handle errno, overflow, and underflow. # src/binary32/sinh/sinhf.c, revision bbfabd99
sysdeps/ieee754/flt-32/e_log10f.c sysdeps/ieee754/flt-32/e_sinhf.c
(file src/binary32/log10/log10f.c in CORE-MATH) # src/binary32/acospi/acospif.c, revision 1a6a9ab
- The code was adapted to use glibc code style and internal sysdeps/ieee754/flt-32/s_acospif.c
functions to handle errno, overflow, and underflow. # src/binary32/asinpi/asinpif.c, revision 6ee58266
sysdeps/ieee754/flt-32/s_log2p1f.c sysdeps/ieee754/flt-32/s_asinpif.c
(file src/binary32/log2p1/log2p1f.c in CORE-MATH) # src/binary32/atan2pi/atan2pif.c, revision dbebee1
- The code was adapted to use glibc code style and internal sysdeps/ieee754/flt-32/s_atan2pif.c
functions to handle errno, overflow, and underflow. # src/binary32/atanpi/atanpif.c, revision e02000e
sysdeps/ieee754/flt-32/s_log1pf.c sysdeps/ieee754/flt-32/s_atanpif.c
(file src/binary32/log1p/log1pf.c in CORE-MATH) # src/binary32/cbrt/cbrtf.c, revision f7c7408d
- The code was adapted to use glibc code style and internal sysdeps/ieee754/flt-32/s_cbrtf.c
functions to handle errno, overflow, and underflow. # src/binary32/cospi/cospif.c, revision bbfabd99
sysdeps/ieee754/flt-32/s_log10p1f.c sysdeps/ieee754/flt-32/s_cospif.c
(file src/binary32/log10p1/log10p1f.c in CORE-MATH) # src/binary32/erfc/erfcf.c revision d0a2be20
- The code was adapted to use glibc code style and internal sysdeps/ieee754/flt-32/s_erfcf.c
functions to handle errno, overflow, and underflow. # src/binary32/erf/erff.c revision bc385c2
sysdeps/ieee754/flt-32/s_cbrtf.c sysdeps/ieee754/flt-32/s_erff.c
(file src/binary32/cbrt/cbrtf.c in CORE-MATH) # src/binary32/exp10m1/exp10m1f.c, revision c46b85b
- The code was adapted to use glibc code style and internal sysdeps/ieee754/flt-32/s_exp10m1f.c
functions to handle errno, overflow, and underflow. # src/binary32/exp2m1/exp2m1f.c, revision baf5f6b
sysdeps/ieee754/flt-32/s_erff.c sysdeps/ieee754/flt-32/s_exp2m1f.c
(file src/binary32/erf/erff.c in CORE-MATH) # src/binary32/expm1/expm1f.c, revision bc385c2
- The code was adapted to use glibc code style and internal sysdeps/ieee754/flt-32/s_expm1f.c
functions to handle errno, overflow, and underflow. # src/binary32/log10p1/log10p1f.c revision bc385c2
sysdeps/ieee754/flt-32/s_erfcf.c sysdeps/ieee754/flt-32/s_log10p1f.c
(file src/binary32/erfc/erfcf.c in CORE-MATH) # src/binary32/log1p/log1pf.c revision bc385c2
- The code was adapted to use glibc code style and internal sysdeps/ieee754/flt-32/s_log1pf.c
functions to handle errno, overflow, and underflow. # src/binary32/log2p1/log2p1f.c revision bc385c2
sysdeps/ieee754/flt-32/e_lgammaf_r.c: sysdeps/ieee754/flt-32/s_log2p1f.c
(file src/binary32/lgamma/lgammaf.c in CORE-MATH) # src/binary32/sinpi/sinpif.c, revision bbfabd99d
- change the function name from cr_lgammaf to __ieee754_lgammaf_r sysdeps/ieee754/flt-32/s_sinpif.c
- add "int *signgamp" as 2nd argument and add at the beginning: # src/binary32/tan/tanf.c, revision 59d21d7
if (signgamp != NULL) *signgamp = 1; sysdeps/ieee754/flt-32/s_tanf.c
- remove the errno stuff (this is done by the wrapper) # src/binary32/tanh/tanhf.c, revision b1ecd83
- replace 0x1p127f * 0x1p127f by math_narrow_eval (x * 0x1p127f) sysdeps/ieee754/flt-32/s_tanhf.c
- add libm_alias_finite (__ieee754_lgammaf_r, __lgammaf_r) at the end # src/binary32/tanpi/tanpif.c, revision 3bbf907
sysdeps/ieee754/flt-32/s_tanf.c: sysdeps/ieee754/flt-32/s_tanpif.c
(src/binary32/tan/tanf.c in CORE-MATH)
- The code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow. It was changed
to use an internal wrapper for 128 bit unsigned integer operations
for ABIs that do not support the type natively.
sysdeps/ieee754/flt-32/e_acosf.c:
(src/binary32/acos/acosf.c in CORE-MATH)
- The code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/e_acoshf.c:
(src/binary32/acosh/acoshf.c in CORE-MATH)
- The code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/e_asinf.c:
(src/binary32/asin/asinf.c in CORE-MATH)
- The code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/s_asinhf.c:
(src/binary32/asinh/asinhf.c in CORE-MATH)
- The code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/s_atanf.c:
(src/binary32/atan/atanf.c in CORE-MATH)
- The code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/e_atan2f.c:
(src/binary32/atan2/atan2f.c in CORE-MATH)
- The code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/e_atanhf.c:
(src/binary32/atanh/atanhf.c in CORE-MATH)
- The code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/e_coshf.c:
(src/binary32/cosh/coshf.c in CORE-MATH)
- the code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/e_sinhf.c:
(src/binary32/sinh/sinhf.c in CORE-MATH)
- the code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/s_tanhf.c:
(src/binary32/tanh/tanhf.c in CORE-MATH)
- the code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/s_acospif.c:
(src/binary32/acospi/acospif.c in CORE-MATH)
- the code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/s_asinpif.c:
(src/binary32/asinpi/asinpif.c in CORE-MATH)
- the code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/s_atan2pif.c:
(src/binary32/atan2pi/atan2pif.c in CORE-MATH)
- the code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/s_atanpif.c:
(src/binary32/atanpi/atanpif.c in CORE-MATH)
- the code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/s_cospif.c:
(src/binary32/cospi/cospif.c in CORE-MATH)
- the code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/s_sinpif.c:
(src/binary32/sinpi/sinpif.c in CORE-MATH)
- the code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.
sysdeps/ieee754/flt-32/s_tanpif.c:
(src/binary32/tanpi/tanpif.c in CORE-MATH)
- the code was adapted to use glibc code style and internal
functions to handle errno, overflow, and underflow.