OSDN Git Service

* builtins.c (fold_builtin_cproj): Fold more cases.
[pf3gnuchains/gcc-fork.git] / gcc / double-int.h
index 370f619..47991ca 100644 (file)
@@ -61,6 +61,13 @@ typedef struct
 
 /* Constructors and conversions.  */
 
+tree double_int_to_tree (tree, double_int);
+bool double_int_fits_to_tree_p (const_tree, double_int);
+
+/* 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.  */
 
@@ -126,9 +133,6 @@ double_int double_int_udivmod (double_int, double_int, unsigned, double_int *);
 double_int double_int_setbit (double_int, unsigned);
 
 /* Logical operations.  */
-
-/* Returns ~A.  */
-
 static inline double_int
 double_int_not (double_int a)
 {
@@ -137,16 +141,6 @@ double_int_not (double_int a)
   return a;
 }
 
-/* Returns A | B.  */
-
-static inline double_int
-double_int_ior (double_int a, double_int b)
-{
-  a.low |= b.low;
-  a.high |= b.high;
-  return a;
-}
-
 /* Shift operations.  */
 double_int double_int_lshift (double_int, HOST_WIDE_INT, unsigned int, bool);
 double_int double_int_rshift (double_int, HOST_WIDE_INT, unsigned int, bool);