summaryrefslogtreecommitdiffhomepage
path: root/ir/tv
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-02-17 07:14:48 +0100
committerMatthias Braun <matze@braunis.de>2017-02-17 08:07:41 +0100
commit06cb80c5b7f318fb1fc0caef3adcf84b9802df6c (patch)
tree72c596abcda06468ebe41d0038f520e10f19acc3 /ir/tv
parentd29ca3a0ba661b9826e126b407c1c9d6f5a81aa9 (diff)
Reorganize include directives
Diffstat (limited to 'ir/tv')
-rw-r--r--ir/tv/fltcalc.c19
-rw-r--r--ir/tv/strcalc.c16
-rw-r--r--ir/tv/tv.c24
3 files changed, 29 insertions, 30 deletions
diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c
index da721fd..dafdffc 100644
--- a/ir/tv/fltcalc.c
+++ b/ir/tv/fltcalc.c
@@ -10,20 +10,19 @@
* @author Mathias Heil, Michael Beck, Matthias Braun
*/
#include "fltcalc.h"
-#include "strcalc.h"
-#include "panic.h"
-#include <math.h>
-#include <inttypes.h>
+#include "panic.h"
+#include "strcalc.h"
+#include "xmalloc.h"
+#include <assert.h>
#include <float.h>
+#include <inttypes.h>
#include <limits.h>
-#include <string.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <assert.h>
+#include <math.h>
#include <stdbool.h>
-
-#include "xmalloc.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
/** The number of extra precision rounding bits */
#define ROUNDING_BITS 2
diff --git a/ir/tv/strcalc.c b/ir/tv/strcalc.c
index f6798b0..4e13d24 100644
--- a/ir/tv/strcalc.c
+++ b/ir/tv/strcalc.c
@@ -8,18 +8,18 @@
* @brief Arithmetic operations on arbitrary precision integer numbers.
* @author Mathias Heil, Matthias Braun
*/
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-#include <stdio.h>
-#include <limits.h>
-
#include "strcalc.h"
-#include "xmalloc.h"
-#include "panic.h"
+
#include "bitfiddle.h"
+#include "panic.h"
#include "tv_t.h"
#include "util.h"
+#include "xmalloc.h"
+#include <assert.h>
+#include <limits.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#define SC_MASK ((sc_word)0xFF)
#define SC_RESULT(x) ((x) & SC_MASK)
diff --git a/ir/tv/tv.c b/ir/tv/tv.c
index d227a68..d11bfdc 100644
--- a/ir/tv/tv.c
+++ b/ir/tv/tv.c
@@ -16,27 +16,27 @@
* This implementation assumes:
* - target has IEEE-754 floating-point arithmetic.
*/
-#include <assert.h>
-#include <limits.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdlib.h>
+#include "tv_t.h"
#include "bitfiddle.h"
-#include "hashptr.h"
-#include "tv_t.h"
-#include "set.h"
#include "entity_t.h"
+#include "firm_common.h"
+#include "fltcalc.h"
+#include "hashptr.h"
#include "hashptr.h"
#include "irmode_t.h"
-#include "irprintf.h"
#include "irnode_t.h"
+#include "irprintf.h"
+#include "panic.h"
+#include "set.h"
#include "strcalc.h"
-#include "fltcalc.h"
#include "util.h"
#include "xmalloc.h"
-#include "firm_common.h"
-#include "panic.h"
+#include <assert.h>
+#include <limits.h>
+#include <stdlib.h>
+#include <stdlib.h>
+#include <string.h>
/** Size of hash tables. Should correspond to average number of distinct
* constant target values */