Home GnuPG

mpi: New internal function _gcry_mpi_cmpabs.

Description

mpi: New internal function _gcry_mpi_cmpabs.

* mpi/mpi-cmp.c (_gcry_mpi_cmp): Factor out to ...
(do_mpi_cmp): New.  Add arg absmode.
(_gcry_mpi_cmpabs): New.
* src/gcrypt-int.h (mpi_cmpabs): New macro.

(cherry picked from commit 6606ae44e0de1069b29dd4215ee9748280940e1b)

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 5 2018, 2:29 PM
Parents
rC1a0289daa408: build: Convince gcc not to delete NULL ptr checks.
Branches
Unknown
Tags
Unknown