]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
include/intarith: introduce round_down_to()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 27 Dec 2023 15:18:50 +0000 (16:18 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 20 Jan 2024 15:33:32 +0000 (16:33 +0100)
commitf69deca57fef8ebdd9afbe8803bc63d8522ab982
tree251f516ca3c284ab48b4a2bfa04ba19714b2e5b1
parentba8bb7e32ee8276eba62d3f20f6ab8b74af78a2d
include/intarith: introduce round_down_to()

Same as with round_up_to(), d isn't required to be a power of two.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 94bf3a5d74cfd61e0bd881ca2863fe2205f27767)

Conflicts:
src/librbd/api/DiffIterate.cc [ commit 6eb14774fec0 ("librbd:
  build without "using namespace std"") not in pacific ]
src/include/intarith.h
src/librbd/api/DiffIterate.cc