Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lib: polynomial: move to math/ subfolder

Patch series "lib: polynomial: Move to math/ and clean up", v2.

While removing Baikal SoC and platform code pieces I found that this code
belongs to lib/math/ rather than generic lib/. Hence the move and
followed up cleanups.


This patch (of 3):

The algorithm behind polynomial belongs to our collection of math
equations and expressions handling. Move it to math/ subfolder where
others of the kind are located.

Link: https://lkml.kernel.org/r/20260302092831.2267785-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Andy Shevchenko and committed by
Andrew Morton
7eece691 19aa667a

+4 -5
-3
lib/Kconfig
··· 625 625 config ASN1_ENCODER 626 626 tristate 627 627 628 - config POLYNOMIAL 629 - tristate 630 - 631 628 config FIRMWARE_TABLE 632 629 bool 633 630
-2
lib/Makefile
··· 243 243 obj-$(CONFIG_STMP_DEVICE) += stmp_device.o 244 244 obj-$(CONFIG_IRQ_POLL) += irq_poll.o 245 245 246 - obj-$(CONFIG_POLYNOMIAL) += polynomial.o 247 - 248 246 # stackdepot.c should not be instrumented or call instrumented functions. 249 247 # Prevent the compiler from calling builtins like memcmp() or bcmp() from this 250 248 # file.
+3
lib/math/Kconfig
··· 5 5 This option provides an implementation of the CORDIC algorithm; 6 6 calculations are in fixed point. Module will be called cordic. 7 7 8 + config POLYNOMIAL 9 + tristate 10 + 8 11 config PRIME_NUMBERS 9 12 tristate "Simple prime number generator for testing" 10 13 help
+1
lib/math/Makefile
··· 2 2 obj-y += div64.o gcd.o lcm.o int_log.o int_pow.o int_sqrt.o reciprocal_div.o 3 3 4 4 obj-$(CONFIG_CORDIC) += cordic.o 5 + obj-$(CONFIG_POLYNOMIAL) += polynomial.o 5 6 obj-$(CONFIG_PRIME_NUMBERS) += prime_numbers.o 6 7 obj-$(CONFIG_RATIONAL) += rational.o 7 8
lib/polynomial.c lib/math/polynomial.c