mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Add compiler memory barriers to NEON and NEON32 end helpers
This commit is contained in:
parent
fd65dbd9ea
commit
c192fe8982
1 changed files with 12 additions and 0 deletions
|
|
@ -520,6 +520,12 @@ static __always_inline void raid_neon_begin(void)
|
|||
|
||||
static __always_inline void raid_neon_end(void)
|
||||
{
|
||||
/*
|
||||
* Compiler memory barrier to ensure memory operations are not
|
||||
* reordered across the end of SIMD operations.
|
||||
*/
|
||||
asm volatile ("" : : : "memory");
|
||||
|
||||
/*
|
||||
* Clobbers registers used in NEON asm operations.
|
||||
*
|
||||
|
|
@ -551,6 +557,12 @@ static __always_inline void raid_neon32_begin(void)
|
|||
|
||||
static __always_inline void raid_neon32_end(void)
|
||||
{
|
||||
/*
|
||||
* Compiler memory barrier to ensure memory operations are not
|
||||
* reordered across the end of SIMD operations.
|
||||
*/
|
||||
asm volatile ("" : : : "memory");
|
||||
|
||||
/*
|
||||
* Clobbers registers used in AArch32 NEON asm operations.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue