Commit 9d4d1f8e by Anatoly Sokolov Committed by Anatoly Sokolov

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
parent 60744089
2010-04-16 Anatoly Sokolov <aesok@post.ru>
* double-int.h (tree_to_double_int): Convert to macro.
* double-int.c (tree_to_double_int): Remove.
2010-04-16 Jakub Jelinek <jakub@redhat.com> 2010-04-16 Jakub Jelinek <jakub@redhat.com>
PR debug/43762 PR debug/43762
......
...@@ -842,18 +842,6 @@ double_int_sext (double_int cst, unsigned prec) ...@@ -842,18 +842,6 @@ double_int_sext (double_int cst, unsigned prec)
return r; return r;
} }
/* Constructs long integer from tree CST. The extra bits over the precision of
the number are filled with sign bit if CST is signed, and with zeros if it
is unsigned. */
double_int
tree_to_double_int (const_tree cst)
{
/* We do not need to call double_int_restrict here to ensure the semantics as
described, as this is the default one for trees. */
return TREE_INT_CST (cst);
}
/* Returns true if CST fits in unsigned HOST_WIDE_INT. */ /* Returns true if CST fits in unsigned HOST_WIDE_INT. */
bool bool
......
...@@ -63,7 +63,10 @@ typedef struct ...@@ -63,7 +63,10 @@ typedef struct
tree double_int_to_tree (tree, double_int); tree double_int_to_tree (tree, double_int);
bool double_int_fits_to_tree_p (const_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 /* Constructs double_int from integer CST. The bits over the precision of
HOST_WIDE_INT are filled with the sign bit. */ HOST_WIDE_INT are filled with the sign bit. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment