예제 #1
0
파일: pcu_coll.c 프로젝트: GKosiba/core
static bool scan_up_end_bit(int bit)
{
  return bit == (1 << pcu_floor_log2(pcu_mpi_size()));
}
예제 #2
0
파일: pcu_coll.c 프로젝트: GKosiba/core
static int scan_down_begin_bit(void)
{
  return 1 << pcu_floor_log2(pcu_mpi_size());
}
예제 #3
0
파일: pcu_common.c 프로젝트: diamog/core
int pcu_ceil_log2(int n)
{
  int r = pcu_floor_log2(n);
  if ((1 << r)<n) ++r;
  return r;
}