Skip to content

Commit 277cf61

Browse files
Remove unused method
1 parent 71ca954 commit 277cf61

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

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

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -616,44 +616,6 @@ public static Vector256<float> MultiplyAdd(
616616
return Fma.MultiplyAdd(vm1, vm0, va);
617617
}
618618

619-
if (Avx.IsSupported)
620-
{
621-
return Avx.Add(Avx.Multiply(vm0, vm1), va);
622-
}
623-
624-
return va + (vm0 * vm1);
625-
}
626-
627-
/// <summary>
628-
/// Performs a multiplication and an addition of the <see cref="Vector128{Single}"/>.
629-
/// TODO: Fix. The arguments are in a different order to the FMA intrinsic.
630-
/// </summary>
631-
/// <remarks>ret = (vm0 * vm1) + va</remarks>
632-
/// <param name="va">The vector to add to the intermediate result.</param>
633-
/// <param name="vm0">The first vector to multiply.</param>
634-
/// <param name="vm1">The second vector to multiply.</param>
635-
/// <returns>The <see cref="Vector256{T}"/>.</returns>
636-
[MethodImpl(InliningOptions.AlwaysInline)]
637-
public static Vector128<float> MultiplyAdd(
638-
Vector128<float> va,
639-
Vector128<float> vm0,
640-
Vector128<float> vm1)
641-
{
642-
if (Fma.IsSupported)
643-
{
644-
return Fma.MultiplyAdd(vm1, vm0, va);
645-
}
646-
647-
if (AdvSimd.IsSupported)
648-
{
649-
return AdvSimd.Add(AdvSimd.Multiply(vm0, vm1), va);
650-
}
651-
652-
if (Sse.IsSupported)
653-
{
654-
return Sse.Add(Sse.Multiply(vm0, vm1), va);
655-
}
656-
657619
return va + (vm0 * vm1);
658620
}
659621

0 commit comments

Comments
 (0)