]> granicus.if.org Git - musl/commit
clean up i386 atomics for new atomics framework
authorRich Felker <dalias@aerifal.cx>
Fri, 22 Jan 2016 00:16:53 +0000 (00:16 +0000)
committerRich Felker <dalias@aerifal.cx>
Fri, 22 Jan 2016 00:16:53 +0000 (00:16 +0000)
commite24984efd5c6ac5ea8e6cb6cd914fa8435d458bc
treeeb38313534ed61fc81c346056bd1a37d399614bb
parent369b22f9c4aebba2b8fe905db8469b2667572ee1
clean up i386 atomics for new atomics framework

this commit mostly makes consistent things like spacing, function
ordering in atomic_arch.h, argument names, use of volatile, etc. the
fake 64-bit and/or atomics are also removed because the shared
atomic.h does a better job of implementing them; it avoids making two
atomic memory accesses when only one 32-bit half needs to be touched.

no major overhaul is needed or possible because x86 actually has
native versions of all the usual atomic operations, rather than using
ll/sc or needing cas loops.
arch/i386/atomic_arch.h