os/kernelhwsrv/kerneltest/f32test/loader/dllt.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kerneltest/f32test/loader/dllt.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,55 @@
     1.4 +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// f32test\loader\dllt.h
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#ifndef __DLLT_H__
    1.22 +#define __DLLT_H__
    1.23 +#include "u32std.h"
    1.24 +#include "dlltree.h"
    1.25 +#include "dlltifc.h"
    1.26 +
    1.27 +#define	INCREMENT		(DLLNUMOFFSET+DLLNUM)
    1.28 +
    1.29 +#if defined(__X86__) || defined(__WINS__)
    1.30 +#ifdef __GCC32__
    1.31 +#define INIT_INC	asm("mov eax, [esp+4]");
    1.32 +#define	DO_INC		asm("add eax, %0": :"i"(INCREMENT));
    1.33 +#define END_INC		asm("ret");
    1.34 +#else
    1.35 +#define INIT_INC	_asm mov eax, [esp+4]
    1.36 +#define	DO_INC		_asm add eax, INCREMENT
    1.37 +#define END_INC		_asm ret
    1.38 +#endif
    1.39 +#elif defined(__CPU_ARM)
    1.40 +#define	INIT_INC
    1.41 +#define DO_INC		asm("add r0, r0, #%a0" : : "i" INCREMENT);
    1.42 +#define END_INC		__JUMP(,lr);
    1.43 +#endif
    1.44 +
    1.45 +#define DO_INC2		DO_INC		DO_INC
    1.46 +#define DO_INC4		DO_INC2		DO_INC2
    1.47 +#define DO_INC8		DO_INC4		DO_INC4
    1.48 +#define DO_INC16	DO_INC8		DO_INC8
    1.49 +#define DO_INC32	DO_INC16	DO_INC16
    1.50 +#define DO_INC64	DO_INC32	DO_INC32
    1.51 +#define DO_INC128	DO_INC64	DO_INC64
    1.52 +#define DO_INC256	DO_INC128	DO_INC128
    1.53 +#define DO_INC512	DO_INC256	DO_INC256
    1.54 +#define DO_INC1K	DO_INC512	DO_INC512
    1.55 +
    1.56 +#define DO_INC_BLOCK	DO_INC1K
    1.57 +
    1.58 +#endif