Skip to content

Commit dc73585

Browse files
committed
Add bit field to pdf
1 parent a333042 commit dc73585

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

content/various/BitField.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* License: CC0
44
* Source: Own work
55
* Description: Pack many custom size "variables" into one using bitfields.
6-
* WARNING: It is not possible to take references to such "variables".
7-
* Overflow on such "variables" (even an unsigned ones) is implementation defined.
6+
* \textbf{It is not possible to take references to such "variables".
7+
* Overflow on such "variables" (even an unsigned ones) is implementation defined.}
88
*/
99

1010
#include<bits/stdc++.h>
@@ -22,4 +22,4 @@ int main() {
2222
s.b = 10;
2323
s.c = 20;
2424
cout << s.a << " " << s.b << " " << s.c << endl;
25-
}
25+
}

content/various/chapter.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ \subsection{Optimization tricks}
4747
% \kactlimport{Unrolling.h}
4848
% \kactlimport{SIMD.h}
4949
\kactlimport{Packed.h}
50+
\kactlimport{BitField.h}
5051

5152
\subsection{Python}
5253
\kactlimport{Python.py}

kactl.pdf

3.78 KB
Binary file not shown.

0 commit comments

Comments
 (0)