Mikuro
Crotchety UI Nitpicker
I posted this yesterday, but I guess it got deleted with the DB errors macosx.com had. Anyway...
I need help using big (1024-bit) integers in Objective-C. ....lots and lots of help. * Really, I'm totally clueless here, and barely know where to start. I'm still not really "in my element" when it comes to C.
It looks like what I need is in vBigNum.h, under the Accelerate framework. But...I can't for the life of me figure out how to actually use it. Something like this...
...clearly does not work, since vU1024 is not an int (not that I expected it to, but like I said, I'm clueless here).
How do I establish the value of a bigNum? And once established, how do I manipulate/print it? Back in REALbasic, I used the Extended Plugin. It seems like vBigNum isn't quite as flexible, but it also seems like it'll do what I need (I only need it to work up to about 10^175), if I could only figure out how to use it.
Despite my best efforts, I can't find any example code anywhere. Could someone with a little more experience please give me a push in the right direction?
Also, is vBigNum even where I ought to be looking? Speed is important here, so any advice in that regard would be greatly appreciated.
I need help using big (1024-bit) integers in Objective-C. ....lots and lots of help. * Really, I'm totally clueless here, and barely know where to start. I'm still not really "in my element" when it comes to C.
It looks like what I need is in vBigNum.h, under the Accelerate framework. But...I can't for the life of me figure out how to actually use it. Something like this...
Code:
#import <Accelerate/Accelerate.h>
.....
vU1024 booga;
booga = 100;
How do I establish the value of a bigNum? And once established, how do I manipulate/print it? Back in REALbasic, I used the Extended Plugin. It seems like vBigNum isn't quite as flexible, but it also seems like it'll do what I need (I only need it to work up to about 10^175), if I could only figure out how to use it.
Despite my best efforts, I can't find any example code anywhere. Could someone with a little more experience please give me a push in the right direction?
Also, is vBigNum even where I ought to be looking? Speed is important here, so any advice in that regard would be greatly appreciated.