MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / EndianLittleToBig16

Function EndianLittleToBig16

Kernel/include/endian.h:5–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <stdint.h>
4
5static inline uint16_t EndianLittleToBig16(uint16_t val){
6 return __builtin_bswap16(val);
7}
8
9static inline uint32_t EndianLittleToBig32(uint32_t val){
10 return __builtin_bswap32(val);

Callers 2

BigEndianUInt16Method · 0.70
BigEndianUInt16Class · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected