MCPcopy Create free account
hub / github.com/SIPp/sipp / clear_bit

Function clear_bit

src/rtpstream.cpp:421–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421int clear_bit(unsigned long* context, int value)
422{
423 int retVal = -1;
424
425 if (context != nullptr)
426 {
427 if (value > 0)
428 {
429 *context &= ~(1 << (value - 1));
430 retVal = value;
431 }
432 else
433 {
434 retVal = 0;
435 }
436 }
437 else
438 {
439 retVal = -1;
440 }
441
442 return retVal;
443}
444
445/* code checked */
446static void rtpstream_free_taskinfo(taskentry_t* taskinfo)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected