@@ -14,7 +14,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components
1414 /// <summary>
1515 /// Represents a Jpeg block with <see cref="float"/> coefficients.
1616 /// </summary>
17- internal partial struct Block8x8F
17+ internal partial struct Block8x8F : IEquatable < Block8x8F >
1818 {
1919 /// <summary>
2020 /// A number of scalar coefficients in a <see cref="Block8x8F"/>
@@ -538,6 +538,27 @@ public void LoadFromInt16ExtendedAvx2(ref Block8x8 source)
538538 Unsafe . Add ( ref dRef , 7 ) = bottom;
539539 }
540540
541+ /// <inheritdoc />
542+ public bool Equals ( Block8x8F other )
543+ {
544+ return this . V0L == other . V0L
545+ && this . V0R == other . V0R
546+ && this . V1L == other . V1L
547+ && this . V1R == other . V1R
548+ && this . V2L == other . V2L
549+ && this . V2R == other . V2R
550+ && this . V3L == other . V3L
551+ && this . V3R == other . V3R
552+ && this . V4L == other . V4L
553+ && this . V4R == other . V4R
554+ && this . V5L == other . V5L
555+ && this . V5R == other . V5R
556+ && this . V6L == other . V6L
557+ && this . V6R == other . V6R
558+ && this . V7L == other . V7L
559+ && this . V7R == other . V7R ;
560+ }
561+
541562 /// <inheritdoc />
542563 public override string ToString ( )
543564 {
0 commit comments