File: src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Wasm\WasmBase.PlatformNotSupported.cs
Web Access
Project: src\src\coreclr\System.Private.CoreLib\System.Private.CoreLib.csproj (System.Private.CoreLib)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Runtime.Intrinsics.Wasm
{
    internal abstract class WasmBase
    {
        /// <summary>Gets a value that indicates whether the APIs in this class are supported.</summary>
        /// <value><see langword="true" /> if the APIs are supported; otherwise, <see langword="false" />.</value>
        /// <remarks>A value of <see langword="false" /> indicates that the APIs will throw <see cref="PlatformNotSupportedException" />.</remarks>
        public static bool IsSupported => false;
 
        /// <summary>  i32.clz</summary>
        public static int LeadingZeroCount(int value) { throw new PlatformNotSupportedException(); }
 
        /// <summary>  i32.clz</summary>
        public static int LeadingZeroCount(uint value) { throw new PlatformNotSupportedException(); }
 
        /// <summary>  i64.clz</summary>
        public static int LeadingZeroCount(long value) { throw new PlatformNotSupportedException(); }
 
        /// <summary>  i64.clz</summary>
        public static int LeadingZeroCount(ulong value) { throw new PlatformNotSupportedException(); }
 
        /// <summary>  i32.ctz</summary>
        public static int TrailingZeroCount(int value) { throw new PlatformNotSupportedException(); }
 
        /// <summary>  i32.ctz</summary>
        public static int TrailingZeroCount(uint value) { throw new PlatformNotSupportedException(); }
 
        /// <summary>  i64.ctz</summary>
        public static int TrailingZeroCount(long value) { throw new PlatformNotSupportedException(); }
 
        /// <summary>  i64.ctz</summary>
        public static int TrailingZeroCount(ulong value) { throw new PlatformNotSupportedException(); }
 
    }
}