diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-05-13 19:47:58 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-05-13 22:05:32 +0200 |
commit | 625e870b4fb7ff4caf4d8a4614e9bda7c174b291 (patch) | |
tree | 733373c564bac30ae2c0f4e2a38ae6f44431e19c /src/test/test-ring.c | |
parent | ead349509e325aad720bb0349521a9e56e2ac7c0 (diff) |
shared: add ALIGN_POWER2 macro
Sounds easy, turns out to be horrible to implement: ALIGN_POWER2 returns
the next higher power of 2. clz(0) is undefined, same is true for
left-shift-overflows, yey, C rocks!
Diffstat (limited to 'src/test/test-ring.c')
0 files changed, 0 insertions, 0 deletions