mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-23 23:10:16 +00:00
18 lines
344 B
C
18 lines
344 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
/**
|
||
|
* @brief Swap bytes in 32-bit value
|
||
|
* @param val value to swap bytes in
|
||
|
* @return Value with bytes swapped
|
||
|
*/
|
||
|
uint32_t swap_uint32(uint32_t val);
|
||
|
|
||
|
/**
|
||
|
* @brief Swap bytes in 64-bit value
|
||
|
* @param val value to swap bytes in
|
||
|
* @return Value with bytes swapped
|
||
|
*/
|
||
|
uint64_t swap_uint64(uint64_t val);
|