docs.unity.cn
    Show / Hide Table of Contents

    Method vqshrn_high_n_s64

    vqshrn_high_n_s64(v64, v128, Int32)

    Signed saturating Shift Right Narrow (immediate). This instruction reads each vector element in the source SIMD&FP register, right shifts and truncates each result by an immediate value, saturates each shifted result to a value that is half the original width, puts the final result into a vector, and writes the vector to the lower or upper half of the destination SIMD&FP register. All the values in this instruction are signed integer values. The destination vector elements are half as long as the source vector elements. For rounded results, see SQRSHRN.The SQSHRN instruction writes the vector to the lower half of the destination register and clears the upper half, while the SQSHRN2 instruction writes the vector to the upper half of the destination register without affecting the other bits of the register.If saturation occurs, the cumulative saturation bit FPSR.QC is set.Depending on the settings in the CPACR_EL1, CPTR_EL2, and CPTR_EL3 registers, and the current Security state and Exception level, an attempt to execute the instruction might be trapped.
    Equivalent instruction: SQSHRN2 Vd.4S,Vn.2D,#n

    Declaration
    public static v128 vqshrn_high_n_s64(v64 a0, v128 a1, int a2)
    Parameters
    Type Name Description
    v64 a0

    64-bit vector a0

    v128 a1

    128-bit vector a1

    Int32 a2

    Int32 a2

    Returns
    Type Description
    v128

    128-bit vector

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, August 23, 2022
    Terms of use