From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,53737152136b2afe X-Google-Attributes: gid1164f8,public From: Ron Natalie Subject: Re: Digital UNIX C 'long double' support questions Date: 1996/09/18 Message-ID: <323FFE13.526B@sensor.com>#1/1 X-Deja-AN: 181419705 references: <9609172132.AA01303@bigpink.pa.dec.com> content-type: text/plain; charset=us-ascii organization: Sensor Systems mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 2.01 (X11; I; HP-UX A.09.05 9000/755) This reminds me of when we were working on the Denelcor HEP computer and getting ready to write the C compiler. The HEP had 8, 16, 32, and 64 bit quantities (and this was back in 1981). Well, it's basic unit was 64, 32 was a partial word for it. So it was pretty clear we wanted to make int==long==64. So what do we call the 32 bit things. I voted for short longs (or long shorts) and others voted for a new keyword "medium." (We finally settled on _int32). The HEP was amusing in that the partial word access was quaintly encoded in the lower 3 bits of the address. While the compiler handled: int *x; short *y; x = &foo; y = x; Doing something like this (which the BSD kernel we were porting does all over the file system code, naughty, naughty).... union { int * x; short *y; } p; p.x = foo; woo = *p.y; The assignment into woo would be of an "int" sized thing rather than a short sized thing. -Ron