]> git.pld-linux.org Git - packages/firefox.git/blame - xsimd-x86.patch
up to 113.0.1
[packages/firefox.git] / xsimd-x86.patch
CommitLineData
a64588dd
JP
1diff --git a/dom/base/nsTextFragment.cpp b/dom/base/nsTextFragment.cpp
2--- a/dom/base/nsTextFragment.cpp
3+++ b/dom/base/nsTextFragment.cpp
4@@ -157,11 +157,11 @@
5
6 return -1;
7 }
8
9 #if defined(MOZILLA_MAY_SUPPORT_SSE2)
10-# include "nsTextFragmentGeneric.h"
11+# include "nsTextFragmentGenericFwd.h"
12 #endif
13
14 #ifdef __powerpc__
15 namespace mozilla {
16 namespace VMX {
17diff --git a/dom/base/nsTextFragmentGeneric.h b/dom/base/nsTextFragmentGeneric.h
18--- a/dom/base/nsTextFragmentGeneric.h
19+++ b/dom/base/nsTextFragmentGeneric.h
20@@ -2,14 +2,18 @@
21 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
22 /* This Source Code Form is subject to the terms of the Mozilla Public
23 * License, v. 2.0. If a copy of the MPL was not distributed with this
24 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
25
26+#ifndef nsTextFragmentGeneric_h__
27+#define nsTextFragmentGeneric_h__
28+
29+#include "nsTextFragmentGenericFwd.h"
30+
31 #include "nscore.h"
32 #include "nsTextFragmentImpl.h"
33 #include <algorithm>
34-#include <xsimd/xsimd.hpp>
35
36 namespace mozilla {
37
38 template <class Arch>
39 int32_t FirstNon8Bit(const char16_t* str, const char16_t* end) {
40@@ -55,5 +59,7 @@
41
42 return -1;
43 }
44
45 } // namespace mozilla
46+
47+#endif
48diff --git a/dom/base/nsTextFragmentGenericFwd.h b/dom/base/nsTextFragmentGenericFwd.h
49new file mode 100644
50--- /dev/null
51+++ b/dom/base/nsTextFragmentGenericFwd.h
52@@ -0,0 +1,21 @@
53+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
54+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
55+/* This Source Code Form is subject to the terms of the Mozilla Public
56+ * License, v. 2.0. If a copy of the MPL was not distributed with this
57+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
58+
59+#ifndef nsTextFragmentGenericFwd_h__
60+#define nsTextFragmentGenericFwd_h__
61+
62+#include <cstdint>
63+#include <cuchar>
64+#include <xsimd/xsimd.hpp>
65+
66+namespace mozilla {
67+
68+template <class Arch>
69+int32_t FirstNon8Bit(const char16_t* str, const char16_t* end);
70+
71+} // namespace mozilla
72+
73+#endif
74
This page took 0.242382 seconds and 4 git commands to generate.