Skip to content

Commit 57549d5

Browse files
committed
Add static range coder
1 parent 945ddda commit 57549d5

File tree

8 files changed

+1850
-1089
lines changed

8 files changed

+1850
-1089
lines changed

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# License
2+
This software is distributed under two licenses, choose whichever you like.
3+
4+
## MIT License
5+
Copyright (c) 2020 Takuro Sakai
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8+
9+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12+
13+
## Public Domain
114
This is free and unencumbered software released into the public domain.
215

316
Anyone is free to copy, modify, publish, use, compile, sell, or

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ cmake -DUSE_SIMD=1 ..
7575
```
7676

7777
# License
78-
This is free and unencumbered software released into the public domain.
78+
This software is distributed under two licenses 'The MIT License' or 'Public Domain', choose whichever you like.

_clang-format

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
---
2+
Language: Cpp
3+
BasedOnStyle: Chromium
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: false
7+
#AlignConsecutiveBitFields: false
8+
AlignConsecutiveDeclarations: false
9+
AlignConsecutiveMacros: false
10+
AlignEscapedNewlines: DontAlign
11+
AlignOperands: true
12+
AlignTrailingComments: true
13+
AllowAllArgumentsOnNextLine: false
14+
AllowAllConstructorInitializersOnNextLine: false
15+
AllowAllParametersOfDeclarationOnNextLine: false
16+
AllowShortBlocksOnASingleLine: false
17+
AllowShortCaseLabelsOnASingleLine: false
18+
#AllowShortEnumsOnASingleLine: false
19+
AllowShortFunctionsOnASingleLine: Empty
20+
AllowShortIfStatementsOnASingleLine: false
21+
AllowShortLambdasOnASingleLine: Empty
22+
AllowShortLoopsOnASingleLine: true
23+
AlwaysBreakAfterReturnType: None
24+
AlwaysBreakBeforeMultilineStrings: false
25+
AlwaysBreakTemplateDeclarations: MultiLine
26+
BinPackArguments: true
27+
BinPackParameters: true
28+
#BitFieldColonSpacing: Both
29+
BreakBeforeBraces: Custom
30+
BraceWrapping:
31+
AfterCaseLabel: false
32+
AfterClass: true
33+
AfterControlStatement: false
34+
AfterEnum: true
35+
AfterFunction: true
36+
AfterNamespace: true
37+
AfterObjCDeclaration: false
38+
AfterStruct: true
39+
AfterUnion: true
40+
AfterExternBlock: true
41+
BeforeCatch: false
42+
BeforeElse: false
43+
# BeforeLambdaBody: false
44+
# BeforeWhile: false
45+
IndentBraces: false
46+
SplitEmptyFunction: true
47+
SplitEmptyRecord: true
48+
SplitEmptyNamespace: true
49+
BreakAfterJavaFieldAnnotations: false
50+
BreakBeforeBinaryOperators: NonAssignment
51+
BreakBeforeTernaryOperators: true
52+
BreakConstructorInitializers: BeforeComma
53+
BreakInheritanceList: BeforeComma
54+
BreakStringLiterals: true
55+
ColumnLimit: 0
56+
CommentPragmas: '^ IWYU pragma:'
57+
CompactNamespaces: false
58+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
59+
ConstructorInitializerIndentWidth: 4
60+
ContinuationIndentWidth: 4
61+
Cpp11BracedListStyle: true
62+
DeriveLineEnding: false
63+
DerivePointerAlignment: false
64+
DisableFormat: false
65+
ExperimentalAutoDetectBinPacking: false
66+
FixNamespaceComments: true
67+
ForEachMacros: []
68+
IncludeBlocks: Preserve
69+
IncludeCategories:
70+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
71+
Priority: 2
72+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
73+
Priority: 3
74+
- Regex: '.*'
75+
Priority: 1
76+
IncludeIsMainRegex: '(Test)?$'
77+
#IndentCaseBlocks: false
78+
IndentCaseLabels: false
79+
#IndentExternBlock: true
80+
#IndentGotoLabels: false
81+
IndentPPDirectives: AfterHash
82+
IndentWidth: 4
83+
IndentWrappedFunctionNames: false
84+
#InsertTrailingCommas: true
85+
KeepEmptyLinesAtTheStartOfBlocks: true
86+
MacroBlockBegin: ''
87+
MacroBlockEnd: ''
88+
MaxEmptyLinesToKeep: 1
89+
NamespaceIndentation: Inner
90+
PenaltyBreakAssignment: 16
91+
PenaltyBreakBeforeFirstCallParameter: 19
92+
PenaltyBreakComment: 300
93+
PenaltyBreakFirstLessLess: 120
94+
PenaltyBreakString: 1000
95+
PenaltyBreakTemplateDeclaration: 10
96+
PenaltyExcessCharacter: 1000000
97+
PenaltyReturnTypeOnItsOwnLine: 60
98+
PointerAlignment: Left
99+
ReflowComments: true
100+
SortIncludes: true
101+
SortUsingDeclarations: true
102+
SpaceAfterCStyleCast: false
103+
SpaceAfterLogicalNot: false
104+
SpaceAfterTemplateKeyword: false
105+
SpaceBeforeAssignmentOperators: true
106+
SpaceBeforeCpp11BracedList: false
107+
SpaceBeforeCtorInitializerColon: false
108+
SpaceBeforeInheritanceColon: false
109+
SpaceBeforeParens: Never
110+
SpaceBeforeRangeBasedForLoopColon: false
111+
SpaceBeforeSquareBrackets: false
112+
SpaceInEmptyBlock: false
113+
SpaceInEmptyParentheses: false
114+
SpacesBeforeTrailingComments: 1
115+
SpacesInAngles: false
116+
SpacesInCStyleCastParentheses: false
117+
#SpacesInConditionalStatement: false
118+
SpacesInContainerLiterals: false
119+
SpacesInParentheses: false
120+
SpacesInSquareBrackets: false
121+
Standard: Cpp11
122+
TabWidth: 4
123+
UseTab: Never
124+
...
125+

0 commit comments

Comments
 (0)