mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-17 09:45:28 +03:00
prefix assume_aligned to avoid clash with std::assume_aligned in c++20
This commit is contained in:
@@ -254,7 +254,7 @@ static really_inline m256 loadu2x128(const void *ptr) {
|
||||
// aligned store
|
||||
static really_inline void store256(void *ptr, m256 a) {
|
||||
assert(ISALIGNED_N(ptr, alignof(m256)));
|
||||
ptr = assume_aligned(ptr, 16);
|
||||
ptr = vectorscan_assume_aligned(ptr, 16);
|
||||
*(m256 *)ptr = a;
|
||||
}
|
||||
|
||||
@@ -486,7 +486,7 @@ static really_inline m384 load384(const void *ptr) {
|
||||
// aligned store
|
||||
static really_inline void store384(void *ptr, m384 a) {
|
||||
assert(ISALIGNED_16(ptr));
|
||||
ptr = assume_aligned(ptr, 16);
|
||||
ptr = vectorscan_assume_aligned(ptr, 16);
|
||||
*(m384 *)ptr = a;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user