📄 math2.h
字号:
#ifndef __MATH2_H
#define __MATH2_H
/* Based on Everett Greene's math2_a.c
*/
#define BYTE signed char
#define UBYTE unsigned char
#define WORD signed short
#define LONG signed long
#define ULONG unsigned long
#define BOOL UBYTE
#define FALSE 0
#define TRUE (~FALSE)
typedef
union {
float f;
LONG i;} FI_union_t;
typedef
struct {
UBYTE flag,
sign;
WORD e2;
LONG m;} EFG_intd_t;
/* for decompose */
#define ZERO_CODE 1
#define DENORMALIZED_CODE 2
#define INFINITY_CODE 3
#define SIGNALLING_NaN_CODE 4
#define NONSIGNALLING_NaN_CODE 5
#define PREFIX_FLAG 0x40
#define SIGN_FLAG 0X80
BYTE _decompose(LONG *x, EFG_intd_t *y);
#if !defined(min)
#define min(x, y) ((x < y) ? x : y)
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -