patch-media_libyuv_source_row_mips_cc 840 B

12345678910111213141516171819202122
  1. --- firefox-49.0.2.orig/media/libyuv/source/row_mips.cc 2016-05-12 19:13:17.000000000 +0200
  2. +++ firefox-49.0.2/media/libyuv/source/row_mips.cc 2016-11-11 18:22:43.471358929 +0100
  3. @@ -16,7 +16,8 @@ extern "C" {
  4. #endif
  5. // The following are available on Mips platforms:
  6. -#if !defined(LIBYUV_DISABLE_MIPS) && defined(__mips__)
  7. +#if !defined(LIBYUV_DISABLE_MIPS) && defined(__mips__) && \
  8. + (_MIPS_SIM == _MIPS_SIM_ABI32)
  9. #include <sgidefs.h>
  10. @@ -414,7 +415,8 @@ void CopyRow_MIPS(const uint8* src, uint
  11. // MIPS DSPR2 functions
  12. #if !defined(LIBYUV_DISABLE_MIPS) && defined(__mips_dsp) && \
  13. - (__mips_dsp_rev >= 2)
  14. + (__mips_dsp_rev >= 2) && \
  15. + (_MIPS_SIM == _MIPS_SIM_ABI32)
  16. void SplitUVRow_MIPS_DSPR2(const uint8* src_uv, uint8* dst_u, uint8* dst_v,
  17. int width) {
  18. __asm__ __volatile__ (