fetchop.h

来自「多年来」· C头文件 代码 · 共 40 行

H
40
字号
/* * * This file is subject to the terms and conditions of the GNU General Public * License.  See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (c) 2001-2004 Silicon Graphics, Inc.  All rights reserved. */#ifndef _ASM_IA64_SN_FETCHOP_H#define _ASM_IA64_SN_FETCHOP_H#define FETCHOP_BASENAME	"sgi_fetchop"#define FETCHOP_FULLNAME	"/dev/sgi_fetchop"#define FETCHOP_VAR_SIZE 64 /* 64 byte per fetchop variable */#define FETCHOP_LOAD		0#define FETCHOP_INCREMENT	8#define FETCHOP_DECREMENT	16#define FETCHOP_CLEAR		24#define FETCHOP_STORE		0#define FETCHOP_AND		24#define FETCHOP_OR		32#define FETCHOP_CLEAR_CACHE	56#define FETCHOP_LOAD_OP(addr, op) ( \         *(volatile long *)((char*) (addr) + (op)))#define FETCHOP_STORE_OP(addr, op, x) ( \         *(volatile long *)((char*) (addr) + (op)) = (long) (x))#endif /* _ASM_IA64_SN_FETCHOP_H */

⌨️ 快捷键说明

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