Bugs or features?
Vincent Lefevre
vincent at vinc17.org
Sat Feb 16 03:05:26 CET 2008
On 2008-02-16 01:19:57 +0100, Torbjorn Granlund wrote:
> In the C standard, the behaviour of right shift of negative numbers
> is undefined.
It is not undefined, but implementation-defined.
> But in practice, almost every compiler defines it as rounding
> towards -oo. The one exception I am aware of is Cray's compilers for
> their vector systems. (They shift the numbers logically always,
> which is not very helpful.)
Here's another exception: :)
http://www.velocityreviews.com/forums/showpost.php?p=1714174&postcount=3
--
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
More information about the gmp-discuss
mailing list