CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/ppsspp_config.h
Views: 1400
#pragma once12// This file is included by C, C++ and ASM files3// So do not output any token!45#define PPSSPP_ARCH(PPSSPP_FEATURE) (PPSSPP_ARCH_##PPSSPP_FEATURE)6#define PPSSPP_PLATFORM(PPSSPP_FEATURE) (PPSSPP_PLATFORM_##PPSSPP_FEATURE)7#define PPSSPP_API(PPSSPP_FEATURE) (PPSSPP_API_##PPSSPP_FEATURE)89// ARCH defines10#if defined(_M_IX86) || defined(__i386__) || defined (__EMSCRIPTEN__)11#define PPSSPP_ARCH_X86 112#define PPSSPP_ARCH_32BIT 113#define PPSSPP_ARCH_SSE2 114//TODO: Remove this compat define15#ifndef _M_IX8616#define _M_IX86 60017#endif18#endif1920#if (defined(_M_X64) || defined(__amd64__) || defined(__x86_64__)) && !defined(__EMSCRIPTEN__)21#define PPSSPP_ARCH_AMD64 122#define PPSSPP_ARCH_SSE2 123#if defined(__ILP32__)24#define PPSSPP_ARCH_32BIT 125#else26#define PPSSPP_ARCH_64BIT 127#endif28//TODO: Remove this compat define29#ifndef _M_X6430#define _M_X64 131#endif32#endif3334#if defined(__arm__) || defined(_M_ARM)35#define PPSSPP_ARCH_ARM 136#define PPSSPP_ARCH_32BIT 13738#if defined(__ARM_ARCH_7__) || \39defined(__ARM_ARCH_7A__) || \40defined(__ARM_ARCH_7S__)41#define PPSSPP_ARCH_ARMV7 142#endif4344#if defined(__ARM_ARCH_7S__)45#define PPSSPP_ARCH_ARMV7S 146#endif4748#if defined(__ARM_NEON) || defined(__ARM_NEON__)49#define PPSSPP_ARCH_ARM_NEON 150#endif5152#if defined(_M_ARM)53#define PPSSPP_ARCH_ARMV7 154#define PPSSPP_ARCH_ARM_NEON 155#endif56#endif5758#if defined(__aarch64__) || defined(_M_ARM64)59#define PPSSPP_ARCH_ARM64 160#define PPSSPP_ARCH_64BIT 161#define PPSSPP_ARCH_ARM_NEON 1 // Applies to both ARM32 and ARM6462#define PPSSPP_ARCH_ARM64_NEON 163#endif6465#if defined(__mips64__)66#define PPSSPP_ARCH_MIPS64 167#define PPSSPP_ARCH_64BIT 168#elif defined(__mips__)69#define PPSSPP_ARCH_MIPS 170#define PPSSPP_ARCH_32BIT 171#endif7273#if defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 6474//https://github.com/riscv/riscv-c-api-doc/blob/master/riscv-c-api.md75#define PPSSPP_ARCH_RISCV64 176#define PPSSPP_ARCH_64BIT 177#endif7879#if defined(__loongarch_lp64)80//https://github.com/gcc-mirror/gcc/blob/master/gcc/config/loongarch/loongarch-c.cc81#define PPSSPP_ARCH_LOONGARCH64 182#define PPSSPP_ARCH_64BIT 183#endif8485// PLATFORM defines86#if defined(_WIN32)87// Covers both 32 and 64bit Windows88#define PPSSPP_PLATFORM_WINDOWS 189#ifdef _M_ARM90#define PPSSPP_ARCH_ARM_HARDFP 191#endif92// UWP trickery93#if defined(WINAPI_FAMILY) && defined(WINAPI_FAMILY_PARTITION)94#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP95#define PPSSPP_PLATFORM_UWP 196#endif97#endif98#elif defined(__APPLE__)99#include <TargetConditionals.h>100#if TARGET_IPHONE_SIMULATOR101#define PPSSPP_PLATFORM_IOS 1102#define PPSSPP_PLATFORM_IOS_SIMULATOR 1103#elif TARGET_OS_IPHONE104#define PPSSPP_PLATFORM_IOS 1105#elif TARGET_OS_MAC106#define PPSSPP_PLATFORM_MAC 1107#else108#error "Unknown Apple platform"109#endif110#elif defined(__SWITCH__)111#define PPSSPP_PLATFORM_SWITCH 1112#elif defined(__ANDROID__)113#define PPSSPP_PLATFORM_ANDROID 1114#define PPSSPP_PLATFORM_LINUX 1115#elif defined(__linux__)116#define PPSSPP_PLATFORM_LINUX 1117#elif defined(__OpenBSD__)118#define PPSSPP_PLATFORM_OPENBSD 1119#endif120121// Windows ARM/ARM64, and Windows UWP (all), are the only platform that don't do GL at all (until Apple finally removes it)122#if !PPSSPP_PLATFORM(WINDOWS) || ((!PPSSPP_ARCH(ARM) && !PPSSPP_ARCH(ARM64)) && !PPSSPP_PLATFORM(UWP))123#define PPSSPP_API_ANY_GL 1124#endif125126#if PPSSPP_PLATFORM(WINDOWS)127#if !PPSSPP_PLATFORM(UWP)128#define PPSSPP_API_D3D9 1129#endif130#define PPSSPP_API_D3D11 1131#endif132133134135