list.1.txt
来自「This archive contains circuit diagram an」· 文本 代码 · 共 16 行
TXT
16 行
#ifndef FIX_H
#define FIX_H
extern const int q; //exponent
//fixed point number type
typedef int fix; //mantissa (interpreted as fixed point number with exponent q)
//arithmetic operations
#define FADD(a,b) ((a)+(b))
#define FSUB(a,b) ((a)-(b))
#define FMUL(a,b,q) (((a)*(b))>>(q))
#define FDIV(a,b,q) (((a)<<(q))/(b))
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?