L)*(2*N+M) + 2*N );
              LDW8 = NSMP*L + (N+L)*(N+M) + 3*N+M+L,  if M &gt; 0;
              LDW8 = NSMP*L + (N+L)*N + 2*N+L,        if M = 0;
          LW4 = MAX( 5, NSMP*L + 2*NX + NSMP*L*( BSN + LTHS ) +
                        MAX( L1 + NX, NSMP*L + L1, L2 ) ),
               L0 = MAX( N*(N+L), N+M+L ),    if M &gt; 0;
               L0 = MAX( N*(N+L), L ),        if M = 0;
               L1 = NSMP*L + MAX( 2*NN, (N+L)*(N+M) + 2*N + L0);
               L2 = NX*NX,          if ALG = 'D' and STOR 