diff options
author | Bruno Sobreira França <brunofrancadevsec@gmail.com> | 2024-12-02 10:55:39 +0300 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2025-02-11 05:25:37 +0300 |
commit | 84ec093f55f58f5a4a66eb98bd6b6af413190bde (patch) | |
tree | 056bc717c75894cc5f18130bf18a2711c3927a41 /lib/overflow_kunit.c | |
parent | 3e50ba8fc834cadead733e4feeb969fce2f3b6e1 (diff) | |
download | linux-84ec093f55f58f5a4a66eb98bd6b6af413190bde.tar.xz |
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 <brunofrancadevsec@gmail.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Rae Moar <rmoar@google.com>
Link: https://lore.kernel.org/r/20241202075545.3648096-3-davidgow@google.com
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions