In reply to szy0014:
This uses the same concept…
constraint c_numb{
numb != 0; //Correction!
(numb & (numb - 1)) == 0;
}
In reply to szy0014:
This uses the same concept…
constraint c_numb{
numb != 0; //Correction!
(numb & (numb - 1)) == 0;
}