Xref: news2.mv.net comp.os.msdos.djgpp:7900 From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams) Newsgroups: comp.os.msdos.djgpp Subject: Re: sizeof(long double) Date: Mon, 26 Aug 1996 18:31:10 GMT Lines: 33 Message-ID: <841084268.8678.0@abwillms.demon.co.uk> References: <199608240006 DOT UAA04744 AT delorie DOT com> NNTP-Posting-Host: abwillms.demon.co.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp dj AT delorie DOT com (DJ Delorie) wrote: >> This is just a note that the following program indicates that the >> length of a long double type in djgpp 2 is 12: >So? It *is* that big. >(Actually, it's an 80-bit (10 byte) quantity, but gcc rounds the size >up to 12 for word-alignment purposes.) That reminds me. Is there a way to store a float (32 bits) in 30 bits? What I mean is, I want to use 2 bits as a seperate field. I tried using the lower two bits, thus shaving some accuracy of the mantissa, but this does not always seem to work (SIGFPE from time to time). Is there a reliable way? Regards, ABW --- COMPUTER: We are in position over the Rebel homeworld. VADAR: Engage the Death Star primary weapon, let those rebel worms die! COMPUTER: Sorry, your evaluation version of Battle Computer 3.0 has expired. Please send 2.6 billion dollars to the address in REGISTER.TXT Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk Hello :-)