~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_cmpfunc.cc

  • Committer: Brian Aker
  • Date: 2008-08-10 17:18:41 UTC
  • mfrom: (287.3.13 codestyle)
  • Revision ID: brian@tangent.org-20080810171841-pkvi2ky94wbd0nt5
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
4699
4699
      register const int v = plm1 - i;
4700
4700
      turboShift = u - v;
4701
4701
      bcShift    = bmBc[(uint) (uchar) text[i + j]] - plm1 + i;
4702
 
      shift      = max(turboShift, bcShift);
4703
 
      shift      = max(shift, bmGs[i]);
 
4702
      shift      = (turboShift > bcShift) ? turboShift : bcShift;
 
4703
      shift      = (shift > bmGs[i]) ? shift : bmGs[i];
4704
4704
      if (shift == bmGs[i])
4705
 
        u = min(pattern_len - shift, v);
 
4705
        u = (pattern_len - shift < v) ? pattern_len - shift : v;
4706
4706
      else
4707
4707
      {
4708
4708
        if (turboShift < bcShift)
4730
4730
      register const int v = plm1 - i;
4731
4731
      turboShift = u - v;
4732
4732
      bcShift    = bmBc[(uint) likeconv(cs, text[i + j])] - plm1 + i;
4733
 
      shift      = max(turboShift, bcShift);
 
4733
      shift      = (turboShift > bcShift) ? turboShift : bcShift;
4734
4734
      shift      = max(shift, bmGs[i]);
4735
4735
      if (shift == bmGs[i])
4736
 
        u = min(pattern_len - shift, v);
 
4736
        u = (pattern_len - shift < v) ? pattern_len - shift : v;
4737
4737
      else
4738
4738
      {
4739
4739
        if (turboShift < bcShift)