diff options
| author | Bruno Sobreira França <[email protected]> | 2024-12-02 07:55:39 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2025-02-11 02:25:37 +0000 |
| commit | 84ec093f55f58f5a4a66eb98bd6b6af413190bde (patch) | |
| tree | 056bc717c75894cc5f18130bf18a2711c3927a41 /lib/tests/overflow_kunit.c | |
| parent | lib: math: Move KUnit tests into tests/ subdir (diff) | |
| download | kernel-84ec093f55f58f5a4a66eb98bd6b6af413190bde.tar.gz kernel-84ec093f55f58f5a4a66eb98bd6b6af413190bde.zip | |
lib/math: Add int_log test suite
This commit introduces KUnit tests for the intlog2 and intlog10
functions, which compute logarithms in base 2 and base 10, respectively.
The tests cover a range of inputs to ensure the correctness of these
functions across common and edge cases.
Signed-off-by: Bruno Sobreira França <[email protected]>
Reviewed-by: David Gow <[email protected]>
Reviewed-by: Rae Moar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/tests/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions
