File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -633,7 +633,7 @@ static BMK_benchOutcome_t BMK_benchMemAdvancedNoAlloc(
633
633
}
634
634
635
635
{
636
- int const ratioAccuracy = (ratio < 10 . ) ? 3 : 2 ;
636
+ int const ratioDigits = 1 + (ratio < 100 . ) + ( ratio < 10. ) ;
637
637
assert (cSize < UINT_MAX );
638
638
OUTPUTLEVEL (
639
639
2 ,
@@ -642,7 +642,7 @@ static BMK_benchOutcome_t BMK_benchMemAdvancedNoAlloc(
642
642
displayName ,
643
643
(unsigned )srcSize ,
644
644
(unsigned )cSize ,
645
- ratioAccuracy ,
645
+ ratioDigits ,
646
646
ratio ,
647
647
benchResult .cSpeed < (10 * MB_UNIT ) ? 2 : 1 ,
648
648
(double )benchResult .cSpeed / MB_UNIT );
@@ -669,15 +669,15 @@ static BMK_benchOutcome_t BMK_benchMemAdvancedNoAlloc(
669
669
}
670
670
671
671
{
672
- int const ratioAccuracy = (ratio < 10 . ) ? 3 : 2 ;
672
+ int const ratioDigits = 1 + (ratio < 100 . ) + ( ratio < 10. ) ;
673
673
OUTPUTLEVEL (
674
674
2 ,
675
675
"%2s-%-17.17s :%10u ->%10u (x%5.*f), %6.*f MB/s, %6.1f MB/s\r" ,
676
676
marks [markNb ],
677
677
displayName ,
678
678
(unsigned )srcSize ,
679
679
(unsigned )cSize ,
680
- ratioAccuracy ,
680
+ ratioDigits ,
681
681
ratio ,
682
682
benchResult .cSpeed < (10 * MB_UNIT ) ? 2 : 1 ,
683
683
(double )benchResult .cSpeed / MB_UNIT ,
You can’t perform that action at this time.
0 commit comments