types.h

来自「SMDK2440 boot code, base on vivi」· C头文件 代码 · 共 22 行

H
22
字号
#ifndef _VIVI_TYPES_H_#define _VIVI_TYPES_H_#define _LINUX_CONFIG_H#define __KERNEL__#include <linux/types.h>/* * ..and if you can't take the strict * types, you can specify one yourself. * * Or not use min/max at all, of course. */#define min_t(type,x,y) \	({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })#define max_t(type,x,y) \	({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })#endif

⌨️ 快捷键说明

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