mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 06:40:57 +08:00
Added DISABLE_DISPATCH option [skip ci]
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#ifndef BITUTILS_H
|
#ifndef BITUTILS_H
|
||||||
#define BITUTILS_H
|
#define BITUTILS_H
|
||||||
|
|
||||||
|
#ifndef DISABLE_DISPATCH
|
||||||
/* Only enable for more recent compilers */
|
/* Only enable for more recent compilers */
|
||||||
/* TODO Move to better place */
|
/* TODO Move to better place */
|
||||||
#if defined(__x86_64__) && defined(__GNUC__) && __GNUC__ >= 8
|
#if defined(__x86_64__) && defined(__GNUC__) && __GNUC__ >= 8
|
||||||
@@ -10,6 +11,7 @@
|
|||||||
#elif defined(_M_AMD64) && defined(_MSC_VER) && _MSC_VER >= 1920
|
#elif defined(_M_AMD64) && defined(_MSC_VER) && _MSC_VER >= 1920
|
||||||
#define USE_DISPATCH
|
#define USE_DISPATCH
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* target_clones requires glibc */
|
/* target_clones requires glibc */
|
||||||
#if defined(USE_DISPATCH) && defined(__gnu_linux__)
|
#if defined(USE_DISPATCH) && defined(__gnu_linux__)
|
||||||
|
|||||||
Reference in New Issue
Block a user