MCPcopy Create free account
hub / github.com/defold/defold / IsZero

Method IsZero

engine/sound/src/sound.cpp:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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"

Callers 2

IsMutedFunction · 0.80
MasterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected