lkml.org 
[lkml]   [1998]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: negating unsigned
Date
According to David Howells:
> > Will "~phys_addr + 1" be compiler-safer than "-phys_addr" above?

Nope.

> What effect does negating an unsigned number have?

Just what's quoted: -u means (~u) + 1.
--
Chip Salzenberg - a.k.a. - <chip@pobox.com>
"We can shower it with neutrons."
"Or we can do the Neutron Dance!" // MST3K

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.038 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site