]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
noodle: remove redundant bitmask
authorMatthew Barr <matthew.barr@intel.com>
Thu, 21 Apr 2016 05:50:01 +0000 (15:50 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 18 May 2016 06:22:15 +0000 (16:22 +1000)
src/hwlm/noodle_engine_avx2.c

index 093501cb95480395b0543bb474fa4ea6adda0e9f..14d0eab540257959a311c5414fe3421573ef928a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Intel Corporation
+ * Copyright (c) 2015-2016, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -221,7 +221,7 @@ hwlm_error_t scanDoubleFast(const u8 *buf, size_t len, const u8 *key,
         u32 z0 = movemask256(eq256(mask1, v));
         u32 z1 = movemask256(eq256(mask2, v));
         u32 z = (lastz0 | (z0 << 1)) & z1;
-        lastz0 = (z0 & 0x80000000) >> 31;
+        lastz0 = z0 >> 31;
 
         // On large packet buffers, this prefetch appears to get us about 2%.
         __builtin_prefetch(d + 128);