Skip to content

[API Proposal]: SVE AddRotateComplex should use an enum #114685

Description

@a74nh

Background and motivation

Based on the discussion here

API Proposal

TODO: This possibly needs updating to take into account other APIs which use 0/90/180/270

namespace System.Runtime.Intrinsics.Arm

/// VectorT Summary
public abstract class Sve : AdvSimd
{
    
  /// T: float, double
  public static unsafe Vector<T> AddRotateComplex(Vector<T> op1, Vector<T> op2, enum SveRotationType rotation); 

// All possible prefetch types
  enum SveRotationType
  {
    rotate_90 = 0,   // Temporal fetch the addressed location for reading, to L1 cache.
    rotate_270 = 1,   // Streaming fetch the addressed location for reading, to L1 cache.
  };
}

API Usage

Alternative Designs

No response

Risks

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestionEarly API idea and discussion, it is NOT ready for implementationarea-System.Runtime.Intrinsicsarm-sveWork related to arm64 SVE/SVE2 support

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions