MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / lower_3bytes

Function lower_3bytes

parser/parse_sst.c:38–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36static inline unsigned lower_byte( char b ) { return b | 0x20; }
37static inline unsigned lower_4bytes( unsigned d ) { return d | 0x20202020; }
38static inline unsigned lower_3bytes( unsigned d ) { return d | 0x202020; }
39static inline unsigned read_4bytes( char *val ) {
40 return (*(val + 0) + (*(val + 1) << 8)
41 + (*(val + 2) << 16) + (*(val + 3) << 24));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected