瀏覽代碼

Toolchain+LibM: Make C++ standard library math functions available

With this fixed we get libstdc++v3's aliases for C99 math functions
in the std namespace. Unfortunately for this to work the toolchain
needs to be rebuilt.

The good news are that this by itself does not require a toolchain
rebuild just yet.
Gunnar Beutner 4 年之前
父節點
當前提交
e6747fefa7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibM/math.h

+ 1 - 1
Userland/Libraries/LibM/math.h

@@ -74,7 +74,7 @@ __BEGIN_DECLS
 #define isless(x, y) __builtin_isless((x), (y))
 #define isless(x, y) __builtin_isless((x), (y))
 #define islessequal(x, y) __builtin_islessequal((x), (y))
 #define islessequal(x, y) __builtin_islessequal((x), (y))
 #define islessgreater(x, y) __builtin_islessgreater((x), (y))
 #define islessgreater(x, y) __builtin_islessgreater((x), (y))
-#define isunordered(x, y) __builtin_isunoredered((x), (y))
+#define isunordered(x, y) __builtin_isunordered((x), (y))
 
 
 #define DOUBLE_MAX ((double)0b0111111111101111111111111111111111111111111111111111111111111111)
 #define DOUBLE_MAX ((double)0b0111111111101111111111111111111111111111111111111111111111111111)
 #define DOUBLE_MIN ((double)0b0000000000010000000000000000000000000000000000000000000000000000)
 #define DOUBLE_MIN ((double)0b0000000000010000000000000000000000000000000000000000000000000000)