]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: ROUND_UP_TO accepts any rounding factor 2319/head
authorLoic Dachary <loic-201408@dachary.org>
Mon, 25 Aug 2014 15:05:04 +0000 (17:05 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Mon, 25 Aug 2014 19:56:13 +0000 (21:56 +0200)
commit9449520b121fc6ce0c64948386d4ff77f46f4f5f
tree4a4be913bd8f997bc0e22c6cd947c0ceacb56e37
parentd848a40040475a04bc50e1de1e2c404a9d8c02d6
common: ROUND_UP_TO accepts any rounding factor

The ROUND_UP_TO function was limited to rounding factors that are powers
of two. This saves a modulo but it is not used where it would make a
difference. The implementation is changed so it is generic.

http://tracker.ceph.com/issues/9209 Fixes: #9209

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/include/intarith.h