help-octave
[Top][All Lists]
Advanced

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

Re: sizemax() and 64-bit systems


From: Jordi Gutiérrez Hermoso
Subject: Re: sizemax() and 64-bit systems
Date: Mon, 13 Aug 2012 16:09:41 -0400

On 13 August 2012 13:50, Mike Miller <address@hidden> wrote:
> I guess FORTRAN uses signed integers for indexing which really means we have
> 31 bytes for positive indexing, not 32.  I don't understand the negative
> index, but I'm not much of a computer scientist!

I don't think computer scientists understand it either.

The historical reason is that signed integers are the machine's
"native" type (it's slightly faster in hardware or it used to be). I'm
not sure this is still valid, but when running historical Fortran
code, I suppose you adhere to historical conventions.

- Jordi G. H.


reply via email to

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