~mozillateam/firefox/firefox-beta.xenial

« back to all changes in this revision

Viewing changes to debian/patches/D172126.diff

  • Committer: Rico Tzschichholz
  • Date: 2023-03-11 10:22:30 UTC
  • Revision ID: ricotz@ubuntu.com-20230311102230-ox2c08ja56bjr0b0
* Fix armhf build failure
  - debian/patches/D172126.diff
  - debian/patches/webaudio-armhf-neon-ftbfs.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Use fully specified xsimd::batch type r=padenot
 
2
# https://bugzilla.mozilla.org/show_bug.cgi?id=1821363
 
3
 
 
4
diff --git a/dom/media/webaudio/AudioNodeEngineGeneric.h b/dom/media/webaudio/AudioNodeEngineGeneric.h
 
5
--- a/dom/media/webaudio/AudioNodeEngineGeneric.h
 
6
+++ b/dom/media/webaudio/AudioNodeEngineGeneric.h
 
7
@@ -203,14 +203,14 @@
 
8
     MOZ_ASSERT((aSize % xsimd::batch<float, Arch>::size == 0),
 
9
                "requires tail processing");
 
10
 
 
11
     MOZ_UNROLL(2)
 
12
     for (unsigned i = 0; i < aSize * 2;
 
13
-         i += 2 * xsimd::batch<std::complex<float>>::size) {
 
14
-      auto in1 = xsimd::batch<std::complex<float>>::load_aligned(
 
15
+         i += 2 * xsimd::batch<std::complex<float>, Arch>::size) {
 
16
+      auto in1 = xsimd::batch<std::complex<float>, Arch>::load_aligned(
 
17
           reinterpret_cast<const std::complex<float>*>(&aInput[i]));
 
18
-      auto in2 = xsimd::batch<std::complex<float>>::load_aligned(
 
19
+      auto in2 = xsimd::batch<std::complex<float>, Arch>::load_aligned(
 
20
           reinterpret_cast<const std::complex<float>*>(&aScale[i]));
 
21
       auto out = in1 * in2;
 
22
       out.store_aligned(reinterpret_cast<std::complex<float>*>(&aOutput[i]));
 
23
     }
 
24
   };
 
25