cvs commit: src/sys/alpha/include atomic.h src/sys/amd64/include
atomic.h src/sys/i386/include atomic.h
John Baldwin
jhb at FreeBSD.org
Sat Jul 9 12:38:54 GMT 2005
jhb 2005-07-09 12:38:53 UTC
FreeBSD src repository
Modified files:
sys/alpha/include atomic.h
sys/amd64/include atomic.h
sys/i386/include atomic.h
Log:
Some cleanups and tweaks to some of the atomic.h files in preparation for
further changes and fixes in the future:
- Use aliases via macros rather than duplicated inlines wherever possible.
- Move all the aliases to the bottom of these files and the inline
functions to the top.
- Add various comments.
- On alpha, drop atomic_{load_acq,store_rel}_{8,char,16,short}().
- On i386 and amd64, don't duplicate the extern declarations for functions
in the two non-inline cases (KLD_MODULE and compiler doesn't do inlines),
instead, consolidate those two cases.
- Some whitespace fixes.
Approved by: re (scottl)
Revision Changes Path
1.21 +99 -91 src/sys/alpha/include/atomic.h
1.34 +63 -79 src/sys/amd64/include/atomic.h
1.38 +72 -83 src/sys/i386/include/atomic.h
More information about the cvs-src
mailing list