Add some minor optimizations.
[ginac.git] / ginac / mul.cpp
index 2b404877c9840aa53a071e712aa222e51680533a..636c939fcd08762a126c67543ae06df02071b1de 100644 (file)
@@ -497,7 +497,7 @@ ex mul::coeff(const ex & s, int n) const
 ex mul::eval(int level) const
 {
        std::auto_ptr<epvector> evaled_seqp = evalchildren(level);
-       if (evaled_seqp.get()) {
+       if (unlikely(evaled_seqp.get() != 0)) {
                // do more evaluation later
                return (new mul(evaled_seqp, overall_coeff))->
                           setflag(status_flags::dynallocated);