This is the mail archive of the
mailing list for the GCC project.
testcase question (portability)
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 24 Feb 2004 19:06:20 -0400
- Subject: testcase question (portability)
I'm thinking of adding this test, but I'm not sure it's 64-bit
portable, sane across all architectures, etc. BTW, this is the
distilled testcase for the patch I just committed.
#define IM 2147483648u
int ival = 0x7ea4766d;
ival = (int) ((float) ival * 43.999F / (float) IM);
if (ival != 43)