
19 Sep
2005
19 Sep
'05
9:03 p.m.
From: "Marcin Kalicinski" <kalita@poczta.onet.pl>
Interesting. I'd have thought that calling __assume(0) was useless, but it tells the optimizer that the else clause won't occur. I wonder if that will work at all or as well as BOOST_ASSERT(e); __assume(e);
It's not useless, see my previous posts in the thread for examples of code generated with and without __assume(0).
I said "I would have thought [it] was useless." However, I consulted the documentation and found that it was useful. That's why I said it was "interesting." -- Rob Stewart stewart@sig.com Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;