Re: ModuloTest fails on mips

Date view Thread view Subject view Author view

From: Godmar Back (gback@cs.utah.edu)
Date: Mon Feb 08 1999 - 13:34:52 EST


>
> Godmar Back writes:
> > However, note that on broken FreeBSDs and on the netbsd/arm, what we
> > want to return is simply -(a%b) if sgn(a%b) != sgn(a), I think.
> > (See the cvs log for soft.c)
>
> Isn't the rule simply that sign(a%b) == sign(a) ?
>

I think so. That's why I am suggesting to return -(a%b) should
the % operator return a result that violates this rule (i.e., for which
sgn(a%b) != sgn(a).)

        - Godmar


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:58:01 EDT