ObjFW  Check-in [6b15bb229e]

Overview
Comment:atomic.h: Fix several issues.

* of_atomic_cmpswap_*: Clobber eax by adding it as an (unused) output,
so the compiler resets eax (e.g. when used in a loop). (Adding it
to the input and clobber list is lot legal!)
* Don't dereference the pointer passed using "m"(*p) twice.
* Fix some code for ILP64 systems (it seems there is no architecture
using it, though, as it even contained syntax errors).
* Use __asm__ __volatile__ just to be sure.

Thanks to Florian Zeitz for pointing out most of these issues!

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6b15bb229e1666c9f2a3d8cfa09a3e1ccc2447309ea593302f0ba810e07124f4
User & Date: js on 2013-06-03 15:20:48
Other Links: manifest | tags
Context
2013-06-03
21:38
OFException: Cleaner way to check architecture. check-in: 42ed7e394c user: js tags: trunk
15:20
atomic.h: Fix several issues. check-in: 6b15bb229e user: js tags: trunk
2013-06-02
21:18
atomic.h: Remove a useless xor. check-in: 1c7175697e user: js tags: trunk
Changes