delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/08/31/16:46:20

From: Kbwms AT aol DOT com
Message-ID: <57.21830678.2c83b892@aol.com>
Date: Sun, 31 Aug 2003 16:46:10 EDT
Subject: Re: <math.h> and <libm/math.h>
To: djgpp-workers AT delorie DOT com
MIME-Version: 1.0
X-Mailer: 8.0 for Windows sub 6015
Reply-To: djgpp-workers AT delorie DOT com

--part1_57.21830678.2c83b892_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

In a message dated 8/31/2003 2:24:16 PM Eastern Standard Time, 
eliz AT elta DOT co DOT il writes:

> Please allow me a couple of comments:
> 
> >typedef int __int32_t;
> 
> I think we don't need this typedef in math.h.  If it is required to
> compile libm.a, it should be moved into fdlibm.h, which is private to
> that library.
> 

Great idea.  Good to be rid of it.  That means that the following must be 
moved to fdlibm.h, too.  Also, I can uncomment their definition for HUGE_VAL.

typedef int __int32_t;
typedef unsigned int __uint32_t;

union __dmath
{
  __uint32_t i[2];
  double d;
};

extern const union __dmath __infinity;
//#define HUGE_VAL (__infinity.d)



--part1_57.21830678.2c83b892_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<HTML><FONT FACE=3Darial,helvetica><FONT  SIZE=3D3 FAMILY=3D"SERIF" FACE=3D"=
Georgia" LANG=3D"0">In a message dated 8/31/2003 2:24:16 PM Eastern Standard=
 Time, eliz AT elta DOT co DOT il writes:<BR>
<BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"></FONT><FONT  COLOR=3D"#000000"=
 style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=3D"A=
rial" LANG=3D"0">Please allow me a couple of comments:<BR>
<BR>
&gt;typedef int __int32_t;<BR>
<BR>
I think we don't need this typedef in math.h.&nbsp; If it is required to<BR>
compile libm.a, it should be moved into fdlibm.h, which is private to<BR>
that library.<BR>
</BLOCKQUOTE><BR>
</FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3=
 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><BR>
Great idea.&nbsp; Good to be rid of it.&nbsp; That means that the following=20=
must be moved to fdlibm.h, too.&nbsp; Also, I can uncomment their definition=
 for HUGE_VAL.<BR>
<BR>
typedef int __int32_t;<BR>
typedef unsigned int __uint32_t;<BR>
<BR>
union __dmath<BR>
{<BR>
&nbsp; __uint32_t i[2];<BR>
&nbsp; double d;<BR>
};<BR>
<BR>
extern const union __dmath __infinity;<BR>
//#define HUGE_VAL (__infinity.d)<BR>
<BR>
<BR>
</FONT></HTML>
--part1_57.21830678.2c83b892_boundary--

- Raw text -


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