Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
8388dba9
Commit
8388dba9
authored
Jul 25, 2018
by
yoogx
Browse files
* Remove C99 for loop initialization
parent
4cdda17f
Changes
1
Show whitespace changes
Inline
Side-by-side
examples/aadlv2/priority_test/whetstone.c
View file @
8388dba9
...
@@ -48,6 +48,7 @@ void burnproc(int loop)
...
@@ -48,6 +48,7 @@ void burnproc(int loop)
//Temporal Variable
//Temporal Variable
__po_hi_time_t
tstart
;
__po_hi_time_t
tstart
;
__po_hi_time_t
tfin
;
__po_hi_time_t
tfin
;
int
i
,
j
,
r
;
double
*
E1
;
double
*
E1
;
E1
=
(
double
*
)
malloc
(
N9
*
sizeof
(
double
));
E1
=
(
double
*
)
malloc
(
N9
*
sizeof
(
double
));
...
@@ -60,11 +61,11 @@ void burnproc(int loop)
...
@@ -60,11 +61,11 @@ void burnproc(int loop)
fflush
(
stdout
);}
fflush
(
stdout
);}
//Main Loop
//Main Loop
for
(
int
j
=
0
;
j
<
loop
;
j
++
){
for
(
j
=
0
;
j
<
loop
;
j
++
){
//Initializing the array.
//Initializing the array.
for
(
int
r
=
0
;
r
<
N9
;
r
++
)
for
(
r
=
0
;
r
<
N9
;
r
++
)
{
{
E1
[
r
]
=
0
.
0
;
E1
[
r
]
=
0
.
0
;
}
}
...
@@ -79,7 +80,7 @@ void burnproc(int loop)
...
@@ -79,7 +80,7 @@ void burnproc(int loop)
//Module 8: Procedure Calls
//Module 8: Procedure Calls
Z
=
E1
[
4
];
Z
=
E1
[
4
];
for
(
int
i
=
0
;
i
<
N8
;){
for
(
i
=
0
;
i
<
N8
;){
i
++
;
i
++
;
P3
(
Y
*
(
double
)
i
,
Y
+
Z
,
&
Z
);
P3
(
Y
*
(
double
)
i
,
Y
+
Z
,
&
Z
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment