about summary refs log tree commit diff stats
path: root/.clang-format
blob: a59cb6169059cf34881218d9ee8da5ece92df7b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Language: Cpp
BasedOnStyle: GNU
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeParens: ControlStatements
SortIncludes: false
ColumnLimit: 0
PointerAlignment: Left
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowShortBlocksOnASingleLine: true
IndentWidth: 4
BreakBeforeBraces: Custom
BraceWrapping:
  AfterCaseLabel: true
  AfterControlStatement: Never
  AfterFunction: true
  BeforeElse: false
  #BeforeWhile: false
  AfterStruct: true
#BreakStringLiterals: true
an class="nv">float g: float b: float } # print translating to [0, 256) fn print-rgb screen: (addr screen), _c: (addr rgb) { var c/esi: (addr rgb) <- copy _c var xn: float var xn-addr/ecx: (addr float) <- address xn fill-in-rational xn-addr, 0x3e7ff, 0x3e8 # 255999 / 1000 # print 255.999 * c->r var result/xmm0: float <- copy xn var src-addr/eax: (addr float) <- get c, r result <- multiply *src-addr var result-int/edx: int <- truncate result print-int32-decimal screen, result-int print-string screen, " " # print 255.999 * c->g src-addr <- get c, g result <- copy xn result <- multiply *src-addr result-int <- truncate result print-int32-decimal screen, result-int print-string screen, " " # print 255.999 * c->b src-addr <- get c, b result <- copy xn result <- multiply *src-addr result-int <- truncate result print-int32-decimal screen, result-int print-string screen, "\n" }