Looking to left shift as fast as possible a 32 bit variable by n times.

Obviously the first thought is by a PBP for-next loop n times. Slow.

The second thought in Assembly loop. Much faster.

Any other idea? Something like XOR etc?

The 32 bit variable start always as 1 and this maybe can help finding a fast alternative to left shift the number.

Thanks,
Ioannis