mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
Use LDBL_MIN_EXP to distinguish Intel and Motorola extended float format
This commit is contained in:
parent
e1343020fb
commit
a0070b7e70
@ -3,7 +3,8 @@
|
|||||||
* stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
|
* stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
|
||||||
float format.
|
float format.
|
||||||
* stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
|
* stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
|
||||||
LDBL_MAX_EXP]: Add case for Motorola extended float format.
|
LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
|
||||||
|
format.
|
||||||
(test): Regenerate.
|
(test): Regenerate.
|
||||||
|
|
||||||
2012-09-04 David S. Miller <davem@davemloft.net>
|
2012-09-04 David S. Miller <davem@davemloft.net>
|
||||||
|
@ -39,26 +39,22 @@ struct test {
|
|||||||
ld106exact, ld106d, ld106n, ld106z, ld106u, \
|
ld106exact, ld106d, ld106n, ld106z, ld106u, \
|
||||||
ld113d, ld113n, ld113z, ld113u) \
|
ld113d, ld113n, ld113z, ld113u) \
|
||||||
{ s, fn, dn, true, ld53n }
|
{ s, fn, dn, true, ld53n }
|
||||||
#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
|
#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && LDBL_MIN_EXP == -16381
|
||||||
# if defined __i386__ || defined __x86_64__ || defined __ia64__
|
|
||||||
/* This is for the Intel extended float format. */
|
/* This is for the Intel extended float format. */
|
||||||
# define TEST(s, fd, fn, fz, fu, dd, dn, dz, du, ld53d, ld53n, ld53z, ld53u, \
|
# define TEST(s, fd, fn, fz, fu, dd, dn, dz, du, ld53d, ld53n, ld53z, ld53u, \
|
||||||
ld64id, ld64in, ld64iz, ld64iu, \
|
ld64id, ld64in, ld64iz, ld64iu, \
|
||||||
ld64md, ld64mn, ld64mz, ld64mu, \
|
ld64md, ld64mn, ld64mz, ld64mu, \
|
||||||
ld106exact, ld106d, ld106n, ld106z, ld106u, \
|
ld106exact, ld106d, ld106n, ld106z, ld106u, \
|
||||||
ld113d, ld113n, ld113z, ld113u) \
|
ld113d, ld113n, ld113z, ld113u) \
|
||||||
{ s, fn, dn, true, ld64in }
|
{ s, fn, dn, true, ld64in }
|
||||||
# elif defined __mc68000__
|
#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && LDBL_MIN_EXP == -16382
|
||||||
/* This is for the Motorola extended float format. */
|
/* This is for the Motorola extended float format. */
|
||||||
# define TEST(s, fd, fn, fz, fu, dd, dn, dz, du, ld53d, ld53n, ld53z, ld53u, \
|
# define TEST(s, fd, fn, fz, fu, dd, dn, dz, du, ld53d, ld53n, ld53z, ld53u, \
|
||||||
ld64id, ld64in, ld64iz, ld64iu, \
|
ld64id, ld64in, ld64iz, ld64iu, \
|
||||||
ld64md, ld64mn, ld64mz, ld64mu, \
|
ld64md, ld64mn, ld64mz, ld64mu, \
|
||||||
ld106exact, ld106d, ld106n, ld106z, ld106u, \
|
ld106exact, ld106d, ld106n, ld106z, ld106u, \
|
||||||
ld113d, ld113n, ld113z, ld113u) \
|
ld113d, ld113n, ld113z, ld113u) \
|
||||||
{ s, fn, dn, true, ld64mn }
|
{ s, fn, dn, true, ld64mn }
|
||||||
# else
|
|
||||||
# error "unknown long double format"
|
|
||||||
# endif
|
|
||||||
#elif LDBL_MANT_DIG == 106 && LDBL_MAX_EXP == 1024
|
#elif LDBL_MANT_DIG == 106 && LDBL_MAX_EXP == 1024
|
||||||
# define TEST(s, fd, fn, fz, fu, dd, dn, dz, du, ld53d, ld53n, ld53z, ld53u, \
|
# define TEST(s, fd, fn, fz, fu, dd, dn, dz, du, ld53d, ld53n, ld53z, ld53u, \
|
||||||
ld64id, ld64in, ld64iz, ld64iu, \
|
ld64id, ld64in, ld64iz, ld64iu, \
|
||||||
|
Loading…
Reference in New Issue
Block a user