|
From: | Roman Perepelitsa |
Subject: | Re: [Libunwind-devel] [patch] Remove unnecessary calls to labs() |
Date: | Wed, 29 Oct 2014 08:26:53 +0100 |
Hi,On Wed, Oct 22, 2014 at 10:23 PM, Paul Pluzhnikov <address@hidden> wrote:For the curious:
unsigned long u1 = ~0UL;
unsigned long u2 = labs(u1);
assert(u1 != u2); // labs on unsigned *may* have an effect, despite
what Clang says.Am I right that this is 'implementation-defined' behaviour?
[Prev in Thread] | Current Thread | [Next in Thread] |