0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 13:46:16 +00:00
termux-packages/x11-packages/qt5-qtwebengine/0004-qt5-qtwebengine-workaround-aarch64-build-failure.patch
2023-01-06 21:22:56 +00:00

47 lines
1.6 KiB
Diff

--- a/src/3rdparty/chromium/third_party/skia/src/opts/SkRasterPipeline_opts.h
+++ b/src/3rdparty/chromium/third_party/skia/src/opts/SkRasterPipeline_opts.h
@@ -21,9 +21,9 @@
template <typename Dst, typename Src>
SI Dst widen_cast(const Src& src) {
- static_assert(sizeof(Dst) > sizeof(Src), "");
- static_assert(std::is_trivially_copyable<Dst>::value, "");
- static_assert(std::is_trivially_copyable<Src>::value, "");
+ static_assert(sizeof(Dst) > sizeof(Src));
+ static_assert(std::is_trivially_copyable<Dst>::value);
+ static_assert(std::is_trivially_copyable<Src>::value);
Dst dst;
memcpy(&dst, &src, sizeof(Src));
return dst;
@@ -980,13 +980,8 @@
SI F from_half(U16 h) {
#if defined(JUMPER_IS_NEON) && defined(SK_CPU_ARM64) \
&& !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds.
-#if defined(SK_BUILD_FOR_MAC)
return vcvt_f32_f16(h);
-#else
- __fp16 fp16;
- memcpy(&fp16, &h, sizeof(U16));
- return float(fp16);
-#endif
+
#elif defined(JUMPER_IS_HSW) || defined(JUMPER_IS_SKX)
return _mm256_cvtph_ps(h);
@@ -1006,14 +1001,8 @@
SI U16 to_half(F f) {
#if defined(JUMPER_IS_NEON) && defined(SK_CPU_ARM64) \
&& !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds.
-#if defined(SK_BUILD_FOR_MAC)
return vcvt_f16_f32(f);
-#else
- __fp16 fp16 = __fp16(f);
- U16 u16;
- memcpy(&u16, &fp16, sizeof(U16));
- return u16;
-#endif
+
#elif defined(JUMPER_IS_HSW) || defined(JUMPER_IS_SKX)
return _mm256_cvtps_ph(f, _MM_FROUND_CUR_DIRECTION);