[Mesa-dev] [PATCH v2] util/u_atomic: provide 64bit atomics where they're missing

Matt Turner mattst88 at gmail.com
Mon Apr 3 17:55:46 UTC 2017


On Thu, Mar 30, 2017 at 3:47 PM, Matt Turner <mattst88 at gmail.com> wrote:
> On Thu, Mar 30, 2017 at 3:26 PM, Grazvydas Ignotas <notasas at gmail.com>
wrote:
>> There are still some distributions trying to support unfortunate people
>> with old or exotic CPUs that don't have 64bit atomic operations. When
>> compiling for such a machine, gcc conveniently inserts a library call to
>> a helper, but it's implementation is missing and we get a linker error.
>> This allows us to provide our own implementation, which is marked weak
>> to prefer a better implementation, should one exist.
>>
>> v2: changed copyright, some style adjustments
>>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93089
>> Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
>> Reviewed-by: Matt Turner <mattst88 at gmail.com>
>
> Thanks, I'll commit this.
>
>> ---
>>  no commit access, but request sent:
>>  https://bugs.freedesktop.org/show_bug.cgi?id=100467
>
> Thanks. I commented on the bug and said I approve :)

I modified the patch slightly to print the results of the test with
AC_MSG_CHECKING/AC_MSG_RESULT and pushed it as commit a6a38a038bd62e.

I'll do some build tests on various architectures. I think I like the idea
of this going to the stable 17.0 branch.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170403/337ad25f/attachment.html>


More information about the mesa-dev mailing list