>>1
Depends on your compiler and C library, and how you do it. Sometimes it's not faster. But in the cases that it is, it'll be a combination of setting memory using the machine word size for maximum efficiency, and optimized assembly language routines.
e.g. on x86 using
rep stosd /
stosb rather than looping a
mov