]> git.dujemihanovic.xyz Git - linux.git/commit
lib/math: Add int_pow test suite
authorLuis Felipe Hernandez <luis.hernandez093@gmail.com>
Tue, 10 Sep 2024 01:10:34 +0000 (21:10 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 12 Sep 2024 16:03:00 +0000 (10:03 -0600)
commit7fcc9b53216cd87f73cc6dbb404220350ddc93b8
treeea1e5975e274f15fac859b70fcc2994411a8ebcf
parente4835f1da425fbc75e37ce8258c9927170de5bfe
lib/math: Add int_pow test suite

Adds test suite for integer based power function which performs integer
exponentiation.

The test suite is designed to verify that the implementation of int_pow
correctly computes the power of a given base raised to a given exponent.

The tests check various scenarios and edge cases to ensure the accuracy
and reliability of the exponentiation function.

Updated commit with test information at commit time: Shuah Khan

Signed-off-by: Luis Felipe Hernandez <luis.hernandez093@gmail.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/Kconfig.debug
lib/math/Makefile
lib/math/tests/Makefile [new file with mode: 0644]
lib/math/tests/int_pow_kunit.c [new file with mode: 0644]