From: Moogla Newsgroups: comp.os.msdos.djgpp Subject: Re: EUREKA... note about pcx header Date: Tue, 10 Aug 1999 23:18:59 -0400 Organization: MindSpring Enterprises Lines: 37 Message-ID: <37B0EBA3.DE1@lan.tjhsst.edu> References: <37B0BE23 DOT 2326F43C AT id-base DOT com> <37B0DFAD DOT 2AE5 AT surfsouth DOT com> NNTP-Posting-Host: a5.f7.46.7a Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 11 Aug 1999 03:21:04 GMT X-Mailer: Mozilla 3.01 (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Chris Holmes wrote: > > Most protected mode compilers compile based on a 32 bit integer. > DJGPP does this. > For anyone who doesn't already know this (it is pretty common > knowledge), in DJGPP: > char = 1 byte > short = 2 bytes > int = 4 bytes > long = 8 bytes Sigh, sigh, sigh. No! char = 1 byte always short = 2 byte always long = 4 byte always long long = 8 byte always DJGPP has harcoded it's unspecified generic garden variety of int to a long (good move, for 32-bit protected mode... :} ) > And please don't ask about the time I took a new way to do fixed > point math to a CS professor who thought it was brilliant and he sent > me to a Computer Engineering prof who said, "Yes, congrats, you just > rediscovered floating point." That was a bad day. > > Chris and just for kicks, with no matter what architecture you're dealing with: short float = 32-bit IEEE float double (float) = 64-bit IEEE float long double (float) = 80-bit IEEE float float (generic) in DJGPP can change depending on context or compiler flags, but if it has a choice, it's the 64-bit variety. moogla