docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method mm256_round_pd

    mm256_round_pd(v256, int)

    Round the packed double-precision (64-bit) floating-point elements in a using the rounding parameter, and store the results as packed double-precision floating-point elements in dst.

    Declaration
    public static v256 mm256_round_pd(v256 a, int rounding)
    Parameters
    Type Name Description
    v256 a

    Vector a

    int rounding

    Rounding mode

    Returns
    Type Description
    v256

    Vector

    Remarks

    **** VROUNDPD ymm1,ymm2/v256,imm8 Rounding is done according to the rounding parameter, which can be one of: (_MM_FROUND_TO_NEAREST_INT |_MM_FROUND_NO_EXC) // round to nearest, and suppress exceptions (_MM_FROUND_TO_NEG_INF |_MM_FROUND_NO_EXC) // round down, and suppress exceptions (_MM_FROUND_TO_POS_INF |_MM_FROUND_NO_EXC) // round up, and suppress exceptions (_MM_FROUND_TO_ZERO |_MM_FROUND_NO_EXC) // truncate, and suppress exceptions _MM_FROUND_CUR_DIRECTION // use MXCSR.RC; see _MM_SET_ROUNDING_MODE

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)