AGC2: SIMD allowed config flags to field trials

Bug: webrtc:7494
Change-Id: I41fa05d2ef6d969750f3d4c1e40ecbcd30293b5a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/233741
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Reviewed-by: Jesus de Vicente Pena <devicentepena@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35144}
This commit is contained in:
Alessio Bazzica
2021-10-04 18:33:37 +02:00
committed by WebRTC LUCI CQ
parent 41bbc3df78
commit 7b80d4480e
5 changed files with 103 additions and 137 deletions

View File

@ -3137,18 +3137,6 @@ TEST(AudioProcessing, GainController2ConfigEqual) {
b_adaptive.max_output_noise_level_dbfs =
a_adaptive.max_output_noise_level_dbfs;
EXPECT_EQ(a, b);
Toggle(a_adaptive.sse2_allowed);
b_adaptive.sse2_allowed = a_adaptive.sse2_allowed;
EXPECT_EQ(a, b);
Toggle(a_adaptive.avx2_allowed);
b_adaptive.avx2_allowed = a_adaptive.avx2_allowed;
EXPECT_EQ(a, b);
Toggle(a_adaptive.neon_allowed);
b_adaptive.neon_allowed = a_adaptive.neon_allowed;
EXPECT_EQ(a, b);
}
// Checks that one differing parameter is sufficient to make two configs
@ -3203,18 +3191,6 @@ TEST(AudioProcessing, GainController2ConfigNotEqual) {
a_adaptive.max_output_noise_level_dbfs += 1.0f;
EXPECT_NE(a, b);
a_adaptive = b_adaptive;
Toggle(a_adaptive.sse2_allowed);
EXPECT_NE(a, b);
a_adaptive = b_adaptive;
Toggle(a_adaptive.avx2_allowed);
EXPECT_NE(a, b);
a_adaptive = b_adaptive;
Toggle(a_adaptive.neon_allowed);
EXPECT_NE(a, b);
a_adaptive = b_adaptive;
}
} // namespace webrtc