Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

cache: use optimized futexes on i386 and amd64 arch only #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vincentbernat
Copy link
Contributor

Optimized futexes are only available on i386 and amd64 since they use
inline assembly. It is difficult to come with a generic way to tell
which arch we are using from the Makefile and therefore, additional
checks are put in the preprocessor before using those futexes.

@vincentbernat
Copy link
Contributor Author

Besides this, I was thinking about switching to autotools stuff. Is it something that you would agree with? This would make easier for the user to compile with the right options, this will also make easier to handle cases like this one.

Optimized futexes are only available on i386 and amd64 on Linux since
they use inline assembly. It is difficult to come with a generic way
to tell which arch we are using from the Makefile and therefore,
additional checks are put in the preprocessor before using those
futexes.
@EmericBr
Copy link

Hi vincent, please check #109, it supports gcc atomic sync built-ins for other archs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants