Commit 92ef9d6e authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* examples/adder/adder.cxx (test_vector): Add parentheses to

remove a clang++-2.9 warning.
parent 24be6076
2011-08-28 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* examples/adder/adder.cxx (test_vector): Add parentheses to
remove a clang++-2.9 warning.
2011-08-27 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/bddop.c (bdd_support): Speedup using a cache.
......
......@@ -35,7 +35,7 @@ void build_adder(void)
xout[n] = ainp[n] ^ binp[n] ^ co[n-1];
co[n] = ainp[n] & binp[n] |
ainp[n] & co[n-1] |
binp[n] & co[n-1];
binp[n] & co[n-1];
}
else
{
......@@ -181,7 +181,8 @@ int test_vector(bdd av, bdd bv, int a, int b)
{
bdd resv = av & bv & xout[n];
if (resv == bddfalse && (res & 1) || resv != bddfalse && !(res & 1))
if ((resv == bddfalse && (res & 1))
|| (resv != bddfalse && !(res & 1)))
return 0;
res = res >> 1;
......
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