[SPCA] Fix more typos

This commit is contained in:
2026-01-28 08:55:58 +01:00
parent 5eda12a69b
commit ed1a187bfc
4 changed files with 7 additions and 7 deletions

View File

@@ -83,8 +83,6 @@ in that they are passed by value and not by reference.
You can of course pass it also by reference (like any other data type) by setting the argument to type \texttt{struct mystruct * name} and then calling the function using You can of course pass it also by reference (like any other data type) by setting the argument to type \texttt{struct mystruct * name} and then calling the function using
\texttt{func(\&test)} assuming \texttt{test} is the name of your struct \texttt{func(\&test)} assuming \texttt{test} is the name of your struct
\newpage
\content{Typedef} To define a custom type using \texttt{typedef <type it represents> <name of the new type>}. \content{Typedef} To define a custom type using \texttt{typedef <type it represents> <name of the new type>}.
You may also use \texttt{typedef} on structs using \texttt{typedef struct <struct tag> <name of the new alias>}, You may also use \texttt{typedef} on structs using \texttt{typedef struct <struct tag> <name of the new alias>},

View File

@@ -11,7 +11,7 @@ and it can also be used to do a sort-of assertion that we have an arithmetic typ
which will cause a compiler error if \texttt{x} is for example a pointer. which will cause a compiler error if \texttt{x} is for example a pointer.
Of course, the lower precedence \verb|+| and \verb|-| is addition and subtraction, respectively. Of course, the lower precedence \verb|+| and \verb|-| is addition and subtraction, respectively.
Very low precedence belongs to boolean operators \verb|&&| and \texttt{||}, as well as the ternary operator and assignment operators Very low precedence belongs to boolean operators \verb|&&| and \texttt{||}, as well as the ternary operator and assignment operators.
\begin{table}[h!] \begin{table}[h!]
\begin{tables}{ll}{Operator & Associativity} \begin{tables}{ll}{Operator & Associativity}
\texttt{() [] -> .} & Left-to-right \\ \texttt{() [] -> .} & Left-to-right \\
@@ -33,8 +33,8 @@ Very low precedence belongs to boolean operators \verb|&&| and \texttt{||}, as w
\caption{\lC\ operators ordered in descending order by precedence} \caption{\lC\ operators ordered in descending order by precedence}
\label{tab:c-operators} \label{tab:c-operators}
\end{table} \end{table}
In an expression like this
\mint{c}|(expr1, expr2)| In an expression like \texttt{x = (expr1, expr2)}
the first expression is evaluated, its result is discarded, the second expression is executed and its result is returned. the first expression is evaluated, its result is discarded, the second expression is executed and its result is returned.
It is also possible to chain them, i.e. to use multiple without parenthesis, the last expression's value is ultimately returned. It is also possible to chain them, i.e. to use multiple without parenthesis, the last expression's value is ultimately returned.
Of note is that the expressions have to be encased in parenthesis. Of note is that the expressions have to be encased in parenthesis.

View File

@@ -25,7 +25,8 @@ Single precision and Double precision floating point numbers store the $3$ param
Bias: $1023$, Exponent range: $[-1022, 1023]$ Bias: $1023$, Exponent range: $[-1022, 1023]$
\end{center} \end{center}
Most of the extra precision in $64$b floating point numbers is associated to the mantissa. Note how double precision is necessary to represent all $32$b signed Integers, and not all $64$b signed Integers can be represented in either format. Most of the extra precision in $64$b floating point numbers is associated to the mantissa. Note how double precision is necessary to represent all $32$b signed Integers,
and not all $64$b signed Integers can be represented in either format.
\newpage \newpage
@@ -33,7 +34,8 @@ The way these bitfields are interpretd \textit{differs} based on the exponent fi
\begin{enumerate} \begin{enumerate}
\item \textbf{Normalized Values}: Exponent bit field $e$ is neither all $1$s nor all $0$s.\\ \item \textbf{Normalized Values}: Exponent bit field $e$ is neither all $1$s nor all $0$s.\\
In this case, $E$ is read in \textit{biased} form: $E = e - b$. The bias is $b=2^{k-1}-1$, where $k$ is the amount of bits reserved for $e$. This produces the exponent ranges $E \in [-(b-1), b]$.\\ In this case, $E$ is read in \textit{biased} form: $E = e - b$. The bias is $b=2^{k-1}-1$, where $k$ is the number of bits reserved for $e$.
This produces the exponent ranges $E \in [-(b-1), b]$.\\
The mantissa field $m$ is interpreted as $M = 0.m_{n-1}\ldots m_1 m_0 + 1$, where $n$ is the amount of bits reserved for $m$ The mantissa field $m$ is interpreted as $M = 0.m_{n-1}\ldots m_1 m_0 + 1$, where $n$ is the amount of bits reserved for $m$
\item \textbf{Denormalized Values}: Exponent bit field $e$ is all $0$s.\\ \item \textbf{Denormalized Values}: Exponent bit field $e$ is all $0$s.\\
In this case, $E$ is read in \textit{biased} form $E = 1 - b$. (Instead of $E = e - b$)\\ In this case, $E$ is read in \textit{biased} form $E = 1 - b$. (Instead of $E = e - b$)\\

Binary file not shown.