diff options
| author | kyleburnette <kyle@kyleburnette.com> | 2021-02-23 20:08:16 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-23 23:08:16 -0500 |
| commit | e0164dba144220fb67b2385ec760fa85535faf6a (patch) | |
| tree | a8fcf9a233dfd30a3497ac11cde4f791bde4aa21 /include | |
| parent | 0481c23e75f26f3e59843727a63b3781f5419141 (diff) | |
Fixed ultratypes.h (#48)
* fixed ultratypes.h
* fixed ultratypes.h
Diffstat (limited to 'include')
| -rw-r--r-- | include/PR/ultratypes.h | 47 |
1 files changed, 29 insertions, 18 deletions
diff --git a/include/PR/ultratypes.h b/include/PR/ultratypes.h index d648e9b1d..59db81ccb 100644 --- a/include/PR/ultratypes.h +++ b/include/PR/ultratypes.h @@ -1,32 +1,43 @@ #ifndef _ULTRATYPES_H_ #define _ULTRATYPES_H_ -typedef unsigned char u8; -typedef unsigned short u16; -typedef unsigned long u32; -typedef unsigned long long u64; -typedef signed char s8; -typedef short s16; -typedef long s32; -typedef long long s64; +typedef signed char s8; +typedef unsigned char u8; +typedef signed short int s16; +typedef unsigned short int u16; +typedef signed int s32; +typedef unsigned int u32; +typedef signed long long int s64; +typedef unsigned long long int u64; -typedef volatile unsigned char vu8; -typedef volatile unsigned short vu16; -typedef volatile unsigned long vu32; -typedef volatile unsigned long long vu64; -typedef volatile signed char vs8; -typedef volatile short vs16; -typedef volatile long vs32; -typedef volatile long long vs64; +typedef volatile u8 vu8; +typedef volatile u16 vu16; +typedef volatile u32 vu32; +typedef volatile u64 vu64; +typedef volatile s8 vs8; +typedef volatile s16 vs16; +typedef volatile s32 vs32; +typedef volatile s64 vs64; typedef float f32; typedef double f64; + typedef long int Mtx_t[4][4]; -typedef union -{ +typedef union { Mtx_t m; long long int forc_structure_alignment; } Mtx; +typedef float MtxF_t[4][4]; +typedef union { + MtxF_t mf; + struct { + float xx, xy, xz, xw, + yx, yy, yz, yw, + zx, zy, zz, zw, + wx, wy, wz, ww; + }; +} MtxF; + #endif |
