Calculation speed improvement

Changed division operation to a bit shift, when preallocating function
name.