Update libdivide to v3.0 (#10169)

This commit is contained in:
Ivan 2020-04-11 14:14:01 +03:00 committed by GitHub
parent 68fa04054a
commit 67235834b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1732 additions and 1090 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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;

View File

@ -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>

View File

@ -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>