Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uva
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
uva
Commits
0ee657f5
Commit
0ee657f5
authored
14 years ago
by
Sander Mathijs van Veen
Browse files
Options
Downloads
Patches
Plain Diff
Added all source code to report.
parent
5823ee31
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
simmod/ass1/.gitignore
+3
-0
3 additions, 0 deletions
simmod/ass1/.gitignore
simmod/ass1/Makefile
+13
-6
13 additions, 6 deletions
simmod/ass1/Makefile
simmod/ass1/extra_precision.c
+1
-1
1 addition, 1 deletion
simmod/ass1/extra_precision.c
simmod/ass1/report.tex
+22
-3
22 additions, 3 deletions
simmod/ass1/report.tex
with
39 additions
and
10 deletions
simmod/ass1/.gitignore
+
3
−
0
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
This diff is collapsed.
Click to expand it.
simmod/ass1/Makefile
+
13
−
6
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
$@
...
...
This diff is collapsed.
Click to expand it.
simmod/ass1/extra_precision.c
+
1
−
1
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
;
}
}
This diff is collapsed.
Click to expand it.
simmod/ass1/report.tex
+
22
−
3
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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment