Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ConfigurationString.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2023 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
8
10inline const char *GetConfigurationString()
11{
12 return JPH_IF_SINGLE_PRECISION_ELSE("Single", "Double") " precision "
13#if defined(JPH_CPU_X86)
14 "x86 "
15#elif defined(JPH_CPU_ARM)
16 "ARM "
17#elif defined(JPH_PLATFORM_WASM)
18 "WASM "
19#endif
20#if JPH_CPU_ADDRESS_BITS == 64
21 "64-bit "
22#elif JPH_CPU_ADDRESS_BITS == 32
23 "32-bit "
24#endif
25 "with instructions: "
26#ifdef JPH_USE_NEON
27 "NEON "
28#endif
29#ifdef JPH_USE_SSE
30 "SSE2 "
31#endif
32#ifdef JPH_USE_SSE4_1
33 "SSE4.1 "
34#endif
35#ifdef JPH_USE_SSE4_2
36 "SSE4.2 "
37#endif
38#ifdef JPH_USE_AVX
39 "AVX "
40#endif
41#ifdef JPH_USE_AVX2
42 "AVX2 "
43#endif
44#ifdef JPH_USE_AVX512
45 "AVX512 "
46#endif
47#ifdef JPH_USE_F16C
48 "F16C "
49#endif
50#ifdef JPH_USE_LZCNT
51 "LZCNT "
52#endif
53#ifdef JPH_USE_TZCNT
54 "TZCNT "
55#endif
56#ifdef JPH_USE_FMADD
57 "FMADD "
58#endif
59#ifdef JPH_CROSS_PLATFORM_DETERMINISTIC
60 "(Cross Platform Deterministic) "
61#endif
62#ifdef JPH_FLOATING_POINT_EXCEPTIONS_ENABLED
63 "(FP Exceptions) "
64#endif
65#ifdef _DEBUG
66 "(Debug) "
67#endif
68 ;
69}
70
JPH_NAMESPACE_BEGIN const char * GetConfigurationString()
Construct a string that lists the most important configuration settings.
Definition: ConfigurationString.h:10
#define JPH_NAMESPACE_END
Definition: Core.h:367
#define JPH_IF_SINGLE_PRECISION_ELSE(s, d)
Definition: Core.h:504
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361