Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
ScalarRegister.h File Reference
+ Include dependency graph for ScalarRegister.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ENABLE_VECTORIZED_TRANSFORM   PLATFORM_ENABLE_VECTORINTRINSICS
 
#define ScalarRegister   float
 
#define ScalarOne   1.0f
 
#define ScalarZero   0.0f
 
#define ScalarMin   Min
 
#define ScalarMax   Max
 
#define ScalarReciprocal(A)   (1.0f / (A))
 
#define NonZeroAnimWeight(A)   ((A) > ZERO_ANIMWEIGHT_THRESH)
 
#define NonOneAnimWeight(A)   ((A) < 1.0f - ZERO_ANIMWEIGHT_THRESH)
 

Macro Definition Documentation

◆ ENABLE_VECTORIZED_TRANSFORM

#define ENABLE_VECTORIZED_TRANSFORM   PLATFORM_ENABLE_VECTORINTRINSICS

This define controls whether a scalar implementation or vector implementation is used for FTransform. The vector implementation works even when using UnMathFPU, but it will be much slower than the equivalent scalar implementation, so the scalar code is maintained and enabled when vector intrinsics are off.

Definition at line 15 of file ScalarRegister.h.

◆ NonOneAnimWeight

#define NonOneAnimWeight ( A)    ((A) < 1.0f - ZERO_ANIMWEIGHT_THRESH)

Definition at line 248 of file ScalarRegister.h.

◆ NonZeroAnimWeight

#define NonZeroAnimWeight ( A)    ((A) > ZERO_ANIMWEIGHT_THRESH)

Definition at line 247 of file ScalarRegister.h.

◆ ScalarMax

#define ScalarMax   Max

Definition at line 243 of file ScalarRegister.h.

◆ ScalarMin

#define ScalarMin   Min

Definition at line 242 of file ScalarRegister.h.

◆ ScalarOne

#define ScalarOne   1.0f

Definition at line 239 of file ScalarRegister.h.

◆ ScalarReciprocal

#define ScalarReciprocal ( A)    (1.0f / (A))

Definition at line 245 of file ScalarRegister.h.

◆ ScalarRegister

#define ScalarRegister   float

Definition at line 237 of file ScalarRegister.h.

◆ ScalarZero

#define ScalarZero   0.0f

Definition at line 240 of file ScalarRegister.h.