docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method mpsadbw_epu8

    mpsadbw_epu8(v128, v128, int)

    Compute the sum of absolute differences (SADs) of quadruplets of unsigned 8-bit integers in "a" compared to those in "b", and store the 16-bit results in "dst".

    Declaration
    public static v128 mpsadbw_epu8(v128 a, v128 b, int imm8)
    Parameters
    Type Name Description
    v128 a

    Vector a

    v128 b

    Vector b

    int imm8

    Offset

    Returns
    Type Description
    v128

    Vector

    Remarks

    Eight SADs are performed using one quadruplet from "b" and eight quadruplets from "a". One quadruplet is selected from "b" starting at on the offset specified in "imm8". Eight quadruplets are formed from sequential 8-bit integers selected from "a" starting at the offset specified in "imm8".

    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)