sl@0: // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #define SIZE 5 sl@0: sl@0: #define LOG_FILE "c:\\logs\\testsuite_clamp1_log.txt" sl@0: #include "std_log_result.h" sl@0: #define LOG_FILENAME_LINE __FILE__, __LINE__ sl@0: sl@0: int i; sl@0: void test_clamp_s8() sl@0: { sl@0: int8_t dest[SIZE]={0,0,0,0,0}; sl@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}; sl@0: int8_t linux_result[SIZE]={1,1,1,1,1}; sl@0: oil_clamp_s8 (dest,src,SIZE,s2_1,s3_1); sl@0: for(i=0;i