core/tw-sched.cpp
static inline void reset_bitfields(tw_event *revent)
{
    if (sizeof(revent->cv) == sizeof(uint32_t)){
        *(uint32_t*)&revent->cv = 0;
    }
    else if (sizeof(revent->cv) == sizeof(uint64_t)){
        *(uint64_t*)&revent->cv = 0;
    }
    else{
        memset(&revent->cv, 0, sizeof(revent->cv));
    }
}
/**
 * \brief Reset the event bitfield prior to entering the event handler
 *  post-reverse - reset the bitfield so that a potential re-running of the
 *  event is presented with a consistent bitfield state
 *  NOTE: the size checks are to better support the experimental reverse
 *  computation compiler, which can use a larger bitfield.
 *  Courtesy of John P Jenkins
 */
\brief Reset the event bitfield prior to entering the event handler
post-reverse - reset the bitfield so that a potential re-running of the
event is presented with a consistent bitfield state
NOTE: the size checks are to better support the experimental reverse
computation compiler, which can use a larger bitfield.
Courtesy of John P Jenkins
\ brief Reset the event bitfield prior to entering the event handler post - reverse - reset the bitfield so that a potential re - running of the event is presented with a consistent bitfield state NOTE : the size checks are to better support the experimental reverse computation compiler which can use a larger bitfield . Courtesy of John P Jenkins
static inline void reset_bitfields(tw_event *revent)
{
    if (sizeof(revent->cv) == sizeof(uint32_t)){
        *(uint32_t*)&revent->cv = 0;
    }
    else if (sizeof(revent->cv) == sizeof(uint64_t)){
        *(uint64_t*)&revent->cv = 0;
    }
    else{
        memset(&revent->cv, 0, sizeof(revent->cv));
    }
}
static inline void reset_bitfields ( tw_event * revent ) { if ( sizeof ( revent -> cv ) == sizeof ( uint32_t ) ) { * ( uint32_t * ) & revent -> cv = 0 ; } else if ( sizeof ( revent -> cv ) == sizeof ( uint64_t ) ) { * ( uint64_t * ) & revent -> cv = 0 ; } else { memset ( & revent -> cv , 0 , sizeof ( revent -> cv ) ) ; } }
\brief Reset the event bitfield prior to entering the event handler
  post-reverse - reset the bitfield so that a potential re-running of the
  event is presented with a consistent bitfield state
  NOTE: the size checks are to better support the experimental reverse
  computation compiler, which can use a larger bitfield.
\ brief Reset the event bitfield prior to entering the event handler post - reverse - reset the bitfield so that a potential re - running of the event is presented with a consistent bitfield state NOTE : the size checks are to better support the experimental reverse computation compiler which can use a larger bitfield .