N+L ) )
              LDW2 &gt;= 0,                                  if M = 0;
              LDW2 &gt;= L*NOBR*N + M*NOBR*(N+L)*(M*(N+L)+1) +
                      MAX( (N+L)**2, 4*M*(N+L)+1 ),       if M &gt; 0;
              LDW3 = NSMP*L*(N+1) + 2*N + MAX( 2*N*N, 4*N ),
              LDW4 = N*(N+1) + 2*N +
                     MAX( N*L*(N+1) + 2*N*N + L*N, 4*N );
              LDW5 = NSMP*L + (N+L)*(N+M) + 3*N+M+L;
              LDW6 = NSMP*L + (N+L)*(N+M) + N +
                     MAX(1, N*N*L + N*L + 