• Main INDEX
  • Monthly INDEX
  • PREV
  • NEXT
    Make New Entry, Make Followup Entry

    User name Ole Hansen

    Log entry time 02:06:03 on July 10, 2010

    Entry number 331212

    This entry is a followup to: 331208

    keyword=Re: evtypebits

    You can get even fancier with more complex bitmasks. Say, you want only events with T4 and T6 both present, T8 (pulser) definitely not present, and don't care about other triggers. That cut would be (D.evtypebits & 0x150)==0x50, or, in shift notation, (D.evtypebits & (1<8 | 1<<6 | 1<<4)) == (1<<6 | 1<<4). Bit gymnastics are fun ;)