Don't abort when calling qfind_first_byte_of_sse42 without compiler support for SSE 4.2
authorChristopher Dykes <cdykes@fb.com>
Fri, 28 Oct 2016 21:20:34 +0000 (14:20 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Fri, 28 Oct 2016 21:23:30 +0000 (14:23 -0700)
commit5c3799297109076c31ee801f00312cfaa0bbc605
tree56cbac09948c7828536a6f6dbba6147a9c2278ea
parentb7e1694cdf04858065fdca43ed61ecf5f178ed7d
Don't abort when calling qfind_first_byte_of_sse42 without compiler support for SSE 4.2

Summary:
If Folly was compiled without support for SSE 4.2, but this function ends up getting called, we'd abort due to the check failing.
To solve this, just don't do the check and fall back to the non-sse version.

This is reasonable because it means that the code calling `qfind_first_byte_of_sse42` only needs to care whether there is CPU support for SSE 4.2, not whether we were able to actually implement the search with SSE 4.2 based on compiler support.

Reviewed By: yfeldblum

Differential Revision: D4096645

fbshipit-source-id: d26a791c09f61595e40c84c47a7a2596b9b69c1e
folly/detail/RangeSse42.cpp