Buffer.Windows.cs 615 B

1234567891011121314151617181920212223
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. #if BIT64
  5. using nuint = System.UInt64;
  6. #else
  7. using nuint = System.UInt32;
  8. #endif
  9. namespace System
  10. {
  11. public static partial class Buffer
  12. {
  13. #if ARM64
  14. // Determine optimal value for Windows.
  15. // https://github.com/dotnet/coreclr/issues/13843
  16. private const nuint MemmoveNativeThreshold = ulong.MaxValue;
  17. #else
  18. private const nuint MemmoveNativeThreshold = 2048;
  19. #endif
  20. }
  21. }