![]() |
![]() |
#1 | |
Nov 2003
1D2416 Posts |
![]() Quote:
Is the base 2 modular arithmetic optimization turned on? Also note that one can optimize arithmetic for 2LM as well. Does GMP-ECM do this? It is very worthwhile. e.g. to reduce C mod (2^n-1) put C = A*2^n + B = A*2^n - A + B + A == (B + A) mod (2^n-1). Thus, modular reduction only takes a shift and an add. For C mod (2^n+1) one gets B - A. to reduce C mod (2^x + 2^y + 1) put C = A*2^x + B. Now add and subtract A*2^y and add and subtract A: C = A*2^x + A*2^y + A + B -2^y A - A. Thus C mod (2^x + 2^y + 1) == B - A*2^y - A. This is much faster than Montgomery multiplication. |
|
![]() |
![]() |
![]() |
#2 |
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
23×113 Posts |
![]()
Moved here a) because of a request and b) it is more appropriate here anyway.
|
![]() |
![]() |
![]() |
#3 |
Mar 2019
14910 Posts |
![]()
Is this equivalent to asking whether the GMP-ECM binary is built using gwnum?
|
![]() |
![]() |
![]() |
#4 |
Nov 2003
11101001001002 Posts |
![]() |
![]() |
![]() |
![]() |
#5 | |
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
23·113 Posts |
![]() Quote:
If you want an authoritative answer I suggest that you contact the GMP-ECM developers. |
|
![]() |
![]() |
![]() |
#6 | ||
Nov 2003
11101001001002 Posts |
![]() Quote:
*building* of the library. Quote:
distributes its wu's. It is clear that GMP-ECM does not have an option to speed 2LM arithmetic. |
||
![]() |
![]() |
![]() |
#7 | |
Mar 2019
9516 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Nov 2003
1D2416 Posts |
![]() Quote:
implemented. IT *does* implement fast 2^n-1 and 2^n+1 modular reductions. But that does not tell us whether YoYo *invokes* the option. I specifically asked about YoYo's use. It does not seem to implement fast 2LM arithmetic. Indeed. Fast 2LM arithmetic can be generalized to fast modular reductions for any moduli with very low Hamming weight. |
|
![]() |
![]() |
![]() |
#9 |
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
23·113 Posts |
![]() |
![]() |
![]() |
![]() |
#10 |
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
2·29·101 Posts |
![]()
I believe that it can autodetect that the base 2 code is needed. I don't know how good it is at that for cofactors.
|
![]() |
![]() |
![]() |
#11 |
Nov 2003
746010 Posts |
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
P73 found by a yoyo@home user | yoyo | GMP-ECM | 3 | 2017-11-08 15:20 |
larger B1 for GMP-ECM in yoyo@home | yoyo | GMP-ECM | 41 | 2017-01-04 05:53 |
yoyo@home and wikipedia | Dubslow | Factoring | 1 | 2015-12-06 15:56 |
Base-6 speed for prime testing vs. base-2 | jasong | Conjectures 'R Us | 36 | 2010-08-03 06:25 |
New Linux Local Root Exploit | tinhnho | Linux | 0 | 2005-01-17 05:48 |