Ignore:
Timestamp:
Sep 27, 2014 7:55:27 AM (6 years ago)
Author:
bradbell
Message:

Fix bug in conditional skipping of calls to atomic functions.

opt_atomic.sh: test fix here.
optimize.hpp: fix bug here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cppad/local/optimize.hpp

    r3364 r3367  
    20352035                // determine if we should insert a conditional skip here
    20362036                bool skip = cskip_info_next < cskip_info.size();
    2037                 skip     &= (op != BeginOp) & (op != InvOp);
     2037                skip     &= op != BeginOp;
     2038                skip     &= op != InvOp;
     2039                skip     &= user_state == user_start;
    20382040                if( skip )
    20392041                {       j     = cskip_info_order[cskip_info_next];
Note: See TracChangeset for help on using the changeset viewer.