You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-4524 Resolve build error on aarch64 caused by x86 asm instructions
On aarch64, just use memcpy, don't use asm instructions to optimize it. Because if gcc uses NEON extensions moving 16 bytes with memcpy, it might be wise to just use memcpy instead
This commit is contained in:
@ -27,7 +27,20 @@
|
||||
#include "mcs_float128.h"
|
||||
|
||||
// Inline asm has three argument lists: output, input and clobber list
|
||||
#if defined(__GNUC__) && (__GNUC___ > 7)
|
||||
#ifdef __aarch64__
|
||||
#define MACRO_VALUE_PTR_128(dst, \
|
||||
dst_restrictions, \
|
||||
src, \
|
||||
src_restrictions, \
|
||||
clobb) \
|
||||
::memcpy((dst), &(src), sizeof(int128_t));
|
||||
#define MACRO_PTR_PTR_128(dst, \
|
||||
dst_restrictions, \
|
||||
src, \
|
||||
src_restrictions, \
|
||||
clobb) \
|
||||
::memcpy((dst), (src), sizeof(int128_t));
|
||||
#elif defined(__GNUC__) && (__GNUC___ > 7)
|
||||
#define MACRO_VALUE_PTR_128(dst, \
|
||||
dst_restrictions, \
|
||||
src, \
|
||||
|
Reference in New Issue
Block a user