summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2018-01-14 19:50:45 +0300
committerSergey Vojtovich <svoj@mariadb.org>2018-01-14 20:50:45 +0400
commit72136ae75c69cee5230e7be286cf12663d3d15ef (patch)
treee9ac0ea03cefb7aace6a455e856157b0980ad4c4 /sql/item_sum.cc
parentfc65577873967ecbba93b75260cc54275f5900d2 (diff)
downloadmariadb-git-72136ae75c69cee5230e7be286cf12663d3d15ef.tar.gz
Compilation speed (#546)
Speed up compilation Standard C++ headers contribute a lot to compilation time. Avoid algorithm and sstream in frequently used headers.
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r--sql/item_sum.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index f5ea2a5df93..94569aa66c9 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -2257,7 +2257,7 @@ bool Item_sum_bit::remove_as_window(ulonglong value)
}
// Prevent overflow;
- num_values_added = std::min(num_values_added, num_values_added - 1);
+ num_values_added = MY_MIN(num_values_added, num_values_added - 1);
set_bits_from_counters();
return 0;
}
@@ -2270,7 +2270,7 @@ bool Item_sum_bit::add_as_window(ulonglong value)
bit_counters[i]+= (value & (1ULL << i)) ? 1 : 0;
}
// Prevent overflow;
- num_values_added = std::max(num_values_added, num_values_added + 1);
+ num_values_added = MY_MAX(num_values_added, num_values_added + 1);
set_bits_from_counters();
return 0;
}