<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/lib/math/tests/polynomial_kunit.c, branch master</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>lib/math: add KUnit test suite for polynomial_calc()</title>
<updated>2026-08-04T04:10:07+00:00</updated>
<author>
<name>Adi Nata</name>
<email>adinata.softwareengineer@gmail.com</email>
</author>
<published>2026-06-06T03:03:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a0275efa65ca8deff937729c5d2982a980f9affe'/>
<id>a0275efa65ca8deff937729c5d2982a980f9affe</id>
<content type='text'>
Add a KUnit test suite for the polynomial_calc() function, which had no
in-kernel test coverage.  The tests verify correct evaluation of constant,
linear, quadratic, and cubic polynomials, including negative coefficients,
negative input data, zero-coefficient terms.

The Kconfig entry uses 'select POLYNOMIAL' rather than 'depends on
POLYNOMIAL' because POLYNOMIAL is a promptless tristate that cannot
be manually enabled on UML without an explicit selector.

Link: https://lore.kernel.org/20260606030319.316752-1-adinata.softwareengineer@gmail.com
Signed-off-by: Adi Nata &lt;adinata.softwareengineer@gmail.com&gt;
Cc: Maxim Kaurkin &lt;maxim.kaurkin@baikalelectronics.ru&gt;
Cc: Serge Semin &lt;Sergey.Semin@baikalelectronics.ru&gt;
Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Cc: Brendan Higgins &lt;brendan.higgins@linux.dev&gt;
Cc: David Gow &lt;david@davidgow.net&gt;
Cc: Rae Moar &lt;raemoar63@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a KUnit test suite for the polynomial_calc() function, which had no
in-kernel test coverage.  The tests verify correct evaluation of constant,
linear, quadratic, and cubic polynomials, including negative coefficients,
negative input data, zero-coefficient terms.

The Kconfig entry uses 'select POLYNOMIAL' rather than 'depends on
POLYNOMIAL' because POLYNOMIAL is a promptless tristate that cannot
be manually enabled on UML without an explicit selector.

Link: https://lore.kernel.org/20260606030319.316752-1-adinata.softwareengineer@gmail.com
Signed-off-by: Adi Nata &lt;adinata.softwareengineer@gmail.com&gt;
Cc: Maxim Kaurkin &lt;maxim.kaurkin@baikalelectronics.ru&gt;
Cc: Serge Semin &lt;Sergey.Semin@baikalelectronics.ru&gt;
Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Cc: Brendan Higgins &lt;brendan.higgins@linux.dev&gt;
Cc: David Gow &lt;david@davidgow.net&gt;
Cc: Rae Moar &lt;raemoar63@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
