Is logical shift left by word size undefined behavior in C#?
I’m writing .NET 8 code to generate bit masks of various sizes. These masks are generated on the “hot path” in my code, so performance is important. I have the following method:
I’m writing .NET 8 code to generate bit masks of various sizes. These masks are generated on the “hot path” in my code, so performance is important. I have the following method: