Parent Directory | Revision Log | 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 */ |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |