aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-26 18:49:39 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-02-27 22:27:52 +0100
commit09cbbc1a96a71c3a77ed43940c70c8ce12c60a28 (patch)
treeb091c6d95225c95cc4c4a311db7f26f7d020cd65
parent83d6c2f0e438ec4129bddb9a54ce9dd2777c0748 (diff)
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
-rw-r--r--src/pcu_utils.h3
1 files changed, 1 insertions, 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 <typename T>
-inline T pcu_lsb(T x)
+inline uint8_t pcu_lsb(uint8_t x)
{
return x & -x;
}