aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-mul.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2023-01-27 19:56:44 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2024-10-18 17:35:31 -0400
commitdce3e8d33aa7588fe9bea5f58796e94ee66091c3 (patch)
treeb0073c658f4d69ca66ea4af527940c11c4b7f3d1 /lib/crypto/mpi/mpi-mul.c
parent8bec0618a42959b9fecac115c5dbf942675f9776 (diff)
downloadlinux-dce3e8d33aa7588fe9bea5f58796e94ee66091c3.tar.gz
linux-dce3e8d33aa7588fe9bea5f58796e94ee66091c3.tar.bz2
linux-dce3e8d33aa7588fe9bea5f58796e94ee66091c3.zip
ufs: untangle ubh_...block...(), part 3
Pass fragment number instead of a block one. It's available in all callers and it makes the logics inside those helpers much simpler. The bitmap they operate upon is with bit per fragment, block being an aligned group of 1, 2, 4 or 8 adjacent fragments. We still need a switch by the number of fragments in block (== number of bits to check/set/clear), but finding the byte we need to work with becomes uniform and that makes the things easier to follow. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions