summaryrefslogtreecommitdiffstats
path: root/qmake/Makefile.unix
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-03-09 11:11:32 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2020-03-16 08:21:49 +0100
commite464e1eb8eb63c631fb0916c3ea4540a88d8aad3 (patch)
treee8aec126d84650377dce21dbc2ad76b8b5e0bff6 /qmake/Makefile.unix
parentcb8eb0f86c1bbdfbd6cfa789e7596a0e05d7fe66 (diff)
Introduce always constexpr variants of qCountTrailingZeroBits
qt_builtin_ctz is unfortunately not constexpr on MSVC, so the whole function cannot be used in constexpr contexts, unless v is exactly 0. As we don't have std::is_costant_evaluated until C++20, we need to introduce a new helper function, which always works in constexpr contexts. Change-Id: I36290acb61e430d6bdb3da112a9b2263be4b9fbf Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'qmake/Makefile.unix')
0 files changed, 0 insertions, 0 deletions