|
Message
From: Oliviéri<jean-marc.olivieri@w...>
Date: Fri Apr 15 15:33:09 CEST 2005
Subject: [openrisc] gcc, __modsi3, bug
I hope so. In fact % operator means the reminder of a Euclidian division: (a * b) + c = d
regards -----Message d'origine----- De : openrisc-bounces@o... [mailto:openrisc-bounces@o...] De la part de Matjaz Breskvar Envoyé : jeudi 14 avril 2005 00:28 À : openrisc@o... Objet : [openrisc] gcc, __modsi3, bug
Hi all !
There was a bug in __modsi3 (the one called for '%' computation) functions in all compiler version in the opnecores cvs. I fixed it in gcc-3.2.3 and gcc-3.4.2. Sometimes the sign of the result was wrong, so i suggest everybody update the compiler ...
best regards, p.
PS. right now x = a % b is positive if both a non-negative and b non-negative or both negative. i hope this is correct. _______________________________________________ http://www.opencores.org/mailman/listinfo/openrisc
|
 |