commit | 8b8d0b5eacc08384664094285d559cc13b73467c | [log] [tgz] |
---|---|---|
author | Gustaf Ullberg <gustaf@webrtc.org> | Fri Apr 29 06:54:29 2022 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Apr 29 08:41:52 2022 |
tree | 5f6af824c5339c446f8b168004509d97e9827c61 | |
parent | 9c83d9d99ed1b43c2d7ea5c78d9675865a78f724 [diff] |
Check for BMI2 support before enabling AVX2 code paths With MSVC, compiling with AVX2 support will also result in the generation of BMI2 instructions. Some early Haswell CPUs reportedly support AVX2 but not BMI2. We have seen crashes (illegal instruction) on these CPUs in our AVX2 code paths on MULX instructions (part of BMI2). Including a check for BMI2 when checking for AVX2 support is expected to solve the issue. Please see the bug referenced below for more background on this issue. Bug: chromium:1315519 Change-Id: I3a0a9838f1f632704ba505ecbb81a6f8b1889319 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/260323 Commit-Queue: Gustaf Ullberg <gustaf@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Reviewed-by: Henrik Andreasson <henrika@google.com> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36701}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.