code: public static int pitch_ol(           /* output: open-loop pitch lag */
  	 float signal[],int signals,        /* input : signal to compute pitch  */
  	                        /*         s[-PIT_MAX : l_frame-1]  */
  	   int pit_min,         /* input : minimum pitch lag                          */
  	   int pit_max,         /* input : maximum pitch lag                          */
  	   int l_frame          /* input : error minimization window */
  	)
  	{
  	    FloatPointer  max1 = new FloatPointer(), max2 =new  FloatPointer(), max3 = new FloatPointer();
  	    int    p_max1, p_max2, p_max3;
  
  	   /*--------------------------------------------------------------------*
  	    *  The pitch lag search is divided in three sections.                *
  	    *  Each section cannot have a pitch multiple.                        *
  	    *  We find a maximum for each section.                               *
  	    *  We compare the maxima of each section by favoring small lag.      *
  	    *                                                                    *
  	    *  First section:  lag delay = PIT_MAX to 80                         *
  	    *  Second section: lag delay = 79 to 40                              *
  	    *  Third section:  lag delay = 39 to 20                              *
  	    *--------------------------------------------------------------------*/
  
  	    p_max1 = lag_max(signal, signals, l_frame, pit_max, 80 , max1);
  	    p_max2 = lag_max(signal, signals, l_frame, 79     , 40 , max2);
  	    p_max3 = lag_max(signal, signals, l_frame, 39     , pit_min , max3);
  
  	   /*--------------------------------------------------------------------*
  	    * Compare the 3 sections maxima, and favor small lag.                *
  	    *--------------------------------------------------------------------*/
  
  	    if ( max1.value * LD8KConstants.THRESHPIT < max2.value ) {
  	        max1.value = max2.value;
  	        p_max1 = p_max2;
  	    }
  
  	    if ( max1.value * LD8KConstants.THRESHPIT < max3.value )  p_max1 = p_max3;
  
  	    return (p_max1);
  	}
docs: /*----------------------------------------------------------------------------
  pitch_ol -  compute the open loop pitch lag
  ----------------------------------------------------------------------------