mersenneforum.org  

Go Back   mersenneforum.org > Search Forums

Showing results 1 to 15 of 15
Search took 0.01 seconds.
Search: Posts Made By: cjohnsto
Forum: Factoring 2010-02-11, 02:58
Replies: 81
Views: 12,953
Posted By cjohnsto
I haven't disappeared. I'm having trouble with...

I haven't disappeared. I'm having trouble with getting GMP to build for Windows.
I'm thinking I might just do the conversions blind (without building/testing) and pass them back to for someone to...
Forum: Factoring 2010-01-23, 05:22
Replies: 81
Views: 12,953
Posted By cjohnsto
If you point me at a copy of the code with some...

If you point me at a copy of the code with some build instructions for Windows I can take a look.
Forum: Factoring 2010-01-20, 10:46
Replies: 81
Views: 12,953
Posted By cjohnsto
The calling conventions are quite different,...

The calling conventions are quite different, however most of the time it is pretty trivial to convert between the two conventions. I have found the interesting differences in the conventions don't...
Forum: GMP-ECM 2006-03-21, 11:57
Replies: 2
Views: 1,023
Posted By cjohnsto
C++ mangles names but C does not. I believe this...

C++ mangles names but C does not. I believe this is the reason for the problem.
To solve it change:
#include <ECM.h>
to
extern "C" {
#include <ECM.h>
}

I hope that helps. Basically this...
Forum: Programming 2005-12-12, 01:39
Replies: 9
Views: 1,234
Posted By cjohnsto
I'm not familiar with QuickBasic but my guess is...

I'm not familiar with QuickBasic but my guess is that 's' is only 32 bits long and your result is longer than 32 bits. You will need to find a more appropriate data type or create one yourself.
...
Forum: Hardware 2005-08-21, 12:01
Replies: 4
Views: 1,251
Posted By cjohnsto
Indeed the biggest problem is replacing fans, but...

Indeed the biggest problem is replacing fans, but if your running the machine 24/7 then you probably need to replace just as often anyway. Personally I go through a power supply every 2 years and one...
Forum: Programming 2005-08-21, 09:07
Replies: 2
Views: 1,067
Posted By cjohnsto
If you want to use the STL than you can try using...

If you want to use the STL than you can try using a bitvector. or a vector of bools. or an array of bools.
The best is bitvector since it is specifically designed for this and will probably use less...
Forum: Programming 2005-08-18, 11:25
Replies: 63
Views: 8,635
Posted By cjohnsto
Here is a recursive version of LSB algorithm. I...

Here is a recursive version of LSB algorithm. I have tested it using a simple wrapper. It does not handle the input of 0 well (I consider this undefined). This may be better or worse than what you...
Forum: GMP-ECM 2005-08-15, 07:57
Replies: 15
Views: 2,076
Posted By cjohnsto
No problem.

No problem.
Forum: GMP-ECM 2005-08-15, 07:55
Replies: 2
Views: 1,445
Posted By cjohnsto
Is GMP and ECM compiled using the stack or heap...

Is GMP and ECM compiled using the stack or heap for number storage?
Forum: GMP-ECM 2005-08-14, 22:24
Replies: 15
Views: 2,076
Posted By cjohnsto
But you did get a result: 1 curve at B1=11e7...

But you did get a result: 1 curve at B1=11e7 found no factors.

To run multiple curves youneed to tell it to do so. I think the parameter is -c # where # is the number of curves to run.

I also...
Forum: NFSNET Discussion 2005-07-14, 00:25
Replies: 13
Views: 3,440
Posted By cjohnsto
gribozavr it is good that you found a bug and...

gribozavr it is good that you found a bug and fixed it. I did however intentionally avoid string functions. I wanted to minimise library use to make it as portable as possible (I know the string...
Forum: NFSNET Discussion 2005-07-11, 13:30
Replies: 13
Views: 3,440
Posted By cjohnsto
How about the following ANSI C code for...

How about the following ANSI C code for comparisons. Sorry about the lack of comments, it should be fairly obvious what I have done. I have tested it a bit but programs can always use more. Especialy...
Forum: Programming 2005-07-09, 10:03
Replies: 2
Views: 3,249
Posted By cjohnsto
I would be suprised if there is any simple bit of...

I would be suprised if there is any simple bit of code. I believe it would be processor and motherboard dependant.
Forum: Factoring 2005-06-11, 06:12
Replies: 58
Views: 5,399
Posted By cjohnsto
Probably the best source of randomness for...

Probably the best source of randomness for windows is from the CryptGenRandom function. It is supposed to be used for random seeds, IVs, chanlenges, etc in cryptographic circumstances.
Showing results 1 to 15 of 15

 
All times are UTC. The time now is 12:50.


Mon Oct 25 12:50:16 UTC 2021 up 94 days, 7:19, 0 users, load averages: 1.25, 1.20, 1.29

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.