This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Language extensions ?
- From: Tom Tromey <tromey at redhat dot com>
- To: "Robin Garner" <robin dot garner at iname dot com>
- Cc: aph at redhat dot com, java at gcc dot gnu dot org
- Date: 27 Mar 2003 22:42:53 -0700
- Subject: Re: Language extensions ?
- References: <20030328053333.83277.qmail@iname.com>
- Reply-to: tromey at redhat dot com
>>>>> "Robin" == Robin Garner <robin dot garner at iname dot com> writes:
Robin> boolean GT(int a, int b) {
Robin> if( a > 0 && b > 0 || a < 0 && b < 0 )
Also you can make this test cheaper:
if (a ^ b > 0)
Tom