You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
579 B

  1. --- a/ext/pcre/pcrelib/sljit/sljitNativeMIPS_common.c 2017-11-28 02:22:57.000000000 -0700
  2. +++ b/ext/pcre/pcrelib/sljit/sljitNativeMIPS_common.c 2017-12-29 17:35:44.231934114 -0700
  3. @@ -498,12 +498,13 @@ SLJIT_API_FUNC_ATTRIBUTE void* sljit_gen
  4. SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_has_cpu_feature(sljit_s32 feature_type)
  5. {
  6. + sljit_sw fir = 0;
  7. +
  8. switch (feature_type) {
  9. case SLJIT_HAS_FPU:
  10. #ifdef SLJIT_IS_FPU_AVAILABLE
  11. return SLJIT_IS_FPU_AVAILABLE;
  12. #elif defined(__GNUC__)
  13. - sljit_sw fir;
  14. asm ("cfc1 %0, $0" : "=r"(fir));
  15. return (fir >> 22) & 0x1;
  16. #else