UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VectorVMPlatformARM.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
Platforms/VectorVMPlatformBase.h
"
6
7
#if PLATFORM_CPU_ARM_FAMILY
8
9
#define VVM_pshufb(Src, Mask) vqtbl1q_u8(Src, Mask)
10
11
static
VM_FORCEINLINE
void
VVM_floatToHalf
(
void
*
output
,
float
const
*
input
)
12
{
13
float16x4_t
out0
=
vcvt_f16_f32
(
vld1q_f32
(
input
+ 0));
14
vst1_s16
((
int16_t
*)((
char
*)
output
+ 0),
out0
);
15
}
16
17
18
VM_FORCEINLINE
VectorRegister4i
VVMIntRShift
(
VectorRegister4i
v0,
VectorRegister4i
v1)
19
{
20
VectorRegister4i
res
=
vshlq_u32
(v0,
vmulq_s32
(v1,
vdupq_n_s32
(-1)));
21
return
res
;
22
}
23
24
VM_FORCEINLINE
VectorRegister4i
VVMIntLShift
(
VectorRegister4i
v0,
VectorRegister4i
v1)
25
{
26
VectorRegister4i
res
=
vshlq_u32
(v0, v1);
27
return
res
;
28
}
29
30
#endif
// PLATFORM_CPU_ARM_FAMILY
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
VectorVMPlatformBase.h
VM_FORCEINLINE
#define VM_FORCEINLINE
Definition
VectorVM.h:15
VectorRegister4Int
Definition
UnrealMathFPU.h:28
Engine
Source
Runtime
VectorVM
Private
Platforms
VectorVMPlatformARM.h
Generated by
1.9.8