summaryrefslogtreecommitdiff
path: root/content/other/other.tex
diff options
context:
space:
mode:
authorYidi <noob999noob999@gmail.com>2025-06-06 15:21:51 +0200
committerYidi <noob999noob999@gmail.com>2025-06-06 15:21:51 +0200
commitaca95353f22fb48fab74bf45de85f8badaa2e274 (patch)
tree374d0caba4a46d1ec6699a417b1ce5e8182134ca /content/other/other.tex
parent14a5aa119dd90c4764c47b00f141117b0193b73e (diff)
improve gauss + fix latex
Diffstat (limited to 'content/other/other.tex')
-rw-r--r--content/other/other.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/other/other.tex b/content/other/other.tex
index a38f6da..a5004fb 100644
--- a/content/other/other.tex
+++ b/content/other/other.tex
@@ -18,9 +18,9 @@
\begin{expandtable}
\begin{tabularx}{\linewidth}{|lR|}
\hline
- Addition & \code{__builtin_saddll_overflow(a, b, &c)} \\
- Subtraktion & \code{__builtin_ssubll_overflow(a, b, &c)} \\
- Multiplikation & \code{__builtin_smulll_overflow(a, b, &c)} \\
+ Addition & \code{__builtin_saddll_overflow(a, b, \&c)} \\
+ Subtraktion & \code{__builtin_ssubll_overflow(a, b, \&c)} \\
+ Multiplikation & \code{__builtin_smulll_overflow(a, b, \&c)} \\
\hline
\end{tabularx}
\end{expandtable}
@@ -30,9 +30,9 @@
\begin{expandtable}
\begin{tabularx}{\linewidth}{|Ll|}
\hline
- Bit an Position j lesen & \code{(x & (1 << j)) != 0} \\
+ Bit an Position j lesen & \code{(x \& (1 << j)) != 0} \\
Bit an Position j setzten & \code{x |= (1 << j)} \\
- Bit an Position j löschen & \code{x &= ~(1 << j)} \\
+ Bit an Position j löschen & \code{x \&= ~(1 << j)} \\
Bit an Position j flippen & \code{x ^= (1 << j)} \\
Anzahl an führenden nullen ($x \neq 0$) & \code{__builtin_clzll(x)} \\
Anzahl an schließenden nullen ($x \neq 0$) & \code{__builtin_ctzll(x)} \\