Re: Logical handling
In article <ed6r3m$1to$2@xxxxxxxxxxxxxxxxx>,
Dieter Britz <britz@xxxxxxxxxx> wrote:
Clearly,
logicals are stored in whole words, rather than bits.
Is this general for compilers, or is it an Intel thing?
The language standard requires the storage unit for the default
logical, integer, and real to be the same size. However, there may
be other KIND values for logical variables that may be closer to
what you want. I don't know of any compiler that supports a one-bit
KIND, but some compilers do support one-byte KINDS for logicals and
integers.
$.02 -Ron Shepard
.
Relevant Pages
- Re: mixing logical with real in equation
... This is an extension supported by the DEC compilers and those derived from ... statuses are designed to be tested that way, but otherwise this conversion ... Note that many people unwittingly treat integers as logicals by using ... User communities for Intel Software Development Products ... (comp.lang.fortran) - Re: is pgplot library good enough?
... > won't work on most of the compilers I use. ... > busy catching up when I come back. ... > assumes that logicals can be treated as integers, ... an accepted standard if there is one. ... (comp.lang.fortran) - Re: F77,F90 Namelist input of logical variables
... Does the F90 standard prohibit namelist input of logicals? ... Some other compilers do ... (comp.lang.fortran) - Re: mixing logical with real in equation
... <This is an extension supported by the DEC compilers and ... <Note that many people unwittingly treat integers as logicals by using ... <standard. ... soap, ballot, witness, jury, and cartridge ... (comp.lang.fortran) - Re: Logical handling
... logicals are stored in whole words, ... or is it an Intel thing? ... MODnot showing significant difference, that is probably owing to the ... optimization by the compiler and the size/structure of the test. ... (comp.lang.fortran) |
|