Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

software/include: add float.h

  • Loading branch information...
commit a94ee3884f611aa69c8d3beb883947fad7487204 1 parent 83f562a
Sébastien Bourdeauducq authored January 12, 2013

Showing 1 changed file with 50 additions and 0 deletions. Show diff stats Hide diff stats

  1. 50  software/include/base/float.h
50  software/include/base/float.h
... ...
@@ -0,0 +1,50 @@
  1
+#ifndef __FLOAT_H
  2
+#define __FLOAT_H
  3
+
  4
+#define FLT_EVAL_METHOD __FLT_EVAL_METHOD__
  5
+#define FLT_ROUNDS (__builtin_flt_rounds())
  6
+#define FLT_RADIX __FLT_RADIX__
  7
+
  8
+#define FLT_MANT_DIG __FLT_MANT_DIG__
  9
+#define DBL_MANT_DIG __DBL_MANT_DIG__
  10
+#define LDBL_MANT_DIG __LDBL_MANT_DIG__
  11
+
  12
+#define DECIMAL_DIG __DECIMAL_DIG__
  13
+
  14
+#define FLT_DIG __FLT_DIG__
  15
+#define DBL_DIG __DBL_DIG__
  16
+#define LDBL_DIG __LDBL_DIG__
  17
+
  18
+#define FLT_MIN_EXP __FLT_MIN_EXP__
  19
+#define DBL_MIN_EXP __DBL_MIN_EXP__
  20
+#define LDBL_MIN_EXP __LDBL_MIN_EXP__
  21
+
  22
+#define FLT_MIN_10_EXP __FLT_MIN_10_EXP__
  23
+#define DBL_MIN_10_EXP __DBL_MIN_10_EXP__
  24
+#define LDBL_MIN_10_EXP __LDBL_MIN_10_EXP__
  25
+
  26
+#define FLT_MAX_EXP __FLT_MAX_EXP__
  27
+#define DBL_MAX_EXP __DBL_MAX_EXP__
  28
+#define LDBL_MAX_EXP __LDBL_MAX_EXP__
  29
+
  30
+#define FLT_MAX_10_EXP __FLT_MAX_10_EXP__
  31
+#define DBL_MAX_10_EXP __DBL_MAX_10_EXP__
  32
+#define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__
  33
+
  34
+#define FLT_MAX __FLT_MAX__
  35
+#define DBL_MAX __DBL_MAX__
  36
+#define LDBL_MAX __LDBL_MAX__
  37
+
  38
+#define FLT_EPSILON __FLT_EPSILON__
  39
+#define DBL_EPSILON __DBL_EPSILON__
  40
+#define LDBL_EPSILON __LDBL_EPSILON__
  41
+
  42
+#define FLT_MIN __FLT_MIN__
  43
+#define DBL_MIN __DBL_MIN__
  44
+#define LDBL_MIN __LDBL_MIN__
  45
+
  46
+#define FLT_TRUE_MIN __FLT_DENORM_MIN__
  47
+#define DBL_TRUE_MIN __DBL_DENORM_MIN__
  48
+#define LDBL_TRUE_MIN __LDBL_DENORM_MIN__
  49
+
  50
+#endif /* __FLOAT_H */

0 notes on commit a94ee38

Please sign in to comment.
Something went wrong with that request. Please try again.