Loading [MathJax]/jax/output/HTML-CSS/config.js
Jolt Physics
A multi core friendly Game Physics Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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) || defined(JPH_CPU_RISCV) || defined(JPH_CPU_PPC) || defined(JPH_CPU_LOONGARCH)
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
26class FPFlushDenormals : public FPControlWord<_DN_FLUSH, _MCW_DN> { };
27
28#elif defined(JPH_CPU_ARM)
29
31static constexpr uint64 FP_FZ = 1 << 24;
32
35class FPFlushDenormals : public FPControlWord<FP_FZ, FP_FZ> { };
36
37#else
38
39#error Unsupported CPU architecture
40
41#endif
42
std::uint64_t uint64
Definition Core.h:485
#define JPH_NAMESPACE_END
Definition Core.h:414
#define JPH_NAMESPACE_BEGIN
Definition Core.h:408