This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about precise definition FLOOR_MOD_EXPR
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 1 Aug 2004 18:35:57 -0700
- Subject: Re: Question about precise definition FLOOR_MOD_EXPR
- References: <10408020131.AA28517@vlsi1.ultra.nyu.edu>
On Sun, Aug 01, 2004 at 09:31:31PM -0400, Richard Kenner wrote:
> Moreover, what *is* the result supposed to be? The Ada standard is clear
> that it should be -4. From looking at the online version of the C
> standard, I can't tell whether 1, -4 or choosing either at random is
> a valid result. Does anybody know? How about C++? Java? Does this
> come up in Fortran?
C and C++ only use TRUNC_MOD_EXPR.
r~