First public contribution.
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // f32test\loader\dllt.h
24 #define INCREMENT (DLLNUMOFFSET+DLLNUM)
26 #if defined(__X86__) || defined(__WINS__)
28 #define INIT_INC asm("mov eax, [esp+4]");
29 #define DO_INC asm("add eax, %0": :"i"(INCREMENT));
30 #define END_INC asm("ret");
32 #define INIT_INC _asm mov eax, [esp+4]
33 #define DO_INC _asm add eax, INCREMENT
34 #define END_INC _asm ret
36 #elif defined(__CPU_ARM)
38 #define DO_INC asm("add r0, r0, #%a0" : : "i" INCREMENT);
39 #define END_INC __JUMP(,lr);
42 #define DO_INC2 DO_INC DO_INC
43 #define DO_INC4 DO_INC2 DO_INC2
44 #define DO_INC8 DO_INC4 DO_INC4
45 #define DO_INC16 DO_INC8 DO_INC8
46 #define DO_INC32 DO_INC16 DO_INC16
47 #define DO_INC64 DO_INC32 DO_INC32
48 #define DO_INC128 DO_INC64 DO_INC64
49 #define DO_INC256 DO_INC128 DO_INC128
50 #define DO_INC512 DO_INC256 DO_INC256
51 #define DO_INC1K DO_INC512 DO_INC512
53 #define DO_INC_BLOCK DO_INC1K