]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
whitespace changes
authorMatthew Barr <matthew.barr@intel.com>
Wed, 3 May 2017 04:47:01 +0000 (14:47 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 30 May 2017 03:59:00 +0000 (13:59 +1000)
src/hs_common.h
src/nfagraph/ng_som.cpp
src/ue2common.h
src/util/make_unique.h
unit/internal/bitutils.cpp

index b25b1842340eff46829661ffc497b87c24753837..fac0825309db326c766a4b18187e7737150c39ff 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2016, Intel Corporation
+ * Copyright (c) 2015-2017, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -545,7 +545,7 @@ hs_error_t hs_valid_platform(void);
  * At a minimum, Hyperscan requires Supplemental Streaming SIMD Extensions 3
  * (SSSE3).
  */
-#define HS_ARCH_ERROR              (-11)
+#define HS_ARCH_ERROR           (-11)
 
 /** @} */
 
index 6481eff76f80e9de16d14b3e7c8913a26d2f2de4..67438103129880f0c87efd6defc3ed714b5e3e2a 100644 (file)
@@ -1734,8 +1734,8 @@ namespace {
 struct SomRevNfa {
     SomRevNfa(NFAVertex s, ReportID r, bytecode_ptr<NFA> n)
         : sink(s), report(r), nfa(move(n)) {}
-       SomRevNfa(SomRevNfa&& s) // MSVC2013 needs this for emplace
-               : sink(s.sink), report(s.report), nfa(move(s.nfa)) {}
+    SomRevNfa(SomRevNfa &&s) // MSVC2013 needs this for emplace
+        : sink(s.sink), report(s.report), nfa(move(s.nfa)) {}
     NFAVertex sink;
     ReportID report;
     bytecode_ptr<NFA> nfa;
index e1f03f721b639d6c80a8a282529be4520b0801d9..4bec83155197434350593c89d1d687a202ca8223 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2016, Intel Corporation
+ * Copyright (c) 2015-2017, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -189,8 +189,8 @@ typedef u32 ReportID;
   #define unlikely(x)   __builtin_expect(!!(x), 0)
 #endif
 #else
-#define likely(x)      (x)
-#define unlikely(x)    (x)
+#define likely(x)   (x)
+#define unlikely(x) (x)
 #endif
 
 #if !defined(RELEASE_BUILD) || defined(DEBUG)
index 12148af1b3d12c6401d682d837373a1c70b42531..651e8c5cf953d86d4d706f0f5582472b0dd7db27 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Intel Corporation
+ * Copyright (c) 2015-2017, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -39,9 +39,9 @@
 
 namespace ue2 {
 #if defined(USE_STD)
-       using std::make_unique;
+using std::make_unique;
 #else
-       using boost::make_unique;
+using boost::make_unique;
 #endif
 }
 
index 7241c0b85fcdc51a5e7b7fc9f416b8b0c558f5c4..3f788544909bb5c913bd4c82a57104924e544992 100644 (file)
 // open coded implementations to test against
 static
 u32 our_clz(u32 x) {
-       u32 n;
-
-       if (x == 0) return(32);
-       n = 0;
-       if (x <= 0x0000FFFF) { n = n + 16; x = x << 16; }
-       if (x <= 0x00FFFFFF) { n = n + 8; x = x << 8; }
-       if (x <= 0x0FFFFFFF) { n = n + 4; x = x << 4; }
-       if (x <= 0x3FFFFFFF) { n = n + 2; x = x << 2; }
-       if (x <= 0x7FFFFFFF) { n = n + 1; }
-       return n;
+    u32 n;
+
+    if (x == 0) return(32);
+    n = 0;
+    if (x <= 0x0000FFFF) { n = n + 16; x = x << 16; }
+    if (x <= 0x00FFFFFF) { n = n + 8; x = x << 8; }
+    if (x <= 0x0FFFFFFF) { n = n + 4; x = x << 4; }
+    if (x <= 0x3FFFFFFF) { n = n + 2; x = x << 2; }
+    if (x <= 0x7FFFFFFF) { n = n + 1; }
+    return n;
 }
 
 static
 u32 our_clzll(u64a x) {
-       // Synthesise from 32-bit variant.
-       u32 high = x >> 32;
-       if (high) {
-               return our_clz(high);
-       }
-       return 32 + our_clz(x);
+    // Synthesise from 32-bit variant.
+    u32 high = x >> 32;
+    if (high) {
+        return our_clz(high);
+    }
+    return 32 + our_clz(x);
 }