From 5148170f66eefa6ea35de2f71de119d5d413ae95 Mon Sep 17 00:00:00 2001
From: Sebastian Hahta <joseha@utu.fi>
Date: Thu, 29 Aug 2019 17:25:01 +0300
Subject: [PATCH] remove msbDeBruijn32

---
 .../rgbd-sources/include/ftl/rgbd/frame.hpp   | 20 -------------------
 1 file changed, 20 deletions(-)

diff --git a/components/rgbd-sources/include/ftl/rgbd/frame.hpp b/components/rgbd-sources/include/ftl/rgbd/frame.hpp
index a97a1f17b..5b004a3ad 100644
--- a/components/rgbd-sources/include/ftl/rgbd/frame.hpp
+++ b/components/rgbd-sources/include/ftl/rgbd/frame.hpp
@@ -60,26 +60,6 @@ private:
 		}
 	}
 
-	// https://stackoverflow.com/a/31718095/
-	// Indices for channels, requirs channels to have bitmask format
-	// (values are power of 2 and no missing values/gaps).
-	static uint32_t _msbDeBruijn32(uint32_t v)
-	{
-		static const int MultiplyDeBruijnBitPosition[32] =
-		{
-			0, 9, 1, 10, 13, 21, 2, 29, 11, 14, 16, 18, 22, 25, 3, 30,
-			8, 12, 20, 28, 15, 17, 24, 7, 19, 27, 23, 6, 26, 5, 4, 31
-		};
-
-		v |= v >> 1; // first round down to one less than a power of 2
-		v |= v >> 2;
-		v |= v >> 4;
-		v |= v >> 8;
-		v |= v >> 16;
-
-		return MultiplyDeBruijnBitPosition[(uint32_t)(v * 0x07C4ACDDU) >> 27];
-	}
-
 	std::vector<cv::cuda::GpuMat> channels_;
 	std::vector<bool> available_;
 };
-- 
GitLab