~ubuntu-branches/ubuntu/trusty/gnupg/trusty-updates

« back to all changes in this revision

Viewing changes to mpi/mpi-pow.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-12-04 22:26:16 UTC
  • mfrom: (1.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20121204222616-cr0fow26geq90l3y
Tags: 1.4.12-6ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Disable mlock() test since it fails with ulimit 0 (on buildds).
  - Set gpg (or gpg2) and gpgsm to use a passphrase agent by default.
  - Only suggest gnupg-curl and libldap; recommendations are pulled into
    minimal, and we don't need the keyserver utilities in a minimal Ubuntu
    system.
  - Remove the Win32 build.
  - Update config.guess/config.sub for aarch64.
* Dropped patches:
  - Fix udeb build failure on powerpc, building with -O2 instead of -Os.
    (No longer seems to be necessary.)
* Simplify removal of Win32 build, to make this easier to merge in future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
{
43
43
    mpi_ptr_t  rp, ep, mp, bp;
44
44
    mpi_size_t esize, msize, bsize, rsize;
45
 
    int        esign, msign, bsign, rsign;
 
45
    int               msign, bsign, rsign;
46
46
    int        esec,  msec,  bsec,  rsec;
47
47
    mpi_size_t size;
48
48
    int mod_shift_cnt;
57
57
    esize = exponent->nlimbs;
58
58
    msize = mod->nlimbs;
59
59
    size = 2 * msize;
60
 
    esign = exponent->sign;
61
60
    msign = mod->sign;
62
61
 
63
62
    esec = mpi_is_secure(exponent);
136
135
            MPN_COPY(bp, rp, bsize);
137
136
        }
138
137
        if( rp == ep ) {
139
 
            /* RES and EXPONENT are identical.  
 
138
            /* RES and EXPONENT are identical.
140
139
               Allocate temp. space for EXPONENT.  */
141
140
            ep = ep_marker = mpi_alloc_limb_space( esize, esec );
142
141
            MPN_COPY(ep, rp, esize);