| delorie.com/archives/browse.cgi | search |
| From: | sime AT fly DOT cc DOT fer DOT hr (S. Mikecin) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | sizeof(long double)==12 |
| Date: | 18 Sep 1996 11:26:44 GMT |
| Organization: | FER, Croatia |
| Lines: | 10 |
| Distribution: | world |
| Message-ID: | <51om9k$cof@bagan.srce.hr> |
| Reply-To: | sime AT fly DOT cc DOT etf DOT hr |
| NNTP-Posting-Host: | fly.cc.etf.hr |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
DJGPP has three floating-point (FP) data types: float (4 bytes), double (8
bytes) and long double (12 bytes). Since x86 FPU supports ONLY
32-bit,64-bit and 80-bit floating-point numbers (and also 64-bit integer
numbers), I see no reason why long double is of size 12, and not 10 bytes!
It has nothing to do with alignment because it is also 12, even when I use
#pragma pack(1). Is there any explanation?
<E-mail: sime AT fly DOT cc DOT fer DOT hr >
<2nd E-mail: simun DOT mikecin AT fer DOT hr >
<URL: http://fly.cc.fer.hr/~sime>
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |