I require two VB.Net functions to perform arithmetic right and left shift operations on Integer values. These functions correspond to the C#, JScript or Java shift operators << and >>. The function signatures will be as follows: Function ArithmeticShiftLeft ( _ Byval value as Integer, _ Byval shift as Integer) As Integer Function ArithmeticShiftRight ( _ Byval value as Integer, _ Byval shift as Integer) As Integer In each case, the "value" argument contains the value to be shifted and the "shift" argument specifies the number of bit positions to shift left or right. The completed functions will be tested against their equivalent C# or operators, using positive and negative values in the range 0 to 0x7FFFFFFF and shift specifiers in the range 0 to 31.
1) Complete and fully-functional source code for the two specified functions. 2) Complete ownership and distribution copyrights to all work purchased.