From 09cbbc1a96a71c3a77ed43940c70c8ce12c60a28 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 26 Jan 2018 18:49:39 +0100 Subject: Use explicit type for pcu_lsb() It's only used for byte-long input so we can specify input and output types explicitly. Change-Id: Id0bef691e17e4331c7c4b491661e36173d85388a --- src/pcu_utils.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pcu_utils.h b/src/pcu_utils.h index 767771c3..32924528 100644 --- a/src/pcu_utils.h +++ b/src/pcu_utils.h @@ -44,8 +44,7 @@ inline unsigned int pcu_bitcount(T x) return count; } -template -inline T pcu_lsb(T x) +inline uint8_t pcu_lsb(uint8_t x) { return x & -x; } -- cgit v1.2.3