9 #define BITS_PER_DIMENSION 21
10 #define PEANOCELLS (((peano_t)1)<<(3*BITS_PER_DIMENSION))
18 const double spos[3] = {Pos[0] + BoxSize/2000, Pos[1] + BoxSize/2000, Pos[2] + BoxSize/2000};
22 #define DomainFac(len) ( 1.0 / (len) * (((peano_t) 1) << (BITS_PER_DIMENSION)))
24 void mysort_peano(
void *b,
size_t n,
size_t s,
int (*cmp) (
const void *,
const void *));
peano_t peano_hilbert_key(int x, int y, int z, int bits)
void mysort_peano(void *b, size_t n, size_t s, int(*cmp)(const void *, const void *))
static peano_t PEANO(double *Pos, double BoxSize)
void init_peano_map(void)
#define BITS_PER_DIMENSION