Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
23fd9ae5
Commit
23fd9ae5
authored
1 year ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Break FFRF loops on limiting orders
parent
c68a8558
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libnptm/tra_subs.cpp
+4
-2
4 additions, 2 deletions
src/libnptm/tra_subs.cpp
with
4 additions
and
2 deletions
src/libnptm/tra_subs.cpp
+
4
−
2
View file @
23fd9ae5
...
@@ -81,7 +81,8 @@ void ffrf(
...
@@ -81,7 +81,8 @@ void ffrf(
int
ltpo
=
lpo
+
l40
;
int
ltpo
=
lpo
+
l40
;
int
imm
=
l40
*
lpo
;
int
imm
=
l40
*
lpo
;
for
(
int
ilmp40
=
1
;
ilmp40
<=
3
;
ilmp40
++
)
{
for
(
int
ilmp40
=
1
;
ilmp40
<=
3
;
ilmp40
++
)
{
if
((
l40
==
1
&&
ilmp40
==
1
)
||
(
l40
==
cil
->
le
&&
ilmp40
==
3
))
continue
;
// ilmp40 loop
// NOTE: if trapping execution diverges, replace "break" with "continue"
if
((
l40
==
1
&&
ilmp40
==
1
)
||
(
l40
==
cil
->
le
&&
ilmp40
==
3
))
break
;
// ilmp40 loop
int
lmpml
=
ilmp40
-
2
;
int
lmpml
=
ilmp40
-
2
;
int
lmp
=
l40
+
lmpml
;
int
lmp
=
l40
+
lmpml
;
uimmp
=
uim
*
(
-
1.0
*
lmpml
);
uimmp
=
uim
*
(
-
1.0
*
lmpml
);
...
@@ -134,7 +135,8 @@ void ffrf(
...
@@ -134,7 +135,8 @@ void ffrf(
int
ltpo
=
lpo
+
l80
;
int
ltpo
=
lpo
+
l80
;
int
imm
=
l80
*
lpo
;
int
imm
=
l80
*
lpo
;
for
(
int
ilmp80
=
1
;
ilmp80
<=
3
;
ilmp80
++
)
{
for
(
int
ilmp80
=
1
;
ilmp80
<=
3
;
ilmp80
++
)
{
if
((
l80
==
1
&&
ilmp80
==
1
)
||
(
l80
==
cil
->
le
&&
ilmp80
==
3
))
continue
;
// ilmp80 loop
// NOTE: if trapping execution diverges, replace "break" with "continue"
if
((
l80
==
1
&&
ilmp80
==
1
)
||
(
l80
==
cil
->
le
&&
ilmp80
==
3
))
break
;
// ilmp80 loop
int
lmpml
=
ilmp80
-
2
;
int
lmpml
=
ilmp80
-
2
;
int
lmp
=
l80
+
lmpml
;
int
lmp
=
l80
+
lmpml
;
uimmp
=
uim
*
(
-
1.0
*
lmpml
);
uimmp
=
uim
*
(
-
1.0
*
lmpml
);
...
...
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