KiCad PCB EDA Suite
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Mark Roszko <[email protected]>
3 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
4 * Copyright (C) 2007 Ecma International (original Java source)
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 * License info found here:
19 * https://www.loc.gov/preservation/digital/formats/fdd/fdd000491.shtml
20 */
21
22
23#pragma once
24
25#include <cstdint>
26
27namespace U3D
28{
30{
31public:
35 static const uint32_t Context8 = 0;
36
41 static const uint32_t HalfMask = 0x00008000;
45 static const uint32_t NotHalfMask = 0x00007FFF;
49 static const uint32_t QuarterMask = 0x00004000;
53 static const uint32_t NotThreeQuarterMask = 0x00003FFF;
57 static const uint32_t StaticFull = 0x00000400;
62 static const uint32_t MaxRange = StaticFull + 0x00003FFF;
63
64 static const uint32_t Swap8[];
65};
66} // namespace U3D
static const uint32_t NotThreeQuarterMask
Masks the 2 most significant bits.
Definition constants.h:53
static const uint32_t MaxRange
The largest allowable static context.
Definition constants.h:62
static const uint32_t StaticFull
Contexts greater than this are static contexts.
Definition constants.h:57
static const uint32_t Swap8[]
Definition constants.h:25
static const uint32_t NotHalfMask
Masks the most significant bit.
Definition constants.h:45
static const uint32_t Context8
Uncompressed U8 Context.
Definition constants.h:35
static const uint32_t HalfMask
Bit masks for reading and writing symbols.
Definition constants.h:41
static const uint32_t QuarterMask
Masks all but the 2nd most significan bit.
Definition constants.h:49