summaryrefslogtreecommitdiffhomepage
path: root/test/bitmask.cpp
AgeCommit message (Collapse)Author
2024-05-26use array_size instead of std::size/arraySizeStanislaw Halik
2024-05-26b cleanup includesStanislaw Halik
- remove unused includes - reorder some compat/ includes to the bottom, in order to check whether the headers correctly include them
2024-05-06test: speed up compile timeStanislaw Halik
Removes implicit includes to <windows.h> and <cr/StringView.h> from all files. Goes from 30 to 20 seconds.
2024-04-11rewrite bitmask implStanislaw Halik
It's slower than the previous version but fixes a bug when stride isn't a multiple of 8. It can be improved further by setting `auto& byte` all at once instead of setting individual bits of multiple bytes in the innermost loop. ------------------------------------------------------------ New version Time CPU Iterations ------------------------------------------------------------ Bitmask_mean 1911 us 1893 us 5 Bitmask_median 1911 us 1885 us 5 Bitmask_stddev 2.00 us 18.7 us 5 Bitmask_cv 0.10 % 0.99 % 5 ------------------------------------------------------------- ------------------------------------------------------------ Buggy version Time CPU Iterations ------------------------------------------------------------ Bitmask_mean 841 us 841 us 5 Bitmask_median 839 us 837 us 5 Bitmask_stddev 3.29 us 7.80 us 5 Bitmask_cv 0.39 % 0.93 % 5 ------------------------------------------------------------ ----------------------------------------------------------- Naive version Time CPU Iterations ------------------------------------------------------------ Bitmask_mean 4006 us 3997 us 10 Bitmask_median 4006 us 3997 us 10 Bitmask_stddev 2.29 us 0.000 us 10 Bitmask_cv 0.06 % 0.00 % 10 ------------------------------------------------------------
2024-04-11fix sprite bitmask generatorStanislaw Halik
This is WIP because it needs a more efficient algorithm.
2024-04-11aStanislaw Halik
2024-04-11aStanislaw Halik
2024-04-10aStanislaw Halik
2024-04-10testsStanislaw Halik
2024-01-11wStanislaw Halik
2024-01-11rename floor -> groundStanislaw Halik
2023-11-07aStanislaw Halik
2023-11-07aStanislaw Halik
2023-09-14remove some useless castsStanislaw Halik
2023-03-25use operator""uz c++23 polyfillStanislaw Halik
2023-03-18pre-declare integer types without cstddef/cstdintStanislaw Halik
2023-03-02test: improve bitmask testStanislaw Halik
It wasn't testing the `width0` code path.
2023-02-28test/bitmask: don't run benchmark warmup repeatedlyStanislaw Halik
2023-02-27test: add bitmask benchmarkStanislaw Halik
2023-02-27test: add sprite bitmap testStanislaw Halik