~ubuntu-branches/ubuntu/quantal/valgrind/quantal

« back to all changes in this revision

Viewing changes to VEX/priv/guest_generic_x87.c

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2012-10-05 20:16:28 UTC
  • Revision ID: package-import@ubuntu.com-20121005201628-iyyitwvtlb3xq380
Tags: 1:3.7.0-0ubuntu4
* fix-buffer-overflows.patch: fix overflows in vgdb
* 05_fix-callgrind_control.patch: fix valgrind process name (LP: #1036283)
* fix-VEX-PCMPxSTRx.patch: fix strstr handling (LP: #1027977)

Show diffs side-by-side

added added

removed removed

Lines of Context:
815
815
      UInt   validL  = ~(zmaskL | -zmaskL);  // not(left(zmaskL))
816
816
      UInt   validR  = ~(zmaskR | -zmaskR);  // not(left(zmaskR))
817
817
      for (hi = 0; hi < 16; hi++) {
818
 
         if ((validL & (1 << hi)) == 0)
819
 
            // run off the end of the haystack
820
 
            break;
821
818
         UInt m = 1;
822
819
         for (ni = 0; ni < 16; ni++) {
823
820
            if ((validR & (1 << ni)) == 0) break;
826
823
            if (argL[i] != argR[ni]) { m = 0; break; }
827
824
         }
828
825
         boolRes |= (m << hi);
 
826
         if ((validL & (1 << hi)) == 0)
 
827
            // run off the end of the haystack
 
828
            break;
829
829
      }
830
830
 
831
831
      // boolRes is "pre-invalidated"