Thread: Octoproths
View Single Post
Old 2005-04-11, 10:11   #30
axn's Avatar
Jun 2003

5×1,039 Posts

Originally Posted by ET_
May I ask you which boost of performance gave the substitution of Pascal code with asm code?

The two divisions in TestK - gave appr. 35% speedup. Not much but I'll take any speedup especially since I am running these for 2-3 days at a stretch. Actually, there is one more optimization there - the division of k by p is done by two back-to-back divisions; for most cases you only need one division. I plan to code it up and try it out. Let's see what kind of improvement it brings. For people needing non-asm version, you can use suitable qword operations. But in such cases, it might be worthwhile to use alternatives to division.
axn is online now