stud
stud copied to clipboard
cache: use optimized futexes on i386 and amd64 arch only
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.
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.
Hi vincent, please check #109, it supports gcc atomic sync built-ins for other archs.