From 3f1a6f4ef01a194e2f48ccc26c9e136c6057e8bb Mon Sep 17 00:00:00 2001 From: Cloudwalk Date: Sat, 17 Jul 2021 23:36:55 -0400 Subject: [PATCH] qtypes: Define shorthand typenames for stdint types (i32, u32, etc). Remove the vec5+ types as we have no use for those yet --- qtypes.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/qtypes.h b/qtypes.h index 69600ec1..7e10a4fa 100644 --- a/qtypes.h +++ b/qtypes.h @@ -27,6 +27,19 @@ typedef bool qbool; #define RESTRICT #endif +typedef int8_t i8; +typedef int16_t i16; +typedef int32_t i32; +typedef int64_t i64; + +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef uint64_t u64; + +typedef intptr_t iptr; +typedef uintptr_t uptr; + // LadyHavoc: upgrade the prvm to double precision for better time values // LadyHavoc: to be enabled when bugs are worked out... //#define PRVM_64 @@ -53,9 +66,4 @@ typedef float vec_t; typedef vec_t vec2_t[2]; typedef vec_t vec3_t[3]; typedef vec_t vec4_t[4]; -typedef vec_t vec5_t[5]; -typedef vec_t vec6_t[6]; -typedef vec_t vec7_t[7]; -typedef vec_t vec8_t[8]; - #endif -- 2.39.2