Time for 64-bit longs?

ballou at brahms.Berkeley.EDU.UUCP ballou at brahms.Berkeley.EDU.UUCP
Sat Jan 31 08:19:35 AEST 1987


In article <291 at mtxinu.UUCP> ed at mtxinu.UUCP (Ed Gould) writes:
>The problem is not that the VAX code assumes int == long (it often
>does make that assumption, but those are bugs) but that C defines
>only two sizes of integer: long and short.  Int may be either,
>depending on the implementation, but it must be one or the other.

	WRONG!

	K&R, pp. 182-3:

		Up to three sizes of integer, declared short int,
	int, and long int, are available.  Longer integers provide
	no less storage than shorter ones, but the implementation
	may make either short integers, or long integers, or both
	be equivalent to plain integers.

I don't see anything there that requires int be the same size as one of
short and long.

--------
Kenneth R. Ballou			ARPA:  ballou at brahms.berkeley.edu
Department of Mathematics		UUCP:  ...!ucbvax!brahms!ballou
University of California
Berkeley, California  94720



More information about the Comp.unix.wizards mailing list