mailing list of musl libc
 help / color / mirror / code / Atom feed
* checks involving LDBL_MANT_DIG
@ 2014-05-27 14:23 writeonce
  2014-05-27 15:00 ` Szabolcs Nagy
  0 siblings, 1 reply; 3+ messages in thread
From: writeonce @ 2014-05-27 14:23 UTC (permalink / raw)
  To: musl

Greetings,

In src/complex/*, several files check for LDBL_MANT_DIG == 53 &&
LDBL_MAX_EXP == 1024, however according to src/stdio/vfprintf.c,
(LDBL_MANT_DIG == 53) is considered incorrect and would cause a
compile-time error.  Does this mean that the above checks in
src/complex/* may be eliminated?

zg



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: checks involving LDBL_MANT_DIG
  2014-05-27 14:23 checks involving LDBL_MANT_DIG writeonce
@ 2014-05-27 15:00 ` Szabolcs Nagy
  2014-05-27 15:37   ` writeonce
  0 siblings, 1 reply; 3+ messages in thread
From: Szabolcs Nagy @ 2014-05-27 15:00 UTC (permalink / raw)
  To: musl

* writeonce@midipix.org <writeonce@midipix.org> [2014-05-27 07:23:20 -0700]:
> In src/complex/*, several files check for LDBL_MANT_DIG == 53 &&
> LDBL_MAX_EXP == 1024, however according to src/stdio/vfprintf.c,
> (LDBL_MANT_DIG == 53) is considered incorrect and would cause a
> compile-time error.  Does this mean that the above checks in
> src/complex/* may be eliminated?

there is nothing wrong with LDBL_MANT_DIG == 53

vfprintf only checks if long double really has appropriate size in that case


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: checks involving LDBL_MANT_DIG
  2014-05-27 15:00 ` Szabolcs Nagy
@ 2014-05-27 15:37   ` writeonce
  0 siblings, 0 replies; 3+ messages in thread
From: writeonce @ 2014-05-27 15:37 UTC (permalink / raw)
  To: musl

On 05/27/2014 06:00 PM, Szabolcs Nagy wrote:
> * writeonce@midipix.org <writeonce@midipix.org> [2014-05-27 07:23:20 -0700]:
>> In src/complex/*, several files check for LDBL_MANT_DIG == 53 &&
>> LDBL_MAX_EXP == 1024, however according to src/stdio/vfprintf.c,
>> (LDBL_MANT_DIG == 53) is considered incorrect and would cause a
>> compile-time error.  Does this mean that the above checks in
>> src/complex/* may be eliminated?
> there is nothing wrong with LDBL_MANT_DIG == 53
>
> vfprintf only checks if long double really has appropriate size in that case
>
>
Thanks, that explains everything... wrong experiment on my part.
zg



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-27 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-27 14:23 checks involving LDBL_MANT_DIG writeonce
2014-05-27 15:00 ` Szabolcs Nagy
2014-05-27 15:37   ` writeonce

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).