mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
🔧 使cpu支持SSE(目前会出现#GP)
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user