1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-11-08 13:42:31 +05:30
polonium/include/endianness_tools.h

19 lines
339 B
C
Raw Permalink Normal View History

2024-07-07 03:18:23 +05:30
#ifndef _ENDIANNESS_TOOLS_H
#define _ENDIANNESS_TOOLS_H
#include <stdint.h>
#include <string.h>
enum endiannesses {
UNSUPPORTED_ENDIANNESS,
DETECTED_LITTLE_ENDIAN,
DETECTED_BIG_ENDIAN
};
typedef enum endiannesses endianness_t;
endianness_t detect_endianness(void);
void reorder_b32(uint32_t* ptr);
#endif /* _ENDIANNESS_TOOLS_H */