gate sse42 implementation of checksum for x86 only
authorStephen Chen <tracelog@fb.com>
Tue, 16 May 2017 17:06:47 +0000 (10:06 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 16 May 2017 17:22:41 +0000 (10:22 -0700)
commit1a1ce79ed7c22c3227c17fe797bd6213e4e4ef11
treed3fbcc5e2483c469bf1df131b21b22c3daf32d4a
parent2750533d9c7ab53ba6046ca9b50e7dceb7a73680
gate sse42 implementation of checksum for x86 only

Summary:
folly/detail/ChecksumDetail.h gets included in Checksum.h and it
unconditionally includes <immintrin.h>. This doesn't compile on
aarch64 platform. Add #ifdefs for this.

Reviewed By: yfeldblum

Differential Revision: D5048636

fbshipit-source-id: d2074eb1b01487b02d95f3e2eebe683237d918fe
folly/Checksum.cpp
folly/detail/ChecksumDetail.cpp
folly/detail/ChecksumDetail.h