Subject: Re: libc ieee math cleanup
To: Simon Burge <simonb@wasabisystems.com>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-userlevel
Date: 02/11/2002 08:48:26
On Tue, Feb 12, 2002 at 02:22:04AM +1100, Simon Burge wrote:

 > Index: include/math.h
 > ===================================================================
 > RCS file: /cvsroot/basesrc/include/math.h,v
 > retrieving revision 1.23
 > diff -d -p -u -r1.23 math.h
 > --- include/math.h	2001/01/05 23:36:38	1.23
 > +++ include/math.h	2002/02/08 10:47:15
 > @@ -20,13 +20,35 @@
 >  
 >  #include <sys/cdefs.h>
 >  #include <sys/featuretest.h>
 > -#include <machine/math.h>
 >  
 > +union __float_u {
 > +	unsigned char __dummy[sizeof(float) / sizeof(char)];
 > +	float __val;
 > +};
 > +
 > +union __double_u {
 > +	unsigned char __dummy[sizeof(double) / sizeof(char)];
 > +	double __val;
 > +};

You don't need to / sizeof(char) there, because IIRC that's defined to
always be 1.

Also, why delete the optimized 68040 version?

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>