]> git.baikalelectronics.ru Git - kernel.git/commit
alpha: move __udiv_qrnnd library function to arch/alpha/lib/
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Sep 2021 21:45:48 +0000 (14:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Sep 2021 21:45:48 +0000 (14:45 -0700)
commit3e68e0f01ca5c6bea12e1ae1df9e78ff9ec298b8
tree1eef0dcde02bb60b6c8183010b5eab5fc0dd8269
parentc5ceae1c4abda442a5aa94c1f388e8daa61c8e84
alpha: move __udiv_qrnnd library function to arch/alpha/lib/

We already had the implementation for __udiv_qrnnd (unsigned divide for
multi-precision arithmetic) as part of the alpha math emulation code.

But you can disable the math emulation code - even if you shouldn't -
and then the MPI code that actually wants this functionality (and is
needed by various crypto functions) will fail to build.

So move the extended-precision divide code to be a regular library
function, just like all the regular division code is.  That way ie is
available regardless of math-emulation.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/include/asm/asm-prototypes.h
arch/alpha/lib/Makefile
arch/alpha/lib/udiv-qrnnd.S [new file with mode: 0644]
arch/alpha/math-emu/Makefile
arch/alpha/math-emu/math.c
arch/alpha/math-emu/qrnnd.S [deleted file]