X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightning%2Fsize.c;h=855e7bceba7f9ecdb0771ae7c02682f41debcb40;hb=9159f799aba897c27569a7a51a40736bd8a90d2f;hp=4e9337010da818a4408764e3b4ee9506e5611369;hpb=70575e81838e2c8d842dd28c3fc7fbb91b395061;p=pcsx_rearmed.git diff --git a/deps/lightning/size.c b/deps/lightning/size.c index 4e933701..855e7bce 100644 --- a/deps/lightning/size.c +++ b/deps/lightning/size.c @@ -40,9 +40,14 @@ main(int argc, char *argv[]) fclose(fp); max = 0; - for (offset = 0; offset < jit_code_last_code; offset++) + for (offset = 0; offset < jit_code_last_code; offset++) { +#if defined(__ia64__) + if (_szs[offset] > 16) + _szs[offset] = _szs[offset] / 3 + 16 & -16; +#endif if (max < _szs[offset]) max = _szs[offset]; + } if ((fp = fopen(JIT_SIZE_PATH, "w")) == NULL) exit(-1); @@ -68,14 +73,6 @@ main(int argc, char *argv[]) # else fprintf(fp, "#if !defined(__ARM_PCS_VFP)\n"); # endif -#elif defined(__mips__) -# if __WORDSIZE == 32 -# if NEW_ABI - fprintf(fp, "#if NEW_ABI\n"); -# else - fprintf(fp, "#if !NEW_ABI\n"); -# endif -# endif #elif defined(__powerpc__) fprintf(fp, "#if defined(__powerpc__)\n"); fprintf(fp, "#if __BYTE_ORDER == %s\n", @@ -94,17 +91,15 @@ main(int argc, char *argv[]) fprintf(fp, " %d, /* %s */\n", _szs[offset], code_name[offset]); #if defined(__arm__) fprintf(fp, "#endif /* __ARM_PCS_VFP */\n"); -#elif defined(__mips__) -# if __WORDSIZE == 32 - fprintf(fp, "#endif /* NEW_ABI */\n"); -# endif #elif defined(__powerpc__) +# if __WORDSIZE == 32 fprintf(fp, "#endif /* " -# if !_CALL_SYSV +# if !_CALL_SYSV "!" -# endif +# endif "_CALL_SYSV" " */\n"); +# endif fprintf(fp, "#endif /* __BYTE_ORDER */\n"); fprintf(fp, "#endif /* __powerpc__ */\n"); #endif