*
* $Id$
*
* $Log$
* Revision 1.1  1996/02/15 17:51:26  mclareni
* Initial revision
*
*
          IDENT VMAX
*
* CERN PROGLIB# F121    VMAX            .VERSION KERNCDC  0.1   750820
*
*        Y = VMAX(A,N)
*        SETS
*        Y = MAX(A(I), I=1,N)
*
          ENTRY VMAX
          VFD   24/4HVMAX,36/VMAX
 VMAX     DATA  0
          SB5   -1
          SA3   A1-B5
          MX6   0
          SA2   X3
          SB3   X2+B5
          SA5   X1+B3
          GT    B0,B3,VMAX
          BX6   X5
          EQ    B0,B3,VMAX
          SB3   B3+B5
          SA4   X1+B3
 LOOP     FX5   X4-X6
          SB3   B3+B5
          NG    X5,ENDLP
          BX6   X4
 ENDLP    SA4   X1+B3
          GE    B3,B0,LOOP
          EQ    B0,B0,VMAX
          END
#ifdef CERNLIB_TCGEN_VMAX
#undef CERNLIB_TCGEN_VMAX
#endif
