using System.Numerics;
namespace WinFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
uint value = 300;
uint result = BitOperations.RoundUpToPowerOf2(value);
MessageBox.Show(result.ToString());
}
}
}
/*
run:
512
*/