#include'ing system headers inside anonymous namespaces seems to work
OK with GCC and MSVC, but it does not work well with clang-cl in some
compilation modes. Moving them out of the anonymous namespace makes
everybody happy.
MozReview-Commit-ID: K8AkYZEznzm
--HG--
extra : rebase_source : fe0dc2498253dab96c0f1b03a051d7e347fb13af
Detecting AVX2 requires the use of a sub-leaf.
To make things easier we remove our use of the cpuid.h
implementation on GCC and just use our existing inline asm
implementation.
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix