News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Prime numbers

Started by jj2007, August 12, 2015, 07:19:26 AM

Previous topic - Next topic

zedd151

Quote from: rrr314159 on September 15, 2015, 07:57:28 PM
Is it the case that some people can't (or, won't) upgrade to 8.0?

For me at least, I only upgrade anything on an 'as-needed' basis.
I never simply upgrade because of a so-called 'improved' version.

(that's why I still run WinXP, don't need (yet) anything else)  8)
Software compatibility? That's why I am learning to write my own  :biggrin:

jj2007

The upgrade is indeed a clumsy procedure. Not everybody is willing to install that behemoth of Visual Crap.
asm:
  mask0 qword 0001000101000101h, 0100010000010100h
  mask1 qword 0000010000010001h, 0101000100000101h
  mask2 qword 0100000100010000h, 0001010001000000h
  mask3 qword 0100000001000101h, 0100000100010000h
  mask4 qword 0001010000010001h, 0101000100000100h
  mask5 qword 0000010100000100h, 0001010001010001h

inc:
    db 0Fh, 0AEh, 0F0h ; mfence
    db 0fh, 31h ; rdtsc

rrr314159

Thanks jj2007,

next version I'll put these changes in for those 6.15 fans out there. If anyone wants to change it themselves: the place in primes.asm to substitute the mask0, mask1 ... block is obvious. The mfence and rdtsc db statements would replace those instructions in primes.inc
I am NaN ;)

TWell

SEGMENT_SIZE = 8192
AMD E-450 APU with Radeon(tm) HD Graphics; Windows 7; 2 threads (only 1 used)
prime time seconds 8.54

SEGMENT_SIZE = 16384
AMD E-450 APU with Radeon(tm) HD Graphics; Windows 7; 2 threads (only 1 used)
prime time seconds 7.385

SEGMENT_SIZE = 32768
AMD E-450 APU with Radeon(tm) HD Graphics; Windows 7; 2 threads (only 1 used)
prime time seconds 6.541