Re: ModuloTest fails on mips

Date view Thread view Subject view Author view

From: Alexandre Oliva (oliva@dcc.unicamp.br)
Date: Wed Feb 10 1999 - 08:15:07 EST


On Feb 8, 1999, Godmar Back <gback@cs.utah.edu> wrote:

>> 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).)

Maybe it will have to be (a%b)-b on some platforms. I think I'll have
to handle all cases. :-(

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil


Date view Thread view Subject view Author view

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