Commit Graph
2 Commits
Author SHA1 Message Date
Luis Felipe Hernandez 0fafc9e156 lib/math: add int_sqrt test suite
Adds test suite for integer based square root function.

The test suite is designed to verify the correctness of the int_sqrt()
math library function.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Luis Felipe Hernandez <[email protected]>
Reviewed-by: Kuan-Wei Chiu <[email protected]>
Cc: David Gow <[email protected]>
Cc: Ricardo B. Marliere <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2025-01-12 20:21:08 -08:00
Luis Felipe Hernandez 7fcc9b5321 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 <[email protected]>
Reviewed-by: David Gow <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
2024-09-12 10:03:00 -06:00