pan class="new">hwork, *</span>ut;
    
    /* check arguments */
    *info = 0;
    if (m < 0) {
        *info = -1;
    } else if (n < 0) {
        *info = -2;
    } else if (ldda < max(1,m)) {
        *info = -4;
    }
    if (*info != 0) {
        magma_xerbla( __func__, -(*info) );
        return *info;
    }
    
    k = minmn = min(m,n);
    if (k == 0)
        return *info;
    
    nb = magma_get_zgeqrf_nb( m );
    
    <span class="new">// work  is m*nb for panel
    // hwork is n*nb
    // ut   