From d2d5fcf07a13215c7fbe572aa423c2504b119de4 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sun, 20 Jun 2021 22:40:51 -0500 Subject: [PATCH] gs: formatting --- pcsx2/GS/GS_types.h | 62 ++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 35 deletions(-) diff --git a/pcsx2/GS/GS_types.h b/pcsx2/GS/GS_types.h index 0d0914967c..29bac58c8d 100644 --- a/pcsx2/GS/GS_types.h +++ b/pcsx2/GS/GS_types.h @@ -32,26 +32,18 @@ typedef signed long long sint64; #include +// clang-format off + #ifndef RESTRICT - -#ifdef __INTEL_COMPILER - -#define RESTRICT restrict - -#elif defined(_MSC_VER) - -#define RESTRICT __restrict - -#elif defined(__GNUC__) - -#define RESTRICT __restrict__ - -#else - -#define RESTRICT - -#endif - + #ifdef __INTEL_COMPILER + #define RESTRICT restrict + #elif defined(_MSC_VER) + #define RESTRICT __restrict + #elif defined(__GNUC__) + #define RESTRICT __restrict__ + #else + #define RESTRICT + #endif #endif #ifdef _WIN32 @@ -101,9 +93,9 @@ extern void vmfree(void* ptr, size_t size); #define countof(a) (sizeof(a) / sizeof(a[0])) #ifdef __cpp_constinit -#define CONSTINIT constinit + #define CONSTINIT constinit #else -#define CONSTINIT + #define CONSTINIT #endif #define ASSERT assert @@ -111,23 +103,23 @@ extern void vmfree(void* ptr, size_t size); // sse #if defined(__GNUC__) -// Convert gcc see define into GS (windows) define -#if defined(__AVX2__) -#if defined(__x86_64__) -#define _M_SSE 0x500 // TODO -#else -#define _M_SSE 0x501 -#endif -#elif defined(__AVX__) -#define _M_SSE 0x500 -#elif defined(__SSE4_1__) -#define _M_SSE 0x401 -#endif + // Convert gcc see define into GS (windows) define + #if defined(__AVX2__) + #if defined(__x86_64__) + #define _M_SSE 0x500 // TODO + #else + #define _M_SSE 0x501 + #endif + #elif defined(__AVX__) + #define _M_SSE 0x500 + #elif defined(__SSE4_1__) + #define _M_SSE 0x401 + #endif #endif #if !defined(_M_SSE) && (!defined(_WIN32) || defined(_M_AMD64) || defined(_M_IX86_FP) && _M_IX86_FP >= 2) -#define _M_SSE 0x401 + #define _M_SSE 0x401 -#endif \ No newline at end of file +#endif