Interface Simd.Ops

Enclosing class:
Simd

public static interface Simd.Ops
The operations, in scalar and SIMD flavours.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a short description, such as scalar or vector 256-bit.
    int
    indexOf(byte[] a, int from, int to, byte value)
    The index of the first value in a[from, to), or -1.
    void
    xorMask(byte[] a, int off, int len, int mask)
    XORs a[off, off + len) with the 4-byte mask repeated, starting with its most significant byte: WebSocket (un)masking.
  • Method Details

    • indexOf

      int indexOf(byte[] a, int from, int to, byte value)
      The index of the first value in a[from, to), or -1.
      Parameters:
      a - the byte array to search
      from - the first array index, inclusive
      to - the last array index, exclusive
      value - the byte value to find
      Returns:
      the first matching index, or -1 if no byte matches
    • xorMask

      void xorMask(byte[] a, int off, int len, int mask)
      XORs a[off, off + len) with the 4-byte mask repeated, starting with its most significant byte: WebSocket (un)masking.
      Parameters:
      a - the byte array to modify
      off - the first byte offset to modify
      len - the number of bytes to modify
      mask - the four-byte mask, applied most significant byte first
    • description

      String description()
      Returns a short description, such as scalar or vector 256-bit.
      Returns:
      a short description, such as scalar or vector 256-bit