![]() |
|
|
#1 |
|
Jul 2010
10002 Posts |
Hi,
I was looking at the msieve\trunk\common\mp.c file and I noticed there is 64 bit inline assembly code for GCC (although doesn't seem to use 64 bit wide instructions ?), but not for MSC, since inline assembler is not available for 64 bit targets with that compiler. Would there be any benefit in looking into compiler intrinsics for MSC (i.e. things like _BitScanForward()) etc.? -Carlo |
|
|
|
|
|
#2 |
|
Tribal Bullet
Oct 2004
356510 Posts |
The multiple precision library in mp.c does not take up enough of the total runtime in the QS and NFS codes to be worth optimizing.
In any case, I am working on a set of patches (now in testing) to the NFS code that use GMP almost everywhere. Those patches will have to get rolled out in stages, since the NFS code depends on mp.c surprisingly often. The NFS code is pretty much the only part of Msieve that I care about anymore (especially since YAFU and GMP-ECM do everything else so well), so I consider pretty much anything that does not support the NFS code to be obsolete. |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Glibc 2.27 Is Being Released Soon With Numerous Performance Optimizations | heliosh | Lounge | 7 | 2018-02-02 18:19 |
| Turn off GCC sse-using optimizations? | ewmayer | Programming | 3 | 2016-09-30 07:15 |
| compiler/assembler optimizations possible? | ixfd64 | Software | 7 | 2011-02-25 20:05 |
| Msieve 1.10 | RedGolpe | Msieve | 6 | 2006-09-07 12:56 |
| northwood optimizations | E_tron | Software | 8 | 2006-01-08 15:15 |