/[pcre]/code/branches/pcre16/pcre_jit_compile.c
ViewVC logotype

Diff of /code/branches/pcre16/pcre_jit_compile.c

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

revision 793 by zherczeg, Tue Dec 6 11:33:41 2011 UTC revision 794 by zherczeg, Thu Dec 8 07:36:41 2011 UTC
# Line 1240  OP2(SLJIT_SUB, SLJIT_GENERAL_REG2, 0, SL Line 1240  OP2(SLJIT_SUB, SLJIT_GENERAL_REG2, 0, SL
1240  OP2(SLJIT_ADD, SLJIT_GENERAL_REG1, 0, SLJIT_GENERAL_REG1, 0, SLJIT_IMM, sizeof(sljit_w));  OP2(SLJIT_ADD, SLJIT_GENERAL_REG1, 0, SLJIT_GENERAL_REG1, 0, SLJIT_IMM, sizeof(sljit_w));
1241  /* Copy the integer value to the output buffer */  /* Copy the integer value to the output buffer */
1242  #ifdef COMPILE_PCRE16  #ifdef COMPILE_PCRE16
1243  OP2(SLJIT_LSHR, SLJIT_GENERAL_REG2, 0, SLJIT_GENERAL_REG2, 0, SLJIT_IMM, 1);  OP2(SLJIT_ASHR, SLJIT_GENERAL_REG2, 0, SLJIT_GENERAL_REG2, 0, SLJIT_IMM, 1);
1244  #endif  #endif
1245  OP1(SLJIT_MOVU_SI, SLJIT_MEM1(SLJIT_TEMPORARY_REG3), sizeof(int), SLJIT_GENERAL_REG2, 0);  OP1(SLJIT_MOVU_SI, SLJIT_MEM1(SLJIT_TEMPORARY_REG3), sizeof(int), SLJIT_GENERAL_REG2, 0);
1246  OP2(SLJIT_SUB | SLJIT_SET_E, SLJIT_TEMPORARY_REG2, 0, SLJIT_TEMPORARY_REG2, 0, SLJIT_IMM, 1);  OP2(SLJIT_SUB | SLJIT_SET_E, SLJIT_TEMPORARY_REG2, 0, SLJIT_TEMPORARY_REG2, 0, SLJIT_IMM, 1);
# Line 1353  if (!ispowerof2(bit)) Line 1353  if (!ispowerof2(bit))
1353    
1354  #ifdef COMPILE_PCRE8  #ifdef COMPILE_PCRE8
1355    
1356  #ifdef SUPPORT_UTF8  #ifdef SUPPORT_UTF
1357  if (common->utf && c > 127)  if (common->utf && c > 127)
1358    {    {
1359    n = GET_EXTRALEN(*cc);    n = GET_EXTRALEN(*cc);
# Line 1364  if (common->utf && c > 127) Line 1364  if (common->utf && c > 127)
1364      }      }
1365    return (n << 8) | bit;    return (n << 8) | bit;
1366    }    }
1367  #endif /* SUPPORT_UTF8 */  #endif /* SUPPORT_UTF */
1368  return (0 << 8) | bit;  return (0 << 8) | bit;
1369    
1370  #else /* COMPILE_PCRE8 */  #else /* COMPILE_PCRE8 */
1371    
1372  #ifdef COMPILE_PCRE16  #ifdef COMPILE_PCRE16
1373  #ifdef SUPPORT_UTF16  #ifdef SUPPORT_UTF
1374  if (common->utf && c > 65535)  if (common->utf && c > 65535)
1375    {    {
1376    if (bit >= (1 << 10))    if (bit >= (1 << 10))
# Line 1378  if (common->utf && c > 65535) Line 1378  if (common->utf && c > 65535)
1378    else    else
1379      return (bit < 256) ? ((2 << 8) | bit) : ((3 << 8) | (bit >> 8));      return (bit < 256) ? ((2 << 8) | bit) : ((3 << 8) | (bit >> 8));
1380    }    }
1381  #endif /* SUPPORT_UTF16 */  #endif /* SUPPORT_UTF */
1382  return (bit < 256) ? ((0 << 8) | bit) : ((1 << 8) | (bit >> 8));  return (bit < 256) ? ((0 << 8) | bit) : ((1 << 8) | (bit >> 8));
1383  #endif /* COMPILE_PCRE16 */  #endif /* COMPILE_PCRE16 */
1384    

Legend:
Removed from v.793  
changed lines
  Added in v.794

  ViewVC Help
Powered by ViewVC 1.1.5