/[pcre]/code/trunk/pcre_jit_compile.c
ViewVC logotype

Diff of /code/trunk/pcre_jit_compile.c

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

revision 1761 by zherczeg, Fri Sep 21 07:34:10 2018 UTC revision 1762 by ph10, Tue Feb 11 18:13:46 2020 UTC
# Line 3938  static sljit_s32 character_to_int32(pcre Line 3938  static sljit_s32 character_to_int32(pcre
3938  sljit_s32 value = (sljit_s32)chr;  sljit_s32 value = (sljit_s32)chr;
3939  #if defined COMPILE_PCRE8  #if defined COMPILE_PCRE8
3940  #define SSE2_COMPARE_TYPE_INDEX 0  #define SSE2_COMPARE_TYPE_INDEX 0
3941  return (value << 24) | (value << 16) | (value << 8) | value;  return ((unsigned int)value << 24) | ((unsigned int)value << 16) | ((unsigned int)value << 8) | (unsigned int)value;
3942  #elif defined COMPILE_PCRE16  #elif defined COMPILE_PCRE16
3943  #define SSE2_COMPARE_TYPE_INDEX 1  #define SSE2_COMPARE_TYPE_INDEX 1
3944  return (value << 16) | value;  return ((unsigned int)value << 16) | value;
3945  #elif defined COMPILE_PCRE32  #elif defined COMPILE_PCRE32
3946  #define SSE2_COMPARE_TYPE_INDEX 2  #define SSE2_COMPARE_TYPE_INDEX 2
3947  return value;  return value;
# Line 8507  if (opcode == OP_ONCE) Line 8507  if (opcode == OP_ONCE)
8507    /* We temporarily encode the needs_control_head in the lowest bit.    /* We temporarily encode the needs_control_head in the lowest bit.
8508       Note: on the target architectures of SLJIT the ((x << 1) >> 1) returns       Note: on the target architectures of SLJIT the ((x << 1) >> 1) returns
8509       the same value for small signed numbers (including negative numbers). */       the same value for small signed numbers (including negative numbers). */
8510    BACKTRACK_AS(bracket_backtrack)->u.framesize = (BACKTRACK_AS(bracket_backtrack)->u.framesize << 1) | (needs_control_head ? 1 : 0);    BACKTRACK_AS(bracket_backtrack)->u.framesize = ((unsigned int)BACKTRACK_AS(bracket_backtrack)->u.framesize << 1) | (needs_control_head ? 1 : 0);
8511    }    }
8512  return cc + repeat_length;  return cc + repeat_length;
8513  }  }

Legend:
Removed from v.1761  
changed lines
  Added in v.1762

  ViewVC Help
Powered by ViewVC 1.1.5