Browse Source

add float_t and double_t to math.h

Rich Felker 13 years ago
parent
commit
414a4cdebc
4 changed files with 11 additions and 0 deletions
  1. 3 0
      arch/arm/bits/alltypes.h.sh
  2. 3 0
      arch/i386/bits/alltypes.h.sh
  3. 3 0
      arch/x86_64/bits/alltypes.h.sh
  4. 2 0
      include/math.h

+ 3 - 0
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; };

+ 3 - 0
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; };

+ 3 - 0
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; };

+ 2 - 0
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