Home | History | Annotate | Download | only in src

Lines Matching defs:Shift

27 /*  This function updates the private instance parameters: Shift,Target,*/
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 */
57 LVM_INT32 Shift=0;
61 CurrentGain=pInstance->Current>>(16-pInstance->Shift); // CurrentGain in Q16.15 format
66 while(MaxGain>0){ // Update Shift required to provide integer gain
67 Shift++;
70 pInstance->Target=TargetGain<<(16-Shift); // Update fractional gain Target
71 pInstance->Current=CurrentGain<<(16-Shift); // Update fractional gain Current
72 pInstance->Shift=Shift; // Update Shift