diff -r 000000000000 -r bde4ae8d615e os/ossrv/genericopenlibs/liboil/tsrc/testsuite/clamp1/src/clamp1.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/ossrv/genericopenlibs/liboil/tsrc/testsuite/clamp1/src/clamp1.c Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,195 @@ +// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + + +#include +#include +#include +#include +#include + +#define SIZE 5 + +#define LOG_FILE "c:\\logs\\testsuite_clamp1_log.txt" +#include "std_log_result.h" +#define LOG_FILENAME_LINE __FILE__, __LINE__ + +int i; +void test_clamp_s8() + { + int8_t dest[SIZE]={0,0,0,0,0}; + const int8_t src[SIZE]={2,2,2,2,2},s2_1[SIZE]={14,14,14,14,14},s3_1[SIZE]={1,1,1,1,1}; + int8_t linux_result[SIZE]={1,1,1,1,1}; + oil_clamp_s8 (dest,src,SIZE,s2_1,s3_1); + for(i=0;i