Reland "Activating AVX2 support by default"
This is a reland of ad148272b89394978915cb00e1c1be552d908a42 Original change's description: > Activating AVX2 support by default > > This CL activates the newly added AVX2 support by default. > The activation is done beneath a kill-switch. > > Beyond the above, the CL also changes an incorrect DCHECK_GT > to a DCHECK_GE. > > Bug: webrtc:11663 > Change-Id: I231ccb2f5efabf74cd8190411daa954b2b94a2a0 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/183042 > Commit-Queue: Per Åhgren <peah@webrtc.org> > Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> > Reviewed-by: Sam Zackrisson <saza@webrtc.org> > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#32193} Bug: webrtc:11663 Change-Id: I669435c2f4e451ee0766d809443484f2dde09d8d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185482 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32200}
This commit is contained in:
@ -32,7 +32,7 @@ FIRFilterAVX2::FIRFilterAVX2(const float* unaligned_coefficients,
|
||||
AlignedMalloc(sizeof(float) * (max_input_length + state_length_),
|
||||
32))) {
|
||||
// Add zeros at the end of the coefficients.
|
||||
RTC_DCHECK_GT(coefficients_length_, unaligned_coefficients_length);
|
||||
RTC_DCHECK_GE(coefficients_length_, unaligned_coefficients_length);
|
||||
size_t padding = coefficients_length_ - unaligned_coefficients_length;
|
||||
memset(coefficients_.get(), 0, padding * sizeof(coefficients_[0]));
|
||||
// The coefficients are reversed to compensate for the order in which the
|
||||
|
||||
Reference in New Issue
Block a user