mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2011-09-09, 17:58   #1
Carlo
 
Jul 2010

10002 Posts
Default Msieve 64 bit optimizations..

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
Carlo is offline   Reply With Quote
Old 2011-09-09, 20:44   #2
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

356510 Posts
Default

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.
jasonp is offline   Reply With Quote
Reply



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

All times are UTC. The time now is 04:25.


Fri Jul 7 04:25:04 UTC 2023 up 323 days, 1:53, 0 users, load averages: 1.49, 1.64, 1.56

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔