[Bug 86997] non-portable x86/x86_64 inline assembly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 4 01:29:20 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=86997

--- Comment #1 from Timo Teräs <timo.teras at iki.fi> ---
Seems that memory barrier is the only thing needed. Consider using compiler
built-ins when possible.

See:
http://en.wikipedia.org/wiki/Memory_ordering#Compiler_support_for_hardware_memory_barriers

So with gcc>=4.4 __sync_synchronize() would be preferred.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-bugs/attachments/20141204/848a2ef8/attachment.html>


More information about the spice-bugs mailing list