sc/inc/kahan.hxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
New commits: commit c25eaf109a64ae90473b09134540832dafa936c3 Author: Eike Rathke <er...@redhat.com> AuthorDate: Sun Oct 15 23:51:04 2023 +0200 Commit: Eike Rathke <er...@redhat.com> CommitDate: Mon Oct 16 10:54:04 2023 +0200 Factor out an occurrence of sumNeumaierNormal() Change-Id: I693f78be36005cd1fc387a2878112de60bd24905 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158012 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins diff --git a/sc/inc/kahan.hxx b/sc/inc/kahan.hxx index 03b05c25aa6b..c2560635fbdf 100644 --- a/sc/inc/kahan.hxx +++ b/sc/inc/kahan.hxx @@ -91,12 +91,7 @@ public: return; } - double t = m_fSum + m_fMem; - if (std::abs(m_fSum) >= std::abs(m_fMem)) - m_fError += (m_fSum - t) + m_fMem; - else - m_fError += (m_fMem - t) + m_fSum; - m_fSum = t; + sumNeumaierNormal(m_fSum, m_fError, m_fMem); m_fMem = x_i; }