OSDN Git Service

Fix missing parentheses.
authorChristopher Ferris <cferris@google.com>
Thu, 17 Dec 2015 00:11:04 +0000 (16:11 -0800)
committerChristopher Ferris <cferris@google.com>
Thu, 17 Dec 2015 00:11:04 +0000 (16:11 -0800)
commit0b13f29b2cc88e389bb85378c81ccc352361466d
treea140883c3ad031e689f6d470e44bfa52707cffeb
parent9f20db1c94446624238f452d5fc0200444d2ea05
Fix missing parentheses.

The BIONIC_ROUND_UP_POWER_OF_2 macro did not have parentheses around
the whole expression. This lead to the wrong value being computed when
used as part of a mathematical expression such as this:

  value = BIONIC_ROUND_UP_POWER_OF_2(value) - 1;

This only happens on 64 bit abis.

Change-Id: I6f8afbdaf16fe64a88fa0246d074b3534c9159c1
libc/private/bionic_macros.h