![]() |
|
|
#12 |
|
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
That might solve it - or maybe not. On a 64 bit machine, simply using a long int for those variables might do the trick, but I don't really understand the PRAC algorithm yet - it uses floating point approximations to some real constants to control the add/double (double here in the sense of: multiply by two) sequence and those constants in double (data type here) precision might not be enough for multipliers >2^32. If that is the case, we'll pretty much have to rewrite all the PRAC code.
Alex |
|
|
|
|
|
#13 | |
|
Aug 2002
10158 Posts |
Quote:
As far as the constants, (so called "magic" numbers") my experience has been that they have to change when going from 2^32 to 2^64, but it all depends on what they really are. |
|
|
|
|
|
|
#14 |
|
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
We're merely using PRAC for computing Uk(x) from U1(x) because it uses fewer modular multiplications than the usual binary ladder that keeps both Ui(x) and Ui-1(x) around.
Alex |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Minimize maximum error | Joshua2 | Homework Help | 10 | 2011-03-15 13:19 |
| Prime95 featured in Maximum PC! | ixfd64 | Software | 10 | 2010-05-31 15:21 |
| Maximum memory for P-1 in XP 32-bit | willmore | Software | 4 | 2009-10-14 02:45 |
| Maximum theoretical MPG | Mini-Geek | Lounge | 9 | 2008-07-14 22:45 |
| cpu not staying at maximum while in Stage 2 | jasong | GMP-ECM | 1 | 2006-12-18 06:36 |