Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/gvansickle/ucg
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/gvansickle/ucg:
  Updated NEWS.md for release 0.3.3.  Bumped version number in configure.ac.
  Added some comments on pcmpestrm's Equal Ordered mode.
  • Loading branch information
gvansickle committed Dec 30, 2016
2 parents ee45371 + ca3d116 commit 30e8c17
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# NEWS file for the UniversalCodeGrep project.

## [0.3.3] - 2016-12-30

UniversalCodeGrep (ucg) 0.3.3 is a minor bugfix release.

## Fixed
- Resolved issue with SSE4.2 literal string matching not working correctly.
- Resolved legitimate Coverity issue in atomic compare/exchange template.

## [0.3.2] - 2016-12-29

UniversalCodeGrep (ucg) 0.3.2 is a minor bugfix release with some major under-the-hood changes.
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dnl Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
LT_PREREQ([2.4.2])
AC_INIT([UniversalCodeGrep], [0.3.2], [https://github.com/gvansickle/ucg/issues], [], [https://gvansickle.github.io/ucg/])
AC_INIT([UniversalCodeGrep], [0.3.3], [https://github.com/gvansickle/ucg/issues], [], [https://gvansickle.github.io/ucg/])

AC_CONFIG_SRCDIR([src/Globber.cpp])
AC_CONFIG_HEADERS([config.h])
Expand Down
5 changes: 5 additions & 0 deletions src/libext/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ inline const void* memmem_short_pattern(const void *mem_to_search, size_t memlen
if(unlikely(cf))
{
// Some bits in xmm0 are set. Found at least the start of a match, maybe a full match, maybe more than one match.
// Note that while Intel's documentation doesn't make this very clear, pcmpestrm's Equal Ordered mode does in fact
// flag a partial match at the end of a 16-byte search string chunk. I.e.:
// frag1 : "0123456789abcdef"
// xmm_patt : "efghijk"
// xmm0 : "0000000000000010"

// Get the bitmask into a non-SSE register.
/// @todo This depends on GCC's definition of __m128i as a vector of 2 long longs.
Expand Down

0 comments on commit 30e8c17

Please sign in to comment.