mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 05:10:16 -05:00
Align critical loops to 64 bytes using __align_loops attribute
This commit is contained in:
parent
91761768a0
commit
ec71f519b0
6 changed files with 25 additions and 0 deletions
|
|
@ -453,6 +453,7 @@ uint32_t crc32c_gen(uint32_t crc, const unsigned char* ptr, size_t size)
|
|||
}
|
||||
|
||||
#if CONFIG_X86
|
||||
__aligned_loops(64)
|
||||
uint32_t crc32c_x86(uint32_t crc, const unsigned char* ptr, size_t size)
|
||||
{
|
||||
crc ^= CRC_IV;
|
||||
|
|
@ -466,6 +467,7 @@ uint32_t crc32c_x86(uint32_t crc, const unsigned char* ptr, size_t size)
|
|||
#endif
|
||||
|
||||
#if CONFIG_ARM_CRC
|
||||
__aligned_loops(64)
|
||||
uint32_t crc32c_arm64(uint32_t crc, const unsigned char* ptr, size_t size)
|
||||
{
|
||||
crc ^= CRC_IV;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue