This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Perform constant folding of math builtins


On Mon, 26 Aug 2002, Kaveh R. Ghazi wrote:

>  >   The second is that
>  > these values need to be calculated in the precision required for the
>  > target, so shouldn't use the host functions anyway.
> 
> Why not?  Aren't we talking about "unsafe" math opts?

Folding for arbitrary constant arguments isn't unsafe if we have 
last-bit-accurate emulation for the target precision operations.  
(Provided that once we have the C99 floating point pragmas they are 
honoured - meaning disabling the folding except for exact cases when 
#pragma STDC FENV_ACCESS ON is in effect.)

-- 
Joseph S. Myers
jsm28@cam.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]