mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Added __restrict in FunctionsComparison
This commit is contained in:
parent
2001bcbf6a
commit
81602fd249
@ -78,9 +78,9 @@ struct NumComparisonImpl
|
||||
*/
|
||||
|
||||
size_t size = a.size();
|
||||
const A * a_pos = a.data();
|
||||
const B * b_pos = b.data();
|
||||
UInt8 * c_pos = c.data();
|
||||
const A * __restrict a_pos = a.data();
|
||||
const B * __restrict b_pos = b.data();
|
||||
UInt8 * __restrict c_pos = c.data();
|
||||
const A * a_end = a_pos + size;
|
||||
|
||||
while (a_pos < a_end)
|
||||
@ -95,8 +95,8 @@ struct NumComparisonImpl
|
||||
static void NO_INLINE vector_constant(const PaddedPODArray<A> & a, B b, PaddedPODArray<UInt8> & c)
|
||||
{
|
||||
size_t size = a.size();
|
||||
const A * a_pos = a.data();
|
||||
UInt8 * c_pos = c.data();
|
||||
const A * __restrict a_pos = a.data();
|
||||
UInt8 * __restrict c_pos = c.data();
|
||||
const A * a_end = a_pos + size;
|
||||
|
||||
while (a_pos < a_end)
|
||||
|
Loading…
Reference in New Issue
Block a user