diff options
| author | Dennis Brentjes <dennis@brentj.es> | 2018-08-18 14:14:55 +0200 |
|---|---|---|
| committer | Dennis Brentjes <dennis@brentj.es> | 2018-09-02 21:56:20 +0200 |
| commit | 1e316c9a7437580f499453cdafbb0c7433a46b88 (patch) | |
| tree | 918079a02069294d7043412280e95a003de464f0 /appendices/appendix.tex | |
| parent | 23968a760efa6e03e8d47fbff108ec5aae010fe3 (diff) | |
| download | thesis-1e316c9a7437580f499453cdafbb0c7433a46b88.tar.gz thesis-1e316c9a7437580f499453cdafbb0c7433a46b88.tar.bz2 thesis-1e316c9a7437580f499453cdafbb0c7433a46b88.zip | |
Processes review comments.
Diffstat (limited to 'appendices/appendix.tex')
| -rw-r--r-- | appendices/appendix.tex | 50 |
1 files changed, 35 insertions, 15 deletions
diff --git a/appendices/appendix.tex b/appendices/appendix.tex index e8787ea..c8358a8 100644 --- a/appendices/appendix.tex +++ b/appendices/appendix.tex @@ -3,6 +3,7 @@ \section{Implementation} \label{app:impl} +\label{app:code} \begin{table}[!ht] \begin{tabular}{l l} @@ -66,19 +67,19 @@ both C and C++ optimization related compiler flags: \end{tabularx} \end{table} -\section{Some scripts to do result processing} - -The script that converts the output from the statsd to a \LaTeX\xspace table format. - -\begin{lstlisting} -cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; {if (NR == 1) {print "prepre (s) & premix (s) & prepost (s) & realpre (s) & realmix (s) & realpost (s) \\\\\hline\\hline";} else{ OFMT="%.2f"; c=1000000000; print ($5-$6)/c,"&",($1-$2)/c,"&",($3-$4)/c,"&",($11-$12)/c,"&",($7-$8)/c,"&",($9-$10)/c,"\\\\\\hline";}}' -\end{lstlisting} - -Script that calculates the mean and standard deviation of each column. - -\begin{lstlisting} -tail -n +2 | cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; { OFMT="%.2f"; c=1000000000; print ($5-$6)/c,($1-$2)/c,($3-$4)/c,($11-$12)/c,($7-$8)/c,($9-$10)/c;}' | awk '{for(i=1;i<=NF;i++) {sum[i] += $i; sumsq[i] += ($i)^2}} END {for (i=1;i<=NF;i++) {printf " & %.3f (%.3f)", sum[i]/NR, sqrt((sumsq[i]-sum[i]^2/NR)/NR)} printf("\n")}' -\end{lstlisting} +%\section{Some scripts to do result processing} +% +%The script that converts the output from the statsd to a \LaTeX\xspace table format. +% +%\begin{lstlisting} +%cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; {if (NR == 1) {print "prepre (s) & premix (s) & prepost (s) & realpre (s) & realmix (s) & realpost (s) \\\\\hline\\hline";} else{ OFMT="%.2f"; c=1000000000; print ($5-$6)/c,"&",($1-$2)/c,"&",($3-$4)/c,"&",($11-$12)/c,"&",($7-$8)/c,"&",($9-$10)/c,"\\\\\\hline";}}' +%\end{lstlisting} +% +%Script that calculates the mean and standard deviation of each column. +% +%\begin{lstlisting} +%tail -n +2 | cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; { OFMT="%.2f"; c=1000000000; print ($5-$6)/c,($1-$2)/c,($3-$4)/c,($11-$12)/c,($7-$8)/c,($9-$10)/c;}' | awk '{for(i=1;i<=NF;i++) {sum[i] += $i; sumsq[i] += ($i)^2}} END {for (i=1;i<=NF;i++) {printf " & %.3f (%.3f)", sum[i]/NR, sqrt((sumsq[i]-sum[i]^2/NR)/NR)} printf("\n")}' +%\end{lstlisting} \clearpage @@ -188,8 +189,27 @@ tail -n +2 | cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS="," \end{table} -%%----------------------------------------------------------------------- -% +\newpage +\section{crypto interface} +\lstinputlisting[ +language=C++, +caption={ed25519.h}, +label={lst:ed25519.h}, +keywordstyle=\color{blue}, +stringstyle=\color{red} +]{appendices/ed25519.h} + +\newpage +\lstinputlisting[ +language=C++, +caption={elgamal.h}, +label={lst:elgamal.h}, +keywordstyle=\color{blue}, +stringstyle=\color{red} +]{appendices/elgamal.h} + +%======= +%----------------------------------------------------------------------- %\vfill %\clearpage % |
