git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fixes for Power64
[tridge/junkcode.git]
/
double.c
1
#include <math.h>
2
3
main()
4
{
5
int i;
6
double x;
7
long long y;
8
9
y = x = 1;
10
11
for (i=0;i<64;i++) {
12
x = (x * 2.0);
13
x++;
14
y = (y * 2.0);
15
y++;
16
printf("%d %.0f %lld %llx %g %g\n", i, x, y, y, x/(10.0*1000*1000*60*60*24*365), log10(x));
17
}
18
}