delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/06/07:05:27

From: Thomas Knudsen <tk AT geb DOT gfy DOT ku DOT dk>
Newsgroups: comp.os.msdos.djgpp
Subject: sizeof(long double)
Date: Wed, 5 Mar 1997 14:18:31 +0100
Organization: News Server at UNI-C, Danish Computing Centre for Research and Education.
Lines: 24
Message-ID: <Pine.SGI.3.95.970305141038.8443A-100000@geb.gfy.ku.dk>
NNTP-Posting-Host: geb.gfy.ku.dk
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Based on the figures in float.h, I have always believed, that a long
double in djgpp corresponded to an 80 bit IEEE float. However, the
following code fragment:

#include <stdio.h>
#include <stdlib.h>
int main(void){
  printf("sizeof(long double)==%d\n", (int) sizeof(long double));
  return 0;
}

prints: sizeof(long double)==12

is this really true?

Thomas


--
Thomas Knudsen                         | www:  http://www.gfy.ku.dk/~tk/
National Survey and Cadastre - Denmark | e-mail:            tk AT gfy DOT ku DOT dk
Geodetic office, Rentemestervej 8      | Direct Phone:   +45 35 87 52 55
DK-2400 Copenhagen NV, Denmark         | FAX:            +45 35 87 50 52

- Raw text -


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