summaryrefslogtreecommitdiffhomepage
path: root/ir/ana
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/ana
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/ana')
-rw-r--r--ir/ana/dca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/ana/dca.c b/ir/ana/dca.c
index 40d9628..15d4dc6 100644
--- a/ir/ana/dca.c
+++ b/ir/ana/dca.c
@@ -82,7 +82,7 @@ static ir_tarval *create_modulo_shift_mask(ir_mode *mode, ir_mode *dest_mode)
if (modulo_shift == 0)
return NULL;
- assert(is_po2(modulo_shift));
+ assert(is_po2_or_zero(modulo_shift));
return new_tarval_from_long(modulo_shift - 1, dest_mode);
}