Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
0ee657f5
Commit
0ee657f5
authored
Feb 09, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added all source code to report.
parent
5823ee31
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
10 deletions
+39
-10
simmod/ass1/.gitignore
simmod/ass1/.gitignore
+3
-0
simmod/ass1/Makefile
simmod/ass1/Makefile
+13
-6
simmod/ass1/extra_precision.c
simmod/ass1/extra_precision.c
+1
-1
simmod/ass1/report.tex
simmod/ass1/report.tex
+22
-3
No files found.
simmod/ass1/.gitignore
View file @
0ee657f5
...
@@ -10,3 +10,6 @@ fd*
...
@@ -10,3 +10,6 @@ fd*
pr
pr
floating_point.tex
floating_point.tex
extra_precision.tex
extra_precision.tex
speed.tex
sum.tex
Makefile.tex
simmod/ass1/Makefile
View file @
0ee657f5
...
@@ -6,7 +6,14 @@ OPS=ADD DIV MULT SQRT
...
@@ -6,7 +6,14 @@ OPS=ADD DIV MULT SQRT
all
:
fp speed highlight report.pdf sum pr
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
extra_precision.tex
:
extra_precision.c
pygmentize
-O
style
=
colorful
-o
$@
$^
pygmentize
-O
style
=
colorful
-o
$@
$^
...
@@ -20,11 +27,11 @@ floating_point.tex: floating_point.c
...
@@ -20,11 +27,11 @@ floating_point.tex: floating_point.c
speed
:
speed.c
speed
:
speed.c
for
t
in
$(SPEED_TYPES)
;
do
\
for
t
in
$(SPEED_TYPES)
;
do
\
for
o
in
$(OPS)
;
do
\
for
o
in
$(OPS)
;
do
\
sed
"s#{TYPE}#
$$
t#"
$^
|
sed
"s#{OP}#
$$
o#"
>
speed.
$$
t.
$$
o.c
;
\
sed
"s#{TYPE}#
$$
t#"
$^
|
sed
"s#{OP}#
$$
o#"
>
speed.
$$
t.
$$
o.c
;
\
$(CC)
$(FLAGS)
-o
speed.
$$
t.
$$
o speed.
$$
t.
$$
o.c
;
\
$(CC)
$(FLAGS)
-o
speed.
$$
t.
$$
o speed.
$$
t.
$$
o.c
;
\
rm
speed.
$$
t.
$$
o.c
;
\
rm
speed.
$$
t.
$$
o.c
;
\
done
;
\
done
;
\
done
;
done
;
touch
$@
touch
$@
...
...
simmod/ass1/extra_precision.c
View file @
0ee657f5
...
@@ -20,7 +20,7 @@ int main(void) {
...
@@ -20,7 +20,7 @@ int main(void) {
if
(
last_e
<
e
+
1
.
f
/
(
i
*
8
)
)
if
(
last_e
<
e
+
1
.
f
/
(
i
*
8
)
)
printf
(
"more precision detected!
\n
"
);
printf
(
"more precision detected!
\n
"
);
printf
(
"
diff:
\n
%.80f
\n
%.80f
\n
"
,
last_e
,
e
+
1
.
f
/
(
i
*
8
));
printf
(
"
first: %.80f
\n
last :
%.80f
\n
"
,
last_e
,
e
+
1
.
f
/
(
i
*
8
));
return
0
;
return
0
;
}
}
simmod/ass1/report.tex
View file @
0ee657f5
...
@@ -171,9 +171,8 @@ produces this output:
...
@@ -171,9 +171,8 @@ produces this output:
\begin{verbatim}
\begin{verbatim}
$
.
/
pr
$
.
/
pr
more precision detected
!
more precision detected
!
diff:
first:
2
.
6910297870635986328125000000000000000000000000000000000
2
.
6910297870635986328125000000000000000000000000000000000
last :
2
.
6910298253667153112189680541632696986198425292968750000
2
.
6910298253667153112189680541632696986198425292968750000
\end
{
verbatim
}
\end
{
verbatim
}
% }}}
% }}}
...
@@ -187,6 +186,20 @@ diff:
...
@@ -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
}
% {{{
\section
{
extra
\_
precision.c
}
% {{{
\label
{
sec:extra
_
precision.c
}
\label
{
sec:extra
_
precision.c
}
...
@@ -194,5 +207,11 @@ diff:
...
@@ -194,5 +207,11 @@ diff:
% }}}
% }}}
\section
{
Makefile
}
% {{{
\label
{
sec:Makefile
}
\input
{
Makefile
}
% }}}
\end
{
document
}
\end
{
document
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment