> I don't have the Knuth books at hand now, but if we are implementing
> that method then we have to use his rule of election. Can someone
> check?
Well, I have read a little about this issue. Our i64 implementation defines
the
quotient as truncate(a/b), like many C i
> Date: Wed, 31 Mar 2010 14:04:19 +0200 (CEST)
> From: Jose E. Marchesi
>
>
> However, I believe there is some issue with signs.
>
> [...]
>
> That means that the result sign is _only_ decided on the dividend
> sign.
>
> The sign of the integer modulus when either
However, I believe there is some issue with signs.
[...]
That means that the result sign is _only_ decided on the dividend
sign.
The sign of the integer modulus when either the dividend or the
divisor is negative is implementation defined in C. Other languages,
such as Ada, enf
Can i get a copy of the application.
On Mar 30, 2010 3:08 PM, "gerel" wrote:
Hi,
I've tried to reproduce the bug there named. I couldn't.
However, I believe there is some issue with signs.
I made some tests myself regarding the number sign that should be returned.
The
mod operator native impl
Hi,
I've tried to reproduce the bug there named. I couldn't.
However, I believe there is some issue with signs.
I made some tests myself regarding the number sign that should be returned. The
mod operator native implementation works like this:
INPUT
##
#include
int main (){
printf ("5