9 Commits

Author SHA1 Message Date
Glyn Leine
a752d920d1
constexpr functions are not allowed to have static variables, and if they are constexpr anyways then them being static has no benifit (#677) 2022-03-29 08:46:49 -07:00
Chris Robinson
cadf0d1de5 Make some local constexpr variables static 2022-02-23 01:29:28 -08:00
Chris Robinson
7176247529 Avoid an implicit char-to-bool conversion 2022-02-23 00:04:29 -08:00
Chris Robinson
d06ed618d3 Avoid using an if_constexpr macro
It doesn't actually use if constexpr, and compilers are smart enough to
optimize. Some functions can use templates instead.
2022-02-22 03:03:44 -08:00
Chris Robinson
72ddb6351e Rename some variables to show the relevant bit pattern 2022-02-22 00:53:58 -08:00
Chris Robinson
0f7ed495e1 Use a fast native type for the backup popcount 2021-03-02 22:58:36 -08:00
Chris Robinson
cff3693387 Use if constexpr when possible 2021-01-22 05:50:27 -08:00
Chris Robinson
da59ad5105 Make PopCount and CountTrailingZeros more standard-like 2021-01-22 04:58:42 -08:00
Chris Robinson
5729e1004d Make the endian test more C++-like 2021-01-21 23:21:18 -08:00