git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / tests / regression / levels.h
CommitLineData
648db22b 1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 * All rights reserved.
4 *
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
9 */
10
11#ifndef LEVEL
12# error LEVEL(x) must be defined
13#endif
14#ifndef FAST_LEVEL
15# error FAST_LEVEL(x) must be defined
16#endif
17#ifndef ROW_LEVEL
18# error ROW_LEVEL(x, y) must be defined
19#endif
20
21/**
22 * The levels are chosen to trigger every strategy in every source size,
23 * as well as some fast levels and the default level.
24 * If you change the compression levels, you should probably update these.
25 */
26
27FAST_LEVEL(5)
28
29FAST_LEVEL(3)
30
31FAST_LEVEL(1)
32LEVEL(0)
33LEVEL(1)
34
35LEVEL(3)
36LEVEL(4)
37/* ROW_LEVEL triggers the row hash (force enabled and disabled) with different
38 * dictionary strategies, and 16/32/64 row entries based on the level/searchLog.
39 * 1 == enabled, 2 == disabled.
40 */
41ROW_LEVEL(5, 1)
42ROW_LEVEL(5, 2) /* 16-entry rows */
43LEVEL(5)
44LEVEL(6)
45ROW_LEVEL(7, 1)
46ROW_LEVEL(7, 2) /* 16-entry rows */
47LEVEL(7)
48
49LEVEL(9)
50
51ROW_LEVEL(11, 1)
52ROW_LEVEL(11, 2) /* 32-entry rows */
53ROW_LEVEL(12, 1)
54ROW_LEVEL(12, 2) /* 64-entry rows */
55LEVEL(13)
56
57LEVEL(16)
58
59LEVEL(19)