]> git.ipfire.org Git - thirdparty/glibc.git/commit - stdlib/fpioconst.h
float128: Extend the power of ten tables
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Fri, 4 Nov 2016 11:57:27 +0000 (09:57 -0200)
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Wed, 7 Jun 2017 19:58:42 +0000 (16:58 -0300)
commit82c19bdfe39164fda779c79a925c2050b19e421b
tree0867224cd0c83e3383fde82ac3875b61e1f7480f
parent81df4d253dc3184fb003e4737b917e8d35c341d1
float128: Extend the power of ten tables

Update the power of ten tables used by the common implementation when long
double is not the most expressive real type.

* stdlib/fpioconst.h: Include bits/floatn.h.
(FPIOCONST_HAVE_EXTENDED_RANGE): New macro for testing how big the
power of ten table should be.
(FPIOCONST_POW10_ARRAY_SIZE): Use larger table if above is true.
* stdlib/fpioconst.c (__tens): Use FPIOCONST_HAVE_EXTENDED_RANGE
to include larger tables when _Float128 support is enabled.
(_fpioconst_pow10): Likewise.
ChangeLog
stdlib/fpioconst.c
stdlib/fpioconst.h