Hi
Attached is a patch to provide a number of missing 64-bit atomic functions. These are needed for the c89atomic library (https://github.com/mackron/c89atomic), and have been tested with the test program provided with it.
Attached is a patch to provide a number of missing 64-bit atomic functions. These are needed for the c89atomic library (https://github.com/mackron/c89atomic), and have been tested with the test program provided with it.
Note that due to a bug in c89atomic, the code path for GCC 4.6 and earlier is being used with GCC 4.7, which fails due to the lack of __sync_lock_test_and_set_1, which appears to be more complicated to fix. This is worked around in https://github.com/mackron/c89atomic/pull/1 , however it is something to look out for in the future.
Regards
Cameron
No comments:
Post a Comment