Skip to content

Commit 86112ff

Browse files
committed
Add check for Avx2 in ResizeKernel, fix #1546
1 parent 3be7ad0 commit 86112ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Processing/Processors/Transforms/Resize/ResizeKernel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public Vector4 Convolve(Span<Vector4> rowSpan)
7272
public Vector4 ConvolveCore(ref Vector4 rowStartRef)
7373
{
7474
#if SUPPORTS_RUNTIME_INTRINSICS
75-
if (Fma.IsSupported)
75+
if (Avx2.IsSupported && Fma.IsSupported)
7676
{
7777
float* bufferStart = this.bufferPtr;
7878
float* bufferEnd = bufferStart + (this.Length & ~3);

0 commit comments

Comments
 (0)