mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Simplified types.h
This commit is contained in:
parent
eab2477076
commit
f1a8123547
2 changed files with 24 additions and 185 deletions
|
@ -25,191 +25,20 @@
|
|||
#ifndef __MYTYPES__
|
||||
#define __MYTYPES__
|
||||
|
||||
#if defined( __sparc )
|
||||
#define HOST_ENDIAN 1
|
||||
#if defined( __sparcv9 )
|
||||
typedef unsigned long uintm;
|
||||
typedef long intm;
|
||||
typedef unsigned long uint8;
|
||||
typedef long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint8 uintp;
|
||||
#else
|
||||
typedef unsigned int uintm;
|
||||
typedef int intm;
|
||||
#include <cstdint>
|
||||
#include <type_traits>
|
||||
|
||||
typedef unsigned long long uint8;
|
||||
typedef long long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint4 uintp;
|
||||
|
||||
#endif /* __sparcv9 */
|
||||
#endif /* __sparc */
|
||||
|
||||
/* Alpha defines */
|
||||
#if defined (__digital__) && defined (__unix__)
|
||||
typedef unsigned long uintm;
|
||||
typedef long intm;
|
||||
typedef unsigned long uint8;
|
||||
typedef long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint8 uintp;
|
||||
#endif
|
||||
|
||||
#if defined (__linux__) && defined (__i386__)
|
||||
#define HOST_ENDIAN 0
|
||||
typedef unsigned long uintm;
|
||||
typedef long intm;
|
||||
typedef unsigned long long uint8;
|
||||
typedef long long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint4 uintp;
|
||||
#endif
|
||||
|
||||
#if defined (__linux__) && defined (__x86_64__)
|
||||
#define HOST_ENDIAN 0
|
||||
typedef unsigned int uintm;
|
||||
typedef int intm;
|
||||
typedef unsigned long uint8;
|
||||
typedef long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint8 uintp;
|
||||
#endif
|
||||
|
||||
#if defined (__linux__) && defined (__aarch64__)
|
||||
#define HOST_ENDIAN 0
|
||||
typedef unsigned int uintm;
|
||||
typedef int intm;
|
||||
typedef unsigned long uint8;
|
||||
typedef long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint8 uintp;
|
||||
#endif
|
||||
|
||||
#if defined(_WINDOWS)
|
||||
|
||||
#if defined(_WIN64)
|
||||
|
||||
#define HOST_ENDIAN 0
|
||||
typedef unsigned int uintm;
|
||||
typedef int intm;
|
||||
typedef unsigned long long uint8;
|
||||
typedef long long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint8 uintp;
|
||||
|
||||
#else // _WIN32 assumed
|
||||
|
||||
#define HOST_ENDIAN 0
|
||||
typedef unsigned long uintm;
|
||||
typedef long intm;
|
||||
typedef unsigned long long uint8;
|
||||
typedef long long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint4 uintp;
|
||||
#endif // _WIN32
|
||||
|
||||
#endif // _WINDOWS
|
||||
|
||||
#if defined( __APPLE_CC__) && defined( __ppc__)
|
||||
#define HOST_ENDIAN 1
|
||||
typedef unsigned long uintm;
|
||||
typedef long intm;
|
||||
typedef unsigned long uint8;
|
||||
typedef long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint4 uintp;
|
||||
#endif
|
||||
|
||||
#if defined( __APPLE_CC__) && defined( __i386__)
|
||||
#define HOST_ENDIAN 0
|
||||
typedef unsigned long uintm;
|
||||
typedef long intm;
|
||||
typedef unsigned long long uint8;
|
||||
typedef long long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint4 uintp;
|
||||
#endif
|
||||
|
||||
#if defined (__APPLE_CC__) && defined (__x86_64__)
|
||||
#define HOST_ENDIAN 0
|
||||
typedef unsigned int uintm;
|
||||
typedef int intm;
|
||||
typedef unsigned long uint8;
|
||||
typedef long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint8 uintp;
|
||||
#endif
|
||||
|
||||
#if defined (__APPLE_CC__) && defined (__aarch64__)
|
||||
#define HOST_ENDIAN 0
|
||||
typedef unsigned int uintm;
|
||||
typedef int intm;
|
||||
typedef unsigned long uint8;
|
||||
typedef long int8;
|
||||
typedef unsigned int uint4;
|
||||
typedef int int4;
|
||||
typedef unsigned short uint2;
|
||||
typedef short int2;
|
||||
typedef unsigned char uint1;
|
||||
typedef char int1;
|
||||
typedef uint8 uintp;
|
||||
#endif
|
||||
typedef size_t uintm;
|
||||
typedef std::make_signed<uintm>::type intm;
|
||||
typedef uint64_t uint8;
|
||||
typedef int64_t int8;
|
||||
typedef uint32_t uint4;
|
||||
typedef int32_t int4;
|
||||
typedef uint16_t uint2;
|
||||
typedef int16_t int2;
|
||||
typedef uint8_t uint1;
|
||||
typedef int8_t int1;
|
||||
typedef uintptr_t uintp;
|
||||
|
||||
#if defined(_WINDOWS)
|
||||
#pragma warning (disable:4312)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue