@@ -391,7 +391,7 @@ private static void Shuffle3(
391391 ref Vector128 < byte > destBase =
392392 ref Unsafe . As < byte , Vector128 < byte > > ( ref MemoryMarshal . GetReference ( dest ) ) ;
393393
394- nuint n = ( uint ) ( source . Length / Vector128 < byte > . Count ) ;
394+ nuint n = ( uint ) source . Length / ( uint ) Vector128 < byte > . Count ;
395395
396396 for ( nuint i = 0 ; i < n ; i += 3 )
397397 {
@@ -454,7 +454,7 @@ private static void Pad3Shuffle4(
454454 ref Vector128 < byte > destBase =
455455 ref Unsafe . As < byte , Vector128 < byte > > ( ref MemoryMarshal . GetReference ( dest ) ) ;
456456
457- nuint n = ( uint ) ( source . Length / Vector128 < byte > . Count ) ;
457+ nuint n = ( uint ) source . Length / ( uint ) Vector128 < byte > . Count ;
458458
459459 for ( nuint i = 0 , j = 0 ; i < n ; i += 3 , j += 4 )
460460 {
@@ -498,7 +498,7 @@ private static void Shuffle4Slice3(
498498 ref Vector128 < byte > destBase =
499499 ref Unsafe . As < byte , Vector128 < byte > > ( ref MemoryMarshal . GetReference ( dest ) ) ;
500500
501- nuint n = ( uint ) ( source . Length / Vector128 < byte > . Count ) ;
501+ nuint n = ( uint ) source . Length / ( uint ) Vector128 < byte > . Count ;
502502
503503 for ( nuint i = 0 , j = 0 ; i < n ; i += 4 , j += 3 )
504504 {
@@ -650,7 +650,7 @@ internal static unsafe void ByteToNormalizedFloat(
650650 {
651651 VerifySpanInput ( source , dest , Vector256 < byte > . Count ) ;
652652
653- nuint n = ( uint ) ( dest . Length / Vector256 < byte > . Count ) ;
653+ nuint n = ( uint ) dest . Length / ( uint ) Vector256 < byte > . Count ;
654654
655655 ref Vector256 < float > destBase =
656656 ref Unsafe . As < float , Vector256 < float > > ( ref MemoryMarshal . GetReference ( dest ) ) ;
@@ -683,7 +683,7 @@ internal static unsafe void ByteToNormalizedFloat(
683683 // Sse
684684 VerifySpanInput ( source , dest , Vector128 < byte > . Count ) ;
685685
686- nuint n = ( uint ) ( dest . Length / Vector128 < byte > . Count ) ;
686+ nuint n = ( uint ) dest . Length / ( uint ) Vector128 < byte > . Count ;
687687
688688 ref Vector128 < float > destBase =
689689 ref Unsafe . As < float , Vector128 < float > > ( ref MemoryMarshal . GetReference ( dest ) ) ;
@@ -782,7 +782,7 @@ internal static void NormalizedFloatToByteSaturate(
782782 {
783783 VerifySpanInput ( source , dest , Vector256 < byte > . Count ) ;
784784
785- nuint n = ( uint ) ( dest . Length / Vector256 < byte > . Count ) ;
785+ nuint n = ( uint ) dest . Length / ( uint ) Vector256 < byte > . Count ;
786786
787787 ref Vector256 < float > sourceBase =
788788 ref Unsafe . As < float , Vector256 < float > > ( ref MemoryMarshal . GetReference ( source ) ) ;
@@ -821,7 +821,7 @@ internal static void NormalizedFloatToByteSaturate(
821821 // Sse
822822 VerifySpanInput ( source , dest , Vector128 < byte > . Count ) ;
823823
824- nuint n = ( uint ) ( dest . Length / Vector128 < byte > . Count ) ;
824+ nuint n = ( uint ) dest . Length / ( uint ) Vector128 < byte > . Count ;
825825
826826 ref Vector128 < float > sourceBase =
827827 ref Unsafe . As < float , Vector128 < float > > ( ref MemoryMarshal . GetReference ( source ) ) ;
@@ -864,7 +864,7 @@ internal static void PackFromRgbPlanesAvx2Reduce(
864864 ref Vector256 < byte > bBase = ref Unsafe . As < byte , Vector256 < byte > > ( ref MemoryMarshal . GetReference ( blueChannel ) ) ;
865865 ref byte dBase = ref Unsafe . As < Rgb24 , byte > ( ref MemoryMarshal . GetReference ( destination ) ) ;
866866
867- nuint count = ( uint ) ( redChannel . Length / Vector256 < byte > . Count ) ;
867+ nuint count = ( uint ) redChannel . Length / ( uint ) Vector256 < byte > . Count ;
868868
869869 ref byte control1Bytes = ref MemoryMarshal . GetReference ( PermuteMaskEvenOdd8x32 ) ;
870870 Vector256 < uint > control1 = Unsafe . As < byte , Vector256 < uint > > ( ref control1Bytes ) ;
@@ -936,7 +936,7 @@ internal static void PackFromRgbPlanesAvx2Reduce(
936936 ref Vector256 < byte > bBase = ref Unsafe . As < byte , Vector256 < byte > > ( ref MemoryMarshal . GetReference ( blueChannel ) ) ;
937937 ref Vector256 < byte > dBase = ref Unsafe . As < Rgba32 , Vector256 < byte > > ( ref MemoryMarshal . GetReference ( destination ) ) ;
938938
939- nuint count = ( uint ) ( redChannel . Length / Vector256 < byte > . Count ) ;
939+ nuint count = ( uint ) redChannel . Length / ( uint ) Vector256 < byte > . Count ;
940940 ref byte control1Bytes = ref MemoryMarshal . GetReference ( PermuteMaskEvenOdd8x32 ) ;
941941 Vector256 < uint > control1 = Unsafe . As < byte , Vector256 < uint > > ( ref control1Bytes ) ;
942942 var a = Vector256 . Create ( ( byte ) 255 ) ;
0 commit comments