Module no_std_compat::intrinsics::simd

source ·
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

SIMD compiler intrinsics.

In this module, a “vector” is any repr(simd) type.

Functions§

  • simd_addExperimental
    Add two simd vectors elementwise.
  • simd_andExperimental
    Elementwise vector “and”.
  • simd_arith_offsetExperimental
    Elementwise calculates the offset from a pointer vector, potentially wrapping.
  • simd_asExperimental
    Numerically cast a vector, elementwise.
  • simd_bitmaskExperimental
    Truncate an integer vector to a bitmask.
  • simd_bitreverseExperimental
    Reverse bits of each element.
  • simd_bswapExperimental
    Swap bytes of each element.
  • simd_castExperimental
    Numerically cast a vector, elementwise.
  • simd_cast_ptrExperimental
    Cast a vector of pointers.
  • simd_ceilExperimental
    Round up each element to the next highest integer-valued float.
  • simd_ctlzExperimental
    Count the leading zeros of each element.
  • simd_ctpopExperimental
    Count the number of ones in each element.
  • simd_cttzExperimental
    Count the trailing zeros of each element.
  • simd_divExperimental
    Divide lhs by rhs elementwise.
  • simd_eqExperimental
    Tests elementwise equality of two vectors.
  • simd_expose_provenanceExperimental
    Expose a vector of pointers as a vector of addresses.
  • simd_extractExperimental
    Extract an element from a vector.
  • simd_fabsExperimental
    Elementwise absolute value of a vector.
  • simd_fcosExperimental
    T must be a vector of floats.
  • simd_fexpExperimental
    T must be a vector of floats.
  • simd_fexp2Experimental
    T must be a vector of floats.
  • simd_flogExperimental
    T must be a vector of floats.
  • simd_flog2Experimental
    T must be a vector of floats.
  • simd_flog10Experimental
    T must be a vector of floats.
  • simd_floorExperimental
    Round down each element to the next lowest integer-valued float.
  • simd_fmaExperimental
    Computes (x*y) + z for each element, but without any intermediate rounding.
  • simd_fmaxExperimental
    Elementwise maximum of two vectors.
  • simd_fminExperimental
    Elementwise minimum of two vectors.
  • simd_fsinExperimental
    T must be a vector of floats.
  • simd_fsqrtExperimental
    Takes the square root of each element.
  • simd_gatherExperimental
    Read a vector of pointers.
  • simd_geExperimental
    Tests if x is greater than or equal to y, elementwise.
  • simd_gtExperimental
    Tests if x is greater than y, elementwise.
  • simd_insertExperimental
    Insert an element into a vector, returning the updated vector.
  • simd_leExperimental
    Tests if x is less than or equal to y, elementwise.
  • simd_ltExperimental
    Tests if x is less than y, elementwise.
  • simd_masked_loadExperimental
    Read a vector of pointers.
  • simd_masked_storeExperimental
    Write to a vector of pointers.
  • simd_mulExperimental
    Multiply two simd vectors elementwise.
  • simd_neExperimental
    Tests elementwise inequality equality of two vectors.
  • simd_negExperimental
    Elementwise negation of a vector.
  • simd_orExperimental
    Elementwise vector “or”.
  • Add elements within a vector from left to right.
  • Add elements within a vector in arbitrary order. May also be re-associated with unordered additions on the inputs/outputs.
  • simd_reduce_allExperimental
    Check if all mask values are true.
  • simd_reduce_andExperimental
    Logical “and” all elements together.
  • simd_reduce_anyExperimental
    Check if any mask value is true.
  • simd_reduce_maxExperimental
    Return the maximum element of a vector.
  • simd_reduce_minExperimental
    Return the minimum element of a vector.
  • Multiply elements within a vector from left to right.
  • Multiply elements within a vector in arbitrary order. May also be re-associated with unordered additions on the inputs/outputs.
  • simd_reduce_orExperimental
    Logical “or” all elements together.
  • simd_reduce_xorExperimental
    Logical “exclusive or” all elements together.
  • simd_remExperimental
    Remainder of two vectors elementwise
  • simd_roundExperimental
    Round each element to the closest integer-valued float. Ties are resolved by rounding away from 0.
  • simd_saturating_addExperimental
    Add two simd vectors elementwise, with saturation.
  • simd_saturating_subExperimental
    Subtract two simd vectors elementwise, with saturation.
  • simd_scatterExperimental
    Write to a vector of pointers.
  • simd_selectExperimental
    Select elements from a mask.
  • simd_select_bitmaskExperimental
    Select elements from a bitmask.
  • simd_shlExperimental
    Elementwise vector left shift, with UB on overflow.
  • simd_shrExperimental
    Elementwise vector right shift, with UB on overflow.
  • simd_shuffleExperimental
    Shuffle two vectors by const indices.
  • simd_shuffle_genericExperimental
    Shuffle two vectors by const indices.
  • simd_subExperimental
    Subtract rhs from lhs elementwise.
  • simd_truncExperimental
    Return the integer part of each element as an integer-valued float. In other words, non-integer values are truncated towards zero.
  • Create a vector of pointers from a vector of addresses.
  • simd_xorExperimental
    Elementwise vector “exclusive or”.