[v3] Possible fix for PR 5730

Phil Edwards phil@jaj.com
Thu Mar 20 22:46:00 GMT 2003


On Thu, Mar 20, 2003 at 11:36:51PM +0100, Gabriel Dos Reis wrote:
> Phil Edwards <phil@jaj.com> writes:
> 
> | > | > Now, I realize the macro __FAST_MATH__ may not be defined with
> | > | > definite value -- that is really sad.  
> | 
> | I believe you are mistaken here.  It's defined exactly as if you had written
> | 
> |     #define __FAST_MATH__
> | 
> | in normal code, i.e., the value is 1 by default.
> 
> But that is insufficiant for use in the code I posted.  The reason
> being that when it is not defined you get a hard error.

Sorry, hadn't found that message yet.

Certainly, then,

	#ifdef __FAST_MATH__
	# define _GLIBCPP_FAST_MATH 1
	#else
	# define _GLIBCPP_FAST_MATH 0
	#endif

makes the most sense.  For now I'd suggest putting it in std_complex.h
unless we also find a use for it elsewhere.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Libstdc++ mailing list