sl@0: // Copyright (c) 2005-2009 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 the License "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: // template\template_variant\replacement_utils\common.cia sl@0: // sl@0: // sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #if defined(__MEM_MACHINE_CODED__) sl@0: sl@0: #ifdef USE_REPLACEMENT_MEMSET sl@0: sl@0: extern "C" EXPORT_C __NAKED__ TAny* memclr(TAny* /*aTrg*/, unsigned int /*aLength*/) sl@0: { sl@0: KMEMCLRHOOK sl@0: // TO DO (optional): Implement replacement memclr sl@0: } sl@0: sl@0: extern "C" EXPORT_C __NAKED__ TAny* memset(TAny* /*aTrg*/, TInt /*aValue*/, unsigned int /*aLength*/) sl@0: { sl@0: KMEMSETHOOK sl@0: // TO DO (optional): Implement replacement memset sl@0: } sl@0: sl@0: #endif // USE_REPLACEMENT_MEMSET sl@0: sl@0: #ifdef USE_REPLACEMENT_MEMCPY sl@0: sl@0: extern "C" EXPORT_C __NAKED__ TAny* wordmove(TAny* /*aTrg*/, const TAny* /*aSrc*/, unsigned int /*aLength*/) sl@0: { sl@0: // TO DO (optional): Implement replacement wordmove sl@0: } sl@0: sl@0: extern "C" EXPORT_C __NAKED__ TAny* memmove(TAny* /*aTrg*/, const TAny* /*aSrc*/, unsigned int /*aLength*/) sl@0: { sl@0: KMEMMOVEHOOK sl@0: // TO DO (optional): Implement replacement memmove sl@0: } sl@0: sl@0: extern "C" EXPORT_C __NAKED__ TAny* memcpy(TAny* /*aTrg*/, const TAny* /*aSrc*/, unsigned int /*aLength*/) sl@0: { sl@0: KMEMCPYHOOK sl@0: // TO DO (optional): Implement replacement memcpy sl@0: } sl@0: sl@0: #endif // USE_REPLACEMENT_MEMCPY sl@0: sl@0: #endif // __MEM_MACHINE_CODED__