Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.0.5, 1.0.6
-
None
Description
This function in assembly is not portable, for obvious reasons. Also, there are already functions with this name in Linux, so there might be confusions. There is a perfectly good, portable, substitute as a gcc builtin: __sync_fetch_and_add. This should be better and portable and do the right thing even with x86 vs. x86_64 and will also be portable to Power8.