Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
FPFlushDenormals.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
8
10
11#if defined(JPH_CPU_WASM)
12
13// Not supported
14class FPFlushDenormals { };
15
16#elif defined(JPH_USE_SSE)
17
20class FPFlushDenormals : public FPControlWord<_MM_FLUSH_ZERO_ON, _MM_FLUSH_ZERO_MASK> { };
21
22#elif defined(JPH_CPU_ARM) && defined(JPH_COMPILER_MSVC)
23
24class FPFlushDenormals : public FPControlWord<_DN_FLUSH, _MCW_DN> { };
25
26#elif defined(JPH_CPU_ARM)
27
29static constexpr uint64 FP_FZ = 1 << 24;
30
33class FPFlushDenormals : public FPControlWord<FP_FZ, FP_FZ> { };
34
35#else
36
37#error Unsupported CPU architecture
38
39#endif
40
std::uint64_t uint64
Definition Core.h:457
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373