MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / bitreverse32Bit

Function bitreverse32Bit

src/IRProtocol.hpp:183–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183uint32_t bitreverse32Bit(uint32_t aInput) {
184// __builtin_avr_insert_bits();
185 LongUnion tValue;
186 tValue.UByte.HighByte = bitreverseOneByte(aInput);
187 tValue.UByte.MidHighByte = bitreverseOneByte(aInput >> 8);
188 tValue.UByte.MidLowByte = bitreverseOneByte(aInput >> 16);
189 tValue.UByte.LowByte = bitreverseOneByte(aInput >> 24);
190 return tValue.ULong;
191}
192
193/** @}*/
194

Callers

nothing calls this directly

Calls 1

bitreverseOneByteFunction · 0.85

Tested by

no test coverage detected