From 5af4e4aa0aaaaf107235dc0a45ae7d750b2c48d0 Mon Sep 17 00:00:00 2001 From: Greg Tucker Date: Tue, 27 Feb 2018 17:26:13 -0700 Subject: [PATCH] raid: Change example to use multi-binary function Change-Id: I9a3edf4ad0b9b8afad6d0545bfc7436b4c8fdfe0 Signed-off-by: Greg Tucker --- raid/xor_example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raid/xor_example.c b/raid/xor_example.c index fb2f999..8289776 100644 --- a/raid/xor_example.c +++ b/raid/xor_example.c @@ -55,15 +55,15 @@ int main(int argc, char *argv[]) ((char *)buffs[i])[j] = rand(); printf("Generate xor parity\n"); - xor_gen_sse(TEST_SOURCES + 1, TEST_LEN, buffs); + xor_gen(TEST_SOURCES + 1, TEST_LEN, buffs); printf("Check parity: "); - should_pass = xor_check_sse(TEST_SOURCES + 1, TEST_LEN, buffs); + should_pass = xor_check(TEST_SOURCES + 1, TEST_LEN, buffs); printf("%s\n", should_pass == 0 ? "Pass" : "Fail"); printf("Find corruption: "); ((char *)buffs[TEST_SOURCES / 2])[TEST_LEN / 2] ^= 1; // flip one bit - should_fail = xor_check_sse(TEST_SOURCES + 1, TEST_LEN, buffs); //recheck + should_fail = xor_check(TEST_SOURCES + 1, TEST_LEN, buffs); //recheck printf("%s\n", should_fail != 0 ? "Pass" : "Fail"); return 0;