mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:58:21 +08:00
mdbx-doc: добавлено примечание к опции MDBX_HAVE_BUILTIN_CPU_SUPPORTS
.
This commit is contained in:
parent
2ea9fbe51b
commit
29d12f1fc3
@ -6786,7 +6786,7 @@ __hot static pgno_t *scan4seq_neon(pgno_t *range, const size_t len,
|
|||||||
#ifdef scan4seq_impl
|
#ifdef scan4seq_impl
|
||||||
/* The scan4seq_impl() is the best or no alternatives */
|
/* The scan4seq_impl() is the best or no alternatives */
|
||||||
#elif !MDBX_HAVE_BUILTIN_CPU_SUPPORTS
|
#elif !MDBX_HAVE_BUILTIN_CPU_SUPPORTS
|
||||||
/* The scan4seq_default() will be used since no cpu-features detection support
|
/* The scan4seq_default() will be used since no cpu-features detection support
|
||||||
* from compiler. Please don't ask to implement cpuid-based detection and don't
|
* from compiler. Please don't ask to implement cpuid-based detection and don't
|
||||||
* make such PRs. */
|
* make such PRs. */
|
||||||
#define scan4seq_impl scan4seq_default
|
#define scan4seq_impl scan4seq_default
|
||||||
|
@ -220,7 +220,11 @@
|
|||||||
#endif /* MDBX_HAVE_C11ATOMICS */
|
#endif /* MDBX_HAVE_C11ATOMICS */
|
||||||
|
|
||||||
/** If defined then enables use the GCC's `__builtin_cpu_supports()`
|
/** If defined then enables use the GCC's `__builtin_cpu_supports()`
|
||||||
* for runtime dispatching depending on the CPU's capabilities. */
|
* for runtime dispatching depending on the CPU's capabilities.
|
||||||
|
* \note Defining `MDBX_HAVE_BUILTIN_CPU_SUPPORTS` to `0` should avoided unless
|
||||||
|
* build for particular single-target platform, since on AMD64/x86 this disables
|
||||||
|
* dynamic choice (at runtime) of SSE2 / AVX2 / AVX512 instructions
|
||||||
|
* with fallback to non-accelerated baseline code. */
|
||||||
#ifndef MDBX_HAVE_BUILTIN_CPU_SUPPORTS
|
#ifndef MDBX_HAVE_BUILTIN_CPU_SUPPORTS
|
||||||
#if defined(__APPLE__) || defined(BIONIC)
|
#if defined(__APPLE__) || defined(BIONIC)
|
||||||
/* Never use any modern features on Apple's or Google's OSes
|
/* Never use any modern features on Apple's or Google's OSes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user