// nbReducedCoordinates = smallest power of 2 which is above nbValues
uint32_t nbReducedCoordinates = (uint32_t)ceil(log2(nbValues));
// nbReducedCoordinates = smallest power of 2 which is above nbValues
uint32_t nbReducedCoordinates = (uint32_t)ceil(log2(nbValues));