Displaying 2 results from an estimated 2 matches for "inc4".
Did you mean:
inc
2015 Apr 24
5
[LLVMdev] Loss of precision with very large branch weights
...in
- entry: float = 1.0, int = 8
- for.cond: float = 500001.5, int = 4000011
- for.body: float = 500000.5, int = 4000003
- for.inc: float = 500000.5, int = 4000003
- for.end: float = 1.0, int = 8
- for.cond1: float = 250001.5, int = 2000011
- for.body3: float = 250000.5, int = 2000003
- for.inc4: float = 250000.5, int = 2000003
- for.end6: float = 1.0, int = 8
But if I manually modify the frequencies of both to get close to MAX_INT32,
the ratios between the frequencies do not reflect reality. For example, if
I change branch_weights in both loops to be 4,294,967,295 and 2,147,483,647
$...
2013 Aug 27
1
Error in simulation. NAN
...j++)
{
start_k[j] = *(start_k_P+j) ;
}
/*****************************************
Varie ed eventuali II
*****************************************/
const int incJ = J;
const int incN = N;
const int nn_j = n_j*n_j;
const int inc4 = 4;
const int inc2 = 2;
double app1_1, app1_2, app1_3, app1_4;
double appn_j_1[n_j];
double app_uno_n_j[n_j];
for(i=0;i<n_j;i++)
{
app_uno_n_j[i] = 1;
}
int nSamples_save = iter_2;
// generatore random
GetRNGstate();
// /***...