Skip to content
Commit f0057355 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Carles Cufí
Browse files

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: default avatarNicolas Pitre <npitre@baylibre.com>
parent 92bc3e47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment