Re: Integer Coersion
- From: Gordon Sande <g.sande@xxxxxxxxxxxxxxxx>
- Date: Wed, 07 Feb 2007 16:34:04 GMT
On 2007-02-07 12:06:55 -0400, "PJH" <abc@xxxxxxxxxxx> said:
Gordon Sande wroteOn 2007-02-07 09:38:24 -0400, mecej4 <mecej4@xxxxxxxxxxxxx> said:
It has been repeatedly observed in the past that byte size is not a unique
specification of a floating point format. There can be an exchange between
the lengths of the exponent and significand fields.
There have been major vendors with popular computers lines for which this
was true. Consider the various VAXen.
I think this is confusing a number of separate (but related) issues, none of
which are covered much by the standard.
1) Storage bit length for a type kind
2) Bits per storage byte
3) Data representation within the bitfield of a type kind
Fortran type kind parameters will not guarantee any of these and it is very
difficult at runtime to check what these values actually are - hence all the
messing around with the Transfer function to maybe, if you are lucky, find
out how many bits there are in a non-default floating point type kind. The
only useful standard function we have is bit_size, which only works on
integers.
It is difficult to believe that in 2007 we are still messing around in the
dark like this. All we need are a few simple, standard intrinsic inquiry
functions (or modules) to either tell us what is going on in the compiler or
to tell us that the compiler is in a little world of its own where the
question doesn't make any sense.
Paul Holden
The bundle of related isuues is confused because the situation is not simple.
It is worth pointing out to those who advocate byte size that it does not
even address the simplest of the complicatons, namely floating point formats.
That assumes that those advocates would listen when all the evidence is to
the contrary.
Being able to pose a question is no guarantee that an answer exists. How is
a "portable" code supposed to proceed when the intrinsic response is that there
is no such solution?
.
- Follow-Ups:
- Re: Integer Coersion
- From: PJH
- Re: Integer Coersion
- From: gary . l . scott
- Re: Integer Coersion
- References:
- Integer Coersion
- From: PJH
- Re: Integer Coersion
- From: David Frank
- Re: Integer Coersion
- From: PJH
- Re: Integer Coersion
- From: David Frank
- Re: Integer Coersion
- From: PJH
- Re: Integer Coersion
- From: mecej4
- Re: Integer Coersion
- From: Gordon Sande
- Re: Integer Coersion
- From: PJH
- Integer Coersion
- Prev by Date: Re: Integer Coersion
- Next by Date: Re: Integer Coersion
- Previous by thread: Re: Integer Coersion
- Next by thread: Re: Integer Coersion
- Index(es):
Relevant Pages
|