From 0d1dfb23d6f374ff8cd048b577facd70acb1ce6b Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 19 Jun 2020 23:41:24 +0200 Subject: [PATCH] Removed aaaaaaaaaaaa-s --- .../Helpers/ParallelHelper.ForEach.IInAction2D.cs | 6 +++--- .../Helpers/ParallelHelper.ForEach.IRefAction2D.cs | 6 +++--- Microsoft.Toolkit.HighPerformance/Memory/Memory2D{T}.cs | 6 +++--- .../Memory/ReadOnlyMemory2D{T}.cs | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Microsoft.Toolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IInAction2D.cs b/Microsoft.Toolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IInAction2D.cs index 2abd685f..5f150bd7 100644 --- a/Microsoft.Toolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IInAction2D.cs +++ b/Microsoft.Toolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IInAction2D.cs @@ -91,7 +91,7 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers numBatches = Math.Min(clipBatches, cores), batchHeight = 1 + ((memory.Height - 1) / numBatches); - var actionInvoker = new InActionInvokerWithReaadOnlyMemory2D(batchHeight, memory, action); + var actionInvoker = new InActionInvokerWithReadOnlyMemory2D(batchHeight, memory, action); // Skip the parallel invocation when possible if (numBatches == 1) @@ -110,7 +110,7 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers } // Wrapping struct acting as explicit closure to execute the processing batches - private readonly struct InActionInvokerWithReaadOnlyMemory2D + private readonly struct InActionInvokerWithReadOnlyMemory2D where TAction : struct, IInAction { private readonly int batchHeight; @@ -118,7 +118,7 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers private readonly TAction action; [MethodImpl(MethodImplOptions.AggressiveInlining)] - public InActionInvokerWithReaadOnlyMemory2D( + public InActionInvokerWithReadOnlyMemory2D( int batchHeight, ReadOnlyMemory2D memory, in TAction action) diff --git a/Microsoft.Toolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IRefAction2D.cs b/Microsoft.Toolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IRefAction2D.cs index dd517233..17e81938 100644 --- a/Microsoft.Toolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IRefAction2D.cs +++ b/Microsoft.Toolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IRefAction2D.cs @@ -91,7 +91,7 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers numBatches = Math.Min(clipBatches, cores), batchHeight = 1 + ((memory.Height - 1) / numBatches); - var actionInvoker = new RefActionInvokerWithReaadOnlyMemory2D(batchHeight, memory, action); + var actionInvoker = new RefActionInvokerWithReadOnlyMemory2D(batchHeight, memory, action); // Skip the parallel invocation when possible if (numBatches == 1) @@ -110,7 +110,7 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers } // Wrapping struct acting as explicit closure to execute the processing batches - private readonly struct RefActionInvokerWithReaadOnlyMemory2D + private readonly struct RefActionInvokerWithReadOnlyMemory2D where TAction : struct, IRefAction { private readonly int batchHeight; @@ -118,7 +118,7 @@ namespace Microsoft.Toolkit.HighPerformance.Helpers private readonly TAction action; [MethodImpl(MethodImplOptions.AggressiveInlining)] - public RefActionInvokerWithReaadOnlyMemory2D( + public RefActionInvokerWithReadOnlyMemory2D( int batchHeight, Memory2D memory, in TAction action) diff --git a/Microsoft.Toolkit.HighPerformance/Memory/Memory2D{T}.cs b/Microsoft.Toolkit.HighPerformance/Memory/Memory2D{T}.cs index 234e8e80..c5e85790 100644 --- a/Microsoft.Toolkit.HighPerformance/Memory/Memory2D{T}.cs +++ b/Microsoft.Toolkit.HighPerformance/Memory/Memory2D{T}.cs @@ -403,7 +403,7 @@ namespace Microsoft.Toolkit.HighPerformance.Memory /// The height of the 2D memory area to map. /// The width of the 2D memory area to map. /// The pitch of the 2D memory area to map. - /// A instaance with the specified parameters. + /// A instance with the specified parameters. /// The parameter is not validated, and it's responsability of the caller to ensure it's valid. /// /// Thrown when is of an unsupported type. @@ -580,7 +580,7 @@ namespace Microsoft.Toolkit.HighPerformance.Memory /// Attempts to copy the current instance to a destination . /// /// The target of the copy operation. - /// Whether or not the operaation was successful. + /// Whether or not the operation was successful. public bool TryCopyTo(Memory destination) => Span.TryCopyTo(destination.Span); /// @@ -598,7 +598,7 @@ namespace Microsoft.Toolkit.HighPerformance.Memory /// For this API to succeed, the target has to have the same shape as the current one. /// /// The target of the copy operation. - /// Whether or not the operaation was successful. + /// Whether or not the operation was successful. public bool TryCopyTo(Memory2D destination) => Span.TryCopyTo(destination.Span); /// diff --git a/Microsoft.Toolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs b/Microsoft.Toolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs index 3d8146a5..d8b5e2b3 100644 --- a/Microsoft.Toolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs +++ b/Microsoft.Toolkit.HighPerformance/Memory/ReadOnlyMemory2D{T}.cs @@ -400,7 +400,7 @@ namespace Microsoft.Toolkit.HighPerformance.Memory /// The height of the 2D memory area to map. /// The width of the 2D memory area to map. /// The pitch of the 2D memory area to map. - /// A instaance with the specified parameters. + /// A instance with the specified parameters. /// The parameter is not validated, and it's responsability of the caller to ensure it's valid. /// /// Thrown when is of an unsupported type. @@ -577,7 +577,7 @@ namespace Microsoft.Toolkit.HighPerformance.Memory /// Attempts to copy the current instance to a destination . /// /// The target of the copy operation. - /// Whether or not the operaation was successful. + /// Whether or not the operation was successful. public bool TryCopyTo(Memory destination) => Span.TryCopyTo(destination.Span); /// @@ -595,7 +595,7 @@ namespace Microsoft.Toolkit.HighPerformance.Memory /// For this API to succeed, the target has to have the same shape as the current one. /// /// The target of the copy operation. - /// Whether or not the operaation was successful. + /// Whether or not the operation was successful. public bool TryCopyTo(Memory2D destination) => Span.TryCopyTo(destination.Span); ///