This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about precise definition FLOOR_MOD_EXPR


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]