mirror-linux/lib/crypto/mpi
Yury Norov 18c4889965 lib: crypto: fix comments for count_leading_zeros()
count_leading_zeros() is based on fls(), which is defined for x == 0,
contrary to __ffs() family. The comment in crypto/mpi erroneously
states that the function may return undef in such case.

Fix the comment together with the outdated function signature, and now
that COUNT_LEADING_ZEROS_0 is not referenced in the codebase, get rid of
it too.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Yury Norov <ynorov@nvidia.com>
2026-03-23 13:33:51 -04:00
..
Makefile Revert "lib/mpi: Extend the MPI library" 2024-08-17 13:55:50 +08:00
generic_mpih-add1.c
generic_mpih-lshift.c
generic_mpih-mul1.c
generic_mpih-mul2.c
generic_mpih-mul3.c
generic_mpih-rshift.c
generic_mpih-sub1.c
longlong.h lib: crypto: fix comments for count_leading_zeros() 2026-03-23 13:33:51 -04:00
mpi-add.c lib/crypto: Explicitly include <linux/export.h> 2025-06-30 09:26:19 -07:00
mpi-bit.c lib/crypto: Explicitly include <linux/export.h> 2025-06-30 09:26:19 -07:00
mpi-cmp.c lib/crypto: Explicitly include <linux/export.h> 2025-06-30 09:26:19 -07:00
mpi-div.c crypto: lib/mpi - Add error checks to extension 2024-08-17 13:55:50 +08:00
mpi-inline.h
mpi-internal.h crypto: lib/mpi - Add error checks to extension 2024-08-17 13:55:50 +08:00
mpi-mod.c crypto: lib/mpi - Add error checks to extension 2024-08-17 13:55:50 +08:00
mpi-mul.c lib/crypto: Explicitly include <linux/export.h> 2025-06-30 09:26:19 -07:00
mpi-pow.c lib/crypto: Explicitly include <linux/export.h> 2025-06-30 09:26:19 -07:00
mpi-sub-ui.c lib/crypto: Explicitly include <linux/export.h> 2025-06-30 09:26:19 -07:00
mpicoder.c crypto: lib/mpi - use min() instead of min_t() 2025-11-24 17:44:14 +08:00
mpih-cmp.c
mpih-div.c
mpih-mul.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mpiutil.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00