Does anybody have any routines for emulating a left-shift on a number as per the C "<<" operator.

I think I have successfully replicated the right-shift but do not seem to be abe to get the left shift working properly.