Update contrib.
1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 #include <liboil/liboil.h>
23 #include <liboil/liboilfunction.h>
27 #define LOG_FILE "c:\\logs\\testsuite_rowcoladd8x8_log.txt"
28 #include "std_log_result.h"
29 #define LOG_FILENAME_LINE __FILE__, __LINE__
33 void create_xml(int result)
38 testResultXml("testsuite_rowcoladd8x8");
42 void test_colsad8x8_u8()
44 uint8_t arr1[MAX_SIZE],arr2[MAX_SIZE];
45 uint32_t res[RES_SIZE]={0}, check[RES_SIZE]={30};
48 for(i=0;i<MAX_SIZE;i++)
53 oil_colsad8x8_u8(res,arr1,3,arr2,2);
57 std_log(LOG_FILENAME_LINE,"oil_colsad8x8_u8 successful, res = %d", res[0]);
62 std_log(LOG_FILENAME_LINE,"oil_colsad8x8_u8 unsuccessful,Expected =%d,Obtained =%d",check[0],res[0]);
67 void test_rowsad8x8_u8()
69 uint8_t arr1[MAX_SIZE],arr2[MAX_SIZE];
70 uint32_t res[RES_SIZE]={0}, check[RES_SIZE]={12};
73 for(i=0;i<MAX_SIZE;i++)
79 oil_rowsad8x8_u8(res,arr1,arr2);
83 std_log(LOG_FILENAME_LINE,"oil_rowsad8x8_u8 successful, res = %d", res[0]);
88 std_log(LOG_FILENAME_LINE,"oil_rowsad8x8_u8 unsuccessful,Expected =%d,Obtained =%d",check[0],res[0]);
95 std_log(LOG_FILENAME_LINE,"Test started testsuite_rowcoladd8x8");
98 std_log(LOG_FILENAME_LINE,"oil_colsad8x8_u8");
101 std_log(LOG_FILENAME_LINE,"oil_rowsad8x8_u8");
105 std_log(LOG_FILENAME_LINE,"Test Fail");
107 std_log(LOG_FILENAME_LINE,"Test Successful");