mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Does not compile x86 code on not x86 platforms.
This commit is contained in:
parent
7e84931a2e
commit
e3d8a9a325
1 changed files with 3 additions and 0 deletions
3
raid.c
3
raid.c
|
|
@ -64,6 +64,8 @@ void raid5_int32r2(unsigned char** buffer, unsigned diskmax, unsigned size)
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
/*
|
||||
* Unrolled-by-2 MMX implementation
|
||||
*/
|
||||
|
|
@ -116,6 +118,7 @@ void raid5_sse2r2(unsigned char** buffer, unsigned diskmax, unsigned size)
|
|||
|
||||
asm volatile("sfence" : : : "memory");
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Repeats an 8 bit nibble to a full 32 bits value.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue