comparison mupdf-source/thirdparty/zxing-cpp/core/src/ZXConfig.h @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 /*
2 * Copyright 2018 Axel Waggershauser
3 */
4 // SPDX-License-Identifier: Apache-2.0
5
6 #pragma once
7
8 // Thread local or static memory may be used to reduce the number of (re-)allocations of temporary variables
9 // in e.g. the ReedSolomonDecoder. It is disabled by default. It can be enabled by modifying the following define.
10 // Note: The Apple clang compiler until XCode 8 does not support c++11's thread_local.
11 // The alternative 'static' makes the code thread unsafe.
12 // for Windows in Visual Studio 2019 on Intel 64-bit using thread_local causes a dependency to VCRUNTIME140_1.dll, so you need 2019 runtime DLLs instead of only 2015 version.
13 #define ZX_THREAD_LOCAL thread_local // '' (nothing), 'thread_local' or 'static'
14
15 // The Galoir Field abstractions used in Reed-Solomon error correction code can use more memory to eliminate a modulo
16 // operation. This improves performance but might not be the best option if RAM is scarce. The effect is a few kB big.
17 #define ZX_REED_SOLOMON_USE_MORE_MEMORY_FOR_SPEED