cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/10/22:42:31

From: mschulter AT DOT value DOT net (M. Schulter)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: sizeof(long double)
Date: 11 Mar 1997 02:38:24 GMT
Organization: Value Net Internetwork Services Inc.
Lines: 17
Message-ID: <5g2gj0$ra4$1@vnetnews.value.net>
References: <Pine DOT SGI DOT 3 DOT 95 DOT 970305141038 DOT 8443A-100000 AT geb DOT gfy DOT ku DOT dk>
NNTP-Posting-Host: value.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Thomas Knudsen (tk AT geb DOT gfy DOT ku DOT dk) wrote:

: prints: sizeof(long double)==12
: 
: is this really true?
: 
: Thomas

As I understand it, in fact a long double in djgpp includes 80 bits of
data, as expected; but the compiler uses a 96-bit (12-byte) size in order
to align the data on a 32-bit boundary. This feature is somewhat analogous
to struct padding.

Most respectfully,
Margo schulter
mschulter AT value DOT net

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019