tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] sizeof (long double) vs sizeof (double)


From: Stephan Beal
Subject: Re: [Tinycc-devel] sizeof (long double) vs sizeof (double)
Date: Sat, 6 Sep 2014 17:26:23 +0200

On Sat, Sep 6, 2014 at 4:38 PM, Mads <address@hidden> wrote:
I wish to use extended precision in functions compiled by tcc during execution.
Unfortunately, it appears that for any functions compiled by tcc, sizeof (double) == sizeof (long double)  - and I haven't got the slightest clue whether it's intended, if it's a bug or if I'm missing some flags.

According to C, it's not a bug: a long double must have "at least as much precision" as a double, and a double must have "at least as much precision" as a float.

http://en.wikipedia.org/wiki/Long_double#long_double_in_C

--
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf

reply via email to

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