7 Commits

Author SHA1 Message Date
Chris Robinson
7cda37a67c Replace al::optional with std::optional 2023-05-04 08:03:40 -07:00
Chris Robinson
40483b5122 Use std::optional instead of a custom implementation 2023-05-04 07:30:33 -07:00
Rosen Penev
0526ecd2f9 clang-tidy cleanups (#800)
* clang-tidy: use bool literals

Found with modernize-use-bool-literals

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* clang-tidy: replace std::bind with lambdas

Found with modernize-avoid-bind

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* clang-tidy: use data() instead of pointer stuff

Found with readability-container-data-pointe

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* clang-tidy: use empty()

Found with readability-container-size-empty

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* clang-tidy: remove static in anon namespace

Found with readability-static-definition-in-anonymous-namespace

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* clang-tidy: remove const return

Found with readability-const-return-type

Signed-off-by: Rosen Penev <rosenp@gmail.com>

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-15 13:43:27 -08:00
Chris Robinson
974d1b9e6d Avoid unnecessary uses of make_optional 2023-01-13 01:25:20 -08:00
Chris Robinson
fcc73d3324 Avoid including intrin.h with cpuid.h
On certain versions of MinGW, that leads to a redefinition errors.
2022-06-17 14:36:34 -07:00
Chris Robinson
537fd6d0a1 Avoid dereferencing the end iterator 2021-01-08 18:51:25 -08:00
Chris Robinson
20ef8bf390 Move cpu_caps and fpu_ctrl to core 2020-12-31 16:47:12 -08:00