Krita Source Code Documentation
Loading...
Searching...
No Matches
KoMultiArchBuildSupport.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
9#include <KConfigGroup>
10#include <KSharedConfig>
11#include <kis_debug.h>
12
13
14std::tuple<bool, bool> vectorizationConfiguration()
15{
16 static const std::tuple<bool, bool> vectorization = [&]() {
17 KConfigGroup cfg = KSharedConfig::openConfig()->group("");
18 // use the old key name for compatibility
19 const bool useVectorization =
20 !cfg.readEntry("amdDisableVectorWorkaround", false);
21 const bool disableAVXOptimizations =
22 cfg.readEntry("disableAVXOptimizations", false);
23
24 return std::make_tuple(useVectorization, disableAVXOptimizations);
25 }();
26
27 return vectorization;
28}
std::tuple< bool, bool > vectorizationConfiguration()