[Mesa-dev] [PATCH 2/2] util/u_atomic: Add implementation of __sync_val_compare_and_swap_8

Grazvydas Ignotas notasas at gmail.com
Fri Sep 15 09:04:57 UTC 2017


It was because on some platforms ./configure test looking for
__atomic_* passes because it's a compile (not link) test, even when
the compiler inserts library calls instead of actual implementation.
It looks like the correct solution is to link against libatomic (which
I was not aware of at that time) and drop these from u_atomic.c (amend
it to 1/2?).

GraÅžvydas


On Thu, Sep 14, 2017 at 10:08 PM, Matt Turner <mattst88 at gmail.com> wrote:
> Grazvydas,
>
> I noticed that there are some __atomic functions in this file, but I'm
> not sure what they do or why they're necessary. Remind me?
>
> Thanks,
> Matt


More information about the mesa-dev mailing list