UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UnixPlatformMath.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
// IWYU pragma: begin_exports
3
4
/*=============================================================================================
5
LinuxPlatformMath.h: Linux platform Math functions
6
==============================================================================================*/
7
8
#pragma once
9
10
#include "
CoreTypes.h
"
11
#include "
Clang/ClangPlatformMath.h
"
12
#include "
Linux/LinuxSystemIncludes.h
"
13
#include "
Math/UnrealPlatformMathSSE4.h
"
14
18
struct
FLinuxPlatformMath
:
public
TUnrealPlatformMathSSE4Base
<FClangPlatformMath>
19
{
20
#if PLATFORM_ENABLE_VECTORINTRINSICS
21
static
UE_FORCEINLINE_HINT
bool
IsNaN(
float
A
) {
return
isnan
(
A
) != 0; }
22
static
UE_FORCEINLINE_HINT
bool
IsNaN(
double
A
) {
return
isnan
(
A
) != 0; }
23
static
UE_FORCEINLINE_HINT
bool
IsFinite
(
float
A
) {
return
isfinite
(
A
); }
24
static
UE_FORCEINLINE_HINT
bool
IsFinite
(
double
A
) {
return
isfinite
(
A
); }
25
26
#if PLATFORM_ENABLE_POPCNT_INTRINSIC
30
static
UE_FORCEINLINE_HINT
int32
CountBits(
uint64
Bits)
31
{
32
return
__builtin_popcountll
(Bits);
33
}
34
#endif
35
#endif
36
};
37
38
typedef
FLinuxPlatformMath
FPlatformMath
;
39
40
// IWYU pragma: end_exports
EMusicalNoteName::A
@ A
ClangPlatformMath.h
CoreTypes.h
int32
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition
Platform.h:1125
UE_FORCEINLINE_HINT
#define UE_FORCEINLINE_HINT
Definition
Platform.h:723
uint64
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition
Platform.h:1117
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
LinuxSystemIncludes.h
EMaterialExpressionOperatorKind::IsFinite
@ IsFinite
FPlatformMath
FLinuxPlatformMath FPlatformMath
Definition
UnixPlatformMath.h:38
UnrealPlatformMathSSE4.h
FLinuxPlatformMath
Definition
UnixPlatformMath.h:19
TUnrealPlatformMathSSE4Base
Definition
UnrealPlatformMathSSE4.h:70
Engine
Source
Runtime
Core
Public
Unix
UnixPlatformMath.h
Generated by
1.9.8