Difficult-Rocket/try/c/data_utils.h
2022-06-08 20:31:48 +08:00

30 lines
700 B
C

/* 一个好用的头文件
-------------------------------
Difficult Rocket
Copyright © 2021-2022 by shenjackyuanjie
All rights reserved
-------------------------------
*/
// 基本的头文件引用
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
// 一些用于直观感受类型字节长度的数据类型
// 看着舒服而已(
// int 整数
#define int8 char
#define int16 short
#define int32 int
#define int64 long long
// uint 无符号整数
#define uint8 unsigned char
#define uint16 unsigned short
#define uint32 unsigned int
#define uint64 unsigned long long
// float 浮点数
#define float32 float
#define float64 double
#define float128 long double