MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / swap

Function swap

libraries/bitHelpers/bitHelpers.cpp:286–289  ·  view source on GitHub ↗

/////////////////////////////////////////// SWAP HI LO

Source from the content-addressed store, hash-verified

284// SWAP HI LO
285//
286uint8_t swap(uint8_t value)
287{
288 return (value << 4) | (value >> 4);
289}
290
291
292uint16_t swap(uint16_t value)

Callers 1

unittestFunction · 0.85

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.68