Print

Print


Hello,

James Giles wrote:
> Dan Nagle wrote:
> ...
>> James Giles wrote:
> ...
>>> Exactly.  And the bit model is little endian.  The bits with
>>> the lowest bit addresses are the least significant bits.  Those
>>> are the "leading bits".  They are always written as the rightmost
>>> bits though.  LEFTZ and RIGHTZ work as good mnemonics
>>> for either endianness.  LEADZ and TRAILZ don't.
>> Bits don't have addresses.  They are coefficients of powers-of-two
>> that are summed to make the integer value.
> 
> Regardless of your linguistic justifications (circumlocutions?)

This is an unnecessary characterization.

> the
> fact remains that Fortran's description of bitwise operations is 
> uniformly little-endian except the LEADZ/TRAILZ routines which
> are quite clearly based on a big-endian model.  Choosing different
> names will eliminate a possible source of confusion.  And it costs
> nothing to do.

Please see the bit model for integers, 13.3 Integers,
page 340 of 06-007r1.

-- 
Cheers!

Dan Nagle
Purple Sage Computing Solutions, Inc.