docs.unity.cn
    Show / Hide Table of Contents

    Method vcvtas_s32_f32

    vcvtas_s32_f32(Single)

    Floating-point Convert to Signed integer, rounding to nearest with ties to Away (vector). This instruction converts each element in a vector from a floating-point value to a signed integer value using the Round to Nearest with Ties to Away rounding mode and writes the result to the SIMD&FP destination register.A floating-point exception can be generated by this instruction. Depending on the settings in FPCR, the exception results in either a flag being set in FPSR, or a synchronous exception being generated. For more information, see Floating-point exception traps.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: FCVTAS Sd,Sn

    Declaration
    public static int vcvtas_s32_f32(float a0)
    Parameters
    Type Name Description
    Single a0

    Single a0

    Returns
    Type Description
    Int32

    Int32

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, June 9, 2022
    Terms of use