mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2010-12-20, 22:10   #1
tichy
 
Nov 2010

1148 Posts
Default SZPTR - whare is it defined

SZPTR symbol is referenced is several files of the mprime sources:
Code:
 $ find . -name '*' | xargs grep -l SZPTR
./gwnum/extrn.mac
./gwnum/fft1.mac
./gwnum/multutil.asm
./gwnum/timeit.asm
./gwnum/unravel.mac
./gwnum/xfft1.mac
./gwnum/xmult1ax.asm
./gwnum/xmult2a.asm
./gwnum/xmult2ax.asm
./prime95/factor64.asm
but I cannot find its definition anywhere. Is this some kind of VS internals which supposedly equals "sizeof (void *)" ?

Thx,

[EDIT]
Also, the opt_save_reg macro is being used, but I cannot find it within mprime bundle. The closest I get is the save_reg macro from macamd64.inc provided by microsoft SDK. Are those macros different ?

Thx,

Last fiddled with by tichy on 2010-12-20 at 22:53
tichy is offline   Reply With Quote
Old 2010-12-21, 02:30   #2
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

72×149 Posts
Default

I think it is in unravel.Mac
Prime95 is offline   Reply With Quote
Old 2010-12-21, 11:10   #3
tichy
 
Nov 2010

22×19 Posts
Default

Quote:
Originally Posted by Prime95 View Post
I think it is in unravel.Mac
Well, that was the first place I checked. Other than that I do full grep on 25.11 zip contents. Interestingly, google when queried on opt_save_reg returns nothing, neither msdn. Anyway, if it is not something you have on the top of the head, then I'll try to workaround that.

Thx,
tichy is offline   Reply With Quote
Old 2010-12-21, 22:25   #4
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

47×197 Posts
Default

both are in unravel.mac

Last fiddled with by Batalov on 2010-12-21 at 22:30
Batalov is offline   Reply With Quote
Old 2010-12-22, 09:02   #5
tichy
 
Nov 2010

22·19 Posts
Default

Sorry, you were right.
My linear programming habits :) - I expected definition before first use, and as I saw both SZPTR and opt_save_reg being referenced several times in sequence from the start of the file I would not expect definition to follow after those references. MASM startles me every day.
tichy is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How is GIMPS' sustained throughput defined? NBtarheel_33 PrimeNet 86 2018-02-28 08:24
another defined sequence MattcAnderson Miscellaneous Math 4 2017-07-05 08:05

All times are UTC. The time now is 09:02.

Tue Jan 19 09:02:14 UTC 2021 up 47 days, 5:13, 0 users, load averages: 1.88, 2.06, 2.20

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.