mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-12-05 04:58:57 +05:30
19 lines
339 B
C
19 lines
339 B
C
#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 */
|