summaryrefslogtreecommitdiff
path: root/gcc/double-int.h
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2010-04-16 21:31:00 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2010-04-16 21:31:00 +0400
commit9d4d1f8ef92256462a22dcc2895004f42ac3e4f6 (patch)
treee6ff3785e037f37055445ae5e7c6e400f2143152 /gcc/double-int.h
parent607440898495d8998d9e0bea8484e57bb5ef1064 (diff)
double-int.h (tree_to_double_int): Convert to macro.
* double-int.h (tree_to_double_int): Convert to macro. * double-int.c (tree_to_double_int): Remove. From-SVN: r158437
Diffstat (limited to 'gcc/double-int.h')
-rw-r--r--gcc/double-int.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/double-int.h b/gcc/double-int.h
index 64ac843da1a..682034859b9 100644
--- a/gcc/double-int.h
+++ b/gcc/double-int.h
@@ -63,7 +63,10 @@ typedef struct
tree double_int_to_tree (tree, double_int);
bool double_int_fits_to_tree_p (const_tree, double_int);
-double_int tree_to_double_int (const_tree);
+
+/* Constructs double_int from tree CST. */
+
+#define tree_to_double_int(cst) (TREE_INT_CST (cst))
/* Constructs double_int from integer CST. The bits over the precision of
HOST_WIDE_INT are filled with the sign bit. */