This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[JAVA] Add acos, asin, ceil and floor lang.Math builtins
- From: Andrew Haley <aph at redhat dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org, <java-patches at gcc dot gnu dot org>
- Date: Fri, 30 Apr 2004 14:36:37 +0100
- Subject: [JAVA] Add acos, asin, ceil and floor lang.Math builtins
- References: <Pine.LNX.4.44.0404250652130.5921-100000@www.eyesopen.com>
Roger Sayle writes:
>
> The following patch adds support for implementing the lang.Math functions
> acos, asin, ceil and floor using GCC's mathematical builtins. When using
> -ffast-math this allows acos and asin to be expanded as x87 inline
> intrinsics on IA-32, and for floor and ceil with constant arguments to
> be constant folded at compile-time.
>
> The following patch has been tested on i686-pc-linux-gnu with a full
> bootstrap including java, and tested with a top-level "make -k check"
> with no new failures.
>
> Ok for mainline?
Looks good.
Thanks,
Andrew.