head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC5:1.1.1.2 netbsd-11-0-RC4:1.1.1.2 netbsd-11-0-RC3:1.1.1.2 netbsd-11-0-RC2:1.1.1.2 netbsd-11-0-RC1:1.1.1.2 perseant-exfatfs-base-20250801:1.1.1.2 netbsd-11:1.1.1.2.0.18 netbsd-11-base:1.1.1.2 netbsd-10-1-RELEASE:1.1.1.2 perseant-exfatfs-base-20240630:1.1.1.2 perseant-exfatfs:1.1.1.2.0.16 perseant-exfatfs-base:1.1.1.2 netbsd-8-3-RELEASE:1.1.1.1 netbsd-9-4-RELEASE:1.1.1.2 netbsd-10-0-RELEASE:1.1.1.2 netbsd-10-0-RC6:1.1.1.2 netbsd-10-0-RC5:1.1.1.2 netbsd-10-0-RC4:1.1.1.2 netbsd-10-0-RC3:1.1.1.2 netbsd-10-0-RC2:1.1.1.2 netbsd-10-0-RC1:1.1.1.2 netbsd-10:1.1.1.2.0.14 netbsd-10-base:1.1.1.2 netbsd-9-3-RELEASE:1.1.1.2 gmp-6-2-1:1.1.1.2 cjep_sun2x-base1:1.1.1.2 cjep_sun2x:1.1.1.2.0.12 cjep_sun2x-base:1.1.1.2 cjep_staticlib_x-base1:1.1.1.2 netbsd-9-2-RELEASE:1.1.1.2 cjep_staticlib_x:1.1.1.2.0.10 cjep_staticlib_x-base:1.1.1.2 netbsd-9-1-RELEASE:1.1.1.2 gmp-6-2-0:1.1.1.2 phil-wifi-20200421:1.1.1.2 phil-wifi-20200411:1.1.1.2 is-mlppp:1.1.1.2.0.8 is-mlppp-base:1.1.1.2 phil-wifi-20200406:1.1.1.2 netbsd-8-2-RELEASE:1.1.1.1 netbsd-9-0-RELEASE:1.1.1.2 netbsd-9-0-RC2:1.1.1.2 netbsd-9-0-RC1:1.1.1.2 phil-wifi-20191119:1.1.1.2 netbsd-9:1.1.1.2.0.6 netbsd-9-base:1.1.1.2 phil-wifi-20190609:1.1.1.2 netbsd-8-1-RELEASE:1.1.1.1 netbsd-8-1-RC1:1.1.1.1 pgoyette-compat-merge-20190127:1.1.1.2 pgoyette-compat-20190127:1.1.1.2 pgoyette-compat-20190118:1.1.1.2 pgoyette-compat-1226:1.1.1.2 pgoyette-compat-1126:1.1.1.2 pgoyette-compat-1020:1.1.1.2 pgoyette-compat-0930:1.1.1.2 pgoyette-compat-0906:1.1.1.2 netbsd-7-2-RELEASE:1.1.1.1 pgoyette-compat-0728:1.1.1.2 netbsd-8-0-RELEASE:1.1.1.1 phil-wifi:1.1.1.2.0.4 phil-wifi-base:1.1.1.2 pgoyette-compat-0625:1.1.1.2 netbsd-8-0-RC2:1.1.1.1 pgoyette-compat-0521:1.1.1.2 pgoyette-compat-0502:1.1.1.2 pgoyette-compat-0422:1.1.1.2 netbsd-8-0-RC1:1.1.1.1 pgoyette-compat-0415:1.1.1.2 pgoyette-compat-0407:1.1.1.2 pgoyette-compat-0330:1.1.1.2 pgoyette-compat-0322:1.1.1.2 pgoyette-compat-0315:1.1.1.2 netbsd-7-1-2-RELEASE:1.1.1.1 pgoyette-compat:1.1.1.2.0.2 pgoyette-compat-base:1.1.1.2 netbsd-7-1-1-RELEASE:1.1.1.1 matt-nb8-mediatek:1.1.1.1.0.38 matt-nb8-mediatek-base:1.1.1.1 gmp-6-1-2:1.1.1.2 perseant-stdc-iso10646:1.1.1.1.0.36 perseant-stdc-iso10646-base:1.1.1.1 netbsd-8:1.1.1.1.0.34 netbsd-8-base:1.1.1.1 prg-localcount2-base3:1.1.1.1 prg-localcount2-base2:1.1.1.1 prg-localcount2-base1:1.1.1.1 prg-localcount2:1.1.1.1.0.32 prg-localcount2-base:1.1.1.1 pgoyette-localcount-20170426:1.1.1.1 bouyer-socketcan-base1:1.1.1.1 pgoyette-localcount-20170320:1.1.1.1 netbsd-7-1:1.1.1.1.0.30 netbsd-7-1-RELEASE:1.1.1.1 netbsd-7-1-RC2:1.1.1.1 netbsd-7-nhusb-base-20170116:1.1.1.1 bouyer-socketcan:1.1.1.1.0.28 bouyer-socketcan-base:1.1.1.1 pgoyette-localcount-20170107:1.1.1.1 netbsd-7-1-RC1:1.1.1.1 pgoyette-localcount-20161104:1.1.1.1 netbsd-7-0-2-RELEASE:1.1.1.1 localcount-20160914:1.1.1.1 netbsd-7-nhusb:1.1.1.1.0.26 netbsd-7-nhusb-base:1.1.1.1 pgoyette-localcount-20160806:1.1.1.1 pgoyette-localcount-20160726:1.1.1.1 pgoyette-localcount:1.1.1.1.0.24 pgoyette-localcount-base:1.1.1.1 netbsd-7-0-1-RELEASE:1.1.1.1 netbsd-7-0:1.1.1.1.0.22 netbsd-7-0-RELEASE:1.1.1.1 netbsd-7-0-RC3:1.1.1.1 netbsd-7-0-RC2:1.1.1.1 netbsd-7-0-RC1:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.1 netbsd-6-1-5-RELEASE:1.1.1.1 netbsd-7:1.1.1.1.0.20 netbsd-7-base:1.1.1.1 yamt-pagecache-base9:1.1.1.1 yamt-pagecache-tag8:1.1.1.1 netbsd-6-1-4-RELEASE:1.1.1.1 netbsd-6-0-5-RELEASE:1.1.1.1 tls-earlyentropy:1.1.1.1.0.18 tls-earlyentropy-base:1.1.1.1 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.1 riastradh-drm2-base3:1.1.1.1 netbsd-6-1-3-RELEASE:1.1.1.1 netbsd-6-0-4-RELEASE:1.1.1.1 gmp-5-1-3:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.1 netbsd-6-0-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.1 riastradh-drm2-base2:1.1.1.1 riastradh-drm2-base1:1.1.1.1 riastradh-drm2:1.1.1.1.0.12 riastradh-drm2-base:1.1.1.1 netbsd-6-1:1.1.1.1.0.16 netbsd-6-0-2-RELEASE:1.1.1.1 netbsd-6-1-RELEASE:1.1.1.1 netbsd-6-1-RC4:1.1.1.1 netbsd-6-1-RC3:1.1.1.1 agc-symver:1.1.1.1.0.14 agc-symver-base:1.1.1.1 netbsd-6-1-RC2:1.1.1.1 netbsd-6-1-RC1:1.1.1.1 yamt-pagecache-base8:1.1.1.1 netbsd-6-0-1-RELEASE:1.1.1.1 yamt-pagecache-base7:1.1.1.1 matt-nb6-plus-nbase:1.1.1.1 yamt-pagecache-base6:1.1.1.1 netbsd-6-0:1.1.1.1.0.10 netbsd-6-0-RELEASE:1.1.1.1 netbsd-6-0-RC2:1.1.1.1 tls-maxphys:1.1.1.1.0.8 tls-maxphys-base:1.1.1.1 matt-nb6-plus:1.1.1.1.0.6 matt-nb6-plus-base:1.1.1.1 netbsd-6-0-RC1:1.1.1.1 yamt-pagecache-base5:1.1.1.1 yamt-pagecache-base4:1.1.1.1 netbsd-6:1.1.1.1.0.4 netbsd-6-base:1.1.1.1 yamt-pagecache-base3:1.1.1.1 yamt-pagecache-base2:1.1.1.1 yamt-pagecache:1.1.1.1.0.2 yamt-pagecache-base:1.1.1.1 gmp-5-0-2:1.1.1.1 gmp:1.1.1; locks; strict; comment @;; @; 1.1 date 2011.06.20.05.54.44; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2011.06.20.05.54.44; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2017.08.22.09.40.48; author mrg; state Exp; branches; next ; commitid W5kmAIk8hwVpSb4A; desc @@ 1.1 log @Initial revision @ text @dnl Alpha ev6 mpn_addmul_1 and mpn_submul_1. dnl Copyright 2000, 2003, 2004, 2005, 2008 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 3 of the License, or (at dnl your option) any later version. dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public dnl License for more details. dnl You should have received a copy of the GNU Lesser General Public License dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C EV4: 42 C EV5: 18 C EV6: 3.5 C INPUT PARAMETERS define(`rp', `r16') define(`up', `r17') define(`n', `r18') define(`v0', `r19') dnl This code was written in cooperation with ev6 pipeline expert Steve Root. dnl The stores can issue a cycle late so we have paired no-op's to 'catch' dnl them, so that further disturbance to the schedule is damped. dnl We couldn't pair the loads, because the entangled schedule of the carry's dnl has to happen on one side {0} of the machine. dnl This is a great schedule for the d_cache, a poor schedule for the b_cache. dnl The lockup on U0 means that any stall can't be recovered from. Consider a dnl ldq in L1, say that load gets stalled because it collides with a fill from dnl the b_cache. On the next cycle, this load gets priority. If first looks dnl at L0, and goes there. The instruction we intended for L0 gets to look at dnl L1, which is NOT where we want it. It either stalls 1, because it can't dnl go in L0, or goes there, and causes a further instruction to stall. dnl So for b_cache, we're likely going to want to put one or more cycles back dnl into the code! And, of course, put in lds prefetch for the rp[] operand. dnl At a place where we have an mt followed by a bookkeeping, put the dnl bookkeeping in upper, and the prefetch into lower. dnl Note, the ldq's and stq's are at the end of the quadpacks. Note, we'd dnl like not to have an ldq or an stq to preceded a conditional branch in a dnl quadpack. The conditional branch moves the retire pointer one cycle dnl later. ifdef(`OPERATION_addmul_1',` define(`ADDSUB', `addq') define(`CMPCY', `cmpult $2,$1') define(`func', `mpn_addmul_1') ') ifdef(`OPERATION_submul_1',` define(`ADDSUB', `subq') define(`CMPCY', `cmpult $1,$2') define(`func', `mpn_submul_1') ') MULFUNC_PROLOGUE(mpn_addmul_1 mpn_submul_1) ASM_START() PROLOGUE(func) ldq r3, 0(up) C and r18, 7, r20 C lda r18, -9(r18) C cmpeq r20, 1, r21 C beq r21, $L1 C $1mod8: ldq r5, 0(rp) C mulq v0, r3, r7 C umulh v0, r3, r8 C ADDSUB r5, r7, r23 C CMPCY( r5, r23), r20 C addq r8, r20, r0 C stq r23, 0(rp) C bge r18, $ent1 C ret r31, (r26), 1 C $L1: lda r8, 0(r31) C zero carry reg lda r24, 0(r31) C zero carry reg cmpeq r20, 2, r21 C bne r21, $2mod8 C cmpeq r20, 3, r21 C bne r21, $3mod8 C cmpeq r20, 4, r21 C bne r21, $4mod8 C cmpeq r20, 5, r21 C bne r21, $5mod8 C cmpeq r20, 6, r21 C bne r21, $6mod8 C cmpeq r20, 7, r21 C beq r21, $0mod8 C $7mod8: ldq r5, 0(rp) C lda up, 8(up) C mulq v0, r3, r7 C umulh v0, r3, r24 C ADDSUB r5, r7, r23 C CMPCY( r5, r23), r20 C addq r24, r20, r24 C stq r23, 0(rp) C lda rp, 8(rp) C ldq r3, 0(up) C $6mod8: ldq r1, 8(up) C mulq v0, r3, r25 C umulh v0, r3, r3 C mulq v0, r1, r28 C ldq r0, 16(up) C ldq r4, 0(rp) C umulh v0, r1, r8 C ldq r1, 24(up) C lda up, 48(up) C L1 bookkeeping mulq v0, r0, r2 C ldq r5, 8(rp) C lda rp, -32(rp) C L1 bookkeeping umulh v0, r0, r6 C ADDSUB r4, r25, r25 C lo + acc mulq v0, r1, r7 C br r31, $ent6 C $ent1: lda up, 8(up) C lda rp, 8(rp) C lda r8, 0(r0) C ldq r3, 0(up) C $0mod8: ldq r1, 8(up) C mulq v0, r3, r2 C umulh v0, r3, r6 C mulq v0, r1, r7 C ldq r0, 16(up) C ldq r4, 0(rp) C umulh v0, r1, r24 C ldq r1, 24(up) C mulq v0, r0, r25 C ldq r5, 8(rp) C umulh v0, r0, r3 C ADDSUB r4, r2, r2 C lo + acc mulq v0, r1, r28 C lda rp, -16(rp) C br r31, $ent0 C $3mod8: ldq r5, 0(rp) C lda up, 8(up) C mulq v0, r3, r7 C umulh v0, r3, r8 C ADDSUB r5, r7, r23 C CMPCY( r5, r23), r20 C addq r8, r20, r24 C stq r23, 0(rp) C lda rp, 8(rp) C ldq r3, 0(up) C $2mod8: ldq r1, 8(up) C mulq v0, r3, r25 C umulh v0, r3, r3 C mulq v0, r1, r28 C ble r18, $n23 C ldq r0, 16(up) C ldq r4, 0(rp) C umulh v0, r1, r8 C ldq r1, 24(up) C lda up, 16(up) C L1 bookkeeping mulq v0, r0, r2 C ldq r5, 8(rp) C lda rp, 0(rp) C L1 bookkeeping umulh v0, r0, r6 C ADDSUB r4, r25, r25 C lo + acc mulq v0, r1, r7 C br r31, $ent2 C $5mod8: ldq r5, 0(rp) C lda up, 8(up) C mulq v0, r3, r7 C umulh v0, r3, r24 C ADDSUB r5, r7, r23 C CMPCY( r5, r23), r20 C addq r24, r20, r8 C stq r23, 0(rp) C lda rp, 8(rp) C ldq r3, 0(up) C $4mod8: ldq r1, 8(up) C mulq v0, r3, r2 C umulh v0, r3, r6 C mulq v0, r1, r7 C ldq r0, 16(up) C ldq r4, 0(rp) C umulh v0, r1, r24 C ldq r1, 24(up) C lda up, 32(up) C L1 bookkeeping mulq v0, r0, r25 C ldq r5, 8(rp) C lda rp, 16(rp) C L1 bookkeeping umulh v0, r0, r3 C ADDSUB r4, r2, r2 C lo + acc mulq v0, r1, r28 C CMPCY( r4, r2), r20 C L0 lo add => carry ADDSUB r2, r8, r22 C U0 hi add => answer ble r18, $Lend C ALIGN(16) $Loop: bis r31, r31, r31 C U1 mt CMPCY( r2, r22), r21 C L0 hi add => carry addq r6, r20, r6 C U0 hi mul + carry ldq r0, 0(up) C bis r31, r31, r31 C U1 mt ADDSUB r5, r7, r7 C L0 lo + acc addq r6, r21, r6 C U0 hi mul + carry ldq r4, 0(rp) C L1 umulh v0, r1, r8 C U1 CMPCY( r5, r7), r20 C L0 lo add => carry ADDSUB r7, r6, r23 C U0 hi add => answer ldq r1, 8(up) C L1 mulq v0, r0, r2 C U1 CMPCY( r7, r23), r21 C L0 hi add => carry addq r24, r20, r24 C U0 hi mul + carry ldq r5, 8(rp) C L1 umulh v0, r0, r6 C U1 ADDSUB r4, r25, r25 C U0 lo + acc stq r22, -16(rp) C L0 stq r23, -8(rp) C L1 bis r31, r31, r31 C L0 st slosh mulq v0, r1, r7 C U1 bis r31, r31, r31 C L1 st slosh addq r24, r21, r24 C U0 hi mul + carry $ent2: CMPCY( r4, r25), r20 C L0 lo add => carry bis r31, r31, r31 C U1 mt lda r18, -8(r18) C L1 bookkeeping ADDSUB r25, r24, r22 C U0 hi add => answer bis r31, r31, r31 C U1 mt CMPCY( r25, r22), r21 C L0 hi add => carry addq r3, r20, r3 C U0 hi mul + carry ldq r0, 16(up) C L1 bis r31, r31, r31 C U1 mt ADDSUB r5, r28, r28 C L0 lo + acc addq r3, r21, r3 C U0 hi mul + carry ldq r4, 16(rp) C L1 umulh v0, r1, r24 C U1 CMPCY( r5, r28), r20 C L0 lo add => carry ADDSUB r28, r3, r23 C U0 hi add => answer ldq r1, 24(up) C L1 mulq v0, r0, r25 C U1 CMPCY( r28, r23), r21 C L0 hi add => carry addq r8, r20, r8 C U0 hi mul + carry ldq r5, 24(rp) C L1 umulh v0, r0, r3 C U1 ADDSUB r4, r2, r2 C U0 lo + acc stq r22, 0(rp) C L0 stq r23, 8(rp) C L1 bis r31, r31, r31 C L0 st slosh mulq v0, r1, r28 C U1 bis r31, r31, r31 C L1 st slosh addq r8, r21, r8 C U0 hi mul + carry $ent0: CMPCY( r4, r2), r20 C L0 lo add => carry bis r31, r31, r31 C U1 mt lda up, 64(up) C L1 bookkeeping ADDSUB r2, r8, r22 C U0 hi add => answer bis r31, r31, r31 C U1 mt CMPCY( r2, r22), r21 C L0 hi add => carry addq r6, r20, r6 C U0 hi mul + carry ldq r0, -32(up) C L1 bis r31, r31, r31 C U1 mt ADDSUB r5, r7, r7 C L0 lo + acc addq r6, r21, r6 C U0 hi mul + carry ldq r4, 32(rp) C L1 umulh v0, r1, r8 C U1 CMPCY( r5, r7), r20 C L0 lo add => carry ADDSUB r7, r6, r23 C U0 hi add => answer ldq r1, -24(up) C L1 mulq v0, r0, r2 C U1 CMPCY( r7, r23), r21 C L0 hi add => carry addq r24, r20, r24 C U0 hi mul + carry ldq r5, 40(rp) C L1 umulh v0, r0, r6 C U1 ADDSUB r4, r25, r25 C U0 lo + acc stq r22, 16(rp) C L0 stq r23, 24(rp) C L1 bis r31, r31, r31 C L0 st slosh mulq v0, r1, r7 C U1 bis r31, r31, r31 C L1 st slosh addq r24, r21, r24 C U0 hi mul + carry $ent6: CMPCY( r4, r25), r20 C L0 lo add => carry bis r31, r31, r31 C U1 mt lda rp, 64(rp) C L1 bookkeeping ADDSUB r25, r24, r22 C U0 hi add => answer bis r31, r31, r31 C U1 mt CMPCY( r25, r22), r21 C L0 hi add => carry addq r3, r20, r3 C U0 hi mul + carry ldq r0, -16(up) C L1 bis r31, r31, r31 C U1 mt ADDSUB r5, r28, r28 C L0 lo + acc addq r3, r21, r3 C U0 hi mul + carry ldq r4, -16(rp) C L1 umulh v0, r1, r24 C U1 CMPCY( r5, r28), r20 C L0 lo add => carry ADDSUB r28, r3, r23 C U0 hi add => answer ldq r1, -8(up) C L1 mulq v0, r0, r25 C U1 CMPCY( r28, r23), r21 C L0 hi add => carry addq r8, r20, r8 C U0 hi mul + carry ldq r5, -8(rp) C L1 umulh v0, r0, r3 C U1 ADDSUB r4, r2, r2 C U0 lo + acc stq r22, -32(rp) C L0 stq r23, -24(rp) C L1 bis r31, r31, r31 C L0 st slosh mulq v0, r1, r28 C U1 bis r31, r31, r31 C L1 st slosh addq r8, r21, r8 C U0 hi mul + carry CMPCY( r4, r2), r20 C L0 lo add => carry ADDSUB r2, r8, r22 C U0 hi add => answer ldl r31, 256(up) C prefetch up[] bgt r18, $Loop C U1 bookkeeping $Lend: CMPCY( r2, r22), r21 C addq r6, r20, r6 C ADDSUB r5, r7, r7 C addq r6, r21, r6 C ldq r4, 0(rp) C umulh v0, r1, r8 C CMPCY( r5, r7), r20 C ADDSUB r7, r6, r23 C CMPCY(r7, r23), r21 C addq r24, r20, r24 C ldq r5, 8(rp) C ADDSUB r4, r25, r25 C stq r22, -16(rp) C stq r23, -8(rp) C addq r24, r21, r24 C br L(x) ALIGN(16) $n23: ldq r4, 0(rp) C ldq r5, 8(rp) C umulh v0, r1, r8 C ADDSUB r4, r25, r25 C L(x): CMPCY( r4, r25), r20 C ADDSUB r25, r24, r22 C CMPCY( r25, r22), r21 C addq r3, r20, r3 C ADDSUB r5, r28, r28 C addq r3, r21, r3 C CMPCY( r5, r28), r20 C ADDSUB r28, r3, r23 C CMPCY( r28, r23), r21 C addq r8, r20, r8 C stq r22, 0(rp) C stq r23, 8(rp) C addq r8, r21, r0 C ret r31, (r26), 1 C EPILOGUE() ASM_END() @ 1.1.1.1 log @initial import of GMP 5.0.2. GNU MP is a library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers. It has a rich set of functions, and the functions have a regular interface. GMP is necessary for GCC >= 4.2. @ text @@ 1.1.1.2 log @initial import of GMP 6.1.2. main changes from 5.1.3 below. notes: - support for thumb-less ARM chips was in our port of 5.1.3, but a similar method has been provided upstream now - someone should look at the AVX failure reports, and fix them Changes between GMP version 6.1.0 and 6.1.1 FEATURES * Work around faulty cpuid on some recent Intel chips (this allows GMP to run on Skylake Pentiums). * Support thumb-less ARM chips. Changes between GMP version 6.0.* and 6.1.0 BUGS FIXED * The public function mpn_com is now correctly declared in gmp.h. * Healed possible failures of mpn_sec_sqr for non-cryptographic sizes for some obsolete CPUs. * Various problems related to precision for mpf have been fixed. * Fixed ABI incompatible stack alignment in calls from assembly code. * Fixed PIC bug in popcount affecting Intel processors using the 32-bit ABI. SPEEDUPS * Speedup for Intel Broadwell and Skylake through assembly code making use of new ADX instructions. * Square root is now faster when the remainder is not needed. Also the speed to compute the k-th root improved, for small sizes. FEATURES * New C++ functions gcd and lcm for mpz_class. * New public mpn functions mpn_divexact_1, mpn_zero_p, and mpn_cnd_swap. * New public mpq_cmp_z function, to efficiently compare rationals with integers. * Support for more 32-bit arm processors. * Support for AVX-less modern x86 CPUs. (Such support might be missing either because the CPU vendor chose to disable AVX, or because the running kernel lacks AVX context switch support.) * Support for NetBSD under Xen; we switch off AVX unconditionally under NetBSD since a bug in NetBSD makes AVX fail under Xen. MISC * Tuned values for FFT multiplications are provided for larger number on many platforms. Changes between GMP version 5.1.* and 6.0.0 BUGS FIXED * The function mpz_invert now considers any number invertible in Z/1Z. * The mpn multiply code now handles operands of more than 2^31 limbs correctly. (Note however that the mpz code is limited to 2^32 bits on 32-bit hosts and 2^37 bits on 64-bit hosts.) SPEEDUPS * Plain division of large operands is faster and more monotonous in operand size. * Major speedup for ARM, in particular ARM Cortex-A15, thanks to improved assembly. * Speedup for Intel Sandy Bridge, Ivy Bridge, Haswell, thanks to rewritten and vastly expanded assembly support. Speedup also for the older Core 2 and Nehalem. * Faster mixed arithmetic between mpq_class and double. FEATURES * Support for new Intel and AMD CPUs. * New public functions mpn_sec_mul and mpn_sec_sqr, implementing side-channel silent multiplication and squaring. * New public functions mpn_sec_div_qr and mpn_sec_div_r, implementing side-channel silent division. * New public functions mpn_cnd_add_n and mpn_cnd_sub_n. Side-channel silent conditional addition and subtraction. * New public function mpn_sec_powm, implementing side-channel silent modexp. * New public function mpn_sec_invert, implementing side-channel silent modular inversion. * Better support for applications which use the mpz_t type, but nevertheless need to call some of the lower-level mpn functions. See the documentation for mpz_limbs_read and related functions. @ text @d3 1 a3 1 dnl Copyright 2000, 2003-2005, 2008 Free Software Foundation, Inc. d6 1 a6 1 dnl d8 4 a11 14 dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl d14 5 a18 6 dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. @