GNU bug report logs - #75745
[PATCH] gnu: hugs: Ignore integer overflow.

Previous Next

Package: guix-patches;

Reported by: Homo <gay <at> disroot.org>

Date: Wed, 22 Jan 2025 05:52:02 UTC

Severity: normal

Tags: moreinfo, patch

Full log


View this message in rfc822 format

From: gay <at> disroot.org
To: Lars-Dominik Braun <lars <at> 6xq.net>, 75745 <at> debbugs.gnu.org, Lennart Augustsson <lennart <at> augustsson.net>
Subject: [bug#75745] [PATCH] gnu: hugs: Ignore integer overflow.
Date: Fri, 24 Jan 2025 23:06:12 +0200
> I remember several years ago seeing (unrelated to MicroHs) code that 
> for performance reasons uses integer overflow with division by some 
> power of 2 (i++ / (1 << N)) for circular array (queue) to pass messages 
> between threads, so having it overflow or underflow is not always a 
> bug.

Correction, it was: i++ & (1 << N)

But you get the idea.




This bug report was last modified 107 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.