summaryrefslogtreecommitdiff
path: root/gfx/ycbcr/yuv_row_posix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/ycbcr/yuv_row_posix.cpp')
-rw-r--r--gfx/ycbcr/yuv_row_posix.cpp31
1 files changed, 27 insertions, 4 deletions
diff --git a/gfx/ycbcr/yuv_row_posix.cpp b/gfx/ycbcr/yuv_row_posix.cpp
index 152bfc7788..a84792d966 100644
--- a/gfx/ycbcr/yuv_row_posix.cpp
+++ b/gfx/ycbcr/yuv_row_posix.cpp
@@ -1,5 +1,4 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Copyright (c) 2021 Moonchild Productions.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -320,7 +319,9 @@ void FastConvertYUVToRGB32Row_SSE(const uint8* y_buf,
"2:"
"popa\n"
"ret\n"
+#if !defined(XP_MACOSX)
".previous\n"
+#endif
);
void FastConvertYUVToRGB32Row(const uint8* y_buf,
@@ -411,7 +412,9 @@ void ScaleYUVToRGB32Row_SSE(const uint8* y_buf,
"2:"
"popa\n"
"ret\n"
+#if !defined(XP_MACOSX)
".previous\n"
+#endif
);
void ScaleYUVToRGB32Row(const uint8* y_buf,
@@ -541,7 +544,9 @@ void LinearScaleYUVToRGB32Row_SSE(const uint8* y_buf,
"movd %mm1, (%ebp)\n"
"popa\n"
"ret\n"
+#if !defined(XP_MACOSX)
".previous\n"
+#endif
);
void LinearScaleYUVToRGB32Row(const uint8* y_buf,
@@ -572,7 +577,11 @@ void PICConvertYUVToRGB32Row_SSE(const uint8* y_buf,
asm(
".text\n"
- "PICConvertYUVToRGB32Row_SSE:\n"
+#if defined(XP_MACOSX)
+"_PICConvertYUVToRGB32Row_SSE:\n"
+#else
+"PICConvertYUVToRGB32Row_SSE:\n"
+#endif
"pusha\n"
"mov 0x24(%esp),%edx\n"
"mov 0x28(%esp),%edi\n"
@@ -621,7 +630,9 @@ void PICConvertYUVToRGB32Row_SSE(const uint8* y_buf,
"2:"
"popa\n"
"ret\n"
+#if !defined(XP_MACOSX)
".previous\n"
+#endif
);
void FastConvertYUVToRGB32Row(const uint8* y_buf,
@@ -649,7 +660,11 @@ void PICScaleYUVToRGB32Row_SSE(const uint8* y_buf,
asm(
".text\n"
- "PICScaleYUVToRGB32Row_SSE:\n"
+#if defined(XP_MACOSX)
+"_PICScaleYUVToRGB32Row_SSE:\n"
+#else
+"PICScaleYUVToRGB32Row_SSE:\n"
+#endif
"pusha\n"
"mov 0x24(%esp),%edx\n"
"mov 0x28(%esp),%edi\n"
@@ -712,7 +727,9 @@ void PICScaleYUVToRGB32Row_SSE(const uint8* y_buf,
"2:"
"popa\n"
"ret\n"
+#if !defined(XP_MACOSX)
".previous\n"
+#endif
);
void ScaleYUVToRGB32Row(const uint8* y_buf,
@@ -741,7 +758,11 @@ void PICLinearScaleYUVToRGB32Row_SSE(const uint8* y_buf,
asm(
".text\n"
- "PICLinearScaleYUVToRGB32Row_SSE:\n"
+#if defined(XP_MACOSX)
+"_PICLinearScaleYUVToRGB32Row_SSE:\n"
+#else
+"PICLinearScaleYUVToRGB32Row_SSE:\n"
+#endif
"pusha\n"
"mov 0x24(%esp),%edx\n"
"mov 0x30(%esp),%ebp\n"
@@ -844,7 +865,9 @@ void PICLinearScaleYUVToRGB32Row_SSE(const uint8* y_buf,
"movd %mm1, (%ebp)\n"
"popa\n"
"ret\n"
+#if !defined(XP_MACOSX)
".previous\n"
+#endif
);