/[pcre]/code/trunk/sljit/sljitNativePPC_common.c
ViewVC logotype

Diff of /code/trunk/sljit/sljitNativePPC_common.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1455 by zherczeg, Thu Jan 30 06:10:21 2014 UTC revision 1456 by zherczeg, Fri Feb 28 09:25:37 2014 UTC
# Line 836  static sljit_si can_cache(sljit_si arg, Line 836  static sljit_si can_cache(sljit_si arg,
836          next_high_short = (next_argw + ((next_argw & 0x8000) << 1)) & ~0xffff;          next_high_short = (next_argw + ((next_argw & 0x8000) << 1)) & ~0xffff;
837          return high_short == next_high_short;          return high_short == next_high_short;
838  #else  #else
839          if (argw <= SLJIT_W(0x7fffffff) && argw >= SLJIT_W(-0x80000000)) {          if (argw <= 0x7fffffffl && argw >= -0x80000000l) {
840                  high_short = (argw + ((argw & 0x8000) << 1)) & ~0xffff;                  high_short = (argw + ((argw & 0x8000) << 1)) & ~0xffff;
841                  next_high_short = (next_argw + ((next_argw & 0x8000) << 1)) & ~0xffff;                  next_high_short = (next_argw + ((next_argw & 0x8000) << 1)) & ~0xffff;
842                  if (high_short == next_high_short)                  if (high_short == next_high_short)
# Line 912  static sljit_si getput_arg(struct sljit_ Line 912  static sljit_si getput_arg(struct sljit_
912          SLJIT_ASSERT((arg & REG_MASK) || !(inst & UPDATE_REQ));          SLJIT_ASSERT((arg & REG_MASK) || !(inst & UPDATE_REQ));
913    
914  #if (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)  #if (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)
915          if (argw <= SLJIT_W(0x7fff7fff) && argw >= SLJIT_W(-0x80000000)          if (argw <= 0x7fff7fffl && argw >= -0x80000000l
916                          && (!(inst & INT_ALIGNED) || !(argw & 0x3)) && !(inst & UPDATE_REQ)) {                          && (!(inst & INT_ALIGNED) || !(argw & 0x3)) && !(inst & UPDATE_REQ)) {
917  #endif  #endif
918    
# Line 920  static sljit_si getput_arg(struct sljit_ Line 920  static sljit_si getput_arg(struct sljit_
920                  high_short = (sljit_si)(argw + ((argw & 0x8000) << 1)) & ~0xffff;                  high_short = (sljit_si)(argw + ((argw & 0x8000) << 1)) & ~0xffff;
921                  /* The getput_arg_fast should handle this otherwise. */                  /* The getput_arg_fast should handle this otherwise. */
922  #if (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)  #if (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)
923                  SLJIT_ASSERT(high_short && high_short <= SLJIT_W(0x7fffffff) && high_short >= SLJIT_W(-0x80000000));                  SLJIT_ASSERT(high_short && high_short <= 0x7fffffffl && high_short >= -0x80000000l);
924  #else  #else
925                  SLJIT_ASSERT(high_short && !(inst & (INT_ALIGNED | UPDATE_REQ)));                  SLJIT_ASSERT(high_short && !(inst & (INT_ALIGNED | UPDATE_REQ)));
926  #endif  #endif
# Line 1342  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_ Line 1342  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_
1342    
1343  #if (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)  #if (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)
1344  #define TEST_SH_IMM(src, srcw) \  #define TEST_SH_IMM(src, srcw) \
1345          (((src) & SLJIT_IMM) && !((srcw) & 0xffff) && (srcw) <= SLJIT_W(0x7fffffff) && (srcw) >= SLJIT_W(-0x80000000))          (((src) & SLJIT_IMM) && !((srcw) & 0xffff) && (srcw) <= 0x7fffffffl && (srcw) >= -0x80000000l)
1346  #else  #else
1347  #define TEST_SH_IMM(src, srcw) \  #define TEST_SH_IMM(src, srcw) \
1348          (((src) & SLJIT_IMM) && !((srcw) & 0xffff))          (((src) & SLJIT_IMM) && !((srcw) & 0xffff))
# Line 1353  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_ Line 1353  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_
1353    
1354  #if (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)  #if (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)
1355  #define TEST_ADD_IMM(src, srcw) \  #define TEST_ADD_IMM(src, srcw) \
1356          (((src) & SLJIT_IMM) && (srcw) <= SLJIT_W(0x7fff7fff) && (srcw) >= SLJIT_W(-0x80000000))          (((src) & SLJIT_IMM) && (srcw) <= 0x7fff7fffl && (srcw) >= -0x80000000l)
1357  #else  #else
1358  #define TEST_ADD_IMM(src, srcw) \  #define TEST_ADD_IMM(src, srcw) \
1359          ((src) & SLJIT_IMM)          ((src) & SLJIT_IMM)

Legend:
Removed from v.1455  
changed lines
  Added in v.1456

  ViewVC Help
Powered by ViewVC 1.1.5