lkml.org 
[lkml]   [1998]   [Jan]   [22]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
From chip@atlantic ...
SubjectRe: negating unsigned
DateThu, 22 Jan 1998 08:31:04 -0500 (EST)
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 12:41    [from the cache]
©2003-2008