🔧 使cpu支持SSE(目前会出现#GP)

This commit is contained in:
fslongjin
2022-01-27 14:58:14 +08:00
parent ae52d9c2d2
commit 40a551d154
9 changed files with 198 additions and 16 deletions

View File

@ -24,13 +24,20 @@
#define io_lfence() __asm__ __volatile__("lfence\n\t" :: \
: "memory") // 在lfence指令前的读操作当必须在lfence指令后的读操作前完成。
#define ABS(x) ((x) > 0 ? (x) : -(x)) // 绝对值
// 定义类型的缩写
typedef unsigned long ul;
typedef unsigned long long ull;
typedef long long ll;
#define ABS(x) ((x) > 0 ? (x) : -(x)) // 绝对值
// 四舍五入成整数
ul round(double x)
{
return (ul)(x+0.5);
}
//链表数据结构
struct List
{