📄 common.h
字号:
/* * m68k/common.h * Common M68K configuration information. * * Copyright (c) 1996, 1997, 1998, 1999 * 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 Kiyo Inaba <k-inaba@mxb.mesh.ne.jp>, 1998; * Based on the ports * by Remi Perrot <r_perrot@mail.club-internet.fr> to m68k/linux * and * by Alexandre Oliva <oliva@dcc.unicamp.br> to sparc * * Modified by Kiyo Inaba <k-inaba@mxb.mesh.ne.jp>, 1999 to support * both linux and netbsd1. */#ifndef __m68k_common_h#define __m68k_common_h#include "atomicity.h"/* * Alignment in structure is 2 bytes packed. */#define ALIGNMENT_OF_SIZE(S) (((S>1)?2:1))/* * Do an atomic compare and exchange. The address 'A' is checked against * value 'O' and if they match it's exchanged with value 'N'. * We return '1' if the exchange is successful, otherwise 0. */#define COMPARE_AND_EXCHANGE(A, O, N) (compare_and_swap((long int*) A, (long int) O, (long int) N)) #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -