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] More constant folding of math built-ins.


Re:

	The following patch implements some more constant folding optimizations
	of GCC's mathematical builtins.  We now optimize ... atan(tan(x)) = x
	(with -funsafe-math-optimizations) ...

This is hardly getting a corner case wrong or missing a rounding or getting
the sign of zero wrong.  Did you really mean to do tan(atan(x))=x?

Brad


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