about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xarch/arm/bits/alltypes.h.sh3
-rwxr-xr-xarch/i386/bits/alltypes.h.sh3
-rwxr-xr-xarch/x86_64/bits/alltypes.h.sh3
-rw-r--r--include/math.h2
4 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/bits/alltypes.h.sh b/arch/arm/bits/alltypes.h.sh
index af73e664..ddc5c06f 100755
--- a/arch/arm/bits/alltypes.h.sh
+++ b/arch/arm/bits/alltypes.h.sh
@@ -56,6 +56,9 @@ TYPEDEF uint64_t           uint_fast64_t;
 TYPEDEF long          intptr_t;
 TYPEDEF unsigned long uintptr_t;
 
+TYPEDEF float float_t;
+TYPEDEF double double_t;
+
 TYPEDEF long time_t;
 TYPEDEF int suseconds_t;
 STRUCT timeval { time_t tv_sec; int tv_usec; };
diff --git a/arch/i386/bits/alltypes.h.sh b/arch/i386/bits/alltypes.h.sh
index 5aacc293..b1505a11 100755
--- a/arch/i386/bits/alltypes.h.sh
+++ b/arch/i386/bits/alltypes.h.sh
@@ -64,6 +64,9 @@ TYPEDEF uint64_t           uint_fast64_t;
 TYPEDEF long          intptr_t;
 TYPEDEF unsigned long uintptr_t;
 
+TYPEDEF long double float_t;
+TYPEDEF long double double_t;
+
 TYPEDEF long time_t;
 TYPEDEF int suseconds_t;
 STRUCT timeval { time_t tv_sec; int tv_usec; };
diff --git a/arch/x86_64/bits/alltypes.h.sh b/arch/x86_64/bits/alltypes.h.sh
index 10fc3d52..929a0f67 100755
--- a/arch/x86_64/bits/alltypes.h.sh
+++ b/arch/x86_64/bits/alltypes.h.sh
@@ -55,6 +55,9 @@ TYPEDEF uint64_t           uint_fast64_t;
 TYPEDEF long          intptr_t;
 TYPEDEF unsigned long uintptr_t;
 
+TYPEDEF double float_t;
+TYPEDEF double double_t;
+
 TYPEDEF long time_t;
 TYPEDEF long suseconds_t;
 STRUCT timeval { time_t tv_sec; long tv_usec; };
diff --git a/include/math.h b/include/math.h
index 9c5f06e7..1a5f6fe9 100644
--- a/include/math.h
+++ b/include/math.h
@@ -5,6 +5,8 @@
 extern "C" {
 #endif
 
+#define __NEED_float_t
+#define __NEED_double_t
 #define __NEED___uint16_t
 #define __NEED___uint32_t
 #define __NEED___uint64_t