forked from personal/squiggle.c
run formatting pass
This commit is contained in:
parent
d9e2ca04c5
commit
4662539c60
|
@ -12,8 +12,16 @@ int main()
|
||||||
double p_b = 0.5;
|
double p_b = 0.5;
|
||||||
double p_c = p_a * p_b;
|
double p_c = p_a * p_b;
|
||||||
|
|
||||||
double sample_0(uint64_t * seed) { UNUSED(seed); return 0; }
|
double sample_0(uint64_t * seed)
|
||||||
double sample_1(uint64_t * seed) { UNUSED(seed); return 1; }
|
{
|
||||||
|
UNUSED(seed);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
double sample_1(uint64_t * seed)
|
||||||
|
{
|
||||||
|
UNUSED(seed);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
double sample_few(uint64_t * seed) { return sample_to(1, 3, seed); }
|
double sample_few(uint64_t * seed) { return sample_to(1, 3, seed); }
|
||||||
double sample_many(uint64_t * seed) { return sample_to(2, 10, seed); }
|
double sample_many(uint64_t * seed) { return sample_to(2, 10, seed); }
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,16 @@ int main()
|
||||||
int n_dists = 4;
|
int n_dists = 4;
|
||||||
|
|
||||||
// These are nested functions. They will not compile without gcc.
|
// These are nested functions. They will not compile without gcc.
|
||||||
double sample_0(uint64_t * seed) { UNUSED(seed); return 0; }
|
double sample_0(uint64_t * seed)
|
||||||
double sample_1(uint64_t * seed) { UNUSED(seed); return 1; }
|
{
|
||||||
|
UNUSED(seed);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
double sample_1(uint64_t * seed)
|
||||||
|
{
|
||||||
|
UNUSED(seed);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
double sample_few(uint64_t * seed) { return sample_to(1, 3, seed); }
|
double sample_few(uint64_t * seed) { return sample_to(1, 3, seed); }
|
||||||
double sample_many(uint64_t * seed) { return sample_to(2, 10, seed); }
|
double sample_many(uint64_t * seed) { return sample_to(2, 10, seed); }
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,16 @@ int main()
|
||||||
double p_b = 0.5;
|
double p_b = 0.5;
|
||||||
double p_c = p_a * p_b;
|
double p_c = p_a * p_b;
|
||||||
|
|
||||||
double sample_0(uint64_t * seed) { UNUSED(seed); return 0; }
|
double sample_0(uint64_t * seed)
|
||||||
double sample_1(uint64_t * seed) { UNUSED(seed); return 1; }
|
{
|
||||||
|
UNUSED(seed);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
double sample_1(uint64_t * seed)
|
||||||
|
{
|
||||||
|
UNUSED(seed);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
double sample_few(uint64_t * seed) { return sample_to(1, 3, seed); }
|
double sample_few(uint64_t * seed) { return sample_to(1, 3, seed); }
|
||||||
double sample_many(uint64_t * seed) { return sample_to(2, 10, seed); }
|
double sample_many(uint64_t * seed) { return sample_to(2, 10, seed); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user