Searched refs:is_power_of_2 (Results 1 – 1 of 1) sorted by relevance
331 const auto is_power_of_2 = [](std::size_t num) { return (num & (num - 1)) == 0; }; in PetscDeviceAllocate_Private() local334 …PetscCheck(is_power_of_2(alignment), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Requested alignme… in PetscDeviceAllocate_Private()