common.h

来自「kaffe Java 解释器语言,源码,Java的子集系统,开放源代码」· C头文件 代码 · 共 31 行

H
31
字号
/* * arm/common.h * Common arm configuration information. * * Copyright (c) 1996, 1997 *	Transvirtual Technologies, Inc.  All rights reserved. * * Copyright (c) 2003 *      Kaffe.org contributors. See ChangeLog for details. * * See the file "license.terms" for information on usage and redistribution  * of this file.  * * Written by Godmar Back <gback@cs.utah.edu> */#ifndef __arm_common_h#define __arm_common_h/* The arm never aligns to more than a 4 byte boundary. */#define	ALIGNMENT_OF_SIZE(S)	((S) < 4 ? (S) : 4)/* * Do an atomic exchange.  The contents of address 'A' is exchanged * with value 'N'. */#define ATOMIC_EXCHANGE(A,N) \	asm volatile("swp       %0, %0, [%2]" : "=r" (N) : "0" (N), "r" (A) : "cc", "memory" );#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?