Browse Subversion Repository
Diff of /branches/mty-makai/mty.c
Parent Directory
| Revision Log
| Patch
| 760 |
{ |
{ |
| 761 |
int i; |
int i; |
| 762 |
int mincnt; |
int mincnt; |
| 763 |
|
int nblk_hit, nblk_total; |
| 764 |
signed char *code = NULL; |
signed char *code = NULL; |
| 765 |
FILE *ofp; |
FILE *ofp; |
| 766 |
FILE *sfp; /* scoreboard */ |
FILE *sfp; /* scoreboard */ |
| 848 |
ts[i].t = ts[i].c = 0; |
ts[i].t = ts[i].c = 0; |
| 849 |
|
|
| 850 |
mincnt = 0x7FFFFFFF; |
mincnt = 0x7FFFFFFF; |
| 851 |
|
nblk_hit = nblk_total = 0; |
| 852 |
n_iter = 0; |
n_iter = 0; |
| 853 |
cr = 0; |
cr = 0; |
| 854 |
/* 探索ループだぞっと */ |
/* 探索ループだぞっと */ |
| 887 |
{ |
{ |
| 888 |
ALU_T t; |
ALU_T t; |
| 889 |
if (!(kk & 1)) |
if (!(kk & 1)) |
| 890 |
xhash_loaded = 0; |
nblk_total++, xhash_loaded = 0; |
| 891 |
|
|
| 892 |
t = param64.t[31].a[kk]; |
t = param64.t[31].a[kk]; |
| 893 |
if (!t) |
if (!t) |
| 905 |
/* 転置 */ |
/* 転置 */ |
| 906 |
if (!xhash_loaded) |
if (!xhash_loaded) |
| 907 |
{ |
{ |
| 908 |
|
nblk_hit++; |
| 909 |
CALL_TR64(¶m64.lr[0][0].q[kk >> 1], xhash); /* XXX x64 ではダメ */ |
CALL_TR64(¶m64.lr[0][0].q[kk >> 1], xhash); /* XXX x64 ではダメ */ |
| 910 |
xhash_loaded = 1; |
xhash_loaded = 1; |
| 911 |
} |
} |
| 960 |
if (ts[N_TS - 1].c) |
if (ts[N_TS - 1].c) |
| 961 |
{ |
{ |
| 962 |
int a = (100 << N_STRIDE) * (n_iter - ts[N_TS - 1].c) / (t - ts[N_TS - 1].t); |
int a = (100 << N_STRIDE) * (n_iter - ts[N_TS - 1].c) / (t - ts[N_TS - 1].t); |
| 963 |
|
#if DEBUG>=1 |
| 964 |
|
fprintf(stderr, |
| 965 |
|
"%5d/%5d(%3d%%)", |
| 966 |
|
nblk_hit, nblk_total, 100 * nblk_hit / nblk_total); |
| 967 |
|
nblk_hit = nblk_total = 0; |
| 968 |
|
#endif |
| 969 |
fprintf(stderr, |
fprintf(stderr, |
| 970 |
"%8d.%03d(ktrips/sec)\r", |
"%8d.%03d(ktrips/sec)\r", |
| 971 |
a / 1000, |
a / 1000, |
|
|
Legend:
| Removed from v.74 |
|
| changed lines |
| |
Added in v.77 |
|
|
| |