mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 04:17:02 -05:00
Fix inline asm memory operand sizes for array-backed constants
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
This commit is contained in:
parent
608e78f3a6
commit
b070cbb894
7 changed files with 330 additions and 330 deletions
16
raid/sse2.c
16
raid/sse2.c
|
|
@ -162,7 +162,7 @@ static __always_inline void raid_gen2_sse2_gen(int nd, size_t size, void **vv, i
|
|||
|
||||
raid_sse_begin();
|
||||
|
||||
asm volatile ("movdqa %0,%%xmm7" : : "m" (gfconst16.poly[0]));
|
||||
asm volatile ("movdqa %0,%%xmm7" : : "m" (gfconst16.poly));
|
||||
|
||||
for (i = 0; i < size; i += 32) {
|
||||
asm volatile ("movdqa %0,%%xmm0" : : "m" (v[l][i]));
|
||||
|
|
@ -247,7 +247,7 @@ static __always_inline void raid_gen2_sse2ext_gen(int nd, size_t size, void **vv
|
|||
|
||||
raid_sse_begin();
|
||||
|
||||
asm volatile ("movdqa %0,%%xmm15" : : "m" (gfconst16.poly[0]));
|
||||
asm volatile ("movdqa %0,%%xmm15" : : "m" (gfconst16.poly));
|
||||
|
||||
for (i = 0; i < size; i += 64) {
|
||||
asm volatile ("movdqa %0,%%xmm0" : : "m" (v[l][i]));
|
||||
|
|
@ -486,9 +486,9 @@ static __always_inline void raid_genz_sse2_gen(int nd, size_t size, void **vv, i
|
|||
|
||||
raid_sse_begin();
|
||||
|
||||
asm volatile ("movdqa %0,%%xmm7" : : "m" (gfconst16.poly[0]));
|
||||
asm volatile ("movdqa %0,%%xmm3" : : "m" (gfconst16.half[0]));
|
||||
asm volatile ("movdqa %0,%%xmm6" : : "m" (gfconst16.low7[0]));
|
||||
asm volatile ("movdqa %0,%%xmm7" : : "m" (gfconst16.poly));
|
||||
asm volatile ("movdqa %0,%%xmm3" : : "m" (gfconst16.half));
|
||||
asm volatile ("movdqa %0,%%xmm6" : : "m" (gfconst16.low7));
|
||||
|
||||
for (i = 0; i < size; i += 16) {
|
||||
asm volatile ("movdqa %0,%%xmm0" : : "m" (v[l][i]));
|
||||
|
|
@ -551,9 +551,9 @@ static __always_inline void raid_genz_sse2ext_gen(int nd, size_t size, void **vv
|
|||
|
||||
raid_sse_begin();
|
||||
|
||||
asm volatile ("movdqa %0,%%xmm7" : : "m" (gfconst16.poly[0]));
|
||||
asm volatile ("movdqa %0,%%xmm3" : : "m" (gfconst16.half[0]));
|
||||
asm volatile ("movdqa %0,%%xmm11" : : "m" (gfconst16.low7[0]));
|
||||
asm volatile ("movdqa %0,%%xmm7" : : "m" (gfconst16.poly));
|
||||
asm volatile ("movdqa %0,%%xmm3" : : "m" (gfconst16.half));
|
||||
asm volatile ("movdqa %0,%%xmm11" : : "m" (gfconst16.low7));
|
||||
|
||||
for (i = 0; i < size; i += 32) {
|
||||
asm volatile ("movdqa %0,%%xmm0" : : "m" (v[l][i]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue