Re: Q: void* vs. unsigned long

Matti Aarnio (matti.aarnio@sonera.fi)
Tue, 16 Feb 1999 11:02:53 +0200 (EET)


Jakub Jelinek <jj@sunsite.mff.cuni.cz> wrote:
...
> long long is defined in ISO C9X, your above definition is no longer true.
>
> C9X clearly states in 6.2.1.1:
>
> - The rank of long long int shall be greater than the
> rank of long int, which shall be greater than the rank
> of int, which shall be greater than the rank of short
> int, which shall be greater than the rank of signed
> char.

Interesting, so this tells that:

rank(long long int) > rank(long int) > rank(int) > rank(short int) > rank(char)

While following was the previous definition:

rank(long long int) >= rank(long int) >= rank(int) >= rank(short int) >= rank(char)

Systems do exist where *all* of those have same size, but they are
usually programmed in Fortran-9X, require liquid cooling, and recognize
name "Cray" ...

> Cheers,
> Jakub
> Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz

/Matti Aarnio <matti.aarnio@sonera.fi>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/