History

checkasm/sw_range_convert: reduce number of input sizes tested

Reduce input sizes to 8 (to test that the function works with widths smaller than the vector length) and 1920 (raising the largest input size to improve benchmark results).

Ramiro Polla committed 2 years ago

Commit e308d091 parent d1acd681 file · +4 −4Browse files

Unified · Split

tests/checkasm/sw_range_convert.c+4−4
@@ -31,8 +31,8 @@ · 30 unmodified lines
31static void check_lumConvertRange(int from)31static void check_lumConvertRange(int from)
32{32{
33 const char *func_str = from ? "lumRangeFromJpeg" : "lumRangeToJpeg";33 const char *func_str = from ? "lumRangeFromJpeg" : "lumRangeToJpeg";
34#define LARGEST_INPUT_SIZE 51234#define LARGEST_INPUT_SIZE 1920
35 static const int input_sizes[] = {8, 24, 128, 144, 256, 512};35 static const int input_sizes[] = {8, LARGEST_INPUT_SIZE};
36 SwsContext *sws;36 SwsContext *sws;
37 SwsInternal *c;37 SwsInternal *c;
38 38
@@ -75,8 +75,8 @@ static void check_lumConvertRange(int from) · 36 unmodified lines
75static void check_chrConvertRange(int from)75static void check_chrConvertRange(int from)
76{76{
77 const char *func_str = from ? "chrRangeFromJpeg" : "chrRangeToJpeg";77 const char *func_str = from ? "chrRangeFromJpeg" : "chrRangeToJpeg";
78#define LARGEST_INPUT_SIZE 51278#define LARGEST_INPUT_SIZE 1920
79 static const int input_sizes[] = {8, 24, 128, 144, 256, 512};79 static const int input_sizes[] = {8, LARGEST_INPUT_SIZE};
80 SwsContext *sws;80 SwsContext *sws;
81 SwsInternal *c;81 SwsInternal *c;
82 82

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t