Re: LDBL_MAX -1.#QNAN0e+000 with MinGW?



In data Mon, 03 Dec 2007 11:06:43 +0100, jacob navia scrisse:
RoS wrote:
In data Sat, 01 Dec 2007 11:01:52 +0100, jacob navia scrisse:

Jack Klein wrote:
I'm not a die hard Microsoft basher, but this was certainly an example
of extreme stupidity on their part. They decided that their goal of
world domination was more important than the need of the programmer to
decide when a program needed the maximum precision that the hardware
could provide.


Microsoft is perfectly right to do that since the C standard EXPLICITELY
allows setting long double to double. The error is with gcc/mingw, not
with Microsoft. Mingw uses the run time of Microsoft without adapting
the compiler to the run time library and this is surely not Microsoft's
fault!

If you compile your program with Microsoft it will work correctly since
the compiler generates the right call!

wrong
there are numbers that are rappresentable with 80bit float
and not rappresentable with 64bit float


Yes, but as I said above, Microsoft never uses 80 bits
Please read the message before sending this "wrong" stuff!

excuse me i have read wrong
but LDBL_MAX etc will be different

if i remember well, if a 64bit float try to rappresent a
80bit float should generate in that conversion an exception
in a x86 cpu (but printf can handle this case returning error)

The CPU is in 64 Bit (double precision), not in 80 bits precision
This setting is used by Microsoft.
.



Relevant Pages

  • Re: VBA : shrinking a multidimensional array to nothing and restarting again...
    ... >> Gerry Quinn wrote: ... > have been documented (or how would Nash have known of it?). ... We're talking about what Microsoft does, ... >>> certain function not operating as he expected in one compiler. ...
    (comp.programming)
  • Re: To Richard Heathfield: enoughs enough
    ... Abandoning Hungarian notation because it is ... So write you're own compiler for a new language, ... >> I don't own any such books. ... Not even Microsoft claims that anymore. ...
    (comp.programming)
  • Re: [announcement] SYSAPI and SYSSVC for Windows
    ... are 3D GUI objects a Microsoft invention? ... copies to circumvent payment is a nice thing to do, but I think "secure" ... :> "trusted" applications like media player, real player, and its ilk or not ... I don't think small compiler companies will always use dongles. ...
    (comp.lang.ada)
  • Re: Visual C++ 6 support issue
    ... Of course, Eclipse has the ... Apparently there is a discussion group going on in Microsoft which is discussing the tool ... >the same parsing job that the first couple of passes of the compiler ... And the compiler and the IDE are completely orthogonal. ...
    (microsoft.public.vc.mfc)
  • Re: LDBL_MAX -1.#QNAN0e+000 with MinGW?
    ... Mingw uses the run time of Microsoft without adapting ... the compiler to the run time library and this is surely not Microsoft's ... there are numbers that are rappresentable with 80bit float ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)