commit | f00573555b50a95da4587caf59c578ee60cae353 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Wed Apr 06 13:36:40 2022 -0400 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Jun 16 10:28:15 2022 +0200 |
tree | f092ccb157b5f715062922c08ce5edcae07c0031 | |
parent | 92bc3e47c0f8dcbbc635ad4cd51741504cf41ca8 [diff] |
Z_POW2_CEIL: simplify implementation Avoid potentially calling __builtin_clz() twice with non-constant values. Also add a test for it. Clang produces false positive vla warnings so disable them. GCC will spot real vla's already. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>