summaryrefslogtreecommitdiffhomepage
path: root/ir/tv
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-02-13 20:12:35 +0100
committerMatthias Braun <matze@braunis.de>2016-02-13 20:47:39 +0100
commit206f8441e918c355160fd80c783d37f8a7e88be0 (patch)
tree55ceb89203cd5148f7f4da7ee7960c64477ff078 /ir/tv
parent8c9e32f417e25eadf7ae846e494a550506f8aee9 (diff)
Rename is_po2() to is_po2_or_zero()
The function also returns true for zero even though that is not a power of two.
Diffstat (limited to 'ir/tv')
-rw-r--r--ir/tv/strcalc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/tv/strcalc.c b/ir/tv/strcalc.c
index 9d17ab0..f6798b0 100644
--- a/ir/tv/strcalc.c
+++ b/ir/tv/strcalc.c
@@ -769,7 +769,7 @@ void init_strcalc(unsigned precision)
{
if (output_buffer == NULL) {
/* round up to multiple of SC_BITS */
- assert(is_po2(SC_BITS));
+ assert(is_po2_or_zero(SC_BITS));
precision = (precision + (SC_BITS-1)) & ~(SC_BITS-1);
bit_pattern_size = precision;