]> git.baikalelectronics.ru Git - kernel.git/commit
lib/mpi: Add mpi_sub_ui()
authorMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Mon, 20 Jul 2020 17:08:09 +0000 (19:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Jul 2020 08:08:59 +0000 (18:08 +1000)
commit86799ce8991aeca41c01e9f264cbc2d8a6aa153b
tree2e4a7d675d316ad53d27f0fdf5e2d8b1a819c189
parentd7671ca9b12b9a8d8c74ec4e45daadfeafd12eef
lib/mpi: Add mpi_sub_ui()

Add mpi_sub_ui() based on Gnu MP mpz_sub_ui() function from file
mpz/aors_ui.h[1] from change id 510b83519d1c adapting the code to the
kernel's data structures, helper functions and coding style and also
removing the defines used to produce mpz_sub_ui() and mpz_add_ui()
from the same code.

[1] https://gmplib.org/repo/gmp-6.2/file/510b83519d1c/mpz/aors.h

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/linux/mpi.h
lib/mpi/Makefile
lib/mpi/mpi-sub-ui.c [new file with mode: 0644]