navienginebsp/ne1_tb/replacement_utils/common.cia
changeset 0 5de814552237
equal deleted inserted replaced
-1:000000000000 0:5de814552237
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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 * ne1_tb\replacement_utils\common.cia
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #include <replacement_utils.h>
       
    22 #include <e32cmn.h>
       
    23 #include <cpudefs.h>
       
    24 #include <e32cia.h>
       
    25 
       
    26 #if defined(__MEM_MACHINE_CODED__)
       
    27 
       
    28 #ifdef USE_REPLACEMENT_MEMSET
       
    29 
       
    30 extern "C" EXPORT_C __NAKED__ TAny* memclr(TAny* /*aTrg*/, unsigned int /*aLength*/)
       
    31 	{
       
    32 	KMEMCLRHOOK
       
    33 	// TO DO (optional): Implement replacement memclr
       
    34 	}
       
    35 
       
    36 extern "C" EXPORT_C __NAKED__ TAny* memset(TAny* /*aTrg*/, TInt /*aValue*/, unsigned int /*aLength*/)
       
    37     {
       
    38     KMEMSETHOOK
       
    39 	// TO DO (optional): Implement replacement memset
       
    40     }
       
    41 
       
    42 #endif  // USE_REPLACEMENT_MEMSET
       
    43 
       
    44 #ifdef USE_REPLACEMENT_MEMCPY
       
    45 
       
    46 extern "C" EXPORT_C __NAKED__ TAny* wordmove(TAny* /*aTrg*/, const TAny* /*aSrc*/, unsigned int /*aLength*/)
       
    47     {
       
    48 	// TO DO (optional): Implement replacement wordmove
       
    49 	}
       
    50 
       
    51 extern "C" EXPORT_C __NAKED__ TAny* memmove(TAny* /*aTrg*/, const TAny* /*aSrc*/, unsigned int /*aLength*/)
       
    52 	{
       
    53 	KMEMMOVEHOOK
       
    54 	// TO DO (optional): Implement replacement memmove
       
    55 	}
       
    56 
       
    57 extern "C" EXPORT_C __NAKED__ TAny* memcpy(TAny* /*aTrg*/, const TAny* /*aSrc*/, unsigned int /*aLength*/)
       
    58     {
       
    59     KMEMCPYHOOK
       
    60 	// TO DO (optional): Implement replacement memcpy
       
    61 	}
       
    62 
       
    63 #endif  // USE_REPLACEMENT_MEMCPY
       
    64 
       
    65 #endif  // __MEM_MACHINE_CODED__