From e3d8a9a3259921b1fb2950ea5535ad6141504f2e Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Tue, 3 May 2011 19:00:49 +0200 Subject: [PATCH] Does not compile x86 code on not x86 platforms. --- raid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/raid.c b/raid.c index eb02daf3..5dcd76ca 100644 --- a/raid.c +++ b/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.