Browse Source

[compilers][libc] 在 minilibc 的 math.h 中增加 float_t 与 double_t 的定义

yangjie 5 years ago
parent
commit
27222e9cd8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      components/libc/compilers/minilibc/math.h

+ 3 - 0
components/libc/compilers/minilibc/math.h

@@ -14,4 +14,7 @@
 double sin(double x);
 double sin(double x);
 double cos(double x);
 double cos(double x);
 
 
+typedef float float_t;
+typedef double double_t;
+
 #endif
 #endif