From 950f7f45269b7cb641b9f754b408980a01971ce2 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 29 Jul 2010 13:45:47 +0000 Subject: double-int.h (double_int_and_not): New function. 2010-07-28 Richard Guenther * double-int.h (double_int_and_not): New function. * combine.c (try_combine): Use it. * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise. From-SVN: r162681 --- gcc/double-int.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gcc/double-int.h') 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 -- cgit v1.1