Text file src/simd/_gen/simdgen/ops/AddSub/categories.yaml

     1  !sum
     2  - go: Add
     3    commutative: true
     4    documentation: !string |-
     5      // NAME adds corresponding elements of two vectors.
     6  - go: AddSaturated
     7    commutative: true
     8    documentation: !string |-
     9      // NAME adds corresponding elements of two vectors with saturation.
    10  - go: Sub
    11    commutative: false
    12    documentation: !string |-
    13      // NAME subtracts corresponding elements of two vectors.
    14  - go: SubSaturated
    15    commutative: false
    16    documentation: !string |-
    17      // NAME subtracts corresponding elements of two vectors with saturation.
    18  - go: AddPairs
    19    commutative: false
    20    documentation: !string |-
    21      // NAME horizontally adds adjacent pairs of elements.
    22      // For x = [x0, x1, x2, x3, ...] and y = [y0, y1, y2, y3, ...], the result is [y0+y1, y2+y3, ..., x0+x1, x2+x3, ...].
    23  - go: SubPairs
    24    commutative: false
    25    documentation: !string |-
    26      // NAME horizontally subtracts adjacent pairs of elements.
    27      // For x = [x0, x1, x2, x3, ...] and y = [y0, y1, y2, y3, ...], the result is [y0-y1, y2-y3, ..., x0-x1, x2-x3, ...].
    28  - go: AddPairsSaturated
    29    commutative: false
    30    documentation: !string |-
    31      // NAME horizontally adds adjacent pairs of elements with saturation.
    32      // For x = [x0, x1, x2, x3, ...] and y = [y0, y1, y2, y3, ...], the result is [y0+y1, y2+y3, ..., x0+x1, x2+x3, ...].
    33  - go: SubPairsSaturated
    34    commutative: false
    35    documentation: !string |-
    36      // NAME horizontally subtracts adjacent pairs of elements with saturation.
    37      // For x = [x0, x1, x2, x3, ...] and y = [y0, y1, y2, y3, ...], the result is [y0-y1, y2-y3, ..., x0-x1, x2-x3, ...].
    38  

View as plain text