Added all source code to report.

parent 5823ee31
......@@ -10,3 +10,6 @@ fd*
pr
floating_point.tex
extra_precision.tex
speed.tex
sum.tex
Makefile.tex
......@@ -6,7 +6,14 @@ OPS=ADD DIV MULT SQRT
all: fp speed highlight report.pdf sum pr
highlight: floating_point.tex extra_precision.tex
highlight: floating_point.tex extra_precision.tex \
speed.tex sum.tex Makefile.tex
s%.tex: s%.c
pygmentize -O style=colorful -o $@ $^
Makefile.tex: Makefile
pygmentize -O style=colorful -o $@ $^
extra_precision.tex: extra_precision.c
pygmentize -O style=colorful -o $@ $^
......
......@@ -20,7 +20,7 @@ int main(void) {
if( last_e < e + 1.f / (i*8) )
printf("more precision detected!\n");
printf("diff:\n%.80f\n%.80f \n", last_e, e + 1.f / (i*8));
printf("first: %.80f\nlast : %.80f \n", last_e, e + 1.f / (i*8));
return 0;
}
......@@ -171,9 +171,8 @@ produces this output:
\begin{verbatim}
$ ./pr
more precision detected!
diff:
2.6910297870635986328125000000000000000000000000000000000
2.6910298253667153112189680541632696986198425292968750000
first: 2.6910297870635986328125000000000000000000000000000000000
last : 2.6910298253667153112189680541632696986198425292968750000
\end{verbatim}
% }}}
......@@ -187,6 +186,20 @@ diff:
% }}}
\section{speed.c} % {{{
\label{sec:speed.c}
\input{speed}
% }}}
\section{sum.c} % {{{
\label{sec:sum.c}
\input{sum}
% }}}
\section{extra\_precision.c} % {{{
\label{sec:extra_precision.c}
......@@ -194,5 +207,11 @@ diff:
% }}}
\section{Makefile} % {{{
\label{sec:Makefile}
\input{Makefile}
% }}}
\end{document}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment