types.h
来自「linux 内核源代码」· C头文件 代码 · 共 28 行
H
28 行
#ifndef _TYPES_H_#define _TYPES_H_#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))typedef unsigned char u8;typedef unsigned short u16;typedef unsigned int u32;typedef unsigned long long u64;typedef signed char s8;typedef short s16;typedef int s32;typedef long long s64;#define min(x,y) ({ \ typeof(x) _x = (x); \ typeof(y) _y = (y); \ (void) (&_x == &_y); \ _x < _y ? _x : _y; })#define max(x,y) ({ \ typeof(x) _x = (x); \ typeof(y) _y = (y); \ (void) (&_x == &_y); \ _x > _y ? _x : _y; })#endif /* _TYPES_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?