Skip to content

Commit f4cabf2

Browse files
committed
ImageMaths -> Numerics
1 parent 3298603 commit f4cabf2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ internal static void PackBytesToUInt32SaturateChannel4Reduce(
802802

803803
if (Avx2.IsSupported)
804804
{
805-
int remainder = ImageMaths.ModuloP2(channel1.Length, Vector256<byte>.Count);
805+
int remainder = Numerics.ModuloP2(channel1.Length, Vector256<byte>.Count);
806806
int adjustedCount = channel1.Length - remainder;
807807

808808
if (adjustedCount > 0)
@@ -888,7 +888,7 @@ internal static void PackBytesToUInt24Reduce(
888888

889889
if (Avx2.IsSupported)
890890
{
891-
int remainder = ImageMaths.ModuloP2(channel0.Length, Vector256<byte>.Count);
891+
int remainder = Numerics.ModuloP2(channel0.Length, Vector256<byte>.Count);
892892
int adjustedCount = channel0.Length - remainder;
893893

894894
if (adjustedCount > 0)

src/ImageSharp/Common/Helpers/SimdUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ private static void VerifySpanInput(ReadOnlySpan<byte> source, Span<byte> dest,
313313
{
314314
DebugGuard.IsTrue(source.Length == dest.Length, nameof(source), "Input spans must be of same length!");
315315
DebugGuard.IsTrue(
316-
ImageMaths.ModuloP2(dest.Length, shouldBeDivisibleBy) == 0,
316+
Numerics.ModuloP2(dest.Length, shouldBeDivisibleBy) == 0,
317317
nameof(source),
318318
$"length should be divisible by {shouldBeDivisibleBy}!");
319319
}

0 commit comments

Comments
 (0)