File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed
src/ImageSharp/Common/Helpers Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -616,44 +616,6 @@ public static Vector256<float> MultiplyAdd(
616
616
return Fma . MultiplyAdd ( vm1 , vm0 , va ) ;
617
617
}
618
618
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
-
657
619
return va + ( vm0 * vm1 ) ;
658
620
}
659
621
You can’t perform that action at this time.
0 commit comments