From bd49e696c432ed331e0950c3d977bc01f603f02e Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 15 Apr 2021 16:59:00 +0300 Subject: [PATCH] Minor change --- src/Functions/modulo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Functions/modulo.cpp b/src/Functions/modulo.cpp index fe215851bb6..6ac0c82bd3e 100644 --- a/src/Functions/modulo.cpp +++ b/src/Functions/modulo.cpp @@ -78,12 +78,11 @@ struct ModuloByConstantImpl if (b < 0) b = -b; - libdivide::divider divider(b); - /// Here we failed to make the SSE variant from libdivide give an advantage. if (b & (b - 1)) { + libdivide::divider divider(b); for (size_t i = 0; i < size; ++i) dst[i] = src[i] - (src[i] / divider) * b; /// NOTE: perhaps, the division semantics with the remainder of negative numbers is not preserved. }