[cairo-bugs] [Bug 103559] Incorrect code generation for atomic operations if HAVE_INTEL_ATOMIC_PRIMITIVES defined

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 6 08:34:43 UTC 2017


--- Comment #2 from Adrian Johnson <ajohnson at redneon.com> ---
I would just use __sync_fetch_and_add(x, 0) for the get. The C++11 atomics were
added in gcc 4.7 (about 5 years ago). Anyone caring about speed should be using
a recent version of gcc.

What version of gcc were you using? Maybe the old versions that don't support
C++11 atomics do not optimize away the read.

You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20171106/9ba00994/attachment.html>

More information about the cairo-bugs mailing list