e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace System.Numerics
|
|
{
|
|
/// <summary>
|
|
/// Contains various methods useful for creating, manipulating, combining, and converting generic vectors with one another.
|
|
/// </summary>
|
|
internal static class Vector
|
|
{
|
|
// Every operation must either be a JIT intrinsic or implemented over a JIT intrinsic
|
|
// as a thin wrapper
|
|
// Operations implemented over a JIT intrinsic should be inlined
|
|
// Methods that do not have a <T> type parameter are recognized as intrinsics
|
|
/// <summary>
|
|
/// Returns whether or not vector operations are subject to hardware acceleration through JIT intrinsic support.
|
|
/// </summary>
|
|
[JitIntrinsic]
|
|
public static bool IsHardwareAccelerated
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|