Lines Matching refs:Shift
30 /* This function caclulates the "Shift" required to provide the */
34 /* MaxGain of 2.5, Shift = 2, Current=1.9/4=0.475, Target=2.5/4=0.625 */
35 /* Therefore integer gain of 4 is provided by Left Shift of 2 and */
52 LVM_INT16 Shift=0;
59 while(MaxGain>0){ // Update Shift required to provide integer gain
60 Shift++;
63 pInstance->Target=TargetGain<<(16-Shift); // Update fractional gain Target
64 pInstance->Current=CurrentGain<<(16-Shift); // Update fractional gain Current
65 pInstance->Shift=Shift; // Update Shift