mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 18:19:23 +00:00
Remove all signed divisions
This commit is contained in:
1 parent
5d20f9b0e7
commit
4c2055ef0b
8 files changed
+34
-18
No files matched your search
@@ -170,7 +170,7 @@ MA 02111-1307, USA. */
|
||||
(pl) = __m0 * __m1; \
|
||||
} while (0)
|
||||
#define UMUL_TIME 46
|
||||
#ifndef LONGLONG_STANDALONE
|
||||
#if 0
|
||||
#define udiv_qrnnd(q, r, n1, n0, d) \
|
||||
do { UDItype __r; \
|
||||
(q) = __udiv_qrnnd (&__r, (n1), (n0), (d)); \
|
||||
@@ -353,7 +353,7 @@ extern UDItype __udiv_qrnnd ();
|
||||
#define UMUL_TIME 40
|
||||
#define UDIV_TIME 80
|
||||
#endif
|
||||
#ifndef LONGLONG_STANDALONE
|
||||
#if 0
|
||||
#define udiv_qrnnd(q, r, n1, n0, d) \
|
||||
do { USItype __r; \
|
||||
(q) = __udiv_qrnnd (&__r, (n1), (n0), (d)); \
|
||||
@@ -1294,7 +1294,7 @@ typedef unsigned int UTItype __attribute__ ((mode (TI)));
|
||||
#define UMUL_TIME 39 /* 39 instructions */
|
||||
#endif
|
||||
#ifndef udiv_qrnnd
|
||||
#ifndef LONGLONG_STANDALONE
|
||||
#if 0
|
||||
#define udiv_qrnnd(q, r, n1, n0, d) \
|
||||
do { USItype __r; \
|
||||
(q) = __udiv_qrnnd (&__r, (n1), (n0), (d)); \
|
||||
|
||||
@@ -75,9 +75,6 @@ gcry_mpi_powm (gcry_mpi_t res,
|
||||
rp = res->d;
|
||||
ep = expo->d;
|
||||
|
||||
if (!msize)
|
||||
msize = 1 / msize; /* Provoke a signal. */
|
||||
|
||||
if (!esize)
|
||||
{
|
||||
/* Exponent is zero, result is 1 mod MOD, i.e., 1 or 0 depending
|
||||
|
||||
@@ -214,7 +214,7 @@ _gcry_mpih_divrem( mpi_ptr_t qp, mpi_size_t qextra_limbs,
|
||||
case 0:
|
||||
/* We are asked to divide by zero, so go ahead and do it! (To make
|
||||
the compiler not remove this statement, return the value.) */
|
||||
return 1 / dsize;
|
||||
return 0;//1 / dsize;
|
||||
|
||||
case 1:
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user