![]() |
|
|
#12 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
19·397 Posts |
Ernst (and Guillermo),
Have you tried the QD double-double package? I've just switched it and the results have been good thusfar. I had to switch because x86-64 does not support the 80-bit x87 FPU instructions - so I had to reimplement all that assembly language setup code. |
|
|
|
|
|
#13 | |
|
Jan 2005
11 Posts |
Quote:
types.h: line 48, line 49: long long => long util.c: line 97, line 166: long long => long qfloat.h, qfloat.c: ...ull => ...ul then: $ cc -o Mlucas *.c -lm $ Mlucas ERROR 14 in util.c $ |
|
|
|
|
|
|
#14 | ||
|
∂2ω=0
Sep 2002
República de California
101101011111112 Posts |
Quote:
Quote:
Last fiddled with by ewmayer on 2005-01-18 at 17:06 |
||
|
|
|
|
|
#15 | |
|
Jan 2005
10112 Posts |
Quote:
$ cat sizeof.c #include <stdio.h> #define PR(x) printf("sizeof("#x")\t= %d\n", sizeof(x)) main() { PR(void *); PR(char); PR(short); PR(int); PR(long); PR(long long); PR(float); PR(double); PR(long double); } $ gcc -o sizeof-gcc sizeof.c $ sizeof-gcc sizeof(void *) = 4 sizeof(char) = 1 sizeof(short) = 2 sizeof(int) = 4 sizeof(long) = 4 sizeof(long long) = 8 sizeof(float) = 4 sizeof(double) = 8 sizeof(long double) = 12 $ cc -o sizeof-cc sizeof.c /* delete PR(long long); line */ $ sizeof-cc sizeof(void *) = 4 sizeof(char) = 1 sizeof(short) = 2 sizeof(int) = 4 sizeof(long) = 4 sizeof(float) = 4 sizeof(double) = 8 sizeof(long double) = 12 $ thus, in cc compiler long is 4 bytes. |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 128-bit OS'es and GIMPS? | ixfd64 | Software | 22 | 2011-10-31 22:23 |
| GIMPS on PS3 | flouran | Hardware | 202 | 2010-04-30 09:06 |
| GIMPS uses only 1 cpu | Unregistered | Information & Answers | 7 | 2009-01-10 20:01 |
| Why do you run GIMPS ? | Prime Monster | Lounge | 12 | 2003-11-25 19:04 |
| Yet another GIMPS FAQ | Prime Monster | Lounge | 9 | 2003-04-12 12:12 |