0
|
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".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// f32test\loader\dllt.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __DLLT_H__
|
|
19 |
#define __DLLT_H__
|
|
20 |
#include "u32std.h"
|
|
21 |
#include "dlltree.h"
|
|
22 |
#include "dlltifc.h"
|
|
23 |
|
|
24 |
#define INCREMENT (DLLNUMOFFSET+DLLNUM)
|
|
25 |
|
|
26 |
#if defined(__X86__) || defined(__WINS__)
|
|
27 |
#ifdef __GCC32__
|
|
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");
|
|
31 |
#else
|
|
32 |
#define INIT_INC _asm mov eax, [esp+4]
|
|
33 |
#define DO_INC _asm add eax, INCREMENT
|
|
34 |
#define END_INC _asm ret
|
|
35 |
#endif
|
|
36 |
#elif defined(__CPU_ARM)
|
|
37 |
#define INIT_INC
|
|
38 |
#define DO_INC asm("add r0, r0, #%a0" : : "i" INCREMENT);
|
|
39 |
#define END_INC __JUMP(,lr);
|
|
40 |
#endif
|
|
41 |
|
|
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
|
|
52 |
|
|
53 |
#define DO_INC_BLOCK DO_INC1K
|
|
54 |
|
|
55 |
#endif
|