Skip to content
Commit 84ec093f authored by Bruno Sobreira França's avatar Bruno Sobreira França Committed by Kees Cook
Browse files

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: default avatarBruno Sobreira França <brunofrancadevsec@gmail.com>
Reviewed-by: default avatarDavid Gow <davidgow@google.com>
Reviewed-by: default avatarRae Moar <rmoar@google.com>
Link: https://lore.kernel.org/r/20241202075545.3648096-3-davidgow@google.com


Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent 3e50ba8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment