21 Commits

Author SHA1 Message Date
Chris Robinson
a217938275 Pass a span to Compressor::process 2024-08-02 01:35:44 -07:00
Chris Robinson
a546042a32 Replace a couple for_each uses to workaround a MSVC 2019 bug 2024-08-01 18:47:18 -07:00
Chris Robinson
ef13491d15 Workaround an alignment issue for 32-bit MinGW targets
Long story short, 32-bit Windows only guarantees 8-byte alignment from malloc,
while MinGW generates a default operator new that assumes 16-byte alignment
from malloc. Forcing 32-byte alignment for affected structs will make MinGW use
the aligned operator new, ensuring correct (if excessive) alignment.
2024-07-02 14:04:21 -07:00
Chris Robinson
283b753b4d Remove a couple unnecessary includes 2024-05-07 20:27:30 -07:00
Chris Robinson
f09d9ae904 Fix implicit signedness conversion warnings on 32-bit 2024-04-04 18:12:09 -07:00
Chris Robinson
f1606c478c Use spans in place of some pointer and iterator manipulation 2024-04-02 11:52:58 -07:00
Chris Robinson
70970cfc08 Remove some custom mix/max/clamp functions 2024-02-03 23:35:26 -08:00
Chris Robinson
77a571e42a Avoid placement new for the output limiter 2023-12-31 07:58:57 -08:00
Chris Robinson
82efb29e2a Clean up some ugly pointer manipulation in the limiter 2023-12-30 06:27:33 -08:00
Chris Robinson
10ecdff7d1 Handle pointer ownership a bit better 2023-12-29 03:39:58 -08:00
Chris Robinson
bb3387b0fc Much more clang-tidy cleanup 2023-12-10 22:15:17 -08:00
Chris Robinson
decc10da2b More clang-tidy fixes 2023-12-09 10:02:27 -08:00
Chris Robinson
bfe766cd57 Use some more standard functions 2023-05-05 13:50:16 -07:00
Chris Robinson
fde74453a6 Use macros for the likely/unlikely attributes
The syntax parser for GCC 8 (and earlier?) fails when these attributes are in
certain places.
2023-03-01 11:35:39 -08:00
Chris Robinson
0de7ea42fa Avoid using auto for lambda parameters 2023-02-06 12:35:51 -08: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
4d757068c4 Avoid using a macro to wrap standard attributes 2022-12-06 01:48:58 -08:00
Chris Robinson
4de5c7dfee Avoid some uses of the LIKELY/UNLIKELY macros 2022-12-05 15:17:39 -08:00
Chris Robinson
6a9fe1e2c1 Rename lerp to avoid conflicts with C++20's std::lerp 2022-04-06 17:41:24 -07:00
Chris Robinson
e3b8f8fe27 Make a construct_at method amd use it 2021-10-08 11:05:36 -07:00
Chris Robinson
36c1589c11 Move mastering.cpp/h to core 2020-12-04 11:15:50 -08:00