MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / bit

Function bit

extlibs/soloud/src/audiosource/tedsid/sid.cpp:29–32  ·  view source on GitHub ↗

Test a bit. Returns 1 if bit is set.

Source from the content-addressed store, hash-verified

27
28// Test a bit. Returns 1 if bit is set.
29inline static long bit(long val, unsigned int bitnr)
30{
31 return (val >> bitnr) & 1;
32}
33
34inline void SIDsound::updateShiftReg(SIDVoice &v)
35{

Callers 2

updateShiftRegMethod · 0.85
waveNoiseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected