/[hurd]/hurd/pfinet/glue-include/asm/system.h
ViewVC logotype

Diff of /hurd/pfinet/glue-include/asm/system.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by roland, Fri Feb 4 06:32:38 2000 UTC revision 1.1.2.1 by ams, Mon Oct 31 00:23:14 2005 UTC
# Line 9  Line 9 
9  #define xchg(ptr, x)                                                          \  #define xchg(ptr, x)                                                          \
10    ({                                                                          \    ({                                                                          \
11      __typeof__ (*(ptr)) *_ptr = (ptr), _x = *_ptr;                            \      __typeof__ (*(ptr)) *_ptr = (ptr), _x = *_ptr;                            \
12      (uintptr_t) *_ptr = (x); _x;                                              \      *_ptr = (x); _x;                                          \
13    })    })
14    
15  #define mb()    ((void) 0)      /* memory barrier */  #define mb()    ((void) 0)      /* memory barrier */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26