Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Clang
Inheritance Hierarchy
- FGenericPlatformMath
- FClangPlatformMath
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Clang/ClangPlatformMath.h |
| Include | #include "Clang/ClangPlatformMath.h" |
Syntax
struct FClangPlatformMath : public FGenericPlatformMath
Remarks
Clang implementation of math functions
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddAndCheckForOverflow
(
IntType A, |
Adds two integers of any integer type, checking for overflow. | |
| uint32 | CountLeadingZeros
(
uint32 Value |
Counts the number of leading zeros in the bit representation of the value | |
| uint64 | CountLeadingZeros64
(
uint64 Value |
Counts the number of leading zeros in the bit representation of the value | |
| uint8 | CountLeadingZeros8
(
uint8 Value |
Counts the number of leading zeros in the bit representation of the value | |
| uint32 | CountTrailingZeros
(
uint32 Value |
Counts the number of trailing zeros in the bit representation of the value | |
| uint64 | CountTrailingZeros64
(
uint64 Value |
Counts the number of trailing zeros in the bit representation of the value | |
| uint32 | |||
| uint64 | FloorLog2_64
(
uint64 Value |
||
| uint32 | FloorLog2NonZero
(
uint32 Value |
||
| uint64 | FloorLog2NonZero_64
(
uint64 Value |
||
| bool | MultiplyAndCheckForOverflow
(
IntType A, |
Multiplies two integers of any integer type, checking for overflow. | |
| bool | SubtractAndCheckForOverflow
(
IntType A, |
Subtracts two integers of any integer type, checking for overflow. |