mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Update libdivide to v3.0 (#10169)
This commit is contained in:
parent
68fa04054a
commit
67235834b3
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,9 @@
|
||||
#include <Functions/FunctionFactory.h>
|
||||
#include <Functions/FunctionBinaryArithmetic.h>
|
||||
|
||||
#ifdef __SSE2__
|
||||
#define LIBDIVIDE_USE_SSE2 1
|
||||
#if defined(__SSE2__)
|
||||
# define LIBDIVIDE_SSE2 1
|
||||
# define LIBDIVIDE_VECTOR_TYPE
|
||||
#endif
|
||||
|
||||
#include <libdivide.h>
|
||||
@ -45,7 +46,7 @@ struct DivideIntegralByConstantImpl
|
||||
|
||||
const A * a_end = a_pos + size;
|
||||
|
||||
#ifdef __SSE2__
|
||||
#if defined(__SSE2__)
|
||||
static constexpr size_t values_per_sse_register = 16 / sizeof(A);
|
||||
const A * a_end_sse = a_pos + size / values_per_sse_register * values_per_sse_register;
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include <Functions/FunctionFactory.h>
|
||||
#include <Functions/FunctionBinaryArithmetic.h>
|
||||
|
||||
#ifdef __SSE2__
|
||||
#define LIBDIVIDE_USE_SSE2 1
|
||||
#if defined(__SSE2__)
|
||||
# define LIBDIVIDE_SSE2 1
|
||||
#endif
|
||||
|
||||
#include <libdivide.h>
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
#ifdef __SSE2__
|
||||
#define LIBDIVIDE_USE_SSE2 1
|
||||
#if defined(__SSE2__)
|
||||
# define LIBDIVIDE_SSE2 1
|
||||
#endif
|
||||
|
||||
#include <libdivide.h>
|
||||
|
Loading…
Reference in New Issue
Block a user