tracesrv/tracecompiler/internal/TraceCompiler_Test/TraceCompilerTester/src/TraceCompilerTesterCommon1.cpp
changeset 62 1c2bb2fc7c87
equal deleted inserted replaced
56:aa2539c91954 62:1c2bb2fc7c87
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 #include <nkern.h>
       
    18 
       
    19 #include "TraceCompilerTesterCommon1.h"
       
    20 
       
    21 #include "OstTraceDefinitions.h"
       
    22 #ifdef OST_TRACE_COMPILER_IN_USE
       
    23 #include "TraceCompilerTesterCommon1Traces.h"
       
    24 #endif
       
    25 
       
    26 
       
    27 /**
       
    28  * Constructor
       
    29  */
       
    30 DTraceCompilerTesterCommon1::DTraceCompilerTesterCommon1()
       
    31 	{
       
    32     }
       
    33 	
       
    34 /**
       
    35  * Destructor
       
    36  */
       
    37 DTraceCompilerTesterCommon1::~DTraceCompilerTesterCommon1()
       
    38     {
       
    39 
       
    40     }
       
    41 
       
    42 
       
    43 /**
       
    44  * Sum values
       
    45  * 
       
    46  * @param aValue1
       
    47  * @param aValue2
       
    48  * @param aValue3
       
    49  * @param aValue4
       
    50  * @return sum of the values          
       
    51  */    
       
    52 TInt32 DTraceCompilerTesterCommon1::SumValues( TInt aValue1, TInt aValue2, TUint8 aValue3, TUint8 aValue4 )
       
    53     {
       
    54     OstTraceFunctionEntryExt( DTRACECOMPILERTESTERCOMMON1_SUMVALUES_ENTRY, this );
       
    55     TInt32 retVal = aValue1 + aValue2 +aValue3 + aValue4;
       
    56     OstTraceFunctionExitExt( DTRACECOMPILERTESTERCOMMON1_SUMVALUES_EXIT, this, ( TInt )( retVal ) );
       
    57     return retVal;				
       
    58     }
       
    59 
       
    60 // End of File