Mmmh I see. An idea would be to create a routine in SQLScript to convert the decimal number to a string type representing binary, then applying the rotation left shift with string functions (substring, concatenation) and finally converting back to decimal.
It's a not a simple algorithm if you convert decimal directly to binary, but it will be much easier if you first convert the decimal number to hexadecimal and then hexadecimal to binary. And apply a similar technique for the reverse conversion binary to decimal.