]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: introduce power 2 macros for block alignment and rounding
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 5 Jul 2016 02:31:52 +0000 (10:31 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 5 Jul 2016 02:38:24 +0000 (10:38 +0800)
commitb5a40d09e5894ad54df23238c7f242f5da32cf85
treeba6a9ab20f8ed61f00654502de6a5413ceb0e090
parentfa8107a0c5c3f96331e965d45a85c6e1fd56db81
os/bluestore: introduce power 2 macros for block alignment and rounding

Macros for various sorts of alignment and rounding.
So we can get rid of the annoying division and mod operation and simplify
the blob/space access logic.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/include/intarith.h
src/test/test_intarith.cc