0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

Merge 5dae2112af107b173d4fe8f5b5c23886ee9dcc34 into a494ce1c64a2637719a5c1339abf19ec7c48089c

This commit is contained in:
glepnir 2025-07-04 14:55:42 +08:00 committed by GitHub
commit 8bfe8d8948
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1122 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -544,6 +544,31 @@ typedef long long vimlong_T;
# include <sodium.h>
#endif
// Platform detection
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)
#define PLATFORM_X86 1
#elif defined(__ARM_NEON) || defined(__ARM_NEON__)
#define PLATFORM_ARM_NEON 1
#endif
#if defined(PLATFORM_X86)
# include <emmintrin.h> /* SSE2 */
#elif defined(PLATFORM_ARM_NEON)
# include <arm_neon.h>
#endif
/* Compatibility macro for alignas */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
# include <stdalign.h>
# define VIM_ALIGNAS(x) alignas(x)
#elif defined(__GNUC__) || defined(__clang__)
# define VIM_ALIGNAS(x) __attribute__((aligned(x)))
#elif defined(_MSC_VER)
# define VIM_ALIGNAS(x) __declspec(align(x))
#else
# define VIM_ALIGNAS(x)
#endif
// ================ end of the header file puzzle ===============
/*