Browse Source

Move BitOperations to namespace System.Numerics.

pull/3111/head
Daniel Grunwald 2 years ago
parent
commit
e84df3ff20
  1. 6
      ICSharpCode.Decompiler/Util/BitOperations.cs
  2. 1
      ICSharpCode.Decompiler/Util/BitSet.cs

6
ICSharpCode.Decompiler/Util/BitOperations.cs

@ -2,9 +2,10 @@
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace ICSharpCode.Decompiler.Util #if !NETCORE
namespace System.Numerics
{ {
internal class BitOperations internal static class BitOperations
{ {
private static ReadOnlySpan<byte> TrailingZeroCountDeBruijn => new byte[32] private static ReadOnlySpan<byte> TrailingZeroCountDeBruijn => new byte[32]
{ {
@ -48,3 +49,4 @@ namespace ICSharpCode.Decompiler.Util
} }
} }
} }
#endif

1
ICSharpCode.Decompiler/Util/BitSet.cs

@ -20,6 +20,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Numerics;
using System.Text; using System.Text;
namespace ICSharpCode.Decompiler.Util namespace ICSharpCode.Decompiler.Util

Loading…
Cancel
Save