avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] linear regression on 128L


From: Daniel O'Connor
Subject: Re: [avr-gcc-list] linear regression on 128L
Date: Tue, 5 Apr 2005 17:49:16 +0930
User-agent: KMail/1.8

On Tue, 5 Apr 2005 17:22, Joerg Wunsch wrote:
> choice   sizeof(float)  sizeof(double)  sizeof(long double)
> #1       4              4               8
> #2       4              8               8
>
> Choice #2 complies with the C standard, but breaks compatibility with
> all existing code, and is likely to cause even more bloat (due to the
> internal default promotion of floating point expressions to type
> double).
>
> But again, it requires a volunteer to handle all this...

Surely if double == 4 bytes and float == 4 bytes then double is worthless...

IMO double == 8 bytes is fine and people that need to use it can pay for the 
bloat it will incur.

Is there some hidden cost for double == 8 that doesn't affect people using 
doubles?

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Attachment: pgpW9gixVKZLI.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]