| 78 | } |
| 79 | |
| 80 | inline bool IsZero() |
| 81 | { |
| 82 | // Let's do the check in integer space instead (16 instructions -> 6) |
| 83 | const uint32_t* pa = (const uint32_t*)&m_Prev; |
| 84 | const uint32_t* pb = (const uint32_t*)&m_Current; |
| 85 | const uint32_t* pc = (const uint32_t*)&m_Next; |
| 86 | return (*pa | *pb | *pc ) == 0; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Set previous value to current and current to next, i.e. "sample" |