Home | History | Annotate | Download | only in src

Lines Matching defs: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 */
64 LVM_INT16 Shift=0;
71 while(MaxGain>0){ // Update Shift required to provide integer gain
72 Shift++;
75 pInstance->Target=TargetGain<<(16-Shift); // Update fractional gain Target
76 pInstance->Current=CurrentGain<<(16-Shift); // Update fractional gain Current
77 pInstance->Shift=Shift; // Update Shift