|
From: | Dmitri Shubin |
Subject: | Re: [Libunwind-devel] [patch] Remove unnecessary calls to labs() |
Date: | Wed, 29 Oct 2014 10:58:40 +0400 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |