guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stay in fixnum range?


From: Ludovic Courtès
Subject: Re: How to stay in fixnum range?
Date: Wed, 21 Jan 2009 17:28:03 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Hello,

Panicz Maciej Godek <address@hidden> writes:

> If all the operations were performed in the modulo
> arithmetics (as they are in low level languages), the
> problem would solve automatically.

Overflow when doing arithmetic with signed numbers is undefined in C.
See, for instance, GCC's documentation for `-fstrict-overflow'
(info "(gcc) Optimize Options").

Thanks,
Ludo'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]