aboutsummaryrefslogtreecommitdiff
path: root/gcc/double-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/double-int.h')
-rw-r--r--gcc/double-int.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/double-int.h b/gcc/double-int.h
index 00ec4ef..b14693d 100644
--- a/gcc/double-int.h
+++ b/gcc/double-int.h
@@ -158,7 +158,7 @@ static inline double_int
double_int_not (double_int a)
{
a.low = ~a.low;
- a.high = ~ a.high;
+ a.high = ~a.high;
return a;
}
@@ -182,6 +182,16 @@ double_int_and (double_int a, double_int b)
return a;
}
+/* Returns A & ~B. */
+
+static inline double_int
+double_int_and_not (double_int a, double_int b)
+{
+ a.low &= ~b.low;
+ a.high &= ~b.high;
+ return a;
+}
+
/* Returns A ^ B. */
static inline double_int