]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
shufticompile: Remove unused mergeShuftiMask
authorJustin Viiret <justin.viiret@intel.com>
Tue, 15 Mar 2016 05:36:39 +0000 (16:36 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 20 Apr 2016 03:34:55 +0000 (13:34 +1000)
src/nfa/shufticompile.cpp
src/nfa/shufticompile.h

index 13ec9d0c422fad5440f1a0aa7fb4c8d897037cca..05072a44de6a6cd16afa4e41fe1985ba76ae1d09 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:
@@ -163,15 +163,6 @@ void shuftiBuildDoubleMasks(const CharReach &onechar,
     memcpy(hi2, hi2_a.data(), sizeof(m128));
 }
 
-void mergeShuftiMask(m128 *lo, const m128 lo_in, u32 lo_bits) {
-    assert(lo_bits <= 8);
-    const u8 *lo_in_p = (const u8 *)&lo_in;
-    u8 *lo_p = (u8 *)lo;
-    for (u32 i = 0; i < 16; i++) {
-        lo_p[i] |= lo_in_p[i] << lo_bits;
-    }
-}
-
 #ifdef DUMP_SUPPORT
 
 CharReach shufti2cr(const m128 lo_in, const m128 hi_in) {
index b0cc1b1b4373a94f9750bda9b433ab50d4d74cc9..2795b73a4691f79e39c65a7cd898a6d372514d92 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:
@@ -54,8 +54,6 @@ void shuftiBuildDoubleMasks(const CharReach &onechar,
                             const flat_set<std::pair<u8, u8>> &twochar,
                             m128 *lo1, m128 *hi1, m128 *lo2, m128 *hi2);
 
-void mergeShuftiMask(m128 *lo, const m128 lo_in, u32 lo_bits);
-
 #ifdef DUMP_SUPPORT
 
 /**