This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
division
- To: "Anthony Green" <green at redhat dot com>
- Subject: division
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- Date: Mon, 22 Oct 2001 09:02:24 +0100 (BST)
- Cc: "Java at Gcc dot Gnu. Org" <java at gcc dot gnu dot org>
- References: <02b501c15a55$295a7a80$5be6b4cd@cygnus.com>
Anthony Green writes:
> Would it be safe for gcj to emit a regular division sequence
> instead of the _Jv_divI call when the divisor is a non-zero
> constant?
Mostly. You also need to check for dividing Integer.MIN_VALUE.
Andrew.