]> git.ipfire.org Git - thirdparty/glibc.git/commit - sysdeps/ieee754/float128/float128_private.h
Make float128_private.h work with generic ieee754.h.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 22:53:01 +0000 (22:53 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 22:53:01 +0000 (22:53 +0000)
commitdb7a548d02a9a47e8592d67980ffd1faeab3e20f
tree6aed0b6ed69f091511d0245642ed406bff7f15c5
parentd08cdabdd096325a3296713c87672f213b05f5c6
Make float128_private.h work with generic ieee754.h.

float128_private.h redefines ieee754.h identifiers ieee854_long_double
and IEEE854_LONG_DOUBLE_BIAS to map them to identifiers from
ieee754_float128.h.

This causes problems when ieee754.h is included after
float128_private.h and it's a version of ieee754.h that also defines
those identifiers; specifically, sysdeps/ieee754/ieee754.h, which
defines those identifiers for the x86 extended format.  This patch
fixes this by ensuring an include of ieee754.h from float128_private.h
before the redefinitions.

Tested for x86_64 (in conjunction with float128 patches).

* sysdeps/ieee754/float128/float128_private.h: Include
<ieee754.h>.
ChangeLog
sysdeps/ieee754/float128/float128_private.h