+14
−5
Loading
Since division is more expensive than right shift operator, in function spdk_bdev_bytes_to_blocks, use right shift instead of division if the blocklen of bdev is a power of two. Change-Id: Ib3dbc792e86582bba30b3dc028efbd12c69075ba Signed-off-by:lorneli <lorneli@163.com> Reviewed-on: https://review.gerrithub.io/438318 Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Darek Stojaczyk <dariusz.stojaczyk@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>