--- layout: stdlib-reference --- # msad4 ## Description Masked sum of absolute differences of byte alignments. This function computes the absolute differences of the byte alignments of the reference and source values, and adds them to the accumulated differences. ## Signature
vector<uint, 4> msad4( uint reference, vector<uint, 2> source, vector<uint, 4> accum);## Parameters #### reference : uint The reference 4 bytes packed in a uint. #### source : [vector](../types/vector/index.html)\