]> git.ipfire.org Git - thirdparty/glibc.git/commit
math: Use wordsize-64 version for finite
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 26 Mar 2019 17:47:54 +0000 (17:47 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 12 Jun 2019 17:32:39 +0000 (14:32 -0300)
commita72186761b2ed913fd5ea3df2de2aa446456aa98
tree23c6543f27da2882bd7bd53f7d48c389a6bf47b6
parent6427a6ac8cfe6c6e64214db606c5dced67213e8d
math: Use wordsize-64 version for finite

  - math.h will use compiler builtin for gcc 4.4 when built without
    -fsignaling-nans and the builtin is expanded inline for all
    support architectures.  As an example, there is no intra finite
    call on libm for the architecture I checked, x86, arm, aarch64,
    and powerpc.

  - The resulting binary difference on 32 bits architecture is minimum
    for the non hotspot symbol.

  - It helps wordsize-64 architectures that use ldbl-opt.

  - It add some code simplification with reduction of duplicated
    implementations.

Checked on powerpc-linux-gnu (built without --with-cpu, with
--with-cpu=power4 and with --with-cpu=power5+ and --disable-multi-arch),
powerpc64-linux-gnu (built without --with-cp and with --with-cpu=power5+
and --disable-multi-arch).

* sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
* sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.

Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
ChangeLog
sysdeps/ieee754/dbl-64/s_finite.c
sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c [deleted file]